Crap from running automake again; remove when merging.
[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.60.2.
4 #
5 # Report bugs to <courier-users@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.60.2'
732 PACKAGE_STRING='courier-authlib 0.60.2'
733 PACKAGE_BUGREPORT='courier-users@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 build
850 build_cpu
851 build_vendor
852 build_os
853 host
854 host_cpu
855 host_vendor
856 host_os
857 GREP
858 EGREP
859 ECHO
860 AR
861 RANLIB
862 CXX
863 CXXFLAGS
864 ac_ct_CXX
865 CXXDEPMODE
866 am__fastdepCXX_TRUE
867 am__fastdepCXX_FALSE
868 CXXCPP
869 F77
870 FFLAGS
871 ac_ct_F77
872 LIBTOOL
873 LTDLINCL
874 LIBLTDL
875 PERL
876 COURIERCONFIG
877 EXPECT
878 PASSWD
879 MD5LIB
880 HAVE_MD5_TRUE
881 HAVE_MD5_FALSE
882 SHA1LIB
883 HAVE_SHA1_TRUE
884 HAVE_SHA1_FALSE
885 HMACLIB
886 HAVE_HMACLIB_TRUE
887 HAVE_HMACLIB_FALSE
888 NETLIBS
889 DBSUBDIR
890 USE_GDBM
891 USE_DB
892 LIBDB
893 LIBGDBM
894 dblibrary
895 LIBAUTHUSERDB
896 userdb
897 LIBDL
898 AUTHPAMCRYPT
899 LIBAUTHPAM
900 authldaprc
901 LDAPLIBS
902 LIBAUTHLDAP
903 HAVE_LDAP_TRUE
904 HAVE_LDAP_FALSE
905 SHADOWLIBS
906 LIBAUTHSHADOW
907 LIBAUTHPWD
908 vpopmail_home
909 VPOPMAILLIBS
910 LIBAUTHVCHKPW
911 authpgsqlrc
912 PG_CONFIG
913 PGSQL_LIBS
914 LIBAUTHPGSQL
915 HAVE_AUTHPGSQL_TRUE
916 HAVE_AUTHPGSQL_FALSE
917 authmysqlrc
918 MYSQL_CONFIG
919 LIBAUTHMYSQL
920 MYSQL_LIBS
921 HAVE_AUTHMYSQL_TRUE
922 HAVE_AUTHMYSQL_FALSE
923 HAVE_CUSTOM_TRUE
924 HAVE_CUSTOM_FALSE
925 LIBAUTHCUSTOM
926 authProg
927 HAVE_PIPE_TRUE
928 HAVE_PIPE_FALSE
929 LIBAUTHPIPE
930 CRYPTLIBS
931 authdaemonrc
932 authdaemonvar
933 LIBM
934 mailuser
935 mailgroup
936 LIBLTDL_SUBDIR
937 REPOSITORY
938 HAVE_SGML_TRUE
939 HAVE_SGML_FALSE
940 subdirs
941 LIBOBJS
942 LTLIBOBJS'
943 ac_subst_files=''
944 ac_precious_vars='build_alias
945 host_alias
946 target_alias
947 CC
948 CFLAGS
949 LDFLAGS
950 LIBS
951 CPPFLAGS
952 CPP
953 CXX
954 CXXFLAGS
955 CCC
956 CXXCPP
957 F77
958 FFLAGS'
959 ac_subdirs_all='libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog'
960
961 # Initialize some variables set by options.
962 ac_init_help=
963 ac_init_version=false
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
980
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1006
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1010 do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1016 fi
1017
1018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
1022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
1025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
1028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
1049 -datadir | --datadir | --datadi | --datad)
1050 ac_prev=datadir ;;
1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1052 datadir=$ac_optarg ;;
1053
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
1061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1068 eval enable_$ac_feature=no ;;
1069
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1074
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1079
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1087 eval enable_$ac_feature=\$ac_optarg ;;
1088
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1097
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1101
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1108
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1113
1114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1119
1120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1126
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1131
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1136
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1143
1144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1148
1149 -localstatedir | --localstatedir | --localstatedi | --localstated \
1150 | --localstate | --localstat | --localsta | --localst | --locals)
1151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1154 localstatedir=$ac_optarg ;;
1155
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1160
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1164
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1168
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1172
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1181
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1186
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1193
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1200
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1217
1218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1222
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1227
1228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1231
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1237
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1248
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1253
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1258
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1265
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1270
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1273
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1276
1277 -with-* | --with-*)
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1284 eval with_$ac_package=\$ac_optarg ;;
1285
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1293 eval with_$ac_package=no ;;
1294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1312
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314 Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1326
1327 *)
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 ;;
1334
1335 esac
1336 done
1337
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1342 fi
1343
1344 # Be sure to have absolute directory names.
1345 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
1349 do
1350 eval ac_val=\$$ac_var
1351 case $ac_val in
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1354 esac
1355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
1357 done
1358
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1362 build=$build_alias
1363 host=$host_alias
1364 target=$target_alias
1365
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375 fi
1376
1377 ac_tool_prefix=
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380 test "$silent" = yes && exec 6>/dev/null
1381
1382
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1391
1392
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
1398 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
1401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1402 echo X"$0" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
1420 srcdir=$ac_confdir
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 srcdir=..
1423 fi
1424 else
1425 ac_srcdir_defaulted=no
1426 fi
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1430 { (exit 1); exit 1; }; }
1431 fi
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1435 { (exit 1); exit 1; }; }
1436 pwd)`
1437 # When building in place, set srcdir=.
1438 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1440 fi
1441 # Remove unnecessary trailing slashes from srcdir.
1442 # Double slashes in file names in object file debugging info
1443 # mess up M-x gdb in Emacs.
1444 case $srcdir in
1445 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 esac
1447 for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 done
1453
1454 #
1455 # Report the --help message.
1456 #
1457 if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
1461 \`configure' configures courier-authlib 0.60.2 to adapt to many kinds of systems.
1462
1463 Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466 VAR=VALUE. See below for descriptions of some of the useful variables.
1467
1468 Defaults for the options are specified in brackets.
1469
1470 Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
1481 Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
1483 [$ac_default_prefix]
1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 [PREFIX]
1486
1487 By default, \`make install' will install all the files in
1488 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490 for instance \`--prefix=\$HOME'.
1491
1492 For better control, use the options below.
1493
1494 Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1514 _ACEOF
1515
1516 cat <<\_ACEOF
1517
1518 Program names:
1519 --program-prefix=PREFIX prepend PREFIX to installed program names
1520 --program-suffix=SUFFIX append SUFFIX to installed program names
1521 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1522
1523 System types:
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 _ACEOF
1527 fi
1528
1529 if test -n "$ac_init_help"; then
1530 case $ac_init_help in
1531 short | recursive ) echo "Configuration of courier-authlib 0.60.2:";;
1532 esac
1533 cat <<\_ACEOF
1534
1535 Optional Features:
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --disable-dependency-tracking speeds up one-time build
1539 --enable-dependency-tracking do not reject slow dependency extractors
1540 --enable-shared[=PKGS] build shared libraries [default=yes]
1541 --enable-static[=PKGS] build static libraries [default=yes]
1542 --enable-fast-install[=PKGS]
1543 optimize for fast installation [default=yes]
1544 --disable-libtool-lock avoid locking (might break parallel builds)
1545
1546 Optional Packages:
1547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1549 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1550 --with-pic try to use only PIC/non-PIC objects [default=use
1551 both]
1552 --with-tags[=TAGS] include additional configurations [automatic]
1553
1554 --with-pkgconfdir=d Install config files in directory
1555 --with-db=gdbm Use the GDBM library.
1556 --with-db=db Use the libdb.a library.
1557 --without-authuserdb Do not include the authuserdb module
1558
1559 --without-authpam Do not include the authpam module
1560 --with-authpam-libraries="libs" Link 'libs' with authpam, this may be
1561 required for FreeBSD 3.3
1562 --without-authldap Do not include the authldap module
1563 --with-authldaprc=filename Expect to find authldaprc here
1564 --without-authpwd Do not include the authpwd module
1565 --without-authshadow Do not include the authshadow module
1566 --without-authvchkpw Do not include the authvchkpw module
1567 --with-authpgsqlrc=filename Expect to find authpgsql here
1568 --without-authpgsql Do not include the authpgsql module
1569 --with-pgsql-libs=DIR Look for pgsql libs in this dir
1570 --with-pgsql-includes=DIR Look for pgsql includes in this dir
1571 --with-authmysqlrc=filename Expect to find authmysql here
1572 --without-authmysql Do not include the authmysql module
1573 --with-mysql-libs=DIR Look for mysql libs in this dir
1574 --with-mysql-includes=DIR Look for mysql includes in this dir
1575 --without-authcustom Do not include the authcustom module
1576 --with-pipeprog=filename Expect to find the pipe-prog here
1577 --without-authpipe Do not include the authpipe module
1578 --with-authdaemonrc=filename Expect to find authdaemonrc here
1579 --with-authdaemonvar=directory Directory where authdaemon.pid and
1580 the listening socket is created
1581 --with-mailuser=user Specify mail user name (defaults to
1582 courier, daemon, admin, bin, or root)
1583 --with-mailgroup=group Specify mail group name (defaults to courier,
1584 daemon, sys, adm, or root)
1585 --without-stdheaderdir Header files will be installed into a directory
1586 not in the compiler's default search path.
1587
1588 Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 LIBS libraries to pass to the linker, e.g. -l<library>
1594 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
1596 CPP C preprocessor
1597 CXX C++ compiler command
1598 CXXFLAGS C++ compiler flags
1599 CXXCPP C++ preprocessor
1600 F77 Fortran 77 compiler command
1601 FFLAGS Fortran 77 compiler flags
1602
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1605
1606 Report bugs to <courier-users@lists.sourceforge.net>.
1607 _ACEOF
1608 ac_status=$?
1609 fi
1610
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" || continue
1615 ac_builddir=.
1616
1617 case "$ac_dir" in
1618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *)
1620 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627 esac
1628 ac_abs_top_builddir=$ac_pwd
1629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir=$ac_top_build_prefix
1632
1633 case $srcdir in
1634 .) # We are building in place.
1635 ac_srcdir=.
1636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
1639 ac_srcdir=$srcdir$ac_dir_suffix;
1640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1646 esac
1647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648
1649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure" --help=recursive
1657 else
1658 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 fi || ac_status=$?
1660 cd "$ac_pwd" || { ac_status=$?; break; }
1661 done
1662 fi
1663
1664 test -n "$ac_init_help" && exit $ac_status
1665 if $ac_init_version; then
1666 cat <<\_ACEOF
1667 courier-authlib configure 0.60.2
1668 generated by GNU Autoconf 2.61
1669
1670 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1671 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1674 _ACEOF
1675 exit
1676 fi
1677 cat >config.log <<_ACEOF
1678 This file contains any messages produced by compilers while
1679 running configure, to aid debugging if configure makes a mistake.
1680
1681 It was created by courier-authlib $as_me 0.60.2, which was
1682 generated by GNU Autoconf 2.61. Invocation command line was
1683
1684 $ $0 $@
1685
1686 _ACEOF
1687 exec 5>>config.log
1688 {
1689 cat <<_ASUNAME
1690 ## --------- ##
1691 ## Platform. ##
1692 ## --------- ##
1693
1694 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1695 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1696 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1697 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1698 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1699
1700 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1701 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1702
1703 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1704 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1705 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1706 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1707 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1708 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1709 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1710
1711 _ASUNAME
1712
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1715 do
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
1718 echo "PATH: $as_dir"
1719 done
1720 IFS=$as_save_IFS
1721
1722 } >&5
1723
1724 cat >&5 <<_ACEOF
1725
1726
1727 ## ----------- ##
1728 ## Core tests. ##
1729 ## ----------- ##
1730
1731 _ACEOF
1732
1733
1734 # Keep a trace of the command line.
1735 # Strip out --no-create and --no-recursion so they do not pile up.
1736 # Strip out --silent because we don't want to record it for future runs.
1737 # Also quote any args containing shell meta-characters.
1738 # Make two passes to allow for proper duplicate-argument suppression.
1739 ac_configure_args=
1740 ac_configure_args0=
1741 ac_configure_args1=
1742 ac_must_keep_next=false
1743 for ac_pass in 1 2
1744 do
1745 for ac_arg
1746 do
1747 case $ac_arg in
1748 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1750 | -silent | --silent | --silen | --sile | --sil)
1751 continue ;;
1752 *\'*)
1753 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1754 esac
1755 case $ac_pass in
1756 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1757 2)
1758 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1759 if test $ac_must_keep_next = true; then
1760 ac_must_keep_next=false # Got value, back to normal.
1761 else
1762 case $ac_arg in
1763 *=* | --config-cache | -C | -disable-* | --disable-* \
1764 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1765 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1766 | -with-* | --with-* | -without-* | --without-* | --x)
1767 case "$ac_configure_args0 " in
1768 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1769 esac
1770 ;;
1771 -* ) ac_must_keep_next=true ;;
1772 esac
1773 fi
1774 ac_configure_args="$ac_configure_args '$ac_arg'"
1775 ;;
1776 esac
1777 done
1778 done
1779 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1780 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1781
1782 # When interrupted or exit'd, cleanup temporary files, and complete
1783 # config.log. We remove comments because anyway the quotes in there
1784 # would cause problems or look ugly.
1785 # WARNING: Use '\'' to represent an apostrophe within the trap.
1786 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1787 trap 'exit_status=$?
1788 # Save into config.log some information that might help in debugging.
1789 {
1790 echo
1791
1792 cat <<\_ASBOX
1793 ## ---------------- ##
1794 ## Cache variables. ##
1795 ## ---------------- ##
1796 _ASBOX
1797 echo
1798 # The following way of writing the cache mishandles newlines in values,
1799 (
1800 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1801 eval ac_val=\$$ac_var
1802 case $ac_val in #(
1803 *${as_nl}*)
1804 case $ac_var in #(
1805 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1806 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1807 esac
1808 case $ac_var in #(
1809 _ | IFS | as_nl) ;; #(
1810 *) $as_unset $ac_var ;;
1811 esac ;;
1812 esac
1813 done
1814 (set) 2>&1 |
1815 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1816 *${as_nl}ac_space=\ *)
1817 sed -n \
1818 "s/'\''/'\''\\\\'\'''\''/g;
1819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1820 ;; #(
1821 *)
1822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1823 ;;
1824 esac |
1825 sort
1826 )
1827 echo
1828
1829 cat <<\_ASBOX
1830 ## ----------------- ##
1831 ## Output variables. ##
1832 ## ----------------- ##
1833 _ASBOX
1834 echo
1835 for ac_var in $ac_subst_vars
1836 do
1837 eval ac_val=\$$ac_var
1838 case $ac_val in
1839 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1840 esac
1841 echo "$ac_var='\''$ac_val'\''"
1842 done | sort
1843 echo
1844
1845 if test -n "$ac_subst_files"; then
1846 cat <<\_ASBOX
1847 ## ------------------- ##
1848 ## File substitutions. ##
1849 ## ------------------- ##
1850 _ASBOX
1851 echo
1852 for ac_var in $ac_subst_files
1853 do
1854 eval ac_val=\$$ac_var
1855 case $ac_val in
1856 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 esac
1858 echo "$ac_var='\''$ac_val'\''"
1859 done | sort
1860 echo
1861 fi
1862
1863 if test -s confdefs.h; then
1864 cat <<\_ASBOX
1865 ## ----------- ##
1866 ## confdefs.h. ##
1867 ## ----------- ##
1868 _ASBOX
1869 echo
1870 cat confdefs.h
1871 echo
1872 fi
1873 test "$ac_signal" != 0 &&
1874 echo "$as_me: caught signal $ac_signal"
1875 echo "$as_me: exit $exit_status"
1876 } >&5
1877 rm -f core *.core core.conftest.* &&
1878 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1879 exit $exit_status
1880 ' 0
1881 for ac_signal in 1 2 13 15; do
1882 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1883 done
1884 ac_signal=0
1885
1886 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1887 rm -f -r conftest* confdefs.h
1888
1889 # Predefined preprocessor variables.
1890
1891 cat >>confdefs.h <<_ACEOF
1892 #define PACKAGE_NAME "$PACKAGE_NAME"
1893 _ACEOF
1894
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1898 _ACEOF
1899
1900
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1903 _ACEOF
1904
1905
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_STRING "$PACKAGE_STRING"
1908 _ACEOF
1909
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1913 _ACEOF
1914
1915
1916 # Let the site file select an alternate cache file if it wants to.
1917 # Prefer explicitly selected file to automatically selected ones.
1918 if test -n "$CONFIG_SITE"; then
1919 set x "$CONFIG_SITE"
1920 elif test "x$prefix" != xNONE; then
1921 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1922 else
1923 set x "$ac_default_prefix/share/config.site" \
1924 "$ac_default_prefix/etc/config.site"
1925 fi
1926 shift
1927 for ac_site_file
1928 do
1929 if test -r "$ac_site_file"; then
1930 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1931 echo "$as_me: loading site script $ac_site_file" >&6;}
1932 sed 's/^/| /' "$ac_site_file" >&5
1933 . "$ac_site_file"
1934 fi
1935 done
1936
1937 if test -r "$cache_file"; then
1938 # Some versions of bash will fail to source /dev/null (special
1939 # files actually), so we avoid doing that.
1940 if test -f "$cache_file"; then
1941 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1942 echo "$as_me: loading cache $cache_file" >&6;}
1943 case $cache_file in
1944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945 *) . "./$cache_file";;
1946 esac
1947 fi
1948 else
1949 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1950 echo "$as_me: creating cache $cache_file" >&6;}
1951 >$cache_file
1952 fi
1953
1954 # Check that the precious variables saved in the cache have kept the same
1955 # value.
1956 ac_cache_corrupted=false
1957 for ac_var in $ac_precious_vars; do
1958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1959 eval ac_new_set=\$ac_env_${ac_var}_set
1960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1961 eval ac_new_val=\$ac_env_${ac_var}_value
1962 case $ac_old_set,$ac_new_set in
1963 set,)
1964 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1965 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1966 ac_cache_corrupted=: ;;
1967 ,set)
1968 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1969 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1970 ac_cache_corrupted=: ;;
1971 ,);;
1972 *)
1973 if test "x$ac_old_val" != "x$ac_new_val"; then
1974 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1975 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1976 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1977 echo "$as_me: former value: $ac_old_val" >&2;}
1978 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1979 echo "$as_me: current value: $ac_new_val" >&2;}
1980 ac_cache_corrupted=:
1981 fi;;
1982 esac
1983 # Pass precious variables to config.status.
1984 if test "$ac_new_set" = set; then
1985 case $ac_new_val in
1986 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 *) ac_arg=$ac_var=$ac_new_val ;;
1988 esac
1989 case " $ac_configure_args " in
1990 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1991 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1992 esac
1993 fi
1994 done
1995 if $ac_cache_corrupted; then
1996 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1997 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1998 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1999 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2000 { (exit 1); exit 1; }; }
2001 fi
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027 ac_ext=c
2028 ac_cpp='$CPP $CPPFLAGS'
2029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032
2033
2034
2035
2036 ac_config_headers="$ac_config_headers courier_auth_config.h"
2037
2038
2039 am__api_version='1.10'
2040
2041 ac_aux_dir=
2042 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2043 if test -f "$ac_dir/install-sh"; then
2044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/install-sh -c"
2046 break
2047 elif test -f "$ac_dir/install.sh"; then
2048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/install.sh -c"
2050 break
2051 elif test -f "$ac_dir/shtool"; then
2052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/shtool install -c"
2054 break
2055 fi
2056 done
2057 if test -z "$ac_aux_dir"; then
2058 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2059 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2060 { (exit 1); exit 1; }; }
2061 fi
2062
2063 # These three variables are undocumented and unsupported,
2064 # and are intended to be withdrawn in a future Autoconf release.
2065 # They can cause serious problems if a builder's source tree is in a directory
2066 # whose full name contains unusual characters.
2067 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2068 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2069 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2070
2071
2072 # Find a good install program. We prefer a C program (faster),
2073 # so one script is as good as another. But avoid the broken or
2074 # incompatible versions:
2075 # SysV /etc/install, /usr/sbin/install
2076 # SunOS /usr/etc/install
2077 # IRIX /sbin/install
2078 # AIX /bin/install
2079 # AmigaOS /C/install, which installs bootblocks on floppy discs
2080 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2083 # OS/2's system install, which has a completely different semantic
2084 # ./install, which can be erroneously created by make from ./install.sh.
2085 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2086 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2087 if test -z "$INSTALL"; then
2088 if test "${ac_cv_path_install+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2093 do
2094 IFS=$as_save_IFS
2095 test -z "$as_dir" && as_dir=.
2096 # Account for people who put trailing slashes in PATH elements.
2097 case $as_dir/ in
2098 ./ | .// | /cC/* | \
2099 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2100 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2101 /usr/ucb/* ) ;;
2102 *)
2103 # OSF1 and SCO ODT 3.0 have their own names for install.
2104 # Don't use installbsd from OSF since it installs stuff as root
2105 # by default.
2106 for ac_prog in ginstall scoinst install; do
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2109 if test $ac_prog = install &&
2110 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2111 # AIX install. It has an incompatible calling convention.
2112 :
2113 elif test $ac_prog = install &&
2114 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2115 # program-specific install script used by HP pwplus--don't use.
2116 :
2117 else
2118 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2119 break 3
2120 fi
2121 fi
2122 done
2123 done
2124 ;;
2125 esac
2126 done
2127 IFS=$as_save_IFS
2128
2129
2130 fi
2131 if test "${ac_cv_path_install+set}" = set; then
2132 INSTALL=$ac_cv_path_install
2133 else
2134 # As a last resort, use the slow shell script. Don't cache a
2135 # value for INSTALL within a source directory, because that will
2136 # break other packages using the cache if that directory is
2137 # removed, or if the value is a relative name.
2138 INSTALL=$ac_install_sh
2139 fi
2140 fi
2141 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2142 echo "${ECHO_T}$INSTALL" >&6; }
2143
2144 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2145 # It thinks the first close brace ends the variable substitution.
2146 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2147
2148 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2149
2150 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2151
2152 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2153 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2154 # Just in case
2155 sleep 1
2156 echo timestamp > conftest.file
2157 # Do `set' in a subshell so we don't clobber the current shell's
2158 # arguments. Must try -L first in case configure is actually a
2159 # symlink; some systems play weird games with the mod time of symlinks
2160 # (eg FreeBSD returns the mod time of the symlink's containing
2161 # directory).
2162 if (
2163 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2164 if test "$*" = "X"; then
2165 # -L didn't work.
2166 set X `ls -t $srcdir/configure conftest.file`
2167 fi
2168 rm -f conftest.file
2169 if test "$*" != "X $srcdir/configure conftest.file" \
2170 && test "$*" != "X conftest.file $srcdir/configure"; then
2171
2172 # If neither matched, then we have a broken ls. This can happen
2173 # if, for instance, CONFIG_SHELL is bash and it inherits a
2174 # broken ls alias from the environment. This has actually
2175 # happened. Such a system could not be considered "sane".
2176 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2177 alias in your environment" >&5
2178 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2179 alias in your environment" >&2;}
2180 { (exit 1); exit 1; }; }
2181 fi
2182
2183 test "$2" = conftest.file
2184 )
2185 then
2186 # Ok.
2187 :
2188 else
2189 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2190 Check your system clock" >&5
2191 echo "$as_me: error: newly created file is older than distributed files!
2192 Check your system clock" >&2;}
2193 { (exit 1); exit 1; }; }
2194 fi
2195 { echo "$as_me:$LINENO: result: yes" >&5
2196 echo "${ECHO_T}yes" >&6; }
2197 test "$program_prefix" != NONE &&
2198 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2199 # Use a double $ so make ignores it.
2200 test "$program_suffix" != NONE &&
2201 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2202 # Double any \ or $. echo might interpret backslashes.
2203 # By default was `s,x,x', remove it if useless.
2204 cat <<\_ACEOF >conftest.sed
2205 s/[\\$]/&&/g;s/;s,x,x,$//
2206 _ACEOF
2207 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2208 rm -f conftest.sed
2209
2210 # expand $ac_aux_dir to an absolute path
2211 am_aux_dir=`cd $ac_aux_dir && pwd`
2212
2213 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2214 # Use eval to expand $SHELL
2215 if eval "$MISSING --run true"; then
2216 am_missing_run="$MISSING --run "
2217 else
2218 am_missing_run=
2219 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2220 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2221 fi
2222
2223 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2224 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2225 if test -z "$MKDIR_P"; then
2226 if test "${ac_cv_path_mkdir+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2231 do
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 for ac_prog in mkdir gmkdir; do
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2237 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2238 'mkdir (GNU coreutils) '* | \
2239 'mkdir (coreutils) '* | \
2240 'mkdir (fileutils) '4.1*)
2241 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2242 break 3;;
2243 esac
2244 done
2245 done
2246 done
2247 IFS=$as_save_IFS
2248
2249 fi
2250
2251 if test "${ac_cv_path_mkdir+set}" = set; then
2252 MKDIR_P="$ac_cv_path_mkdir -p"
2253 else
2254 # As a last resort, use the slow shell script. Don't cache a
2255 # value for MKDIR_P within a source directory, because that will
2256 # break other packages using the cache if that directory is
2257 # removed, or if the value is a relative name.
2258 test -d ./--version && rmdir ./--version
2259 MKDIR_P="$ac_install_sh -d"
2260 fi
2261 fi
2262 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2263 echo "${ECHO_T}$MKDIR_P" >&6; }
2264
2265 mkdir_p="$MKDIR_P"
2266 case $mkdir_p in
2267 [\\/$]* | ?:[\\/]*) ;;
2268 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2269 esac
2270
2271 for ac_prog in gawk mawk nawk awk
2272 do
2273 # Extract the first word of "$ac_prog", so it can be a program name with args.
2274 set dummy $ac_prog; ac_word=$2
2275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277 if test "${ac_cv_prog_AWK+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 if test -n "$AWK"; then
2281 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290 ac_cv_prog_AWK="$ac_prog"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
2293 fi
2294 done
2295 done
2296 IFS=$as_save_IFS
2297
2298 fi
2299 fi
2300 AWK=$ac_cv_prog_AWK
2301 if test -n "$AWK"; then
2302 { echo "$as_me:$LINENO: result: $AWK" >&5
2303 echo "${ECHO_T}$AWK" >&6; }
2304 else
2305 { echo "$as_me:$LINENO: result: no" >&5
2306 echo "${ECHO_T}no" >&6; }
2307 fi
2308
2309
2310 test -n "$AWK" && break
2311 done
2312
2313 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2314 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2315 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2316 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 else
2319 cat >conftest.make <<\_ACEOF
2320 SHELL = /bin/sh
2321 all:
2322 @echo '@@@%%%=$(MAKE)=@@@%%%'
2323 _ACEOF
2324 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2325 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2326 *@@@%%%=?*=@@@%%%*)
2327 eval ac_cv_prog_make_${ac_make}_set=yes;;
2328 *)
2329 eval ac_cv_prog_make_${ac_make}_set=no;;
2330 esac
2331 rm -f conftest.make
2332 fi
2333 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2334 { echo "$as_me:$LINENO: result: yes" >&5
2335 echo "${ECHO_T}yes" >&6; }
2336 SET_MAKE=
2337 else
2338 { echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6; }
2340 SET_MAKE="MAKE=${MAKE-make}"
2341 fi
2342
2343 rm -rf .tst 2>/dev/null
2344 mkdir .tst 2>/dev/null
2345 if test -d .tst; then
2346 am__leading_dot=.
2347 else
2348 am__leading_dot=_
2349 fi
2350 rmdir .tst 2>/dev/null
2351
2352 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2353 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2354 # is not polluted with repeated "-I."
2355 am__isrc=' -I$(srcdir)'
2356 # test to see if srcdir already configured
2357 if test -f $srcdir/config.status; then
2358 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2359 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2360 { (exit 1); exit 1; }; }
2361 fi
2362 fi
2363
2364 # test whether we have cygpath
2365 if test -z "$CYGPATH_W"; then
2366 if (cygpath --version) >/dev/null 2>/dev/null; then
2367 CYGPATH_W='cygpath -w'
2368 else
2369 CYGPATH_W=echo
2370 fi
2371 fi
2372
2373
2374 # Define the identity of the package.
2375 PACKAGE='courier-authlib'
2376 VERSION='0.60.2'
2377
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE "$PACKAGE"
2381 _ACEOF
2382
2383
2384 cat >>confdefs.h <<_ACEOF
2385 #define VERSION "$VERSION"
2386 _ACEOF
2387
2388 # Some tools Automake needs.
2389
2390 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2391
2392
2393 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2394
2395
2396 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2397
2398
2399 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2400
2401
2402 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2403
2404 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2405
2406 # Installed binaries are usually stripped using `strip' when the user
2407 # run `make install-strip'. However `strip' might not be the right
2408 # tool to use in cross-compilation environments, therefore Automake
2409 # will honor the `STRIP' environment variable to overrule this program.
2410 if test "$cross_compiling" != no; then
2411 if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}strip; ac_word=$2
2414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2416 if test "${ac_cv_prog_STRIP+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 if test -n "$STRIP"; then
2420 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 break 2
2432 fi
2433 done
2434 done
2435 IFS=$as_save_IFS
2436
2437 fi
2438 fi
2439 STRIP=$ac_cv_prog_STRIP
2440 if test -n "$STRIP"; then
2441 { echo "$as_me:$LINENO: result: $STRIP" >&5
2442 echo "${ECHO_T}$STRIP" >&6; }
2443 else
2444 { echo "$as_me:$LINENO: result: no" >&5
2445 echo "${ECHO_T}no" >&6; }
2446 fi
2447
2448
2449 fi
2450 if test -z "$ac_cv_prog_STRIP"; then
2451 ac_ct_STRIP=$STRIP
2452 # Extract the first word of "strip", so it can be a program name with args.
2453 set dummy strip; ac_word=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459 if test -n "$ac_ct_STRIP"; then
2460 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_ac_ct_STRIP="strip"
2470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2472 fi
2473 done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2480 if test -n "$ac_ct_STRIP"; then
2481 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2482 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2483 else
2484 { echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6; }
2486 fi
2487
2488 if test "x$ac_ct_STRIP" = x; then
2489 STRIP=":"
2490 else
2491 case $cross_compiling:$ac_tool_warned in
2492 yes:)
2493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2494 whose name does not start with the host triplet. If you think this
2495 configuration is useful to you, please write to autoconf@gnu.org." >&5
2496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2497 whose name does not start with the host triplet. If you think this
2498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2499 ac_tool_warned=yes ;;
2500 esac
2501 STRIP=$ac_ct_STRIP
2502 fi
2503 else
2504 STRIP="$ac_cv_prog_STRIP"
2505 fi
2506
2507 fi
2508 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2509
2510 # We need awk for the "check" target. The system "awk" is bad on
2511 # some platforms.
2512 # Always define AMTAR for backward compatibility.
2513
2514 AMTAR=${AMTAR-"${am_missing_run}tar"}
2515
2516 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2517
2518
2519
2520
2521
2522 >confdefs.h # Kill PACKAGE_ macros
2523
2524 LPATH="$PATH:/usr/local/bin"
2525
2526 for ac_prog in gawk mawk nawk awk
2527 do
2528 # Extract the first word of "$ac_prog", so it can be a program name with args.
2529 set dummy $ac_prog; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_AWK+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 if test -n "$AWK"; then
2536 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545 ac_cv_prog_AWK="$ac_prog"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2548 fi
2549 done
2550 done
2551 IFS=$as_save_IFS
2552
2553 fi
2554 fi
2555 AWK=$ac_cv_prog_AWK
2556 if test -n "$AWK"; then
2557 { echo "$as_me:$LINENO: result: $AWK" >&5
2558 echo "${ECHO_T}$AWK" >&6; }
2559 else
2560 { echo "$as_me:$LINENO: result: no" >&5
2561 echo "${ECHO_T}no" >&6; }
2562 fi
2563
2564
2565 test -n "$AWK" && break
2566 done
2567
2568 ac_ext=c
2569 ac_cpp='$CPP $CPPFLAGS'
2570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573 if test -n "$ac_tool_prefix"; then
2574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2575 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578 if test "${ac_cv_prog_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595 done
2596 done
2597 IFS=$as_save_IFS
2598
2599 fi
2600 fi
2601 CC=$ac_cv_prog_CC
2602 if test -n "$CC"; then
2603 { echo "$as_me:$LINENO: result: $CC" >&5
2604 echo "${ECHO_T}$CC" >&6; }
2605 else
2606 { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2608 fi
2609
2610
2611 fi
2612 if test -z "$ac_cv_prog_CC"; then
2613 ac_ct_CC=$CC
2614 # Extract the first word of "gcc", so it can be a program name with args.
2615 set dummy gcc; ac_word=$2
2616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621 if test -n "$ac_ct_CC"; then
2622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_ac_ct_CC="gcc"
2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2634 fi
2635 done
2636 done
2637 IFS=$as_save_IFS
2638
2639 fi
2640 fi
2641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2642 if test -n "$ac_ct_CC"; then
2643 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2644 echo "${ECHO_T}$ac_ct_CC" >&6; }
2645 else
2646 { echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6; }
2648 fi
2649
2650 if test "x$ac_ct_CC" = x; then
2651 CC=""
2652 else
2653 case $cross_compiling:$ac_tool_warned in
2654 yes:)
2655 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2656 whose name does not start with the host triplet. If you think this
2657 configuration is useful to you, please write to autoconf@gnu.org." >&5
2658 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2659 whose name does not start with the host triplet. If you think this
2660 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2661 ac_tool_warned=yes ;;
2662 esac
2663 CC=$ac_ct_CC
2664 fi
2665 else
2666 CC="$ac_cv_prog_CC"
2667 fi
2668
2669 if test -z "$CC"; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2672 set dummy ${ac_tool_prefix}cc; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_CC+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2683 do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_CC="${ac_tool_prefix}cc"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692 done
2693 done
2694 IFS=$as_save_IFS
2695
2696 fi
2697 fi
2698 CC=$ac_cv_prog_CC
2699 if test -n "$CC"; then
2700 { echo "$as_me:$LINENO: result: $CC" >&5
2701 echo "${ECHO_T}$CC" >&6; }
2702 else
2703 { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2705 fi
2706
2707
2708 fi
2709 fi
2710 if test -z "$CC"; then
2711 # Extract the first word of "cc", so it can be a program name with args.
2712 set dummy cc; ac_word=$2
2713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 else
2721 ac_prog_rejected=no
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2724 do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2730 ac_prog_rejected=yes
2731 continue
2732 fi
2733 ac_cv_prog_CC="cc"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 if test $ac_prog_rejected = yes; then
2742 # We found a bogon in the path, so make sure we never use it.
2743 set dummy $ac_cv_prog_CC
2744 shift
2745 if test $# != 0; then
2746 # We chose a different compiler from the bogus one.
2747 # However, it has the same basename, so the bogon will be chosen
2748 # first if we set CC to just the basename; use the full file name.
2749 shift
2750 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2751 fi
2752 fi
2753 fi
2754 fi
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 { echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6; }
2759 else
2760 { echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6; }
2762 fi
2763
2764
2765 fi
2766 if test -z "$CC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in cl.exe
2769 do
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 { echo "$as_me:$LINENO: result: $CC" >&5
2800 echo "${ECHO_T}$CC" >&6; }
2801 else
2802 { echo "$as_me:$LINENO: result: no" >&5
2803 echo "${ECHO_T}no" >&6; }
2804 fi
2805
2806
2807 test -n "$CC" && break
2808 done
2809 fi
2810 if test -z "$CC"; then
2811 ac_ct_CC=$CC
2812 for ac_prog in cl.exe
2813 do
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2818 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821 if test -n "$ac_ct_CC"; then
2822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_CC="$ac_prog"
2832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2842 if test -n "$ac_ct_CC"; then
2843 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2844 echo "${ECHO_T}$ac_ct_CC" >&6; }
2845 else
2846 { echo "$as_me:$LINENO: result: no" >&5
2847 echo "${ECHO_T}no" >&6; }
2848 fi
2849
2850
2851 test -n "$ac_ct_CC" && break
2852 done
2853
2854 if test "x$ac_ct_CC" = x; then
2855 CC=""
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&5
2862 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2863 whose name does not start with the host triplet. If you think this
2864 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2865 ac_tool_warned=yes ;;
2866 esac
2867 CC=$ac_ct_CC
2868 fi
2869 fi
2870
2871 fi
2872
2873
2874 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2875 See \`config.log' for more details." >&5
2876 echo "$as_me: error: no acceptable C compiler found in \$PATH
2877 See \`config.log' for more details." >&2;}
2878 { (exit 1); exit 1; }; }
2879
2880 # Provide some information about the compiler.
2881 echo "$as_me:$LINENO: checking for C compiler version" >&5
2882 ac_compiler=`set X $ac_compile; echo $2`
2883 { (ac_try="$ac_compiler --version >&5"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler --version >&5") 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893 { (ac_try="$ac_compiler -v >&5"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -v >&5") 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903 { (ac_try="$ac_compiler -V >&5"
2904 case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler -V >&5") 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2913
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920
2921 int
2922 main ()
2923 {
2924
2925 ;
2926 return 0;
2927 }
2928 _ACEOF
2929 ac_clean_files_save=$ac_clean_files
2930 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2931 # Try to create an executable without -o first, disregard a.out.
2932 # It will help us diagnose broken compilers, and finding out an intuition
2933 # of exeext.
2934 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2935 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2936 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2937 #
2938 # List of possible output files, starting from the most likely.
2939 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2940 # only as a last resort. b.out is created by i960 compilers.
2941 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2942 #
2943 # The IRIX 6 linker writes into existing files which may not be
2944 # executable, retaining their permissions. Remove them first so a
2945 # subsequent execution test works.
2946 ac_rmfiles=
2947 for ac_file in $ac_files
2948 do
2949 case $ac_file in
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2951 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2952 esac
2953 done
2954 rm -f $ac_rmfiles
2955
2956 if { (ac_try="$ac_link_default"
2957 case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960 esac
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_link_default") 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; then
2966 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2967 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2968 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2969 # so that the user can short-circuit this test for compilers unknown to
2970 # Autoconf.
2971 for ac_file in $ac_files ''
2972 do
2973 test -f "$ac_file" || continue
2974 case $ac_file in
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2976 ;;
2977 [ab].out )
2978 # We found the default executable, but exeext='' is most
2979 # certainly right.
2980 break;;
2981 *.* )
2982 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2983 then :; else
2984 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2985 fi
2986 # We set ac_cv_exeext here because the later test for it is not
2987 # safe: cross compilers may not add the suffix if given an `-o'
2988 # argument, so we may need to know it at that point already.
2989 # Even if this section looks crufty: it has the advantage of
2990 # actually working.
2991 break;;
2992 * )
2993 break;;
2994 esac
2995 done
2996 test "$ac_cv_exeext" = no && ac_cv_exeext=
2997
2998 else
2999 ac_file=''
3000 fi
3001
3002 { echo "$as_me:$LINENO: result: $ac_file" >&5
3003 echo "${ECHO_T}$ac_file" >&6; }
3004 if test -z "$ac_file"; then
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: C compiler cannot create executables
3011 See \`config.log' for more details." >&2;}
3012 { (exit 77); exit 77; }; }
3013 fi
3014
3015 ac_exeext=$ac_cv_exeext
3016
3017 # Check that the compiler produces executables we can run. If not, either
3018 # the compiler is broken, or we cross compile.
3019 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3020 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3021 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3022 # If not cross compiling, check that we can run a simple program.
3023 if test "$cross_compiling" != yes; then
3024 if { ac_try='./$ac_file'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 cross_compiling=no
3035 else
3036 if test "$cross_compiling" = maybe; then
3037 cross_compiling=yes
3038 else
3039 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3040 If you meant to cross compile, use \`--host'.
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: cannot run C compiled programs.
3043 If you meant to cross compile, use \`--host'.
3044 See \`config.log' for more details." >&2;}
3045 { (exit 1); exit 1; }; }
3046 fi
3047 fi
3048 fi
3049 { echo "$as_me:$LINENO: result: yes" >&5
3050 echo "${ECHO_T}yes" >&6; }
3051
3052 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3053 ac_clean_files=$ac_clean_files_save
3054 # Check that the compiler produces executables we can run. If not, either
3055 # the compiler is broken, or we cross compile.
3056 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3057 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3058 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3059 echo "${ECHO_T}$cross_compiling" >&6; }
3060
3061 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3062 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3063 if { (ac_try="$ac_link"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_link") 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; then
3073 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3074 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3075 # work properly (i.e., refer to `conftest.exe'), while it won't with
3076 # `rm'.
3077 for ac_file in conftest.exe conftest conftest.*; do
3078 test -f "$ac_file" || continue
3079 case $ac_file in
3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3081 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3082 break;;
3083 * ) break;;
3084 esac
3085 done
3086 else
3087 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3090 See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }
3092 fi
3093
3094 rm -f conftest$ac_cv_exeext
3095 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3096 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3097
3098 rm -f conftest.$ac_ext
3099 EXEEXT=$ac_cv_exeext
3100 ac_exeext=$EXEEXT
3101 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3102 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3103 if test "${ac_cv_objext+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3112
3113 int
3114 main ()
3115 {
3116
3117 ;
3118 return 0;
3119 }
3120 _ACEOF
3121 rm -f conftest.o conftest.obj
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; then
3132 for ac_file in conftest.o conftest.obj conftest.*; do
3133 test -f "$ac_file" || continue;
3134 case $ac_file in
3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3136 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3137 break;;
3138 esac
3139 done
3140 else
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3145 See \`config.log' for more details." >&5
3146 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3147 See \`config.log' for more details." >&2;}
3148 { (exit 1); exit 1; }; }
3149 fi
3150
3151 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3152 fi
3153 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3154 echo "${ECHO_T}$ac_cv_objext" >&6; }
3155 OBJEXT=$ac_cv_objext
3156 ac_objext=$OBJEXT
3157 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3158 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3159 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h. */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168
3169 int
3170 main ()
3171 {
3172 #ifndef __GNUC__
3173 choke me
3174 #endif
3175
3176 ;
3177 return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } && {
3194 test -z "$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 } && test -s conftest.$ac_objext; then
3197 ac_compiler_gnu=yes
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 ac_compiler_gnu=no
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3207
3208 fi
3209 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3210 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3211 GCC=`test $ac_compiler_gnu = yes && echo yes`
3212 ac_test_CFLAGS=${CFLAGS+set}
3213 ac_save_CFLAGS=$CFLAGS
3214 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3215 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3216 if test "${ac_cv_prog_cc_g+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 ac_save_c_werror_flag=$ac_c_werror_flag
3220 ac_c_werror_flag=yes
3221 ac_cv_prog_cc_g=no
3222 CFLAGS="-g"
3223 cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229
3230 int
3231 main ()
3232 {
3233
3234 ;
3235 return 0;
3236 }
3237 _ACEOF
3238 rm -f conftest.$ac_objext
3239 if { (ac_try="$ac_compile"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_compile") 2>conftest.er1
3246 ac_status=$?
3247 grep -v '^ *+' conftest.er1 >conftest.err
3248 rm -f conftest.er1
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } && {
3252 test -z "$ac_c_werror_flag" ||
3253 test ! -s conftest.err
3254 } && test -s conftest.$ac_objext; then
3255 ac_cv_prog_cc_g=yes
3256 else
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 CFLAGS=""
3261 cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h. */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267
3268 int
3269 main ()
3270 {
3271
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 rm -f conftest.$ac_objext
3277 if { (ac_try="$ac_compile"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283 (eval "$ac_compile") 2>conftest.er1
3284 ac_status=$?
3285 grep -v '^ *+' conftest.er1 >conftest.err
3286 rm -f conftest.er1
3287 cat conftest.err >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); } && {
3290 test -z "$ac_c_werror_flag" ||
3291 test ! -s conftest.err
3292 } && test -s conftest.$ac_objext; then
3293 :
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 ac_c_werror_flag=$ac_save_c_werror_flag
3299 CFLAGS="-g"
3300 cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h. */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306
3307 int
3308 main ()
3309 {
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3332 ac_cv_prog_cc_g=yes
3333 else
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337
3338 fi
3339
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 fi
3342
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 fi
3345
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3348 fi
3349 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3350 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3351 if test "$ac_test_CFLAGS" = set; then
3352 CFLAGS=$ac_save_CFLAGS
3353 elif test $ac_cv_prog_cc_g = yes; then
3354 if test "$GCC" = yes; then
3355 CFLAGS="-g -O2"
3356 else
3357 CFLAGS="-g"
3358 fi
3359 else
3360 if test "$GCC" = yes; then
3361 CFLAGS="-O2"
3362 else
3363 CFLAGS=
3364 fi
3365 fi
3366 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3367 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3368 if test "${ac_cv_prog_cc_c89+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371 ac_cv_prog_cc_c89=no
3372 ac_save_CC=$CC
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 #include <stdarg.h>
3380 #include <stdio.h>
3381 #include <sys/types.h>
3382 #include <sys/stat.h>
3383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3384 struct buf { int x; };
3385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3386 static char *e (p, i)
3387 char **p;
3388 int i;
3389 {
3390 return p[i];
3391 }
3392 static char *f (char * (*g) (char **, int), char **p, ...)
3393 {
3394 char *s;
3395 va_list v;
3396 va_start (v,p);
3397 s = g (p, va_arg (v,int));
3398 va_end (v);
3399 return s;
3400 }
3401
3402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3403 function prototypes and stuff, but not '\xHH' hex character constants.
3404 These don't provoke an error unfortunately, instead are silently treated
3405 as 'x'. The following induces an error, until -std is added to get
3406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3407 array size at least. It's necessary to write '\x00'==0 to get something
3408 that's true only with -std. */
3409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3410
3411 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3412 inside strings and character constants. */
3413 #define FOO(x) 'x'
3414 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3415
3416 int test (int i, double x);
3417 struct s1 {int (*f) (int a);};
3418 struct s2 {int (*f) (double a);};
3419 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3420 int argc;
3421 char **argv;
3422 int
3423 main ()
3424 {
3425 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3431 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3432 do
3433 CC="$ac_save_CC $ac_arg"
3434 rm -f conftest.$ac_objext
3435 if { (ac_try="$ac_compile"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3441 (eval "$ac_compile") 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } && {
3448 test -z "$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3450 } && test -s conftest.$ac_objext; then
3451 ac_cv_prog_cc_c89=$ac_arg
3452 else
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456
3457 fi
3458
3459 rm -f core conftest.err conftest.$ac_objext
3460 test "x$ac_cv_prog_cc_c89" != "xno" && break
3461 done
3462 rm -f conftest.$ac_ext
3463 CC=$ac_save_CC
3464
3465 fi
3466 # AC_CACHE_VAL
3467 case "x$ac_cv_prog_cc_c89" in
3468 x)
3469 { echo "$as_me:$LINENO: result: none needed" >&5
3470 echo "${ECHO_T}none needed" >&6; } ;;
3471 xno)
3472 { echo "$as_me:$LINENO: result: unsupported" >&5
3473 echo "${ECHO_T}unsupported" >&6; } ;;
3474 *)
3475 CC="$CC $ac_cv_prog_cc_c89"
3476 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3477 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3478 esac
3479
3480
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 DEPDIR="${am__leading_dot}deps"
3487
3488 ac_config_commands="$ac_config_commands depfiles"
3489
3490
3491 am_make=${MAKE-make}
3492 cat > confinc << 'END'
3493 am__doit:
3494 @echo done
3495 .PHONY: am__doit
3496 END
3497 # If we don't find an include directive, just comment out the code.
3498 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3499 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3500 am__include="#"
3501 am__quote=
3502 _am_result=none
3503 # First try GNU make style include.
3504 echo "include confinc" > confmf
3505 # We grep out `Entering directory' and `Leaving directory'
3506 # messages which can occur if `w' ends up in MAKEFLAGS.
3507 # In particular we don't look at `^make:' because GNU make might
3508 # be invoked under some other name (usually "gmake"), in which
3509 # case it prints its new name instead of `make'.
3510 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3511 am__include=include
3512 am__quote=
3513 _am_result=GNU
3514 fi
3515 # Now try BSD make style include.
3516 if test "$am__include" = "#"; then
3517 echo '.include "confinc"' > confmf
3518 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3519 am__include=.include
3520 am__quote="\""
3521 _am_result=BSD
3522 fi
3523 fi
3524
3525
3526 { echo "$as_me:$LINENO: result: $_am_result" >&5
3527 echo "${ECHO_T}$_am_result" >&6; }
3528 rm -f confinc confmf
3529
3530 # Check whether --enable-dependency-tracking was given.
3531 if test "${enable_dependency_tracking+set}" = set; then
3532 enableval=$enable_dependency_tracking;
3533 fi
3534
3535 if test "x$enable_dependency_tracking" != xno; then
3536 am_depcomp="$ac_aux_dir/depcomp"
3537 AMDEPBACKSLASH='\'
3538 fi
3539 if test "x$enable_dependency_tracking" != xno; then
3540 AMDEP_TRUE=
3541 AMDEP_FALSE='#'
3542 else
3543 AMDEP_TRUE='#'
3544 AMDEP_FALSE=
3545 fi
3546
3547
3548
3549 depcc="$CC" am_compiler_list=
3550
3551 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3552 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3553 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3557 # We make a subdir and do the tests there. Otherwise we can end up
3558 # making bogus files that we don't know about and never remove. For
3559 # instance it was reported that on HP-UX the gcc test will end up
3560 # making a dummy file named `D' -- because `-MD' means `put the output
3561 # in D'.
3562 mkdir conftest.dir
3563 # Copy depcomp to subdir because otherwise we won't find it if we're
3564 # using a relative directory.
3565 cp "$am_depcomp" conftest.dir
3566 cd conftest.dir
3567 # We will build objects and dependencies in a subdirectory because
3568 # it helps to detect inapplicable dependency modes. For instance
3569 # both Tru64's cc and ICC support -MD to output dependencies as a
3570 # side effect of compilation, but ICC will put the dependencies in
3571 # the current directory while Tru64 will put them in the object
3572 # directory.
3573 mkdir sub
3574
3575 am_cv_CC_dependencies_compiler_type=none
3576 if test "$am_compiler_list" = ""; then
3577 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3578 fi
3579 for depmode in $am_compiler_list; do
3580 # Setup a source with many dependencies, because some compilers
3581 # like to wrap large dependency lists on column 80 (with \), and
3582 # we should not choose a depcomp mode which is confused by this.
3583 #
3584 # We need to recreate these files for each test, as the compiler may
3585 # overwrite some of them when testing with obscure command lines.
3586 # This happens at least with the AIX C compiler.
3587 : > sub/conftest.c
3588 for i in 1 2 3 4 5 6; do
3589 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3590 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3591 # Solaris 8's {/usr,}/bin/sh.
3592 touch sub/conftst$i.h
3593 done
3594 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3595
3596 case $depmode in
3597 nosideeffect)
3598 # after this tag, mechanisms are not by side-effect, so they'll
3599 # only be used when explicitly requested
3600 if test "x$enable_dependency_tracking" = xyes; then
3601 continue
3602 else
3603 break
3604 fi
3605 ;;
3606 none) break ;;
3607 esac
3608 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3609 # mode. It turns out that the SunPro C++ compiler does not properly
3610 # handle `-M -o', and we need to detect this.
3611 if depmode=$depmode \
3612 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3613 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3614 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3615 >/dev/null 2>conftest.err &&
3616 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3617 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3618 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3619 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3620 # icc doesn't choke on unknown options, it will just issue warnings
3621 # or remarks (even with -Werror). So we grep stderr for any message
3622 # that says an option was ignored or not supported.
3623 # When given -MP, icc 7.0 and 7.1 complain thusly:
3624 # icc: Command line warning: ignoring option '-M'; no argument required
3625 # The diagnosis changed in icc 8.0:
3626 # icc: Command line remark: option '-MP' not supported
3627 if (grep 'ignoring option' conftest.err ||
3628 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3629 am_cv_CC_dependencies_compiler_type=$depmode
3630 break
3631 fi
3632 fi
3633 done
3634
3635 cd ..
3636 rm -rf conftest.dir
3637 else
3638 am_cv_CC_dependencies_compiler_type=none
3639 fi
3640
3641 fi
3642 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3643 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3644 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3645
3646 if
3647 test "x$enable_dependency_tracking" != xno \
3648 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3649 am__fastdepCC_TRUE=
3650 am__fastdepCC_FALSE='#'
3651 else
3652 am__fastdepCC_TRUE='#'
3653 am__fastdepCC_FALSE=
3654 fi
3655
3656
3657 ac_ext=c
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3663 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3664 # On Suns, sometimes $CPP names a directory.
3665 if test -n "$CPP" && test -d "$CPP"; then
3666 CPP=
3667 fi
3668 if test -z "$CPP"; then
3669 if test "${ac_cv_prog_CPP+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 # Double quotes because CPP needs to be expanded
3673 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3674 do
3675 ac_preproc_ok=false
3676 for ac_c_preproc_warn_flag in '' yes
3677 do
3678 # Use a header file that comes with gcc, so configuring glibc
3679 # with a fresh cross-compiler works.
3680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3681 # <limits.h> exists even on freestanding compilers.
3682 # On the NeXT, cc -E runs the code through the compiler's parser,
3683 # not just through cpp. "Syntax error" is here to catch this case.
3684 cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 #ifdef __STDC__
3691 # include <limits.h>
3692 #else
3693 # include <assert.h>
3694 #endif
3695 Syntax error
3696 _ACEOF
3697 if { (ac_try="$ac_cpp conftest.$ac_ext"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3704 ac_status=$?
3705 grep -v '^ *+' conftest.er1 >conftest.err
3706 rm -f conftest.er1
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } >/dev/null && {
3710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 }; then
3713 :
3714 else
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718 # Broken: fails on valid input.
3719 continue
3720 fi
3721
3722 rm -f conftest.err conftest.$ac_ext
3723
3724 # OK, works on sane cases. Now check whether nonexistent headers
3725 # can be detected and how.
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h. */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3732 #include <ac_nonexistent.h>
3733 _ACEOF
3734 if { (ac_try="$ac_cpp conftest.$ac_ext"
3735 case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } >/dev/null && {
3747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3748 test ! -s conftest.err
3749 }; then
3750 # Broken: success on invalid input.
3751 continue
3752 else
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3755
3756 # Passes both tests.
3757 ac_preproc_ok=:
3758 break
3759 fi
3760
3761 rm -f conftest.err conftest.$ac_ext
3762
3763 done
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.$ac_ext
3766 if $ac_preproc_ok; then
3767 break
3768 fi
3769
3770 done
3771 ac_cv_prog_CPP=$CPP
3772
3773 fi
3774 CPP=$ac_cv_prog_CPP
3775 else
3776 ac_cv_prog_CPP=$CPP
3777 fi
3778 { echo "$as_me:$LINENO: result: $CPP" >&5
3779 echo "${ECHO_T}$CPP" >&6; }
3780 ac_preproc_ok=false
3781 for ac_c_preproc_warn_flag in '' yes
3782 do
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h. */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3795 #ifdef __STDC__
3796 # include <limits.h>
3797 #else
3798 # include <assert.h>
3799 #endif
3800 Syntax error
3801 _ACEOF
3802 if { (ac_try="$ac_cpp conftest.$ac_ext"
3803 case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806 esac
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } >/dev/null && {
3815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3816 test ! -s conftest.err
3817 }; then
3818 :
3819 else
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3822
3823 # Broken: fails on valid input.
3824 continue
3825 fi
3826
3827 rm -f conftest.err conftest.$ac_ext
3828
3829 # OK, works on sane cases. Now check whether nonexistent headers
3830 # can be detected and how.
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837 #include <ac_nonexistent.h>
3838 _ACEOF
3839 if { (ac_try="$ac_cpp conftest.$ac_ext"
3840 case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } >/dev/null && {
3852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3854 }; then
3855 # Broken: success on invalid input.
3856 continue
3857 else
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861 # Passes both tests.
3862 ac_preproc_ok=:
3863 break
3864 fi
3865
3866 rm -f conftest.err conftest.$ac_ext
3867
3868 done
3869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3870 rm -f conftest.err conftest.$ac_ext
3871 if $ac_preproc_ok; then
3872 :
3873 else
3874 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3875 See \`config.log' for more details." >&5
3876 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3877 See \`config.log' for more details." >&2;}
3878 { (exit 1); exit 1; }; }
3879 fi
3880
3881 ac_ext=c
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3886
3887 # Find a good install program. We prefer a C program (faster),
3888 # so one script is as good as another. But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3893 # AIX /bin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # OS/2's system install, which has a completely different semantic
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3902 if test -z "$INSTALL"; then
3903 if test "${ac_cv_path_install+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 # Account for people who put trailing slashes in PATH elements.
3912 case $as_dir/ in
3913 ./ | .// | /cC/* | \
3914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3916 /usr/ucb/* ) ;;
3917 *)
3918 # OSF1 and SCO ODT 3.0 have their own names for install.
3919 # Don't use installbsd from OSF since it installs stuff as root
3920 # by default.
3921 for ac_prog in ginstall scoinst install; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3924 if test $ac_prog = install &&
3925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3926 # AIX install. It has an incompatible calling convention.
3927 :
3928 elif test $ac_prog = install &&
3929 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930 # program-specific install script used by HP pwplus--don't use.
3931 :
3932 else
3933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3934 break 3
3935 fi
3936 fi
3937 done
3938 done
3939 ;;
3940 esac
3941 done
3942 IFS=$as_save_IFS
3943
3944
3945 fi
3946 if test "${ac_cv_path_install+set}" = set; then
3947 INSTALL=$ac_cv_path_install
3948 else
3949 # As a last resort, use the slow shell script. Don't cache a
3950 # value for INSTALL within a source directory, because that will
3951 # break other packages using the cache if that directory is
3952 # removed, or if the value is a relative name.
3953 INSTALL=$ac_install_sh
3954 fi
3955 fi
3956 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3957 echo "${ECHO_T}$INSTALL" >&6; }
3958
3959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3960 # It thinks the first close brace ends the variable substitution.
3961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3962
3963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3964
3965 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3966
3967 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3968 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3969 LN_S=$as_ln_s
3970 if test "$LN_S" = "ln -s"; then
3971 { echo "$as_me:$LINENO: result: yes" >&5
3972 echo "${ECHO_T}yes" >&6; }
3973 else
3974 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3975 echo "${ECHO_T}no, using $LN_S" >&6; }
3976 fi
3977
3978 AC_PROG_SYSCONFTOOL
3979
3980 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3981 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
3982 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985 ac_check_lib_save_LIBS=$LIBS
3986 LIBS="-lltdl $LIBS"
3987 cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h. */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993
3994 /* Override any GCC internal prototype to avoid an error.
3995 Use char because int might match the return type of a GCC
3996 builtin and then its argument prototype would still apply. */
3997 #ifdef __cplusplus
3998 extern "C"
3999 #endif
4000 char lt_dlinit ();
4001 int
4002 main ()
4003 {
4004 return lt_dlinit ();
4005 ;
4006 return 0;
4007 }
4008 _ACEOF
4009 rm -f conftest.$ac_objext conftest$ac_exeext
4010 if { (ac_try="$ac_link"
4011 case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014 esac
4015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_link") 2>conftest.er1
4017 ac_status=$?
4018 grep -v '^ *+' conftest.er1 >conftest.err
4019 rm -f conftest.er1
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); } && {
4023 test -z "$ac_c_werror_flag" ||
4024 test ! -s conftest.err
4025 } && test -s conftest$ac_exeext &&
4026 $as_test_x conftest$ac_exeext; then
4027 ac_cv_lib_ltdl_lt_dlinit=yes
4028 else
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 ac_cv_lib_ltdl_lt_dlinit=no
4033 fi
4034
4035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4036 conftest$ac_exeext conftest.$ac_ext
4037 LIBS=$ac_check_lib_save_LIBS
4038 fi
4039 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4040 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4041 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4042 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4043 else
4044 if test x"$enable_ltdl_install" = xno; then
4045 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4046 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4047 else
4048 enable_ltdl_install=yes
4049 fi
4050
4051 fi
4052
4053 if test x"$enable_ltdl_install" = x"yes"; then
4054 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4055 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4056 LTDLINCL='-I${top_srcdir}/''libltdl'
4057 else
4058 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4059 LIBLTDL="-lltdl"
4060 LTDLINCL=
4061 fi
4062 # For backwards non-gettext consistent compatibility...
4063 INCLTDL="$LTDLINCL"
4064
4065
4066
4067 # Check whether --enable-shared was given.
4068 if test "${enable_shared+set}" = set; then
4069 enableval=$enable_shared; p=${PACKAGE-default}
4070 case $enableval in
4071 yes) enable_shared=yes ;;
4072 no) enable_shared=no ;;
4073 *)
4074 enable_shared=no
4075 # Look at the argument we got. We use all the common list separators.
4076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4077 for pkg in $enableval; do
4078 IFS="$lt_save_ifs"
4079 if test "X$pkg" = "X$p"; then
4080 enable_shared=yes
4081 fi
4082 done
4083 IFS="$lt_save_ifs"
4084 ;;
4085 esac
4086 else
4087 enable_shared=yes
4088 fi
4089
4090
4091 # Check whether --enable-static was given.
4092 if test "${enable_static+set}" = set; then
4093 enableval=$enable_static; p=${PACKAGE-default}
4094 case $enableval in
4095 yes) enable_static=yes ;;
4096 no) enable_static=no ;;
4097 *)
4098 enable_static=no
4099 # Look at the argument we got. We use all the common list separators.
4100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4101 for pkg in $enableval; do
4102 IFS="$lt_save_ifs"
4103 if test "X$pkg" = "X$p"; then
4104 enable_static=yes
4105 fi
4106 done
4107 IFS="$lt_save_ifs"
4108 ;;
4109 esac
4110 else
4111 enable_static=yes
4112 fi
4113
4114
4115 # Check whether --enable-fast-install was given.
4116 if test "${enable_fast_install+set}" = set; then
4117 enableval=$enable_fast_install; p=${PACKAGE-default}
4118 case $enableval in
4119 yes) enable_fast_install=yes ;;
4120 no) enable_fast_install=no ;;
4121 *)
4122 enable_fast_install=no
4123 # Look at the argument we got. We use all the common list separators.
4124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4125 for pkg in $enableval; do
4126 IFS="$lt_save_ifs"
4127 if test "X$pkg" = "X$p"; then
4128 enable_fast_install=yes
4129 fi
4130 done
4131 IFS="$lt_save_ifs"
4132 ;;
4133 esac
4134 else
4135 enable_fast_install=yes
4136 fi
4137
4138
4139 # Make sure we can run config.sub.
4140 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4141 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4142 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4143 { (exit 1); exit 1; }; }
4144
4145 { echo "$as_me:$LINENO: checking build system type" >&5
4146 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4147 if test "${ac_cv_build+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 ac_build_alias=$build_alias
4151 test "x$ac_build_alias" = x &&
4152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4153 test "x$ac_build_alias" = x &&
4154 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4155 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4156 { (exit 1); exit 1; }; }
4157 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4158 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4159 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4160 { (exit 1); exit 1; }; }
4161
4162 fi
4163 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4164 echo "${ECHO_T}$ac_cv_build" >&6; }
4165 case $ac_cv_build in
4166 *-*-*) ;;
4167 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4168 echo "$as_me: error: invalid value of canonical build" >&2;}
4169 { (exit 1); exit 1; }; };;
4170 esac
4171 build=$ac_cv_build
4172 ac_save_IFS=$IFS; IFS='-'
4173 set x $ac_cv_build
4174 shift
4175 build_cpu=$1
4176 build_vendor=$2
4177 shift; shift
4178 # Remember, the first character of IFS is used to create $*,
4179 # except with old shells:
4180 build_os=$*
4181 IFS=$ac_save_IFS
4182 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4183
4184
4185 { echo "$as_me:$LINENO: checking host system type" >&5
4186 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4187 if test "${ac_cv_host+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190 if test "x$host_alias" = x; then
4191 ac_cv_host=$ac_cv_build
4192 else
4193 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4194 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4195 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4196 { (exit 1); exit 1; }; }
4197 fi
4198
4199 fi
4200 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4201 echo "${ECHO_T}$ac_cv_host" >&6; }
4202 case $ac_cv_host in
4203 *-*-*) ;;
4204 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4205 echo "$as_me: error: invalid value of canonical host" >&2;}
4206 { (exit 1); exit 1; }; };;
4207 esac
4208 host=$ac_cv_host
4209 ac_save_IFS=$IFS; IFS='-'
4210 set x $ac_cv_host
4211 shift
4212 host_cpu=$1
4213 host_vendor=$2
4214 shift; shift
4215 # Remember, the first character of IFS is used to create $*,
4216 # except with old shells:
4217 host_os=$*
4218 IFS=$ac_save_IFS
4219 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4220
4221
4222 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4223 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4224 if test "${lt_cv_path_SED+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227 # Loop through the user's path and test for sed and gsed.
4228 # Then use that list of sed's as ones to test for truncation.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for lt_ac_prog in sed gsed; do
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4237 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4238 fi
4239 done
4240 done
4241 done
4242 lt_ac_max=0
4243 lt_ac_count=0
4244 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4245 # along with /bin/sed that truncates output.
4246 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4247 test ! -f $lt_ac_sed && continue
4248 cat /dev/null > conftest.in
4249 lt_ac_count=0
4250 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4251 # Check for GNU sed and select it if it is found.
4252 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4253 lt_cv_path_SED=$lt_ac_sed
4254 break
4255 fi
4256 while true; do
4257 cat conftest.in conftest.in >conftest.tmp
4258 mv conftest.tmp conftest.in
4259 cp conftest.in conftest.nl
4260 echo >>conftest.nl
4261 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4262 cmp -s conftest.out conftest.nl || break
4263 # 10000 chars as input seems more than enough
4264 test $lt_ac_count -gt 10 && break
4265 lt_ac_count=`expr $lt_ac_count + 1`
4266 if test $lt_ac_count -gt $lt_ac_max; then
4267 lt_ac_max=$lt_ac_count
4268 lt_cv_path_SED=$lt_ac_sed
4269 fi
4270 done
4271 done
4272
4273 fi
4274
4275 SED=$lt_cv_path_SED
4276 { echo "$as_me:$LINENO: result: $SED" >&5
4277 echo "${ECHO_T}$SED" >&6; }
4278
4279 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4280 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4281 if test "${ac_cv_path_GREP+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284 # Extract the first word of "grep ggrep" to use in msg output
4285 if test -z "$GREP"; then
4286 set dummy grep ggrep; ac_prog_name=$2
4287 if test "${ac_cv_path_GREP+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 ac_path_GREP_found=false
4291 # Loop through the user's path and test for each of PROGNAME-LIST
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4294 do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_prog in grep ggrep; do
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4300 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4301 # Check for GNU ac_path_GREP and select it if it is found.
4302 # Check for GNU $ac_path_GREP
4303 case `"$ac_path_GREP" --version 2>&1` in
4304 *GNU*)
4305 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4306 *)
4307 ac_count=0
4308 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4309 while :
4310 do
4311 cat "conftest.in" "conftest.in" >"conftest.tmp"
4312 mv "conftest.tmp" "conftest.in"
4313 cp "conftest.in" "conftest.nl"
4314 echo 'GREP' >> "conftest.nl"
4315 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4317 ac_count=`expr $ac_count + 1`
4318 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4319 # Best one so far, save it but keep looking for a better one
4320 ac_cv_path_GREP="$ac_path_GREP"
4321 ac_path_GREP_max=$ac_count
4322 fi
4323 # 10*(2^10) chars as input seems more than enough
4324 test $ac_count -gt 10 && break
4325 done
4326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4327 esac
4328
4329
4330 $ac_path_GREP_found && break 3
4331 done
4332 done
4333
4334 done
4335 IFS=$as_save_IFS
4336
4337
4338 fi
4339
4340 GREP="$ac_cv_path_GREP"
4341 if test -z "$GREP"; then
4342 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4343 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4344 { (exit 1); exit 1; }; }
4345 fi
4346
4347 else
4348 ac_cv_path_GREP=$GREP
4349 fi
4350
4351
4352 fi
4353 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4354 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4355 GREP="$ac_cv_path_GREP"
4356
4357
4358 { echo "$as_me:$LINENO: checking for egrep" >&5
4359 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4360 if test "${ac_cv_path_EGREP+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4364 then ac_cv_path_EGREP="$GREP -E"
4365 else
4366 # Extract the first word of "egrep" to use in msg output
4367 if test -z "$EGREP"; then
4368 set dummy egrep; ac_prog_name=$2
4369 if test "${ac_cv_path_EGREP+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372 ac_path_EGREP_found=false
4373 # Loop through the user's path and test for each of PROGNAME-LIST
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4376 do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_prog in egrep; do
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4382 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4383 # Check for GNU ac_path_EGREP and select it if it is found.
4384 # Check for GNU $ac_path_EGREP
4385 case `"$ac_path_EGREP" --version 2>&1` in
4386 *GNU*)
4387 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4388 *)
4389 ac_count=0
4390 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4391 while :
4392 do
4393 cat "conftest.in" "conftest.in" >"conftest.tmp"
4394 mv "conftest.tmp" "conftest.in"
4395 cp "conftest.in" "conftest.nl"
4396 echo 'EGREP' >> "conftest.nl"
4397 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4399 ac_count=`expr $ac_count + 1`
4400 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4401 # Best one so far, save it but keep looking for a better one
4402 ac_cv_path_EGREP="$ac_path_EGREP"
4403 ac_path_EGREP_max=$ac_count
4404 fi
4405 # 10*(2^10) chars as input seems more than enough
4406 test $ac_count -gt 10 && break
4407 done
4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4409 esac
4410
4411
4412 $ac_path_EGREP_found && break 3
4413 done
4414 done
4415
4416 done
4417 IFS=$as_save_IFS
4418
4419
4420 fi
4421
4422 EGREP="$ac_cv_path_EGREP"
4423 if test -z "$EGREP"; then
4424 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4425 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4426 { (exit 1); exit 1; }; }
4427 fi
4428
4429 else
4430 ac_cv_path_EGREP=$EGREP
4431 fi
4432
4433
4434 fi
4435 fi
4436 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4437 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4438 EGREP="$ac_cv_path_EGREP"
4439
4440
4441
4442 # Check whether --with-gnu-ld was given.
4443 if test "${with_gnu_ld+set}" = set; then
4444 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4445 else
4446 with_gnu_ld=no
4447 fi
4448
4449 ac_prog=ld
4450 if test "$GCC" = yes; then
4451 # Check if gcc -print-prog-name=ld gives a path.
4452 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4453 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4454 case $host in
4455 *-*-mingw*)
4456 # gcc leaves a trailing carriage return which upsets mingw
4457 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4458 *)
4459 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4460 esac
4461 case $ac_prog in
4462 # Accept absolute paths.
4463 [\\/]* | ?:[\\/]*)
4464 re_direlt='/[^/][^/]*/\.\./'
4465 # Canonicalize the pathname of ld
4466 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4467 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4468 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4469 done
4470 test -z "$LD" && LD="$ac_prog"
4471 ;;
4472 "")
4473 # If it fails, then pretend we aren't using GCC.
4474 ac_prog=ld
4475 ;;
4476 *)
4477 # If it is relative, then search for the first ld in PATH.
4478 with_gnu_ld=unknown
4479 ;;
4480 esac
4481 elif test "$with_gnu_ld" = yes; then
4482 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4483 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4484 else
4485 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4486 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4487 fi
4488 if test "${lt_cv_path_LD+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491 if test -z "$LD"; then
4492 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4493 for ac_dir in $PATH; do
4494 IFS="$lt_save_ifs"
4495 test -z "$ac_dir" && ac_dir=.
4496 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4497 lt_cv_path_LD="$ac_dir/$ac_prog"
4498 # Check to see if the program is GNU ld. I'd rather use --version,
4499 # but apparently some variants of GNU ld only accept -v.
4500 # Break only if it was the GNU/non-GNU ld that we prefer.
4501 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4502 *GNU* | *'with BFD'*)
4503 test "$with_gnu_ld" != no && break
4504 ;;
4505 *)
4506 test "$with_gnu_ld" != yes && break
4507 ;;
4508 esac
4509 fi
4510 done
4511 IFS="$lt_save_ifs"
4512 else
4513 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4514 fi
4515 fi
4516
4517 LD="$lt_cv_path_LD"
4518 if test -n "$LD"; then
4519 { echo "$as_me:$LINENO: result: $LD" >&5
4520 echo "${ECHO_T}$LD" >&6; }
4521 else
4522 { echo "$as_me:$LINENO: result: no" >&5
4523 echo "${ECHO_T}no" >&6; }
4524 fi
4525 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4526 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4527 { (exit 1); exit 1; }; }
4528 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4529 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4530 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4534 case `$LD -v 2>&1 </dev/null` in
4535 *GNU* | *'with BFD'*)
4536 lt_cv_prog_gnu_ld=yes
4537 ;;
4538 *)
4539 lt_cv_prog_gnu_ld=no
4540 ;;
4541 esac
4542 fi
4543 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4544 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4545 with_gnu_ld=$lt_cv_prog_gnu_ld
4546
4547
4548 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4549 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4550 if test "${lt_cv_ld_reload_flag+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553 lt_cv_ld_reload_flag='-r'
4554 fi
4555 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4556 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4557 reload_flag=$lt_cv_ld_reload_flag
4558 case $reload_flag in
4559 "" | " "*) ;;
4560 *) reload_flag=" $reload_flag" ;;
4561 esac
4562 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4563 case $host_os in
4564 darwin*)
4565 if test "$GCC" = yes; then
4566 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4567 else
4568 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4569 fi
4570 ;;
4571 esac
4572
4573 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4574 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4575 if test "${lt_cv_path_NM+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578 if test -n "$NM"; then
4579 # Let the user override the test.
4580 lt_cv_path_NM="$NM"
4581 else
4582 lt_nm_to_check="${ac_tool_prefix}nm"
4583 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4584 lt_nm_to_check="$lt_nm_to_check nm"
4585 fi
4586 for lt_tmp_nm in $lt_nm_to_check; do
4587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4588 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4589 IFS="$lt_save_ifs"
4590 test -z "$ac_dir" && ac_dir=.
4591 tmp_nm="$ac_dir/$lt_tmp_nm"
4592 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4593 # Check to see if the nm accepts a BSD-compat flag.
4594 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4595 # nm: unknown option "B" ignored
4596 # Tru64's nm complains that /dev/null is an invalid object file
4597 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4598 */dev/null* | *'Invalid file or object type'*)
4599 lt_cv_path_NM="$tmp_nm -B"
4600 break
4601 ;;
4602 *)
4603 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4604 */dev/null*)
4605 lt_cv_path_NM="$tmp_nm -p"
4606 break
4607 ;;
4608 *)
4609 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4610 continue # so that we can try to find one that supports BSD flags
4611 ;;
4612 esac
4613 ;;
4614 esac
4615 fi
4616 done
4617 IFS="$lt_save_ifs"
4618 done
4619 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4620 fi
4621 fi
4622 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4623 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4624 NM="$lt_cv_path_NM"
4625
4626 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4627 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4628 if test "${lt_cv_deplibs_check_method+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631 lt_cv_file_magic_cmd='$MAGIC_CMD'
4632 lt_cv_file_magic_test_file=
4633 lt_cv_deplibs_check_method='unknown'
4634 # Need to set the preceding variable on all platforms that support
4635 # interlibrary dependencies.
4636 # 'none' -- dependencies not supported.
4637 # `unknown' -- same as none, but documents that we really don't know.
4638 # 'pass_all' -- all dependencies passed with no checks.
4639 # 'test_compile' -- check by making test program.
4640 # 'file_magic [[regex]]' -- check by looking for files in library path
4641 # which responds to the $file_magic_cmd with a given extended regex.
4642 # If you have `file' or equivalent on your system and you're not sure
4643 # whether `pass_all' will *always* work, you probably want this one.
4644
4645 case $host_os in
4646 aix4* | aix5*)
4647 lt_cv_deplibs_check_method=pass_all
4648 ;;
4649
4650 beos*)
4651 lt_cv_deplibs_check_method=pass_all
4652 ;;
4653
4654 bsdi[45]*)
4655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4656 lt_cv_file_magic_cmd='/usr/bin/file -L'
4657 lt_cv_file_magic_test_file=/shlib/libc.so
4658 ;;
4659
4660 cygwin*)
4661 # func_win32_libid is a shell function defined in ltmain.sh
4662 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4663 lt_cv_file_magic_cmd='func_win32_libid'
4664 ;;
4665
4666 mingw* | pw32*)
4667 # Base MSYS/MinGW do not provide the 'file' command needed by
4668 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4669 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4670 lt_cv_file_magic_cmd='$OBJDUMP -f'
4671 ;;
4672
4673 darwin* | rhapsody*)
4674 lt_cv_deplibs_check_method=pass_all
4675 ;;
4676
4677 freebsd* | dragonfly*)
4678 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4679 case $host_cpu in
4680 i*86 )
4681 # Not sure whether the presence of OpenBSD here was a mistake.
4682 # Let's accept both of them until this is cleared up.
4683 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4684 lt_cv_file_magic_cmd=/usr/bin/file
4685 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4686 ;;
4687 esac
4688 else
4689 lt_cv_deplibs_check_method=pass_all
4690 fi
4691 ;;
4692
4693 gnu*)
4694 lt_cv_deplibs_check_method=pass_all
4695 ;;
4696
4697 hpux10.20* | hpux11*)
4698 lt_cv_file_magic_cmd=/usr/bin/file
4699 case $host_cpu in
4700 ia64*)
4701 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4702 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4703 ;;
4704 hppa*64*)
4705 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]'
4706 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4707 ;;
4708 *)
4709 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4710 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4711 ;;
4712 esac
4713 ;;
4714
4715 interix3*)
4716 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4718 ;;
4719
4720 irix5* | irix6* | nonstopux*)
4721 case $LD in
4722 *-32|*"-32 ") libmagic=32-bit;;
4723 *-n32|*"-n32 ") libmagic=N32;;
4724 *-64|*"-64 ") libmagic=64-bit;;
4725 *) libmagic=never-match;;
4726 esac
4727 lt_cv_deplibs_check_method=pass_all
4728 ;;
4729
4730 # This must be Linux ELF.
4731 linux* | k*bsd*-gnu)
4732 lt_cv_deplibs_check_method=pass_all
4733 ;;
4734
4735 netbsd* | netbsdelf*-gnu)
4736 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4738 else
4739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4740 fi
4741 ;;
4742
4743 newos6*)
4744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4745 lt_cv_file_magic_cmd=/usr/bin/file
4746 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4747 ;;
4748
4749 nto-qnx*)
4750 lt_cv_deplibs_check_method=unknown
4751 ;;
4752
4753 openbsd*)
4754 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4756 else
4757 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4758 fi
4759 ;;
4760
4761 osf3* | osf4* | osf5*)
4762 lt_cv_deplibs_check_method=pass_all
4763 ;;
4764
4765 solaris*)
4766 lt_cv_deplibs_check_method=pass_all
4767 ;;
4768
4769 sysv4 | sysv4.3*)
4770 case $host_vendor in
4771 motorola)
4772 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]'
4773 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4774 ;;
4775 ncr)
4776 lt_cv_deplibs_check_method=pass_all
4777 ;;
4778 sequent)
4779 lt_cv_file_magic_cmd='/bin/file'
4780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4781 ;;
4782 sni)
4783 lt_cv_file_magic_cmd='/bin/file'
4784 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4785 lt_cv_file_magic_test_file=/lib/libc.so
4786 ;;
4787 siemens)
4788 lt_cv_deplibs_check_method=pass_all
4789 ;;
4790 pc)
4791 lt_cv_deplibs_check_method=pass_all
4792 ;;
4793 esac
4794 ;;
4795
4796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4797 lt_cv_deplibs_check_method=pass_all
4798 ;;
4799 esac
4800
4801 fi
4802 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4803 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4804 file_magic_cmd=$lt_cv_file_magic_cmd
4805 deplibs_check_method=$lt_cv_deplibs_check_method
4806 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4807
4808
4809
4810
4811 # If no C compiler was specified, use CC.
4812 LTCC=${LTCC-"$CC"}
4813
4814 # If no C compiler flags were specified, use CFLAGS.
4815 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4816
4817 # Allow CC to be a program name with arguments.
4818 compiler=$CC
4819
4820 # Check whether --enable-libtool-lock was given.
4821 if test "${enable_libtool_lock+set}" = set; then
4822 enableval=$enable_libtool_lock;
4823 fi
4824
4825 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4826
4827 # Some flags need to be propagated to the compiler or linker for good
4828 # libtool support.
4829 case $host in
4830 ia64-*-hpux*)
4831 # Find out which ABI we are using.
4832 echo 'int i;' > conftest.$ac_ext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; then
4838 case `/usr/bin/file conftest.$ac_objext` in
4839 *ELF-32*)
4840 HPUX_IA64_MODE="32"
4841 ;;
4842 *ELF-64*)
4843 HPUX_IA64_MODE="64"
4844 ;;
4845 esac
4846 fi
4847 rm -rf conftest*
4848 ;;
4849 *-*-irix6*)
4850 # Find out which ABI we are using.
4851 echo '#line 4851 "configure"' > conftest.$ac_ext
4852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }; then
4857 if test "$lt_cv_prog_gnu_ld" = yes; then
4858 case `/usr/bin/file conftest.$ac_objext` in
4859 *32-bit*)
4860 LD="${LD-ld} -melf32bsmip"
4861 ;;
4862 *N32*)
4863 LD="${LD-ld} -melf32bmipn32"
4864 ;;
4865 *64-bit*)
4866 LD="${LD-ld} -melf64bmip"
4867 ;;
4868 esac
4869 else
4870 case `/usr/bin/file conftest.$ac_objext` in
4871 *32-bit*)
4872 LD="${LD-ld} -32"
4873 ;;
4874 *N32*)
4875 LD="${LD-ld} -n32"
4876 ;;
4877 *64-bit*)
4878 LD="${LD-ld} -64"
4879 ;;
4880 esac
4881 fi
4882 fi
4883 rm -rf conftest*
4884 ;;
4885
4886 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4887 # Find out which ABI we are using.
4888 echo 'int i;' > conftest.$ac_ext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; then
4894 case `/usr/bin/file conftest.o` in
4895 *32-bit*)
4896 case $host in
4897 x86_64-*linux*)
4898 LD="${LD-ld} -m elf_i386"
4899 ;;
4900 ppc64-*linux*|powerpc64-*linux*)
4901 LD="${LD-ld} -m elf32ppclinux"
4902 ;;
4903 s390x-*linux*)
4904 LD="${LD-ld} -m elf_s390"
4905 ;;
4906 sparc64-*linux*)
4907 LD="${LD-ld} -m elf32_sparc"
4908 ;;
4909 esac
4910 ;;
4911 *64-bit*)
4912 case $host in
4913 x86_64-*linux*)
4914 LD="${LD-ld} -m elf_x86_64"
4915 ;;
4916 ppc*-*linux*|powerpc*-*linux*)
4917 LD="${LD-ld} -m elf64ppc"
4918 ;;
4919 s390*-*linux*)
4920 LD="${LD-ld} -m elf64_s390"
4921 ;;
4922 sparc*-*linux*)
4923 LD="${LD-ld} -m elf64_sparc"
4924 ;;
4925 esac
4926 ;;
4927 esac
4928 fi
4929 rm -rf conftest*
4930 ;;
4931
4932 *-*-sco3.2v5*)
4933 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4934 SAVE_CFLAGS="$CFLAGS"
4935 CFLAGS="$CFLAGS -belf"
4936 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4937 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4938 if test "${lt_cv_cc_needs_belf+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 ac_ext=c
4942 ac_cpp='$CPP $CPPFLAGS'
4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946
4947 cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h. */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4953
4954 int
4955 main ()
4956 {
4957
4958 ;
4959 return 0;
4960 }
4961 _ACEOF
4962 rm -f conftest.$ac_objext conftest$ac_exeext
4963 if { (ac_try="$ac_link"
4964 case "(($ac_try" in
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4967 esac
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_link") 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest$ac_exeext &&
4979 $as_test_x conftest$ac_exeext; then
4980 lt_cv_cc_needs_belf=yes
4981 else
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 lt_cv_cc_needs_belf=no
4986 fi
4987
4988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4989 conftest$ac_exeext conftest.$ac_ext
4990 ac_ext=c
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995
4996 fi
4997 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4998 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4999 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5000 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5001 CFLAGS="$SAVE_CFLAGS"
5002 fi
5003 ;;
5004 sparc*-*solaris*)
5005 # Find out which ABI we are using.
5006 echo 'int i;' > conftest.$ac_ext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>&5
5009 ac_status=$?
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); }; then
5012 case `/usr/bin/file conftest.o` in
5013 *64-bit*)
5014 case $lt_cv_prog_gnu_ld in
5015 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5016 *) LD="${LD-ld} -64" ;;
5017 esac
5018 ;;
5019 esac
5020 fi
5021 rm -rf conftest*
5022 ;;
5023
5024
5025 esac
5026
5027 need_locks="$enable_libtool_lock"
5028
5029
5030
5031 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5033 if test "${ac_cv_header_stdc+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h. */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 #include <stdlib.h>
5043 #include <stdarg.h>
5044 #include <string.h>
5045 #include <float.h>
5046
5047 int
5048 main ()
5049 {
5050
5051 ;
5052 return 0;
5053 }
5054 _ACEOF
5055 rm -f conftest.$ac_objext
5056 if { (ac_try="$ac_compile"
5057 case "(($ac_try" in
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5060 esac
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_compile") 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest.$ac_objext; then
5072 ac_cv_header_stdc=yes
5073 else
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 ac_cv_header_stdc=no
5078 fi
5079
5080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081
5082 if test $ac_cv_header_stdc = yes; then
5083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5084 cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h. */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 #include <string.h>
5091
5092 _ACEOF
5093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5094 $EGREP "memchr" >/dev/null 2>&1; then
5095 :
5096 else
5097 ac_cv_header_stdc=no
5098 fi
5099 rm -f conftest*
5100
5101 fi
5102
5103 if test $ac_cv_header_stdc = yes; then
5104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 #include <stdlib.h>
5112
5113 _ACEOF
5114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5115 $EGREP "free" >/dev/null 2>&1; then
5116 :
5117 else
5118 ac_cv_header_stdc=no
5119 fi
5120 rm -f conftest*
5121
5122 fi
5123
5124 if test $ac_cv_header_stdc = yes; then
5125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5126 if test "$cross_compiling" = yes; then
5127 :
5128 else
5129 cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h. */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h. */
5135 #include <ctype.h>
5136 #include <stdlib.h>
5137 #if ((' ' & 0x0FF) == 0x020)
5138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5140 #else
5141 # define ISLOWER(c) \
5142 (('a' <= (c) && (c) <= 'i') \
5143 || ('j' <= (c) && (c) <= 'r') \
5144 || ('s' <= (c) && (c) <= 'z'))
5145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5146 #endif
5147
5148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5149 int
5150 main ()
5151 {
5152 int i;
5153 for (i = 0; i < 256; i++)
5154 if (XOR (islower (i), ISLOWER (i))
5155 || toupper (i) != TOUPPER (i))
5156 return 2;
5157 return 0;
5158 }
5159 _ACEOF
5160 rm -f conftest$ac_exeext
5161 if { (ac_try="$ac_link"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_link") 2>&5
5168 ac_status=$?
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5171 { (case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174 esac
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_try") 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5180 :
5181 else
5182 echo "$as_me: program exited with status $ac_status" >&5
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ( exit $ac_status )
5187 ac_cv_header_stdc=no
5188 fi
5189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5190 fi
5191
5192
5193 fi
5194 fi
5195 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5196 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5197 if test $ac_cv_header_stdc = yes; then
5198
5199 cat >>confdefs.h <<\_ACEOF
5200 #define STDC_HEADERS 1
5201 _ACEOF
5202
5203 fi
5204
5205 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5216 inttypes.h stdint.h unistd.h
5217 do
5218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h. */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 $ac_includes_default
5231
5232 #include <$ac_header>
5233 _ACEOF
5234 rm -f conftest.$ac_objext
5235 if { (ac_try="$ac_compile"
5236 case "(($ac_try" in
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5239 esac
5240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5241 (eval "$ac_compile") 2>conftest.er1
5242 ac_status=$?
5243 grep -v '^ *+' conftest.er1 >conftest.err
5244 rm -f conftest.er1
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } && {
5248 test -z "$ac_c_werror_flag" ||
5249 test ! -s conftest.err
5250 } && test -s conftest.$ac_objext; then
5251 eval "$as_ac_Header=yes"
5252 else
5253 echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5255
5256 eval "$as_ac_Header=no"
5257 fi
5258
5259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 fi
5261 ac_res=`eval echo '${'$as_ac_Header'}'`
5262 { echo "$as_me:$LINENO: result: $ac_res" >&5
5263 echo "${ECHO_T}$ac_res" >&6; }
5264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5265 cat >>confdefs.h <<_ACEOF
5266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5267 _ACEOF
5268
5269 fi
5270
5271 done
5272
5273
5274
5275 for ac_header in dlfcn.h
5276 do
5277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 fi
5284 ac_res=`eval echo '${'$as_ac_Header'}'`
5285 { echo "$as_me:$LINENO: result: $ac_res" >&5
5286 echo "${ECHO_T}$ac_res" >&6; }
5287 else
5288 # Is the header compilable?
5289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5298 #include <$ac_header>
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (ac_try="$ac_compile"
5302 case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest.$ac_objext; then
5317 ac_header_compiler=yes
5318 else
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322 ac_header_compiler=no
5323 fi
5324
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5327 echo "${ECHO_T}$ac_header_compiler" >&6; }
5328
5329 # Is the header present?
5330 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <$ac_header>
5339 _ACEOF
5340 if { (ac_try="$ac_cpp conftest.$ac_ext"
5341 case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344 esac
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } >/dev/null && {
5353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5354 test ! -s conftest.err
5355 }; then
5356 ac_header_preproc=yes
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 ac_header_preproc=no
5362 fi
5363
5364 rm -f conftest.err conftest.$ac_ext
5365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5366 echo "${ECHO_T}$ac_header_preproc" >&6; }
5367
5368 # So? What about this header?
5369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5370 yes:no: )
5371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5375 ac_header_preproc=yes
5376 ;;
5377 no:yes:* )
5378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5390 ( cat <<\_ASBOX
5391 ## -------------------------------------------------- ##
5392 ## Report this to courier-users@lists.sourceforge.net ##
5393 ## -------------------------------------------------- ##
5394 _ASBOX
5395 ) | sed "s/^/$as_me: WARNING: /" >&2
5396 ;;
5397 esac
5398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 else
5403 eval "$as_ac_Header=\$ac_header_preproc"
5404 fi
5405 ac_res=`eval echo '${'$as_ac_Header'}'`
5406 { echo "$as_me:$LINENO: result: $ac_res" >&5
5407 echo "${ECHO_T}$ac_res" >&6; }
5408
5409 fi
5410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5411 cat >>confdefs.h <<_ACEOF
5412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5413 _ACEOF
5414
5415 fi
5416
5417 done
5418
5419 ac_ext=cpp
5420 ac_cpp='$CXXCPP $CPPFLAGS'
5421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5424 if test -z "$CXX"; then
5425 if test -n "$CCC"; then
5426 CXX=$CCC
5427 else
5428 if test -n "$ac_tool_prefix"; then
5429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5430 do
5431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5435 if test "${ac_cv_prog_CXX+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438 if test -n "$CXX"; then
5439 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5451 fi
5452 done
5453 done
5454 IFS=$as_save_IFS
5455
5456 fi
5457 fi
5458 CXX=$ac_cv_prog_CXX
5459 if test -n "$CXX"; then
5460 { echo "$as_me:$LINENO: result: $CXX" >&5
5461 echo "${ECHO_T}$CXX" >&6; }
5462 else
5463 { echo "$as_me:$LINENO: result: no" >&5
5464 echo "${ECHO_T}no" >&6; }
5465 fi
5466
5467
5468 test -n "$CXX" && break
5469 done
5470 fi
5471 if test -z "$CXX"; then
5472 ac_ct_CXX=$CXX
5473 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5474 do
5475 # Extract the first word of "$ac_prog", so it can be a program name with args.
5476 set dummy $ac_prog; ac_word=$2
5477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5479 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482 if test -n "$ac_ct_CXX"; then
5483 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5487 do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_ac_ct_CXX="$ac_prog"
5493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5495 fi
5496 done
5497 done
5498 IFS=$as_save_IFS
5499
5500 fi
5501 fi
5502 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5503 if test -n "$ac_ct_CXX"; then
5504 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5505 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5506 else
5507 { echo "$as_me:$LINENO: result: no" >&5
5508 echo "${ECHO_T}no" >&6; }
5509 fi
5510
5511
5512 test -n "$ac_ct_CXX" && break
5513 done
5514
5515 if test "x$ac_ct_CXX" = x; then
5516 CXX="g++"
5517 else
5518 case $cross_compiling:$ac_tool_warned in
5519 yes:)
5520 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5521 whose name does not start with the host triplet. If you think this
5522 configuration is useful to you, please write to autoconf@gnu.org." >&5
5523 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5524 whose name does not start with the host triplet. If you think this
5525 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5526 ac_tool_warned=yes ;;
5527 esac
5528 CXX=$ac_ct_CXX
5529 fi
5530 fi
5531
5532 fi
5533 fi
5534 # Provide some information about the compiler.
5535 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5536 ac_compiler=`set X $ac_compile; echo $2`
5537 { (ac_try="$ac_compiler --version >&5"
5538 case "(($ac_try" in
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5541 esac
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_compiler --version >&5") 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }
5547 { (ac_try="$ac_compiler -v >&5"
5548 case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551 esac
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_compiler -v >&5") 2>&5
5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }
5557 { (ac_try="$ac_compiler -V >&5"
5558 case "(($ac_try" in
5559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5561 esac
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_compiler -V >&5") 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }
5567
5568 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5569 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5570 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579
5580 int
5581 main ()
5582 {
5583 #ifndef __GNUC__
5584 choke me
5585 #endif
5586
5587 ;
5588 return 0;
5589 }
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5593 case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_compile") 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && {
5605 test -z "$ac_cxx_werror_flag" ||
5606 test ! -s conftest.err
5607 } && test -s conftest.$ac_objext; then
5608 ac_compiler_gnu=yes
5609 else
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613 ac_compiler_gnu=no
5614 fi
5615
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5618
5619 fi
5620 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5621 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5622 GXX=`test $ac_compiler_gnu = yes && echo yes`
5623 ac_test_CXXFLAGS=${CXXFLAGS+set}
5624 ac_save_CXXFLAGS=$CXXFLAGS
5625 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5626 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5627 if test "${ac_cv_prog_cxx_g+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5631 ac_cxx_werror_flag=yes
5632 ac_cv_prog_cxx_g=no
5633 CXXFLAGS="-g"
5634 cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h. */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640
5641 int
5642 main ()
5643 {
5644
5645 ;
5646 return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (ac_try="$ac_compile"
5651 case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654 esac
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compile") 2>conftest.er1
5657 ac_status=$?
5658 grep -v '^ *+' conftest.er1 >conftest.err
5659 rm -f conftest.er1
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } && {
5663 test -z "$ac_cxx_werror_flag" ||
5664 test ! -s conftest.err
5665 } && test -s conftest.$ac_objext; then
5666 ac_cv_prog_cxx_g=yes
5667 else
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5670
5671 CXXFLAGS=""
5672 cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h. */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678
5679 int
5680 main ()
5681 {
5682
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext
5688 if { (ac_try="$ac_compile"
5689 case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692 esac
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_compile") 2>conftest.er1
5695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_cxx_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest.$ac_objext; then
5704 :
5705 else
5706 echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5710 CXXFLAGS="-g"
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717
5718 int
5719 main ()
5720 {
5721
5722 ;
5723 return 0;
5724 }
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (ac_try="$ac_compile"
5728 case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731 esac
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_compile") 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_cxx_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest.$ac_objext; then
5743 ac_cv_prog_cxx_g=yes
5744 else
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5747
5748
5749 fi
5750
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 fi
5753
5754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755 fi
5756
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5759 fi
5760 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5761 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5762 if test "$ac_test_CXXFLAGS" = set; then
5763 CXXFLAGS=$ac_save_CXXFLAGS
5764 elif test $ac_cv_prog_cxx_g = yes; then
5765 if test "$GXX" = yes; then
5766 CXXFLAGS="-g -O2"
5767 else
5768 CXXFLAGS="-g"
5769 fi
5770 else
5771 if test "$GXX" = yes; then
5772 CXXFLAGS="-O2"
5773 else
5774 CXXFLAGS=
5775 fi
5776 fi
5777 ac_ext=cpp
5778 ac_cpp='$CXXCPP $CPPFLAGS'
5779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5782
5783 depcc="$CXX" am_compiler_list=
5784
5785 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5786 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5787 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5791 # We make a subdir and do the tests there. Otherwise we can end up
5792 # making bogus files that we don't know about and never remove. For
5793 # instance it was reported that on HP-UX the gcc test will end up
5794 # making a dummy file named `D' -- because `-MD' means `put the output
5795 # in D'.
5796 mkdir conftest.dir
5797 # Copy depcomp to subdir because otherwise we won't find it if we're
5798 # using a relative directory.
5799 cp "$am_depcomp" conftest.dir
5800 cd conftest.dir
5801 # We will build objects and dependencies in a subdirectory because
5802 # it helps to detect inapplicable dependency modes. For instance
5803 # both Tru64's cc and ICC support -MD to output dependencies as a
5804 # side effect of compilation, but ICC will put the dependencies in
5805 # the current directory while Tru64 will put them in the object
5806 # directory.
5807 mkdir sub
5808
5809 am_cv_CXX_dependencies_compiler_type=none
5810 if test "$am_compiler_list" = ""; then
5811 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5812 fi
5813 for depmode in $am_compiler_list; do
5814 # Setup a source with many dependencies, because some compilers
5815 # like to wrap large dependency lists on column 80 (with \), and
5816 # we should not choose a depcomp mode which is confused by this.
5817 #
5818 # We need to recreate these files for each test, as the compiler may
5819 # overwrite some of them when testing with obscure command lines.
5820 # This happens at least with the AIX C compiler.
5821 : > sub/conftest.c
5822 for i in 1 2 3 4 5 6; do
5823 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5824 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5825 # Solaris 8's {/usr,}/bin/sh.
5826 touch sub/conftst$i.h
5827 done
5828 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5829
5830 case $depmode in
5831 nosideeffect)
5832 # after this tag, mechanisms are not by side-effect, so they'll
5833 # only be used when explicitly requested
5834 if test "x$enable_dependency_tracking" = xyes; then
5835 continue
5836 else
5837 break
5838 fi
5839 ;;
5840 none) break ;;
5841 esac
5842 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5843 # mode. It turns out that the SunPro C++ compiler does not properly
5844 # handle `-M -o', and we need to detect this.
5845 if depmode=$depmode \
5846 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5847 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5848 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5849 >/dev/null 2>conftest.err &&
5850 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5851 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5852 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5853 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5854 # icc doesn't choke on unknown options, it will just issue warnings
5855 # or remarks (even with -Werror). So we grep stderr for any message
5856 # that says an option was ignored or not supported.
5857 # When given -MP, icc 7.0 and 7.1 complain thusly:
5858 # icc: Command line warning: ignoring option '-M'; no argument required
5859 # The diagnosis changed in icc 8.0:
5860 # icc: Command line remark: option '-MP' not supported
5861 if (grep 'ignoring option' conftest.err ||
5862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5863 am_cv_CXX_dependencies_compiler_type=$depmode
5864 break
5865 fi
5866 fi
5867 done
5868
5869 cd ..
5870 rm -rf conftest.dir
5871 else
5872 am_cv_CXX_dependencies_compiler_type=none
5873 fi
5874
5875 fi
5876 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5877 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5878 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5879
5880 if
5881 test "x$enable_dependency_tracking" != xno \
5882 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5883 am__fastdepCXX_TRUE=
5884 am__fastdepCXX_FALSE='#'
5885 else
5886 am__fastdepCXX_TRUE='#'
5887 am__fastdepCXX_FALSE=
5888 fi
5889
5890
5891
5892
5893 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5894 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5895 (test "X$CXX" != "Xg++"))) ; then
5896 ac_ext=cpp
5897 ac_cpp='$CXXCPP $CPPFLAGS'
5898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5901 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5902 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5903 if test -z "$CXXCPP"; then
5904 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907 # Double quotes because CXXCPP needs to be expanded
5908 for CXXCPP in "$CXX -E" "/lib/cpp"
5909 do
5910 ac_preproc_ok=false
5911 for ac_cxx_preproc_warn_flag in '' yes
5912 do
5913 # Use a header file that comes with gcc, so configuring glibc
5914 # with a fresh cross-compiler works.
5915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5916 # <limits.h> exists even on freestanding compilers.
5917 # On the NeXT, cc -E runs the code through the compiler's parser,
5918 # not just through cpp. "Syntax error" is here to catch this case.
5919 cat >conftest.$ac_ext <<_ACEOF
5920 /* confdefs.h. */
5921 _ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 #ifdef __STDC__
5926 # include <limits.h>
5927 #else
5928 # include <assert.h>
5929 #endif
5930 Syntax error
5931 _ACEOF
5932 if { (ac_try="$ac_cpp conftest.$ac_ext"
5933 case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936 esac
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5939 ac_status=$?
5940 grep -v '^ *+' conftest.er1 >conftest.err
5941 rm -f conftest.er1
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } >/dev/null && {
5945 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5946 test ! -s conftest.err
5947 }; then
5948 :
5949 else
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 # Broken: fails on valid input.
5954 continue
5955 fi
5956
5957 rm -f conftest.err conftest.$ac_ext
5958
5959 # OK, works on sane cases. Now check whether nonexistent headers
5960 # can be detected and how.
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h. */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 #include <ac_nonexistent.h>
5968 _ACEOF
5969 if { (ac_try="$ac_cpp conftest.$ac_ext"
5970 case "(($ac_try" in
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5973 esac
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } >/dev/null && {
5982 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5983 test ! -s conftest.err
5984 }; then
5985 # Broken: success on invalid input.
5986 continue
5987 else
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991 # Passes both tests.
5992 ac_preproc_ok=:
5993 break
5994 fi
5995
5996 rm -f conftest.err conftest.$ac_ext
5997
5998 done
5999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6000 rm -f conftest.err conftest.$ac_ext
6001 if $ac_preproc_ok; then
6002 break
6003 fi
6004
6005 done
6006 ac_cv_prog_CXXCPP=$CXXCPP
6007
6008 fi
6009 CXXCPP=$ac_cv_prog_CXXCPP
6010 else
6011 ac_cv_prog_CXXCPP=$CXXCPP
6012 fi
6013 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6014 echo "${ECHO_T}$CXXCPP" >&6; }
6015 ac_preproc_ok=false
6016 for ac_cxx_preproc_warn_flag in '' yes
6017 do
6018 # Use a header file that comes with gcc, so configuring glibc
6019 # with a fresh cross-compiler works.
6020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6021 # <limits.h> exists even on freestanding compilers.
6022 # On the NeXT, cc -E runs the code through the compiler's parser,
6023 # not just through cpp. "Syntax error" is here to catch this case.
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h. */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 #ifdef __STDC__
6031 # include <limits.h>
6032 #else
6033 # include <assert.h>
6034 #endif
6035 Syntax error
6036 _ACEOF
6037 if { (ac_try="$ac_cpp conftest.$ac_ext"
6038 case "(($ac_try" in
6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6041 esac
6042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6044 ac_status=$?
6045 grep -v '^ *+' conftest.er1 >conftest.err
6046 rm -f conftest.er1
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } >/dev/null && {
6050 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6051 test ! -s conftest.err
6052 }; then
6053 :
6054 else
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6057
6058 # Broken: fails on valid input.
6059 continue
6060 fi
6061
6062 rm -f conftest.err conftest.$ac_ext
6063
6064 # OK, works on sane cases. Now check whether nonexistent headers
6065 # can be detected and how.
6066 cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h. */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 #include <ac_nonexistent.h>
6073 _ACEOF
6074 if { (ac_try="$ac_cpp conftest.$ac_ext"
6075 case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078 esac
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6081 ac_status=$?
6082 grep -v '^ *+' conftest.er1 >conftest.err
6083 rm -f conftest.er1
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } >/dev/null && {
6087 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6088 test ! -s conftest.err
6089 }; then
6090 # Broken: success on invalid input.
6091 continue
6092 else
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6095
6096 # Passes both tests.
6097 ac_preproc_ok=:
6098 break
6099 fi
6100
6101 rm -f conftest.err conftest.$ac_ext
6102
6103 done
6104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6105 rm -f conftest.err conftest.$ac_ext
6106 if $ac_preproc_ok; then
6107 :
6108 else
6109 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6110 See \`config.log' for more details." >&5
6111 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6112 See \`config.log' for more details." >&2;}
6113 { (exit 1); exit 1; }; }
6114 fi
6115
6116 ac_ext=cpp
6117 ac_cpp='$CXXCPP $CPPFLAGS'
6118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6121
6122 fi
6123
6124
6125 ac_ext=f
6126 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6127 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6129 if test -n "$ac_tool_prefix"; then
6130 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
6131 do
6132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6136 if test "${ac_cv_prog_F77+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139 if test -n "$F77"; then
6140 ac_cv_prog_F77="$F77" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6144 do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6152 fi
6153 done
6154 done
6155 IFS=$as_save_IFS
6156
6157 fi
6158 fi
6159 F77=$ac_cv_prog_F77
6160 if test -n "$F77"; then
6161 { echo "$as_me:$LINENO: result: $F77" >&5
6162 echo "${ECHO_T}$F77" >&6; }
6163 else
6164 { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6166 fi
6167
6168
6169 test -n "$F77" && break
6170 done
6171 fi
6172 if test -z "$F77"; then
6173 ac_ct_F77=$F77
6174 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
6175 do
6176 # Extract the first word of "$ac_prog", so it can be a program name with args.
6177 set dummy $ac_prog; ac_word=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183 if test -n "$ac_ct_F77"; then
6184 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_F77="$ac_prog"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197 done
6198 done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6204 if test -n "$ac_ct_F77"; then
6205 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6206 echo "${ECHO_T}$ac_ct_F77" >&6; }
6207 else
6208 { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6210 fi
6211
6212
6213 test -n "$ac_ct_F77" && break
6214 done
6215
6216 if test "x$ac_ct_F77" = x; then
6217 F77=""
6218 else
6219 case $cross_compiling:$ac_tool_warned in
6220 yes:)
6221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet. If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&5
6224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6225 whose name does not start with the host triplet. If you think this
6226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6227 ac_tool_warned=yes ;;
6228 esac
6229 F77=$ac_ct_F77
6230 fi
6231 fi
6232
6233
6234 # Provide some information about the compiler.
6235 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6236 ac_compiler=`set X $ac_compile; echo $2`
6237 { (ac_try="$ac_compiler --version >&5"
6238 case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_compiler --version >&5") 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }
6247 { (ac_try="$ac_compiler -v >&5"
6248 case "(($ac_try" in
6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6251 esac
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_compiler -v >&5") 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }
6257 { (ac_try="$ac_compiler -V >&5"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compiler -V >&5") 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }
6267 rm -f a.out
6268
6269 # If we don't use `.F' as extension, the preprocessor is not run on the
6270 # input file. (Note that this only needs to work for GNU compilers.)
6271 ac_save_ext=$ac_ext
6272 ac_ext=F
6273 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6274 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6275 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278 cat >conftest.$ac_ext <<_ACEOF
6279 program main
6280 #ifndef __GNUC__
6281 choke me
6282 #endif
6283
6284 end
6285 _ACEOF
6286 rm -f conftest.$ac_objext
6287 if { (ac_try="$ac_compile"
6288 case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6291 esac
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_compile") 2>conftest.er1
6294 ac_status=$?
6295 grep -v '^ *+' conftest.er1 >conftest.err
6296 rm -f conftest.er1
6297 cat conftest.err >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } && {
6300 test -z "$ac_f77_werror_flag" ||
6301 test ! -s conftest.err
6302 } && test -s conftest.$ac_objext; then
6303 ac_compiler_gnu=yes
6304 else
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6307
6308 ac_compiler_gnu=no
6309 fi
6310
6311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6313
6314 fi
6315 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6316 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6317 ac_ext=$ac_save_ext
6318 ac_test_FFLAGS=${FFLAGS+set}
6319 ac_save_FFLAGS=$FFLAGS
6320 FFLAGS=
6321 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6322 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6323 if test "${ac_cv_prog_f77_g+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 else
6326 FFLAGS=-g
6327 cat >conftest.$ac_ext <<_ACEOF
6328 program main
6329
6330 end
6331 _ACEOF
6332 rm -f conftest.$ac_objext
6333 if { (ac_try="$ac_compile"
6334 case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337 esac
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_compile") 2>conftest.er1
6340 ac_status=$?
6341 grep -v '^ *+' conftest.er1 >conftest.err
6342 rm -f conftest.er1
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } && {
6346 test -z "$ac_f77_werror_flag" ||
6347 test ! -s conftest.err
6348 } && test -s conftest.$ac_objext; then
6349 ac_cv_prog_f77_g=yes
6350 else
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354 ac_cv_prog_f77_g=no
6355 fi
6356
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358
6359 fi
6360 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6361 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6362 if test "$ac_test_FFLAGS" = set; then
6363 FFLAGS=$ac_save_FFLAGS
6364 elif test $ac_cv_prog_f77_g = yes; then
6365 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6366 FFLAGS="-g -O2"
6367 else
6368 FFLAGS="-g"
6369 fi
6370 else
6371 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6372 FFLAGS="-O2"
6373 else
6374 FFLAGS=
6375 fi
6376 fi
6377
6378 G77=`test $ac_compiler_gnu = yes && echo yes`
6379 ac_ext=c
6380 ac_cpp='$CPP $CPPFLAGS'
6381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6384
6385
6386
6387 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6388
6389 # find the maximum length of command line arguments
6390 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6391 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6392 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 i=0
6396 teststring="ABCD"
6397
6398 case $build_os in
6399 msdosdjgpp*)
6400 # On DJGPP, this test can blow up pretty badly due to problems in libc
6401 # (any single argument exceeding 2000 bytes causes a buffer overrun
6402 # during glob expansion). Even if it were fixed, the result of this
6403 # check would be larger than it should be.
6404 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6405 ;;
6406
6407 gnu*)
6408 # Under GNU Hurd, this test is not required because there is
6409 # no limit to the length of command line arguments.
6410 # Libtool will interpret -1 as no limit whatsoever
6411 lt_cv_sys_max_cmd_len=-1;
6412 ;;
6413
6414 cygwin* | mingw*)
6415 # On Win9x/ME, this test blows up -- it succeeds, but takes
6416 # about 5 minutes as the teststring grows exponentially.
6417 # Worse, since 9x/ME are not pre-emptively multitasking,
6418 # you end up with a "frozen" computer, even though with patience
6419 # the test eventually succeeds (with a max line length of 256k).
6420 # Instead, let's just punt: use the minimum linelength reported by
6421 # all of the supported platforms: 8192 (on NT/2K/XP).
6422 lt_cv_sys_max_cmd_len=8192;
6423 ;;
6424
6425 amigaos*)
6426 # On AmigaOS with pdksh, this test takes hours, literally.
6427 # So we just punt and use a minimum line length of 8192.
6428 lt_cv_sys_max_cmd_len=8192;
6429 ;;
6430
6431 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6432 # This has been around since 386BSD, at least. Likely further.
6433 if test -x /sbin/sysctl; then
6434 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6435 elif test -x /usr/sbin/sysctl; then
6436 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6437 else
6438 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6439 fi
6440 # And add a safety zone
6441 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6443 ;;
6444
6445 interix*)
6446 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6447 lt_cv_sys_max_cmd_len=196608
6448 ;;
6449
6450 osf*)
6451 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6452 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6453 # nice to cause kernel panics so lets avoid the loop below.
6454 # First set a reasonable default.
6455 lt_cv_sys_max_cmd_len=16384
6456 #
6457 if test -x /sbin/sysconfig; then
6458 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6459 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6460 esac
6461 fi
6462 ;;
6463 sco3.2v5*)
6464 lt_cv_sys_max_cmd_len=102400
6465 ;;
6466 sysv5* | sco5v6* | sysv4.2uw2*)
6467 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6468 if test -n "$kargmax"; then
6469 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6470 else
6471 lt_cv_sys_max_cmd_len=32768
6472 fi
6473 ;;
6474 *)
6475 # If test is not a shell built-in, we'll probably end up computing a
6476 # maximum length that is only half of the actual maximum length, but
6477 # we can't tell.
6478 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6479 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6480 = "XX$teststring") >/dev/null 2>&1 &&
6481 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6482 lt_cv_sys_max_cmd_len=$new_result &&
6483 test $i != 17 # 1/2 MB should be enough
6484 do
6485 i=`expr $i + 1`
6486 teststring=$teststring$teststring
6487 done
6488 teststring=
6489 # Add a significant safety factor because C++ compilers can tack on massive
6490 # amounts of additional arguments before passing them to the linker.
6491 # It appears as though 1/2 is a usable value.
6492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6493 ;;
6494 esac
6495
6496 fi
6497
6498 if test -n $lt_cv_sys_max_cmd_len ; then
6499 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6500 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6501 else
6502 { echo "$as_me:$LINENO: result: none" >&5
6503 echo "${ECHO_T}none" >&6; }
6504 fi
6505
6506
6507
6508
6509 # Check for command to grab the raw symbol name followed by C symbol from nm.
6510 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6511 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6512 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515
6516 # These are sane defaults that work on at least a few old systems.
6517 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6518
6519 # Character class describing NM global symbol codes.
6520 symcode='[BCDEGRST]'
6521
6522 # Regexp to match symbols that can be accessed directly from C.
6523 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6524
6525 # Transform an extracted symbol line into a proper C declaration
6526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6527
6528 # Transform an extracted symbol line into symbol name and symbol address
6529 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'"
6530
6531 # Define system-specific variables.
6532 case $host_os in
6533 aix*)
6534 symcode='[BCDT]'
6535 ;;
6536 cygwin* | mingw* | pw32*)
6537 symcode='[ABCDGISTW]'
6538 ;;
6539 hpux*) # Its linker distinguishes data from code symbols
6540 if test "$host_cpu" = ia64; then
6541 symcode='[ABCDEGRST]'
6542 fi
6543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6544 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'"
6545 ;;
6546 linux* | k*bsd*-gnu)
6547 if test "$host_cpu" = ia64; then
6548 symcode='[ABCDGIRSTW]'
6549 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6550 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'"
6551 fi
6552 ;;
6553 irix* | nonstopux*)
6554 symcode='[BCDEGRST]'
6555 ;;
6556 osf*)
6557 symcode='[BCDEGQRST]'
6558 ;;
6559 solaris*)
6560 symcode='[BDRT]'
6561 ;;
6562 sco3.2v5*)
6563 symcode='[DT]'
6564 ;;
6565 sysv4.2uw2*)
6566 symcode='[DT]'
6567 ;;
6568 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6569 symcode='[ABDT]'
6570 ;;
6571 sysv4)
6572 symcode='[DFNSTU]'
6573 ;;
6574 esac
6575
6576 # Handle CRLF in mingw tool chain
6577 opt_cr=
6578 case $build_os in
6579 mingw*)
6580 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6581 ;;
6582 esac
6583
6584 # If we're using GNU nm, then use its standard symbol codes.
6585 case `$NM -V 2>&1` in
6586 *GNU* | *'with BFD'*)
6587 symcode='[ABCDGIRSTW]' ;;
6588 esac
6589
6590 # Try without a prefix undercore, then with it.
6591 for ac_symprfx in "" "_"; do
6592
6593 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6594 symxfrm="\\1 $ac_symprfx\\2 \\2"
6595
6596 # Write the raw and C identifiers.
6597 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6598
6599 # Check to see that the pipe works correctly.
6600 pipe_works=no
6601
6602 rm -f conftest*
6603 cat > conftest.$ac_ext <<EOF
6604 #ifdef __cplusplus
6605 extern "C" {
6606 #endif
6607 char nm_test_var;
6608 void nm_test_func(){}
6609 #ifdef __cplusplus
6610 }
6611 #endif
6612 int main(){nm_test_var='a';nm_test_func();return(0);}
6613 EOF
6614
6615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6616 (eval $ac_compile) 2>&5
6617 ac_status=$?
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; then
6620 # Now try to grab the symbols.
6621 nlist=conftest.nm
6622 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6623 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6624 ac_status=$?
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } && test -s "$nlist"; then
6627 # Try sorting and uniquifying the output.
6628 if sort "$nlist" | uniq > "$nlist"T; then
6629 mv -f "$nlist"T "$nlist"
6630 else
6631 rm -f "$nlist"T
6632 fi
6633
6634 # Make sure that we snagged all the symbols we need.
6635 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6636 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6637 cat <<EOF > conftest.$ac_ext
6638 #ifdef __cplusplus
6639 extern "C" {
6640 #endif
6641
6642 EOF
6643 # Now generate the symbol file.
6644 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6645
6646 cat <<EOF >> conftest.$ac_ext
6647 #if defined (__STDC__) && __STDC__
6648 # define lt_ptr_t void *
6649 #else
6650 # define lt_ptr_t char *
6651 # define const
6652 #endif
6653
6654 /* The mapping between symbol names and symbols. */
6655 const struct {
6656 const char *name;
6657 lt_ptr_t address;
6658 }
6659 lt_preloaded_symbols[] =
6660 {
6661 EOF
6662 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6663 cat <<\EOF >> conftest.$ac_ext
6664 {0, (lt_ptr_t) 0}
6665 };
6666
6667 #ifdef __cplusplus
6668 }
6669 #endif
6670 EOF
6671 # Now try linking the two files.
6672 mv conftest.$ac_objext conftstm.$ac_objext
6673 lt_save_LIBS="$LIBS"
6674 lt_save_CFLAGS="$CFLAGS"
6675 LIBS="conftstm.$ac_objext"
6676 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6678 (eval $ac_link) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6682 pipe_works=yes
6683 fi
6684 LIBS="$lt_save_LIBS"
6685 CFLAGS="$lt_save_CFLAGS"
6686 else
6687 echo "cannot find nm_test_func in $nlist" >&5
6688 fi
6689 else
6690 echo "cannot find nm_test_var in $nlist" >&5
6691 fi
6692 else
6693 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6694 fi
6695 else
6696 echo "$progname: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6698 fi
6699 rm -f conftest* conftst*
6700
6701 # Do not use the global_symbol_pipe unless it works.
6702 if test "$pipe_works" = yes; then
6703 break
6704 else
6705 lt_cv_sys_global_symbol_pipe=
6706 fi
6707 done
6708
6709 fi
6710
6711 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6712 lt_cv_sys_global_symbol_to_cdecl=
6713 fi
6714 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6715 { echo "$as_me:$LINENO: result: failed" >&5
6716 echo "${ECHO_T}failed" >&6; }
6717 else
6718 { echo "$as_me:$LINENO: result: ok" >&5
6719 echo "${ECHO_T}ok" >&6; }
6720 fi
6721
6722 { echo "$as_me:$LINENO: checking for objdir" >&5
6723 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6724 if test "${lt_cv_objdir+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727 rm -f .libs 2>/dev/null
6728 mkdir .libs 2>/dev/null
6729 if test -d .libs; then
6730 lt_cv_objdir=.libs
6731 else
6732 # MS-DOS does not allow filenames that begin with a dot.
6733 lt_cv_objdir=_libs
6734 fi
6735 rmdir .libs 2>/dev/null
6736 fi
6737 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6738 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6739 objdir=$lt_cv_objdir
6740
6741
6742
6743
6744
6745 case $host_os in
6746 aix3*)
6747 # AIX sometimes has problems with the GCC collect2 program. For some
6748 # reason, if we set the COLLECT_NAMES environment variable, the problems
6749 # vanish in a puff of smoke.
6750 if test "X${COLLECT_NAMES+set}" != Xset; then
6751 COLLECT_NAMES=
6752 export COLLECT_NAMES
6753 fi
6754 ;;
6755 esac
6756
6757 # Sed substitution that helps us do robust quoting. It backslashifies
6758 # metacharacters that are still active within double-quoted strings.
6759 Xsed='sed -e 1s/^X//'
6760 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6761
6762 # Same as above, but do not quote variable references.
6763 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6764
6765 # Sed substitution to delay expansion of an escaped shell variable in a
6766 # double_quote_subst'ed string.
6767 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6768
6769 # Sed substitution to avoid accidental globbing in evaled expressions
6770 no_glob_subst='s/\*/\\\*/g'
6771
6772 # Constants:
6773 rm="rm -f"
6774
6775 # Global variables:
6776 default_ofile=libtool
6777 can_build_shared=yes
6778
6779 # All known linkers require a `.a' archive for static linking (except MSVC,
6780 # which needs '.lib').
6781 libext=a
6782 ltmain="$ac_aux_dir/ltmain.sh"
6783 ofile="$default_ofile"
6784 with_gnu_ld="$lt_cv_prog_gnu_ld"
6785
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}ar; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_prog_AR+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794 if test -n "$AR"; then
6795 ac_cv_prog_AR="$AR" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_AR="${ac_tool_prefix}ar"
6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 AR=$ac_cv_prog_AR
6815 if test -n "$AR"; then
6816 { echo "$as_me:$LINENO: result: $AR" >&5
6817 echo "${ECHO_T}$AR" >&6; }
6818 else
6819 { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6821 fi
6822
6823
6824 fi
6825 if test -z "$ac_cv_prog_AR"; then
6826 ac_ct_AR=$AR
6827 # Extract the first word of "ar", so it can be a program name with args.
6828 set dummy ar; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834 if test -n "$ac_ct_AR"; then
6835 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6839 do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_ac_ct_AR="ar"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848 done
6849 done
6850 IFS=$as_save_IFS
6851
6852 fi
6853 fi
6854 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6855 if test -n "$ac_ct_AR"; then
6856 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6857 echo "${ECHO_T}$ac_ct_AR" >&6; }
6858 else
6859 { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6861 fi
6862
6863 if test "x$ac_ct_AR" = x; then
6864 AR="false"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6869 whose name does not start with the host triplet. If you think this
6870 configuration is useful to you, please write to autoconf@gnu.org." >&5
6871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6872 whose name does not start with the host triplet. If you think this
6873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876 AR=$ac_ct_AR
6877 fi
6878 else
6879 AR="$ac_cv_prog_AR"
6880 fi
6881
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887 if test "${ac_cv_prog_RANLIB+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890 if test -n "$RANLIB"; then
6891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 RANLIB=$ac_cv_prog_RANLIB
6911 if test -n "$RANLIB"; then
6912 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6913 echo "${ECHO_T}$RANLIB" >&6; }
6914 else
6915 { echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_prog_RANLIB"; then
6922 ac_ct_RANLIB=$RANLIB
6923 # Extract the first word of "ranlib", so it can be a program name with args.
6924 set dummy ranlib; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930 if test -n "$ac_ct_RANLIB"; then
6931 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_prog_ac_ct_RANLIB="ranlib"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6951 if test -n "$ac_ct_RANLIB"; then
6952 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6953 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6954 else
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6957 fi
6958
6959 if test "x$ac_ct_RANLIB" = x; then
6960 RANLIB=":"
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6965 whose name does not start with the host triplet. If you think this
6966 configuration is useful to you, please write to autoconf@gnu.org." >&5
6967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6968 whose name does not start with the host triplet. If you think this
6969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6970 ac_tool_warned=yes ;;
6971 esac
6972 RANLIB=$ac_ct_RANLIB
6973 fi
6974 else
6975 RANLIB="$ac_cv_prog_RANLIB"
6976 fi
6977
6978 if test -n "$ac_tool_prefix"; then
6979 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6980 set dummy ${ac_tool_prefix}strip; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_prog_STRIP+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986 if test -n "$STRIP"; then
6987 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000 done
7001 done
7002 IFS=$as_save_IFS
7003
7004 fi
7005 fi
7006 STRIP=$ac_cv_prog_STRIP
7007 if test -n "$STRIP"; then
7008 { echo "$as_me:$LINENO: result: $STRIP" >&5
7009 echo "${ECHO_T}$STRIP" >&6; }
7010 else
7011 { echo "$as_me:$LINENO: result: no" >&5
7012 echo "${ECHO_T}no" >&6; }
7013 fi
7014
7015
7016 fi
7017 if test -z "$ac_cv_prog_STRIP"; then
7018 ac_ct_STRIP=$STRIP
7019 # Extract the first word of "strip", so it can be a program name with args.
7020 set dummy strip; ac_word=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 if test -n "$ac_ct_STRIP"; then
7027 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_prog_ac_ct_STRIP="strip"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044 fi
7045 fi
7046 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7047 if test -n "$ac_ct_STRIP"; then
7048 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7049 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7050 else
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7053 fi
7054
7055 if test "x$ac_ct_STRIP" = x; then
7056 STRIP=":"
7057 else
7058 case $cross_compiling:$ac_tool_warned in
7059 yes:)
7060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7061 whose name does not start with the host triplet. If you think this
7062 configuration is useful to you, please write to autoconf@gnu.org." >&5
7063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7064 whose name does not start with the host triplet. If you think this
7065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7066 ac_tool_warned=yes ;;
7067 esac
7068 STRIP=$ac_ct_STRIP
7069 fi
7070 else
7071 STRIP="$ac_cv_prog_STRIP"
7072 fi
7073
7074
7075 old_CC="$CC"
7076 old_CFLAGS="$CFLAGS"
7077
7078 # Set sane defaults for various variables
7079 test -z "$AR" && AR=ar
7080 test -z "$AR_FLAGS" && AR_FLAGS=cru
7081 test -z "$AS" && AS=as
7082 test -z "$CC" && CC=cc
7083 test -z "$LTCC" && LTCC=$CC
7084 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7085 test -z "$DLLTOOL" && DLLTOOL=dlltool
7086 test -z "$LD" && LD=ld
7087 test -z "$LN_S" && LN_S="ln -s"
7088 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7089 test -z "$NM" && NM=nm
7090 test -z "$SED" && SED=sed
7091 test -z "$OBJDUMP" && OBJDUMP=objdump
7092 test -z "$RANLIB" && RANLIB=:
7093 test -z "$STRIP" && STRIP=:
7094 test -z "$ac_objext" && ac_objext=o
7095
7096 # Determine commands to create old-style static archives.
7097 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7098 old_postinstall_cmds='chmod 644 $oldlib'
7099 old_postuninstall_cmds=
7100
7101 if test -n "$RANLIB"; then
7102 case $host_os in
7103 openbsd*)
7104 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7105 ;;
7106 *)
7107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7108 ;;
7109 esac
7110 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7111 fi
7112
7113 for cc_temp in $compiler""; do
7114 case $cc_temp in
7115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7117 \-*) ;;
7118 *) break;;
7119 esac
7120 done
7121 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7122
7123
7124 # Only perform the check for file, if the check method requires it
7125 case $deplibs_check_method in
7126 file_magic*)
7127 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7128 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7129 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7130 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133 case $MAGIC_CMD in
7134 [\\/*] | ?:[\\/]*)
7135 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7136 ;;
7137 *)
7138 lt_save_MAGIC_CMD="$MAGIC_CMD"
7139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7140 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7141 for ac_dir in $ac_dummy; do
7142 IFS="$lt_save_ifs"
7143 test -z "$ac_dir" && ac_dir=.
7144 if test -f $ac_dir/${ac_tool_prefix}file; then
7145 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7146 if test -n "$file_magic_test_file"; then
7147 case $deplibs_check_method in
7148 "file_magic "*)
7149 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7152 $EGREP "$file_magic_regex" > /dev/null; then
7153 :
7154 else
7155 cat <<EOF 1>&2
7156
7157 *** Warning: the command libtool uses to detect shared libraries,
7158 *** $file_magic_cmd, produces output that libtool cannot recognize.
7159 *** The result is that libtool may fail to recognize shared libraries
7160 *** as such. This will affect the creation of libtool libraries that
7161 *** depend on shared libraries, but programs linked with such libtool
7162 *** libraries will work regardless of this problem. Nevertheless, you
7163 *** may want to report the problem to your system manager and/or to
7164 *** bug-libtool@gnu.org
7165
7166 EOF
7167 fi ;;
7168 esac
7169 fi
7170 break
7171 fi
7172 done
7173 IFS="$lt_save_ifs"
7174 MAGIC_CMD="$lt_save_MAGIC_CMD"
7175 ;;
7176 esac
7177 fi
7178
7179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7180 if test -n "$MAGIC_CMD"; then
7181 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7182 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7183 else
7184 { echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6; }
7186 fi
7187
7188 if test -z "$lt_cv_path_MAGIC_CMD"; then
7189 if test -n "$ac_tool_prefix"; then
7190 { echo "$as_me:$LINENO: checking for file" >&5
7191 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7192 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195 case $MAGIC_CMD in
7196 [\\/*] | ?:[\\/]*)
7197 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7198 ;;
7199 *)
7200 lt_save_MAGIC_CMD="$MAGIC_CMD"
7201 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7202 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7203 for ac_dir in $ac_dummy; do
7204 IFS="$lt_save_ifs"
7205 test -z "$ac_dir" && ac_dir=.
7206 if test -f $ac_dir/file; then
7207 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7208 if test -n "$file_magic_test_file"; then
7209 case $deplibs_check_method in
7210 "file_magic "*)
7211 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7214 $EGREP "$file_magic_regex" > /dev/null; then
7215 :
7216 else
7217 cat <<EOF 1>&2
7218
7219 *** Warning: the command libtool uses to detect shared libraries,
7220 *** $file_magic_cmd, produces output that libtool cannot recognize.
7221 *** The result is that libtool may fail to recognize shared libraries
7222 *** as such. This will affect the creation of libtool libraries that
7223 *** depend on shared libraries, but programs linked with such libtool
7224 *** libraries will work regardless of this problem. Nevertheless, you
7225 *** may want to report the problem to your system manager and/or to
7226 *** bug-libtool@gnu.org
7227
7228 EOF
7229 fi ;;
7230 esac
7231 fi
7232 break
7233 fi
7234 done
7235 IFS="$lt_save_ifs"
7236 MAGIC_CMD="$lt_save_MAGIC_CMD"
7237 ;;
7238 esac
7239 fi
7240
7241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7242 if test -n "$MAGIC_CMD"; then
7243 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7244 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7245 else
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7248 fi
7249
7250 else
7251 MAGIC_CMD=:
7252 fi
7253 fi
7254
7255 fi
7256 ;;
7257 esac
7258
7259 enable_dlopen=yes
7260 enable_win32_dll=no
7261
7262 # Check whether --enable-libtool-lock was given.
7263 if test "${enable_libtool_lock+set}" = set; then
7264 enableval=$enable_libtool_lock;
7265 fi
7266
7267 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7268
7269
7270 # Check whether --with-pic was given.
7271 if test "${with_pic+set}" = set; then
7272 withval=$with_pic; pic_mode="$withval"
7273 else
7274 pic_mode=default
7275 fi
7276
7277 test -z "$pic_mode" && pic_mode=default
7278
7279 # Use C for the default configuration in the libtool script
7280 tagname=
7281 lt_save_CC="$CC"
7282 ac_ext=c
7283 ac_cpp='$CPP $CPPFLAGS'
7284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7287
7288
7289 # Source file extension for C test sources.
7290 ac_ext=c
7291
7292 # Object file extension for compiled C test sources.
7293 objext=o
7294 objext=$objext
7295
7296 # Code to be used in simple compile tests
7297 lt_simple_compile_test_code="int some_variable = 0;\n"
7298
7299 # Code to be used in simple link tests
7300 lt_simple_link_test_code='int main(){return(0);}\n'
7301
7302
7303 # If no C compiler was specified, use CC.
7304 LTCC=${LTCC-"$CC"}
7305
7306 # If no C compiler flags were specified, use CFLAGS.
7307 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7308
7309 # Allow CC to be a program name with arguments.
7310 compiler=$CC
7311
7312
7313 # save warnings/boilerplate of simple test code
7314 ac_outfile=conftest.$ac_objext
7315 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7316 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7317 _lt_compiler_boilerplate=`cat conftest.err`
7318 $rm conftest*
7319
7320 ac_outfile=conftest.$ac_objext
7321 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7322 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7323 _lt_linker_boilerplate=`cat conftest.err`
7324 $rm conftest*
7325
7326
7327
7328 lt_prog_compiler_no_builtin_flag=
7329
7330 if test "$GCC" = yes; then
7331 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7332
7333
7334 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7335 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7336 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339 lt_cv_prog_compiler_rtti_exceptions=no
7340 ac_outfile=conftest.$ac_objext
7341 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7342 lt_compiler_flag="-fno-rtti -fno-exceptions"
7343 # Insert the option either (1) after the last *FLAGS variable, or
7344 # (2) before a word containing "conftest.", or (3) at the end.
7345 # Note that $ac_compile itself does not contain backslashes and begins
7346 # with a dollar sign (not a hyphen), so the echo should work correctly.
7347 # The option is referenced via a variable to avoid confusing sed.
7348 lt_compile=`echo "$ac_compile" | $SED \
7349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7351 -e 's:$: $lt_compiler_flag:'`
7352 (eval echo "\"\$as_me:7352: $lt_compile\"" >&5)
7353 (eval "$lt_compile" 2>conftest.err)
7354 ac_status=$?
7355 cat conftest.err >&5
7356 echo "$as_me:7356: \$? = $ac_status" >&5
7357 if (exit $ac_status) && test -s "$ac_outfile"; then
7358 # The compiler can only warn and ignore the option if not recognized
7359 # So say no if there are warnings other than the usual output.
7360 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7362 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7363 lt_cv_prog_compiler_rtti_exceptions=yes
7364 fi
7365 fi
7366 $rm conftest*
7367
7368 fi
7369 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7370 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7371
7372 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7373 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7374 else
7375 :
7376 fi
7377
7378 fi
7379
7380 lt_prog_compiler_wl=
7381 lt_prog_compiler_pic=
7382 lt_prog_compiler_static=
7383
7384 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7385 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7386
7387 if test "$GCC" = yes; then
7388 lt_prog_compiler_wl='-Wl,'
7389 lt_prog_compiler_static='-static'
7390
7391 case $host_os in
7392 aix*)
7393 # All AIX code is PIC.
7394 if test "$host_cpu" = ia64; then
7395 # AIX 5 now supports IA64 processor
7396 lt_prog_compiler_static='-Bstatic'
7397 fi
7398 ;;
7399
7400 amigaos*)
7401 # FIXME: we need at least 68020 code to build shared libraries, but
7402 # adding the `-m68020' flag to GCC prevents building anything better,
7403 # like `-m68040'.
7404 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7405 ;;
7406
7407 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7408 # PIC is the default for these OSes.
7409 ;;
7410
7411 mingw* | pw32* | os2*)
7412 # This hack is so that the source file can tell whether it is being
7413 # built for inclusion in a dll (and should export symbols for example).
7414 lt_prog_compiler_pic='-DDLL_EXPORT'
7415 ;;
7416
7417 darwin* | rhapsody*)
7418 # PIC is the default on this platform
7419 # Common symbols not allowed in MH_DYLIB files
7420 lt_prog_compiler_pic='-fno-common'
7421 ;;
7422
7423 interix3*)
7424 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7425 # Instead, we relocate shared libraries at runtime.
7426 ;;
7427
7428 msdosdjgpp*)
7429 # Just because we use GCC doesn't mean we suddenly get shared libraries
7430 # on systems that don't support them.
7431 lt_prog_compiler_can_build_shared=no
7432 enable_shared=no
7433 ;;
7434
7435 sysv4*MP*)
7436 if test -d /usr/nec; then
7437 lt_prog_compiler_pic=-Kconform_pic
7438 fi
7439 ;;
7440
7441 hpux*)
7442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7443 # not for PA HP-UX.
7444 case $host_cpu in
7445 hppa*64*|ia64*)
7446 # +Z the default
7447 ;;
7448 *)
7449 lt_prog_compiler_pic='-fPIC'
7450 ;;
7451 esac
7452 ;;
7453
7454 *)
7455 lt_prog_compiler_pic='-fPIC'
7456 ;;
7457 esac
7458 else
7459 # PORTME Check for flag to pass linker flags through the system compiler.
7460 case $host_os in
7461 aix*)
7462 lt_prog_compiler_wl='-Wl,'
7463 if test "$host_cpu" = ia64; then
7464 # AIX 5 now supports IA64 processor
7465 lt_prog_compiler_static='-Bstatic'
7466 else
7467 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7468 fi
7469 ;;
7470 darwin*)
7471 # PIC is the default on this platform
7472 # Common symbols not allowed in MH_DYLIB files
7473 case $cc_basename in
7474 xlc*)
7475 lt_prog_compiler_pic='-qnocommon'
7476 lt_prog_compiler_wl='-Wl,'
7477 ;;
7478 esac
7479 ;;
7480
7481 mingw* | pw32* | os2*)
7482 # This hack is so that the source file can tell whether it is being
7483 # built for inclusion in a dll (and should export symbols for example).
7484 lt_prog_compiler_pic='-DDLL_EXPORT'
7485 ;;
7486
7487 hpux9* | hpux10* | hpux11*)
7488 lt_prog_compiler_wl='-Wl,'
7489 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7490 # not for PA HP-UX.
7491 case $host_cpu in
7492 hppa*64*|ia64*)
7493 # +Z the default
7494 ;;
7495 *)
7496 lt_prog_compiler_pic='+Z'
7497 ;;
7498 esac
7499 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7500 lt_prog_compiler_static='${wl}-a ${wl}archive'
7501 ;;
7502
7503 irix5* | irix6* | nonstopux*)
7504 lt_prog_compiler_wl='-Wl,'
7505 # PIC (with -KPIC) is the default.
7506 lt_prog_compiler_static='-non_shared'
7507 ;;
7508
7509 newsos6)
7510 lt_prog_compiler_pic='-KPIC'
7511 lt_prog_compiler_static='-Bstatic'
7512 ;;
7513
7514 linux* | k*bsd*-gnu)
7515 case $cc_basename in
7516 icc* | ecc*)
7517 lt_prog_compiler_wl='-Wl,'
7518 lt_prog_compiler_pic='-KPIC'
7519 lt_prog_compiler_static='-static'
7520 ;;
7521 pgcc* | pgf77* | pgf90* | pgf95*)
7522 # Portland Group compilers (*not* the Pentium gcc compiler,
7523 # which looks to be a dead project)
7524 lt_prog_compiler_wl='-Wl,'
7525 lt_prog_compiler_pic='-fpic'
7526 lt_prog_compiler_static='-Bstatic'
7527 ;;
7528 ccc*)
7529 lt_prog_compiler_wl='-Wl,'
7530 # All Alpha code is PIC.
7531 lt_prog_compiler_static='-non_shared'
7532 ;;
7533 esac
7534 ;;
7535
7536 osf3* | osf4* | osf5*)
7537 lt_prog_compiler_wl='-Wl,'
7538 # All OSF/1 code is PIC.
7539 lt_prog_compiler_static='-non_shared'
7540 ;;
7541
7542 solaris*)
7543 lt_prog_compiler_pic='-KPIC'
7544 lt_prog_compiler_static='-Bstatic'
7545 case $cc_basename in
7546 f77* | f90* | f95*)
7547 lt_prog_compiler_wl='-Qoption ld ';;
7548 *)
7549 lt_prog_compiler_wl='-Wl,';;
7550 esac
7551 ;;
7552
7553 sunos4*)
7554 lt_prog_compiler_wl='-Qoption ld '
7555 lt_prog_compiler_pic='-PIC'
7556 lt_prog_compiler_static='-Bstatic'
7557 ;;
7558
7559 sysv4 | sysv4.2uw2* | sysv4.3*)
7560 lt_prog_compiler_wl='-Wl,'
7561 lt_prog_compiler_pic='-KPIC'
7562 lt_prog_compiler_static='-Bstatic'
7563 ;;
7564
7565 sysv4*MP*)
7566 if test -d /usr/nec ;then
7567 lt_prog_compiler_pic='-Kconform_pic'
7568 lt_prog_compiler_static='-Bstatic'
7569 fi
7570 ;;
7571
7572 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7573 lt_prog_compiler_wl='-Wl,'
7574 lt_prog_compiler_pic='-KPIC'
7575 lt_prog_compiler_static='-Bstatic'
7576 ;;
7577
7578 unicos*)
7579 lt_prog_compiler_wl='-Wl,'
7580 lt_prog_compiler_can_build_shared=no
7581 ;;
7582
7583 uts4*)
7584 lt_prog_compiler_pic='-pic'
7585 lt_prog_compiler_static='-Bstatic'
7586 ;;
7587
7588 *)
7589 lt_prog_compiler_can_build_shared=no
7590 ;;
7591 esac
7592 fi
7593
7594 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7595 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7596
7597 #
7598 # Check to make sure the PIC flag actually works.
7599 #
7600 if test -n "$lt_prog_compiler_pic"; then
7601
7602 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7603 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7604 if test "${lt_prog_compiler_pic_works+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607 lt_prog_compiler_pic_works=no
7608 ac_outfile=conftest.$ac_objext
7609 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7610 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7611 # Insert the option either (1) after the last *FLAGS variable, or
7612 # (2) before a word containing "conftest.", or (3) at the end.
7613 # Note that $ac_compile itself does not contain backslashes and begins
7614 # with a dollar sign (not a hyphen), so the echo should work correctly.
7615 # The option is referenced via a variable to avoid confusing sed.
7616 lt_compile=`echo "$ac_compile" | $SED \
7617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7619 -e 's:$: $lt_compiler_flag:'`
7620 (eval echo "\"\$as_me:7620: $lt_compile\"" >&5)
7621 (eval "$lt_compile" 2>conftest.err)
7622 ac_status=$?
7623 cat conftest.err >&5
7624 echo "$as_me:7624: \$? = $ac_status" >&5
7625 if (exit $ac_status) && test -s "$ac_outfile"; then
7626 # The compiler can only warn and ignore the option if not recognized
7627 # So say no if there are warnings other than the usual output.
7628 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7630 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7631 lt_prog_compiler_pic_works=yes
7632 fi
7633 fi
7634 $rm conftest*
7635
7636 fi
7637 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7638 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7639
7640 if test x"$lt_prog_compiler_pic_works" = xyes; then
7641 case $lt_prog_compiler_pic in
7642 "" | " "*) ;;
7643 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7644 esac
7645 else
7646 lt_prog_compiler_pic=
7647 lt_prog_compiler_can_build_shared=no
7648 fi
7649
7650 fi
7651 case $host_os in
7652 # For platforms which do not support PIC, -DPIC is meaningless:
7653 *djgpp*)
7654 lt_prog_compiler_pic=
7655 ;;
7656 *)
7657 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7658 ;;
7659 esac
7660
7661 #
7662 # Check to make sure the static flag actually works.
7663 #
7664 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7665 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7666 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7667 if test "${lt_prog_compiler_static_works+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670 lt_prog_compiler_static_works=no
7671 save_LDFLAGS="$LDFLAGS"
7672 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7673 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7674 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7675 # The linker can only warn and ignore the option if not recognized
7676 # So say no if there are warnings
7677 if test -s conftest.err; then
7678 # Append any errors to the config.log.
7679 cat conftest.err 1>&5
7680 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7682 if diff conftest.exp conftest.er2 >/dev/null; then
7683 lt_prog_compiler_static_works=yes
7684 fi
7685 else
7686 lt_prog_compiler_static_works=yes
7687 fi
7688 fi
7689 $rm conftest*
7690 LDFLAGS="$save_LDFLAGS"
7691
7692 fi
7693 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7694 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7695
7696 if test x"$lt_prog_compiler_static_works" = xyes; then
7697 :
7698 else
7699 lt_prog_compiler_static=
7700 fi
7701
7702
7703 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7704 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7705 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708 lt_cv_prog_compiler_c_o=no
7709 $rm -r conftest 2>/dev/null
7710 mkdir conftest
7711 cd conftest
7712 mkdir out
7713 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7714
7715 lt_compiler_flag="-o out/conftest2.$ac_objext"
7716 # Insert the option either (1) after the last *FLAGS variable, or
7717 # (2) before a word containing "conftest.", or (3) at the end.
7718 # Note that $ac_compile itself does not contain backslashes and begins
7719 # with a dollar sign (not a hyphen), so the echo should work correctly.
7720 lt_compile=`echo "$ac_compile" | $SED \
7721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7723 -e 's:$: $lt_compiler_flag:'`
7724 (eval echo "\"\$as_me:7724: $lt_compile\"" >&5)
7725 (eval "$lt_compile" 2>out/conftest.err)
7726 ac_status=$?
7727 cat out/conftest.err >&5
7728 echo "$as_me:7728: \$? = $ac_status" >&5
7729 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7730 then
7731 # The compiler can only warn and ignore the option if not recognized
7732 # So say no if there are warnings
7733 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7734 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7735 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7736 lt_cv_prog_compiler_c_o=yes
7737 fi
7738 fi
7739 chmod u+w . 2>&5
7740 $rm conftest*
7741 # SGI C++ compiler will create directory out/ii_files/ for
7742 # template instantiation
7743 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7744 $rm out/* && rmdir out
7745 cd ..
7746 rmdir conftest
7747 $rm conftest*
7748
7749 fi
7750 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7751 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7752
7753
7754 hard_links="nottested"
7755 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7756 # do not overwrite the value of need_locks provided by the user
7757 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7758 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7759 hard_links=yes
7760 $rm conftest*
7761 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7762 touch conftest.a
7763 ln conftest.a conftest.b 2>&5 || hard_links=no
7764 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7765 { echo "$as_me:$LINENO: result: $hard_links" >&5
7766 echo "${ECHO_T}$hard_links" >&6; }
7767 if test "$hard_links" = no; then
7768 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7769 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7770 need_locks=warn
7771 fi
7772 else
7773 need_locks=no
7774 fi
7775
7776 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7777 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7778
7779 runpath_var=
7780 allow_undefined_flag=
7781 enable_shared_with_static_runtimes=no
7782 archive_cmds=
7783 archive_expsym_cmds=
7784 old_archive_From_new_cmds=
7785 old_archive_from_expsyms_cmds=
7786 export_dynamic_flag_spec=
7787 whole_archive_flag_spec=
7788 thread_safe_flag_spec=
7789 hardcode_libdir_flag_spec=
7790 hardcode_libdir_flag_spec_ld=
7791 hardcode_libdir_separator=
7792 hardcode_direct=no
7793 hardcode_minus_L=no
7794 hardcode_shlibpath_var=unsupported
7795 link_all_deplibs=unknown
7796 hardcode_automatic=no
7797 module_cmds=
7798 module_expsym_cmds=
7799 always_export_symbols=no
7800 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7801 # include_expsyms should be a list of space-separated symbols to be *always*
7802 # included in the symbol list
7803 include_expsyms=
7804 # exclude_expsyms can be an extended regexp of symbols to exclude
7805 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7806 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7807 # as well as any symbol that contains `d'.
7808 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7809 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7810 # platforms (ab)use it in PIC code, but their linkers get confused if
7811 # the symbol is explicitly referenced. Since portable code cannot
7812 # rely on this symbol name, it's probably fine to never include it in
7813 # preloaded symbol tables.
7814 extract_expsyms_cmds=
7815 # Just being paranoid about ensuring that cc_basename is set.
7816 for cc_temp in $compiler""; do
7817 case $cc_temp in
7818 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7819 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7820 \-*) ;;
7821 *) break;;
7822 esac
7823 done
7824 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7825
7826 case $host_os in
7827 cygwin* | mingw* | pw32*)
7828 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7829 # When not using gcc, we currently assume that we are using
7830 # Microsoft Visual C++.
7831 if test "$GCC" != yes; then
7832 with_gnu_ld=no
7833 fi
7834 ;;
7835 interix*)
7836 # we just hope/assume this is gcc and not c89 (= MSVC++)
7837 with_gnu_ld=yes
7838 ;;
7839 openbsd*)
7840 with_gnu_ld=no
7841 ;;
7842 esac
7843
7844 ld_shlibs=yes
7845 if test "$with_gnu_ld" = yes; then
7846 # If archive_cmds runs LD, not CC, wlarc should be empty
7847 wlarc='${wl}'
7848
7849 # Set some defaults for GNU ld with shared library support. These
7850 # are reset later if shared libraries are not supported. Putting them
7851 # here allows them to be overridden if necessary.
7852 runpath_var=LD_RUN_PATH
7853 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7854 export_dynamic_flag_spec='${wl}--export-dynamic'
7855 # ancient GNU ld didn't support --whole-archive et. al.
7856 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7857 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7858 else
7859 whole_archive_flag_spec=
7860 fi
7861 supports_anon_versioning=no
7862 case `$LD -v 2>/dev/null` in
7863 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7864 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7865 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7866 *\ 2.11.*) ;; # other 2.11 versions
7867 *) supports_anon_versioning=yes ;;
7868 esac
7869
7870 # See if GNU ld supports shared libraries.
7871 case $host_os in
7872 aix3* | aix4* | aix5*)
7873 # On AIX/PPC, the GNU linker is very broken
7874 if test "$host_cpu" != ia64; then
7875 ld_shlibs=no
7876 cat <<EOF 1>&2
7877
7878 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7879 *** to be unable to reliably create shared libraries on AIX.
7880 *** Therefore, libtool is disabling shared libraries support. If you
7881 *** really care for shared libraries, you may want to modify your PATH
7882 *** so that a non-GNU linker is found, and then restart.
7883
7884 EOF
7885 fi
7886 ;;
7887
7888 amigaos*)
7889 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)'
7890 hardcode_libdir_flag_spec='-L$libdir'
7891 hardcode_minus_L=yes
7892
7893 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7894 # that the semantics of dynamic libraries on AmigaOS, at least up
7895 # to version 4, is to share data among multiple programs linked
7896 # with the same dynamic library. Since this doesn't match the
7897 # behavior of shared libraries on other platforms, we can't use
7898 # them.
7899 ld_shlibs=no
7900 ;;
7901
7902 beos*)
7903 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7904 allow_undefined_flag=unsupported
7905 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7906 # support --undefined. This deserves some investigation. FIXME
7907 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7908 else
7909 ld_shlibs=no
7910 fi
7911 ;;
7912
7913 cygwin* | mingw* | pw32*)
7914 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7915 # as there is no search path for DLLs.
7916 hardcode_libdir_flag_spec='-L$libdir'
7917 allow_undefined_flag=unsupported
7918 always_export_symbols=no
7919 enable_shared_with_static_runtimes=yes
7920 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7921
7922 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7924 # If the export-symbols file already is a .def file (1st line
7925 # is EXPORTS), use it as is; otherwise, prepend...
7926 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7927 cp $export_symbols $output_objdir/$soname.def;
7928 else
7929 echo EXPORTS > $output_objdir/$soname.def;
7930 cat $export_symbols >> $output_objdir/$soname.def;
7931 fi~
7932 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7933 else
7934 ld_shlibs=no
7935 fi
7936 ;;
7937
7938 interix3*)
7939 hardcode_direct=no
7940 hardcode_shlibpath_var=no
7941 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7942 export_dynamic_flag_spec='${wl}-E'
7943 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7944 # Instead, shared libraries are loaded at an image base (0x10000000 by
7945 # default) and relocated if they conflict, which is a slow very memory
7946 # consuming and fragmenting process. To avoid this, we pick a random,
7947 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7948 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7949 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7950 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'
7951 ;;
7952
7953 linux* | k*bsd*-gnu)
7954 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7955 tmp_addflag=
7956 case $cc_basename,$host_cpu in
7957 pgcc*) # Portland Group C compiler
7958 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'
7959 tmp_addflag=' $pic_flag'
7960 ;;
7961 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7962 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'
7963 tmp_addflag=' $pic_flag -Mnomain' ;;
7964 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7965 tmp_addflag=' -i_dynamic' ;;
7966 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7967 tmp_addflag=' -i_dynamic -nofor_main' ;;
7968 ifc* | ifort*) # Intel Fortran compiler
7969 tmp_addflag=' -nofor_main' ;;
7970 esac
7971 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7972
7973 if test $supports_anon_versioning = yes; then
7974 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7975 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7976 $echo "local: *; };" >> $output_objdir/$libname.ver~
7977 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7978 fi
7979 link_all_deplibs=no
7980 else
7981 ld_shlibs=no
7982 fi
7983 ;;
7984
7985 netbsd* | netbsdelf*-gnu)
7986 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7987 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7988 wlarc=
7989 else
7990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7992 fi
7993 ;;
7994
7995 solaris*)
7996 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7997 ld_shlibs=no
7998 cat <<EOF 1>&2
7999
8000 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8001 *** create shared libraries on Solaris systems. Therefore, libtool
8002 *** is disabling shared libraries support. We urge you to upgrade GNU
8003 *** binutils to release 2.9.1 or newer. Another option is to modify
8004 *** your PATH or compiler configuration so that the native linker is
8005 *** used, and then restart.
8006
8007 EOF
8008 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8011 else
8012 ld_shlibs=no
8013 fi
8014 ;;
8015
8016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8017 case `$LD -v 2>&1` in
8018 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8019 ld_shlibs=no
8020 cat <<_LT_EOF 1>&2
8021
8022 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8023 *** reliably create shared libraries on SCO systems. Therefore, libtool
8024 *** is disabling shared libraries support. We urge you to upgrade GNU
8025 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8026 *** your PATH or compiler configuration so that the native linker is
8027 *** used, and then restart.
8028
8029 _LT_EOF
8030 ;;
8031 *)
8032 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8033 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8036 else
8037 ld_shlibs=no
8038 fi
8039 ;;
8040 esac
8041 ;;
8042
8043 sunos4*)
8044 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8045 wlarc=
8046 hardcode_direct=yes
8047 hardcode_shlibpath_var=no
8048 ;;
8049
8050 *)
8051 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8053 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8054 else
8055 ld_shlibs=no
8056 fi
8057 ;;
8058 esac
8059
8060 if test "$ld_shlibs" = no; then
8061 runpath_var=
8062 hardcode_libdir_flag_spec=
8063 export_dynamic_flag_spec=
8064 whole_archive_flag_spec=
8065 fi
8066 else
8067 # PORTME fill in a description of your system's linker (not GNU ld)
8068 case $host_os in
8069 aix3*)
8070 allow_undefined_flag=unsupported
8071 always_export_symbols=yes
8072 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'
8073 # Note: this linker hardcodes the directories in LIBPATH if there
8074 # are no directories specified by -L.
8075 hardcode_minus_L=yes
8076 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8077 # Neither direct hardcoding nor static linking is supported with a
8078 # broken collect2.
8079 hardcode_direct=unsupported
8080 fi
8081 ;;
8082
8083 aix4* | aix5*)
8084 if test "$host_cpu" = ia64; then
8085 # On IA64, the linker does run time linking by default, so we don't
8086 # have to do anything special.
8087 aix_use_runtimelinking=no
8088 exp_sym_flag='-Bexport'
8089 no_entry_flag=""
8090 else
8091 # If we're using GNU nm, then we don't want the "-C" option.
8092 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8093 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8094 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'
8095 else
8096 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'
8097 fi
8098 aix_use_runtimelinking=no
8099
8100 # Test if we are trying to use run time linking or normal
8101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8102 # need to do runtime linking.
8103 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8104 for ld_flag in $LDFLAGS; do
8105 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8106 aix_use_runtimelinking=yes
8107 break
8108 fi
8109 done
8110 ;;
8111 esac
8112
8113 exp_sym_flag='-bexport'
8114 no_entry_flag='-bnoentry'
8115 fi
8116
8117 # When large executables or shared objects are built, AIX ld can
8118 # have problems creating the table of contents. If linking a library
8119 # or program results in "error TOC overflow" add -mminimal-toc to
8120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8122
8123 archive_cmds=''
8124 hardcode_direct=yes
8125 hardcode_libdir_separator=':'
8126 link_all_deplibs=yes
8127
8128 if test "$GCC" = yes; then
8129 case $host_os in aix4.[012]|aix4.[012].*)
8130 # We only want to do this on AIX 4.2 and lower, the check
8131 # below for broken collect2 doesn't work under 4.3+
8132 collect2name=`${CC} -print-prog-name=collect2`
8133 if test -f "$collect2name" && \
8134 strings "$collect2name" | grep resolve_lib_name >/dev/null
8135 then
8136 # We have reworked collect2
8137 hardcode_direct=yes
8138 else
8139 # We have old collect2
8140 hardcode_direct=unsupported
8141 # It fails to find uninstalled libraries when the uninstalled
8142 # path is not listed in the libpath. Setting hardcode_minus_L
8143 # to unsupported forces relinking
8144 hardcode_minus_L=yes
8145 hardcode_libdir_flag_spec='-L$libdir'
8146 hardcode_libdir_separator=
8147 fi
8148 ;;
8149 esac
8150 shared_flag='-shared'
8151 if test "$aix_use_runtimelinking" = yes; then
8152 shared_flag="$shared_flag "'${wl}-G'
8153 fi
8154 else
8155 # not using gcc
8156 if test "$host_cpu" = ia64; then
8157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8158 # chokes on -Wl,-G. The following line is correct:
8159 shared_flag='-G'
8160 else
8161 if test "$aix_use_runtimelinking" = yes; then
8162 shared_flag='${wl}-G'
8163 else
8164 shared_flag='${wl}-bM:SRE'
8165 fi
8166 fi
8167 fi
8168
8169 # It seems that -bexpall does not export symbols beginning with
8170 # underscore (_), so it is better to generate a list of symbols to export.
8171 always_export_symbols=yes
8172 if test "$aix_use_runtimelinking" = yes; then
8173 # Warning - without using the other runtime loading flags (-brtl),
8174 # -berok will link without error, but may produce a broken library.
8175 allow_undefined_flag='-berok'
8176 # Determine the default libpath from the value encoded in an empty executable.
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h. */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183
8184 int
8185 main ()
8186 {
8187
8188 ;
8189 return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext conftest$ac_exeext
8193 if { (ac_try="$ac_link"
8194 case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_link") 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest$ac_exeext &&
8209 $as_test_x conftest$ac_exeext; then
8210
8211 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8212 }'`
8213 # Check for a 64-bit object if we didn't find anything.
8214 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8215 }'`; fi
8216 else
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8219
8220
8221 fi
8222
8223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8224 conftest$ac_exeext conftest.$ac_ext
8225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8226
8227 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8228 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"
8229 else
8230 if test "$host_cpu" = ia64; then
8231 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8232 allow_undefined_flag="-z nodefs"
8233 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"
8234 else
8235 # Determine the default libpath from the value encoded in an empty executable.
8236 cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h. */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242
8243 int
8244 main ()
8245 {
8246
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (ac_try="$ac_link"
8253 case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256 esac
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_link") 2>conftest.er1
8259 ac_status=$?
8260 grep -v '^ *+' conftest.er1 >conftest.err
8261 rm -f conftest.er1
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && {
8265 test -z "$ac_c_werror_flag" ||
8266 test ! -s conftest.err
8267 } && test -s conftest$ac_exeext &&
8268 $as_test_x conftest$ac_exeext; then
8269
8270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8271 }'`
8272 # Check for a 64-bit object if we didn't find anything.
8273 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8274 }'`; fi
8275 else
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8278
8279
8280 fi
8281
8282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8283 conftest$ac_exeext conftest.$ac_ext
8284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8285
8286 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8287 # Warning - without using the other run time loading flags,
8288 # -berok will link without error, but may produce a broken library.
8289 no_undefined_flag=' ${wl}-bernotok'
8290 allow_undefined_flag=' ${wl}-berok'
8291 # Exported symbols can be pulled into shared objects from archives
8292 whole_archive_flag_spec='$convenience'
8293 archive_cmds_need_lc=yes
8294 # This is similar to how AIX traditionally builds its shared libraries.
8295 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'
8296 fi
8297 fi
8298 ;;
8299
8300 amigaos*)
8301 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)'
8302 hardcode_libdir_flag_spec='-L$libdir'
8303 hardcode_minus_L=yes
8304 # see comment about different semantics on the GNU ld section
8305 ld_shlibs=no
8306 ;;
8307
8308 bsdi[45]*)
8309 export_dynamic_flag_spec=-rdynamic
8310 ;;
8311
8312 cygwin* | mingw* | pw32*)
8313 # When not using gcc, we currently assume that we are using
8314 # Microsoft Visual C++.
8315 # hardcode_libdir_flag_spec is actually meaningless, as there is
8316 # no search path for DLLs.
8317 hardcode_libdir_flag_spec=' '
8318 allow_undefined_flag=unsupported
8319 # Tell ltmain to make .lib files, not .a files.
8320 libext=lib
8321 # Tell ltmain to make .dll files, not .so files.
8322 shrext_cmds=".dll"
8323 # FIXME: Setting linknames here is a bad hack.
8324 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8325 # The linker will automatically build a .lib file if we build a DLL.
8326 old_archive_From_new_cmds='true'
8327 # FIXME: Should let the user specify the lib program.
8328 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8329 fix_srcfile_path='`cygpath -w "$srcfile"`'
8330 enable_shared_with_static_runtimes=yes
8331 ;;
8332
8333 darwin* | rhapsody*)
8334 case $host_os in
8335 rhapsody* | darwin1.[012])
8336 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8337 ;;
8338 *) # Darwin 1.3 on
8339 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8340 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8341 else
8342 case ${MACOSX_DEPLOYMENT_TARGET} in
8343 10.[012])
8344 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8345 ;;
8346 10.*)
8347 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8348 ;;
8349 esac
8350 fi
8351 ;;
8352 esac
8353 archive_cmds_need_lc=no
8354 hardcode_direct=no
8355 hardcode_automatic=yes
8356 hardcode_shlibpath_var=unsupported
8357 whole_archive_flag_spec=''
8358 link_all_deplibs=yes
8359 if test "$GCC" = yes ; then
8360 output_verbose_link_cmd='echo'
8361 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8362 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8363 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8364 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}'
8365 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}'
8366 else
8367 case $cc_basename in
8368 xlc*)
8369 output_verbose_link_cmd='echo'
8370 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8371 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8372 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8373 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8374 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}'
8375 ;;
8376 *)
8377 ld_shlibs=no
8378 ;;
8379 esac
8380 fi
8381 ;;
8382
8383 dgux*)
8384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8385 hardcode_libdir_flag_spec='-L$libdir'
8386 hardcode_shlibpath_var=no
8387 ;;
8388
8389 freebsd1*)
8390 ld_shlibs=no
8391 ;;
8392
8393 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8394 # support. Future versions do this automatically, but an explicit c++rt0.o
8395 # does not break anything, and helps significantly (at the cost of a little
8396 # extra space).
8397 freebsd2.2*)
8398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8399 hardcode_libdir_flag_spec='-R$libdir'
8400 hardcode_direct=yes
8401 hardcode_shlibpath_var=no
8402 ;;
8403
8404 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8405 freebsd2*)
8406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8407 hardcode_direct=yes
8408 hardcode_minus_L=yes
8409 hardcode_shlibpath_var=no
8410 ;;
8411
8412 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8413 freebsd* | dragonfly*)
8414 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8415 hardcode_libdir_flag_spec='-R$libdir'
8416 hardcode_direct=yes
8417 hardcode_shlibpath_var=no
8418 ;;
8419
8420 hpux9*)
8421 if test "$GCC" = yes; then
8422 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'
8423 else
8424 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'
8425 fi
8426 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8427 hardcode_libdir_separator=:
8428 hardcode_direct=yes
8429
8430 # hardcode_minus_L: Not really in the search PATH,
8431 # but as the default location of the library.
8432 hardcode_minus_L=yes
8433 export_dynamic_flag_spec='${wl}-E'
8434 ;;
8435
8436 hpux10*)
8437 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8438 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8439 else
8440 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8441 fi
8442 if test "$with_gnu_ld" = no; then
8443 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8444 hardcode_libdir_separator=:
8445
8446 hardcode_direct=yes
8447 export_dynamic_flag_spec='${wl}-E'
8448
8449 # hardcode_minus_L: Not really in the search PATH,
8450 # but as the default location of the library.
8451 hardcode_minus_L=yes
8452 fi
8453 ;;
8454
8455 hpux11*)
8456 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8457 case $host_cpu in
8458 hppa*64*)
8459 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8460 ;;
8461 ia64*)
8462 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8463 ;;
8464 *)
8465 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8466 ;;
8467 esac
8468 else
8469 case $host_cpu in
8470 hppa*64*)
8471 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8472 ;;
8473 ia64*)
8474 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8475 ;;
8476 *)
8477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8478 ;;
8479 esac
8480 fi
8481 if test "$with_gnu_ld" = no; then
8482 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8483 hardcode_libdir_separator=:
8484
8485 case $host_cpu in
8486 hppa*64*|ia64*)
8487 hardcode_libdir_flag_spec_ld='+b $libdir'
8488 hardcode_direct=no
8489 hardcode_shlibpath_var=no
8490 ;;
8491 *)
8492 hardcode_direct=yes
8493 export_dynamic_flag_spec='${wl}-E'
8494
8495 # hardcode_minus_L: Not really in the search PATH,
8496 # but as the default location of the library.
8497 hardcode_minus_L=yes
8498 ;;
8499 esac
8500 fi
8501 ;;
8502
8503 irix5* | irix6* | nonstopux*)
8504 if test "$GCC" = yes; then
8505 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'
8506 else
8507 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'
8508 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8509 fi
8510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8511 hardcode_libdir_separator=:
8512 link_all_deplibs=yes
8513 ;;
8514
8515 netbsd* | netbsdelf*-gnu)
8516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8518 else
8519 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8520 fi
8521 hardcode_libdir_flag_spec='-R$libdir'
8522 hardcode_direct=yes
8523 hardcode_shlibpath_var=no
8524 ;;
8525
8526 newsos6)
8527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8528 hardcode_direct=yes
8529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8530 hardcode_libdir_separator=:
8531 hardcode_shlibpath_var=no
8532 ;;
8533
8534 openbsd*)
8535 hardcode_direct=yes
8536 hardcode_shlibpath_var=no
8537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8539 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8540 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8541 export_dynamic_flag_spec='${wl}-E'
8542 else
8543 case $host_os in
8544 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8546 hardcode_libdir_flag_spec='-R$libdir'
8547 ;;
8548 *)
8549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8551 ;;
8552 esac
8553 fi
8554 ;;
8555
8556 os2*)
8557 hardcode_libdir_flag_spec='-L$libdir'
8558 hardcode_minus_L=yes
8559 allow_undefined_flag=unsupported
8560 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'
8561 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8562 ;;
8563
8564 osf3*)
8565 if test "$GCC" = yes; then
8566 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8567 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'
8568 else
8569 allow_undefined_flag=' -expect_unresolved \*'
8570 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'
8571 fi
8572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8573 hardcode_libdir_separator=:
8574 ;;
8575
8576 osf4* | osf5*) # as osf3* with the addition of -msym flag
8577 if test "$GCC" = yes; then
8578 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8579 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'
8580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8581 else
8582 allow_undefined_flag=' -expect_unresolved \*'
8583 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'
8584 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8585 $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'
8586
8587 # Both c and cxx compiler support -rpath directly
8588 hardcode_libdir_flag_spec='-rpath $libdir'
8589 fi
8590 hardcode_libdir_separator=:
8591 ;;
8592
8593 solaris*)
8594 no_undefined_flag=' -z text'
8595 if test "$GCC" = yes; then
8596 wlarc='${wl}'
8597 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8598 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8599 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8600 else
8601 wlarc=''
8602 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8603 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8604 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8605 fi
8606 hardcode_libdir_flag_spec='-R$libdir'
8607 hardcode_shlibpath_var=no
8608 case $host_os in
8609 solaris2.[0-5] | solaris2.[0-5].*) ;;
8610 *)
8611 # The compiler driver will combine linker options so we
8612 # cannot just pass the convience library names through
8613 # without $wl, iff we do not link with $LD.
8614 # Luckily, gcc supports the same syntax we need for Sun Studio.
8615 # Supported since Solaris 2.6 (maybe 2.5.1?)
8616 case $wlarc in
8617 '')
8618 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8619 *)
8620 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8621 esac ;;
8622 esac
8623 link_all_deplibs=yes
8624 ;;
8625
8626 sunos4*)
8627 if test "x$host_vendor" = xsequent; then
8628 # Use $CC to link under sequent, because it throws in some extra .o
8629 # files that make .init and .fini sections work.
8630 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8631 else
8632 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8633 fi
8634 hardcode_libdir_flag_spec='-L$libdir'
8635 hardcode_direct=yes
8636 hardcode_minus_L=yes
8637 hardcode_shlibpath_var=no
8638 ;;
8639
8640 sysv4)
8641 case $host_vendor in
8642 sni)
8643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8644 hardcode_direct=yes # is this really true???
8645 ;;
8646 siemens)
8647 ## LD is ld it makes a PLAMLIB
8648 ## CC just makes a GrossModule.
8649 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8650 reload_cmds='$CC -r -o $output$reload_objs'
8651 hardcode_direct=no
8652 ;;
8653 motorola)
8654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8655 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8656 ;;
8657 esac
8658 runpath_var='LD_RUN_PATH'
8659 hardcode_shlibpath_var=no
8660 ;;
8661
8662 sysv4.3*)
8663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_shlibpath_var=no
8665 export_dynamic_flag_spec='-Bexport'
8666 ;;
8667
8668 sysv4*MP*)
8669 if test -d /usr/nec; then
8670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8671 hardcode_shlibpath_var=no
8672 runpath_var=LD_RUN_PATH
8673 hardcode_runpath_var=yes
8674 ld_shlibs=yes
8675 fi
8676 ;;
8677
8678 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8679 no_undefined_flag='${wl}-z,text'
8680 archive_cmds_need_lc=no
8681 hardcode_shlibpath_var=no
8682 runpath_var='LD_RUN_PATH'
8683
8684 if test "$GCC" = yes; then
8685 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8686 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8687 else
8688 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8689 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8690 fi
8691 ;;
8692
8693 sysv5* | sco3.2v5* | sco5v6*)
8694 # Note: We can NOT use -z defs as we might desire, because we do not
8695 # link with -lc, and that would cause any symbols used from libc to
8696 # always be unresolved, which means just about no library would
8697 # ever link correctly. If we're not using GNU ld we use -z text
8698 # though, which does catch some bad symbols but isn't as heavy-handed
8699 # as -z defs.
8700 no_undefined_flag='${wl}-z,text'
8701 allow_undefined_flag='${wl}-z,nodefs'
8702 archive_cmds_need_lc=no
8703 hardcode_shlibpath_var=no
8704 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8705 hardcode_libdir_separator=':'
8706 link_all_deplibs=yes
8707 export_dynamic_flag_spec='${wl}-Bexport'
8708 runpath_var='LD_RUN_PATH'
8709
8710 if test "$GCC" = yes; then
8711 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8713 else
8714 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8715 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716 fi
8717 ;;
8718
8719 uts4*)
8720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8721 hardcode_libdir_flag_spec='-L$libdir'
8722 hardcode_shlibpath_var=no
8723 ;;
8724
8725 *)
8726 ld_shlibs=no
8727 ;;
8728 esac
8729 fi
8730
8731 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8732 echo "${ECHO_T}$ld_shlibs" >&6; }
8733 test "$ld_shlibs" = no && can_build_shared=no
8734
8735 #
8736 # Do we need to explicitly link libc?
8737 #
8738 case "x$archive_cmds_need_lc" in
8739 x|xyes)
8740 # Assume -lc should be added
8741 archive_cmds_need_lc=yes
8742
8743 if test "$enable_shared" = yes && test "$GCC" = yes; then
8744 case $archive_cmds in
8745 *'~'*)
8746 # FIXME: we may have to deal with multi-command sequences.
8747 ;;
8748 '$CC '*)
8749 # Test whether the compiler implicitly links with -lc since on some
8750 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8751 # to ld, don't add -lc before -lgcc.
8752 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8753 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8754 $rm conftest*
8755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8756
8757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } 2>conftest.err; then
8762 soname=conftest
8763 lib=conftest
8764 libobjs=conftest.$ac_objext
8765 deplibs=
8766 wl=$lt_prog_compiler_wl
8767 pic_flag=$lt_prog_compiler_pic
8768 compiler_flags=-v
8769 linker_flags=-v
8770 verstring=
8771 output_objdir=.
8772 libname=conftest
8773 lt_save_allow_undefined_flag=$allow_undefined_flag
8774 allow_undefined_flag=
8775 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8776 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }
8780 then
8781 archive_cmds_need_lc=no
8782 else
8783 archive_cmds_need_lc=yes
8784 fi
8785 allow_undefined_flag=$lt_save_allow_undefined_flag
8786 else
8787 cat conftest.err 1>&5
8788 fi
8789 $rm conftest*
8790 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8791 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8792 ;;
8793 esac
8794 fi
8795 ;;
8796 esac
8797
8798 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8799 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8800 library_names_spec=
8801 libname_spec='lib$name'
8802 soname_spec=
8803 shrext_cmds=".so"
8804 postinstall_cmds=
8805 postuninstall_cmds=
8806 finish_cmds=
8807 finish_eval=
8808 shlibpath_var=
8809 shlibpath_overrides_runpath=unknown
8810 version_type=none
8811 dynamic_linker="$host_os ld.so"
8812 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8813 if test "$GCC" = yes; then
8814 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8815 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8816 # if the path contains ";" then we assume it to be the separator
8817 # otherwise default to the standard path separator (i.e. ":") - it is
8818 # assumed that no part of a normal pathname contains ";" but that should
8819 # okay in the real world where ";" in dirpaths is itself problematic.
8820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8821 else
8822 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8823 fi
8824 else
8825 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8826 fi
8827 need_lib_prefix=unknown
8828 hardcode_into_libs=no
8829
8830 # when you set need_version to no, make sure it does not cause -set_version
8831 # flags to be left without arguments
8832 need_version=unknown
8833
8834 case $host_os in
8835 aix3*)
8836 version_type=linux
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8838 shlibpath_var=LIBPATH
8839
8840 # AIX 3 has no versioning support, so we append a major version to the name.
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 ;;
8843
8844 aix4* | aix5*)
8845 version_type=linux
8846 need_lib_prefix=no
8847 need_version=no
8848 hardcode_into_libs=yes
8849 if test "$host_cpu" = ia64; then
8850 # AIX 5 supports IA64
8851 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8852 shlibpath_var=LD_LIBRARY_PATH
8853 else
8854 # With GCC up to 2.95.x, collect2 would create an import file
8855 # for dependence libraries. The import file would start with
8856 # the line `#! .'. This would cause the generated library to
8857 # depend on `.', always an invalid library. This was fixed in
8858 # development snapshots of GCC prior to 3.0.
8859 case $host_os in
8860 aix4 | aix4.[01] | aix4.[01].*)
8861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8862 echo ' yes '
8863 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8864 :
8865 else
8866 can_build_shared=no
8867 fi
8868 ;;
8869 esac
8870 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8871 # soname into executable. Probably we can add versioning support to
8872 # collect2, so additional links can be useful in future.
8873 if test "$aix_use_runtimelinking" = yes; then
8874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8875 # instead of lib<name>.a to let people know that these are not
8876 # typical AIX shared libraries.
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878 else
8879 # We preserve .a as extension for shared libraries through AIX4.2
8880 # and later when we are not doing run time linking.
8881 library_names_spec='${libname}${release}.a $libname.a'
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 fi
8884 shlibpath_var=LIBPATH
8885 fi
8886 ;;
8887
8888 amigaos*)
8889 library_names_spec='$libname.ixlibrary $libname.a'
8890 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8891 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'
8892 ;;
8893
8894 beos*)
8895 library_names_spec='${libname}${shared_ext}'
8896 dynamic_linker="$host_os ld.so"
8897 shlibpath_var=LIBRARY_PATH
8898 ;;
8899
8900 bsdi[45]*)
8901 version_type=linux
8902 need_version=no
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8906 shlibpath_var=LD_LIBRARY_PATH
8907 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8908 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8909 # the default ld.so.conf also contains /usr/contrib/lib and
8910 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8911 # libtool to hard-code these into programs
8912 ;;
8913
8914 cygwin* | mingw* | pw32*)
8915 version_type=windows
8916 shrext_cmds=".dll"
8917 need_version=no
8918 need_lib_prefix=no
8919
8920 case $GCC,$host_os in
8921 yes,cygwin* | yes,mingw* | yes,pw32*)
8922 library_names_spec='$libname.dll.a'
8923 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8924 postinstall_cmds='base_file=`basename \${file}`~
8925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8926 dldir=$destdir/`dirname \$dlpath`~
8927 test -d \$dldir || mkdir -p \$dldir~
8928 $install_prog $dir/$dlname \$dldir/$dlname~
8929 chmod a+x \$dldir/$dlname'
8930 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8931 dlpath=$dir/\$dldll~
8932 $rm \$dlpath'
8933 shlibpath_overrides_runpath=yes
8934
8935 case $host_os in
8936 cygwin*)
8937 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8938 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8939 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8940 ;;
8941 mingw*)
8942 # MinGW DLLs use traditional 'lib' prefix
8943 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8944 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8945 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8946 # It is most probably a Windows format PATH printed by
8947 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8948 # path with ; separators, and with drive letters. We can handle the
8949 # drive letters (cygwin fileutils understands them), so leave them,
8950 # especially as we might pass files found there to a mingw objdump,
8951 # which wouldn't understand a cygwinified path. Ahh.
8952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8953 else
8954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8955 fi
8956 ;;
8957 pw32*)
8958 # pw32 DLLs use 'pw' prefix rather than 'lib'
8959 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8960 ;;
8961 esac
8962 ;;
8963
8964 *)
8965 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8966 ;;
8967 esac
8968 dynamic_linker='Win32 ld.exe'
8969 # FIXME: first we should search . and the directory the executable is in
8970 shlibpath_var=PATH
8971 ;;
8972
8973 darwin* | rhapsody*)
8974 dynamic_linker="$host_os dyld"
8975 version_type=darwin
8976 need_lib_prefix=no
8977 need_version=no
8978 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8979 soname_spec='${libname}${release}${major}$shared_ext'
8980 shlibpath_overrides_runpath=yes
8981 shlibpath_var=DYLD_LIBRARY_PATH
8982 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8983 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8984 if test "$GCC" = yes; then
8985 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8986 else
8987 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8988 fi
8989 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8990 ;;
8991
8992 dgux*)
8993 version_type=linux
8994 need_lib_prefix=no
8995 need_version=no
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 shlibpath_var=LD_LIBRARY_PATH
8999 ;;
9000
9001 freebsd1*)
9002 dynamic_linker=no
9003 ;;
9004
9005 freebsd* | dragonfly*)
9006 # DragonFly does not have aout. When/if they implement a new
9007 # versioning mechanism, adjust this.
9008 if test -x /usr/bin/objformat; then
9009 objformat=`/usr/bin/objformat`
9010 else
9011 case $host_os in
9012 freebsd[123]*) objformat=aout ;;
9013 *) objformat=elf ;;
9014 esac
9015 fi
9016 version_type=freebsd-$objformat
9017 case $version_type in
9018 freebsd-elf*)
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9020 need_version=no
9021 need_lib_prefix=no
9022 ;;
9023 freebsd-*)
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9025 need_version=yes
9026 ;;
9027 esac
9028 shlibpath_var=LD_LIBRARY_PATH
9029 case $host_os in
9030 freebsd2*)
9031 shlibpath_overrides_runpath=yes
9032 ;;
9033 freebsd3.[01]* | freebsdelf3.[01]*)
9034 shlibpath_overrides_runpath=yes
9035 hardcode_into_libs=yes
9036 ;;
9037 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9038 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9039 shlibpath_overrides_runpath=no
9040 hardcode_into_libs=yes
9041 ;;
9042 freebsd*) # from 4.6 on
9043 shlibpath_overrides_runpath=yes
9044 hardcode_into_libs=yes
9045 ;;
9046 esac
9047 ;;
9048
9049 gnu*)
9050 version_type=linux
9051 need_lib_prefix=no
9052 need_version=no
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 hardcode_into_libs=yes
9057 ;;
9058
9059 hpux9* | hpux10* | hpux11*)
9060 # Give a soname corresponding to the major version so that dld.sl refuses to
9061 # link against other versions.
9062 version_type=sunos
9063 need_lib_prefix=no
9064 need_version=no
9065 case $host_cpu in
9066 ia64*)
9067 shrext_cmds='.so'
9068 hardcode_into_libs=yes
9069 dynamic_linker="$host_os dld.so"
9070 shlibpath_var=LD_LIBRARY_PATH
9071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 if test "X$HPUX_IA64_MODE" = X32; then
9075 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9076 else
9077 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9078 fi
9079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9080 ;;
9081 hppa*64*)
9082 shrext_cmds='.sl'
9083 hardcode_into_libs=yes
9084 dynamic_linker="$host_os dld.sl"
9085 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9086 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9091 ;;
9092 *)
9093 shrext_cmds='.sl'
9094 dynamic_linker="$host_os dld.sl"
9095 shlibpath_var=SHLIB_PATH
9096 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 ;;
9100 esac
9101 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9102 postinstall_cmds='chmod 555 $lib'
9103 ;;
9104
9105 interix3*)
9106 version_type=linux
9107 need_lib_prefix=no
9108 need_version=no
9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 shlibpath_overrides_runpath=no
9114 hardcode_into_libs=yes
9115 ;;
9116
9117 irix5* | irix6* | nonstopux*)
9118 case $host_os in
9119 nonstopux*) version_type=nonstopux ;;
9120 *)
9121 if test "$lt_cv_prog_gnu_ld" = yes; then
9122 version_type=linux
9123 else
9124 version_type=irix
9125 fi ;;
9126 esac
9127 need_lib_prefix=no
9128 need_version=no
9129 soname_spec='${libname}${release}${shared_ext}$major'
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9131 case $host_os in
9132 irix5* | nonstopux*)
9133 libsuff= shlibsuff=
9134 ;;
9135 *)
9136 case $LD in # libtool.m4 will add one of these switches to LD
9137 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9138 libsuff= shlibsuff= libmagic=32-bit;;
9139 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9140 libsuff=32 shlibsuff=N32 libmagic=N32;;
9141 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9142 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9143 *) libsuff= shlibsuff= libmagic=never-match;;
9144 esac
9145 ;;
9146 esac
9147 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9148 shlibpath_overrides_runpath=no
9149 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9150 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9151 hardcode_into_libs=yes
9152 ;;
9153
9154 # No shared lib support for Linux oldld, aout, or coff.
9155 linux*oldld* | linux*aout* | linux*coff*)
9156 dynamic_linker=no
9157 ;;
9158
9159 # This must be Linux ELF.
9160 linux* | k*bsd*-gnu)
9161 version_type=linux
9162 need_lib_prefix=no
9163 need_version=no
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9167 shlibpath_var=LD_LIBRARY_PATH
9168 shlibpath_overrides_runpath=no
9169 # This implies no fast_install, which is unacceptable.
9170 # Some rework will be needed to allow for fast_install
9171 # before this can be enabled.
9172 hardcode_into_libs=yes
9173
9174 # Append ld.so.conf contents to the search path
9175 if test -f /etc/ld.so.conf; then
9176 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9177 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9178 fi
9179
9180 # We used to test for /lib/ld.so.1 and disable shared libraries on
9181 # powerpc, because MkLinux only supported shared libraries with the
9182 # GNU dynamic linker. Since this was broken with cross compilers,
9183 # most powerpc-linux boxes support dynamic linking these days and
9184 # people can always --disable-shared, the test was removed, and we
9185 # assume the GNU/Linux dynamic linker is in use.
9186 dynamic_linker='GNU/Linux ld.so'
9187 ;;
9188
9189 netbsdelf*-gnu)
9190 version_type=linux
9191 need_lib_prefix=no
9192 need_version=no
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 shlibpath_overrides_runpath=no
9197 hardcode_into_libs=yes
9198 dynamic_linker='NetBSD ld.elf_so'
9199 ;;
9200
9201 netbsd*)
9202 version_type=sunos
9203 need_lib_prefix=no
9204 need_version=no
9205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9208 dynamic_linker='NetBSD (a.out) ld.so'
9209 else
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9211 soname_spec='${libname}${release}${shared_ext}$major'
9212 dynamic_linker='NetBSD ld.elf_so'
9213 fi
9214 shlibpath_var=LD_LIBRARY_PATH
9215 shlibpath_overrides_runpath=yes
9216 hardcode_into_libs=yes
9217 ;;
9218
9219 newsos6)
9220 version_type=linux
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9222 shlibpath_var=LD_LIBRARY_PATH
9223 shlibpath_overrides_runpath=yes
9224 ;;
9225
9226 nto-qnx*)
9227 version_type=linux
9228 need_lib_prefix=no
9229 need_version=no
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath=yes
9234 ;;
9235
9236 openbsd*)
9237 version_type=sunos
9238 sys_lib_dlsearch_path_spec="/usr/lib"
9239 need_lib_prefix=no
9240 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9241 case $host_os in
9242 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9243 *) need_version=no ;;
9244 esac
9245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9247 shlibpath_var=LD_LIBRARY_PATH
9248 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9249 case $host_os in
9250 openbsd2.[89] | openbsd2.[89].*)
9251 shlibpath_overrides_runpath=no
9252 ;;
9253 *)
9254 shlibpath_overrides_runpath=yes
9255 ;;
9256 esac
9257 else
9258 shlibpath_overrides_runpath=yes
9259 fi
9260 ;;
9261
9262 os2*)
9263 libname_spec='$name'
9264 shrext_cmds=".dll"
9265 need_lib_prefix=no
9266 library_names_spec='$libname${shared_ext} $libname.a'
9267 dynamic_linker='OS/2 ld.exe'
9268 shlibpath_var=LIBPATH
9269 ;;
9270
9271 osf3* | osf4* | osf5*)
9272 version_type=osf
9273 need_lib_prefix=no
9274 need_version=no
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9279 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9280 ;;
9281
9282 solaris*)
9283 version_type=linux
9284 need_lib_prefix=no
9285 need_version=no
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 soname_spec='${libname}${release}${shared_ext}$major'
9288 shlibpath_var=LD_LIBRARY_PATH
9289 shlibpath_overrides_runpath=yes
9290 hardcode_into_libs=yes
9291 # ldd complains unless libraries are executable
9292 postinstall_cmds='chmod +x $lib'
9293 ;;
9294
9295 sunos4*)
9296 version_type=sunos
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9298 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=yes
9301 if test "$with_gnu_ld" = yes; then
9302 need_lib_prefix=no
9303 fi
9304 need_version=yes
9305 ;;
9306
9307 sysv4 | sysv4.3*)
9308 version_type=linux
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 case $host_vendor in
9313 sni)
9314 shlibpath_overrides_runpath=no
9315 need_lib_prefix=no
9316 export_dynamic_flag_spec='${wl}-Blargedynsym'
9317 runpath_var=LD_RUN_PATH
9318 ;;
9319 siemens)
9320 need_lib_prefix=no
9321 ;;
9322 motorola)
9323 need_lib_prefix=no
9324 need_version=no
9325 shlibpath_overrides_runpath=no
9326 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9327 ;;
9328 esac
9329 ;;
9330
9331 sysv4*MP*)
9332 if test -d /usr/nec ;then
9333 version_type=linux
9334 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9335 soname_spec='$libname${shared_ext}.$major'
9336 shlibpath_var=LD_LIBRARY_PATH
9337 fi
9338 ;;
9339
9340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9341 version_type=freebsd-elf
9342 need_lib_prefix=no
9343 need_version=no
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 shlibpath_var=LD_LIBRARY_PATH
9347 hardcode_into_libs=yes
9348 if test "$with_gnu_ld" = yes; then
9349 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9350 shlibpath_overrides_runpath=no
9351 else
9352 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9353 shlibpath_overrides_runpath=yes
9354 case $host_os in
9355 sco3.2v5*)
9356 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9357 ;;
9358 esac
9359 fi
9360 sys_lib_dlsearch_path_spec='/usr/lib'
9361 ;;
9362
9363 uts4*)
9364 version_type=linux
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 ;;
9369
9370 *)
9371 dynamic_linker=no
9372 ;;
9373 esac
9374 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9375 echo "${ECHO_T}$dynamic_linker" >&6; }
9376 test "$dynamic_linker" = no && can_build_shared=no
9377
9378 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9379 if test "$GCC" = yes; then
9380 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9381 fi
9382
9383 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9384 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9385 hardcode_action=
9386 if test -n "$hardcode_libdir_flag_spec" || \
9387 test -n "$runpath_var" || \
9388 test "X$hardcode_automatic" = "Xyes" ; then
9389
9390 # We can hardcode non-existant directories.
9391 if test "$hardcode_direct" != no &&
9392 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9393 # have to relink, otherwise we might link with an installed library
9394 # when we should be linking with a yet-to-be-installed one
9395 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9396 test "$hardcode_minus_L" != no; then
9397 # Linking always hardcodes the temporary library directory.
9398 hardcode_action=relink
9399 else
9400 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9401 hardcode_action=immediate
9402 fi
9403 else
9404 # We cannot hardcode anything, or else we can only hardcode existing
9405 # directories.
9406 hardcode_action=unsupported
9407 fi
9408 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9409 echo "${ECHO_T}$hardcode_action" >&6; }
9410
9411 if test "$hardcode_action" = relink; then
9412 # Fast installation is not supported
9413 enable_fast_install=no
9414 elif test "$shlibpath_overrides_runpath" = yes ||
9415 test "$enable_shared" = no; then
9416 # Fast installation is not necessary
9417 enable_fast_install=needless
9418 fi
9419
9420 striplib=
9421 old_striplib=
9422 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9423 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9424 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9425 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9426 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9427 { echo "$as_me:$LINENO: result: yes" >&5
9428 echo "${ECHO_T}yes" >&6; }
9429 else
9430 # FIXME - insert some real tests, host_os isn't really good enough
9431 case $host_os in
9432 darwin*)
9433 if test -n "$STRIP" ; then
9434 striplib="$STRIP -x"
9435 { echo "$as_me:$LINENO: result: yes" >&5
9436 echo "${ECHO_T}yes" >&6; }
9437 else
9438 { echo "$as_me:$LINENO: result: no" >&5
9439 echo "${ECHO_T}no" >&6; }
9440 fi
9441 ;;
9442 *)
9443 { echo "$as_me:$LINENO: result: no" >&5
9444 echo "${ECHO_T}no" >&6; }
9445 ;;
9446 esac
9447 fi
9448
9449 if test "x$enable_dlopen" != xyes; then
9450 enable_dlopen=unknown
9451 enable_dlopen_self=unknown
9452 enable_dlopen_self_static=unknown
9453 else
9454 lt_cv_dlopen=no
9455 lt_cv_dlopen_libs=
9456
9457 case $host_os in
9458 beos*)
9459 lt_cv_dlopen="load_add_on"
9460 lt_cv_dlopen_libs=
9461 lt_cv_dlopen_self=yes
9462 ;;
9463
9464 mingw* | pw32*)
9465 lt_cv_dlopen="LoadLibrary"
9466 lt_cv_dlopen_libs=
9467 ;;
9468
9469 cygwin*)
9470 lt_cv_dlopen="dlopen"
9471 lt_cv_dlopen_libs=
9472 ;;
9473
9474 darwin*)
9475 # if libdl is installed we need to link against it
9476 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9477 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9478 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481 ac_check_lib_save_LIBS=$LIBS
9482 LIBS="-ldl $LIBS"
9483 cat >conftest.$ac_ext <<_ACEOF
9484 /* confdefs.h. */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489
9490 /* Override any GCC internal prototype to avoid an error.
9491 Use char because int might match the return type of a GCC
9492 builtin and then its argument prototype would still apply. */
9493 #ifdef __cplusplus
9494 extern "C"
9495 #endif
9496 char dlopen ();
9497 int
9498 main ()
9499 {
9500 return dlopen ();
9501 ;
9502 return 0;
9503 }
9504 _ACEOF
9505 rm -f conftest.$ac_objext conftest$ac_exeext
9506 if { (ac_try="$ac_link"
9507 case "(($ac_try" in
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9510 esac
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_link") 2>conftest.er1
9513 ac_status=$?
9514 grep -v '^ *+' conftest.er1 >conftest.err
9515 rm -f conftest.er1
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } && {
9519 test -z "$ac_c_werror_flag" ||
9520 test ! -s conftest.err
9521 } && test -s conftest$ac_exeext &&
9522 $as_test_x conftest$ac_exeext; then
9523 ac_cv_lib_dl_dlopen=yes
9524 else
9525 echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9527
9528 ac_cv_lib_dl_dlopen=no
9529 fi
9530
9531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9532 conftest$ac_exeext conftest.$ac_ext
9533 LIBS=$ac_check_lib_save_LIBS
9534 fi
9535 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9536 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9537 if test $ac_cv_lib_dl_dlopen = yes; then
9538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9539 else
9540
9541 lt_cv_dlopen="dyld"
9542 lt_cv_dlopen_libs=
9543 lt_cv_dlopen_self=yes
9544
9545 fi
9546
9547 ;;
9548
9549 *)
9550 { echo "$as_me:$LINENO: checking for shl_load" >&5
9551 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9552 if test "${ac_cv_func_shl_load+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555 cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h. */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h. */
9561 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9563 #define shl_load innocuous_shl_load
9564
9565 /* System header to define __stub macros and hopefully few prototypes,
9566 which can conflict with char shl_load (); below.
9567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9568 <limits.h> exists even on freestanding compilers. */
9569
9570 #ifdef __STDC__
9571 # include <limits.h>
9572 #else
9573 # include <assert.h>
9574 #endif
9575
9576 #undef shl_load
9577
9578 /* Override any GCC internal prototype to avoid an error.
9579 Use char because int might match the return type of a GCC
9580 builtin and then its argument prototype would still apply. */
9581 #ifdef __cplusplus
9582 extern "C"
9583 #endif
9584 char shl_load ();
9585 /* The GNU C library defines this for functions which it implements
9586 to always fail with ENOSYS. Some functions are actually named
9587 something starting with __ and the normal name is an alias. */
9588 #if defined __stub_shl_load || defined __stub___shl_load
9589 choke me
9590 #endif
9591
9592 int
9593 main ()
9594 {
9595 return shl_load ();
9596 ;
9597 return 0;
9598 }
9599 _ACEOF
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9602 case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605 esac
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_link") 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest$ac_exeext &&
9617 $as_test_x conftest$ac_exeext; then
9618 ac_cv_func_shl_load=yes
9619 else
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623 ac_cv_func_shl_load=no
9624 fi
9625
9626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9627 conftest$ac_exeext conftest.$ac_ext
9628 fi
9629 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9630 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9631 if test $ac_cv_func_shl_load = yes; then
9632 lt_cv_dlopen="shl_load"
9633 else
9634 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9635 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9636 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639 ac_check_lib_save_LIBS=$LIBS
9640 LIBS="-ldld $LIBS"
9641 cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h. */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9647
9648 /* Override any GCC internal prototype to avoid an error.
9649 Use char because int might match the return type of a GCC
9650 builtin and then its argument prototype would still apply. */
9651 #ifdef __cplusplus
9652 extern "C"
9653 #endif
9654 char shl_load ();
9655 int
9656 main ()
9657 {
9658 return shl_load ();
9659 ;
9660 return 0;
9661 }
9662 _ACEOF
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (ac_try="$ac_link"
9665 case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_link") 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest$ac_exeext &&
9680 $as_test_x conftest$ac_exeext; then
9681 ac_cv_lib_dld_shl_load=yes
9682 else
9683 echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9685
9686 ac_cv_lib_dld_shl_load=no
9687 fi
9688
9689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690 conftest$ac_exeext conftest.$ac_ext
9691 LIBS=$ac_check_lib_save_LIBS
9692 fi
9693 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9694 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9695 if test $ac_cv_lib_dld_shl_load = yes; then
9696 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9697 else
9698 { echo "$as_me:$LINENO: checking for dlopen" >&5
9699 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9700 if test "${ac_cv_func_dlopen+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702 else
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h. */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9711 #define dlopen innocuous_dlopen
9712
9713 /* System header to define __stub macros and hopefully few prototypes,
9714 which can conflict with char dlopen (); below.
9715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9716 <limits.h> exists even on freestanding compilers. */
9717
9718 #ifdef __STDC__
9719 # include <limits.h>
9720 #else
9721 # include <assert.h>
9722 #endif
9723
9724 #undef dlopen
9725
9726 /* Override any GCC internal prototype to avoid an error.
9727 Use char because int might match the return type of a GCC
9728 builtin and then its argument prototype would still apply. */
9729 #ifdef __cplusplus
9730 extern "C"
9731 #endif
9732 char dlopen ();
9733 /* The GNU C library defines this for functions which it implements
9734 to always fail with ENOSYS. Some functions are actually named
9735 something starting with __ and the normal name is an alias. */
9736 #if defined __stub_dlopen || defined __stub___dlopen
9737 choke me
9738 #endif
9739
9740 int
9741 main ()
9742 {
9743 return dlopen ();
9744 ;
9745 return 0;
9746 }
9747 _ACEOF
9748 rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (ac_try="$ac_link"
9750 case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_link") 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && {
9762 test -z "$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9764 } && test -s conftest$ac_exeext &&
9765 $as_test_x conftest$ac_exeext; then
9766 ac_cv_func_dlopen=yes
9767 else
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771 ac_cv_func_dlopen=no
9772 fi
9773
9774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9775 conftest$ac_exeext conftest.$ac_ext
9776 fi
9777 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9778 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9779 if test $ac_cv_func_dlopen = yes; then
9780 lt_cv_dlopen="dlopen"
9781 else
9782 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9783 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9784 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787 ac_check_lib_save_LIBS=$LIBS
9788 LIBS="-ldl $LIBS"
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h. */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795
9796 /* Override any GCC internal prototype to avoid an error.
9797 Use char because int might match the return type of a GCC
9798 builtin and then its argument prototype would still apply. */
9799 #ifdef __cplusplus
9800 extern "C"
9801 #endif
9802 char dlopen ();
9803 int
9804 main ()
9805 {
9806 return dlopen ();
9807 ;
9808 return 0;
9809 }
9810 _ACEOF
9811 rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (ac_try="$ac_link"
9813 case "(($ac_try" in
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9816 esac
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_link") 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } && {
9825 test -z "$ac_c_werror_flag" ||
9826 test ! -s conftest.err
9827 } && test -s conftest$ac_exeext &&
9828 $as_test_x conftest$ac_exeext; then
9829 ac_cv_lib_dl_dlopen=yes
9830 else
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_cv_lib_dl_dlopen=no
9835 fi
9836
9837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9838 conftest$ac_exeext conftest.$ac_ext
9839 LIBS=$ac_check_lib_save_LIBS
9840 fi
9841 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9842 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9843 if test $ac_cv_lib_dl_dlopen = yes; then
9844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9845 else
9846 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9847 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9848 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851 ac_check_lib_save_LIBS=$LIBS
9852 LIBS="-lsvld $LIBS"
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h. */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859
9860 /* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9863 #ifdef __cplusplus
9864 extern "C"
9865 #endif
9866 char dlopen ();
9867 int
9868 main ()
9869 {
9870 return dlopen ();
9871 ;
9872 return 0;
9873 }
9874 _ACEOF
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (ac_try="$ac_link"
9877 case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_link") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest$ac_exeext &&
9892 $as_test_x conftest$ac_exeext; then
9893 ac_cv_lib_svld_dlopen=yes
9894 else
9895 echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_cv_lib_svld_dlopen=no
9899 fi
9900
9901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9902 conftest$ac_exeext conftest.$ac_ext
9903 LIBS=$ac_check_lib_save_LIBS
9904 fi
9905 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9906 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9907 if test $ac_cv_lib_svld_dlopen = yes; then
9908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9909 else
9910 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9911 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9912 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 else
9915 ac_check_lib_save_LIBS=$LIBS
9916 LIBS="-ldld $LIBS"
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h. */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9923
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9927 #ifdef __cplusplus
9928 extern "C"
9929 #endif
9930 char dld_link ();
9931 int
9932 main ()
9933 {
9934 return dld_link ();
9935 ;
9936 return 0;
9937 }
9938 _ACEOF
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (ac_try="$ac_link"
9941 case "(($ac_try" in
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9944 esac
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_link") 2>conftest.er1
9947 ac_status=$?
9948 grep -v '^ *+' conftest.er1 >conftest.err
9949 rm -f conftest.er1
9950 cat conftest.err >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } && {
9953 test -z "$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 } && test -s conftest$ac_exeext &&
9956 $as_test_x conftest$ac_exeext; then
9957 ac_cv_lib_dld_dld_link=yes
9958 else
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9961
9962 ac_cv_lib_dld_dld_link=no
9963 fi
9964
9965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9966 conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_check_lib_save_LIBS
9968 fi
9969 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9970 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9971 if test $ac_cv_lib_dld_dld_link = yes; then
9972 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9973 fi
9974
9975
9976 fi
9977
9978
9979 fi
9980
9981
9982 fi
9983
9984
9985 fi
9986
9987
9988 fi
9989
9990 ;;
9991 esac
9992
9993 if test "x$lt_cv_dlopen" != xno; then
9994 enable_dlopen=yes
9995 else
9996 enable_dlopen=no
9997 fi
9998
9999 case $lt_cv_dlopen in
10000 dlopen)
10001 save_CPPFLAGS="$CPPFLAGS"
10002 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10003
10004 save_LDFLAGS="$LDFLAGS"
10005 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10006
10007 save_LIBS="$LIBS"
10008 LIBS="$lt_cv_dlopen_libs $LIBS"
10009
10010 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10011 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10012 if test "${lt_cv_dlopen_self+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015 if test "$cross_compiling" = yes; then :
10016 lt_cv_dlopen_self=cross
10017 else
10018 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10019 lt_status=$lt_dlunknown
10020 cat > conftest.$ac_ext <<EOF
10021 #line 10021 "configure"
10022 #include "confdefs.h"
10023
10024 #if HAVE_DLFCN_H
10025 #include <dlfcn.h>
10026 #endif
10027
10028 #include <stdio.h>
10029
10030 #ifdef RTLD_GLOBAL
10031 # define LT_DLGLOBAL RTLD_GLOBAL
10032 #else
10033 # ifdef DL_GLOBAL
10034 # define LT_DLGLOBAL DL_GLOBAL
10035 # else
10036 # define LT_DLGLOBAL 0
10037 # endif
10038 #endif
10039
10040 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10041 find out it does not work in some platform. */
10042 #ifndef LT_DLLAZY_OR_NOW
10043 # ifdef RTLD_LAZY
10044 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10045 # else
10046 # ifdef DL_LAZY
10047 # define LT_DLLAZY_OR_NOW DL_LAZY
10048 # else
10049 # ifdef RTLD_NOW
10050 # define LT_DLLAZY_OR_NOW RTLD_NOW
10051 # else
10052 # ifdef DL_NOW
10053 # define LT_DLLAZY_OR_NOW DL_NOW
10054 # else
10055 # define LT_DLLAZY_OR_NOW 0
10056 # endif
10057 # endif
10058 # endif
10059 # endif
10060 #endif
10061
10062 #ifdef __cplusplus
10063 extern "C" void exit (int);
10064 #endif
10065
10066 void fnord() { int i=42;}
10067 int main ()
10068 {
10069 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10070 int status = $lt_dlunknown;
10071
10072 if (self)
10073 {
10074 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10075 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10076 /* dlclose (self); */
10077 }
10078 else
10079 puts (dlerror ());
10080
10081 exit (status);
10082 }
10083 EOF
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085 (eval $ac_link) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10089 (./conftest; exit; ) >&5 2>/dev/null
10090 lt_status=$?
10091 case x$lt_status in
10092 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10093 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10094 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10095 esac
10096 else :
10097 # compilation failed
10098 lt_cv_dlopen_self=no
10099 fi
10100 fi
10101 rm -fr conftest*
10102
10103
10104 fi
10105 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10106 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10107
10108 if test "x$lt_cv_dlopen_self" = xyes; then
10109 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10110 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10111 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10112 if test "${lt_cv_dlopen_self_static+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115 if test "$cross_compiling" = yes; then :
10116 lt_cv_dlopen_self_static=cross
10117 else
10118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10119 lt_status=$lt_dlunknown
10120 cat > conftest.$ac_ext <<EOF
10121 #line 10121 "configure"
10122 #include "confdefs.h"
10123
10124 #if HAVE_DLFCN_H
10125 #include <dlfcn.h>
10126 #endif
10127
10128 #include <stdio.h>
10129
10130 #ifdef RTLD_GLOBAL
10131 # define LT_DLGLOBAL RTLD_GLOBAL
10132 #else
10133 # ifdef DL_GLOBAL
10134 # define LT_DLGLOBAL DL_GLOBAL
10135 # else
10136 # define LT_DLGLOBAL 0
10137 # endif
10138 #endif
10139
10140 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10141 find out it does not work in some platform. */
10142 #ifndef LT_DLLAZY_OR_NOW
10143 # ifdef RTLD_LAZY
10144 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10145 # else
10146 # ifdef DL_LAZY
10147 # define LT_DLLAZY_OR_NOW DL_LAZY
10148 # else
10149 # ifdef RTLD_NOW
10150 # define LT_DLLAZY_OR_NOW RTLD_NOW
10151 # else
10152 # ifdef DL_NOW
10153 # define LT_DLLAZY_OR_NOW DL_NOW
10154 # else
10155 # define LT_DLLAZY_OR_NOW 0
10156 # endif
10157 # endif
10158 # endif
10159 # endif
10160 #endif
10161
10162 #ifdef __cplusplus
10163 extern "C" void exit (int);
10164 #endif
10165
10166 void fnord() { int i=42;}
10167 int main ()
10168 {
10169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10170 int status = $lt_dlunknown;
10171
10172 if (self)
10173 {
10174 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10175 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10176 /* dlclose (self); */
10177 }
10178 else
10179 puts (dlerror ());
10180
10181 exit (status);
10182 }
10183 EOF
10184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185 (eval $ac_link) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10189 (./conftest; exit; ) >&5 2>/dev/null
10190 lt_status=$?
10191 case x$lt_status in
10192 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10193 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10194 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10195 esac
10196 else :
10197 # compilation failed
10198 lt_cv_dlopen_self_static=no
10199 fi
10200 fi
10201 rm -fr conftest*
10202
10203
10204 fi
10205 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10206 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10207 fi
10208
10209 CPPFLAGS="$save_CPPFLAGS"
10210 LDFLAGS="$save_LDFLAGS"
10211 LIBS="$save_LIBS"
10212 ;;
10213 esac
10214
10215 case $lt_cv_dlopen_self in
10216 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10217 *) enable_dlopen_self=unknown ;;
10218 esac
10219
10220 case $lt_cv_dlopen_self_static in
10221 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10222 *) enable_dlopen_self_static=unknown ;;
10223 esac
10224 fi
10225
10226
10227 # Report which library types will actually be built
10228 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10229 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10230 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10231 echo "${ECHO_T}$can_build_shared" >&6; }
10232
10233 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10234 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10235 test "$can_build_shared" = "no" && enable_shared=no
10236
10237 # On AIX, shared libraries and static libraries use the same namespace, and
10238 # are all built from PIC.
10239 case $host_os in
10240 aix3*)
10241 test "$enable_shared" = yes && enable_static=no
10242 if test -n "$RANLIB"; then
10243 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10244 postinstall_cmds='$RANLIB $lib'
10245 fi
10246 ;;
10247
10248 aix4* | aix5*)
10249 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10250 test "$enable_shared" = yes && enable_static=no
10251 fi
10252 ;;
10253 esac
10254 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10255 echo "${ECHO_T}$enable_shared" >&6; }
10256
10257 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10258 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10259 # Make sure either enable_shared or enable_static is yes.
10260 test "$enable_shared" = yes || enable_static=yes
10261 { echo "$as_me:$LINENO: result: $enable_static" >&5
10262 echo "${ECHO_T}$enable_static" >&6; }
10263
10264 # The else clause should only fire when bootstrapping the
10265 # libtool distribution, otherwise you forgot to ship ltmain.sh
10266 # with your package, and you will get complaints that there are
10267 # no rules to generate ltmain.sh.
10268 if test -f "$ltmain"; then
10269 # See if we are running on zsh, and set the options which allow our commands through
10270 # without removal of \ escapes.
10271 if test -n "${ZSH_VERSION+set}" ; then
10272 setopt NO_GLOB_SUBST
10273 fi
10274 # Now quote all the things that may contain metacharacters while being
10275 # careful not to overquote the AC_SUBSTed values. We take copies of the
10276 # variables and quote the copies for generation of the libtool script.
10277 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10278 SED SHELL STRIP \
10279 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10280 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10281 deplibs_check_method reload_flag reload_cmds need_locks \
10282 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10283 lt_cv_sys_global_symbol_to_c_name_address \
10284 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10285 old_postinstall_cmds old_postuninstall_cmds \
10286 compiler \
10287 CC \
10288 LD \
10289 lt_prog_compiler_wl \
10290 lt_prog_compiler_pic \
10291 lt_prog_compiler_static \
10292 lt_prog_compiler_no_builtin_flag \
10293 export_dynamic_flag_spec \
10294 thread_safe_flag_spec \
10295 whole_archive_flag_spec \
10296 enable_shared_with_static_runtimes \
10297 old_archive_cmds \
10298 old_archive_from_new_cmds \
10299 predep_objects \
10300 postdep_objects \
10301 predeps \
10302 postdeps \
10303 compiler_lib_search_path \
10304 archive_cmds \
10305 archive_expsym_cmds \
10306 postinstall_cmds \
10307 postuninstall_cmds \
10308 old_archive_from_expsyms_cmds \
10309 allow_undefined_flag \
10310 no_undefined_flag \
10311 export_symbols_cmds \
10312 hardcode_libdir_flag_spec \
10313 hardcode_libdir_flag_spec_ld \
10314 hardcode_libdir_separator \
10315 hardcode_automatic \
10316 module_cmds \
10317 module_expsym_cmds \
10318 lt_cv_prog_compiler_c_o \
10319 exclude_expsyms \
10320 include_expsyms; do
10321
10322 case $var in
10323 old_archive_cmds | \
10324 old_archive_from_new_cmds | \
10325 archive_cmds | \
10326 archive_expsym_cmds | \
10327 module_cmds | \
10328 module_expsym_cmds | \
10329 old_archive_from_expsyms_cmds | \
10330 export_symbols_cmds | \
10331 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10332 postinstall_cmds | postuninstall_cmds | \
10333 old_postinstall_cmds | old_postuninstall_cmds | \
10334 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10335 # Double-quote double-evaled strings.
10336 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10337 ;;
10338 *)
10339 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10340 ;;
10341 esac
10342 done
10343
10344 case $lt_echo in
10345 *'\$0 --fallback-echo"')
10346 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10347 ;;
10348 esac
10349
10350 cfgfile="${ofile}T"
10351 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10352 $rm -f "$cfgfile"
10353 { echo "$as_me:$LINENO: creating $ofile" >&5
10354 echo "$as_me: creating $ofile" >&6;}
10355
10356 cat <<__EOF__ >> "$cfgfile"
10357 #! $SHELL
10358
10359 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10360 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10361 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10362 #
10363 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10364 # Free Software Foundation, Inc.
10365 #
10366 # This file is part of GNU Libtool:
10367 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10368 #
10369 # This program is free software; you can redistribute it and/or modify
10370 # it under the terms of the GNU General Public License as published by
10371 # the Free Software Foundation; either version 2 of the License, or
10372 # (at your option) any later version.
10373 #
10374 # This program is distributed in the hope that it will be useful, but
10375 # WITHOUT ANY WARRANTY; without even the implied warranty of
10376 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10377 # General Public License for more details.
10378 #
10379 # You should have received a copy of the GNU General Public License
10380 # along with this program; if not, write to the Free Software
10381 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10382 #
10383 # As a special exception to the GNU General Public License, if you
10384 # distribute this file as part of a program that contains a
10385 # configuration script generated by Autoconf, you may include it under
10386 # the same distribution terms that you use for the rest of that program.
10387
10388 # A sed program that does not truncate output.
10389 SED=$lt_SED
10390
10391 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10392 Xsed="$SED -e 1s/^X//"
10393
10394 # The HP-UX ksh and POSIX shell print the target directory to stdout
10395 # if CDPATH is set.
10396 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10397
10398 # The names of the tagged configurations supported by this script.
10399 available_tags=
10400
10401 # ### BEGIN LIBTOOL CONFIG
10402
10403 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10404
10405 # Shell to use when invoking shell scripts.
10406 SHELL=$lt_SHELL
10407
10408 # Whether or not to build shared libraries.
10409 build_libtool_libs=$enable_shared
10410
10411 # Whether or not to build static libraries.
10412 build_old_libs=$enable_static
10413
10414 # Whether or not to add -lc for building shared libraries.
10415 build_libtool_need_lc=$archive_cmds_need_lc
10416
10417 # Whether or not to disallow shared libs when runtime libs are static
10418 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10419
10420 # Whether or not to optimize for fast installation.
10421 fast_install=$enable_fast_install
10422
10423 # The host system.
10424 host_alias=$host_alias
10425 host=$host
10426 host_os=$host_os
10427
10428 # The build system.
10429 build_alias=$build_alias
10430 build=$build
10431 build_os=$build_os
10432
10433 # An echo program that does not interpret backslashes.
10434 echo=$lt_echo
10435
10436 # The archiver.
10437 AR=$lt_AR
10438 AR_FLAGS=$lt_AR_FLAGS
10439
10440 # A C compiler.
10441 LTCC=$lt_LTCC
10442
10443 # LTCC compiler flags.
10444 LTCFLAGS=$lt_LTCFLAGS
10445
10446 # A language-specific compiler.
10447 CC=$lt_compiler
10448
10449 # Is the compiler the GNU C compiler?
10450 with_gcc=$GCC
10451
10452 # An ERE matcher.
10453 EGREP=$lt_EGREP
10454
10455 # The linker used to build libraries.
10456 LD=$lt_LD
10457
10458 # Whether we need hard or soft links.
10459 LN_S=$lt_LN_S
10460
10461 # A BSD-compatible nm program.
10462 NM=$lt_NM
10463
10464 # A symbol stripping program
10465 STRIP=$lt_STRIP
10466
10467 # Used to examine libraries when file_magic_cmd begins "file"
10468 MAGIC_CMD=$MAGIC_CMD
10469
10470 # Used on cygwin: DLL creation program.
10471 DLLTOOL="$DLLTOOL"
10472
10473 # Used on cygwin: object dumper.
10474 OBJDUMP="$OBJDUMP"
10475
10476 # Used on cygwin: assembler.
10477 AS="$AS"
10478
10479 # The name of the directory that contains temporary libtool files.
10480 objdir=$objdir
10481
10482 # How to create reloadable object files.
10483 reload_flag=$lt_reload_flag
10484 reload_cmds=$lt_reload_cmds
10485
10486 # How to pass a linker flag through the compiler.
10487 wl=$lt_lt_prog_compiler_wl
10488
10489 # Object file suffix (normally "o").
10490 objext="$ac_objext"
10491
10492 # Old archive suffix (normally "a").
10493 libext="$libext"
10494
10495 # Shared library suffix (normally ".so").
10496 shrext_cmds='$shrext_cmds'
10497
10498 # Executable file suffix (normally "").
10499 exeext="$exeext"
10500
10501 # Additional compiler flags for building library objects.
10502 pic_flag=$lt_lt_prog_compiler_pic
10503 pic_mode=$pic_mode
10504
10505 # What is the maximum length of a command?
10506 max_cmd_len=$lt_cv_sys_max_cmd_len
10507
10508 # Does compiler simultaneously support -c and -o options?
10509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10510
10511 # Must we lock files when doing compilation?
10512 need_locks=$lt_need_locks
10513
10514 # Do we need the lib prefix for modules?
10515 need_lib_prefix=$need_lib_prefix
10516
10517 # Do we need a version for libraries?
10518 need_version=$need_version
10519
10520 # Whether dlopen is supported.
10521 dlopen_support=$enable_dlopen
10522
10523 # Whether dlopen of programs is supported.
10524 dlopen_self=$enable_dlopen_self
10525
10526 # Whether dlopen of statically linked programs is supported.
10527 dlopen_self_static=$enable_dlopen_self_static
10528
10529 # Compiler flag to prevent dynamic linking.
10530 link_static_flag=$lt_lt_prog_compiler_static
10531
10532 # Compiler flag to turn off builtin functions.
10533 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10534
10535 # Compiler flag to allow reflexive dlopens.
10536 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10537
10538 # Compiler flag to generate shared objects directly from archives.
10539 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10540
10541 # Compiler flag to generate thread-safe objects.
10542 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10543
10544 # Library versioning type.
10545 version_type=$version_type
10546
10547 # Format of library name prefix.
10548 libname_spec=$lt_libname_spec
10549
10550 # List of archive names. First name is the real one, the rest are links.
10551 # The last name is the one that the linker finds with -lNAME.
10552 library_names_spec=$lt_library_names_spec
10553
10554 # The coded name of the library, if different from the real name.
10555 soname_spec=$lt_soname_spec
10556
10557 # Commands used to build and install an old-style archive.
10558 RANLIB=$lt_RANLIB
10559 old_archive_cmds=$lt_old_archive_cmds
10560 old_postinstall_cmds=$lt_old_postinstall_cmds
10561 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10562
10563 # Create an old-style archive from a shared archive.
10564 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10565
10566 # Create a temporary old-style archive to link instead of a shared archive.
10567 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10568
10569 # Commands used to build and install a shared archive.
10570 archive_cmds=$lt_archive_cmds
10571 archive_expsym_cmds=$lt_archive_expsym_cmds
10572 postinstall_cmds=$lt_postinstall_cmds
10573 postuninstall_cmds=$lt_postuninstall_cmds
10574
10575 # Commands used to build a loadable module (assumed same as above if empty)
10576 module_cmds=$lt_module_cmds
10577 module_expsym_cmds=$lt_module_expsym_cmds
10578
10579 # Commands to strip libraries.
10580 old_striplib=$lt_old_striplib
10581 striplib=$lt_striplib
10582
10583 # Dependencies to place before the objects being linked to create a
10584 # shared library.
10585 predep_objects=$lt_predep_objects
10586
10587 # Dependencies to place after the objects being linked to create a
10588 # shared library.
10589 postdep_objects=$lt_postdep_objects
10590
10591 # Dependencies to place before the objects being linked to create a
10592 # shared library.
10593 predeps=$lt_predeps
10594
10595 # Dependencies to place after the objects being linked to create a
10596 # shared library.
10597 postdeps=$lt_postdeps
10598
10599 # The library search path used internally by the compiler when linking
10600 # a shared library.
10601 compiler_lib_search_path=$lt_compiler_lib_search_path
10602
10603 # Method to check whether dependent libraries are shared objects.
10604 deplibs_check_method=$lt_deplibs_check_method
10605
10606 # Command to use when deplibs_check_method == file_magic.
10607 file_magic_cmd=$lt_file_magic_cmd
10608
10609 # Flag that allows shared libraries with undefined symbols to be built.
10610 allow_undefined_flag=$lt_allow_undefined_flag
10611
10612 # Flag that forces no undefined symbols.
10613 no_undefined_flag=$lt_no_undefined_flag
10614
10615 # Commands used to finish a libtool library installation in a directory.
10616 finish_cmds=$lt_finish_cmds
10617
10618 # Same as above, but a single script fragment to be evaled but not shown.
10619 finish_eval=$lt_finish_eval
10620
10621 # Take the output of nm and produce a listing of raw symbols and C names.
10622 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10623
10624 # Transform the output of nm in a proper C declaration
10625 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10626
10627 # Transform the output of nm in a C name address pair
10628 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10629
10630 # This is the shared library runtime path variable.
10631 runpath_var=$runpath_var
10632
10633 # This is the shared library path variable.
10634 shlibpath_var=$shlibpath_var
10635
10636 # Is shlibpath searched before the hard-coded library search path?
10637 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10638
10639 # How to hardcode a shared library path into an executable.
10640 hardcode_action=$hardcode_action
10641
10642 # Whether we should hardcode library paths into libraries.
10643 hardcode_into_libs=$hardcode_into_libs
10644
10645 # Flag to hardcode \$libdir into a binary during linking.
10646 # This must work even if \$libdir does not exist.
10647 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10648
10649 # If ld is used when linking, flag to hardcode \$libdir into
10650 # a binary during linking. This must work even if \$libdir does
10651 # not exist.
10652 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10653
10654 # Whether we need a single -rpath flag with a separated argument.
10655 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10656
10657 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10658 # resulting binary.
10659 hardcode_direct=$hardcode_direct
10660
10661 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10662 # resulting binary.
10663 hardcode_minus_L=$hardcode_minus_L
10664
10665 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10666 # the resulting binary.
10667 hardcode_shlibpath_var=$hardcode_shlibpath_var
10668
10669 # Set to yes if building a shared library automatically hardcodes DIR into the library
10670 # and all subsequent libraries and executables linked against it.
10671 hardcode_automatic=$hardcode_automatic
10672
10673 # Variables whose values should be saved in libtool wrapper scripts and
10674 # restored at relink time.
10675 variables_saved_for_relink="$variables_saved_for_relink"
10676
10677 # Whether libtool must link a program against all its dependency libraries.
10678 link_all_deplibs=$link_all_deplibs
10679
10680 # Compile-time system search path for libraries
10681 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10682
10683 # Run-time system search path for libraries
10684 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10685
10686 # Fix the shell variable \$srcfile for the compiler.
10687 fix_srcfile_path="$fix_srcfile_path"
10688
10689 # Set to yes if exported symbols are required.
10690 always_export_symbols=$always_export_symbols
10691
10692 # The commands to list exported symbols.
10693 export_symbols_cmds=$lt_export_symbols_cmds
10694
10695 # The commands to extract the exported symbol list from a shared archive.
10696 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10697
10698 # Symbols that should not be listed in the preloaded symbols.
10699 exclude_expsyms=$lt_exclude_expsyms
10700
10701 # Symbols that must always be exported.
10702 include_expsyms=$lt_include_expsyms
10703
10704 # ### END LIBTOOL CONFIG
10705
10706 __EOF__
10707
10708
10709 case $host_os in
10710 aix3*)
10711 cat <<\EOF >> "$cfgfile"
10712
10713 # AIX sometimes has problems with the GCC collect2 program. For some
10714 # reason, if we set the COLLECT_NAMES environment variable, the problems
10715 # vanish in a puff of smoke.
10716 if test "X${COLLECT_NAMES+set}" != Xset; then
10717 COLLECT_NAMES=
10718 export COLLECT_NAMES
10719 fi
10720 EOF
10721 ;;
10722 esac
10723
10724 # We use sed instead of cat because bash on DJGPP gets confused if
10725 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10726 # text mode, it properly converts lines to CR/LF. This bash problem
10727 # is reportedly fixed, but why not run on old versions too?
10728 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10729
10730 mv -f "$cfgfile" "$ofile" || \
10731 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10732 chmod +x "$ofile"
10733
10734 else
10735 # If there is no Makefile yet, we rely on a make rule to execute
10736 # `config.status --recheck' to rerun these tests and create the
10737 # libtool script then.
10738 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10739 if test -f "$ltmain_in"; then
10740 test -f Makefile && make "$ltmain"
10741 fi
10742 fi
10743
10744
10745 ac_ext=c
10746 ac_cpp='$CPP $CPPFLAGS'
10747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10750
10751 CC="$lt_save_CC"
10752
10753
10754 # Check whether --with-tags was given.
10755 if test "${with_tags+set}" = set; then
10756 withval=$with_tags; tagnames="$withval"
10757 fi
10758
10759
10760 if test -f "$ltmain" && test -n "$tagnames"; then
10761 if test ! -f "${ofile}"; then
10762 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10763 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10764 fi
10765
10766 if test -z "$LTCC"; then
10767 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10768 if test -z "$LTCC"; then
10769 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10770 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10771 else
10772 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10773 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10774 fi
10775 fi
10776 if test -z "$LTCFLAGS"; then
10777 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10778 fi
10779
10780 # Extract list of available tagged configurations in $ofile.
10781 # Note that this assumes the entire list is on one line.
10782 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10783
10784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10785 for tagname in $tagnames; do
10786 IFS="$lt_save_ifs"
10787 # Check whether tagname contains only valid characters
10788 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10789 "") ;;
10790 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10791 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10792 { (exit 1); exit 1; }; }
10793 ;;
10794 esac
10795
10796 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10797 then
10798 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10799 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10800 { (exit 1); exit 1; }; }
10801 fi
10802
10803 # Update the list of available tags.
10804 if test -n "$tagname"; then
10805 echo appending configuration tag \"$tagname\" to $ofile
10806
10807 case $tagname in
10808 CXX)
10809 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10810 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10811 (test "X$CXX" != "Xg++"))) ; then
10812 ac_ext=cpp
10813 ac_cpp='$CXXCPP $CPPFLAGS'
10814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10817
10818
10819
10820
10821 archive_cmds_need_lc_CXX=no
10822 allow_undefined_flag_CXX=
10823 always_export_symbols_CXX=no
10824 archive_expsym_cmds_CXX=
10825 export_dynamic_flag_spec_CXX=
10826 hardcode_direct_CXX=no
10827 hardcode_libdir_flag_spec_CXX=
10828 hardcode_libdir_flag_spec_ld_CXX=
10829 hardcode_libdir_separator_CXX=
10830 hardcode_minus_L_CXX=no
10831 hardcode_shlibpath_var_CXX=unsupported
10832 hardcode_automatic_CXX=no
10833 module_cmds_CXX=
10834 module_expsym_cmds_CXX=
10835 link_all_deplibs_CXX=unknown
10836 old_archive_cmds_CXX=$old_archive_cmds
10837 no_undefined_flag_CXX=
10838 whole_archive_flag_spec_CXX=
10839 enable_shared_with_static_runtimes_CXX=no
10840
10841 # Dependencies to place before and after the object being linked:
10842 predep_objects_CXX=
10843 postdep_objects_CXX=
10844 predeps_CXX=
10845 postdeps_CXX=
10846 compiler_lib_search_path_CXX=
10847
10848 # Source file extension for C++ test sources.
10849 ac_ext=cpp
10850
10851 # Object file extension for compiled C++ test sources.
10852 objext=o
10853 objext_CXX=$objext
10854
10855 # Code to be used in simple compile tests
10856 lt_simple_compile_test_code="int some_variable = 0;\n"
10857
10858 # Code to be used in simple link tests
10859 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10860
10861 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10862
10863 # If no C compiler was specified, use CC.
10864 LTCC=${LTCC-"$CC"}
10865
10866 # If no C compiler flags were specified, use CFLAGS.
10867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10868
10869 # Allow CC to be a program name with arguments.
10870 compiler=$CC
10871
10872
10873 # save warnings/boilerplate of simple test code
10874 ac_outfile=conftest.$ac_objext
10875 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10876 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10877 _lt_compiler_boilerplate=`cat conftest.err`
10878 $rm conftest*
10879
10880 ac_outfile=conftest.$ac_objext
10881 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10882 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10883 _lt_linker_boilerplate=`cat conftest.err`
10884 $rm conftest*
10885
10886
10887 # Allow CC to be a program name with arguments.
10888 lt_save_CC=$CC
10889 lt_save_LD=$LD
10890 lt_save_GCC=$GCC
10891 GCC=$GXX
10892 lt_save_with_gnu_ld=$with_gnu_ld
10893 lt_save_path_LD=$lt_cv_path_LD
10894 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10895 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10896 else
10897 $as_unset lt_cv_prog_gnu_ld
10898 fi
10899 if test -n "${lt_cv_path_LDCXX+set}"; then
10900 lt_cv_path_LD=$lt_cv_path_LDCXX
10901 else
10902 $as_unset lt_cv_path_LD
10903 fi
10904 test -z "${LDCXX+set}" || LD=$LDCXX
10905 CC=${CXX-"c++"}
10906 compiler=$CC
10907 compiler_CXX=$CC
10908 for cc_temp in $compiler""; do
10909 case $cc_temp in
10910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10912 \-*) ;;
10913 *) break;;
10914 esac
10915 done
10916 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10917
10918
10919 # We don't want -fno-exception wen compiling C++ code, so set the
10920 # no_builtin_flag separately
10921 if test "$GXX" = yes; then
10922 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10923 else
10924 lt_prog_compiler_no_builtin_flag_CXX=
10925 fi
10926
10927 if test "$GXX" = yes; then
10928 # Set up default GNU C++ configuration
10929
10930
10931 # Check whether --with-gnu-ld was given.
10932 if test "${with_gnu_ld+set}" = set; then
10933 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10934 else
10935 with_gnu_ld=no
10936 fi
10937
10938 ac_prog=ld
10939 if test "$GCC" = yes; then
10940 # Check if gcc -print-prog-name=ld gives a path.
10941 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10942 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10943 case $host in
10944 *-*-mingw*)
10945 # gcc leaves a trailing carriage return which upsets mingw
10946 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10947 *)
10948 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10949 esac
10950 case $ac_prog in
10951 # Accept absolute paths.
10952 [\\/]* | ?:[\\/]*)
10953 re_direlt='/[^/][^/]*/\.\./'
10954 # Canonicalize the pathname of ld
10955 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10956 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10957 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10958 done
10959 test -z "$LD" && LD="$ac_prog"
10960 ;;
10961 "")
10962 # If it fails, then pretend we aren't using GCC.
10963 ac_prog=ld
10964 ;;
10965 *)
10966 # If it is relative, then search for the first ld in PATH.
10967 with_gnu_ld=unknown
10968 ;;
10969 esac
10970 elif test "$with_gnu_ld" = yes; then
10971 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10972 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10973 else
10974 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10975 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10976 fi
10977 if test "${lt_cv_path_LD+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 else
10980 if test -z "$LD"; then
10981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10982 for ac_dir in $PATH; do
10983 IFS="$lt_save_ifs"
10984 test -z "$ac_dir" && ac_dir=.
10985 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10986 lt_cv_path_LD="$ac_dir/$ac_prog"
10987 # Check to see if the program is GNU ld. I'd rather use --version,
10988 # but apparently some variants of GNU ld only accept -v.
10989 # Break only if it was the GNU/non-GNU ld that we prefer.
10990 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10991 *GNU* | *'with BFD'*)
10992 test "$with_gnu_ld" != no && break
10993 ;;
10994 *)
10995 test "$with_gnu_ld" != yes && break
10996 ;;
10997 esac
10998 fi
10999 done
11000 IFS="$lt_save_ifs"
11001 else
11002 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11003 fi
11004 fi
11005
11006 LD="$lt_cv_path_LD"
11007 if test -n "$LD"; then
11008 { echo "$as_me:$LINENO: result: $LD" >&5
11009 echo "${ECHO_T}$LD" >&6; }
11010 else
11011 { echo "$as_me:$LINENO: result: no" >&5
11012 echo "${ECHO_T}no" >&6; }
11013 fi
11014 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11015 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11016 { (exit 1); exit 1; }; }
11017 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11018 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11019 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11023 case `$LD -v 2>&1 </dev/null` in
11024 *GNU* | *'with BFD'*)
11025 lt_cv_prog_gnu_ld=yes
11026 ;;
11027 *)
11028 lt_cv_prog_gnu_ld=no
11029 ;;
11030 esac
11031 fi
11032 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11033 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11034 with_gnu_ld=$lt_cv_prog_gnu_ld
11035
11036
11037
11038 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11039 # archiving commands below assume that GNU ld is being used.
11040 if test "$with_gnu_ld" = yes; then
11041 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11042 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'
11043
11044 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11045 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11046
11047 # If archive_cmds runs LD, not CC, wlarc should be empty
11048 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11049 # investigate it a little bit more. (MM)
11050 wlarc='${wl}'
11051
11052 # ancient GNU ld didn't support --whole-archive et. al.
11053 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11054 grep 'no-whole-archive' > /dev/null; then
11055 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11056 else
11057 whole_archive_flag_spec_CXX=
11058 fi
11059 else
11060 with_gnu_ld=no
11061 wlarc=
11062
11063 # A generic and very simple default shared library creation
11064 # command for GNU C++ for the case where it uses the native
11065 # linker, instead of GNU ld. If possible, this setting should
11066 # overridden to take advantage of the native linker features on
11067 # the platform it is being used on.
11068 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11069 fi
11070
11071 # Commands to make compiler produce verbose output that lists
11072 # what "hidden" libraries, object files and flags are used when
11073 # linking a shared library.
11074 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11075
11076 else
11077 GXX=no
11078 with_gnu_ld=no
11079 wlarc=
11080 fi
11081
11082 # PORTME: fill in a description of your system's C++ link characteristics
11083 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11084 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11085 ld_shlibs_CXX=yes
11086 case $host_os in
11087 aix3*)
11088 # FIXME: insert proper C++ library support
11089 ld_shlibs_CXX=no
11090 ;;
11091 aix4* | aix5*)
11092 if test "$host_cpu" = ia64; then
11093 # On IA64, the linker does run time linking by default, so we don't
11094 # have to do anything special.
11095 aix_use_runtimelinking=no
11096 exp_sym_flag='-Bexport'
11097 no_entry_flag=""
11098 else
11099 aix_use_runtimelinking=no
11100
11101 # Test if we are trying to use run time linking or normal
11102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11103 # need to do runtime linking.
11104 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11105 for ld_flag in $LDFLAGS; do
11106 case $ld_flag in
11107 *-brtl*)
11108 aix_use_runtimelinking=yes
11109 break
11110 ;;
11111 esac
11112 done
11113 ;;
11114 esac
11115
11116 exp_sym_flag='-bexport'
11117 no_entry_flag='-bnoentry'
11118 fi
11119
11120 # When large executables or shared objects are built, AIX ld can
11121 # have problems creating the table of contents. If linking a library
11122 # or program results in "error TOC overflow" add -mminimal-toc to
11123 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11124 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11125
11126 archive_cmds_CXX=''
11127 hardcode_direct_CXX=yes
11128 hardcode_libdir_separator_CXX=':'
11129 link_all_deplibs_CXX=yes
11130
11131 if test "$GXX" = yes; then
11132 case $host_os in aix4.[012]|aix4.[012].*)
11133 # We only want to do this on AIX 4.2 and lower, the check
11134 # below for broken collect2 doesn't work under 4.3+
11135 collect2name=`${CC} -print-prog-name=collect2`
11136 if test -f "$collect2name" && \
11137 strings "$collect2name" | grep resolve_lib_name >/dev/null
11138 then
11139 # We have reworked collect2
11140 hardcode_direct_CXX=yes
11141 else
11142 # We have old collect2
11143 hardcode_direct_CXX=unsupported
11144 # It fails to find uninstalled libraries when the uninstalled
11145 # path is not listed in the libpath. Setting hardcode_minus_L
11146 # to unsupported forces relinking
11147 hardcode_minus_L_CXX=yes
11148 hardcode_libdir_flag_spec_CXX='-L$libdir'
11149 hardcode_libdir_separator_CXX=
11150 fi
11151 ;;
11152 esac
11153 shared_flag='-shared'
11154 if test "$aix_use_runtimelinking" = yes; then
11155 shared_flag="$shared_flag "'${wl}-G'
11156 fi
11157 else
11158 # not using gcc
11159 if test "$host_cpu" = ia64; then
11160 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11161 # chokes on -Wl,-G. The following line is correct:
11162 shared_flag='-G'
11163 else
11164 if test "$aix_use_runtimelinking" = yes; then
11165 shared_flag='${wl}-G'
11166 else
11167 shared_flag='${wl}-bM:SRE'
11168 fi
11169 fi
11170 fi
11171
11172 # It seems that -bexpall does not export symbols beginning with
11173 # underscore (_), so it is better to generate a list of symbols to export.
11174 always_export_symbols_CXX=yes
11175 if test "$aix_use_runtimelinking" = yes; then
11176 # Warning - without using the other runtime loading flags (-brtl),
11177 # -berok will link without error, but may produce a broken library.
11178 allow_undefined_flag_CXX='-berok'
11179 # Determine the default libpath from the value encoded in an empty executable.
11180 cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h. */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186
11187 int
11188 main ()
11189 {
11190
11191 ;
11192 return 0;
11193 }
11194 _ACEOF
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (ac_try="$ac_link"
11197 case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200 esac
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_link") 2>conftest.er1
11203 ac_status=$?
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } && {
11209 test -z "$ac_cxx_werror_flag" ||
11210 test ! -s conftest.err
11211 } && test -s conftest$ac_exeext &&
11212 $as_test_x conftest$ac_exeext; then
11213
11214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11215 }'`
11216 # Check for a 64-bit object if we didn't find anything.
11217 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11218 }'`; fi
11219 else
11220 echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.$ac_ext >&5
11222
11223
11224 fi
11225
11226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11227 conftest$ac_exeext conftest.$ac_ext
11228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11229
11230 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11231
11232 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"
11233 else
11234 if test "$host_cpu" = ia64; then
11235 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11236 allow_undefined_flag_CXX="-z nodefs"
11237 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"
11238 else
11239 # Determine the default libpath from the value encoded in an empty executable.
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246
11247 int
11248 main ()
11249 {
11250
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_link") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_cxx_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest$ac_exeext &&
11272 $as_test_x conftest$ac_exeext; then
11273
11274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11275 }'`
11276 # Check for a 64-bit object if we didn't find anything.
11277 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11278 }'`; fi
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283
11284 fi
11285
11286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11287 conftest$ac_exeext conftest.$ac_ext
11288 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11289
11290 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11291 # Warning - without using the other run time loading flags,
11292 # -berok will link without error, but may produce a broken library.
11293 no_undefined_flag_CXX=' ${wl}-bernotok'
11294 allow_undefined_flag_CXX=' ${wl}-berok'
11295 # Exported symbols can be pulled into shared objects from archives
11296 whole_archive_flag_spec_CXX='$convenience'
11297 archive_cmds_need_lc_CXX=yes
11298 # This is similar to how AIX traditionally builds its shared libraries.
11299 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'
11300 fi
11301 fi
11302 ;;
11303
11304 beos*)
11305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11306 allow_undefined_flag_CXX=unsupported
11307 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11308 # support --undefined. This deserves some investigation. FIXME
11309 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11310 else
11311 ld_shlibs_CXX=no
11312 fi
11313 ;;
11314
11315 chorus*)
11316 case $cc_basename in
11317 *)
11318 # FIXME: insert proper C++ library support
11319 ld_shlibs_CXX=no
11320 ;;
11321 esac
11322 ;;
11323
11324 cygwin* | mingw* | pw32*)
11325 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11326 # as there is no search path for DLLs.
11327 hardcode_libdir_flag_spec_CXX='-L$libdir'
11328 allow_undefined_flag_CXX=unsupported
11329 always_export_symbols_CXX=no
11330 enable_shared_with_static_runtimes_CXX=yes
11331
11332 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11333 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'
11334 # If the export-symbols file already is a .def file (1st line
11335 # is EXPORTS), use it as is; otherwise, prepend...
11336 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11337 cp $export_symbols $output_objdir/$soname.def;
11338 else
11339 echo EXPORTS > $output_objdir/$soname.def;
11340 cat $export_symbols >> $output_objdir/$soname.def;
11341 fi~
11342 $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'
11343 else
11344 ld_shlibs_CXX=no
11345 fi
11346 ;;
11347 darwin* | rhapsody*)
11348 case $host_os in
11349 rhapsody* | darwin1.[012])
11350 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11351 ;;
11352 *) # Darwin 1.3 on
11353 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11354 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11355 else
11356 case ${MACOSX_DEPLOYMENT_TARGET} in
11357 10.[012])
11358 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11359 ;;
11360 10.*)
11361 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11362 ;;
11363 esac
11364 fi
11365 ;;
11366 esac
11367 archive_cmds_need_lc_CXX=no
11368 hardcode_direct_CXX=no
11369 hardcode_automatic_CXX=yes
11370 hardcode_shlibpath_var_CXX=unsupported
11371 whole_archive_flag_spec_CXX=''
11372 link_all_deplibs_CXX=yes
11373
11374 if test "$GXX" = yes ; then
11375 lt_int_apple_cc_single_mod=no
11376 output_verbose_link_cmd='echo'
11377 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11378 lt_int_apple_cc_single_mod=yes
11379 fi
11380 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11381 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11382 else
11383 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'
11384 fi
11385 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11386 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11387 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11388 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}'
11389 else
11390 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}'
11391 fi
11392 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}'
11393 else
11394 case $cc_basename in
11395 xlc*)
11396 output_verbose_link_cmd='echo'
11397 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11398 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11399 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11400 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11401 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}'
11402 ;;
11403 *)
11404 ld_shlibs_CXX=no
11405 ;;
11406 esac
11407 fi
11408 ;;
11409
11410 dgux*)
11411 case $cc_basename in
11412 ec++*)
11413 # FIXME: insert proper C++ library support
11414 ld_shlibs_CXX=no
11415 ;;
11416 ghcx*)
11417 # Green Hills C++ Compiler
11418 # FIXME: insert proper C++ library support
11419 ld_shlibs_CXX=no
11420 ;;
11421 *)
11422 # FIXME: insert proper C++ library support
11423 ld_shlibs_CXX=no
11424 ;;
11425 esac
11426 ;;
11427 freebsd[12]*)
11428 # C++ shared libraries reported to be fairly broken before switch to ELF
11429 ld_shlibs_CXX=no
11430 ;;
11431 freebsd-elf*)
11432 archive_cmds_need_lc_CXX=no
11433 ;;
11434 freebsd* | dragonfly*)
11435 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11436 # conventions
11437 ld_shlibs_CXX=yes
11438 ;;
11439 gnu*)
11440 ;;
11441 hpux9*)
11442 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11443 hardcode_libdir_separator_CXX=:
11444 export_dynamic_flag_spec_CXX='${wl}-E'
11445 hardcode_direct_CXX=yes
11446 hardcode_minus_L_CXX=yes # Not in the search PATH,
11447 # but as the default
11448 # location of the library.
11449
11450 case $cc_basename in
11451 CC*)
11452 # FIXME: insert proper C++ library support
11453 ld_shlibs_CXX=no
11454 ;;
11455 aCC*)
11456 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'
11457 # Commands to make compiler produce verbose output that lists
11458 # what "hidden" libraries, object files and flags are used when
11459 # linking a shared library.
11460 #
11461 # There doesn't appear to be a way to prevent this compiler from
11462 # explicitly linking system object files so we need to strip them
11463 # from the output so that they don't get included in the library
11464 # dependencies.
11465 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'
11466 ;;
11467 *)
11468 if test "$GXX" = yes; then
11469 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'
11470 else
11471 # FIXME: insert proper C++ library support
11472 ld_shlibs_CXX=no
11473 fi
11474 ;;
11475 esac
11476 ;;
11477 hpux10*|hpux11*)
11478 if test $with_gnu_ld = no; then
11479 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11480 hardcode_libdir_separator_CXX=:
11481
11482 case $host_cpu in
11483 hppa*64*|ia64*)
11484 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11485 ;;
11486 *)
11487 export_dynamic_flag_spec_CXX='${wl}-E'
11488 ;;
11489 esac
11490 fi
11491 case $host_cpu in
11492 hppa*64*|ia64*)
11493 hardcode_direct_CXX=no
11494 hardcode_shlibpath_var_CXX=no
11495 ;;
11496 *)
11497 hardcode_direct_CXX=yes
11498 hardcode_minus_L_CXX=yes # Not in the search PATH,
11499 # but as the default
11500 # location of the library.
11501 ;;
11502 esac
11503
11504 case $cc_basename in
11505 CC*)
11506 # FIXME: insert proper C++ library support
11507 ld_shlibs_CXX=no
11508 ;;
11509 aCC*)
11510 case $host_cpu in
11511 hppa*64*)
11512 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11513 ;;
11514 ia64*)
11515 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11516 ;;
11517 *)
11518 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11519 ;;
11520 esac
11521 # Commands to make compiler produce verbose output that lists
11522 # what "hidden" libraries, object files and flags are used when
11523 # linking a shared library.
11524 #
11525 # There doesn't appear to be a way to prevent this compiler from
11526 # explicitly linking system object files so we need to strip them
11527 # from the output so that they don't get included in the library
11528 # dependencies.
11529 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'
11530 ;;
11531 *)
11532 if test "$GXX" = yes; then
11533 if test $with_gnu_ld = no; then
11534 case $host_cpu in
11535 hppa*64*)
11536 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11537 ;;
11538 ia64*)
11539 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11540 ;;
11541 *)
11542 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'
11543 ;;
11544 esac
11545 fi
11546 else
11547 # FIXME: insert proper C++ library support
11548 ld_shlibs_CXX=no
11549 fi
11550 ;;
11551 esac
11552 ;;
11553 interix3*)
11554 hardcode_direct_CXX=no
11555 hardcode_shlibpath_var_CXX=no
11556 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11557 export_dynamic_flag_spec_CXX='${wl}-E'
11558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11559 # Instead, shared libraries are loaded at an image base (0x10000000 by
11560 # default) and relocated if they conflict, which is a slow very memory
11561 # consuming and fragmenting process. To avoid this, we pick a random,
11562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11564 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'
11565 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'
11566 ;;
11567 irix5* | irix6*)
11568 case $cc_basename in
11569 CC*)
11570 # SGI C++
11571 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'
11572
11573 # Archives containing C++ object files must be created using
11574 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11575 # necessary to make sure instantiated templates are included
11576 # in the archive.
11577 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11578 ;;
11579 *)
11580 if test "$GXX" = yes; then
11581 if test "$with_gnu_ld" = no; then
11582 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'
11583 else
11584 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'
11585 fi
11586 fi
11587 link_all_deplibs_CXX=yes
11588 ;;
11589 esac
11590 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11591 hardcode_libdir_separator_CXX=:
11592 ;;
11593 linux* | k*bsd*-gnu)
11594 case $cc_basename in
11595 KCC*)
11596 # Kuck and Associates, Inc. (KAI) C++ Compiler
11597
11598 # KCC will only create a shared library if the output file
11599 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11600 # to its proper name (with version) after linking.
11601 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'
11602 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'
11603 # Commands to make compiler produce verbose output that lists
11604 # what "hidden" libraries, object files and flags are used when
11605 # linking a shared library.
11606 #
11607 # There doesn't appear to be a way to prevent this compiler from
11608 # explicitly linking system object files so we need to strip them
11609 # from the output so that they don't get included in the library
11610 # dependencies.
11611 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'
11612
11613 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11614 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11615
11616 # Archives containing C++ object files must be created using
11617 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11618 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11619 ;;
11620 icpc*)
11621 # Intel C++
11622 with_gnu_ld=yes
11623 # version 8.0 and above of icpc choke on multiply defined symbols
11624 # if we add $predep_objects and $postdep_objects, however 7.1 and
11625 # earlier do not add the objects themselves.
11626 case `$CC -V 2>&1` in
11627 *"Version 7."*)
11628 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11629 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'
11630 ;;
11631 *) # Version 8.0 or newer
11632 tmp_idyn=
11633 case $host_cpu in
11634 ia64*) tmp_idyn=' -i_dynamic';;
11635 esac
11636 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11637 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'
11638 ;;
11639 esac
11640 archive_cmds_need_lc_CXX=no
11641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11642 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11643 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11644 ;;
11645 pgCC*)
11646 # Portland Group C++ compiler
11647 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11648 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'
11649
11650 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11651 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11652 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'
11653 ;;
11654 cxx*)
11655 # Compaq C++
11656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11657 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'
11658
11659 runpath_var=LD_RUN_PATH
11660 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11661 hardcode_libdir_separator_CXX=:
11662
11663 # Commands to make compiler produce verbose output that lists
11664 # what "hidden" libraries, object files and flags are used when
11665 # linking a shared library.
11666 #
11667 # There doesn't appear to be a way to prevent this compiler from
11668 # explicitly linking system object files so we need to strip them
11669 # from the output so that they don't get included in the library
11670 # dependencies.
11671 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'
11672 ;;
11673 esac
11674 ;;
11675 lynxos*)
11676 # FIXME: insert proper C++ library support
11677 ld_shlibs_CXX=no
11678 ;;
11679 m88k*)
11680 # FIXME: insert proper C++ library support
11681 ld_shlibs_CXX=no
11682 ;;
11683 mvs*)
11684 case $cc_basename in
11685 cxx*)
11686 # FIXME: insert proper C++ library support
11687 ld_shlibs_CXX=no
11688 ;;
11689 *)
11690 # FIXME: insert proper C++ library support
11691 ld_shlibs_CXX=no
11692 ;;
11693 esac
11694 ;;
11695 netbsd* | netbsdelf*-gnu)
11696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11697 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11698 wlarc=
11699 hardcode_libdir_flag_spec_CXX='-R$libdir'
11700 hardcode_direct_CXX=yes
11701 hardcode_shlibpath_var_CXX=no
11702 fi
11703 # Workaround some broken pre-1.5 toolchains
11704 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11705 ;;
11706 openbsd2*)
11707 # C++ shared libraries are fairly broken
11708 ld_shlibs_CXX=no
11709 ;;
11710 openbsd*)
11711 hardcode_direct_CXX=yes
11712 hardcode_shlibpath_var_CXX=no
11713 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11714 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11716 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11717 export_dynamic_flag_spec_CXX='${wl}-E'
11718 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11719 fi
11720 output_verbose_link_cmd='echo'
11721 ;;
11722 osf3*)
11723 case $cc_basename in
11724 KCC*)
11725 # Kuck and Associates, Inc. (KAI) C++ Compiler
11726
11727 # KCC will only create a shared library if the output file
11728 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11729 # to its proper name (with version) after linking.
11730 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'
11731
11732 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11733 hardcode_libdir_separator_CXX=:
11734
11735 # Archives containing C++ object files must be created using
11736 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11737 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11738
11739 ;;
11740 RCC*)
11741 # Rational C++ 2.4.1
11742 # FIXME: insert proper C++ library support
11743 ld_shlibs_CXX=no
11744 ;;
11745 cxx*)
11746 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11747 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'
11748
11749 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11750 hardcode_libdir_separator_CXX=:
11751
11752 # Commands to make compiler produce verbose output that lists
11753 # what "hidden" libraries, object files and flags are used when
11754 # linking a shared library.
11755 #
11756 # There doesn't appear to be a way to prevent this compiler from
11757 # explicitly linking system object files so we need to strip them
11758 # from the output so that they don't get included in the library
11759 # dependencies.
11760 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'
11761 ;;
11762 *)
11763 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11764 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11765 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'
11766
11767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11768 hardcode_libdir_separator_CXX=:
11769
11770 # Commands to make compiler produce verbose output that lists
11771 # what "hidden" libraries, object files and flags are used when
11772 # linking a shared library.
11773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11774
11775 else
11776 # FIXME: insert proper C++ library support
11777 ld_shlibs_CXX=no
11778 fi
11779 ;;
11780 esac
11781 ;;
11782 osf4* | osf5*)
11783 case $cc_basename in
11784 KCC*)
11785 # Kuck and Associates, Inc. (KAI) C++ Compiler
11786
11787 # KCC will only create a shared library if the output file
11788 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11789 # to its proper name (with version) after linking.
11790 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'
11791
11792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11793 hardcode_libdir_separator_CXX=:
11794
11795 # Archives containing C++ object files must be created using
11796 # the KAI C++ compiler.
11797 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11798 ;;
11799 RCC*)
11800 # Rational C++ 2.4.1
11801 # FIXME: insert proper C++ library support
11802 ld_shlibs_CXX=no
11803 ;;
11804 cxx*)
11805 allow_undefined_flag_CXX=' -expect_unresolved \*'
11806 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'
11807 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11808 echo "-hidden">> $lib.exp~
11809 $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~
11810 $rm $lib.exp'
11811
11812 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11813 hardcode_libdir_separator_CXX=:
11814
11815 # Commands to make compiler produce verbose output that lists
11816 # what "hidden" libraries, object files and flags are used when
11817 # linking a shared library.
11818 #
11819 # There doesn't appear to be a way to prevent this compiler from
11820 # explicitly linking system object files so we need to strip them
11821 # from the output so that they don't get included in the library
11822 # dependencies.
11823 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'
11824 ;;
11825 *)
11826 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11827 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11828 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'
11829
11830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11831 hardcode_libdir_separator_CXX=:
11832
11833 # Commands to make compiler produce verbose output that lists
11834 # what "hidden" libraries, object files and flags are used when
11835 # linking a shared library.
11836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11837
11838 else
11839 # FIXME: insert proper C++ library support
11840 ld_shlibs_CXX=no
11841 fi
11842 ;;
11843 esac
11844 ;;
11845 psos*)
11846 # FIXME: insert proper C++ library support
11847 ld_shlibs_CXX=no
11848 ;;
11849 sunos4*)
11850 case $cc_basename in
11851 CC*)
11852 # Sun C++ 4.x
11853 # FIXME: insert proper C++ library support
11854 ld_shlibs_CXX=no
11855 ;;
11856 lcc*)
11857 # Lucid
11858 # FIXME: insert proper C++ library support
11859 ld_shlibs_CXX=no
11860 ;;
11861 *)
11862 # FIXME: insert proper C++ library support
11863 ld_shlibs_CXX=no
11864 ;;
11865 esac
11866 ;;
11867 solaris*)
11868 case $cc_basename in
11869 CC*)
11870 # Sun C++ 4.2, 5.x and Centerline C++
11871 archive_cmds_need_lc_CXX=yes
11872 no_undefined_flag_CXX=' -zdefs'
11873 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11874 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11875 $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'
11876
11877 hardcode_libdir_flag_spec_CXX='-R$libdir'
11878 hardcode_shlibpath_var_CXX=no
11879 case $host_os in
11880 solaris2.[0-5] | solaris2.[0-5].*) ;;
11881 *)
11882 # The C++ compiler is used as linker so we must use $wl
11883 # flag to pass the commands to the underlying system
11884 # linker. We must also pass each convience library through
11885 # to the system linker between allextract/defaultextract.
11886 # The C++ compiler will combine linker options so we
11887 # cannot just pass the convience library names through
11888 # without $wl.
11889 # Supported since Solaris 2.6 (maybe 2.5.1?)
11890 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11891 ;;
11892 esac
11893 link_all_deplibs_CXX=yes
11894
11895 output_verbose_link_cmd='echo'
11896
11897 # Archives containing C++ object files must be created using
11898 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11899 # necessary to make sure instantiated templates are included
11900 # in the archive.
11901 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11902 ;;
11903 gcx*)
11904 # Green Hills C++ Compiler
11905 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11906
11907 # The C++ compiler must be used to create the archive.
11908 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11909 ;;
11910 *)
11911 # GNU C++ compiler with Solaris linker
11912 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11913 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11914 if $CC --version | grep -v '^2\.7' > /dev/null; then
11915 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11916 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11917 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11918
11919 # Commands to make compiler produce verbose output that lists
11920 # what "hidden" libraries, object files and flags are used when
11921 # linking a shared library.
11922 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11923 else
11924 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11925 # platform.
11926 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11927 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11928 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11929
11930 # Commands to make compiler produce verbose output that lists
11931 # what "hidden" libraries, object files and flags are used when
11932 # linking a shared library.
11933 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11934 fi
11935
11936 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11937 fi
11938 ;;
11939 esac
11940 ;;
11941 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11942 no_undefined_flag_CXX='${wl}-z,text'
11943 archive_cmds_need_lc_CXX=no
11944 hardcode_shlibpath_var_CXX=no
11945 runpath_var='LD_RUN_PATH'
11946
11947 case $cc_basename in
11948 CC*)
11949 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11950 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11951 ;;
11952 *)
11953 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11954 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11955 ;;
11956 esac
11957 ;;
11958 sysv5* | sco3.2v5* | sco5v6*)
11959 # Note: We can NOT use -z defs as we might desire, because we do not
11960 # link with -lc, and that would cause any symbols used from libc to
11961 # always be unresolved, which means just about no library would
11962 # ever link correctly. If we're not using GNU ld we use -z text
11963 # though, which does catch some bad symbols but isn't as heavy-handed
11964 # as -z defs.
11965 # For security reasons, it is highly recommended that you always
11966 # use absolute paths for naming shared libraries, and exclude the
11967 # DT_RUNPATH tag from executables and libraries. But doing so
11968 # requires that you compile everything twice, which is a pain.
11969 # So that behaviour is only enabled if SCOABSPATH is set to a
11970 # non-empty value in the environment. Most likely only useful for
11971 # creating official distributions of packages.
11972 # This is a hack until libtool officially supports absolute path
11973 # names for shared libraries.
11974 no_undefined_flag_CXX='${wl}-z,text'
11975 allow_undefined_flag_CXX='${wl}-z,nodefs'
11976 archive_cmds_need_lc_CXX=no
11977 hardcode_shlibpath_var_CXX=no
11978 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11979 hardcode_libdir_separator_CXX=':'
11980 link_all_deplibs_CXX=yes
11981 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11982 runpath_var='LD_RUN_PATH'
11983
11984 case $cc_basename in
11985 CC*)
11986 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11987 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11988 ;;
11989 *)
11990 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11991 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11992 ;;
11993 esac
11994 ;;
11995 tandem*)
11996 case $cc_basename in
11997 NCC*)
11998 # NonStop-UX NCC 3.20
11999 # FIXME: insert proper C++ library support
12000 ld_shlibs_CXX=no
12001 ;;
12002 *)
12003 # FIXME: insert proper C++ library support
12004 ld_shlibs_CXX=no
12005 ;;
12006 esac
12007 ;;
12008 vxworks*)
12009 # FIXME: insert proper C++ library support
12010 ld_shlibs_CXX=no
12011 ;;
12012 *)
12013 # FIXME: insert proper C++ library support
12014 ld_shlibs_CXX=no
12015 ;;
12016 esac
12017 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12018 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12019 test "$ld_shlibs_CXX" = no && can_build_shared=no
12020
12021 GCC_CXX="$GXX"
12022 LD_CXX="$LD"
12023
12024
12025 cat > conftest.$ac_ext <<EOF
12026 class Foo
12027 {
12028 public:
12029 Foo (void) { a = 0; }
12030 private:
12031 int a;
12032 };
12033 EOF
12034
12035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; then
12040 # Parse the compiler output and extract the necessary
12041 # objects, libraries and library flags.
12042
12043 # Sentinel used to keep track of whether or not we are before
12044 # the conftest object file.
12045 pre_test_object_deps_done=no
12046
12047 # The `*' in the case matches for architectures that use `case' in
12048 # $output_verbose_cmd can trigger glob expansion during the loop
12049 # eval without this substitution.
12050 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12051
12052 for p in `eval $output_verbose_link_cmd`; do
12053 case $p in
12054
12055 -L* | -R* | -l*)
12056 # Some compilers place space between "-{L,R}" and the path.
12057 # Remove the space.
12058 if test $p = "-L" \
12059 || test $p = "-R"; then
12060 prev=$p
12061 continue
12062 else
12063 prev=
12064 fi
12065
12066 if test "$pre_test_object_deps_done" = no; then
12067 case $p in
12068 -L* | -R*)
12069 # Internal compiler library paths should come after those
12070 # provided the user. The postdeps already come after the
12071 # user supplied libs so there is no need to process them.
12072 if test -z "$compiler_lib_search_path_CXX"; then
12073 compiler_lib_search_path_CXX="${prev}${p}"
12074 else
12075 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12076 fi
12077 ;;
12078 # The "-l" case would never come before the object being
12079 # linked, so don't bother handling this case.
12080 esac
12081 else
12082 if test -z "$postdeps_CXX"; then
12083 postdeps_CXX="${prev}${p}"
12084 else
12085 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12086 fi
12087 fi
12088 ;;
12089
12090 *.$objext)
12091 # This assumes that the test object file only shows up
12092 # once in the compiler output.
12093 if test "$p" = "conftest.$objext"; then
12094 pre_test_object_deps_done=yes
12095 continue
12096 fi
12097
12098 if test "$pre_test_object_deps_done" = no; then
12099 if test -z "$predep_objects_CXX"; then
12100 predep_objects_CXX="$p"
12101 else
12102 predep_objects_CXX="$predep_objects_CXX $p"
12103 fi
12104 else
12105 if test -z "$postdep_objects_CXX"; then
12106 postdep_objects_CXX="$p"
12107 else
12108 postdep_objects_CXX="$postdep_objects_CXX $p"
12109 fi
12110 fi
12111 ;;
12112
12113 *) ;; # Ignore the rest.
12114
12115 esac
12116 done
12117
12118 # Clean up.
12119 rm -f a.out a.exe
12120 else
12121 echo "libtool.m4: error: problem compiling CXX test program"
12122 fi
12123
12124 $rm -f confest.$objext
12125
12126 # PORTME: override above test on systems where it is broken
12127 case $host_os in
12128 interix3*)
12129 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12130 # hack all around it, let's just trust "g++" to DTRT.
12131 predep_objects_CXX=
12132 postdep_objects_CXX=
12133 postdeps_CXX=
12134 ;;
12135
12136 solaris*)
12137 case $cc_basename in
12138 CC*)
12139 # Adding this requires a known-good setup of shared libraries for
12140 # Sun compiler versions before 5.6, else PIC objects from an old
12141 # archive will be linked into the output, leading to subtle bugs.
12142 postdeps_CXX='-lCstd -lCrun'
12143 ;;
12144 esac
12145 ;;
12146 esac
12147
12148
12149 case " $postdeps_CXX " in
12150 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12151 esac
12152
12153 lt_prog_compiler_wl_CXX=
12154 lt_prog_compiler_pic_CXX=
12155 lt_prog_compiler_static_CXX=
12156
12157 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12158 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12159
12160 # C++ specific cases for pic, static, wl, etc.
12161 if test "$GXX" = yes; then
12162 lt_prog_compiler_wl_CXX='-Wl,'
12163 lt_prog_compiler_static_CXX='-static'
12164
12165 case $host_os in
12166 aix*)
12167 # All AIX code is PIC.
12168 if test "$host_cpu" = ia64; then
12169 # AIX 5 now supports IA64 processor
12170 lt_prog_compiler_static_CXX='-Bstatic'
12171 fi
12172 ;;
12173 amigaos*)
12174 # FIXME: we need at least 68020 code to build shared libraries, but
12175 # adding the `-m68020' flag to GCC prevents building anything better,
12176 # like `-m68040'.
12177 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12178 ;;
12179 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12180 # PIC is the default for these OSes.
12181 ;;
12182 mingw* | os2* | pw32*)
12183 # This hack is so that the source file can tell whether it is being
12184 # built for inclusion in a dll (and should export symbols for example).
12185 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12186 ;;
12187 darwin* | rhapsody*)
12188 # PIC is the default on this platform
12189 # Common symbols not allowed in MH_DYLIB files
12190 lt_prog_compiler_pic_CXX='-fno-common'
12191 ;;
12192 *djgpp*)
12193 # DJGPP does not support shared libraries at all
12194 lt_prog_compiler_pic_CXX=
12195 ;;
12196 interix3*)
12197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12198 # Instead, we relocate shared libraries at runtime.
12199 ;;
12200 sysv4*MP*)
12201 if test -d /usr/nec; then
12202 lt_prog_compiler_pic_CXX=-Kconform_pic
12203 fi
12204 ;;
12205 hpux*)
12206 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12207 # not for PA HP-UX.
12208 case $host_cpu in
12209 hppa*64*|ia64*)
12210 ;;
12211 *)
12212 lt_prog_compiler_pic_CXX='-fPIC'
12213 ;;
12214 esac
12215 ;;
12216 *)
12217 lt_prog_compiler_pic_CXX='-fPIC'
12218 ;;
12219 esac
12220 else
12221 case $host_os in
12222 aix4* | aix5*)
12223 # All AIX code is PIC.
12224 if test "$host_cpu" = ia64; then
12225 # AIX 5 now supports IA64 processor
12226 lt_prog_compiler_static_CXX='-Bstatic'
12227 else
12228 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12229 fi
12230 ;;
12231 chorus*)
12232 case $cc_basename in
12233 cxch68*)
12234 # Green Hills C++ Compiler
12235 # _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"
12236 ;;
12237 esac
12238 ;;
12239 darwin*)
12240 # PIC is the default on this platform
12241 # Common symbols not allowed in MH_DYLIB files
12242 case $cc_basename in
12243 xlc*)
12244 lt_prog_compiler_pic_CXX='-qnocommon'
12245 lt_prog_compiler_wl_CXX='-Wl,'
12246 ;;
12247 esac
12248 ;;
12249 dgux*)
12250 case $cc_basename in
12251 ec++*)
12252 lt_prog_compiler_pic_CXX='-KPIC'
12253 ;;
12254 ghcx*)
12255 # Green Hills C++ Compiler
12256 lt_prog_compiler_pic_CXX='-pic'
12257 ;;
12258 *)
12259 ;;
12260 esac
12261 ;;
12262 freebsd* | dragonfly*)
12263 # FreeBSD uses GNU C++
12264 ;;
12265 hpux9* | hpux10* | hpux11*)
12266 case $cc_basename in
12267 CC*)
12268 lt_prog_compiler_wl_CXX='-Wl,'
12269 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12270 if test "$host_cpu" != ia64; then
12271 lt_prog_compiler_pic_CXX='+Z'
12272 fi
12273 ;;
12274 aCC*)
12275 lt_prog_compiler_wl_CXX='-Wl,'
12276 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12277 case $host_cpu in
12278 hppa*64*|ia64*)
12279 # +Z the default
12280 ;;
12281 *)
12282 lt_prog_compiler_pic_CXX='+Z'
12283 ;;
12284 esac
12285 ;;
12286 *)
12287 ;;
12288 esac
12289 ;;
12290 interix*)
12291 # This is c89, which is MS Visual C++ (no shared libs)
12292 # Anyone wants to do a port?
12293 ;;
12294 irix5* | irix6* | nonstopux*)
12295 case $cc_basename in
12296 CC*)
12297 lt_prog_compiler_wl_CXX='-Wl,'
12298 lt_prog_compiler_static_CXX='-non_shared'
12299 # CC pic flag -KPIC is the default.
12300 ;;
12301 *)
12302 ;;
12303 esac
12304 ;;
12305 linux* | k*bsd*-gnu)
12306 case $cc_basename in
12307 KCC*)
12308 # KAI C++ Compiler
12309 lt_prog_compiler_wl_CXX='--backend -Wl,'
12310 lt_prog_compiler_pic_CXX='-fPIC'
12311 ;;
12312 icpc* | ecpc*)
12313 # Intel C++
12314 lt_prog_compiler_wl_CXX='-Wl,'
12315 lt_prog_compiler_pic_CXX='-KPIC'
12316 lt_prog_compiler_static_CXX='-static'
12317 ;;
12318 pgCC*)
12319 # Portland Group C++ compiler.
12320 lt_prog_compiler_wl_CXX='-Wl,'
12321 lt_prog_compiler_pic_CXX='-fpic'
12322 lt_prog_compiler_static_CXX='-Bstatic'
12323 ;;
12324 cxx*)
12325 # Compaq C++
12326 # Make sure the PIC flag is empty. It appears that all Alpha
12327 # Linux and Compaq Tru64 Unix objects are PIC.
12328 lt_prog_compiler_pic_CXX=
12329 lt_prog_compiler_static_CXX='-non_shared'
12330 ;;
12331 *)
12332 ;;
12333 esac
12334 ;;
12335 lynxos*)
12336 ;;
12337 m88k*)
12338 ;;
12339 mvs*)
12340 case $cc_basename in
12341 cxx*)
12342 lt_prog_compiler_pic_CXX='-W c,exportall'
12343 ;;
12344 *)
12345 ;;
12346 esac
12347 ;;
12348 netbsd* | netbsdelf*-gnu)
12349 ;;
12350 osf3* | osf4* | osf5*)
12351 case $cc_basename in
12352 KCC*)
12353 lt_prog_compiler_wl_CXX='--backend -Wl,'
12354 ;;
12355 RCC*)
12356 # Rational C++ 2.4.1
12357 lt_prog_compiler_pic_CXX='-pic'
12358 ;;
12359 cxx*)
12360 # Digital/Compaq C++
12361 lt_prog_compiler_wl_CXX='-Wl,'
12362 # Make sure the PIC flag is empty. It appears that all Alpha
12363 # Linux and Compaq Tru64 Unix objects are PIC.
12364 lt_prog_compiler_pic_CXX=
12365 lt_prog_compiler_static_CXX='-non_shared'
12366 ;;
12367 *)
12368 ;;
12369 esac
12370 ;;
12371 psos*)
12372 ;;
12373 solaris*)
12374 case $cc_basename in
12375 CC*)
12376 # Sun C++ 4.2, 5.x and Centerline C++
12377 lt_prog_compiler_pic_CXX='-KPIC'
12378 lt_prog_compiler_static_CXX='-Bstatic'
12379 lt_prog_compiler_wl_CXX='-Qoption ld '
12380 ;;
12381 gcx*)
12382 # Green Hills C++ Compiler
12383 lt_prog_compiler_pic_CXX='-PIC'
12384 ;;
12385 *)
12386 ;;
12387 esac
12388 ;;
12389 sunos4*)
12390 case $cc_basename in
12391 CC*)
12392 # Sun C++ 4.x
12393 lt_prog_compiler_pic_CXX='-pic'
12394 lt_prog_compiler_static_CXX='-Bstatic'
12395 ;;
12396 lcc*)
12397 # Lucid
12398 lt_prog_compiler_pic_CXX='-pic'
12399 ;;
12400 *)
12401 ;;
12402 esac
12403 ;;
12404 tandem*)
12405 case $cc_basename in
12406 NCC*)
12407 # NonStop-UX NCC 3.20
12408 lt_prog_compiler_pic_CXX='-KPIC'
12409 ;;
12410 *)
12411 ;;
12412 esac
12413 ;;
12414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12415 case $cc_basename in
12416 CC*)
12417 lt_prog_compiler_wl_CXX='-Wl,'
12418 lt_prog_compiler_pic_CXX='-KPIC'
12419 lt_prog_compiler_static_CXX='-Bstatic'
12420 ;;
12421 esac
12422 ;;
12423 vxworks*)
12424 ;;
12425 *)
12426 lt_prog_compiler_can_build_shared_CXX=no
12427 ;;
12428 esac
12429 fi
12430
12431 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12432 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12433
12434 #
12435 # Check to make sure the PIC flag actually works.
12436 #
12437 if test -n "$lt_prog_compiler_pic_CXX"; then
12438
12439 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12440 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12441 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444 lt_prog_compiler_pic_works_CXX=no
12445 ac_outfile=conftest.$ac_objext
12446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12447 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12448 # Insert the option either (1) after the last *FLAGS variable, or
12449 # (2) before a word containing "conftest.", or (3) at the end.
12450 # Note that $ac_compile itself does not contain backslashes and begins
12451 # with a dollar sign (not a hyphen), so the echo should work correctly.
12452 # The option is referenced via a variable to avoid confusing sed.
12453 lt_compile=`echo "$ac_compile" | $SED \
12454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12456 -e 's:$: $lt_compiler_flag:'`
12457 (eval echo "\"\$as_me:12457: $lt_compile\"" >&5)
12458 (eval "$lt_compile" 2>conftest.err)
12459 ac_status=$?
12460 cat conftest.err >&5
12461 echo "$as_me:12461: \$? = $ac_status" >&5
12462 if (exit $ac_status) && test -s "$ac_outfile"; then
12463 # The compiler can only warn and ignore the option if not recognized
12464 # So say no if there are warnings other than the usual output.
12465 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12468 lt_prog_compiler_pic_works_CXX=yes
12469 fi
12470 fi
12471 $rm conftest*
12472
12473 fi
12474 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12475 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12476
12477 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12478 case $lt_prog_compiler_pic_CXX in
12479 "" | " "*) ;;
12480 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12481 esac
12482 else
12483 lt_prog_compiler_pic_CXX=
12484 lt_prog_compiler_can_build_shared_CXX=no
12485 fi
12486
12487 fi
12488 case $host_os in
12489 # For platforms which do not support PIC, -DPIC is meaningless:
12490 *djgpp*)
12491 lt_prog_compiler_pic_CXX=
12492 ;;
12493 *)
12494 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12495 ;;
12496 esac
12497
12498 #
12499 # Check to make sure the static flag actually works.
12500 #
12501 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12502 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12503 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12504 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 else
12507 lt_prog_compiler_static_works_CXX=no
12508 save_LDFLAGS="$LDFLAGS"
12509 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12510 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12511 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12512 # The linker can only warn and ignore the option if not recognized
12513 # So say no if there are warnings
12514 if test -s conftest.err; then
12515 # Append any errors to the config.log.
12516 cat conftest.err 1>&5
12517 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12519 if diff conftest.exp conftest.er2 >/dev/null; then
12520 lt_prog_compiler_static_works_CXX=yes
12521 fi
12522 else
12523 lt_prog_compiler_static_works_CXX=yes
12524 fi
12525 fi
12526 $rm conftest*
12527 LDFLAGS="$save_LDFLAGS"
12528
12529 fi
12530 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12531 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12532
12533 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12534 :
12535 else
12536 lt_prog_compiler_static_CXX=
12537 fi
12538
12539
12540 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12541 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12542 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12543 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 else
12545 lt_cv_prog_compiler_c_o_CXX=no
12546 $rm -r conftest 2>/dev/null
12547 mkdir conftest
12548 cd conftest
12549 mkdir out
12550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12551
12552 lt_compiler_flag="-o out/conftest2.$ac_objext"
12553 # Insert the option either (1) after the last *FLAGS variable, or
12554 # (2) before a word containing "conftest.", or (3) at the end.
12555 # Note that $ac_compile itself does not contain backslashes and begins
12556 # with a dollar sign (not a hyphen), so the echo should work correctly.
12557 lt_compile=`echo "$ac_compile" | $SED \
12558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12560 -e 's:$: $lt_compiler_flag:'`
12561 (eval echo "\"\$as_me:12561: $lt_compile\"" >&5)
12562 (eval "$lt_compile" 2>out/conftest.err)
12563 ac_status=$?
12564 cat out/conftest.err >&5
12565 echo "$as_me:12565: \$? = $ac_status" >&5
12566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12567 then
12568 # The compiler can only warn and ignore the option if not recognized
12569 # So say no if there are warnings
12570 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12571 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12572 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12573 lt_cv_prog_compiler_c_o_CXX=yes
12574 fi
12575 fi
12576 chmod u+w . 2>&5
12577 $rm conftest*
12578 # SGI C++ compiler will create directory out/ii_files/ for
12579 # template instantiation
12580 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12581 $rm out/* && rmdir out
12582 cd ..
12583 rmdir conftest
12584 $rm conftest*
12585
12586 fi
12587 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12588 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12589
12590
12591 hard_links="nottested"
12592 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12593 # do not overwrite the value of need_locks provided by the user
12594 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12595 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12596 hard_links=yes
12597 $rm conftest*
12598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12599 touch conftest.a
12600 ln conftest.a conftest.b 2>&5 || hard_links=no
12601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12602 { echo "$as_me:$LINENO: result: $hard_links" >&5
12603 echo "${ECHO_T}$hard_links" >&6; }
12604 if test "$hard_links" = no; then
12605 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12606 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12607 need_locks=warn
12608 fi
12609 else
12610 need_locks=no
12611 fi
12612
12613 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12614 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12615
12616 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12617 case $host_os in
12618 aix4* | aix5*)
12619 # If we're using GNU nm, then we don't want the "-C" option.
12620 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12621 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12622 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'
12623 else
12624 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'
12625 fi
12626 ;;
12627 pw32*)
12628 export_symbols_cmds_CXX="$ltdll_cmds"
12629 ;;
12630 cygwin* | mingw*)
12631 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'
12632 ;;
12633 linux* | k*bsd*-gnu)
12634 link_all_deplibs_CXX=no
12635 ;;
12636 *)
12637 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12638 ;;
12639 esac
12640
12641 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12642 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12643 test "$ld_shlibs_CXX" = no && can_build_shared=no
12644
12645 #
12646 # Do we need to explicitly link libc?
12647 #
12648 case "x$archive_cmds_need_lc_CXX" in
12649 x|xyes)
12650 # Assume -lc should be added
12651 archive_cmds_need_lc_CXX=yes
12652
12653 if test "$enable_shared" = yes && test "$GCC" = yes; then
12654 case $archive_cmds_CXX in
12655 *'~'*)
12656 # FIXME: we may have to deal with multi-command sequences.
12657 ;;
12658 '$CC '*)
12659 # Test whether the compiler implicitly links with -lc since on some
12660 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12661 # to ld, don't add -lc before -lgcc.
12662 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12663 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12664 $rm conftest*
12665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12666
12667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } 2>conftest.err; then
12672 soname=conftest
12673 lib=conftest
12674 libobjs=conftest.$ac_objext
12675 deplibs=
12676 wl=$lt_prog_compiler_wl_CXX
12677 pic_flag=$lt_prog_compiler_pic_CXX
12678 compiler_flags=-v
12679 linker_flags=-v
12680 verstring=
12681 output_objdir=.
12682 libname=conftest
12683 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12684 allow_undefined_flag_CXX=
12685 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12686 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }
12690 then
12691 archive_cmds_need_lc_CXX=no
12692 else
12693 archive_cmds_need_lc_CXX=yes
12694 fi
12695 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12696 else
12697 cat conftest.err 1>&5
12698 fi
12699 $rm conftest*
12700 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12701 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12702 ;;
12703 esac
12704 fi
12705 ;;
12706 esac
12707
12708 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12709 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12710 library_names_spec=
12711 libname_spec='lib$name'
12712 soname_spec=
12713 shrext_cmds=".so"
12714 postinstall_cmds=
12715 postuninstall_cmds=
12716 finish_cmds=
12717 finish_eval=
12718 shlibpath_var=
12719 shlibpath_overrides_runpath=unknown
12720 version_type=none
12721 dynamic_linker="$host_os ld.so"
12722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12723 if test "$GCC" = yes; then
12724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12726 # if the path contains ";" then we assume it to be the separator
12727 # otherwise default to the standard path separator (i.e. ":") - it is
12728 # assumed that no part of a normal pathname contains ";" but that should
12729 # okay in the real world where ";" in dirpaths is itself problematic.
12730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12731 else
12732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12733 fi
12734 else
12735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12736 fi
12737 need_lib_prefix=unknown
12738 hardcode_into_libs=no
12739
12740 # when you set need_version to no, make sure it does not cause -set_version
12741 # flags to be left without arguments
12742 need_version=unknown
12743
12744 case $host_os in
12745 aix3*)
12746 version_type=linux
12747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12748 shlibpath_var=LIBPATH
12749
12750 # AIX 3 has no versioning support, so we append a major version to the name.
12751 soname_spec='${libname}${release}${shared_ext}$major'
12752 ;;
12753
12754 aix4* | aix5*)
12755 version_type=linux
12756 need_lib_prefix=no
12757 need_version=no
12758 hardcode_into_libs=yes
12759 if test "$host_cpu" = ia64; then
12760 # AIX 5 supports IA64
12761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12762 shlibpath_var=LD_LIBRARY_PATH
12763 else
12764 # With GCC up to 2.95.x, collect2 would create an import file
12765 # for dependence libraries. The import file would start with
12766 # the line `#! .'. This would cause the generated library to
12767 # depend on `.', always an invalid library. This was fixed in
12768 # development snapshots of GCC prior to 3.0.
12769 case $host_os in
12770 aix4 | aix4.[01] | aix4.[01].*)
12771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12772 echo ' yes '
12773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12774 :
12775 else
12776 can_build_shared=no
12777 fi
12778 ;;
12779 esac
12780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12781 # soname into executable. Probably we can add versioning support to
12782 # collect2, so additional links can be useful in future.
12783 if test "$aix_use_runtimelinking" = yes; then
12784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12785 # instead of lib<name>.a to let people know that these are not
12786 # typical AIX shared libraries.
12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12788 else
12789 # We preserve .a as extension for shared libraries through AIX4.2
12790 # and later when we are not doing run time linking.
12791 library_names_spec='${libname}${release}.a $libname.a'
12792 soname_spec='${libname}${release}${shared_ext}$major'
12793 fi
12794 shlibpath_var=LIBPATH
12795 fi
12796 ;;
12797
12798 amigaos*)
12799 library_names_spec='$libname.ixlibrary $libname.a'
12800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12801 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'
12802 ;;
12803
12804 beos*)
12805 library_names_spec='${libname}${shared_ext}'
12806 dynamic_linker="$host_os ld.so"
12807 shlibpath_var=LIBRARY_PATH
12808 ;;
12809
12810 bsdi[45]*)
12811 version_type=linux
12812 need_version=no
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814 soname_spec='${libname}${release}${shared_ext}$major'
12815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12816 shlibpath_var=LD_LIBRARY_PATH
12817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12819 # the default ld.so.conf also contains /usr/contrib/lib and
12820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12821 # libtool to hard-code these into programs
12822 ;;
12823
12824 cygwin* | mingw* | pw32*)
12825 version_type=windows
12826 shrext_cmds=".dll"
12827 need_version=no
12828 need_lib_prefix=no
12829
12830 case $GCC,$host_os in
12831 yes,cygwin* | yes,mingw* | yes,pw32*)
12832 library_names_spec='$libname.dll.a'
12833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12834 postinstall_cmds='base_file=`basename \${file}`~
12835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12836 dldir=$destdir/`dirname \$dlpath`~
12837 test -d \$dldir || mkdir -p \$dldir~
12838 $install_prog $dir/$dlname \$dldir/$dlname~
12839 chmod a+x \$dldir/$dlname'
12840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12841 dlpath=$dir/\$dldll~
12842 $rm \$dlpath'
12843 shlibpath_overrides_runpath=yes
12844
12845 case $host_os in
12846 cygwin*)
12847 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12848 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12849 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12850 ;;
12851 mingw*)
12852 # MinGW DLLs use traditional 'lib' prefix
12853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12855 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12856 # It is most probably a Windows format PATH printed by
12857 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12858 # path with ; separators, and with drive letters. We can handle the
12859 # drive letters (cygwin fileutils understands them), so leave them,
12860 # especially as we might pass files found there to a mingw objdump,
12861 # which wouldn't understand a cygwinified path. Ahh.
12862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12863 else
12864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12865 fi
12866 ;;
12867 pw32*)
12868 # pw32 DLLs use 'pw' prefix rather than 'lib'
12869 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12870 ;;
12871 esac
12872 ;;
12873
12874 *)
12875 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12876 ;;
12877 esac
12878 dynamic_linker='Win32 ld.exe'
12879 # FIXME: first we should search . and the directory the executable is in
12880 shlibpath_var=PATH
12881 ;;
12882
12883 darwin* | rhapsody*)
12884 dynamic_linker="$host_os dyld"
12885 version_type=darwin
12886 need_lib_prefix=no
12887 need_version=no
12888 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12889 soname_spec='${libname}${release}${major}$shared_ext'
12890 shlibpath_overrides_runpath=yes
12891 shlibpath_var=DYLD_LIBRARY_PATH
12892 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12893 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12894 if test "$GCC" = yes; then
12895 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12896 else
12897 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12898 fi
12899 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12900 ;;
12901
12902 dgux*)
12903 version_type=linux
12904 need_lib_prefix=no
12905 need_version=no
12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12907 soname_spec='${libname}${release}${shared_ext}$major'
12908 shlibpath_var=LD_LIBRARY_PATH
12909 ;;
12910
12911 freebsd1*)
12912 dynamic_linker=no
12913 ;;
12914
12915 freebsd* | dragonfly*)
12916 # DragonFly does not have aout. When/if they implement a new
12917 # versioning mechanism, adjust this.
12918 if test -x /usr/bin/objformat; then
12919 objformat=`/usr/bin/objformat`
12920 else
12921 case $host_os in
12922 freebsd[123]*) objformat=aout ;;
12923 *) objformat=elf ;;
12924 esac
12925 fi
12926 version_type=freebsd-$objformat
12927 case $version_type in
12928 freebsd-elf*)
12929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12930 need_version=no
12931 need_lib_prefix=no
12932 ;;
12933 freebsd-*)
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12935 need_version=yes
12936 ;;
12937 esac
12938 shlibpath_var=LD_LIBRARY_PATH
12939 case $host_os in
12940 freebsd2*)
12941 shlibpath_overrides_runpath=yes
12942 ;;
12943 freebsd3.[01]* | freebsdelf3.[01]*)
12944 shlibpath_overrides_runpath=yes
12945 hardcode_into_libs=yes
12946 ;;
12947 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12948 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12949 shlibpath_overrides_runpath=no
12950 hardcode_into_libs=yes
12951 ;;
12952 freebsd*) # from 4.6 on
12953 shlibpath_overrides_runpath=yes
12954 hardcode_into_libs=yes
12955 ;;
12956 esac
12957 ;;
12958
12959 gnu*)
12960 version_type=linux
12961 need_lib_prefix=no
12962 need_version=no
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12964 soname_spec='${libname}${release}${shared_ext}$major'
12965 shlibpath_var=LD_LIBRARY_PATH
12966 hardcode_into_libs=yes
12967 ;;
12968
12969 hpux9* | hpux10* | hpux11*)
12970 # Give a soname corresponding to the major version so that dld.sl refuses to
12971 # link against other versions.
12972 version_type=sunos
12973 need_lib_prefix=no
12974 need_version=no
12975 case $host_cpu in
12976 ia64*)
12977 shrext_cmds='.so'
12978 hardcode_into_libs=yes
12979 dynamic_linker="$host_os dld.so"
12980 shlibpath_var=LD_LIBRARY_PATH
12981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12983 soname_spec='${libname}${release}${shared_ext}$major'
12984 if test "X$HPUX_IA64_MODE" = X32; then
12985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12986 else
12987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12988 fi
12989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12990 ;;
12991 hppa*64*)
12992 shrext_cmds='.sl'
12993 hardcode_into_libs=yes
12994 dynamic_linker="$host_os dld.sl"
12995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998 soname_spec='${libname}${release}${shared_ext}$major'
12999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13001 ;;
13002 *)
13003 shrext_cmds='.sl'
13004 dynamic_linker="$host_os dld.sl"
13005 shlibpath_var=SHLIB_PATH
13006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13008 soname_spec='${libname}${release}${shared_ext}$major'
13009 ;;
13010 esac
13011 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13012 postinstall_cmds='chmod 555 $lib'
13013 ;;
13014
13015 interix3*)
13016 version_type=linux
13017 need_lib_prefix=no
13018 need_version=no
13019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13020 soname_spec='${libname}${release}${shared_ext}$major'
13021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13022 shlibpath_var=LD_LIBRARY_PATH
13023 shlibpath_overrides_runpath=no
13024 hardcode_into_libs=yes
13025 ;;
13026
13027 irix5* | irix6* | nonstopux*)
13028 case $host_os in
13029 nonstopux*) version_type=nonstopux ;;
13030 *)
13031 if test "$lt_cv_prog_gnu_ld" = yes; then
13032 version_type=linux
13033 else
13034 version_type=irix
13035 fi ;;
13036 esac
13037 need_lib_prefix=no
13038 need_version=no
13039 soname_spec='${libname}${release}${shared_ext}$major'
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13041 case $host_os in
13042 irix5* | nonstopux*)
13043 libsuff= shlibsuff=
13044 ;;
13045 *)
13046 case $LD in # libtool.m4 will add one of these switches to LD
13047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13048 libsuff= shlibsuff= libmagic=32-bit;;
13049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13050 libsuff=32 shlibsuff=N32 libmagic=N32;;
13051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13052 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13053 *) libsuff= shlibsuff= libmagic=never-match;;
13054 esac
13055 ;;
13056 esac
13057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13058 shlibpath_overrides_runpath=no
13059 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13060 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13061 hardcode_into_libs=yes
13062 ;;
13063
13064 # No shared lib support for Linux oldld, aout, or coff.
13065 linux*oldld* | linux*aout* | linux*coff*)
13066 dynamic_linker=no
13067 ;;
13068
13069 # This must be Linux ELF.
13070 linux* | k*bsd*-gnu)
13071 version_type=linux
13072 need_lib_prefix=no
13073 need_version=no
13074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13075 soname_spec='${libname}${release}${shared_ext}$major'
13076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13077 shlibpath_var=LD_LIBRARY_PATH
13078 shlibpath_overrides_runpath=no
13079 # This implies no fast_install, which is unacceptable.
13080 # Some rework will be needed to allow for fast_install
13081 # before this can be enabled.
13082 hardcode_into_libs=yes
13083
13084 # Append ld.so.conf contents to the search path
13085 if test -f /etc/ld.so.conf; then
13086 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13087 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13088 fi
13089
13090 # We used to test for /lib/ld.so.1 and disable shared libraries on
13091 # powerpc, because MkLinux only supported shared libraries with the
13092 # GNU dynamic linker. Since this was broken with cross compilers,
13093 # most powerpc-linux boxes support dynamic linking these days and
13094 # people can always --disable-shared, the test was removed, and we
13095 # assume the GNU/Linux dynamic linker is in use.
13096 dynamic_linker='GNU/Linux ld.so'
13097 ;;
13098
13099 netbsdelf*-gnu)
13100 version_type=linux
13101 need_lib_prefix=no
13102 need_version=no
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13104 soname_spec='${libname}${release}${shared_ext}$major'
13105 shlibpath_var=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath=no
13107 hardcode_into_libs=yes
13108 dynamic_linker='NetBSD ld.elf_so'
13109 ;;
13110
13111 netbsd*)
13112 version_type=sunos
13113 need_lib_prefix=no
13114 need_version=no
13115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13118 dynamic_linker='NetBSD (a.out) ld.so'
13119 else
13120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13121 soname_spec='${libname}${release}${shared_ext}$major'
13122 dynamic_linker='NetBSD ld.elf_so'
13123 fi
13124 shlibpath_var=LD_LIBRARY_PATH
13125 shlibpath_overrides_runpath=yes
13126 hardcode_into_libs=yes
13127 ;;
13128
13129 newsos6)
13130 version_type=linux
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132 shlibpath_var=LD_LIBRARY_PATH
13133 shlibpath_overrides_runpath=yes
13134 ;;
13135
13136 nto-qnx*)
13137 version_type=linux
13138 need_lib_prefix=no
13139 need_version=no
13140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13141 soname_spec='${libname}${release}${shared_ext}$major'
13142 shlibpath_var=LD_LIBRARY_PATH
13143 shlibpath_overrides_runpath=yes
13144 ;;
13145
13146 openbsd*)
13147 version_type=sunos
13148 sys_lib_dlsearch_path_spec="/usr/lib"
13149 need_lib_prefix=no
13150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13151 case $host_os in
13152 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13153 *) need_version=no ;;
13154 esac
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13157 shlibpath_var=LD_LIBRARY_PATH
13158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13159 case $host_os in
13160 openbsd2.[89] | openbsd2.[89].*)
13161 shlibpath_overrides_runpath=no
13162 ;;
13163 *)
13164 shlibpath_overrides_runpath=yes
13165 ;;
13166 esac
13167 else
13168 shlibpath_overrides_runpath=yes
13169 fi
13170 ;;
13171
13172 os2*)
13173 libname_spec='$name'
13174 shrext_cmds=".dll"
13175 need_lib_prefix=no
13176 library_names_spec='$libname${shared_ext} $libname.a'
13177 dynamic_linker='OS/2 ld.exe'
13178 shlibpath_var=LIBPATH
13179 ;;
13180
13181 osf3* | osf4* | osf5*)
13182 version_type=osf
13183 need_lib_prefix=no
13184 need_version=no
13185 soname_spec='${libname}${release}${shared_ext}$major'
13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13187 shlibpath_var=LD_LIBRARY_PATH
13188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13190 ;;
13191
13192 solaris*)
13193 version_type=linux
13194 need_lib_prefix=no
13195 need_version=no
13196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197 soname_spec='${libname}${release}${shared_ext}$major'
13198 shlibpath_var=LD_LIBRARY_PATH
13199 shlibpath_overrides_runpath=yes
13200 hardcode_into_libs=yes
13201 # ldd complains unless libraries are executable
13202 postinstall_cmds='chmod +x $lib'
13203 ;;
13204
13205 sunos4*)
13206 version_type=sunos
13207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13208 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13209 shlibpath_var=LD_LIBRARY_PATH
13210 shlibpath_overrides_runpath=yes
13211 if test "$with_gnu_ld" = yes; then
13212 need_lib_prefix=no
13213 fi
13214 need_version=yes
13215 ;;
13216
13217 sysv4 | sysv4.3*)
13218 version_type=linux
13219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13220 soname_spec='${libname}${release}${shared_ext}$major'
13221 shlibpath_var=LD_LIBRARY_PATH
13222 case $host_vendor in
13223 sni)
13224 shlibpath_overrides_runpath=no
13225 need_lib_prefix=no
13226 export_dynamic_flag_spec='${wl}-Blargedynsym'
13227 runpath_var=LD_RUN_PATH
13228 ;;
13229 siemens)
13230 need_lib_prefix=no
13231 ;;
13232 motorola)
13233 need_lib_prefix=no
13234 need_version=no
13235 shlibpath_overrides_runpath=no
13236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13237 ;;
13238 esac
13239 ;;
13240
13241 sysv4*MP*)
13242 if test -d /usr/nec ;then
13243 version_type=linux
13244 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13245 soname_spec='$libname${shared_ext}.$major'
13246 shlibpath_var=LD_LIBRARY_PATH
13247 fi
13248 ;;
13249
13250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13251 version_type=freebsd-elf
13252 need_lib_prefix=no
13253 need_version=no
13254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13255 soname_spec='${libname}${release}${shared_ext}$major'
13256 shlibpath_var=LD_LIBRARY_PATH
13257 hardcode_into_libs=yes
13258 if test "$with_gnu_ld" = yes; then
13259 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13260 shlibpath_overrides_runpath=no
13261 else
13262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13263 shlibpath_overrides_runpath=yes
13264 case $host_os in
13265 sco3.2v5*)
13266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13267 ;;
13268 esac
13269 fi
13270 sys_lib_dlsearch_path_spec='/usr/lib'
13271 ;;
13272
13273 uts4*)
13274 version_type=linux
13275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276 soname_spec='${libname}${release}${shared_ext}$major'
13277 shlibpath_var=LD_LIBRARY_PATH
13278 ;;
13279
13280 *)
13281 dynamic_linker=no
13282 ;;
13283 esac
13284 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13285 echo "${ECHO_T}$dynamic_linker" >&6; }
13286 test "$dynamic_linker" = no && can_build_shared=no
13287
13288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13289 if test "$GCC" = yes; then
13290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13291 fi
13292
13293 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13294 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13295 hardcode_action_CXX=
13296 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13297 test -n "$runpath_var_CXX" || \
13298 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13299
13300 # We can hardcode non-existant directories.
13301 if test "$hardcode_direct_CXX" != no &&
13302 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13303 # have to relink, otherwise we might link with an installed library
13304 # when we should be linking with a yet-to-be-installed one
13305 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13306 test "$hardcode_minus_L_CXX" != no; then
13307 # Linking always hardcodes the temporary library directory.
13308 hardcode_action_CXX=relink
13309 else
13310 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13311 hardcode_action_CXX=immediate
13312 fi
13313 else
13314 # We cannot hardcode anything, or else we can only hardcode existing
13315 # directories.
13316 hardcode_action_CXX=unsupported
13317 fi
13318 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13319 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13320
13321 if test "$hardcode_action_CXX" = relink; then
13322 # Fast installation is not supported
13323 enable_fast_install=no
13324 elif test "$shlibpath_overrides_runpath" = yes ||
13325 test "$enable_shared" = no; then
13326 # Fast installation is not necessary
13327 enable_fast_install=needless
13328 fi
13329
13330
13331 # The else clause should only fire when bootstrapping the
13332 # libtool distribution, otherwise you forgot to ship ltmain.sh
13333 # with your package, and you will get complaints that there are
13334 # no rules to generate ltmain.sh.
13335 if test -f "$ltmain"; then
13336 # See if we are running on zsh, and set the options which allow our commands through
13337 # without removal of \ escapes.
13338 if test -n "${ZSH_VERSION+set}" ; then
13339 setopt NO_GLOB_SUBST
13340 fi
13341 # Now quote all the things that may contain metacharacters while being
13342 # careful not to overquote the AC_SUBSTed values. We take copies of the
13343 # variables and quote the copies for generation of the libtool script.
13344 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13345 SED SHELL STRIP \
13346 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13347 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13348 deplibs_check_method reload_flag reload_cmds need_locks \
13349 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13350 lt_cv_sys_global_symbol_to_c_name_address \
13351 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13352 old_postinstall_cmds old_postuninstall_cmds \
13353 compiler_CXX \
13354 CC_CXX \
13355 LD_CXX \
13356 lt_prog_compiler_wl_CXX \
13357 lt_prog_compiler_pic_CXX \
13358 lt_prog_compiler_static_CXX \
13359 lt_prog_compiler_no_builtin_flag_CXX \
13360 export_dynamic_flag_spec_CXX \
13361 thread_safe_flag_spec_CXX \
13362 whole_archive_flag_spec_CXX \
13363 enable_shared_with_static_runtimes_CXX \
13364 old_archive_cmds_CXX \
13365 old_archive_from_new_cmds_CXX \
13366 predep_objects_CXX \
13367 postdep_objects_CXX \
13368 predeps_CXX \
13369 postdeps_CXX \
13370 compiler_lib_search_path_CXX \
13371 archive_cmds_CXX \
13372 archive_expsym_cmds_CXX \
13373 postinstall_cmds_CXX \
13374 postuninstall_cmds_CXX \
13375 old_archive_from_expsyms_cmds_CXX \
13376 allow_undefined_flag_CXX \
13377 no_undefined_flag_CXX \
13378 export_symbols_cmds_CXX \
13379 hardcode_libdir_flag_spec_CXX \
13380 hardcode_libdir_flag_spec_ld_CXX \
13381 hardcode_libdir_separator_CXX \
13382 hardcode_automatic_CXX \
13383 module_cmds_CXX \
13384 module_expsym_cmds_CXX \
13385 lt_cv_prog_compiler_c_o_CXX \
13386 exclude_expsyms_CXX \
13387 include_expsyms_CXX; do
13388
13389 case $var in
13390 old_archive_cmds_CXX | \
13391 old_archive_from_new_cmds_CXX | \
13392 archive_cmds_CXX | \
13393 archive_expsym_cmds_CXX | \
13394 module_cmds_CXX | \
13395 module_expsym_cmds_CXX | \
13396 old_archive_from_expsyms_cmds_CXX | \
13397 export_symbols_cmds_CXX | \
13398 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13399 postinstall_cmds | postuninstall_cmds | \
13400 old_postinstall_cmds | old_postuninstall_cmds | \
13401 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13402 # Double-quote double-evaled strings.
13403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13404 ;;
13405 *)
13406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13407 ;;
13408 esac
13409 done
13410
13411 case $lt_echo in
13412 *'\$0 --fallback-echo"')
13413 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13414 ;;
13415 esac
13416
13417 cfgfile="$ofile"
13418
13419 cat <<__EOF__ >> "$cfgfile"
13420 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13421
13422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13423
13424 # Shell to use when invoking shell scripts.
13425 SHELL=$lt_SHELL
13426
13427 # Whether or not to build shared libraries.
13428 build_libtool_libs=$enable_shared
13429
13430 # Whether or not to build static libraries.
13431 build_old_libs=$enable_static
13432
13433 # Whether or not to add -lc for building shared libraries.
13434 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13435
13436 # Whether or not to disallow shared libs when runtime libs are static
13437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13438
13439 # Whether or not to optimize for fast installation.
13440 fast_install=$enable_fast_install
13441
13442 # The host system.
13443 host_alias=$host_alias
13444 host=$host
13445 host_os=$host_os
13446
13447 # The build system.
13448 build_alias=$build_alias
13449 build=$build
13450 build_os=$build_os
13451
13452 # An echo program that does not interpret backslashes.
13453 echo=$lt_echo
13454
13455 # The archiver.
13456 AR=$lt_AR
13457 AR_FLAGS=$lt_AR_FLAGS
13458
13459 # A C compiler.
13460 LTCC=$lt_LTCC
13461
13462 # LTCC compiler flags.
13463 LTCFLAGS=$lt_LTCFLAGS
13464
13465 # A language-specific compiler.
13466 CC=$lt_compiler_CXX
13467
13468 # Is the compiler the GNU C compiler?
13469 with_gcc=$GCC_CXX
13470
13471 # An ERE matcher.
13472 EGREP=$lt_EGREP
13473
13474 # The linker used to build libraries.
13475 LD=$lt_LD_CXX
13476
13477 # Whether we need hard or soft links.
13478 LN_S=$lt_LN_S
13479
13480 # A BSD-compatible nm program.
13481 NM=$lt_NM
13482
13483 # A symbol stripping program
13484 STRIP=$lt_STRIP
13485
13486 # Used to examine libraries when file_magic_cmd begins "file"
13487 MAGIC_CMD=$MAGIC_CMD
13488
13489 # Used on cygwin: DLL creation program.
13490 DLLTOOL="$DLLTOOL"
13491
13492 # Used on cygwin: object dumper.
13493 OBJDUMP="$OBJDUMP"
13494
13495 # Used on cygwin: assembler.
13496 AS="$AS"
13497
13498 # The name of the directory that contains temporary libtool files.
13499 objdir=$objdir
13500
13501 # How to create reloadable object files.
13502 reload_flag=$lt_reload_flag
13503 reload_cmds=$lt_reload_cmds
13504
13505 # How to pass a linker flag through the compiler.
13506 wl=$lt_lt_prog_compiler_wl_CXX
13507
13508 # Object file suffix (normally "o").
13509 objext="$ac_objext"
13510
13511 # Old archive suffix (normally "a").
13512 libext="$libext"
13513
13514 # Shared library suffix (normally ".so").
13515 shrext_cmds='$shrext_cmds'
13516
13517 # Executable file suffix (normally "").
13518 exeext="$exeext"
13519
13520 # Additional compiler flags for building library objects.
13521 pic_flag=$lt_lt_prog_compiler_pic_CXX
13522 pic_mode=$pic_mode
13523
13524 # What is the maximum length of a command?
13525 max_cmd_len=$lt_cv_sys_max_cmd_len
13526
13527 # Does compiler simultaneously support -c and -o options?
13528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13529
13530 # Must we lock files when doing compilation?
13531 need_locks=$lt_need_locks
13532
13533 # Do we need the lib prefix for modules?
13534 need_lib_prefix=$need_lib_prefix
13535
13536 # Do we need a version for libraries?
13537 need_version=$need_version
13538
13539 # Whether dlopen is supported.
13540 dlopen_support=$enable_dlopen
13541
13542 # Whether dlopen of programs is supported.
13543 dlopen_self=$enable_dlopen_self
13544
13545 # Whether dlopen of statically linked programs is supported.
13546 dlopen_self_static=$enable_dlopen_self_static
13547
13548 # Compiler flag to prevent dynamic linking.
13549 link_static_flag=$lt_lt_prog_compiler_static_CXX
13550
13551 # Compiler flag to turn off builtin functions.
13552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13553
13554 # Compiler flag to allow reflexive dlopens.
13555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13556
13557 # Compiler flag to generate shared objects directly from archives.
13558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13559
13560 # Compiler flag to generate thread-safe objects.
13561 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13562
13563 # Library versioning type.
13564 version_type=$version_type
13565
13566 # Format of library name prefix.
13567 libname_spec=$lt_libname_spec
13568
13569 # List of archive names. First name is the real one, the rest are links.
13570 # The last name is the one that the linker finds with -lNAME.
13571 library_names_spec=$lt_library_names_spec
13572
13573 # The coded name of the library, if different from the real name.
13574 soname_spec=$lt_soname_spec
13575
13576 # Commands used to build and install an old-style archive.
13577 RANLIB=$lt_RANLIB
13578 old_archive_cmds=$lt_old_archive_cmds_CXX
13579 old_postinstall_cmds=$lt_old_postinstall_cmds
13580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13581
13582 # Create an old-style archive from a shared archive.
13583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13584
13585 # Create a temporary old-style archive to link instead of a shared archive.
13586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13587
13588 # Commands used to build and install a shared archive.
13589 archive_cmds=$lt_archive_cmds_CXX
13590 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13591 postinstall_cmds=$lt_postinstall_cmds
13592 postuninstall_cmds=$lt_postuninstall_cmds
13593
13594 # Commands used to build a loadable module (assumed same as above if empty)
13595 module_cmds=$lt_module_cmds_CXX
13596 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13597
13598 # Commands to strip libraries.
13599 old_striplib=$lt_old_striplib
13600 striplib=$lt_striplib
13601
13602 # Dependencies to place before the objects being linked to create a
13603 # shared library.
13604 predep_objects=$lt_predep_objects_CXX
13605
13606 # Dependencies to place after the objects being linked to create a
13607 # shared library.
13608 postdep_objects=$lt_postdep_objects_CXX
13609
13610 # Dependencies to place before the objects being linked to create a
13611 # shared library.
13612 predeps=$lt_predeps_CXX
13613
13614 # Dependencies to place after the objects being linked to create a
13615 # shared library.
13616 postdeps=$lt_postdeps_CXX
13617
13618 # The library search path used internally by the compiler when linking
13619 # a shared library.
13620 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13621
13622 # Method to check whether dependent libraries are shared objects.
13623 deplibs_check_method=$lt_deplibs_check_method
13624
13625 # Command to use when deplibs_check_method == file_magic.
13626 file_magic_cmd=$lt_file_magic_cmd
13627
13628 # Flag that allows shared libraries with undefined symbols to be built.
13629 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13630
13631 # Flag that forces no undefined symbols.
13632 no_undefined_flag=$lt_no_undefined_flag_CXX
13633
13634 # Commands used to finish a libtool library installation in a directory.
13635 finish_cmds=$lt_finish_cmds
13636
13637 # Same as above, but a single script fragment to be evaled but not shown.
13638 finish_eval=$lt_finish_eval
13639
13640 # Take the output of nm and produce a listing of raw symbols and C names.
13641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13642
13643 # Transform the output of nm in a proper C declaration
13644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13645
13646 # Transform the output of nm in a C name address pair
13647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13648
13649 # This is the shared library runtime path variable.
13650 runpath_var=$runpath_var
13651
13652 # This is the shared library path variable.
13653 shlibpath_var=$shlibpath_var
13654
13655 # Is shlibpath searched before the hard-coded library search path?
13656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13657
13658 # How to hardcode a shared library path into an executable.
13659 hardcode_action=$hardcode_action_CXX
13660
13661 # Whether we should hardcode library paths into libraries.
13662 hardcode_into_libs=$hardcode_into_libs
13663
13664 # Flag to hardcode \$libdir into a binary during linking.
13665 # This must work even if \$libdir does not exist.
13666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13667
13668 # If ld is used when linking, flag to hardcode \$libdir into
13669 # a binary during linking. This must work even if \$libdir does
13670 # not exist.
13671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13672
13673 # Whether we need a single -rpath flag with a separated argument.
13674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13675
13676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13677 # resulting binary.
13678 hardcode_direct=$hardcode_direct_CXX
13679
13680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13681 # resulting binary.
13682 hardcode_minus_L=$hardcode_minus_L_CXX
13683
13684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13685 # the resulting binary.
13686 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13687
13688 # Set to yes if building a shared library automatically hardcodes DIR into the library
13689 # and all subsequent libraries and executables linked against it.
13690 hardcode_automatic=$hardcode_automatic_CXX
13691
13692 # Variables whose values should be saved in libtool wrapper scripts and
13693 # restored at relink time.
13694 variables_saved_for_relink="$variables_saved_for_relink"
13695
13696 # Whether libtool must link a program against all its dependency libraries.
13697 link_all_deplibs=$link_all_deplibs_CXX
13698
13699 # Compile-time system search path for libraries
13700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13701
13702 # Run-time system search path for libraries
13703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13704
13705 # Fix the shell variable \$srcfile for the compiler.
13706 fix_srcfile_path="$fix_srcfile_path_CXX"
13707
13708 # Set to yes if exported symbols are required.
13709 always_export_symbols=$always_export_symbols_CXX
13710
13711 # The commands to list exported symbols.
13712 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13713
13714 # The commands to extract the exported symbol list from a shared archive.
13715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13716
13717 # Symbols that should not be listed in the preloaded symbols.
13718 exclude_expsyms=$lt_exclude_expsyms_CXX
13719
13720 # Symbols that must always be exported.
13721 include_expsyms=$lt_include_expsyms_CXX
13722
13723 # ### END LIBTOOL TAG CONFIG: $tagname
13724
13725 __EOF__
13726
13727
13728 else
13729 # If there is no Makefile yet, we rely on a make rule to execute
13730 # `config.status --recheck' to rerun these tests and create the
13731 # libtool script then.
13732 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13733 if test -f "$ltmain_in"; then
13734 test -f Makefile && make "$ltmain"
13735 fi
13736 fi
13737
13738
13739 ac_ext=c
13740 ac_cpp='$CPP $CPPFLAGS'
13741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13744
13745 CC=$lt_save_CC
13746 LDCXX=$LD
13747 LD=$lt_save_LD
13748 GCC=$lt_save_GCC
13749 with_gnu_ldcxx=$with_gnu_ld
13750 with_gnu_ld=$lt_save_with_gnu_ld
13751 lt_cv_path_LDCXX=$lt_cv_path_LD
13752 lt_cv_path_LD=$lt_save_path_LD
13753 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13754 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13755
13756 else
13757 tagname=""
13758 fi
13759 ;;
13760
13761 F77)
13762 if test -n "$F77" && test "X$F77" != "Xno"; then
13763
13764 ac_ext=f
13765 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13766 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13767 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13768
13769
13770 archive_cmds_need_lc_F77=no
13771 allow_undefined_flag_F77=
13772 always_export_symbols_F77=no
13773 archive_expsym_cmds_F77=
13774 export_dynamic_flag_spec_F77=
13775 hardcode_direct_F77=no
13776 hardcode_libdir_flag_spec_F77=
13777 hardcode_libdir_flag_spec_ld_F77=
13778 hardcode_libdir_separator_F77=
13779 hardcode_minus_L_F77=no
13780 hardcode_automatic_F77=no
13781 module_cmds_F77=
13782 module_expsym_cmds_F77=
13783 link_all_deplibs_F77=unknown
13784 old_archive_cmds_F77=$old_archive_cmds
13785 no_undefined_flag_F77=
13786 whole_archive_flag_spec_F77=
13787 enable_shared_with_static_runtimes_F77=no
13788
13789 # Source file extension for f77 test sources.
13790 ac_ext=f
13791
13792 # Object file extension for compiled f77 test sources.
13793 objext=o
13794 objext_F77=$objext
13795
13796 # Code to be used in simple compile tests
13797 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13798
13799 # Code to be used in simple link tests
13800 lt_simple_link_test_code=" program t\n end\n"
13801
13802 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13803
13804 # If no C compiler was specified, use CC.
13805 LTCC=${LTCC-"$CC"}
13806
13807 # If no C compiler flags were specified, use CFLAGS.
13808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13809
13810 # Allow CC to be a program name with arguments.
13811 compiler=$CC
13812
13813
13814 # save warnings/boilerplate of simple test code
13815 ac_outfile=conftest.$ac_objext
13816 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13817 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13818 _lt_compiler_boilerplate=`cat conftest.err`
13819 $rm conftest*
13820
13821 ac_outfile=conftest.$ac_objext
13822 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13823 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13824 _lt_linker_boilerplate=`cat conftest.err`
13825 $rm conftest*
13826
13827
13828 # Allow CC to be a program name with arguments.
13829 lt_save_CC="$CC"
13830 CC=${F77-"f77"}
13831 compiler=$CC
13832 compiler_F77=$CC
13833 for cc_temp in $compiler""; do
13834 case $cc_temp in
13835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13837 \-*) ;;
13838 *) break;;
13839 esac
13840 done
13841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13842
13843
13844 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13845 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13846 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13847 echo "${ECHO_T}$can_build_shared" >&6; }
13848
13849 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13850 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13851 test "$can_build_shared" = "no" && enable_shared=no
13852
13853 # On AIX, shared libraries and static libraries use the same namespace, and
13854 # are all built from PIC.
13855 case $host_os in
13856 aix3*)
13857 test "$enable_shared" = yes && enable_static=no
13858 if test -n "$RANLIB"; then
13859 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13860 postinstall_cmds='$RANLIB $lib'
13861 fi
13862 ;;
13863 aix4* | aix5*)
13864 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13865 test "$enable_shared" = yes && enable_static=no
13866 fi
13867 ;;
13868 esac
13869 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13870 echo "${ECHO_T}$enable_shared" >&6; }
13871
13872 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13873 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13874 # Make sure either enable_shared or enable_static is yes.
13875 test "$enable_shared" = yes || enable_static=yes
13876 { echo "$as_me:$LINENO: result: $enable_static" >&5
13877 echo "${ECHO_T}$enable_static" >&6; }
13878
13879 GCC_F77="$G77"
13880 LD_F77="$LD"
13881
13882 lt_prog_compiler_wl_F77=
13883 lt_prog_compiler_pic_F77=
13884 lt_prog_compiler_static_F77=
13885
13886 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13887 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13888
13889 if test "$GCC" = yes; then
13890 lt_prog_compiler_wl_F77='-Wl,'
13891 lt_prog_compiler_static_F77='-static'
13892
13893 case $host_os in
13894 aix*)
13895 # All AIX code is PIC.
13896 if test "$host_cpu" = ia64; then
13897 # AIX 5 now supports IA64 processor
13898 lt_prog_compiler_static_F77='-Bstatic'
13899 fi
13900 ;;
13901
13902 amigaos*)
13903 # FIXME: we need at least 68020 code to build shared libraries, but
13904 # adding the `-m68020' flag to GCC prevents building anything better,
13905 # like `-m68040'.
13906 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13907 ;;
13908
13909 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13910 # PIC is the default for these OSes.
13911 ;;
13912
13913 mingw* | pw32* | os2*)
13914 # This hack is so that the source file can tell whether it is being
13915 # built for inclusion in a dll (and should export symbols for example).
13916 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13917 ;;
13918
13919 darwin* | rhapsody*)
13920 # PIC is the default on this platform
13921 # Common symbols not allowed in MH_DYLIB files
13922 lt_prog_compiler_pic_F77='-fno-common'
13923 ;;
13924
13925 interix3*)
13926 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13927 # Instead, we relocate shared libraries at runtime.
13928 ;;
13929
13930 msdosdjgpp*)
13931 # Just because we use GCC doesn't mean we suddenly get shared libraries
13932 # on systems that don't support them.
13933 lt_prog_compiler_can_build_shared_F77=no
13934 enable_shared=no
13935 ;;
13936
13937 sysv4*MP*)
13938 if test -d /usr/nec; then
13939 lt_prog_compiler_pic_F77=-Kconform_pic
13940 fi
13941 ;;
13942
13943 hpux*)
13944 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13945 # not for PA HP-UX.
13946 case $host_cpu in
13947 hppa*64*|ia64*)
13948 # +Z the default
13949 ;;
13950 *)
13951 lt_prog_compiler_pic_F77='-fPIC'
13952 ;;
13953 esac
13954 ;;
13955
13956 *)
13957 lt_prog_compiler_pic_F77='-fPIC'
13958 ;;
13959 esac
13960 else
13961 # PORTME Check for flag to pass linker flags through the system compiler.
13962 case $host_os in
13963 aix*)
13964 lt_prog_compiler_wl_F77='-Wl,'
13965 if test "$host_cpu" = ia64; then
13966 # AIX 5 now supports IA64 processor
13967 lt_prog_compiler_static_F77='-Bstatic'
13968 else
13969 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13970 fi
13971 ;;
13972 darwin*)
13973 # PIC is the default on this platform
13974 # Common symbols not allowed in MH_DYLIB files
13975 case $cc_basename in
13976 xlc*)
13977 lt_prog_compiler_pic_F77='-qnocommon'
13978 lt_prog_compiler_wl_F77='-Wl,'
13979 ;;
13980 esac
13981 ;;
13982
13983 mingw* | pw32* | os2*)
13984 # This hack is so that the source file can tell whether it is being
13985 # built for inclusion in a dll (and should export symbols for example).
13986 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13987 ;;
13988
13989 hpux9* | hpux10* | hpux11*)
13990 lt_prog_compiler_wl_F77='-Wl,'
13991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13992 # not for PA HP-UX.
13993 case $host_cpu in
13994 hppa*64*|ia64*)
13995 # +Z the default
13996 ;;
13997 *)
13998 lt_prog_compiler_pic_F77='+Z'
13999 ;;
14000 esac
14001 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14002 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14003 ;;
14004
14005 irix5* | irix6* | nonstopux*)
14006 lt_prog_compiler_wl_F77='-Wl,'
14007 # PIC (with -KPIC) is the default.
14008 lt_prog_compiler_static_F77='-non_shared'
14009 ;;
14010
14011 newsos6)
14012 lt_prog_compiler_pic_F77='-KPIC'
14013 lt_prog_compiler_static_F77='-Bstatic'
14014 ;;
14015
14016 linux* | k*bsd*-gnu)
14017 case $cc_basename in
14018 icc* | ecc*)
14019 lt_prog_compiler_wl_F77='-Wl,'
14020 lt_prog_compiler_pic_F77='-KPIC'
14021 lt_prog_compiler_static_F77='-static'
14022 ;;
14023 pgcc* | pgf77* | pgf90* | pgf95*)
14024 # Portland Group compilers (*not* the Pentium gcc compiler,
14025 # which looks to be a dead project)
14026 lt_prog_compiler_wl_F77='-Wl,'
14027 lt_prog_compiler_pic_F77='-fpic'
14028 lt_prog_compiler_static_F77='-Bstatic'
14029 ;;
14030 ccc*)
14031 lt_prog_compiler_wl_F77='-Wl,'
14032 # All Alpha code is PIC.
14033 lt_prog_compiler_static_F77='-non_shared'
14034 ;;
14035 esac
14036 ;;
14037
14038 osf3* | osf4* | osf5*)
14039 lt_prog_compiler_wl_F77='-Wl,'
14040 # All OSF/1 code is PIC.
14041 lt_prog_compiler_static_F77='-non_shared'
14042 ;;
14043
14044 solaris*)
14045 lt_prog_compiler_pic_F77='-KPIC'
14046 lt_prog_compiler_static_F77='-Bstatic'
14047 case $cc_basename in
14048 f77* | f90* | f95*)
14049 lt_prog_compiler_wl_F77='-Qoption ld ';;
14050 *)
14051 lt_prog_compiler_wl_F77='-Wl,';;
14052 esac
14053 ;;
14054
14055 sunos4*)
14056 lt_prog_compiler_wl_F77='-Qoption ld '
14057 lt_prog_compiler_pic_F77='-PIC'
14058 lt_prog_compiler_static_F77='-Bstatic'
14059 ;;
14060
14061 sysv4 | sysv4.2uw2* | sysv4.3*)
14062 lt_prog_compiler_wl_F77='-Wl,'
14063 lt_prog_compiler_pic_F77='-KPIC'
14064 lt_prog_compiler_static_F77='-Bstatic'
14065 ;;
14066
14067 sysv4*MP*)
14068 if test -d /usr/nec ;then
14069 lt_prog_compiler_pic_F77='-Kconform_pic'
14070 lt_prog_compiler_static_F77='-Bstatic'
14071 fi
14072 ;;
14073
14074 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14075 lt_prog_compiler_wl_F77='-Wl,'
14076 lt_prog_compiler_pic_F77='-KPIC'
14077 lt_prog_compiler_static_F77='-Bstatic'
14078 ;;
14079
14080 unicos*)
14081 lt_prog_compiler_wl_F77='-Wl,'
14082 lt_prog_compiler_can_build_shared_F77=no
14083 ;;
14084
14085 uts4*)
14086 lt_prog_compiler_pic_F77='-pic'
14087 lt_prog_compiler_static_F77='-Bstatic'
14088 ;;
14089
14090 *)
14091 lt_prog_compiler_can_build_shared_F77=no
14092 ;;
14093 esac
14094 fi
14095
14096 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14097 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14098
14099 #
14100 # Check to make sure the PIC flag actually works.
14101 #
14102 if test -n "$lt_prog_compiler_pic_F77"; then
14103
14104 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14105 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14106 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109 lt_prog_compiler_pic_works_F77=no
14110 ac_outfile=conftest.$ac_objext
14111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14112 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14113 # Insert the option either (1) after the last *FLAGS variable, or
14114 # (2) before a word containing "conftest.", or (3) at the end.
14115 # Note that $ac_compile itself does not contain backslashes and begins
14116 # with a dollar sign (not a hyphen), so the echo should work correctly.
14117 # The option is referenced via a variable to avoid confusing sed.
14118 lt_compile=`echo "$ac_compile" | $SED \
14119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14121 -e 's:$: $lt_compiler_flag:'`
14122 (eval echo "\"\$as_me:14122: $lt_compile\"" >&5)
14123 (eval "$lt_compile" 2>conftest.err)
14124 ac_status=$?
14125 cat conftest.err >&5
14126 echo "$as_me:14126: \$? = $ac_status" >&5
14127 if (exit $ac_status) && test -s "$ac_outfile"; then
14128 # The compiler can only warn and ignore the option if not recognized
14129 # So say no if there are warnings other than the usual output.
14130 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14133 lt_prog_compiler_pic_works_F77=yes
14134 fi
14135 fi
14136 $rm conftest*
14137
14138 fi
14139 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14140 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14141
14142 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14143 case $lt_prog_compiler_pic_F77 in
14144 "" | " "*) ;;
14145 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14146 esac
14147 else
14148 lt_prog_compiler_pic_F77=
14149 lt_prog_compiler_can_build_shared_F77=no
14150 fi
14151
14152 fi
14153 case $host_os in
14154 # For platforms which do not support PIC, -DPIC is meaningless:
14155 *djgpp*)
14156 lt_prog_compiler_pic_F77=
14157 ;;
14158 *)
14159 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14160 ;;
14161 esac
14162
14163 #
14164 # Check to make sure the static flag actually works.
14165 #
14166 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14167 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14168 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14169 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 else
14172 lt_prog_compiler_static_works_F77=no
14173 save_LDFLAGS="$LDFLAGS"
14174 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14175 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14176 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14177 # The linker can only warn and ignore the option if not recognized
14178 # So say no if there are warnings
14179 if test -s conftest.err; then
14180 # Append any errors to the config.log.
14181 cat conftest.err 1>&5
14182 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14184 if diff conftest.exp conftest.er2 >/dev/null; then
14185 lt_prog_compiler_static_works_F77=yes
14186 fi
14187 else
14188 lt_prog_compiler_static_works_F77=yes
14189 fi
14190 fi
14191 $rm conftest*
14192 LDFLAGS="$save_LDFLAGS"
14193
14194 fi
14195 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14196 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14197
14198 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14199 :
14200 else
14201 lt_prog_compiler_static_F77=
14202 fi
14203
14204
14205 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14206 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14207 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14208 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210 lt_cv_prog_compiler_c_o_F77=no
14211 $rm -r conftest 2>/dev/null
14212 mkdir conftest
14213 cd conftest
14214 mkdir out
14215 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14216
14217 lt_compiler_flag="-o out/conftest2.$ac_objext"
14218 # Insert the option either (1) after the last *FLAGS variable, or
14219 # (2) before a word containing "conftest.", or (3) at the end.
14220 # Note that $ac_compile itself does not contain backslashes and begins
14221 # with a dollar sign (not a hyphen), so the echo should work correctly.
14222 lt_compile=`echo "$ac_compile" | $SED \
14223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14225 -e 's:$: $lt_compiler_flag:'`
14226 (eval echo "\"\$as_me:14226: $lt_compile\"" >&5)
14227 (eval "$lt_compile" 2>out/conftest.err)
14228 ac_status=$?
14229 cat out/conftest.err >&5
14230 echo "$as_me:14230: \$? = $ac_status" >&5
14231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14232 then
14233 # The compiler can only warn and ignore the option if not recognized
14234 # So say no if there are warnings
14235 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14238 lt_cv_prog_compiler_c_o_F77=yes
14239 fi
14240 fi
14241 chmod u+w . 2>&5
14242 $rm conftest*
14243 # SGI C++ compiler will create directory out/ii_files/ for
14244 # template instantiation
14245 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14246 $rm out/* && rmdir out
14247 cd ..
14248 rmdir conftest
14249 $rm conftest*
14250
14251 fi
14252 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14253 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14254
14255
14256 hard_links="nottested"
14257 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14258 # do not overwrite the value of need_locks provided by the user
14259 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14260 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14261 hard_links=yes
14262 $rm conftest*
14263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14264 touch conftest.a
14265 ln conftest.a conftest.b 2>&5 || hard_links=no
14266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14267 { echo "$as_me:$LINENO: result: $hard_links" >&5
14268 echo "${ECHO_T}$hard_links" >&6; }
14269 if test "$hard_links" = no; then
14270 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14271 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14272 need_locks=warn
14273 fi
14274 else
14275 need_locks=no
14276 fi
14277
14278 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14279 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14280
14281 runpath_var=
14282 allow_undefined_flag_F77=
14283 enable_shared_with_static_runtimes_F77=no
14284 archive_cmds_F77=
14285 archive_expsym_cmds_F77=
14286 old_archive_From_new_cmds_F77=
14287 old_archive_from_expsyms_cmds_F77=
14288 export_dynamic_flag_spec_F77=
14289 whole_archive_flag_spec_F77=
14290 thread_safe_flag_spec_F77=
14291 hardcode_libdir_flag_spec_F77=
14292 hardcode_libdir_flag_spec_ld_F77=
14293 hardcode_libdir_separator_F77=
14294 hardcode_direct_F77=no
14295 hardcode_minus_L_F77=no
14296 hardcode_shlibpath_var_F77=unsupported
14297 link_all_deplibs_F77=unknown
14298 hardcode_automatic_F77=no
14299 module_cmds_F77=
14300 module_expsym_cmds_F77=
14301 always_export_symbols_F77=no
14302 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14303 # include_expsyms should be a list of space-separated symbols to be *always*
14304 # included in the symbol list
14305 include_expsyms_F77=
14306 # exclude_expsyms can be an extended regexp of symbols to exclude
14307 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14308 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14309 # as well as any symbol that contains `d'.
14310 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14311 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14312 # platforms (ab)use it in PIC code, but their linkers get confused if
14313 # the symbol is explicitly referenced. Since portable code cannot
14314 # rely on this symbol name, it's probably fine to never include it in
14315 # preloaded symbol tables.
14316 extract_expsyms_cmds=
14317 # Just being paranoid about ensuring that cc_basename is set.
14318 for cc_temp in $compiler""; do
14319 case $cc_temp in
14320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14322 \-*) ;;
14323 *) break;;
14324 esac
14325 done
14326 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14327
14328 case $host_os in
14329 cygwin* | mingw* | pw32*)
14330 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14331 # When not using gcc, we currently assume that we are using
14332 # Microsoft Visual C++.
14333 if test "$GCC" != yes; then
14334 with_gnu_ld=no
14335 fi
14336 ;;
14337 interix*)
14338 # we just hope/assume this is gcc and not c89 (= MSVC++)
14339 with_gnu_ld=yes
14340 ;;
14341 openbsd*)
14342 with_gnu_ld=no
14343 ;;
14344 esac
14345
14346 ld_shlibs_F77=yes
14347 if test "$with_gnu_ld" = yes; then
14348 # If archive_cmds runs LD, not CC, wlarc should be empty
14349 wlarc='${wl}'
14350
14351 # Set some defaults for GNU ld with shared library support. These
14352 # are reset later if shared libraries are not supported. Putting them
14353 # here allows them to be overridden if necessary.
14354 runpath_var=LD_RUN_PATH
14355 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14356 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14357 # ancient GNU ld didn't support --whole-archive et. al.
14358 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14359 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14360 else
14361 whole_archive_flag_spec_F77=
14362 fi
14363 supports_anon_versioning=no
14364 case `$LD -v 2>/dev/null` in
14365 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14366 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14367 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14368 *\ 2.11.*) ;; # other 2.11 versions
14369 *) supports_anon_versioning=yes ;;
14370 esac
14371
14372 # See if GNU ld supports shared libraries.
14373 case $host_os in
14374 aix3* | aix4* | aix5*)
14375 # On AIX/PPC, the GNU linker is very broken
14376 if test "$host_cpu" != ia64; then
14377 ld_shlibs_F77=no
14378 cat <<EOF 1>&2
14379
14380 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14381 *** to be unable to reliably create shared libraries on AIX.
14382 *** Therefore, libtool is disabling shared libraries support. If you
14383 *** really care for shared libraries, you may want to modify your PATH
14384 *** so that a non-GNU linker is found, and then restart.
14385
14386 EOF
14387 fi
14388 ;;
14389
14390 amigaos*)
14391 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)'
14392 hardcode_libdir_flag_spec_F77='-L$libdir'
14393 hardcode_minus_L_F77=yes
14394
14395 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14396 # that the semantics of dynamic libraries on AmigaOS, at least up
14397 # to version 4, is to share data among multiple programs linked
14398 # with the same dynamic library. Since this doesn't match the
14399 # behavior of shared libraries on other platforms, we can't use
14400 # them.
14401 ld_shlibs_F77=no
14402 ;;
14403
14404 beos*)
14405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14406 allow_undefined_flag_F77=unsupported
14407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14408 # support --undefined. This deserves some investigation. FIXME
14409 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14410 else
14411 ld_shlibs_F77=no
14412 fi
14413 ;;
14414
14415 cygwin* | mingw* | pw32*)
14416 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14417 # as there is no search path for DLLs.
14418 hardcode_libdir_flag_spec_F77='-L$libdir'
14419 allow_undefined_flag_F77=unsupported
14420 always_export_symbols_F77=no
14421 enable_shared_with_static_runtimes_F77=yes
14422 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14423
14424 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14425 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14426 # If the export-symbols file already is a .def file (1st line
14427 # is EXPORTS), use it as is; otherwise, prepend...
14428 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14429 cp $export_symbols $output_objdir/$soname.def;
14430 else
14431 echo EXPORTS > $output_objdir/$soname.def;
14432 cat $export_symbols >> $output_objdir/$soname.def;
14433 fi~
14434 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14435 else
14436 ld_shlibs_F77=no
14437 fi
14438 ;;
14439
14440 interix3*)
14441 hardcode_direct_F77=no
14442 hardcode_shlibpath_var_F77=no
14443 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14444 export_dynamic_flag_spec_F77='${wl}-E'
14445 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14446 # Instead, shared libraries are loaded at an image base (0x10000000 by
14447 # default) and relocated if they conflict, which is a slow very memory
14448 # consuming and fragmenting process. To avoid this, we pick a random,
14449 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14450 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14451 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'
14452 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'
14453 ;;
14454
14455 linux* | k*bsd*-gnu)
14456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14457 tmp_addflag=
14458 case $cc_basename,$host_cpu in
14459 pgcc*) # Portland Group C compiler
14460 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'
14461 tmp_addflag=' $pic_flag'
14462 ;;
14463 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14464 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'
14465 tmp_addflag=' $pic_flag -Mnomain' ;;
14466 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14467 tmp_addflag=' -i_dynamic' ;;
14468 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14469 tmp_addflag=' -i_dynamic -nofor_main' ;;
14470 ifc* | ifort*) # Intel Fortran compiler
14471 tmp_addflag=' -nofor_main' ;;
14472 esac
14473 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14474
14475 if test $supports_anon_versioning = yes; then
14476 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14477 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14478 $echo "local: *; };" >> $output_objdir/$libname.ver~
14479 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14480 fi
14481 link_all_deplibs_F77=no
14482 else
14483 ld_shlibs_F77=no
14484 fi
14485 ;;
14486
14487 netbsd* | netbsdelf*-gnu)
14488 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14489 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14490 wlarc=
14491 else
14492 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14493 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14494 fi
14495 ;;
14496
14497 solaris*)
14498 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14499 ld_shlibs_F77=no
14500 cat <<EOF 1>&2
14501
14502 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14503 *** create shared libraries on Solaris systems. Therefore, libtool
14504 *** is disabling shared libraries support. We urge you to upgrade GNU
14505 *** binutils to release 2.9.1 or newer. Another option is to modify
14506 *** your PATH or compiler configuration so that the native linker is
14507 *** used, and then restart.
14508
14509 EOF
14510 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14511 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14512 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14513 else
14514 ld_shlibs_F77=no
14515 fi
14516 ;;
14517
14518 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14519 case `$LD -v 2>&1` in
14520 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14521 ld_shlibs_F77=no
14522 cat <<_LT_EOF 1>&2
14523
14524 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14525 *** reliably create shared libraries on SCO systems. Therefore, libtool
14526 *** is disabling shared libraries support. We urge you to upgrade GNU
14527 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14528 *** your PATH or compiler configuration so that the native linker is
14529 *** used, and then restart.
14530
14531 _LT_EOF
14532 ;;
14533 *)
14534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14535 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14536 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14537 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14538 else
14539 ld_shlibs_F77=no
14540 fi
14541 ;;
14542 esac
14543 ;;
14544
14545 sunos4*)
14546 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14547 wlarc=
14548 hardcode_direct_F77=yes
14549 hardcode_shlibpath_var_F77=no
14550 ;;
14551
14552 *)
14553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14554 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14555 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14556 else
14557 ld_shlibs_F77=no
14558 fi
14559 ;;
14560 esac
14561
14562 if test "$ld_shlibs_F77" = no; then
14563 runpath_var=
14564 hardcode_libdir_flag_spec_F77=
14565 export_dynamic_flag_spec_F77=
14566 whole_archive_flag_spec_F77=
14567 fi
14568 else
14569 # PORTME fill in a description of your system's linker (not GNU ld)
14570 case $host_os in
14571 aix3*)
14572 allow_undefined_flag_F77=unsupported
14573 always_export_symbols_F77=yes
14574 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'
14575 # Note: this linker hardcodes the directories in LIBPATH if there
14576 # are no directories specified by -L.
14577 hardcode_minus_L_F77=yes
14578 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14579 # Neither direct hardcoding nor static linking is supported with a
14580 # broken collect2.
14581 hardcode_direct_F77=unsupported
14582 fi
14583 ;;
14584
14585 aix4* | aix5*)
14586 if test "$host_cpu" = ia64; then
14587 # On IA64, the linker does run time linking by default, so we don't
14588 # have to do anything special.
14589 aix_use_runtimelinking=no
14590 exp_sym_flag='-Bexport'
14591 no_entry_flag=""
14592 else
14593 # If we're using GNU nm, then we don't want the "-C" option.
14594 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14595 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14596 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'
14597 else
14598 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'
14599 fi
14600 aix_use_runtimelinking=no
14601
14602 # Test if we are trying to use run time linking or normal
14603 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14604 # need to do runtime linking.
14605 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14606 for ld_flag in $LDFLAGS; do
14607 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14608 aix_use_runtimelinking=yes
14609 break
14610 fi
14611 done
14612 ;;
14613 esac
14614
14615 exp_sym_flag='-bexport'
14616 no_entry_flag='-bnoentry'
14617 fi
14618
14619 # When large executables or shared objects are built, AIX ld can
14620 # have problems creating the table of contents. If linking a library
14621 # or program results in "error TOC overflow" add -mminimal-toc to
14622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14624
14625 archive_cmds_F77=''
14626 hardcode_direct_F77=yes
14627 hardcode_libdir_separator_F77=':'
14628 link_all_deplibs_F77=yes
14629
14630 if test "$GCC" = yes; then
14631 case $host_os in aix4.[012]|aix4.[012].*)
14632 # We only want to do this on AIX 4.2 and lower, the check
14633 # below for broken collect2 doesn't work under 4.3+
14634 collect2name=`${CC} -print-prog-name=collect2`
14635 if test -f "$collect2name" && \
14636 strings "$collect2name" | grep resolve_lib_name >/dev/null
14637 then
14638 # We have reworked collect2
14639 hardcode_direct_F77=yes
14640 else
14641 # We have old collect2
14642 hardcode_direct_F77=unsupported
14643 # It fails to find uninstalled libraries when the uninstalled
14644 # path is not listed in the libpath. Setting hardcode_minus_L
14645 # to unsupported forces relinking
14646 hardcode_minus_L_F77=yes
14647 hardcode_libdir_flag_spec_F77='-L$libdir'
14648 hardcode_libdir_separator_F77=
14649 fi
14650 ;;
14651 esac
14652 shared_flag='-shared'
14653 if test "$aix_use_runtimelinking" = yes; then
14654 shared_flag="$shared_flag "'${wl}-G'
14655 fi
14656 else
14657 # not using gcc
14658 if test "$host_cpu" = ia64; then
14659 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14660 # chokes on -Wl,-G. The following line is correct:
14661 shared_flag='-G'
14662 else
14663 if test "$aix_use_runtimelinking" = yes; then
14664 shared_flag='${wl}-G'
14665 else
14666 shared_flag='${wl}-bM:SRE'
14667 fi
14668 fi
14669 fi
14670
14671 # It seems that -bexpall does not export symbols beginning with
14672 # underscore (_), so it is better to generate a list of symbols to export.
14673 always_export_symbols_F77=yes
14674 if test "$aix_use_runtimelinking" = yes; then
14675 # Warning - without using the other runtime loading flags (-brtl),
14676 # -berok will link without error, but may produce a broken library.
14677 allow_undefined_flag_F77='-berok'
14678 # Determine the default libpath from the value encoded in an empty executable.
14679 cat >conftest.$ac_ext <<_ACEOF
14680 program main
14681
14682 end
14683 _ACEOF
14684 rm -f conftest.$ac_objext conftest$ac_exeext
14685 if { (ac_try="$ac_link"
14686 case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14689 esac
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_link") 2>conftest.er1
14692 ac_status=$?
14693 grep -v '^ *+' conftest.er1 >conftest.err
14694 rm -f conftest.er1
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } && {
14698 test -z "$ac_f77_werror_flag" ||
14699 test ! -s conftest.err
14700 } && test -s conftest$ac_exeext &&
14701 $as_test_x conftest$ac_exeext; then
14702
14703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14704 }'`
14705 # Check for a 64-bit object if we didn't find anything.
14706 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14707 }'`; fi
14708 else
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14711
14712
14713 fi
14714
14715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14716 conftest$ac_exeext conftest.$ac_ext
14717 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14718
14719 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14720 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"
14721 else
14722 if test "$host_cpu" = ia64; then
14723 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14724 allow_undefined_flag_F77="-z nodefs"
14725 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"
14726 else
14727 # Determine the default libpath from the value encoded in an empty executable.
14728 cat >conftest.$ac_ext <<_ACEOF
14729 program main
14730
14731 end
14732 _ACEOF
14733 rm -f conftest.$ac_objext conftest$ac_exeext
14734 if { (ac_try="$ac_link"
14735 case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14738 esac
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_link") 2>conftest.er1
14741 ac_status=$?
14742 grep -v '^ *+' conftest.er1 >conftest.err
14743 rm -f conftest.er1
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } && {
14747 test -z "$ac_f77_werror_flag" ||
14748 test ! -s conftest.err
14749 } && test -s conftest$ac_exeext &&
14750 $as_test_x conftest$ac_exeext; then
14751
14752 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14753 }'`
14754 # Check for a 64-bit object if we didn't find anything.
14755 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14756 }'`; fi
14757 else
14758 echo "$as_me: failed program was:" >&5
14759 sed 's/^/| /' conftest.$ac_ext >&5
14760
14761
14762 fi
14763
14764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14765 conftest$ac_exeext conftest.$ac_ext
14766 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14767
14768 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14769 # Warning - without using the other run time loading flags,
14770 # -berok will link without error, but may produce a broken library.
14771 no_undefined_flag_F77=' ${wl}-bernotok'
14772 allow_undefined_flag_F77=' ${wl}-berok'
14773 # Exported symbols can be pulled into shared objects from archives
14774 whole_archive_flag_spec_F77='$convenience'
14775 archive_cmds_need_lc_F77=yes
14776 # This is similar to how AIX traditionally builds its shared libraries.
14777 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'
14778 fi
14779 fi
14780 ;;
14781
14782 amigaos*)
14783 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)'
14784 hardcode_libdir_flag_spec_F77='-L$libdir'
14785 hardcode_minus_L_F77=yes
14786 # see comment about different semantics on the GNU ld section
14787 ld_shlibs_F77=no
14788 ;;
14789
14790 bsdi[45]*)
14791 export_dynamic_flag_spec_F77=-rdynamic
14792 ;;
14793
14794 cygwin* | mingw* | pw32*)
14795 # When not using gcc, we currently assume that we are using
14796 # Microsoft Visual C++.
14797 # hardcode_libdir_flag_spec is actually meaningless, as there is
14798 # no search path for DLLs.
14799 hardcode_libdir_flag_spec_F77=' '
14800 allow_undefined_flag_F77=unsupported
14801 # Tell ltmain to make .lib files, not .a files.
14802 libext=lib
14803 # Tell ltmain to make .dll files, not .so files.
14804 shrext_cmds=".dll"
14805 # FIXME: Setting linknames here is a bad hack.
14806 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14807 # The linker will automatically build a .lib file if we build a DLL.
14808 old_archive_From_new_cmds_F77='true'
14809 # FIXME: Should let the user specify the lib program.
14810 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14811 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14812 enable_shared_with_static_runtimes_F77=yes
14813 ;;
14814
14815 darwin* | rhapsody*)
14816 case $host_os in
14817 rhapsody* | darwin1.[012])
14818 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14819 ;;
14820 *) # Darwin 1.3 on
14821 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14822 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14823 else
14824 case ${MACOSX_DEPLOYMENT_TARGET} in
14825 10.[012])
14826 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14827 ;;
14828 10.*)
14829 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14830 ;;
14831 esac
14832 fi
14833 ;;
14834 esac
14835 archive_cmds_need_lc_F77=no
14836 hardcode_direct_F77=no
14837 hardcode_automatic_F77=yes
14838 hardcode_shlibpath_var_F77=unsupported
14839 whole_archive_flag_spec_F77=''
14840 link_all_deplibs_F77=yes
14841 if test "$GCC" = yes ; then
14842 output_verbose_link_cmd='echo'
14843 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14844 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14845 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14846 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}'
14847 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}'
14848 else
14849 case $cc_basename in
14850 xlc*)
14851 output_verbose_link_cmd='echo'
14852 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14853 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14854 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14855 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14856 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}'
14857 ;;
14858 *)
14859 ld_shlibs_F77=no
14860 ;;
14861 esac
14862 fi
14863 ;;
14864
14865 dgux*)
14866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14867 hardcode_libdir_flag_spec_F77='-L$libdir'
14868 hardcode_shlibpath_var_F77=no
14869 ;;
14870
14871 freebsd1*)
14872 ld_shlibs_F77=no
14873 ;;
14874
14875 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14876 # support. Future versions do this automatically, but an explicit c++rt0.o
14877 # does not break anything, and helps significantly (at the cost of a little
14878 # extra space).
14879 freebsd2.2*)
14880 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14881 hardcode_libdir_flag_spec_F77='-R$libdir'
14882 hardcode_direct_F77=yes
14883 hardcode_shlibpath_var_F77=no
14884 ;;
14885
14886 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14887 freebsd2*)
14888 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14889 hardcode_direct_F77=yes
14890 hardcode_minus_L_F77=yes
14891 hardcode_shlibpath_var_F77=no
14892 ;;
14893
14894 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14895 freebsd* | dragonfly*)
14896 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14897 hardcode_libdir_flag_spec_F77='-R$libdir'
14898 hardcode_direct_F77=yes
14899 hardcode_shlibpath_var_F77=no
14900 ;;
14901
14902 hpux9*)
14903 if test "$GCC" = yes; then
14904 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'
14905 else
14906 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'
14907 fi
14908 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14909 hardcode_libdir_separator_F77=:
14910 hardcode_direct_F77=yes
14911
14912 # hardcode_minus_L: Not really in the search PATH,
14913 # but as the default location of the library.
14914 hardcode_minus_L_F77=yes
14915 export_dynamic_flag_spec_F77='${wl}-E'
14916 ;;
14917
14918 hpux10*)
14919 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14920 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14921 else
14922 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14923 fi
14924 if test "$with_gnu_ld" = no; then
14925 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14926 hardcode_libdir_separator_F77=:
14927
14928 hardcode_direct_F77=yes
14929 export_dynamic_flag_spec_F77='${wl}-E'
14930
14931 # hardcode_minus_L: Not really in the search PATH,
14932 # but as the default location of the library.
14933 hardcode_minus_L_F77=yes
14934 fi
14935 ;;
14936
14937 hpux11*)
14938 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14939 case $host_cpu in
14940 hppa*64*)
14941 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14942 ;;
14943 ia64*)
14944 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14945 ;;
14946 *)
14947 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14948 ;;
14949 esac
14950 else
14951 case $host_cpu in
14952 hppa*64*)
14953 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14954 ;;
14955 ia64*)
14956 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14957 ;;
14958 *)
14959 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14960 ;;
14961 esac
14962 fi
14963 if test "$with_gnu_ld" = no; then
14964 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14965 hardcode_libdir_separator_F77=:
14966
14967 case $host_cpu in
14968 hppa*64*|ia64*)
14969 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14970 hardcode_direct_F77=no
14971 hardcode_shlibpath_var_F77=no
14972 ;;
14973 *)
14974 hardcode_direct_F77=yes
14975 export_dynamic_flag_spec_F77='${wl}-E'
14976
14977 # hardcode_minus_L: Not really in the search PATH,
14978 # but as the default location of the library.
14979 hardcode_minus_L_F77=yes
14980 ;;
14981 esac
14982 fi
14983 ;;
14984
14985 irix5* | irix6* | nonstopux*)
14986 if test "$GCC" = yes; then
14987 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'
14988 else
14989 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'
14990 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14991 fi
14992 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14993 hardcode_libdir_separator_F77=:
14994 link_all_deplibs_F77=yes
14995 ;;
14996
14997 netbsd* | netbsdelf*-gnu)
14998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14999 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15000 else
15001 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15002 fi
15003 hardcode_libdir_flag_spec_F77='-R$libdir'
15004 hardcode_direct_F77=yes
15005 hardcode_shlibpath_var_F77=no
15006 ;;
15007
15008 newsos6)
15009 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15010 hardcode_direct_F77=yes
15011 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15012 hardcode_libdir_separator_F77=:
15013 hardcode_shlibpath_var_F77=no
15014 ;;
15015
15016 openbsd*)
15017 hardcode_direct_F77=yes
15018 hardcode_shlibpath_var_F77=no
15019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15020 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15021 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15022 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15023 export_dynamic_flag_spec_F77='${wl}-E'
15024 else
15025 case $host_os in
15026 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15027 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15028 hardcode_libdir_flag_spec_F77='-R$libdir'
15029 ;;
15030 *)
15031 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15032 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15033 ;;
15034 esac
15035 fi
15036 ;;
15037
15038 os2*)
15039 hardcode_libdir_flag_spec_F77='-L$libdir'
15040 hardcode_minus_L_F77=yes
15041 allow_undefined_flag_F77=unsupported
15042 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'
15043 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15044 ;;
15045
15046 osf3*)
15047 if test "$GCC" = yes; then
15048 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15049 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'
15050 else
15051 allow_undefined_flag_F77=' -expect_unresolved \*'
15052 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'
15053 fi
15054 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15055 hardcode_libdir_separator_F77=:
15056 ;;
15057
15058 osf4* | osf5*) # as osf3* with the addition of -msym flag
15059 if test "$GCC" = yes; then
15060 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15061 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'
15062 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15063 else
15064 allow_undefined_flag_F77=' -expect_unresolved \*'
15065 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'
15066 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~
15067 $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'
15068
15069 # Both c and cxx compiler support -rpath directly
15070 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15071 fi
15072 hardcode_libdir_separator_F77=:
15073 ;;
15074
15075 solaris*)
15076 no_undefined_flag_F77=' -z text'
15077 if test "$GCC" = yes; then
15078 wlarc='${wl}'
15079 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15080 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15081 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15082 else
15083 wlarc=''
15084 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15085 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15086 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15087 fi
15088 hardcode_libdir_flag_spec_F77='-R$libdir'
15089 hardcode_shlibpath_var_F77=no
15090 case $host_os in
15091 solaris2.[0-5] | solaris2.[0-5].*) ;;
15092 *)
15093 # The compiler driver will combine linker options so we
15094 # cannot just pass the convience library names through
15095 # without $wl, iff we do not link with $LD.
15096 # Luckily, gcc supports the same syntax we need for Sun Studio.
15097 # Supported since Solaris 2.6 (maybe 2.5.1?)
15098 case $wlarc in
15099 '')
15100 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15101 *)
15102 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15103 esac ;;
15104 esac
15105 link_all_deplibs_F77=yes
15106 ;;
15107
15108 sunos4*)
15109 if test "x$host_vendor" = xsequent; then
15110 # Use $CC to link under sequent, because it throws in some extra .o
15111 # files that make .init and .fini sections work.
15112 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15113 else
15114 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15115 fi
15116 hardcode_libdir_flag_spec_F77='-L$libdir'
15117 hardcode_direct_F77=yes
15118 hardcode_minus_L_F77=yes
15119 hardcode_shlibpath_var_F77=no
15120 ;;
15121
15122 sysv4)
15123 case $host_vendor in
15124 sni)
15125 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15126 hardcode_direct_F77=yes # is this really true???
15127 ;;
15128 siemens)
15129 ## LD is ld it makes a PLAMLIB
15130 ## CC just makes a GrossModule.
15131 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15132 reload_cmds_F77='$CC -r -o $output$reload_objs'
15133 hardcode_direct_F77=no
15134 ;;
15135 motorola)
15136 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15137 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15138 ;;
15139 esac
15140 runpath_var='LD_RUN_PATH'
15141 hardcode_shlibpath_var_F77=no
15142 ;;
15143
15144 sysv4.3*)
15145 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15146 hardcode_shlibpath_var_F77=no
15147 export_dynamic_flag_spec_F77='-Bexport'
15148 ;;
15149
15150 sysv4*MP*)
15151 if test -d /usr/nec; then
15152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15153 hardcode_shlibpath_var_F77=no
15154 runpath_var=LD_RUN_PATH
15155 hardcode_runpath_var=yes
15156 ld_shlibs_F77=yes
15157 fi
15158 ;;
15159
15160 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15161 no_undefined_flag_F77='${wl}-z,text'
15162 archive_cmds_need_lc_F77=no
15163 hardcode_shlibpath_var_F77=no
15164 runpath_var='LD_RUN_PATH'
15165
15166 if test "$GCC" = yes; then
15167 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15168 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15169 else
15170 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15171 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15172 fi
15173 ;;
15174
15175 sysv5* | sco3.2v5* | sco5v6*)
15176 # Note: We can NOT use -z defs as we might desire, because we do not
15177 # link with -lc, and that would cause any symbols used from libc to
15178 # always be unresolved, which means just about no library would
15179 # ever link correctly. If we're not using GNU ld we use -z text
15180 # though, which does catch some bad symbols but isn't as heavy-handed
15181 # as -z defs.
15182 no_undefined_flag_F77='${wl}-z,text'
15183 allow_undefined_flag_F77='${wl}-z,nodefs'
15184 archive_cmds_need_lc_F77=no
15185 hardcode_shlibpath_var_F77=no
15186 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15187 hardcode_libdir_separator_F77=':'
15188 link_all_deplibs_F77=yes
15189 export_dynamic_flag_spec_F77='${wl}-Bexport'
15190 runpath_var='LD_RUN_PATH'
15191
15192 if test "$GCC" = yes; then
15193 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15194 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15195 else
15196 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15197 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15198 fi
15199 ;;
15200
15201 uts4*)
15202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15203 hardcode_libdir_flag_spec_F77='-L$libdir'
15204 hardcode_shlibpath_var_F77=no
15205 ;;
15206
15207 *)
15208 ld_shlibs_F77=no
15209 ;;
15210 esac
15211 fi
15212
15213 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15214 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15215 test "$ld_shlibs_F77" = no && can_build_shared=no
15216
15217 #
15218 # Do we need to explicitly link libc?
15219 #
15220 case "x$archive_cmds_need_lc_F77" in
15221 x|xyes)
15222 # Assume -lc should be added
15223 archive_cmds_need_lc_F77=yes
15224
15225 if test "$enable_shared" = yes && test "$GCC" = yes; then
15226 case $archive_cmds_F77 in
15227 *'~'*)
15228 # FIXME: we may have to deal with multi-command sequences.
15229 ;;
15230 '$CC '*)
15231 # Test whether the compiler implicitly links with -lc since on some
15232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15233 # to ld, don't add -lc before -lgcc.
15234 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15235 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15236 $rm conftest*
15237 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15238
15239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15240 (eval $ac_compile) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } 2>conftest.err; then
15244 soname=conftest
15245 lib=conftest
15246 libobjs=conftest.$ac_objext
15247 deplibs=
15248 wl=$lt_prog_compiler_wl_F77
15249 pic_flag=$lt_prog_compiler_pic_F77
15250 compiler_flags=-v
15251 linker_flags=-v
15252 verstring=
15253 output_objdir=.
15254 libname=conftest
15255 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15256 allow_undefined_flag_F77=
15257 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15258 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }
15262 then
15263 archive_cmds_need_lc_F77=no
15264 else
15265 archive_cmds_need_lc_F77=yes
15266 fi
15267 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15268 else
15269 cat conftest.err 1>&5
15270 fi
15271 $rm conftest*
15272 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15273 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15274 ;;
15275 esac
15276 fi
15277 ;;
15278 esac
15279
15280 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15281 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15282 library_names_spec=
15283 libname_spec='lib$name'
15284 soname_spec=
15285 shrext_cmds=".so"
15286 postinstall_cmds=
15287 postuninstall_cmds=
15288 finish_cmds=
15289 finish_eval=
15290 shlibpath_var=
15291 shlibpath_overrides_runpath=unknown
15292 version_type=none
15293 dynamic_linker="$host_os ld.so"
15294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15295 if test "$GCC" = yes; then
15296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15297 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15298 # if the path contains ";" then we assume it to be the separator
15299 # otherwise default to the standard path separator (i.e. ":") - it is
15300 # assumed that no part of a normal pathname contains ";" but that should
15301 # okay in the real world where ";" in dirpaths is itself problematic.
15302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15303 else
15304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15305 fi
15306 else
15307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15308 fi
15309 need_lib_prefix=unknown
15310 hardcode_into_libs=no
15311
15312 # when you set need_version to no, make sure it does not cause -set_version
15313 # flags to be left without arguments
15314 need_version=unknown
15315
15316 case $host_os in
15317 aix3*)
15318 version_type=linux
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15320 shlibpath_var=LIBPATH
15321
15322 # AIX 3 has no versioning support, so we append a major version to the name.
15323 soname_spec='${libname}${release}${shared_ext}$major'
15324 ;;
15325
15326 aix4* | aix5*)
15327 version_type=linux
15328 need_lib_prefix=no
15329 need_version=no
15330 hardcode_into_libs=yes
15331 if test "$host_cpu" = ia64; then
15332 # AIX 5 supports IA64
15333 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15334 shlibpath_var=LD_LIBRARY_PATH
15335 else
15336 # With GCC up to 2.95.x, collect2 would create an import file
15337 # for dependence libraries. The import file would start with
15338 # the line `#! .'. This would cause the generated library to
15339 # depend on `.', always an invalid library. This was fixed in
15340 # development snapshots of GCC prior to 3.0.
15341 case $host_os in
15342 aix4 | aix4.[01] | aix4.[01].*)
15343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15344 echo ' yes '
15345 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15346 :
15347 else
15348 can_build_shared=no
15349 fi
15350 ;;
15351 esac
15352 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15353 # soname into executable. Probably we can add versioning support to
15354 # collect2, so additional links can be useful in future.
15355 if test "$aix_use_runtimelinking" = yes; then
15356 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15357 # instead of lib<name>.a to let people know that these are not
15358 # typical AIX shared libraries.
15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360 else
15361 # We preserve .a as extension for shared libraries through AIX4.2
15362 # and later when we are not doing run time linking.
15363 library_names_spec='${libname}${release}.a $libname.a'
15364 soname_spec='${libname}${release}${shared_ext}$major'
15365 fi
15366 shlibpath_var=LIBPATH
15367 fi
15368 ;;
15369
15370 amigaos*)
15371 library_names_spec='$libname.ixlibrary $libname.a'
15372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15373 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'
15374 ;;
15375
15376 beos*)
15377 library_names_spec='${libname}${shared_ext}'
15378 dynamic_linker="$host_os ld.so"
15379 shlibpath_var=LIBRARY_PATH
15380 ;;
15381
15382 bsdi[45]*)
15383 version_type=linux
15384 need_version=no
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386 soname_spec='${libname}${release}${shared_ext}$major'
15387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15388 shlibpath_var=LD_LIBRARY_PATH
15389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15391 # the default ld.so.conf also contains /usr/contrib/lib and
15392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15393 # libtool to hard-code these into programs
15394 ;;
15395
15396 cygwin* | mingw* | pw32*)
15397 version_type=windows
15398 shrext_cmds=".dll"
15399 need_version=no
15400 need_lib_prefix=no
15401
15402 case $GCC,$host_os in
15403 yes,cygwin* | yes,mingw* | yes,pw32*)
15404 library_names_spec='$libname.dll.a'
15405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15406 postinstall_cmds='base_file=`basename \${file}`~
15407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15408 dldir=$destdir/`dirname \$dlpath`~
15409 test -d \$dldir || mkdir -p \$dldir~
15410 $install_prog $dir/$dlname \$dldir/$dlname~
15411 chmod a+x \$dldir/$dlname'
15412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15413 dlpath=$dir/\$dldll~
15414 $rm \$dlpath'
15415 shlibpath_overrides_runpath=yes
15416
15417 case $host_os in
15418 cygwin*)
15419 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15420 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15421 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15422 ;;
15423 mingw*)
15424 # MinGW DLLs use traditional 'lib' prefix
15425 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15426 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15427 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15428 # It is most probably a Windows format PATH printed by
15429 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15430 # path with ; separators, and with drive letters. We can handle the
15431 # drive letters (cygwin fileutils understands them), so leave them,
15432 # especially as we might pass files found there to a mingw objdump,
15433 # which wouldn't understand a cygwinified path. Ahh.
15434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15435 else
15436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15437 fi
15438 ;;
15439 pw32*)
15440 # pw32 DLLs use 'pw' prefix rather than 'lib'
15441 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15442 ;;
15443 esac
15444 ;;
15445
15446 *)
15447 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15448 ;;
15449 esac
15450 dynamic_linker='Win32 ld.exe'
15451 # FIXME: first we should search . and the directory the executable is in
15452 shlibpath_var=PATH
15453 ;;
15454
15455 darwin* | rhapsody*)
15456 dynamic_linker="$host_os dyld"
15457 version_type=darwin
15458 need_lib_prefix=no
15459 need_version=no
15460 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15461 soname_spec='${libname}${release}${major}$shared_ext'
15462 shlibpath_overrides_runpath=yes
15463 shlibpath_var=DYLD_LIBRARY_PATH
15464 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15465 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15466 if test "$GCC" = yes; then
15467 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15468 else
15469 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15470 fi
15471 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15472 ;;
15473
15474 dgux*)
15475 version_type=linux
15476 need_lib_prefix=no
15477 need_version=no
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15479 soname_spec='${libname}${release}${shared_ext}$major'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 ;;
15482
15483 freebsd1*)
15484 dynamic_linker=no
15485 ;;
15486
15487 freebsd* | dragonfly*)
15488 # DragonFly does not have aout. When/if they implement a new
15489 # versioning mechanism, adjust this.
15490 if test -x /usr/bin/objformat; then
15491 objformat=`/usr/bin/objformat`
15492 else
15493 case $host_os in
15494 freebsd[123]*) objformat=aout ;;
15495 *) objformat=elf ;;
15496 esac
15497 fi
15498 version_type=freebsd-$objformat
15499 case $version_type in
15500 freebsd-elf*)
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15502 need_version=no
15503 need_lib_prefix=no
15504 ;;
15505 freebsd-*)
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15507 need_version=yes
15508 ;;
15509 esac
15510 shlibpath_var=LD_LIBRARY_PATH
15511 case $host_os in
15512 freebsd2*)
15513 shlibpath_overrides_runpath=yes
15514 ;;
15515 freebsd3.[01]* | freebsdelf3.[01]*)
15516 shlibpath_overrides_runpath=yes
15517 hardcode_into_libs=yes
15518 ;;
15519 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15520 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15521 shlibpath_overrides_runpath=no
15522 hardcode_into_libs=yes
15523 ;;
15524 freebsd*) # from 4.6 on
15525 shlibpath_overrides_runpath=yes
15526 hardcode_into_libs=yes
15527 ;;
15528 esac
15529 ;;
15530
15531 gnu*)
15532 version_type=linux
15533 need_lib_prefix=no
15534 need_version=no
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15536 soname_spec='${libname}${release}${shared_ext}$major'
15537 shlibpath_var=LD_LIBRARY_PATH
15538 hardcode_into_libs=yes
15539 ;;
15540
15541 hpux9* | hpux10* | hpux11*)
15542 # Give a soname corresponding to the major version so that dld.sl refuses to
15543 # link against other versions.
15544 version_type=sunos
15545 need_lib_prefix=no
15546 need_version=no
15547 case $host_cpu in
15548 ia64*)
15549 shrext_cmds='.so'
15550 hardcode_into_libs=yes
15551 dynamic_linker="$host_os dld.so"
15552 shlibpath_var=LD_LIBRARY_PATH
15553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15555 soname_spec='${libname}${release}${shared_ext}$major'
15556 if test "X$HPUX_IA64_MODE" = X32; then
15557 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15558 else
15559 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15560 fi
15561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15562 ;;
15563 hppa*64*)
15564 shrext_cmds='.sl'
15565 hardcode_into_libs=yes
15566 dynamic_linker="$host_os dld.sl"
15567 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15573 ;;
15574 *)
15575 shrext_cmds='.sl'
15576 dynamic_linker="$host_os dld.sl"
15577 shlibpath_var=SHLIB_PATH
15578 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 soname_spec='${libname}${release}${shared_ext}$major'
15581 ;;
15582 esac
15583 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15584 postinstall_cmds='chmod 555 $lib'
15585 ;;
15586
15587 interix3*)
15588 version_type=linux
15589 need_lib_prefix=no
15590 need_version=no
15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15592 soname_spec='${libname}${release}${shared_ext}$major'
15593 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15594 shlibpath_var=LD_LIBRARY_PATH
15595 shlibpath_overrides_runpath=no
15596 hardcode_into_libs=yes
15597 ;;
15598
15599 irix5* | irix6* | nonstopux*)
15600 case $host_os in
15601 nonstopux*) version_type=nonstopux ;;
15602 *)
15603 if test "$lt_cv_prog_gnu_ld" = yes; then
15604 version_type=linux
15605 else
15606 version_type=irix
15607 fi ;;
15608 esac
15609 need_lib_prefix=no
15610 need_version=no
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15613 case $host_os in
15614 irix5* | nonstopux*)
15615 libsuff= shlibsuff=
15616 ;;
15617 *)
15618 case $LD in # libtool.m4 will add one of these switches to LD
15619 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15620 libsuff= shlibsuff= libmagic=32-bit;;
15621 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15622 libsuff=32 shlibsuff=N32 libmagic=N32;;
15623 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15624 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15625 *) libsuff= shlibsuff= libmagic=never-match;;
15626 esac
15627 ;;
15628 esac
15629 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15630 shlibpath_overrides_runpath=no
15631 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15632 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15633 hardcode_into_libs=yes
15634 ;;
15635
15636 # No shared lib support for Linux oldld, aout, or coff.
15637 linux*oldld* | linux*aout* | linux*coff*)
15638 dynamic_linker=no
15639 ;;
15640
15641 # This must be Linux ELF.
15642 linux* | k*bsd*-gnu)
15643 version_type=linux
15644 need_lib_prefix=no
15645 need_version=no
15646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647 soname_spec='${libname}${release}${shared_ext}$major'
15648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 shlibpath_overrides_runpath=no
15651 # This implies no fast_install, which is unacceptable.
15652 # Some rework will be needed to allow for fast_install
15653 # before this can be enabled.
15654 hardcode_into_libs=yes
15655
15656 # Append ld.so.conf contents to the search path
15657 if test -f /etc/ld.so.conf; then
15658 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15659 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15660 fi
15661
15662 # We used to test for /lib/ld.so.1 and disable shared libraries on
15663 # powerpc, because MkLinux only supported shared libraries with the
15664 # GNU dynamic linker. Since this was broken with cross compilers,
15665 # most powerpc-linux boxes support dynamic linking these days and
15666 # people can always --disable-shared, the test was removed, and we
15667 # assume the GNU/Linux dynamic linker is in use.
15668 dynamic_linker='GNU/Linux ld.so'
15669 ;;
15670
15671 netbsdelf*-gnu)
15672 version_type=linux
15673 need_lib_prefix=no
15674 need_version=no
15675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15676 soname_spec='${libname}${release}${shared_ext}$major'
15677 shlibpath_var=LD_LIBRARY_PATH
15678 shlibpath_overrides_runpath=no
15679 hardcode_into_libs=yes
15680 dynamic_linker='NetBSD ld.elf_so'
15681 ;;
15682
15683 netbsd*)
15684 version_type=sunos
15685 need_lib_prefix=no
15686 need_version=no
15687 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15690 dynamic_linker='NetBSD (a.out) ld.so'
15691 else
15692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15693 soname_spec='${libname}${release}${shared_ext}$major'
15694 dynamic_linker='NetBSD ld.elf_so'
15695 fi
15696 shlibpath_var=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath=yes
15698 hardcode_into_libs=yes
15699 ;;
15700
15701 newsos6)
15702 version_type=linux
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704 shlibpath_var=LD_LIBRARY_PATH
15705 shlibpath_overrides_runpath=yes
15706 ;;
15707
15708 nto-qnx*)
15709 version_type=linux
15710 need_lib_prefix=no
15711 need_version=no
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 shlibpath_overrides_runpath=yes
15716 ;;
15717
15718 openbsd*)
15719 version_type=sunos
15720 sys_lib_dlsearch_path_spec="/usr/lib"
15721 need_lib_prefix=no
15722 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15723 case $host_os in
15724 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15725 *) need_version=no ;;
15726 esac
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15729 shlibpath_var=LD_LIBRARY_PATH
15730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15731 case $host_os in
15732 openbsd2.[89] | openbsd2.[89].*)
15733 shlibpath_overrides_runpath=no
15734 ;;
15735 *)
15736 shlibpath_overrides_runpath=yes
15737 ;;
15738 esac
15739 else
15740 shlibpath_overrides_runpath=yes
15741 fi
15742 ;;
15743
15744 os2*)
15745 libname_spec='$name'
15746 shrext_cmds=".dll"
15747 need_lib_prefix=no
15748 library_names_spec='$libname${shared_ext} $libname.a'
15749 dynamic_linker='OS/2 ld.exe'
15750 shlibpath_var=LIBPATH
15751 ;;
15752
15753 osf3* | osf4* | osf5*)
15754 version_type=osf
15755 need_lib_prefix=no
15756 need_version=no
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759 shlibpath_var=LD_LIBRARY_PATH
15760 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15761 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15762 ;;
15763
15764 solaris*)
15765 version_type=linux
15766 need_lib_prefix=no
15767 need_version=no
15768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15769 soname_spec='${libname}${release}${shared_ext}$major'
15770 shlibpath_var=LD_LIBRARY_PATH
15771 shlibpath_overrides_runpath=yes
15772 hardcode_into_libs=yes
15773 # ldd complains unless libraries are executable
15774 postinstall_cmds='chmod +x $lib'
15775 ;;
15776
15777 sunos4*)
15778 version_type=sunos
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15780 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15781 shlibpath_var=LD_LIBRARY_PATH
15782 shlibpath_overrides_runpath=yes
15783 if test "$with_gnu_ld" = yes; then
15784 need_lib_prefix=no
15785 fi
15786 need_version=yes
15787 ;;
15788
15789 sysv4 | sysv4.3*)
15790 version_type=linux
15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792 soname_spec='${libname}${release}${shared_ext}$major'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 case $host_vendor in
15795 sni)
15796 shlibpath_overrides_runpath=no
15797 need_lib_prefix=no
15798 export_dynamic_flag_spec='${wl}-Blargedynsym'
15799 runpath_var=LD_RUN_PATH
15800 ;;
15801 siemens)
15802 need_lib_prefix=no
15803 ;;
15804 motorola)
15805 need_lib_prefix=no
15806 need_version=no
15807 shlibpath_overrides_runpath=no
15808 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15809 ;;
15810 esac
15811 ;;
15812
15813 sysv4*MP*)
15814 if test -d /usr/nec ;then
15815 version_type=linux
15816 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15817 soname_spec='$libname${shared_ext}.$major'
15818 shlibpath_var=LD_LIBRARY_PATH
15819 fi
15820 ;;
15821
15822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15823 version_type=freebsd-elf
15824 need_lib_prefix=no
15825 need_version=no
15826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15827 soname_spec='${libname}${release}${shared_ext}$major'
15828 shlibpath_var=LD_LIBRARY_PATH
15829 hardcode_into_libs=yes
15830 if test "$with_gnu_ld" = yes; then
15831 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15832 shlibpath_overrides_runpath=no
15833 else
15834 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15835 shlibpath_overrides_runpath=yes
15836 case $host_os in
15837 sco3.2v5*)
15838 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15839 ;;
15840 esac
15841 fi
15842 sys_lib_dlsearch_path_spec='/usr/lib'
15843 ;;
15844
15845 uts4*)
15846 version_type=linux
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15848 soname_spec='${libname}${release}${shared_ext}$major'
15849 shlibpath_var=LD_LIBRARY_PATH
15850 ;;
15851
15852 *)
15853 dynamic_linker=no
15854 ;;
15855 esac
15856 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15857 echo "${ECHO_T}$dynamic_linker" >&6; }
15858 test "$dynamic_linker" = no && can_build_shared=no
15859
15860 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15861 if test "$GCC" = yes; then
15862 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15863 fi
15864
15865 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15866 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15867 hardcode_action_F77=
15868 if test -n "$hardcode_libdir_flag_spec_F77" || \
15869 test -n "$runpath_var_F77" || \
15870 test "X$hardcode_automatic_F77" = "Xyes" ; then
15871
15872 # We can hardcode non-existant directories.
15873 if test "$hardcode_direct_F77" != no &&
15874 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15875 # have to relink, otherwise we might link with an installed library
15876 # when we should be linking with a yet-to-be-installed one
15877 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15878 test "$hardcode_minus_L_F77" != no; then
15879 # Linking always hardcodes the temporary library directory.
15880 hardcode_action_F77=relink
15881 else
15882 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15883 hardcode_action_F77=immediate
15884 fi
15885 else
15886 # We cannot hardcode anything, or else we can only hardcode existing
15887 # directories.
15888 hardcode_action_F77=unsupported
15889 fi
15890 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15891 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15892
15893 if test "$hardcode_action_F77" = relink; then
15894 # Fast installation is not supported
15895 enable_fast_install=no
15896 elif test "$shlibpath_overrides_runpath" = yes ||
15897 test "$enable_shared" = no; then
15898 # Fast installation is not necessary
15899 enable_fast_install=needless
15900 fi
15901
15902
15903 # The else clause should only fire when bootstrapping the
15904 # libtool distribution, otherwise you forgot to ship ltmain.sh
15905 # with your package, and you will get complaints that there are
15906 # no rules to generate ltmain.sh.
15907 if test -f "$ltmain"; then
15908 # See if we are running on zsh, and set the options which allow our commands through
15909 # without removal of \ escapes.
15910 if test -n "${ZSH_VERSION+set}" ; then
15911 setopt NO_GLOB_SUBST
15912 fi
15913 # Now quote all the things that may contain metacharacters while being
15914 # careful not to overquote the AC_SUBSTed values. We take copies of the
15915 # variables and quote the copies for generation of the libtool script.
15916 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15917 SED SHELL STRIP \
15918 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15919 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15920 deplibs_check_method reload_flag reload_cmds need_locks \
15921 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15922 lt_cv_sys_global_symbol_to_c_name_address \
15923 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15924 old_postinstall_cmds old_postuninstall_cmds \
15925 compiler_F77 \
15926 CC_F77 \
15927 LD_F77 \
15928 lt_prog_compiler_wl_F77 \
15929 lt_prog_compiler_pic_F77 \
15930 lt_prog_compiler_static_F77 \
15931 lt_prog_compiler_no_builtin_flag_F77 \
15932 export_dynamic_flag_spec_F77 \
15933 thread_safe_flag_spec_F77 \
15934 whole_archive_flag_spec_F77 \
15935 enable_shared_with_static_runtimes_F77 \
15936 old_archive_cmds_F77 \
15937 old_archive_from_new_cmds_F77 \
15938 predep_objects_F77 \
15939 postdep_objects_F77 \
15940 predeps_F77 \
15941 postdeps_F77 \
15942 compiler_lib_search_path_F77 \
15943 archive_cmds_F77 \
15944 archive_expsym_cmds_F77 \
15945 postinstall_cmds_F77 \
15946 postuninstall_cmds_F77 \
15947 old_archive_from_expsyms_cmds_F77 \
15948 allow_undefined_flag_F77 \
15949 no_undefined_flag_F77 \
15950 export_symbols_cmds_F77 \
15951 hardcode_libdir_flag_spec_F77 \
15952 hardcode_libdir_flag_spec_ld_F77 \
15953 hardcode_libdir_separator_F77 \
15954 hardcode_automatic_F77 \
15955 module_cmds_F77 \
15956 module_expsym_cmds_F77 \
15957 lt_cv_prog_compiler_c_o_F77 \
15958 exclude_expsyms_F77 \
15959 include_expsyms_F77; do
15960
15961 case $var in
15962 old_archive_cmds_F77 | \
15963 old_archive_from_new_cmds_F77 | \
15964 archive_cmds_F77 | \
15965 archive_expsym_cmds_F77 | \
15966 module_cmds_F77 | \
15967 module_expsym_cmds_F77 | \
15968 old_archive_from_expsyms_cmds_F77 | \
15969 export_symbols_cmds_F77 | \
15970 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15971 postinstall_cmds | postuninstall_cmds | \
15972 old_postinstall_cmds | old_postuninstall_cmds | \
15973 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15974 # Double-quote double-evaled strings.
15975 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15976 ;;
15977 *)
15978 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15979 ;;
15980 esac
15981 done
15982
15983 case $lt_echo in
15984 *'\$0 --fallback-echo"')
15985 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15986 ;;
15987 esac
15988
15989 cfgfile="$ofile"
15990
15991 cat <<__EOF__ >> "$cfgfile"
15992 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15993
15994 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15995
15996 # Shell to use when invoking shell scripts.
15997 SHELL=$lt_SHELL
15998
15999 # Whether or not to build shared libraries.
16000 build_libtool_libs=$enable_shared
16001
16002 # Whether or not to build static libraries.
16003 build_old_libs=$enable_static
16004
16005 # Whether or not to add -lc for building shared libraries.
16006 build_libtool_need_lc=$archive_cmds_need_lc_F77
16007
16008 # Whether or not to disallow shared libs when runtime libs are static
16009 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16010
16011 # Whether or not to optimize for fast installation.
16012 fast_install=$enable_fast_install
16013
16014 # The host system.
16015 host_alias=$host_alias
16016 host=$host
16017 host_os=$host_os
16018
16019 # The build system.
16020 build_alias=$build_alias
16021 build=$build
16022 build_os=$build_os
16023
16024 # An echo program that does not interpret backslashes.
16025 echo=$lt_echo
16026
16027 # The archiver.
16028 AR=$lt_AR
16029 AR_FLAGS=$lt_AR_FLAGS
16030
16031 # A C compiler.
16032 LTCC=$lt_LTCC
16033
16034 # LTCC compiler flags.
16035 LTCFLAGS=$lt_LTCFLAGS
16036
16037 # A language-specific compiler.
16038 CC=$lt_compiler_F77
16039
16040 # Is the compiler the GNU C compiler?
16041 with_gcc=$GCC_F77
16042
16043 # An ERE matcher.
16044 EGREP=$lt_EGREP
16045
16046 # The linker used to build libraries.
16047 LD=$lt_LD_F77
16048
16049 # Whether we need hard or soft links.
16050 LN_S=$lt_LN_S
16051
16052 # A BSD-compatible nm program.
16053 NM=$lt_NM
16054
16055 # A symbol stripping program
16056 STRIP=$lt_STRIP
16057
16058 # Used to examine libraries when file_magic_cmd begins "file"
16059 MAGIC_CMD=$MAGIC_CMD
16060
16061 # Used on cygwin: DLL creation program.
16062 DLLTOOL="$DLLTOOL"
16063
16064 # Used on cygwin: object dumper.
16065 OBJDUMP="$OBJDUMP"
16066
16067 # Used on cygwin: assembler.
16068 AS="$AS"
16069
16070 # The name of the directory that contains temporary libtool files.
16071 objdir=$objdir
16072
16073 # How to create reloadable object files.
16074 reload_flag=$lt_reload_flag
16075 reload_cmds=$lt_reload_cmds
16076
16077 # How to pass a linker flag through the compiler.
16078 wl=$lt_lt_prog_compiler_wl_F77
16079
16080 # Object file suffix (normally "o").
16081 objext="$ac_objext"
16082
16083 # Old archive suffix (normally "a").
16084 libext="$libext"
16085
16086 # Shared library suffix (normally ".so").
16087 shrext_cmds='$shrext_cmds'
16088
16089 # Executable file suffix (normally "").
16090 exeext="$exeext"
16091
16092 # Additional compiler flags for building library objects.
16093 pic_flag=$lt_lt_prog_compiler_pic_F77
16094 pic_mode=$pic_mode
16095
16096 # What is the maximum length of a command?
16097 max_cmd_len=$lt_cv_sys_max_cmd_len
16098
16099 # Does compiler simultaneously support -c and -o options?
16100 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16101
16102 # Must we lock files when doing compilation?
16103 need_locks=$lt_need_locks
16104
16105 # Do we need the lib prefix for modules?
16106 need_lib_prefix=$need_lib_prefix
16107
16108 # Do we need a version for libraries?
16109 need_version=$need_version
16110
16111 # Whether dlopen is supported.
16112 dlopen_support=$enable_dlopen
16113
16114 # Whether dlopen of programs is supported.
16115 dlopen_self=$enable_dlopen_self
16116
16117 # Whether dlopen of statically linked programs is supported.
16118 dlopen_self_static=$enable_dlopen_self_static
16119
16120 # Compiler flag to prevent dynamic linking.
16121 link_static_flag=$lt_lt_prog_compiler_static_F77
16122
16123 # Compiler flag to turn off builtin functions.
16124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16125
16126 # Compiler flag to allow reflexive dlopens.
16127 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16128
16129 # Compiler flag to generate shared objects directly from archives.
16130 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16131
16132 # Compiler flag to generate thread-safe objects.
16133 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16134
16135 # Library versioning type.
16136 version_type=$version_type
16137
16138 # Format of library name prefix.
16139 libname_spec=$lt_libname_spec
16140
16141 # List of archive names. First name is the real one, the rest are links.
16142 # The last name is the one that the linker finds with -lNAME.
16143 library_names_spec=$lt_library_names_spec
16144
16145 # The coded name of the library, if different from the real name.
16146 soname_spec=$lt_soname_spec
16147
16148 # Commands used to build and install an old-style archive.
16149 RANLIB=$lt_RANLIB
16150 old_archive_cmds=$lt_old_archive_cmds_F77
16151 old_postinstall_cmds=$lt_old_postinstall_cmds
16152 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16153
16154 # Create an old-style archive from a shared archive.
16155 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16156
16157 # Create a temporary old-style archive to link instead of a shared archive.
16158 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16159
16160 # Commands used to build and install a shared archive.
16161 archive_cmds=$lt_archive_cmds_F77
16162 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16163 postinstall_cmds=$lt_postinstall_cmds
16164 postuninstall_cmds=$lt_postuninstall_cmds
16165
16166 # Commands used to build a loadable module (assumed same as above if empty)
16167 module_cmds=$lt_module_cmds_F77
16168 module_expsym_cmds=$lt_module_expsym_cmds_F77
16169
16170 # Commands to strip libraries.
16171 old_striplib=$lt_old_striplib
16172 striplib=$lt_striplib
16173
16174 # Dependencies to place before the objects being linked to create a
16175 # shared library.
16176 predep_objects=$lt_predep_objects_F77
16177
16178 # Dependencies to place after the objects being linked to create a
16179 # shared library.
16180 postdep_objects=$lt_postdep_objects_F77
16181
16182 # Dependencies to place before the objects being linked to create a
16183 # shared library.
16184 predeps=$lt_predeps_F77
16185
16186 # Dependencies to place after the objects being linked to create a
16187 # shared library.
16188 postdeps=$lt_postdeps_F77
16189
16190 # The library search path used internally by the compiler when linking
16191 # a shared library.
16192 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16193
16194 # Method to check whether dependent libraries are shared objects.
16195 deplibs_check_method=$lt_deplibs_check_method
16196
16197 # Command to use when deplibs_check_method == file_magic.
16198 file_magic_cmd=$lt_file_magic_cmd
16199
16200 # Flag that allows shared libraries with undefined symbols to be built.
16201 allow_undefined_flag=$lt_allow_undefined_flag_F77
16202
16203 # Flag that forces no undefined symbols.
16204 no_undefined_flag=$lt_no_undefined_flag_F77
16205
16206 # Commands used to finish a libtool library installation in a directory.
16207 finish_cmds=$lt_finish_cmds
16208
16209 # Same as above, but a single script fragment to be evaled but not shown.
16210 finish_eval=$lt_finish_eval
16211
16212 # Take the output of nm and produce a listing of raw symbols and C names.
16213 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16214
16215 # Transform the output of nm in a proper C declaration
16216 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16217
16218 # Transform the output of nm in a C name address pair
16219 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16220
16221 # This is the shared library runtime path variable.
16222 runpath_var=$runpath_var
16223
16224 # This is the shared library path variable.
16225 shlibpath_var=$shlibpath_var
16226
16227 # Is shlibpath searched before the hard-coded library search path?
16228 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16229
16230 # How to hardcode a shared library path into an executable.
16231 hardcode_action=$hardcode_action_F77
16232
16233 # Whether we should hardcode library paths into libraries.
16234 hardcode_into_libs=$hardcode_into_libs
16235
16236 # Flag to hardcode \$libdir into a binary during linking.
16237 # This must work even if \$libdir does not exist.
16238 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16239
16240 # If ld is used when linking, flag to hardcode \$libdir into
16241 # a binary during linking. This must work even if \$libdir does
16242 # not exist.
16243 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16244
16245 # Whether we need a single -rpath flag with a separated argument.
16246 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16247
16248 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16249 # resulting binary.
16250 hardcode_direct=$hardcode_direct_F77
16251
16252 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16253 # resulting binary.
16254 hardcode_minus_L=$hardcode_minus_L_F77
16255
16256 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16257 # the resulting binary.
16258 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16259
16260 # Set to yes if building a shared library automatically hardcodes DIR into the library
16261 # and all subsequent libraries and executables linked against it.
16262 hardcode_automatic=$hardcode_automatic_F77
16263
16264 # Variables whose values should be saved in libtool wrapper scripts and
16265 # restored at relink time.
16266 variables_saved_for_relink="$variables_saved_for_relink"
16267
16268 # Whether libtool must link a program against all its dependency libraries.
16269 link_all_deplibs=$link_all_deplibs_F77
16270
16271 # Compile-time system search path for libraries
16272 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16273
16274 # Run-time system search path for libraries
16275 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16276
16277 # Fix the shell variable \$srcfile for the compiler.
16278 fix_srcfile_path="$fix_srcfile_path_F77"
16279
16280 # Set to yes if exported symbols are required.
16281 always_export_symbols=$always_export_symbols_F77
16282
16283 # The commands to list exported symbols.
16284 export_symbols_cmds=$lt_export_symbols_cmds_F77
16285
16286 # The commands to extract the exported symbol list from a shared archive.
16287 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16288
16289 # Symbols that should not be listed in the preloaded symbols.
16290 exclude_expsyms=$lt_exclude_expsyms_F77
16291
16292 # Symbols that must always be exported.
16293 include_expsyms=$lt_include_expsyms_F77
16294
16295 # ### END LIBTOOL TAG CONFIG: $tagname
16296
16297 __EOF__
16298
16299
16300 else
16301 # If there is no Makefile yet, we rely on a make rule to execute
16302 # `config.status --recheck' to rerun these tests and create the
16303 # libtool script then.
16304 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16305 if test -f "$ltmain_in"; then
16306 test -f Makefile && make "$ltmain"
16307 fi
16308 fi
16309
16310
16311 ac_ext=c
16312 ac_cpp='$CPP $CPPFLAGS'
16313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16316
16317 CC="$lt_save_CC"
16318
16319 else
16320 tagname=""
16321 fi
16322 ;;
16323
16324 GCJ)
16325 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16326
16327
16328 # Source file extension for Java test sources.
16329 ac_ext=java
16330
16331 # Object file extension for compiled Java test sources.
16332 objext=o
16333 objext_GCJ=$objext
16334
16335 # Code to be used in simple compile tests
16336 lt_simple_compile_test_code="class foo {}\n"
16337
16338 # Code to be used in simple link tests
16339 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16340
16341 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16342
16343 # If no C compiler was specified, use CC.
16344 LTCC=${LTCC-"$CC"}
16345
16346 # If no C compiler flags were specified, use CFLAGS.
16347 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16348
16349 # Allow CC to be a program name with arguments.
16350 compiler=$CC
16351
16352
16353 # save warnings/boilerplate of simple test code
16354 ac_outfile=conftest.$ac_objext
16355 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16356 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16357 _lt_compiler_boilerplate=`cat conftest.err`
16358 $rm conftest*
16359
16360 ac_outfile=conftest.$ac_objext
16361 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16362 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16363 _lt_linker_boilerplate=`cat conftest.err`
16364 $rm conftest*
16365
16366
16367 # Allow CC to be a program name with arguments.
16368 lt_save_CC="$CC"
16369 CC=${GCJ-"gcj"}
16370 compiler=$CC
16371 compiler_GCJ=$CC
16372 for cc_temp in $compiler""; do
16373 case $cc_temp in
16374 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16375 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16376 \-*) ;;
16377 *) break;;
16378 esac
16379 done
16380 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16381
16382
16383 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16384 archive_cmds_need_lc_GCJ=no
16385
16386 old_archive_cmds_GCJ=$old_archive_cmds
16387
16388
16389 lt_prog_compiler_no_builtin_flag_GCJ=
16390
16391 if test "$GCC" = yes; then
16392 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16393
16394
16395 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16396 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16397 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400 lt_cv_prog_compiler_rtti_exceptions=no
16401 ac_outfile=conftest.$ac_objext
16402 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16403 lt_compiler_flag="-fno-rtti -fno-exceptions"
16404 # Insert the option either (1) after the last *FLAGS variable, or
16405 # (2) before a word containing "conftest.", or (3) at the end.
16406 # Note that $ac_compile itself does not contain backslashes and begins
16407 # with a dollar sign (not a hyphen), so the echo should work correctly.
16408 # The option is referenced via a variable to avoid confusing sed.
16409 lt_compile=`echo "$ac_compile" | $SED \
16410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16412 -e 's:$: $lt_compiler_flag:'`
16413 (eval echo "\"\$as_me:16413: $lt_compile\"" >&5)
16414 (eval "$lt_compile" 2>conftest.err)
16415 ac_status=$?
16416 cat conftest.err >&5
16417 echo "$as_me:16417: \$? = $ac_status" >&5
16418 if (exit $ac_status) && test -s "$ac_outfile"; then
16419 # The compiler can only warn and ignore the option if not recognized
16420 # So say no if there are warnings other than the usual output.
16421 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16423 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16424 lt_cv_prog_compiler_rtti_exceptions=yes
16425 fi
16426 fi
16427 $rm conftest*
16428
16429 fi
16430 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16431 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16432
16433 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16434 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16435 else
16436 :
16437 fi
16438
16439 fi
16440
16441 lt_prog_compiler_wl_GCJ=
16442 lt_prog_compiler_pic_GCJ=
16443 lt_prog_compiler_static_GCJ=
16444
16445 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16446 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16447
16448 if test "$GCC" = yes; then
16449 lt_prog_compiler_wl_GCJ='-Wl,'
16450 lt_prog_compiler_static_GCJ='-static'
16451
16452 case $host_os in
16453 aix*)
16454 # All AIX code is PIC.
16455 if test "$host_cpu" = ia64; then
16456 # AIX 5 now supports IA64 processor
16457 lt_prog_compiler_static_GCJ='-Bstatic'
16458 fi
16459 ;;
16460
16461 amigaos*)
16462 # FIXME: we need at least 68020 code to build shared libraries, but
16463 # adding the `-m68020' flag to GCC prevents building anything better,
16464 # like `-m68040'.
16465 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16466 ;;
16467
16468 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16469 # PIC is the default for these OSes.
16470 ;;
16471
16472 mingw* | pw32* | os2*)
16473 # This hack is so that the source file can tell whether it is being
16474 # built for inclusion in a dll (and should export symbols for example).
16475 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16476 ;;
16477
16478 darwin* | rhapsody*)
16479 # PIC is the default on this platform
16480 # Common symbols not allowed in MH_DYLIB files
16481 lt_prog_compiler_pic_GCJ='-fno-common'
16482 ;;
16483
16484 interix3*)
16485 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16486 # Instead, we relocate shared libraries at runtime.
16487 ;;
16488
16489 msdosdjgpp*)
16490 # Just because we use GCC doesn't mean we suddenly get shared libraries
16491 # on systems that don't support them.
16492 lt_prog_compiler_can_build_shared_GCJ=no
16493 enable_shared=no
16494 ;;
16495
16496 sysv4*MP*)
16497 if test -d /usr/nec; then
16498 lt_prog_compiler_pic_GCJ=-Kconform_pic
16499 fi
16500 ;;
16501
16502 hpux*)
16503 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16504 # not for PA HP-UX.
16505 case $host_cpu in
16506 hppa*64*|ia64*)
16507 # +Z the default
16508 ;;
16509 *)
16510 lt_prog_compiler_pic_GCJ='-fPIC'
16511 ;;
16512 esac
16513 ;;
16514
16515 *)
16516 lt_prog_compiler_pic_GCJ='-fPIC'
16517 ;;
16518 esac
16519 else
16520 # PORTME Check for flag to pass linker flags through the system compiler.
16521 case $host_os in
16522 aix*)
16523 lt_prog_compiler_wl_GCJ='-Wl,'
16524 if test "$host_cpu" = ia64; then
16525 # AIX 5 now supports IA64 processor
16526 lt_prog_compiler_static_GCJ='-Bstatic'
16527 else
16528 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16529 fi
16530 ;;
16531 darwin*)
16532 # PIC is the default on this platform
16533 # Common symbols not allowed in MH_DYLIB files
16534 case $cc_basename in
16535 xlc*)
16536 lt_prog_compiler_pic_GCJ='-qnocommon'
16537 lt_prog_compiler_wl_GCJ='-Wl,'
16538 ;;
16539 esac
16540 ;;
16541
16542 mingw* | pw32* | os2*)
16543 # This hack is so that the source file can tell whether it is being
16544 # built for inclusion in a dll (and should export symbols for example).
16545 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16546 ;;
16547
16548 hpux9* | hpux10* | hpux11*)
16549 lt_prog_compiler_wl_GCJ='-Wl,'
16550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16551 # not for PA HP-UX.
16552 case $host_cpu in
16553 hppa*64*|ia64*)
16554 # +Z the default
16555 ;;
16556 *)
16557 lt_prog_compiler_pic_GCJ='+Z'
16558 ;;
16559 esac
16560 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16561 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16562 ;;
16563
16564 irix5* | irix6* | nonstopux*)
16565 lt_prog_compiler_wl_GCJ='-Wl,'
16566 # PIC (with -KPIC) is the default.
16567 lt_prog_compiler_static_GCJ='-non_shared'
16568 ;;
16569
16570 newsos6)
16571 lt_prog_compiler_pic_GCJ='-KPIC'
16572 lt_prog_compiler_static_GCJ='-Bstatic'
16573 ;;
16574
16575 linux* | k*bsd*-gnu)
16576 case $cc_basename in
16577 icc* | ecc*)
16578 lt_prog_compiler_wl_GCJ='-Wl,'
16579 lt_prog_compiler_pic_GCJ='-KPIC'
16580 lt_prog_compiler_static_GCJ='-static'
16581 ;;
16582 pgcc* | pgf77* | pgf90* | pgf95*)
16583 # Portland Group compilers (*not* the Pentium gcc compiler,
16584 # which looks to be a dead project)
16585 lt_prog_compiler_wl_GCJ='-Wl,'
16586 lt_prog_compiler_pic_GCJ='-fpic'
16587 lt_prog_compiler_static_GCJ='-Bstatic'
16588 ;;
16589 ccc*)
16590 lt_prog_compiler_wl_GCJ='-Wl,'
16591 # All Alpha code is PIC.
16592 lt_prog_compiler_static_GCJ='-non_shared'
16593 ;;
16594 esac
16595 ;;
16596
16597 osf3* | osf4* | osf5*)
16598 lt_prog_compiler_wl_GCJ='-Wl,'
16599 # All OSF/1 code is PIC.
16600 lt_prog_compiler_static_GCJ='-non_shared'
16601 ;;
16602
16603 solaris*)
16604 lt_prog_compiler_pic_GCJ='-KPIC'
16605 lt_prog_compiler_static_GCJ='-Bstatic'
16606 case $cc_basename in
16607 f77* | f90* | f95*)
16608 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16609 *)
16610 lt_prog_compiler_wl_GCJ='-Wl,';;
16611 esac
16612 ;;
16613
16614 sunos4*)
16615 lt_prog_compiler_wl_GCJ='-Qoption ld '
16616 lt_prog_compiler_pic_GCJ='-PIC'
16617 lt_prog_compiler_static_GCJ='-Bstatic'
16618 ;;
16619
16620 sysv4 | sysv4.2uw2* | sysv4.3*)
16621 lt_prog_compiler_wl_GCJ='-Wl,'
16622 lt_prog_compiler_pic_GCJ='-KPIC'
16623 lt_prog_compiler_static_GCJ='-Bstatic'
16624 ;;
16625
16626 sysv4*MP*)
16627 if test -d /usr/nec ;then
16628 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16629 lt_prog_compiler_static_GCJ='-Bstatic'
16630 fi
16631 ;;
16632
16633 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16634 lt_prog_compiler_wl_GCJ='-Wl,'
16635 lt_prog_compiler_pic_GCJ='-KPIC'
16636 lt_prog_compiler_static_GCJ='-Bstatic'
16637 ;;
16638
16639 unicos*)
16640 lt_prog_compiler_wl_GCJ='-Wl,'
16641 lt_prog_compiler_can_build_shared_GCJ=no
16642 ;;
16643
16644 uts4*)
16645 lt_prog_compiler_pic_GCJ='-pic'
16646 lt_prog_compiler_static_GCJ='-Bstatic'
16647 ;;
16648
16649 *)
16650 lt_prog_compiler_can_build_shared_GCJ=no
16651 ;;
16652 esac
16653 fi
16654
16655 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16656 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16657
16658 #
16659 # Check to make sure the PIC flag actually works.
16660 #
16661 if test -n "$lt_prog_compiler_pic_GCJ"; then
16662
16663 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16664 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16665 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16667 else
16668 lt_prog_compiler_pic_works_GCJ=no
16669 ac_outfile=conftest.$ac_objext
16670 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16671 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16672 # Insert the option either (1) after the last *FLAGS variable, or
16673 # (2) before a word containing "conftest.", or (3) at the end.
16674 # Note that $ac_compile itself does not contain backslashes and begins
16675 # with a dollar sign (not a hyphen), so the echo should work correctly.
16676 # The option is referenced via a variable to avoid confusing sed.
16677 lt_compile=`echo "$ac_compile" | $SED \
16678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16680 -e 's:$: $lt_compiler_flag:'`
16681 (eval echo "\"\$as_me:16681: $lt_compile\"" >&5)
16682 (eval "$lt_compile" 2>conftest.err)
16683 ac_status=$?
16684 cat conftest.err >&5
16685 echo "$as_me:16685: \$? = $ac_status" >&5
16686 if (exit $ac_status) && test -s "$ac_outfile"; then
16687 # The compiler can only warn and ignore the option if not recognized
16688 # So say no if there are warnings other than the usual output.
16689 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16691 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16692 lt_prog_compiler_pic_works_GCJ=yes
16693 fi
16694 fi
16695 $rm conftest*
16696
16697 fi
16698 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16699 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16700
16701 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16702 case $lt_prog_compiler_pic_GCJ in
16703 "" | " "*) ;;
16704 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16705 esac
16706 else
16707 lt_prog_compiler_pic_GCJ=
16708 lt_prog_compiler_can_build_shared_GCJ=no
16709 fi
16710
16711 fi
16712 case $host_os in
16713 # For platforms which do not support PIC, -DPIC is meaningless:
16714 *djgpp*)
16715 lt_prog_compiler_pic_GCJ=
16716 ;;
16717 *)
16718 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16719 ;;
16720 esac
16721
16722 #
16723 # Check to make sure the static flag actually works.
16724 #
16725 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16726 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16727 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16728 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16730 else
16731 lt_prog_compiler_static_works_GCJ=no
16732 save_LDFLAGS="$LDFLAGS"
16733 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16734 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16735 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16736 # The linker can only warn and ignore the option if not recognized
16737 # So say no if there are warnings
16738 if test -s conftest.err; then
16739 # Append any errors to the config.log.
16740 cat conftest.err 1>&5
16741 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16743 if diff conftest.exp conftest.er2 >/dev/null; then
16744 lt_prog_compiler_static_works_GCJ=yes
16745 fi
16746 else
16747 lt_prog_compiler_static_works_GCJ=yes
16748 fi
16749 fi
16750 $rm conftest*
16751 LDFLAGS="$save_LDFLAGS"
16752
16753 fi
16754 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16755 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16756
16757 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16758 :
16759 else
16760 lt_prog_compiler_static_GCJ=
16761 fi
16762
16763
16764 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16765 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16766 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 else
16769 lt_cv_prog_compiler_c_o_GCJ=no
16770 $rm -r conftest 2>/dev/null
16771 mkdir conftest
16772 cd conftest
16773 mkdir out
16774 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16775
16776 lt_compiler_flag="-o out/conftest2.$ac_objext"
16777 # Insert the option either (1) after the last *FLAGS variable, or
16778 # (2) before a word containing "conftest.", or (3) at the end.
16779 # Note that $ac_compile itself does not contain backslashes and begins
16780 # with a dollar sign (not a hyphen), so the echo should work correctly.
16781 lt_compile=`echo "$ac_compile" | $SED \
16782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16784 -e 's:$: $lt_compiler_flag:'`
16785 (eval echo "\"\$as_me:16785: $lt_compile\"" >&5)
16786 (eval "$lt_compile" 2>out/conftest.err)
16787 ac_status=$?
16788 cat out/conftest.err >&5
16789 echo "$as_me:16789: \$? = $ac_status" >&5
16790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16791 then
16792 # The compiler can only warn and ignore the option if not recognized
16793 # So say no if there are warnings
16794 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16797 lt_cv_prog_compiler_c_o_GCJ=yes
16798 fi
16799 fi
16800 chmod u+w . 2>&5
16801 $rm conftest*
16802 # SGI C++ compiler will create directory out/ii_files/ for
16803 # template instantiation
16804 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16805 $rm out/* && rmdir out
16806 cd ..
16807 rmdir conftest
16808 $rm conftest*
16809
16810 fi
16811 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16812 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16813
16814
16815 hard_links="nottested"
16816 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16817 # do not overwrite the value of need_locks provided by the user
16818 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16819 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16820 hard_links=yes
16821 $rm conftest*
16822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16823 touch conftest.a
16824 ln conftest.a conftest.b 2>&5 || hard_links=no
16825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16826 { echo "$as_me:$LINENO: result: $hard_links" >&5
16827 echo "${ECHO_T}$hard_links" >&6; }
16828 if test "$hard_links" = no; then
16829 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16830 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16831 need_locks=warn
16832 fi
16833 else
16834 need_locks=no
16835 fi
16836
16837 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16838 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16839
16840 runpath_var=
16841 allow_undefined_flag_GCJ=
16842 enable_shared_with_static_runtimes_GCJ=no
16843 archive_cmds_GCJ=
16844 archive_expsym_cmds_GCJ=
16845 old_archive_From_new_cmds_GCJ=
16846 old_archive_from_expsyms_cmds_GCJ=
16847 export_dynamic_flag_spec_GCJ=
16848 whole_archive_flag_spec_GCJ=
16849 thread_safe_flag_spec_GCJ=
16850 hardcode_libdir_flag_spec_GCJ=
16851 hardcode_libdir_flag_spec_ld_GCJ=
16852 hardcode_libdir_separator_GCJ=
16853 hardcode_direct_GCJ=no
16854 hardcode_minus_L_GCJ=no
16855 hardcode_shlibpath_var_GCJ=unsupported
16856 link_all_deplibs_GCJ=unknown
16857 hardcode_automatic_GCJ=no
16858 module_cmds_GCJ=
16859 module_expsym_cmds_GCJ=
16860 always_export_symbols_GCJ=no
16861 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16862 # include_expsyms should be a list of space-separated symbols to be *always*
16863 # included in the symbol list
16864 include_expsyms_GCJ=
16865 # exclude_expsyms can be an extended regexp of symbols to exclude
16866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16868 # as well as any symbol that contains `d'.
16869 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16871 # platforms (ab)use it in PIC code, but their linkers get confused if
16872 # the symbol is explicitly referenced. Since portable code cannot
16873 # rely on this symbol name, it's probably fine to never include it in
16874 # preloaded symbol tables.
16875 extract_expsyms_cmds=
16876 # Just being paranoid about ensuring that cc_basename is set.
16877 for cc_temp in $compiler""; do
16878 case $cc_temp in
16879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16881 \-*) ;;
16882 *) break;;
16883 esac
16884 done
16885 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16886
16887 case $host_os in
16888 cygwin* | mingw* | pw32*)
16889 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16890 # When not using gcc, we currently assume that we are using
16891 # Microsoft Visual C++.
16892 if test "$GCC" != yes; then
16893 with_gnu_ld=no
16894 fi
16895 ;;
16896 interix*)
16897 # we just hope/assume this is gcc and not c89 (= MSVC++)
16898 with_gnu_ld=yes
16899 ;;
16900 openbsd*)
16901 with_gnu_ld=no
16902 ;;
16903 esac
16904
16905 ld_shlibs_GCJ=yes
16906 if test "$with_gnu_ld" = yes; then
16907 # If archive_cmds runs LD, not CC, wlarc should be empty
16908 wlarc='${wl}'
16909
16910 # Set some defaults for GNU ld with shared library support. These
16911 # are reset later if shared libraries are not supported. Putting them
16912 # here allows them to be overridden if necessary.
16913 runpath_var=LD_RUN_PATH
16914 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16915 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16916 # ancient GNU ld didn't support --whole-archive et. al.
16917 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16918 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16919 else
16920 whole_archive_flag_spec_GCJ=
16921 fi
16922 supports_anon_versioning=no
16923 case `$LD -v 2>/dev/null` in
16924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16927 *\ 2.11.*) ;; # other 2.11 versions
16928 *) supports_anon_versioning=yes ;;
16929 esac
16930
16931 # See if GNU ld supports shared libraries.
16932 case $host_os in
16933 aix3* | aix4* | aix5*)
16934 # On AIX/PPC, the GNU linker is very broken
16935 if test "$host_cpu" != ia64; then
16936 ld_shlibs_GCJ=no
16937 cat <<EOF 1>&2
16938
16939 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16940 *** to be unable to reliably create shared libraries on AIX.
16941 *** Therefore, libtool is disabling shared libraries support. If you
16942 *** really care for shared libraries, you may want to modify your PATH
16943 *** so that a non-GNU linker is found, and then restart.
16944
16945 EOF
16946 fi
16947 ;;
16948
16949 amigaos*)
16950 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)'
16951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16952 hardcode_minus_L_GCJ=yes
16953
16954 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16955 # that the semantics of dynamic libraries on AmigaOS, at least up
16956 # to version 4, is to share data among multiple programs linked
16957 # with the same dynamic library. Since this doesn't match the
16958 # behavior of shared libraries on other platforms, we can't use
16959 # them.
16960 ld_shlibs_GCJ=no
16961 ;;
16962
16963 beos*)
16964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16965 allow_undefined_flag_GCJ=unsupported
16966 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16967 # support --undefined. This deserves some investigation. FIXME
16968 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16969 else
16970 ld_shlibs_GCJ=no
16971 fi
16972 ;;
16973
16974 cygwin* | mingw* | pw32*)
16975 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16976 # as there is no search path for DLLs.
16977 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16978 allow_undefined_flag_GCJ=unsupported
16979 always_export_symbols_GCJ=no
16980 enable_shared_with_static_runtimes_GCJ=yes
16981 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16982
16983 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16984 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16985 # If the export-symbols file already is a .def file (1st line
16986 # is EXPORTS), use it as is; otherwise, prepend...
16987 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16988 cp $export_symbols $output_objdir/$soname.def;
16989 else
16990 echo EXPORTS > $output_objdir/$soname.def;
16991 cat $export_symbols >> $output_objdir/$soname.def;
16992 fi~
16993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16994 else
16995 ld_shlibs_GCJ=no
16996 fi
16997 ;;
16998
16999 interix3*)
17000 hardcode_direct_GCJ=no
17001 hardcode_shlibpath_var_GCJ=no
17002 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17003 export_dynamic_flag_spec_GCJ='${wl}-E'
17004 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17005 # Instead, shared libraries are loaded at an image base (0x10000000 by
17006 # default) and relocated if they conflict, which is a slow very memory
17007 # consuming and fragmenting process. To avoid this, we pick a random,
17008 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17009 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17010 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'
17011 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'
17012 ;;
17013
17014 linux* | k*bsd*-gnu)
17015 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17016 tmp_addflag=
17017 case $cc_basename,$host_cpu in
17018 pgcc*) # Portland Group C compiler
17019 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'
17020 tmp_addflag=' $pic_flag'
17021 ;;
17022 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17023 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'
17024 tmp_addflag=' $pic_flag -Mnomain' ;;
17025 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17026 tmp_addflag=' -i_dynamic' ;;
17027 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17028 tmp_addflag=' -i_dynamic -nofor_main' ;;
17029 ifc* | ifort*) # Intel Fortran compiler
17030 tmp_addflag=' -nofor_main' ;;
17031 esac
17032 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17033
17034 if test $supports_anon_versioning = yes; then
17035 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17036 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17037 $echo "local: *; };" >> $output_objdir/$libname.ver~
17038 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17039 fi
17040 link_all_deplibs_GCJ=no
17041 else
17042 ld_shlibs_GCJ=no
17043 fi
17044 ;;
17045
17046 netbsd* | netbsdelf*-gnu)
17047 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17048 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17049 wlarc=
17050 else
17051 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17052 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17053 fi
17054 ;;
17055
17056 solaris*)
17057 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17058 ld_shlibs_GCJ=no
17059 cat <<EOF 1>&2
17060
17061 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17062 *** create shared libraries on Solaris systems. Therefore, libtool
17063 *** is disabling shared libraries support. We urge you to upgrade GNU
17064 *** binutils to release 2.9.1 or newer. Another option is to modify
17065 *** your PATH or compiler configuration so that the native linker is
17066 *** used, and then restart.
17067
17068 EOF
17069 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17070 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17071 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17072 else
17073 ld_shlibs_GCJ=no
17074 fi
17075 ;;
17076
17077 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17078 case `$LD -v 2>&1` in
17079 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17080 ld_shlibs_GCJ=no
17081 cat <<_LT_EOF 1>&2
17082
17083 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17084 *** reliably create shared libraries on SCO systems. Therefore, libtool
17085 *** is disabling shared libraries support. We urge you to upgrade GNU
17086 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17087 *** your PATH or compiler configuration so that the native linker is
17088 *** used, and then restart.
17089
17090 _LT_EOF
17091 ;;
17092 *)
17093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17094 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17095 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17096 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17097 else
17098 ld_shlibs_GCJ=no
17099 fi
17100 ;;
17101 esac
17102 ;;
17103
17104 sunos4*)
17105 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17106 wlarc=
17107 hardcode_direct_GCJ=yes
17108 hardcode_shlibpath_var_GCJ=no
17109 ;;
17110
17111 *)
17112 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17113 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17114 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17115 else
17116 ld_shlibs_GCJ=no
17117 fi
17118 ;;
17119 esac
17120
17121 if test "$ld_shlibs_GCJ" = no; then
17122 runpath_var=
17123 hardcode_libdir_flag_spec_GCJ=
17124 export_dynamic_flag_spec_GCJ=
17125 whole_archive_flag_spec_GCJ=
17126 fi
17127 else
17128 # PORTME fill in a description of your system's linker (not GNU ld)
17129 case $host_os in
17130 aix3*)
17131 allow_undefined_flag_GCJ=unsupported
17132 always_export_symbols_GCJ=yes
17133 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'
17134 # Note: this linker hardcodes the directories in LIBPATH if there
17135 # are no directories specified by -L.
17136 hardcode_minus_L_GCJ=yes
17137 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17138 # Neither direct hardcoding nor static linking is supported with a
17139 # broken collect2.
17140 hardcode_direct_GCJ=unsupported
17141 fi
17142 ;;
17143
17144 aix4* | aix5*)
17145 if test "$host_cpu" = ia64; then
17146 # On IA64, the linker does run time linking by default, so we don't
17147 # have to do anything special.
17148 aix_use_runtimelinking=no
17149 exp_sym_flag='-Bexport'
17150 no_entry_flag=""
17151 else
17152 # If we're using GNU nm, then we don't want the "-C" option.
17153 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17154 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17155 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'
17156 else
17157 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'
17158 fi
17159 aix_use_runtimelinking=no
17160
17161 # Test if we are trying to use run time linking or normal
17162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17163 # need to do runtime linking.
17164 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17165 for ld_flag in $LDFLAGS; do
17166 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17167 aix_use_runtimelinking=yes
17168 break
17169 fi
17170 done
17171 ;;
17172 esac
17173
17174 exp_sym_flag='-bexport'
17175 no_entry_flag='-bnoentry'
17176 fi
17177
17178 # When large executables or shared objects are built, AIX ld can
17179 # have problems creating the table of contents. If linking a library
17180 # or program results in "error TOC overflow" add -mminimal-toc to
17181 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17182 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17183
17184 archive_cmds_GCJ=''
17185 hardcode_direct_GCJ=yes
17186 hardcode_libdir_separator_GCJ=':'
17187 link_all_deplibs_GCJ=yes
17188
17189 if test "$GCC" = yes; then
17190 case $host_os in aix4.[012]|aix4.[012].*)
17191 # We only want to do this on AIX 4.2 and lower, the check
17192 # below for broken collect2 doesn't work under 4.3+
17193 collect2name=`${CC} -print-prog-name=collect2`
17194 if test -f "$collect2name" && \
17195 strings "$collect2name" | grep resolve_lib_name >/dev/null
17196 then
17197 # We have reworked collect2
17198 hardcode_direct_GCJ=yes
17199 else
17200 # We have old collect2
17201 hardcode_direct_GCJ=unsupported
17202 # It fails to find uninstalled libraries when the uninstalled
17203 # path is not listed in the libpath. Setting hardcode_minus_L
17204 # to unsupported forces relinking
17205 hardcode_minus_L_GCJ=yes
17206 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17207 hardcode_libdir_separator_GCJ=
17208 fi
17209 ;;
17210 esac
17211 shared_flag='-shared'
17212 if test "$aix_use_runtimelinking" = yes; then
17213 shared_flag="$shared_flag "'${wl}-G'
17214 fi
17215 else
17216 # not using gcc
17217 if test "$host_cpu" = ia64; then
17218 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17219 # chokes on -Wl,-G. The following line is correct:
17220 shared_flag='-G'
17221 else
17222 if test "$aix_use_runtimelinking" = yes; then
17223 shared_flag='${wl}-G'
17224 else
17225 shared_flag='${wl}-bM:SRE'
17226 fi
17227 fi
17228 fi
17229
17230 # It seems that -bexpall does not export symbols beginning with
17231 # underscore (_), so it is better to generate a list of symbols to export.
17232 always_export_symbols_GCJ=yes
17233 if test "$aix_use_runtimelinking" = yes; then
17234 # Warning - without using the other runtime loading flags (-brtl),
17235 # -berok will link without error, but may produce a broken library.
17236 allow_undefined_flag_GCJ='-berok'
17237 # Determine the default libpath from the value encoded in an empty executable.
17238 cat >conftest.$ac_ext <<_ACEOF
17239 /* confdefs.h. */
17240 _ACEOF
17241 cat confdefs.h >>conftest.$ac_ext
17242 cat >>conftest.$ac_ext <<_ACEOF
17243 /* end confdefs.h. */
17244
17245 int
17246 main ()
17247 {
17248
17249 ;
17250 return 0;
17251 }
17252 _ACEOF
17253 rm -f conftest.$ac_objext conftest$ac_exeext
17254 if { (ac_try="$ac_link"
17255 case "(($ac_try" in
17256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17257 *) ac_try_echo=$ac_try;;
17258 esac
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260 (eval "$ac_link") 2>conftest.er1
17261 ac_status=$?
17262 grep -v '^ *+' conftest.er1 >conftest.err
17263 rm -f conftest.er1
17264 cat conftest.err >&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); } && {
17267 test -z "$ac_c_werror_flag" ||
17268 test ! -s conftest.err
17269 } && test -s conftest$ac_exeext &&
17270 $as_test_x conftest$ac_exeext; then
17271
17272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17273 }'`
17274 # Check for a 64-bit object if we didn't find anything.
17275 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17276 }'`; fi
17277 else
17278 echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17280
17281
17282 fi
17283
17284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17285 conftest$ac_exeext conftest.$ac_ext
17286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17287
17288 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17289 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"
17290 else
17291 if test "$host_cpu" = ia64; then
17292 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17293 allow_undefined_flag_GCJ="-z nodefs"
17294 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"
17295 else
17296 # Determine the default libpath from the value encoded in an empty executable.
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h. */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303
17304 int
17305 main ()
17306 {
17307
17308 ;
17309 return 0;
17310 }
17311 _ACEOF
17312 rm -f conftest.$ac_objext conftest$ac_exeext
17313 if { (ac_try="$ac_link"
17314 case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17317 esac
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_link") 2>conftest.er1
17320 ac_status=$?
17321 grep -v '^ *+' conftest.er1 >conftest.err
17322 rm -f conftest.er1
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } && {
17326 test -z "$ac_c_werror_flag" ||
17327 test ! -s conftest.err
17328 } && test -s conftest$ac_exeext &&
17329 $as_test_x conftest$ac_exeext; then
17330
17331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17332 }'`
17333 # Check for a 64-bit object if we didn't find anything.
17334 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17335 }'`; fi
17336 else
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340
17341 fi
17342
17343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17344 conftest$ac_exeext conftest.$ac_ext
17345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17346
17347 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17348 # Warning - without using the other run time loading flags,
17349 # -berok will link without error, but may produce a broken library.
17350 no_undefined_flag_GCJ=' ${wl}-bernotok'
17351 allow_undefined_flag_GCJ=' ${wl}-berok'
17352 # Exported symbols can be pulled into shared objects from archives
17353 whole_archive_flag_spec_GCJ='$convenience'
17354 archive_cmds_need_lc_GCJ=yes
17355 # This is similar to how AIX traditionally builds its shared libraries.
17356 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'
17357 fi
17358 fi
17359 ;;
17360
17361 amigaos*)
17362 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)'
17363 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17364 hardcode_minus_L_GCJ=yes
17365 # see comment about different semantics on the GNU ld section
17366 ld_shlibs_GCJ=no
17367 ;;
17368
17369 bsdi[45]*)
17370 export_dynamic_flag_spec_GCJ=-rdynamic
17371 ;;
17372
17373 cygwin* | mingw* | pw32*)
17374 # When not using gcc, we currently assume that we are using
17375 # Microsoft Visual C++.
17376 # hardcode_libdir_flag_spec is actually meaningless, as there is
17377 # no search path for DLLs.
17378 hardcode_libdir_flag_spec_GCJ=' '
17379 allow_undefined_flag_GCJ=unsupported
17380 # Tell ltmain to make .lib files, not .a files.
17381 libext=lib
17382 # Tell ltmain to make .dll files, not .so files.
17383 shrext_cmds=".dll"
17384 # FIXME: Setting linknames here is a bad hack.
17385 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17386 # The linker will automatically build a .lib file if we build a DLL.
17387 old_archive_From_new_cmds_GCJ='true'
17388 # FIXME: Should let the user specify the lib program.
17389 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17390 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17391 enable_shared_with_static_runtimes_GCJ=yes
17392 ;;
17393
17394 darwin* | rhapsody*)
17395 case $host_os in
17396 rhapsody* | darwin1.[012])
17397 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17398 ;;
17399 *) # Darwin 1.3 on
17400 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17401 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17402 else
17403 case ${MACOSX_DEPLOYMENT_TARGET} in
17404 10.[012])
17405 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17406 ;;
17407 10.*)
17408 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17409 ;;
17410 esac
17411 fi
17412 ;;
17413 esac
17414 archive_cmds_need_lc_GCJ=no
17415 hardcode_direct_GCJ=no
17416 hardcode_automatic_GCJ=yes
17417 hardcode_shlibpath_var_GCJ=unsupported
17418 whole_archive_flag_spec_GCJ=''
17419 link_all_deplibs_GCJ=yes
17420 if test "$GCC" = yes ; then
17421 output_verbose_link_cmd='echo'
17422 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17423 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17424 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17425 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}'
17426 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}'
17427 else
17428 case $cc_basename in
17429 xlc*)
17430 output_verbose_link_cmd='echo'
17431 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17432 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17434 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17435 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}'
17436 ;;
17437 *)
17438 ld_shlibs_GCJ=no
17439 ;;
17440 esac
17441 fi
17442 ;;
17443
17444 dgux*)
17445 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17446 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17447 hardcode_shlibpath_var_GCJ=no
17448 ;;
17449
17450 freebsd1*)
17451 ld_shlibs_GCJ=no
17452 ;;
17453
17454 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17455 # support. Future versions do this automatically, but an explicit c++rt0.o
17456 # does not break anything, and helps significantly (at the cost of a little
17457 # extra space).
17458 freebsd2.2*)
17459 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17460 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17461 hardcode_direct_GCJ=yes
17462 hardcode_shlibpath_var_GCJ=no
17463 ;;
17464
17465 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17466 freebsd2*)
17467 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17468 hardcode_direct_GCJ=yes
17469 hardcode_minus_L_GCJ=yes
17470 hardcode_shlibpath_var_GCJ=no
17471 ;;
17472
17473 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17474 freebsd* | dragonfly*)
17475 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17476 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17477 hardcode_direct_GCJ=yes
17478 hardcode_shlibpath_var_GCJ=no
17479 ;;
17480
17481 hpux9*)
17482 if test "$GCC" = yes; then
17483 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'
17484 else
17485 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'
17486 fi
17487 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17488 hardcode_libdir_separator_GCJ=:
17489 hardcode_direct_GCJ=yes
17490
17491 # hardcode_minus_L: Not really in the search PATH,
17492 # but as the default location of the library.
17493 hardcode_minus_L_GCJ=yes
17494 export_dynamic_flag_spec_GCJ='${wl}-E'
17495 ;;
17496
17497 hpux10*)
17498 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17499 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17500 else
17501 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17502 fi
17503 if test "$with_gnu_ld" = no; then
17504 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17505 hardcode_libdir_separator_GCJ=:
17506
17507 hardcode_direct_GCJ=yes
17508 export_dynamic_flag_spec_GCJ='${wl}-E'
17509
17510 # hardcode_minus_L: Not really in the search PATH,
17511 # but as the default location of the library.
17512 hardcode_minus_L_GCJ=yes
17513 fi
17514 ;;
17515
17516 hpux11*)
17517 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17518 case $host_cpu in
17519 hppa*64*)
17520 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17521 ;;
17522 ia64*)
17523 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17524 ;;
17525 *)
17526 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17527 ;;
17528 esac
17529 else
17530 case $host_cpu in
17531 hppa*64*)
17532 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17533 ;;
17534 ia64*)
17535 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17536 ;;
17537 *)
17538 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17539 ;;
17540 esac
17541 fi
17542 if test "$with_gnu_ld" = no; then
17543 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17544 hardcode_libdir_separator_GCJ=:
17545
17546 case $host_cpu in
17547 hppa*64*|ia64*)
17548 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17549 hardcode_direct_GCJ=no
17550 hardcode_shlibpath_var_GCJ=no
17551 ;;
17552 *)
17553 hardcode_direct_GCJ=yes
17554 export_dynamic_flag_spec_GCJ='${wl}-E'
17555
17556 # hardcode_minus_L: Not really in the search PATH,
17557 # but as the default location of the library.
17558 hardcode_minus_L_GCJ=yes
17559 ;;
17560 esac
17561 fi
17562 ;;
17563
17564 irix5* | irix6* | nonstopux*)
17565 if test "$GCC" = yes; then
17566 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'
17567 else
17568 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'
17569 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17570 fi
17571 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17572 hardcode_libdir_separator_GCJ=:
17573 link_all_deplibs_GCJ=yes
17574 ;;
17575
17576 netbsd* | netbsdelf*-gnu)
17577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17578 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17579 else
17580 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17581 fi
17582 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17583 hardcode_direct_GCJ=yes
17584 hardcode_shlibpath_var_GCJ=no
17585 ;;
17586
17587 newsos6)
17588 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17589 hardcode_direct_GCJ=yes
17590 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17591 hardcode_libdir_separator_GCJ=:
17592 hardcode_shlibpath_var_GCJ=no
17593 ;;
17594
17595 openbsd*)
17596 hardcode_direct_GCJ=yes
17597 hardcode_shlibpath_var_GCJ=no
17598 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17599 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17600 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17601 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17602 export_dynamic_flag_spec_GCJ='${wl}-E'
17603 else
17604 case $host_os in
17605 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17606 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17607 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17608 ;;
17609 *)
17610 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17611 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17612 ;;
17613 esac
17614 fi
17615 ;;
17616
17617 os2*)
17618 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17619 hardcode_minus_L_GCJ=yes
17620 allow_undefined_flag_GCJ=unsupported
17621 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'
17622 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17623 ;;
17624
17625 osf3*)
17626 if test "$GCC" = yes; then
17627 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17628 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'
17629 else
17630 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17631 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'
17632 fi
17633 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17634 hardcode_libdir_separator_GCJ=:
17635 ;;
17636
17637 osf4* | osf5*) # as osf3* with the addition of -msym flag
17638 if test "$GCC" = yes; then
17639 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17640 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'
17641 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17642 else
17643 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17644 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'
17645 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~
17646 $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'
17647
17648 # Both c and cxx compiler support -rpath directly
17649 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17650 fi
17651 hardcode_libdir_separator_GCJ=:
17652 ;;
17653
17654 solaris*)
17655 no_undefined_flag_GCJ=' -z text'
17656 if test "$GCC" = yes; then
17657 wlarc='${wl}'
17658 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17659 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17660 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17661 else
17662 wlarc=''
17663 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17664 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17665 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17666 fi
17667 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17668 hardcode_shlibpath_var_GCJ=no
17669 case $host_os in
17670 solaris2.[0-5] | solaris2.[0-5].*) ;;
17671 *)
17672 # The compiler driver will combine linker options so we
17673 # cannot just pass the convience library names through
17674 # without $wl, iff we do not link with $LD.
17675 # Luckily, gcc supports the same syntax we need for Sun Studio.
17676 # Supported since Solaris 2.6 (maybe 2.5.1?)
17677 case $wlarc in
17678 '')
17679 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17680 *)
17681 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17682 esac ;;
17683 esac
17684 link_all_deplibs_GCJ=yes
17685 ;;
17686
17687 sunos4*)
17688 if test "x$host_vendor" = xsequent; then
17689 # Use $CC to link under sequent, because it throws in some extra .o
17690 # files that make .init and .fini sections work.
17691 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17692 else
17693 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17694 fi
17695 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17696 hardcode_direct_GCJ=yes
17697 hardcode_minus_L_GCJ=yes
17698 hardcode_shlibpath_var_GCJ=no
17699 ;;
17700
17701 sysv4)
17702 case $host_vendor in
17703 sni)
17704 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17705 hardcode_direct_GCJ=yes # is this really true???
17706 ;;
17707 siemens)
17708 ## LD is ld it makes a PLAMLIB
17709 ## CC just makes a GrossModule.
17710 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17711 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17712 hardcode_direct_GCJ=no
17713 ;;
17714 motorola)
17715 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17716 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17717 ;;
17718 esac
17719 runpath_var='LD_RUN_PATH'
17720 hardcode_shlibpath_var_GCJ=no
17721 ;;
17722
17723 sysv4.3*)
17724 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17725 hardcode_shlibpath_var_GCJ=no
17726 export_dynamic_flag_spec_GCJ='-Bexport'
17727 ;;
17728
17729 sysv4*MP*)
17730 if test -d /usr/nec; then
17731 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17732 hardcode_shlibpath_var_GCJ=no
17733 runpath_var=LD_RUN_PATH
17734 hardcode_runpath_var=yes
17735 ld_shlibs_GCJ=yes
17736 fi
17737 ;;
17738
17739 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17740 no_undefined_flag_GCJ='${wl}-z,text'
17741 archive_cmds_need_lc_GCJ=no
17742 hardcode_shlibpath_var_GCJ=no
17743 runpath_var='LD_RUN_PATH'
17744
17745 if test "$GCC" = yes; then
17746 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17747 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17748 else
17749 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17750 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17751 fi
17752 ;;
17753
17754 sysv5* | sco3.2v5* | sco5v6*)
17755 # Note: We can NOT use -z defs as we might desire, because we do not
17756 # link with -lc, and that would cause any symbols used from libc to
17757 # always be unresolved, which means just about no library would
17758 # ever link correctly. If we're not using GNU ld we use -z text
17759 # though, which does catch some bad symbols but isn't as heavy-handed
17760 # as -z defs.
17761 no_undefined_flag_GCJ='${wl}-z,text'
17762 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17763 archive_cmds_need_lc_GCJ=no
17764 hardcode_shlibpath_var_GCJ=no
17765 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17766 hardcode_libdir_separator_GCJ=':'
17767 link_all_deplibs_GCJ=yes
17768 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17769 runpath_var='LD_RUN_PATH'
17770
17771 if test "$GCC" = yes; then
17772 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17773 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17774 else
17775 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17776 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17777 fi
17778 ;;
17779
17780 uts4*)
17781 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17782 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17783 hardcode_shlibpath_var_GCJ=no
17784 ;;
17785
17786 *)
17787 ld_shlibs_GCJ=no
17788 ;;
17789 esac
17790 fi
17791
17792 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17793 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17794 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17795
17796 #
17797 # Do we need to explicitly link libc?
17798 #
17799 case "x$archive_cmds_need_lc_GCJ" in
17800 x|xyes)
17801 # Assume -lc should be added
17802 archive_cmds_need_lc_GCJ=yes
17803
17804 if test "$enable_shared" = yes && test "$GCC" = yes; then
17805 case $archive_cmds_GCJ in
17806 *'~'*)
17807 # FIXME: we may have to deal with multi-command sequences.
17808 ;;
17809 '$CC '*)
17810 # Test whether the compiler implicitly links with -lc since on some
17811 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17812 # to ld, don't add -lc before -lgcc.
17813 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17814 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17815 $rm conftest*
17816 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17817
17818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17819 (eval $ac_compile) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } 2>conftest.err; then
17823 soname=conftest
17824 lib=conftest
17825 libobjs=conftest.$ac_objext
17826 deplibs=
17827 wl=$lt_prog_compiler_wl_GCJ
17828 pic_flag=$lt_prog_compiler_pic_GCJ
17829 compiler_flags=-v
17830 linker_flags=-v
17831 verstring=
17832 output_objdir=.
17833 libname=conftest
17834 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17835 allow_undefined_flag_GCJ=
17836 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17837 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }
17841 then
17842 archive_cmds_need_lc_GCJ=no
17843 else
17844 archive_cmds_need_lc_GCJ=yes
17845 fi
17846 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17847 else
17848 cat conftest.err 1>&5
17849 fi
17850 $rm conftest*
17851 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17852 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17853 ;;
17854 esac
17855 fi
17856 ;;
17857 esac
17858
17859 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17861 library_names_spec=
17862 libname_spec='lib$name'
17863 soname_spec=
17864 shrext_cmds=".so"
17865 postinstall_cmds=
17866 postuninstall_cmds=
17867 finish_cmds=
17868 finish_eval=
17869 shlibpath_var=
17870 shlibpath_overrides_runpath=unknown
17871 version_type=none
17872 dynamic_linker="$host_os ld.so"
17873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17874 if test "$GCC" = yes; then
17875 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17876 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17877 # if the path contains ";" then we assume it to be the separator
17878 # otherwise default to the standard path separator (i.e. ":") - it is
17879 # assumed that no part of a normal pathname contains ";" but that should
17880 # okay in the real world where ";" in dirpaths is itself problematic.
17881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17882 else
17883 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17884 fi
17885 else
17886 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17887 fi
17888 need_lib_prefix=unknown
17889 hardcode_into_libs=no
17890
17891 # when you set need_version to no, make sure it does not cause -set_version
17892 # flags to be left without arguments
17893 need_version=unknown
17894
17895 case $host_os in
17896 aix3*)
17897 version_type=linux
17898 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17899 shlibpath_var=LIBPATH
17900
17901 # AIX 3 has no versioning support, so we append a major version to the name.
17902 soname_spec='${libname}${release}${shared_ext}$major'
17903 ;;
17904
17905 aix4* | aix5*)
17906 version_type=linux
17907 need_lib_prefix=no
17908 need_version=no
17909 hardcode_into_libs=yes
17910 if test "$host_cpu" = ia64; then
17911 # AIX 5 supports IA64
17912 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 else
17915 # With GCC up to 2.95.x, collect2 would create an import file
17916 # for dependence libraries. The import file would start with
17917 # the line `#! .'. This would cause the generated library to
17918 # depend on `.', always an invalid library. This was fixed in
17919 # development snapshots of GCC prior to 3.0.
17920 case $host_os in
17921 aix4 | aix4.[01] | aix4.[01].*)
17922 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17923 echo ' yes '
17924 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17925 :
17926 else
17927 can_build_shared=no
17928 fi
17929 ;;
17930 esac
17931 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17932 # soname into executable. Probably we can add versioning support to
17933 # collect2, so additional links can be useful in future.
17934 if test "$aix_use_runtimelinking" = yes; then
17935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17936 # instead of lib<name>.a to let people know that these are not
17937 # typical AIX shared libraries.
17938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17939 else
17940 # We preserve .a as extension for shared libraries through AIX4.2
17941 # and later when we are not doing run time linking.
17942 library_names_spec='${libname}${release}.a $libname.a'
17943 soname_spec='${libname}${release}${shared_ext}$major'
17944 fi
17945 shlibpath_var=LIBPATH
17946 fi
17947 ;;
17948
17949 amigaos*)
17950 library_names_spec='$libname.ixlibrary $libname.a'
17951 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17952 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'
17953 ;;
17954
17955 beos*)
17956 library_names_spec='${libname}${shared_ext}'
17957 dynamic_linker="$host_os ld.so"
17958 shlibpath_var=LIBRARY_PATH
17959 ;;
17960
17961 bsdi[45]*)
17962 version_type=linux
17963 need_version=no
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 soname_spec='${libname}${release}${shared_ext}$major'
17966 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17967 shlibpath_var=LD_LIBRARY_PATH
17968 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17969 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17970 # the default ld.so.conf also contains /usr/contrib/lib and
17971 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17972 # libtool to hard-code these into programs
17973 ;;
17974
17975 cygwin* | mingw* | pw32*)
17976 version_type=windows
17977 shrext_cmds=".dll"
17978 need_version=no
17979 need_lib_prefix=no
17980
17981 case $GCC,$host_os in
17982 yes,cygwin* | yes,mingw* | yes,pw32*)
17983 library_names_spec='$libname.dll.a'
17984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17985 postinstall_cmds='base_file=`basename \${file}`~
17986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17987 dldir=$destdir/`dirname \$dlpath`~
17988 test -d \$dldir || mkdir -p \$dldir~
17989 $install_prog $dir/$dlname \$dldir/$dlname~
17990 chmod a+x \$dldir/$dlname'
17991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17992 dlpath=$dir/\$dldll~
17993 $rm \$dlpath'
17994 shlibpath_overrides_runpath=yes
17995
17996 case $host_os in
17997 cygwin*)
17998 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18000 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18001 ;;
18002 mingw*)
18003 # MinGW DLLs use traditional 'lib' prefix
18004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18006 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18007 # It is most probably a Windows format PATH printed by
18008 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18009 # path with ; separators, and with drive letters. We can handle the
18010 # drive letters (cygwin fileutils understands them), so leave them,
18011 # especially as we might pass files found there to a mingw objdump,
18012 # which wouldn't understand a cygwinified path. Ahh.
18013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18014 else
18015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18016 fi
18017 ;;
18018 pw32*)
18019 # pw32 DLLs use 'pw' prefix rather than 'lib'
18020 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18021 ;;
18022 esac
18023 ;;
18024
18025 *)
18026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18027 ;;
18028 esac
18029 dynamic_linker='Win32 ld.exe'
18030 # FIXME: first we should search . and the directory the executable is in
18031 shlibpath_var=PATH
18032 ;;
18033
18034 darwin* | rhapsody*)
18035 dynamic_linker="$host_os dyld"
18036 version_type=darwin
18037 need_lib_prefix=no
18038 need_version=no
18039 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18040 soname_spec='${libname}${release}${major}$shared_ext'
18041 shlibpath_overrides_runpath=yes
18042 shlibpath_var=DYLD_LIBRARY_PATH
18043 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18044 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18045 if test "$GCC" = yes; then
18046 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18047 else
18048 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18049 fi
18050 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18051 ;;
18052
18053 dgux*)
18054 version_type=linux
18055 need_lib_prefix=no
18056 need_version=no
18057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18058 soname_spec='${libname}${release}${shared_ext}$major'
18059 shlibpath_var=LD_LIBRARY_PATH
18060 ;;
18061
18062 freebsd1*)
18063 dynamic_linker=no
18064 ;;
18065
18066 freebsd* | dragonfly*)
18067 # DragonFly does not have aout. When/if they implement a new
18068 # versioning mechanism, adjust this.
18069 if test -x /usr/bin/objformat; then
18070 objformat=`/usr/bin/objformat`
18071 else
18072 case $host_os in
18073 freebsd[123]*) objformat=aout ;;
18074 *) objformat=elf ;;
18075 esac
18076 fi
18077 version_type=freebsd-$objformat
18078 case $version_type in
18079 freebsd-elf*)
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18081 need_version=no
18082 need_lib_prefix=no
18083 ;;
18084 freebsd-*)
18085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18086 need_version=yes
18087 ;;
18088 esac
18089 shlibpath_var=LD_LIBRARY_PATH
18090 case $host_os in
18091 freebsd2*)
18092 shlibpath_overrides_runpath=yes
18093 ;;
18094 freebsd3.[01]* | freebsdelf3.[01]*)
18095 shlibpath_overrides_runpath=yes
18096 hardcode_into_libs=yes
18097 ;;
18098 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18099 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18100 shlibpath_overrides_runpath=no
18101 hardcode_into_libs=yes
18102 ;;
18103 freebsd*) # from 4.6 on
18104 shlibpath_overrides_runpath=yes
18105 hardcode_into_libs=yes
18106 ;;
18107 esac
18108 ;;
18109
18110 gnu*)
18111 version_type=linux
18112 need_lib_prefix=no
18113 need_version=no
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18115 soname_spec='${libname}${release}${shared_ext}$major'
18116 shlibpath_var=LD_LIBRARY_PATH
18117 hardcode_into_libs=yes
18118 ;;
18119
18120 hpux9* | hpux10* | hpux11*)
18121 # Give a soname corresponding to the major version so that dld.sl refuses to
18122 # link against other versions.
18123 version_type=sunos
18124 need_lib_prefix=no
18125 need_version=no
18126 case $host_cpu in
18127 ia64*)
18128 shrext_cmds='.so'
18129 hardcode_into_libs=yes
18130 dynamic_linker="$host_os dld.so"
18131 shlibpath_var=LD_LIBRARY_PATH
18132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18134 soname_spec='${libname}${release}${shared_ext}$major'
18135 if test "X$HPUX_IA64_MODE" = X32; then
18136 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18137 else
18138 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18139 fi
18140 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18141 ;;
18142 hppa*64*)
18143 shrext_cmds='.sl'
18144 hardcode_into_libs=yes
18145 dynamic_linker="$host_os dld.sl"
18146 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18152 ;;
18153 *)
18154 shrext_cmds='.sl'
18155 dynamic_linker="$host_os dld.sl"
18156 shlibpath_var=SHLIB_PATH
18157 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18159 soname_spec='${libname}${release}${shared_ext}$major'
18160 ;;
18161 esac
18162 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18163 postinstall_cmds='chmod 555 $lib'
18164 ;;
18165
18166 interix3*)
18167 version_type=linux
18168 need_lib_prefix=no
18169 need_version=no
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18171 soname_spec='${libname}${release}${shared_ext}$major'
18172 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18173 shlibpath_var=LD_LIBRARY_PATH
18174 shlibpath_overrides_runpath=no
18175 hardcode_into_libs=yes
18176 ;;
18177
18178 irix5* | irix6* | nonstopux*)
18179 case $host_os in
18180 nonstopux*) version_type=nonstopux ;;
18181 *)
18182 if test "$lt_cv_prog_gnu_ld" = yes; then
18183 version_type=linux
18184 else
18185 version_type=irix
18186 fi ;;
18187 esac
18188 need_lib_prefix=no
18189 need_version=no
18190 soname_spec='${libname}${release}${shared_ext}$major'
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18192 case $host_os in
18193 irix5* | nonstopux*)
18194 libsuff= shlibsuff=
18195 ;;
18196 *)
18197 case $LD in # libtool.m4 will add one of these switches to LD
18198 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18199 libsuff= shlibsuff= libmagic=32-bit;;
18200 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18201 libsuff=32 shlibsuff=N32 libmagic=N32;;
18202 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18203 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18204 *) libsuff= shlibsuff= libmagic=never-match;;
18205 esac
18206 ;;
18207 esac
18208 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18209 shlibpath_overrides_runpath=no
18210 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18211 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18212 hardcode_into_libs=yes
18213 ;;
18214
18215 # No shared lib support for Linux oldld, aout, or coff.
18216 linux*oldld* | linux*aout* | linux*coff*)
18217 dynamic_linker=no
18218 ;;
18219
18220 # This must be Linux ELF.
18221 linux* | k*bsd*-gnu)
18222 version_type=linux
18223 need_lib_prefix=no
18224 need_version=no
18225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18226 soname_spec='${libname}${release}${shared_ext}$major'
18227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18228 shlibpath_var=LD_LIBRARY_PATH
18229 shlibpath_overrides_runpath=no
18230 # This implies no fast_install, which is unacceptable.
18231 # Some rework will be needed to allow for fast_install
18232 # before this can be enabled.
18233 hardcode_into_libs=yes
18234
18235 # Append ld.so.conf contents to the search path
18236 if test -f /etc/ld.so.conf; then
18237 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18238 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18239 fi
18240
18241 # We used to test for /lib/ld.so.1 and disable shared libraries on
18242 # powerpc, because MkLinux only supported shared libraries with the
18243 # GNU dynamic linker. Since this was broken with cross compilers,
18244 # most powerpc-linux boxes support dynamic linking these days and
18245 # people can always --disable-shared, the test was removed, and we
18246 # assume the GNU/Linux dynamic linker is in use.
18247 dynamic_linker='GNU/Linux ld.so'
18248 ;;
18249
18250 netbsdelf*-gnu)
18251 version_type=linux
18252 need_lib_prefix=no
18253 need_version=no
18254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18255 soname_spec='${libname}${release}${shared_ext}$major'
18256 shlibpath_var=LD_LIBRARY_PATH
18257 shlibpath_overrides_runpath=no
18258 hardcode_into_libs=yes
18259 dynamic_linker='NetBSD ld.elf_so'
18260 ;;
18261
18262 netbsd*)
18263 version_type=sunos
18264 need_lib_prefix=no
18265 need_version=no
18266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18269 dynamic_linker='NetBSD (a.out) ld.so'
18270 else
18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18272 soname_spec='${libname}${release}${shared_ext}$major'
18273 dynamic_linker='NetBSD ld.elf_so'
18274 fi
18275 shlibpath_var=LD_LIBRARY_PATH
18276 shlibpath_overrides_runpath=yes
18277 hardcode_into_libs=yes
18278 ;;
18279
18280 newsos6)
18281 version_type=linux
18282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18283 shlibpath_var=LD_LIBRARY_PATH
18284 shlibpath_overrides_runpath=yes
18285 ;;
18286
18287 nto-qnx*)
18288 version_type=linux
18289 need_lib_prefix=no
18290 need_version=no
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18292 soname_spec='${libname}${release}${shared_ext}$major'
18293 shlibpath_var=LD_LIBRARY_PATH
18294 shlibpath_overrides_runpath=yes
18295 ;;
18296
18297 openbsd*)
18298 version_type=sunos
18299 sys_lib_dlsearch_path_spec="/usr/lib"
18300 need_lib_prefix=no
18301 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18302 case $host_os in
18303 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18304 *) need_version=no ;;
18305 esac
18306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18308 shlibpath_var=LD_LIBRARY_PATH
18309 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18310 case $host_os in
18311 openbsd2.[89] | openbsd2.[89].*)
18312 shlibpath_overrides_runpath=no
18313 ;;
18314 *)
18315 shlibpath_overrides_runpath=yes
18316 ;;
18317 esac
18318 else
18319 shlibpath_overrides_runpath=yes
18320 fi
18321 ;;
18322
18323 os2*)
18324 libname_spec='$name'
18325 shrext_cmds=".dll"
18326 need_lib_prefix=no
18327 library_names_spec='$libname${shared_ext} $libname.a'
18328 dynamic_linker='OS/2 ld.exe'
18329 shlibpath_var=LIBPATH
18330 ;;
18331
18332 osf3* | osf4* | osf5*)
18333 version_type=osf
18334 need_lib_prefix=no
18335 need_version=no
18336 soname_spec='${libname}${release}${shared_ext}$major'
18337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18338 shlibpath_var=LD_LIBRARY_PATH
18339 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18340 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18341 ;;
18342
18343 solaris*)
18344 version_type=linux
18345 need_lib_prefix=no
18346 need_version=no
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18348 soname_spec='${libname}${release}${shared_ext}$major'
18349 shlibpath_var=LD_LIBRARY_PATH
18350 shlibpath_overrides_runpath=yes
18351 hardcode_into_libs=yes
18352 # ldd complains unless libraries are executable
18353 postinstall_cmds='chmod +x $lib'
18354 ;;
18355
18356 sunos4*)
18357 version_type=sunos
18358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18359 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18360 shlibpath_var=LD_LIBRARY_PATH
18361 shlibpath_overrides_runpath=yes
18362 if test "$with_gnu_ld" = yes; then
18363 need_lib_prefix=no
18364 fi
18365 need_version=yes
18366 ;;
18367
18368 sysv4 | sysv4.3*)
18369 version_type=linux
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371 soname_spec='${libname}${release}${shared_ext}$major'
18372 shlibpath_var=LD_LIBRARY_PATH
18373 case $host_vendor in
18374 sni)
18375 shlibpath_overrides_runpath=no
18376 need_lib_prefix=no
18377 export_dynamic_flag_spec='${wl}-Blargedynsym'
18378 runpath_var=LD_RUN_PATH
18379 ;;
18380 siemens)
18381 need_lib_prefix=no
18382 ;;
18383 motorola)
18384 need_lib_prefix=no
18385 need_version=no
18386 shlibpath_overrides_runpath=no
18387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18388 ;;
18389 esac
18390 ;;
18391
18392 sysv4*MP*)
18393 if test -d /usr/nec ;then
18394 version_type=linux
18395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18396 soname_spec='$libname${shared_ext}.$major'
18397 shlibpath_var=LD_LIBRARY_PATH
18398 fi
18399 ;;
18400
18401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18402 version_type=freebsd-elf
18403 need_lib_prefix=no
18404 need_version=no
18405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18406 soname_spec='${libname}${release}${shared_ext}$major'
18407 shlibpath_var=LD_LIBRARY_PATH
18408 hardcode_into_libs=yes
18409 if test "$with_gnu_ld" = yes; then
18410 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18411 shlibpath_overrides_runpath=no
18412 else
18413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18414 shlibpath_overrides_runpath=yes
18415 case $host_os in
18416 sco3.2v5*)
18417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18418 ;;
18419 esac
18420 fi
18421 sys_lib_dlsearch_path_spec='/usr/lib'
18422 ;;
18423
18424 uts4*)
18425 version_type=linux
18426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18427 soname_spec='${libname}${release}${shared_ext}$major'
18428 shlibpath_var=LD_LIBRARY_PATH
18429 ;;
18430
18431 *)
18432 dynamic_linker=no
18433 ;;
18434 esac
18435 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18436 echo "${ECHO_T}$dynamic_linker" >&6; }
18437 test "$dynamic_linker" = no && can_build_shared=no
18438
18439 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18440 if test "$GCC" = yes; then
18441 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18442 fi
18443
18444 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18445 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18446 hardcode_action_GCJ=
18447 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18448 test -n "$runpath_var_GCJ" || \
18449 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18450
18451 # We can hardcode non-existant directories.
18452 if test "$hardcode_direct_GCJ" != no &&
18453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18454 # have to relink, otherwise we might link with an installed library
18455 # when we should be linking with a yet-to-be-installed one
18456 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18457 test "$hardcode_minus_L_GCJ" != no; then
18458 # Linking always hardcodes the temporary library directory.
18459 hardcode_action_GCJ=relink
18460 else
18461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18462 hardcode_action_GCJ=immediate
18463 fi
18464 else
18465 # We cannot hardcode anything, or else we can only hardcode existing
18466 # directories.
18467 hardcode_action_GCJ=unsupported
18468 fi
18469 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18470 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18471
18472 if test "$hardcode_action_GCJ" = relink; then
18473 # Fast installation is not supported
18474 enable_fast_install=no
18475 elif test "$shlibpath_overrides_runpath" = yes ||
18476 test "$enable_shared" = no; then
18477 # Fast installation is not necessary
18478 enable_fast_install=needless
18479 fi
18480
18481
18482 # The else clause should only fire when bootstrapping the
18483 # libtool distribution, otherwise you forgot to ship ltmain.sh
18484 # with your package, and you will get complaints that there are
18485 # no rules to generate ltmain.sh.
18486 if test -f "$ltmain"; then
18487 # See if we are running on zsh, and set the options which allow our commands through
18488 # without removal of \ escapes.
18489 if test -n "${ZSH_VERSION+set}" ; then
18490 setopt NO_GLOB_SUBST
18491 fi
18492 # Now quote all the things that may contain metacharacters while being
18493 # careful not to overquote the AC_SUBSTed values. We take copies of the
18494 # variables and quote the copies for generation of the libtool script.
18495 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18496 SED SHELL STRIP \
18497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18499 deplibs_check_method reload_flag reload_cmds need_locks \
18500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18501 lt_cv_sys_global_symbol_to_c_name_address \
18502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18503 old_postinstall_cmds old_postuninstall_cmds \
18504 compiler_GCJ \
18505 CC_GCJ \
18506 LD_GCJ \
18507 lt_prog_compiler_wl_GCJ \
18508 lt_prog_compiler_pic_GCJ \
18509 lt_prog_compiler_static_GCJ \
18510 lt_prog_compiler_no_builtin_flag_GCJ \
18511 export_dynamic_flag_spec_GCJ \
18512 thread_safe_flag_spec_GCJ \
18513 whole_archive_flag_spec_GCJ \
18514 enable_shared_with_static_runtimes_GCJ \
18515 old_archive_cmds_GCJ \
18516 old_archive_from_new_cmds_GCJ \
18517 predep_objects_GCJ \
18518 postdep_objects_GCJ \
18519 predeps_GCJ \
18520 postdeps_GCJ \
18521 compiler_lib_search_path_GCJ \
18522 archive_cmds_GCJ \
18523 archive_expsym_cmds_GCJ \
18524 postinstall_cmds_GCJ \
18525 postuninstall_cmds_GCJ \
18526 old_archive_from_expsyms_cmds_GCJ \
18527 allow_undefined_flag_GCJ \
18528 no_undefined_flag_GCJ \
18529 export_symbols_cmds_GCJ \
18530 hardcode_libdir_flag_spec_GCJ \
18531 hardcode_libdir_flag_spec_ld_GCJ \
18532 hardcode_libdir_separator_GCJ \
18533 hardcode_automatic_GCJ \
18534 module_cmds_GCJ \
18535 module_expsym_cmds_GCJ \
18536 lt_cv_prog_compiler_c_o_GCJ \
18537 exclude_expsyms_GCJ \
18538 include_expsyms_GCJ; do
18539
18540 case $var in
18541 old_archive_cmds_GCJ | \
18542 old_archive_from_new_cmds_GCJ | \
18543 archive_cmds_GCJ | \
18544 archive_expsym_cmds_GCJ | \
18545 module_cmds_GCJ | \
18546 module_expsym_cmds_GCJ | \
18547 old_archive_from_expsyms_cmds_GCJ | \
18548 export_symbols_cmds_GCJ | \
18549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18550 postinstall_cmds | postuninstall_cmds | \
18551 old_postinstall_cmds | old_postuninstall_cmds | \
18552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18553 # Double-quote double-evaled strings.
18554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18555 ;;
18556 *)
18557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18558 ;;
18559 esac
18560 done
18561
18562 case $lt_echo in
18563 *'\$0 --fallback-echo"')
18564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18565 ;;
18566 esac
18567
18568 cfgfile="$ofile"
18569
18570 cat <<__EOF__ >> "$cfgfile"
18571 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18572
18573 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18574
18575 # Shell to use when invoking shell scripts.
18576 SHELL=$lt_SHELL
18577
18578 # Whether or not to build shared libraries.
18579 build_libtool_libs=$enable_shared
18580
18581 # Whether or not to build static libraries.
18582 build_old_libs=$enable_static
18583
18584 # Whether or not to add -lc for building shared libraries.
18585 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18586
18587 # Whether or not to disallow shared libs when runtime libs are static
18588 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18589
18590 # Whether or not to optimize for fast installation.
18591 fast_install=$enable_fast_install
18592
18593 # The host system.
18594 host_alias=$host_alias
18595 host=$host
18596 host_os=$host_os
18597
18598 # The build system.
18599 build_alias=$build_alias
18600 build=$build
18601 build_os=$build_os
18602
18603 # An echo program that does not interpret backslashes.
18604 echo=$lt_echo
18605
18606 # The archiver.
18607 AR=$lt_AR
18608 AR_FLAGS=$lt_AR_FLAGS
18609
18610 # A C compiler.
18611 LTCC=$lt_LTCC
18612
18613 # LTCC compiler flags.
18614 LTCFLAGS=$lt_LTCFLAGS
18615
18616 # A language-specific compiler.
18617 CC=$lt_compiler_GCJ
18618
18619 # Is the compiler the GNU C compiler?
18620 with_gcc=$GCC_GCJ
18621
18622 # An ERE matcher.
18623 EGREP=$lt_EGREP
18624
18625 # The linker used to build libraries.
18626 LD=$lt_LD_GCJ
18627
18628 # Whether we need hard or soft links.
18629 LN_S=$lt_LN_S
18630
18631 # A BSD-compatible nm program.
18632 NM=$lt_NM
18633
18634 # A symbol stripping program
18635 STRIP=$lt_STRIP
18636
18637 # Used to examine libraries when file_magic_cmd begins "file"
18638 MAGIC_CMD=$MAGIC_CMD
18639
18640 # Used on cygwin: DLL creation program.
18641 DLLTOOL="$DLLTOOL"
18642
18643 # Used on cygwin: object dumper.
18644 OBJDUMP="$OBJDUMP"
18645
18646 # Used on cygwin: assembler.
18647 AS="$AS"
18648
18649 # The name of the directory that contains temporary libtool files.
18650 objdir=$objdir
18651
18652 # How to create reloadable object files.
18653 reload_flag=$lt_reload_flag
18654 reload_cmds=$lt_reload_cmds
18655
18656 # How to pass a linker flag through the compiler.
18657 wl=$lt_lt_prog_compiler_wl_GCJ
18658
18659 # Object file suffix (normally "o").
18660 objext="$ac_objext"
18661
18662 # Old archive suffix (normally "a").
18663 libext="$libext"
18664
18665 # Shared library suffix (normally ".so").
18666 shrext_cmds='$shrext_cmds'
18667
18668 # Executable file suffix (normally "").
18669 exeext="$exeext"
18670
18671 # Additional compiler flags for building library objects.
18672 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18673 pic_mode=$pic_mode
18674
18675 # What is the maximum length of a command?
18676 max_cmd_len=$lt_cv_sys_max_cmd_len
18677
18678 # Does compiler simultaneously support -c and -o options?
18679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18680
18681 # Must we lock files when doing compilation?
18682 need_locks=$lt_need_locks
18683
18684 # Do we need the lib prefix for modules?
18685 need_lib_prefix=$need_lib_prefix
18686
18687 # Do we need a version for libraries?
18688 need_version=$need_version
18689
18690 # Whether dlopen is supported.
18691 dlopen_support=$enable_dlopen
18692
18693 # Whether dlopen of programs is supported.
18694 dlopen_self=$enable_dlopen_self
18695
18696 # Whether dlopen of statically linked programs is supported.
18697 dlopen_self_static=$enable_dlopen_self_static
18698
18699 # Compiler flag to prevent dynamic linking.
18700 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18701
18702 # Compiler flag to turn off builtin functions.
18703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18704
18705 # Compiler flag to allow reflexive dlopens.
18706 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18707
18708 # Compiler flag to generate shared objects directly from archives.
18709 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18710
18711 # Compiler flag to generate thread-safe objects.
18712 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18713
18714 # Library versioning type.
18715 version_type=$version_type
18716
18717 # Format of library name prefix.
18718 libname_spec=$lt_libname_spec
18719
18720 # List of archive names. First name is the real one, the rest are links.
18721 # The last name is the one that the linker finds with -lNAME.
18722 library_names_spec=$lt_library_names_spec
18723
18724 # The coded name of the library, if different from the real name.
18725 soname_spec=$lt_soname_spec
18726
18727 # Commands used to build and install an old-style archive.
18728 RANLIB=$lt_RANLIB
18729 old_archive_cmds=$lt_old_archive_cmds_GCJ
18730 old_postinstall_cmds=$lt_old_postinstall_cmds
18731 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18732
18733 # Create an old-style archive from a shared archive.
18734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18735
18736 # Create a temporary old-style archive to link instead of a shared archive.
18737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18738
18739 # Commands used to build and install a shared archive.
18740 archive_cmds=$lt_archive_cmds_GCJ
18741 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18742 postinstall_cmds=$lt_postinstall_cmds
18743 postuninstall_cmds=$lt_postuninstall_cmds
18744
18745 # Commands used to build a loadable module (assumed same as above if empty)
18746 module_cmds=$lt_module_cmds_GCJ
18747 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18748
18749 # Commands to strip libraries.
18750 old_striplib=$lt_old_striplib
18751 striplib=$lt_striplib
18752
18753 # Dependencies to place before the objects being linked to create a
18754 # shared library.
18755 predep_objects=$lt_predep_objects_GCJ
18756
18757 # Dependencies to place after the objects being linked to create a
18758 # shared library.
18759 postdep_objects=$lt_postdep_objects_GCJ
18760
18761 # Dependencies to place before the objects being linked to create a
18762 # shared library.
18763 predeps=$lt_predeps_GCJ
18764
18765 # Dependencies to place after the objects being linked to create a
18766 # shared library.
18767 postdeps=$lt_postdeps_GCJ
18768
18769 # The library search path used internally by the compiler when linking
18770 # a shared library.
18771 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18772
18773 # Method to check whether dependent libraries are shared objects.
18774 deplibs_check_method=$lt_deplibs_check_method
18775
18776 # Command to use when deplibs_check_method == file_magic.
18777 file_magic_cmd=$lt_file_magic_cmd
18778
18779 # Flag that allows shared libraries with undefined symbols to be built.
18780 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18781
18782 # Flag that forces no undefined symbols.
18783 no_undefined_flag=$lt_no_undefined_flag_GCJ
18784
18785 # Commands used to finish a libtool library installation in a directory.
18786 finish_cmds=$lt_finish_cmds
18787
18788 # Same as above, but a single script fragment to be evaled but not shown.
18789 finish_eval=$lt_finish_eval
18790
18791 # Take the output of nm and produce a listing of raw symbols and C names.
18792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18793
18794 # Transform the output of nm in a proper C declaration
18795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18796
18797 # Transform the output of nm in a C name address pair
18798 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18799
18800 # This is the shared library runtime path variable.
18801 runpath_var=$runpath_var
18802
18803 # This is the shared library path variable.
18804 shlibpath_var=$shlibpath_var
18805
18806 # Is shlibpath searched before the hard-coded library search path?
18807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18808
18809 # How to hardcode a shared library path into an executable.
18810 hardcode_action=$hardcode_action_GCJ
18811
18812 # Whether we should hardcode library paths into libraries.
18813 hardcode_into_libs=$hardcode_into_libs
18814
18815 # Flag to hardcode \$libdir into a binary during linking.
18816 # This must work even if \$libdir does not exist.
18817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18818
18819 # If ld is used when linking, flag to hardcode \$libdir into
18820 # a binary during linking. This must work even if \$libdir does
18821 # not exist.
18822 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18823
18824 # Whether we need a single -rpath flag with a separated argument.
18825 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18826
18827 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18828 # resulting binary.
18829 hardcode_direct=$hardcode_direct_GCJ
18830
18831 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18832 # resulting binary.
18833 hardcode_minus_L=$hardcode_minus_L_GCJ
18834
18835 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18836 # the resulting binary.
18837 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18838
18839 # Set to yes if building a shared library automatically hardcodes DIR into the library
18840 # and all subsequent libraries and executables linked against it.
18841 hardcode_automatic=$hardcode_automatic_GCJ
18842
18843 # Variables whose values should be saved in libtool wrapper scripts and
18844 # restored at relink time.
18845 variables_saved_for_relink="$variables_saved_for_relink"
18846
18847 # Whether libtool must link a program against all its dependency libraries.
18848 link_all_deplibs=$link_all_deplibs_GCJ
18849
18850 # Compile-time system search path for libraries
18851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18852
18853 # Run-time system search path for libraries
18854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18855
18856 # Fix the shell variable \$srcfile for the compiler.
18857 fix_srcfile_path="$fix_srcfile_path_GCJ"
18858
18859 # Set to yes if exported symbols are required.
18860 always_export_symbols=$always_export_symbols_GCJ
18861
18862 # The commands to list exported symbols.
18863 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18864
18865 # The commands to extract the exported symbol list from a shared archive.
18866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18867
18868 # Symbols that should not be listed in the preloaded symbols.
18869 exclude_expsyms=$lt_exclude_expsyms_GCJ
18870
18871 # Symbols that must always be exported.
18872 include_expsyms=$lt_include_expsyms_GCJ
18873
18874 # ### END LIBTOOL TAG CONFIG: $tagname
18875
18876 __EOF__
18877
18878
18879 else
18880 # If there is no Makefile yet, we rely on a make rule to execute
18881 # `config.status --recheck' to rerun these tests and create the
18882 # libtool script then.
18883 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18884 if test -f "$ltmain_in"; then
18885 test -f Makefile && make "$ltmain"
18886 fi
18887 fi
18888
18889
18890 ac_ext=c
18891 ac_cpp='$CPP $CPPFLAGS'
18892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18895
18896 CC="$lt_save_CC"
18897
18898 else
18899 tagname=""
18900 fi
18901 ;;
18902
18903 RC)
18904
18905
18906 # Source file extension for RC test sources.
18907 ac_ext=rc
18908
18909 # Object file extension for compiled RC test sources.
18910 objext=o
18911 objext_RC=$objext
18912
18913 # Code to be used in simple compile tests
18914 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18915
18916 # Code to be used in simple link tests
18917 lt_simple_link_test_code="$lt_simple_compile_test_code"
18918
18919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18920
18921 # If no C compiler was specified, use CC.
18922 LTCC=${LTCC-"$CC"}
18923
18924 # If no C compiler flags were specified, use CFLAGS.
18925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18926
18927 # Allow CC to be a program name with arguments.
18928 compiler=$CC
18929
18930
18931 # save warnings/boilerplate of simple test code
18932 ac_outfile=conftest.$ac_objext
18933 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18935 _lt_compiler_boilerplate=`cat conftest.err`
18936 $rm conftest*
18937
18938 ac_outfile=conftest.$ac_objext
18939 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18940 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18941 _lt_linker_boilerplate=`cat conftest.err`
18942 $rm conftest*
18943
18944
18945 # Allow CC to be a program name with arguments.
18946 lt_save_CC="$CC"
18947 CC=${RC-"windres"}
18948 compiler=$CC
18949 compiler_RC=$CC
18950 for cc_temp in $compiler""; do
18951 case $cc_temp in
18952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18954 \-*) ;;
18955 *) break;;
18956 esac
18957 done
18958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18959
18960 lt_cv_prog_compiler_c_o_RC=yes
18961
18962 # The else clause should only fire when bootstrapping the
18963 # libtool distribution, otherwise you forgot to ship ltmain.sh
18964 # with your package, and you will get complaints that there are
18965 # no rules to generate ltmain.sh.
18966 if test -f "$ltmain"; then
18967 # See if we are running on zsh, and set the options which allow our commands through
18968 # without removal of \ escapes.
18969 if test -n "${ZSH_VERSION+set}" ; then
18970 setopt NO_GLOB_SUBST
18971 fi
18972 # Now quote all the things that may contain metacharacters while being
18973 # careful not to overquote the AC_SUBSTed values. We take copies of the
18974 # variables and quote the copies for generation of the libtool script.
18975 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18976 SED SHELL STRIP \
18977 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18978 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18979 deplibs_check_method reload_flag reload_cmds need_locks \
18980 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18981 lt_cv_sys_global_symbol_to_c_name_address \
18982 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18983 old_postinstall_cmds old_postuninstall_cmds \
18984 compiler_RC \
18985 CC_RC \
18986 LD_RC \
18987 lt_prog_compiler_wl_RC \
18988 lt_prog_compiler_pic_RC \
18989 lt_prog_compiler_static_RC \
18990 lt_prog_compiler_no_builtin_flag_RC \
18991 export_dynamic_flag_spec_RC \
18992 thread_safe_flag_spec_RC \
18993 whole_archive_flag_spec_RC \
18994 enable_shared_with_static_runtimes_RC \
18995 old_archive_cmds_RC \
18996 old_archive_from_new_cmds_RC \
18997 predep_objects_RC \
18998 postdep_objects_RC \
18999 predeps_RC \
19000 postdeps_RC \
19001 compiler_lib_search_path_RC \
19002 archive_cmds_RC \
19003 archive_expsym_cmds_RC \
19004 postinstall_cmds_RC \
19005 postuninstall_cmds_RC \
19006 old_archive_from_expsyms_cmds_RC \
19007 allow_undefined_flag_RC \
19008 no_undefined_flag_RC \
19009 export_symbols_cmds_RC \
19010 hardcode_libdir_flag_spec_RC \
19011 hardcode_libdir_flag_spec_ld_RC \
19012 hardcode_libdir_separator_RC \
19013 hardcode_automatic_RC \
19014 module_cmds_RC \
19015 module_expsym_cmds_RC \
19016 lt_cv_prog_compiler_c_o_RC \
19017 exclude_expsyms_RC \
19018 include_expsyms_RC; do
19019
19020 case $var in
19021 old_archive_cmds_RC | \
19022 old_archive_from_new_cmds_RC | \
19023 archive_cmds_RC | \
19024 archive_expsym_cmds_RC | \
19025 module_cmds_RC | \
19026 module_expsym_cmds_RC | \
19027 old_archive_from_expsyms_cmds_RC | \
19028 export_symbols_cmds_RC | \
19029 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19030 postinstall_cmds | postuninstall_cmds | \
19031 old_postinstall_cmds | old_postuninstall_cmds | \
19032 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19033 # Double-quote double-evaled strings.
19034 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19035 ;;
19036 *)
19037 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19038 ;;
19039 esac
19040 done
19041
19042 case $lt_echo in
19043 *'\$0 --fallback-echo"')
19044 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19045 ;;
19046 esac
19047
19048 cfgfile="$ofile"
19049
19050 cat <<__EOF__ >> "$cfgfile"
19051 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19052
19053 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19054
19055 # Shell to use when invoking shell scripts.
19056 SHELL=$lt_SHELL
19057
19058 # Whether or not to build shared libraries.
19059 build_libtool_libs=$enable_shared
19060
19061 # Whether or not to build static libraries.
19062 build_old_libs=$enable_static
19063
19064 # Whether or not to add -lc for building shared libraries.
19065 build_libtool_need_lc=$archive_cmds_need_lc_RC
19066
19067 # Whether or not to disallow shared libs when runtime libs are static
19068 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19069
19070 # Whether or not to optimize for fast installation.
19071 fast_install=$enable_fast_install
19072
19073 # The host system.
19074 host_alias=$host_alias
19075 host=$host
19076 host_os=$host_os
19077
19078 # The build system.
19079 build_alias=$build_alias
19080 build=$build
19081 build_os=$build_os
19082
19083 # An echo program that does not interpret backslashes.
19084 echo=$lt_echo
19085
19086 # The archiver.
19087 AR=$lt_AR
19088 AR_FLAGS=$lt_AR_FLAGS
19089
19090 # A C compiler.
19091 LTCC=$lt_LTCC
19092
19093 # LTCC compiler flags.
19094 LTCFLAGS=$lt_LTCFLAGS
19095
19096 # A language-specific compiler.
19097 CC=$lt_compiler_RC
19098
19099 # Is the compiler the GNU C compiler?
19100 with_gcc=$GCC_RC
19101
19102 # An ERE matcher.
19103 EGREP=$lt_EGREP
19104
19105 # The linker used to build libraries.
19106 LD=$lt_LD_RC
19107
19108 # Whether we need hard or soft links.
19109 LN_S=$lt_LN_S
19110
19111 # A BSD-compatible nm program.
19112 NM=$lt_NM
19113
19114 # A symbol stripping program
19115 STRIP=$lt_STRIP
19116
19117 # Used to examine libraries when file_magic_cmd begins "file"
19118 MAGIC_CMD=$MAGIC_CMD
19119
19120 # Used on cygwin: DLL creation program.
19121 DLLTOOL="$DLLTOOL"
19122
19123 # Used on cygwin: object dumper.
19124 OBJDUMP="$OBJDUMP"
19125
19126 # Used on cygwin: assembler.
19127 AS="$AS"
19128
19129 # The name of the directory that contains temporary libtool files.
19130 objdir=$objdir
19131
19132 # How to create reloadable object files.
19133 reload_flag=$lt_reload_flag
19134 reload_cmds=$lt_reload_cmds
19135
19136 # How to pass a linker flag through the compiler.
19137 wl=$lt_lt_prog_compiler_wl_RC
19138
19139 # Object file suffix (normally "o").
19140 objext="$ac_objext"
19141
19142 # Old archive suffix (normally "a").
19143 libext="$libext"
19144
19145 # Shared library suffix (normally ".so").
19146 shrext_cmds='$shrext_cmds'
19147
19148 # Executable file suffix (normally "").
19149 exeext="$exeext"
19150
19151 # Additional compiler flags for building library objects.
19152 pic_flag=$lt_lt_prog_compiler_pic_RC
19153 pic_mode=$pic_mode
19154
19155 # What is the maximum length of a command?
19156 max_cmd_len=$lt_cv_sys_max_cmd_len
19157
19158 # Does compiler simultaneously support -c and -o options?
19159 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19160
19161 # Must we lock files when doing compilation?
19162 need_locks=$lt_need_locks
19163
19164 # Do we need the lib prefix for modules?
19165 need_lib_prefix=$need_lib_prefix
19166
19167 # Do we need a version for libraries?
19168 need_version=$need_version
19169
19170 # Whether dlopen is supported.
19171 dlopen_support=$enable_dlopen
19172
19173 # Whether dlopen of programs is supported.
19174 dlopen_self=$enable_dlopen_self
19175
19176 # Whether dlopen of statically linked programs is supported.
19177 dlopen_self_static=$enable_dlopen_self_static
19178
19179 # Compiler flag to prevent dynamic linking.
19180 link_static_flag=$lt_lt_prog_compiler_static_RC
19181
19182 # Compiler flag to turn off builtin functions.
19183 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19184
19185 # Compiler flag to allow reflexive dlopens.
19186 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19187
19188 # Compiler flag to generate shared objects directly from archives.
19189 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19190
19191 # Compiler flag to generate thread-safe objects.
19192 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19193
19194 # Library versioning type.
19195 version_type=$version_type
19196
19197 # Format of library name prefix.
19198 libname_spec=$lt_libname_spec
19199
19200 # List of archive names. First name is the real one, the rest are links.
19201 # The last name is the one that the linker finds with -lNAME.
19202 library_names_spec=$lt_library_names_spec
19203
19204 # The coded name of the library, if different from the real name.
19205 soname_spec=$lt_soname_spec
19206
19207 # Commands used to build and install an old-style archive.
19208 RANLIB=$lt_RANLIB
19209 old_archive_cmds=$lt_old_archive_cmds_RC
19210 old_postinstall_cmds=$lt_old_postinstall_cmds
19211 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19212
19213 # Create an old-style archive from a shared archive.
19214 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19215
19216 # Create a temporary old-style archive to link instead of a shared archive.
19217 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19218
19219 # Commands used to build and install a shared archive.
19220 archive_cmds=$lt_archive_cmds_RC
19221 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19222 postinstall_cmds=$lt_postinstall_cmds
19223 postuninstall_cmds=$lt_postuninstall_cmds
19224
19225 # Commands used to build a loadable module (assumed same as above if empty)
19226 module_cmds=$lt_module_cmds_RC
19227 module_expsym_cmds=$lt_module_expsym_cmds_RC
19228
19229 # Commands to strip libraries.
19230 old_striplib=$lt_old_striplib
19231 striplib=$lt_striplib
19232
19233 # Dependencies to place before the objects being linked to create a
19234 # shared library.
19235 predep_objects=$lt_predep_objects_RC
19236
19237 # Dependencies to place after the objects being linked to create a
19238 # shared library.
19239 postdep_objects=$lt_postdep_objects_RC
19240
19241 # Dependencies to place before the objects being linked to create a
19242 # shared library.
19243 predeps=$lt_predeps_RC
19244
19245 # Dependencies to place after the objects being linked to create a
19246 # shared library.
19247 postdeps=$lt_postdeps_RC
19248
19249 # The library search path used internally by the compiler when linking
19250 # a shared library.
19251 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19252
19253 # Method to check whether dependent libraries are shared objects.
19254 deplibs_check_method=$lt_deplibs_check_method
19255
19256 # Command to use when deplibs_check_method == file_magic.
19257 file_magic_cmd=$lt_file_magic_cmd
19258
19259 # Flag that allows shared libraries with undefined symbols to be built.
19260 allow_undefined_flag=$lt_allow_undefined_flag_RC
19261
19262 # Flag that forces no undefined symbols.
19263 no_undefined_flag=$lt_no_undefined_flag_RC
19264
19265 # Commands used to finish a libtool library installation in a directory.
19266 finish_cmds=$lt_finish_cmds
19267
19268 # Same as above, but a single script fragment to be evaled but not shown.
19269 finish_eval=$lt_finish_eval
19270
19271 # Take the output of nm and produce a listing of raw symbols and C names.
19272 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19273
19274 # Transform the output of nm in a proper C declaration
19275 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19276
19277 # Transform the output of nm in a C name address pair
19278 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19279
19280 # This is the shared library runtime path variable.
19281 runpath_var=$runpath_var
19282
19283 # This is the shared library path variable.
19284 shlibpath_var=$shlibpath_var
19285
19286 # Is shlibpath searched before the hard-coded library search path?
19287 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19288
19289 # How to hardcode a shared library path into an executable.
19290 hardcode_action=$hardcode_action_RC
19291
19292 # Whether we should hardcode library paths into libraries.
19293 hardcode_into_libs=$hardcode_into_libs
19294
19295 # Flag to hardcode \$libdir into a binary during linking.
19296 # This must work even if \$libdir does not exist.
19297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19298
19299 # If ld is used when linking, flag to hardcode \$libdir into
19300 # a binary during linking. This must work even if \$libdir does
19301 # not exist.
19302 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19303
19304 # Whether we need a single -rpath flag with a separated argument.
19305 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19306
19307 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19308 # resulting binary.
19309 hardcode_direct=$hardcode_direct_RC
19310
19311 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19312 # resulting binary.
19313 hardcode_minus_L=$hardcode_minus_L_RC
19314
19315 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19316 # the resulting binary.
19317 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19318
19319 # Set to yes if building a shared library automatically hardcodes DIR into the library
19320 # and all subsequent libraries and executables linked against it.
19321 hardcode_automatic=$hardcode_automatic_RC
19322
19323 # Variables whose values should be saved in libtool wrapper scripts and
19324 # restored at relink time.
19325 variables_saved_for_relink="$variables_saved_for_relink"
19326
19327 # Whether libtool must link a program against all its dependency libraries.
19328 link_all_deplibs=$link_all_deplibs_RC
19329
19330 # Compile-time system search path for libraries
19331 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19332
19333 # Run-time system search path for libraries
19334 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19335
19336 # Fix the shell variable \$srcfile for the compiler.
19337 fix_srcfile_path="$fix_srcfile_path_RC"
19338
19339 # Set to yes if exported symbols are required.
19340 always_export_symbols=$always_export_symbols_RC
19341
19342 # The commands to list exported symbols.
19343 export_symbols_cmds=$lt_export_symbols_cmds_RC
19344
19345 # The commands to extract the exported symbol list from a shared archive.
19346 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19347
19348 # Symbols that should not be listed in the preloaded symbols.
19349 exclude_expsyms=$lt_exclude_expsyms_RC
19350
19351 # Symbols that must always be exported.
19352 include_expsyms=$lt_include_expsyms_RC
19353
19354 # ### END LIBTOOL TAG CONFIG: $tagname
19355
19356 __EOF__
19357
19358
19359 else
19360 # If there is no Makefile yet, we rely on a make rule to execute
19361 # `config.status --recheck' to rerun these tests and create the
19362 # libtool script then.
19363 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19364 if test -f "$ltmain_in"; then
19365 test -f Makefile && make "$ltmain"
19366 fi
19367 fi
19368
19369
19370 ac_ext=c
19371 ac_cpp='$CPP $CPPFLAGS'
19372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19375
19376 CC="$lt_save_CC"
19377
19378 ;;
19379
19380 *)
19381 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19382 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19383 { (exit 1); exit 1; }; }
19384 ;;
19385 esac
19386
19387 # Append the new tag name to the list of available tags.
19388 if test -n "$tagname" ; then
19389 available_tags="$available_tags $tagname"
19390 fi
19391 fi
19392 done
19393 IFS="$lt_save_ifs"
19394
19395 # Now substitute the updated list of available tags.
19396 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19397 mv "${ofile}T" "$ofile"
19398 chmod +x "$ofile"
19399 else
19400 rm -f "${ofile}T"
19401 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19402 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19403 { (exit 1); exit 1; }; }
19404 fi
19405 fi
19406
19407
19408
19409 # This can be used to rebuild libtool when needed
19410 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19411
19412 # Always use our own libtool.
19413 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19414
19415 # Prevent multiple expansion
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438 for ac_prog in perl5 perl
19439 do
19440 # Extract the first word of "$ac_prog", so it can be a program name with args.
19441 set dummy $ac_prog; ac_word=$2
19442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19444 if test "${ac_cv_path_PERL+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19446 else
19447 case $PERL in
19448 [\\/]* | ?:[\\/]*)
19449 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19450 ;;
19451 *)
19452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19453 for as_dir in $LPATH
19454 do
19455 IFS=$as_save_IFS
19456 test -z "$as_dir" && as_dir=.
19457 for ac_exec_ext in '' $ac_executable_extensions; do
19458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19459 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19461 break 2
19462 fi
19463 done
19464 done
19465 IFS=$as_save_IFS
19466
19467 ;;
19468 esac
19469 fi
19470 PERL=$ac_cv_path_PERL
19471 if test -n "$PERL"; then
19472 { echo "$as_me:$LINENO: result: $PERL" >&5
19473 echo "${ECHO_T}$PERL" >&6; }
19474 else
19475 { echo "$as_me:$LINENO: result: no" >&5
19476 echo "${ECHO_T}no" >&6; }
19477 fi
19478
19479
19480 test -n "$PERL" && break
19481 done
19482 test -n "$PERL" || PERL="perl"
19483
19484 for ac_prog in courier-config
19485 do
19486 # Extract the first word of "$ac_prog", so it can be a program name with args.
19487 set dummy $ac_prog; ac_word=$2
19488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19490 if test "${ac_cv_path_COURIERCONFIG+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493 case $COURIERCONFIG in
19494 [\\/]* | ?:[\\/]*)
19495 ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path.
19496 ;;
19497 *)
19498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19499 for as_dir in $LPATH
19500 do
19501 IFS=$as_save_IFS
19502 test -z "$as_dir" && as_dir=.
19503 for ac_exec_ext in '' $ac_executable_extensions; do
19504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19505 ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext"
19506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19507 break 2
19508 fi
19509 done
19510 done
19511 IFS=$as_save_IFS
19512
19513 ;;
19514 esac
19515 fi
19516 COURIERCONFIG=$ac_cv_path_COURIERCONFIG
19517 if test -n "$COURIERCONFIG"; then
19518 { echo "$as_me:$LINENO: result: $COURIERCONFIG" >&5
19519 echo "${ECHO_T}$COURIERCONFIG" >&6; }
19520 else
19521 { echo "$as_me:$LINENO: result: no" >&5
19522 echo "${ECHO_T}no" >&6; }
19523 fi
19524
19525
19526 test -n "$COURIERCONFIG" && break
19527 done
19528 test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config"
19529
19530
19531 if test "$PERL" = "perl"
19532 then
19533 { { echo "$as_me:$LINENO: error: Perl is required" >&5
19534 echo "$as_me: error: Perl is required" >&2;}
19535 { (exit 1); exit 1; }; }
19536 fi
19537
19538 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19540 eval "prefix=$prefix"
19541 eval "exec_prefix=$exec_prefix"
19542 eval "sysconfdir=$sysconfdir"
19543 eval "bindir=$bindir"
19544 eval "sbindir=$sbindir"
19545 eval "localstatedir=$localstatedir"
19546 eval "libexecdir=$libexecdir"
19547
19548
19549 # Check whether --with-redhat was given.
19550 if test "${with_redhat+set}" = set; then
19551 withval=$with_redhat; redhat=$withval
19552 else
19553 redhat=no
19554 fi
19555
19556
19557 if test "$srcdir" = "."
19558 then
19559 case `./config.guess` in
19560 *-redhat-*)
19561 if test "$redhat" = "no"
19562 then
19563 hash='#'
19564 { echo "$as_me:$LINENO: WARNING: === I think you are trying to run this configure script" >&5
19565 echo "$as_me: WARNING: === I think you are trying to run this configure script" >&2;}
19566 { echo "$as_me:$LINENO: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&5
19567 echo "$as_me: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&2;}
19568 { echo "$as_me:$LINENO: WARNING: === It's much faster to create installable binary RPMs" >&5
19569 echo "$as_me: WARNING: === It's much faster to create installable binary RPMs" >&2;}
19570 { echo "$as_me:$LINENO: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&5
19571 echo "$as_me: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&2;}
19572 { echo "$as_me:$LINENO: WARNING: === When you do this you may find that RPM will tell you" >&5
19573 echo "$as_me: WARNING: === When you do this you may find that RPM will tell you" >&2;}
19574 { echo "$as_me:$LINENO: WARNING: === to install some other software first, before trying to" >&5
19575 echo "$as_me: WARNING: === to install some other software first, before trying to" >&2;}
19576 { echo "$as_me:$LINENO: WARNING: === build this one, and even tell you the name of RPMs you" >&5
19577 echo "$as_me: WARNING: === build this one, and even tell you the name of RPMs you" >&2;}
19578 { echo "$as_me:$LINENO: WARNING: === need to install from the distribution CD. That's much" >&5
19579 echo "$as_me: WARNING: === need to install from the distribution CD. That's much" >&2;}
19580 { echo "$as_me:$LINENO: WARNING: === easier than trying to figure out the same from some" >&5
19581 echo "$as_me: WARNING: === easier than trying to figure out the same from some" >&2;}
19582 { echo "$as_me:$LINENO: WARNING: === cryptic error message." >&5
19583 echo "$as_me: WARNING: === cryptic error message." >&2;}
19584 { echo "$as_me:$LINENO: WARNING: " >&5
19585 echo "$as_me: WARNING: " >&2;}
19586 { echo "$as_me:$LINENO: WARNING: === Even if you don't intend to use everything you need to" >&5
19587 echo "$as_me: WARNING: === Even if you don't intend to use everything you need to" >&2;}
19588 { echo "$as_me:$LINENO: WARNING: === have in order to build via RPM, you should still do as" >&5
19589 echo "$as_me: WARNING: === have in order to build via RPM, you should still do as" >&2;}
19590 { echo "$as_me:$LINENO: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&5
19591 echo "$as_me: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&2;}
19592 { echo "$as_me:$LINENO: WARNING: === goes into RPM sub-packages, which do not need to be" >&5
19593 echo "$as_me: WARNING: === goes into RPM sub-packages, which do not need to be" >&2;}
19594 { echo "$as_me:$LINENO: WARNING: === installed." >&5
19595 echo "$as_me: WARNING: === installed." >&2;}
19596 { echo "$as_me:$LINENO: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&5
19597 echo "$as_me: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&2;}
19598 { echo "$as_me:$LINENO: WARNING: === parameter to this configure script and not see this" >&5
19599 echo "$as_me: WARNING: === parameter to this configure script and not see this" >&2;}
19600 { echo "$as_me:$LINENO: WARNING: === error message. You should also do this when upgrading" >&5
19601 echo "$as_me: WARNING: === error message. You should also do this when upgrading" >&2;}
19602 { echo "$as_me:$LINENO: WARNING: === and you didn't use RPM with the older version." >&5
19603 echo "$as_me: WARNING: === and you didn't use RPM with the older version." >&2;}
19604 { { echo "$as_me:$LINENO: error: ... in either case you better know what you're doing!" >&5
19605 echo "$as_me: error: ... in either case you better know what you're doing!" >&2;}
19606 { (exit 1); exit 1; }; }
19607 fi
19608 ;;
19609 *)
19610 ;;
19611 esac
19612 fi
19613 for ac_prog in expect
19614 do
19615 # Extract the first word of "$ac_prog", so it can be a program name with args.
19616 set dummy $ac_prog; ac_word=$2
19617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19619 if test "${ac_cv_path_EXPECT+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622 case $EXPECT in
19623 [\\/]* | ?:[\\/]*)
19624 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
19625 ;;
19626 *)
19627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19628 for as_dir in $LPATH
19629 do
19630 IFS=$as_save_IFS
19631 test -z "$as_dir" && as_dir=.
19632 for ac_exec_ext in '' $ac_executable_extensions; do
19633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19634 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
19635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19636 break 2
19637 fi
19638 done
19639 done
19640 IFS=$as_save_IFS
19641
19642 ;;
19643 esac
19644 fi
19645 EXPECT=$ac_cv_path_EXPECT
19646 if test -n "$EXPECT"; then
19647 { echo "$as_me:$LINENO: result: $EXPECT" >&5
19648 echo "${ECHO_T}$EXPECT" >&6; }
19649 else
19650 { echo "$as_me:$LINENO: result: no" >&5
19651 echo "${ECHO_T}no" >&6; }
19652 fi
19653
19654
19655 test -n "$EXPECT" && break
19656 done
19657 test -n "$EXPECT" || EXPECT="expect"
19658
19659
19660 if test "$EXPECT" = "expect"
19661 then
19662 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
19663 echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
19664 { echo "$as_me:$LINENO: WARNING: expect not found - will not be able to change passwds" >&5
19665 echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
19666 { echo "$as_me:$LINENO: WARNING: in webmail" >&5
19667 echo "$as_me: WARNING: in webmail" >&2;}
19668 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
19669 echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
19670 sleep 5
19671 else
19672
19673 cat >>confdefs.h <<_ACEOF
19674 #define HAVE_EXPECT 1
19675 _ACEOF
19676
19677 fi
19678
19679 for ac_prog in passwd
19680 do
19681 # Extract the first word of "$ac_prog", so it can be a program name with args.
19682 set dummy $ac_prog; ac_word=$2
19683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19685 if test "${ac_cv_path_PASSWD+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 else
19688 case $PASSWD in
19689 [\\/]* | ?:[\\/]*)
19690 ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path.
19691 ;;
19692 *)
19693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19694 for as_dir in $LPATH
19695 do
19696 IFS=$as_save_IFS
19697 test -z "$as_dir" && as_dir=.
19698 for ac_exec_ext in '' $ac_executable_extensions; do
19699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19700 ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext"
19701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19702 break 2
19703 fi
19704 done
19705 done
19706 IFS=$as_save_IFS
19707
19708 ;;
19709 esac
19710 fi
19711 PASSWD=$ac_cv_path_PASSWD
19712 if test -n "$PASSWD"; then
19713 { echo "$as_me:$LINENO: result: $PASSWD" >&5
19714 echo "${ECHO_T}$PASSWD" >&6; }
19715 else
19716 { echo "$as_me:$LINENO: result: no" >&5
19717 echo "${ECHO_T}no" >&6; }
19718 fi
19719
19720
19721 test -n "$PASSWD" && break
19722 done
19723 test -n "$PASSWD" || PASSWD="passwd"
19724
19725
19726
19727 if test "$GCC" = "yes"
19728 then
19729 CFLAGS="$CFLAGS -Wall"
19730 fi
19731
19732 CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
19733
19734 { echo "$as_me:$LINENO: checking whether -lm is needed for floor" >&5
19735 echo $ECHO_N "checking whether -lm is needed for floor... $ECHO_C" >&6; }
19736 cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h. */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742
19743 /* Override any GCC internal prototype to avoid an error.
19744 Use char because int might match the return type of a GCC
19745 builtin and then its argument prototype would still apply. */
19746 #ifdef __cplusplus
19747 extern "C"
19748 #endif
19749 char floor ();
19750 int
19751 main ()
19752 {
19753 return floor ();
19754 ;
19755 return 0;
19756 }
19757 _ACEOF
19758 rm -f conftest.$ac_objext conftest$ac_exeext
19759 if { (ac_try="$ac_link"
19760 case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_link") 2>conftest.er1
19766 ac_status=$?
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_c_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest$ac_exeext &&
19775 $as_test_x conftest$ac_exeext; then
19776 { echo "$as_me:$LINENO: result: no" >&5
19777 echo "${ECHO_T}no" >&6; }
19778 else
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19781
19782 LIBM="-lm"
19783 { echo "$as_me:$LINENO: result: yes" >&5
19784 echo "${ECHO_T}yes" >&6; }
19785 fi
19786
19787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19788 conftest$ac_exeext conftest.$ac_ext
19789
19790
19791 # Check whether --with-pkgconfdir was given.
19792 if test "${with_pkgconfdir+set}" = set; then
19793 withval=$with_pkgconfdir; pkgconfdir="$withval"
19794 else
19795 pkgconfdir="$sysconfdir/authlib"
19796 fi
19797
19798
19799 SASL_LIST="SASL(\"PLAIN\", authsasl_plain, authsaslclient_plain) SASL(\"LOGIN\", authsasl_login, authsaslclient_login)"
19800
19801
19802
19803
19804
19805 if test -d ${srcdir}/md5
19806 then
19807 MD5=1
19808
19809 cat >>confdefs.h <<_ACEOF
19810 #define HAVE_MD5LIB 1
19811 _ACEOF
19812
19813 MD5LIB=md5/libmd5.la
19814 if test -d ${srcdir}/md5
19815 then
19816 SASL_LIST="SASL(\"CRAM-MD5\", authsasl_cram, authsaslclient_crammd5) $SASL_LIST"
19817 fi
19818 else
19819 MD5LIB=""
19820 MD5=0
19821 fi
19822
19823 if test "$MD5" = 1; then
19824 HAVE_MD5_TRUE=
19825 HAVE_MD5_FALSE='#'
19826 else
19827 HAVE_MD5_TRUE='#'
19828 HAVE_MD5_FALSE=
19829 fi
19830
19831
19832
19833
19834
19835
19836 if test -d ${srcdir}/sha1
19837 then
19838 SHA1=1
19839
19840 cat >>confdefs.h <<_ACEOF
19841 #define HAVE_SHA1LIB 1
19842 _ACEOF
19843
19844 SHA1LIB=sha1/libsha1.la
19845 if test -d ${srcdir}/sha1
19846 then
19847 SASL_LIST="SASL(\"CRAM-SHA1\", authsasl_cram, authsaslclient_cramsha1) $SASL_LIST"
19848 SASL_LIST="SASL(\"CRAM-SHA256\", authsasl_cram, authsaslclient_cramsha256) $SASL_LIST"
19849 fi
19850 else
19851 SHA1LIB=""
19852 SHA1=0
19853 fi
19854
19855 if test "$SHA1" = 1; then
19856 HAVE_SHA1_TRUE=
19857 HAVE_SHA1_FALSE='#'
19858 else
19859 HAVE_SHA1_TRUE='#'
19860 HAVE_SHA1_FALSE=
19861 fi
19862
19863
19864
19865
19866
19867
19868
19869 if test -d ${srcdir}/libhmac
19870 then
19871 HMAC=1
19872
19873 cat >>confdefs.h <<_ACEOF
19874 #define HAVE_HMACLIB 1
19875 _ACEOF
19876
19877 HMACLIB=libhmac/libhmac.la
19878 else
19879 HMACLIB=""
19880 HMAC=0
19881 fi
19882
19883 if test "$HMAC" = 1; then
19884 HAVE_HMACLIB_TRUE=
19885 HAVE_HMACLIB_FALSE='#'
19886 else
19887 HAVE_HMACLIB_TRUE='#'
19888 HAVE_HMACLIB_FALSE=
19889 fi
19890
19891
19892 saveLIBS="$LIBS"
19893 NETLIBS=""
19894 USENSL=no
19895
19896 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19897 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
19898 if test "${ac_cv_lib_socket_socket+set}" = set; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
19900 else
19901 ac_check_lib_save_LIBS=$LIBS
19902 LIBS="-lsocket $LIBS"
19903 cat >conftest.$ac_ext <<_ACEOF
19904 /* confdefs.h. */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19909
19910 /* Override any GCC internal prototype to avoid an error.
19911 Use char because int might match the return type of a GCC
19912 builtin and then its argument prototype would still apply. */
19913 #ifdef __cplusplus
19914 extern "C"
19915 #endif
19916 char socket ();
19917 int
19918 main ()
19919 {
19920 return socket ();
19921 ;
19922 return 0;
19923 }
19924 _ACEOF
19925 rm -f conftest.$ac_objext conftest$ac_exeext
19926 if { (ac_try="$ac_link"
19927 case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19930 esac
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_link") 2>conftest.er1
19933 ac_status=$?
19934 grep -v '^ *+' conftest.er1 >conftest.err
19935 rm -f conftest.er1
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } && {
19939 test -z "$ac_c_werror_flag" ||
19940 test ! -s conftest.err
19941 } && test -s conftest$ac_exeext &&
19942 $as_test_x conftest$ac_exeext; then
19943 ac_cv_lib_socket_socket=yes
19944 else
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19947
19948 ac_cv_lib_socket_socket=no
19949 fi
19950
19951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19952 conftest$ac_exeext conftest.$ac_ext
19953 LIBS=$ac_check_lib_save_LIBS
19954 fi
19955 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
19956 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
19957 if test $ac_cv_lib_socket_socket = yes; then
19958 result=yes
19959 else
19960 result=no
19961 fi
19962
19963 if test $result = yes; then
19964 NETLIBS="-lsocket"
19965 else
19966 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
19967 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
19968 if test "${ac_cv_lib_socket_socket+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 else
19971 ac_check_lib_save_LIBS=$LIBS
19972 LIBS="-lsocket -lnsl $LIBS"
19973 cat >conftest.$ac_ext <<_ACEOF
19974 /* confdefs.h. */
19975 _ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19979
19980 /* Override any GCC internal prototype to avoid an error.
19981 Use char because int might match the return type of a GCC
19982 builtin and then its argument prototype would still apply. */
19983 #ifdef __cplusplus
19984 extern "C"
19985 #endif
19986 char socket ();
19987 int
19988 main ()
19989 {
19990 return socket ();
19991 ;
19992 return 0;
19993 }
19994 _ACEOF
19995 rm -f conftest.$ac_objext conftest$ac_exeext
19996 if { (ac_try="$ac_link"
19997 case "(($ac_try" in
19998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20000 esac
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_link") 2>conftest.er1
20003 ac_status=$?
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } && {
20009 test -z "$ac_c_werror_flag" ||
20010 test ! -s conftest.err
20011 } && test -s conftest$ac_exeext &&
20012 $as_test_x conftest$ac_exeext; then
20013 ac_cv_lib_socket_socket=yes
20014 else
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018 ac_cv_lib_socket_socket=no
20019 fi
20020
20021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20022 conftest$ac_exeext conftest.$ac_ext
20023 LIBS=$ac_check_lib_save_LIBS
20024 fi
20025 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20026 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
20027 if test $ac_cv_lib_socket_socket = yes; then
20028 result=yes
20029 else
20030 result=no
20031 fi
20032
20033 if test $result = yes; then
20034 NETLIBS = "-lsocket -lnsl"
20035 USENSL=yes
20036 else
20037 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20038 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20039 if test "${ac_cv_lib_socket_connect+set}" = set; then
20040 echo $ECHO_N "(cached) $ECHO_C" >&6
20041 else
20042 ac_check_lib_save_LIBS=$LIBS
20043 LIBS="-lsocket $LIBS"
20044 cat >conftest.$ac_ext <<_ACEOF
20045 /* confdefs.h. */
20046 _ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050
20051 /* Override any GCC internal prototype to avoid an error.
20052 Use char because int might match the return type of a GCC
20053 builtin and then its argument prototype would still apply. */
20054 #ifdef __cplusplus
20055 extern "C"
20056 #endif
20057 char connect ();
20058 int
20059 main ()
20060 {
20061 return connect ();
20062 ;
20063 return 0;
20064 }
20065 _ACEOF
20066 rm -f conftest.$ac_objext conftest$ac_exeext
20067 if { (ac_try="$ac_link"
20068 case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071 esac
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_link") 2>conftest.er1
20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } && {
20080 test -z "$ac_c_werror_flag" ||
20081 test ! -s conftest.err
20082 } && test -s conftest$ac_exeext &&
20083 $as_test_x conftest$ac_exeext; then
20084 ac_cv_lib_socket_connect=yes
20085 else
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20088
20089 ac_cv_lib_socket_connect=no
20090 fi
20091
20092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20093 conftest$ac_exeext conftest.$ac_ext
20094 LIBS=$ac_check_lib_save_LIBS
20095 fi
20096 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20097 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20098 if test $ac_cv_lib_socket_connect = yes; then
20099 result=yes
20100 else
20101 result=no
20102 fi
20103
20104 if test $result = yes; then
20105 NETLIBS="-lsocket"
20106 else
20107 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20108 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20109 if test "${ac_cv_lib_socket_connect+set}" = set; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112 ac_check_lib_save_LIBS=$LIBS
20113 LIBS="-lsocket -lnsl $LIBS"
20114 cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h. */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20120
20121 /* Override any GCC internal prototype to avoid an error.
20122 Use char because int might match the return type of a GCC
20123 builtin and then its argument prototype would still apply. */
20124 #ifdef __cplusplus
20125 extern "C"
20126 #endif
20127 char connect ();
20128 int
20129 main ()
20130 {
20131 return connect ();
20132 ;
20133 return 0;
20134 }
20135 _ACEOF
20136 rm -f conftest.$ac_objext conftest$ac_exeext
20137 if { (ac_try="$ac_link"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_link") 2>conftest.er1
20144 ac_status=$?
20145 grep -v '^ *+' conftest.er1 >conftest.err
20146 rm -f conftest.er1
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } && {
20150 test -z "$ac_c_werror_flag" ||
20151 test ! -s conftest.err
20152 } && test -s conftest$ac_exeext &&
20153 $as_test_x conftest$ac_exeext; then
20154 ac_cv_lib_socket_connect=yes
20155 else
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20158
20159 ac_cv_lib_socket_connect=no
20160 fi
20161
20162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20163 conftest$ac_exeext conftest.$ac_ext
20164 LIBS=$ac_check_lib_save_LIBS
20165 fi
20166 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20167 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20168 if test $ac_cv_lib_socket_connect = yes; then
20169 result=yes
20170 else
20171 result=no
20172 fi
20173
20174 if test $result = yes; then
20175 NETLIBS="-lsocket -lnsl"
20176 USENSL=yes
20177 fi
20178 fi
20179 fi
20180 fi
20181
20182 if test $USENSL != yes; then
20183 LIBS="$LIBS $NETLIBS"
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h. */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190
20191 /* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
20194 #ifdef __cplusplus
20195 extern "C"
20196 #endif
20197 char inet_addr ();
20198 int
20199 main ()
20200 {
20201 return inet_addr ();
20202 ;
20203 return 0;
20204 }
20205 _ACEOF
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (ac_try="$ac_link"
20208 case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_link") 2>conftest.er1
20214 ac_status=$?
20215 grep -v '^ *+' conftest.er1 >conftest.err
20216 rm -f conftest.er1
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } && {
20220 test -z "$ac_c_werror_flag" ||
20221 test ! -s conftest.err
20222 } && test -s conftest$ac_exeext &&
20223 $as_test_x conftest$ac_exeext; then
20224 :
20225 else
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20228
20229
20230 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
20231 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
20232 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20234 else
20235 ac_check_lib_save_LIBS=$LIBS
20236 LIBS="-lnsl $LIBS"
20237 cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h. */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20243
20244 /* Override any GCC internal prototype to avoid an error.
20245 Use char because int might match the return type of a GCC
20246 builtin and then its argument prototype would still apply. */
20247 #ifdef __cplusplus
20248 extern "C"
20249 #endif
20250 char inet_addr ();
20251 int
20252 main ()
20253 {
20254 return inet_addr ();
20255 ;
20256 return 0;
20257 }
20258 _ACEOF
20259 rm -f conftest.$ac_objext conftest$ac_exeext
20260 if { (ac_try="$ac_link"
20261 case "(($ac_try" in
20262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20263 *) ac_try_echo=$ac_try;;
20264 esac
20265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20266 (eval "$ac_link") 2>conftest.er1
20267 ac_status=$?
20268 grep -v '^ *+' conftest.er1 >conftest.err
20269 rm -f conftest.er1
20270 cat conftest.err >&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } && {
20273 test -z "$ac_c_werror_flag" ||
20274 test ! -s conftest.err
20275 } && test -s conftest$ac_exeext &&
20276 $as_test_x conftest$ac_exeext; then
20277 ac_cv_lib_nsl_inet_addr=yes
20278 else
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282 ac_cv_lib_nsl_inet_addr=no
20283 fi
20284
20285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20286 conftest$ac_exeext conftest.$ac_ext
20287 LIBS=$ac_check_lib_save_LIBS
20288 fi
20289 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
20290 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
20291 if test $ac_cv_lib_nsl_inet_addr = yes; then
20292 result=yes
20293 else
20294 result=no
20295 fi
20296
20297 if test $result = yes; then
20298 NETLIBS="$NETLIBS -lnsl"
20299 fi
20300
20301 fi
20302
20303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20304 conftest$ac_exeext conftest.$ac_ext
20305 fi
20306
20307 LIBS="$saveLIBS"
20308
20309
20310
20311
20312
20313
20314
20315 # Check whether --with-db was given.
20316 if test "${with_db+set}" = set; then
20317 withval=$with_db; db="$withval"
20318 else
20319 needs_withdb=1
20320 fi
20321
20322
20323 case "$db" in
20324 gdbm)
20325 ;;
20326 db)
20327 ;;
20328 "")
20329 ;;
20330 *)
20331 { { echo "$as_me:$LINENO: error: Invalid --with-db option." >&5
20332 echo "$as_me: error: Invalid --with-db option." >&2;}
20333 { (exit 1); exit 1; }; }
20334 ;;
20335 esac
20336
20337 saveLIBS="$LIBS"
20338
20339 if test "$db" != "db"
20340 then
20341 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
20342 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
20343 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
20344 echo $ECHO_N "(cached) $ECHO_C" >&6
20345 else
20346 ac_check_lib_save_LIBS=$LIBS
20347 LIBS="-lgdbm $LIBS"
20348 cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h. */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20354
20355 /* Override any GCC internal prototype to avoid an error.
20356 Use char because int might match the return type of a GCC
20357 builtin and then its argument prototype would still apply. */
20358 #ifdef __cplusplus
20359 extern "C"
20360 #endif
20361 char gdbm_open ();
20362 int
20363 main ()
20364 {
20365 return gdbm_open ();
20366 ;
20367 return 0;
20368 }
20369 _ACEOF
20370 rm -f conftest.$ac_objext conftest$ac_exeext
20371 if { (ac_try="$ac_link"
20372 case "(($ac_try" in
20373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20374 *) ac_try_echo=$ac_try;;
20375 esac
20376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20377 (eval "$ac_link") 2>conftest.er1
20378 ac_status=$?
20379 grep -v '^ *+' conftest.er1 >conftest.err
20380 rm -f conftest.er1
20381 cat conftest.err >&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } && {
20384 test -z "$ac_c_werror_flag" ||
20385 test ! -s conftest.err
20386 } && test -s conftest$ac_exeext &&
20387 $as_test_x conftest$ac_exeext; then
20388 ac_cv_lib_gdbm_gdbm_open=yes
20389 else
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393 ac_cv_lib_gdbm_gdbm_open=no
20394 fi
20395
20396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20397 conftest$ac_exeext conftest.$ac_ext
20398 LIBS=$ac_check_lib_save_LIBS
20399 fi
20400 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
20401 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
20402 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
20403 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
20404 fi
20405
20406 { echo "$as_me:$LINENO: checking for gdbm_open" >&5
20407 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6; }
20408 if test "${ac_cv_func_gdbm_open+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411 cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h. */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20417 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
20418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20419 #define gdbm_open innocuous_gdbm_open
20420
20421 /* System header to define __stub macros and hopefully few prototypes,
20422 which can conflict with char gdbm_open (); below.
20423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20424 <limits.h> exists even on freestanding compilers. */
20425
20426 #ifdef __STDC__
20427 # include <limits.h>
20428 #else
20429 # include <assert.h>
20430 #endif
20431
20432 #undef gdbm_open
20433
20434 /* Override any GCC internal prototype to avoid an error.
20435 Use char because int might match the return type of a GCC
20436 builtin and then its argument prototype would still apply. */
20437 #ifdef __cplusplus
20438 extern "C"
20439 #endif
20440 char gdbm_open ();
20441 /* The GNU C library defines this for functions which it implements
20442 to always fail with ENOSYS. Some functions are actually named
20443 something starting with __ and the normal name is an alias. */
20444 #if defined __stub_gdbm_open || defined __stub___gdbm_open
20445 choke me
20446 #endif
20447
20448 int
20449 main ()
20450 {
20451 return gdbm_open ();
20452 ;
20453 return 0;
20454 }
20455 _ACEOF
20456 rm -f conftest.$ac_objext conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_link") 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } && {
20470 test -z "$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 } && test -s conftest$ac_exeext &&
20473 $as_test_x conftest$ac_exeext; then
20474 ac_cv_func_gdbm_open=yes
20475 else
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479 ac_cv_func_gdbm_open=no
20480 fi
20481
20482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20483 conftest$ac_exeext conftest.$ac_ext
20484 fi
20485 { echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
20486 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6; }
20487 if test $ac_cv_func_gdbm_open = yes; then
20488 HAVE_GDBM=y
20489 fi
20490
20491 fi
20492
20493 LIBS="$saveLIBS"
20494
20495 if test "$db" != "gdbm"
20496 then
20497 { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
20498 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
20499 if test "${ac_cv_lib_db_dbopen+set}" = set; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 else
20502 ac_check_lib_save_LIBS=$LIBS
20503 LIBS="-ldb $LIBS"
20504 cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h. */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510
20511 /* Override any GCC internal prototype to avoid an error.
20512 Use char because int might match the return type of a GCC
20513 builtin and then its argument prototype would still apply. */
20514 #ifdef __cplusplus
20515 extern "C"
20516 #endif
20517 char dbopen ();
20518 int
20519 main ()
20520 {
20521 return dbopen ();
20522 ;
20523 return 0;
20524 }
20525 _ACEOF
20526 rm -f conftest.$ac_objext conftest$ac_exeext
20527 if { (ac_try="$ac_link"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20531 esac
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_link") 2>conftest.er1
20534 ac_status=$?
20535 grep -v '^ *+' conftest.er1 >conftest.err
20536 rm -f conftest.er1
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } && {
20540 test -z "$ac_c_werror_flag" ||
20541 test ! -s conftest.err
20542 } && test -s conftest$ac_exeext &&
20543 $as_test_x conftest$ac_exeext; then
20544 ac_cv_lib_db_dbopen=yes
20545 else
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20548
20549 ac_cv_lib_db_dbopen=no
20550 fi
20551
20552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20553 conftest$ac_exeext conftest.$ac_ext
20554 LIBS=$ac_check_lib_save_LIBS
20555 fi
20556 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
20557 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
20558 if test $ac_cv_lib_db_dbopen = yes; then
20559 LIBDB=-ldb ; LIBS="-ldb $LIBS"
20560 else
20561 { echo "$as_me:$LINENO: checking for db_open in -ldb" >&5
20562 echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6; }
20563 if test "${ac_cv_lib_db_db_open+set}" = set; then
20564 echo $ECHO_N "(cached) $ECHO_C" >&6
20565 else
20566 ac_check_lib_save_LIBS=$LIBS
20567 LIBS="-ldb $LIBS"
20568 cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h. */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574
20575 /* Override any GCC internal prototype to avoid an error.
20576 Use char because int might match the return type of a GCC
20577 builtin and then its argument prototype would still apply. */
20578 #ifdef __cplusplus
20579 extern "C"
20580 #endif
20581 char db_open ();
20582 int
20583 main ()
20584 {
20585 return db_open ();
20586 ;
20587 return 0;
20588 }
20589 _ACEOF
20590 rm -f conftest.$ac_objext conftest$ac_exeext
20591 if { (ac_try="$ac_link"
20592 case "(($ac_try" in
20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594 *) ac_try_echo=$ac_try;;
20595 esac
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597 (eval "$ac_link") 2>conftest.er1
20598 ac_status=$?
20599 grep -v '^ *+' conftest.er1 >conftest.err
20600 rm -f conftest.er1
20601 cat conftest.err >&5
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); } && {
20604 test -z "$ac_c_werror_flag" ||
20605 test ! -s conftest.err
20606 } && test -s conftest$ac_exeext &&
20607 $as_test_x conftest$ac_exeext; then
20608 ac_cv_lib_db_db_open=yes
20609 else
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20612
20613 ac_cv_lib_db_db_open=no
20614 fi
20615
20616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20617 conftest$ac_exeext conftest.$ac_ext
20618 LIBS=$ac_check_lib_save_LIBS
20619 fi
20620 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5
20621 echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6; }
20622 if test $ac_cv_lib_db_db_open = yes; then
20623 LIBDB=-ldb ; LIBS="-ldb $LIBS"
20624 else
20625 { echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
20626 echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6; }
20627 if test "${ac_cv_lib_db_db_env_create+set}" = set; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 else
20630 ac_check_lib_save_LIBS=$LIBS
20631 LIBS="-ldb $LIBS"
20632 cat >conftest.$ac_ext <<_ACEOF
20633 /* confdefs.h. */
20634 _ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h. */
20638
20639 /* Override any GCC internal prototype to avoid an error.
20640 Use char because int might match the return type of a GCC
20641 builtin and then its argument prototype would still apply. */
20642 #ifdef __cplusplus
20643 extern "C"
20644 #endif
20645 char db_env_create ();
20646 int
20647 main ()
20648 {
20649 return db_env_create ();
20650 ;
20651 return 0;
20652 }
20653 _ACEOF
20654 rm -f conftest.$ac_objext conftest$ac_exeext
20655 if { (ac_try="$ac_link"
20656 case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20659 esac
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_link") 2>conftest.er1
20662 ac_status=$?
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } && {
20668 test -z "$ac_c_werror_flag" ||
20669 test ! -s conftest.err
20670 } && test -s conftest$ac_exeext &&
20671 $as_test_x conftest$ac_exeext; then
20672 ac_cv_lib_db_db_env_create=yes
20673 else
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20676
20677 ac_cv_lib_db_db_env_create=no
20678 fi
20679
20680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20681 conftest$ac_exeext conftest.$ac_ext
20682 LIBS=$ac_check_lib_save_LIBS
20683 fi
20684 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
20685 echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6; }
20686 if test $ac_cv_lib_db_db_env_create = yes; then
20687 LIBDB=-ldb; LIBS="-ldb $LIBS"
20688 fi
20689
20690
20691 fi
20692
20693 fi
20694
20695
20696 { echo "$as_me:$LINENO: checking for dbopen" >&5
20697 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; }
20698 if test "${ac_cv_func_dbopen+set}" = set; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20700 else
20701 cat >conftest.$ac_ext <<_ACEOF
20702 /* confdefs.h. */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707 /* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen.
20708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20709 #define dbopen innocuous_dbopen
20710
20711 /* System header to define __stub macros and hopefully few prototypes,
20712 which can conflict with char dbopen (); below.
20713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20714 <limits.h> exists even on freestanding compilers. */
20715
20716 #ifdef __STDC__
20717 # include <limits.h>
20718 #else
20719 # include <assert.h>
20720 #endif
20721
20722 #undef dbopen
20723
20724 /* Override any GCC internal prototype to avoid an error.
20725 Use char because int might match the return type of a GCC
20726 builtin and then its argument prototype would still apply. */
20727 #ifdef __cplusplus
20728 extern "C"
20729 #endif
20730 char dbopen ();
20731 /* The GNU C library defines this for functions which it implements
20732 to always fail with ENOSYS. Some functions are actually named
20733 something starting with __ and the normal name is an alias. */
20734 #if defined __stub_dbopen || defined __stub___dbopen
20735 choke me
20736 #endif
20737
20738 int
20739 main ()
20740 {
20741 return dbopen ();
20742 ;
20743 return 0;
20744 }
20745 _ACEOF
20746 rm -f conftest.$ac_objext conftest$ac_exeext
20747 if { (ac_try="$ac_link"
20748 case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_link") 2>conftest.er1
20754 ac_status=$?
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } && {
20760 test -z "$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20762 } && test -s conftest$ac_exeext &&
20763 $as_test_x conftest$ac_exeext; then
20764 ac_cv_func_dbopen=yes
20765 else
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20768
20769 ac_cv_func_dbopen=no
20770 fi
20771
20772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20773 conftest$ac_exeext conftest.$ac_ext
20774 fi
20775 { echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
20776 echo "${ECHO_T}$ac_cv_func_dbopen" >&6; }
20777 if test $ac_cv_func_dbopen = yes; then
20778 HAVE_BDB=1
20779 fi
20780
20781 { echo "$as_me:$LINENO: checking for db_open" >&5
20782 echo $ECHO_N "checking for db_open... $ECHO_C" >&6; }
20783 if test "${ac_cv_func_db_open+set}" = set; then
20784 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 else
20786 cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h. */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20792 /* Define db_open to an innocuous variant, in case <limits.h> declares db_open.
20793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20794 #define db_open innocuous_db_open
20795
20796 /* System header to define __stub macros and hopefully few prototypes,
20797 which can conflict with char db_open (); below.
20798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20799 <limits.h> exists even on freestanding compilers. */
20800
20801 #ifdef __STDC__
20802 # include <limits.h>
20803 #else
20804 # include <assert.h>
20805 #endif
20806
20807 #undef db_open
20808
20809 /* Override any GCC internal prototype to avoid an error.
20810 Use char because int might match the return type of a GCC
20811 builtin and then its argument prototype would still apply. */
20812 #ifdef __cplusplus
20813 extern "C"
20814 #endif
20815 char db_open ();
20816 /* The GNU C library defines this for functions which it implements
20817 to always fail with ENOSYS. Some functions are actually named
20818 something starting with __ and the normal name is an alias. */
20819 #if defined __stub_db_open || defined __stub___db_open
20820 choke me
20821 #endif
20822
20823 int
20824 main ()
20825 {
20826 return db_open ();
20827 ;
20828 return 0;
20829 }
20830 _ACEOF
20831 rm -f conftest.$ac_objext conftest$ac_exeext
20832 if { (ac_try="$ac_link"
20833 case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20836 esac
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_link") 2>conftest.er1
20839 ac_status=$?
20840 grep -v '^ *+' conftest.er1 >conftest.err
20841 rm -f conftest.er1
20842 cat conftest.err >&5
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); } && {
20845 test -z "$ac_c_werror_flag" ||
20846 test ! -s conftest.err
20847 } && test -s conftest$ac_exeext &&
20848 $as_test_x conftest$ac_exeext; then
20849 ac_cv_func_db_open=yes
20850 else
20851 echo "$as_me: failed program was:" >&5
20852 sed 's/^/| /' conftest.$ac_ext >&5
20853
20854 ac_cv_func_db_open=no
20855 fi
20856
20857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20858 conftest$ac_exeext conftest.$ac_ext
20859 fi
20860 { echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5
20861 echo "${ECHO_T}$ac_cv_func_db_open" >&6; }
20862 if test $ac_cv_func_db_open = yes; then
20863 HAVE_BDB=1
20864 fi
20865
20866 { echo "$as_me:$LINENO: checking for db_env_create" >&5
20867 echo $ECHO_N "checking for db_env_create... $ECHO_C" >&6; }
20868 if test "${ac_cv_func_db_env_create+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20870 else
20871 cat >conftest.$ac_ext <<_ACEOF
20872 /* confdefs.h. */
20873 _ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 /* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create.
20878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20879 #define db_env_create innocuous_db_env_create
20880
20881 /* System header to define __stub macros and hopefully few prototypes,
20882 which can conflict with char db_env_create (); below.
20883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20884 <limits.h> exists even on freestanding compilers. */
20885
20886 #ifdef __STDC__
20887 # include <limits.h>
20888 #else
20889 # include <assert.h>
20890 #endif
20891
20892 #undef db_env_create
20893
20894 /* Override any GCC internal prototype to avoid an error.
20895 Use char because int might match the return type of a GCC
20896 builtin and then its argument prototype would still apply. */
20897 #ifdef __cplusplus
20898 extern "C"
20899 #endif
20900 char db_env_create ();
20901 /* The GNU C library defines this for functions which it implements
20902 to always fail with ENOSYS. Some functions are actually named
20903 something starting with __ and the normal name is an alias. */
20904 #if defined __stub_db_env_create || defined __stub___db_env_create
20905 choke me
20906 #endif
20907
20908 int
20909 main ()
20910 {
20911 return db_env_create ();
20912 ;
20913 return 0;
20914 }
20915 _ACEOF
20916 rm -f conftest.$ac_objext conftest$ac_exeext
20917 if { (ac_try="$ac_link"
20918 case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20921 esac
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_link") 2>conftest.er1
20924 ac_status=$?
20925 grep -v '^ *+' conftest.er1 >conftest.err
20926 rm -f conftest.er1
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest$ac_exeext &&
20933 $as_test_x conftest$ac_exeext; then
20934 ac_cv_func_db_env_create=yes
20935 else
20936 echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20938
20939 ac_cv_func_db_env_create=no
20940 fi
20941
20942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20943 conftest$ac_exeext conftest.$ac_ext
20944 fi
20945 { echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5
20946 echo "${ECHO_T}$ac_cv_func_db_env_create" >&6; }
20947 if test $ac_cv_func_db_env_create = yes; then
20948 HAVE_BDB=1
20949 fi
20950
20951 fi
20952
20953 LIBS="$saveLIBS"
20954
20955 if test "$HAVE_GDBM$HAVE_BDB" = ""
20956 then
20957 { { echo "$as_me:$LINENO: error: Cannot find either the gdbm or the db library." >&5
20958 echo "$as_me: error: Cannot find either the gdbm or the db library." >&2;}
20959 { (exit 1); exit 1; }; }
20960 fi
20961
20962 USE_GDBM=0
20963 USE_DB=0
20964
20965 if test "$HAVE_GDBM" = "y"
20966 then
20967 LIBDB=""
20968 USE_GDBM=1
20969 DBSUBDIR=gdbmobj
20970 if test "$needs_withdb" = 1
20971 then
20972 ac_configure_args="$ac_configure_args --with-db=gdbm"
20973 fi
20974 dblibrary=gdbmobj/libgdbmobj.la
20975 else
20976 LIBGDBM=""
20977 USE_DB=1
20978 DBSUBDIR=bdbobj
20979 if test "$needs_withdb" = 1
20980 then
20981 ac_configure_args="$ac_configure_args --with-db=db"
20982 fi
20983 dblibrary=bdbobj/libbdbobj.la
20984 fi
20985
20986
20987
20988
20989
20990
20991
20992
20993 # Check whether --with-authuserdb was given.
20994 if test "${with_authuserdb+set}" = set; then
20995 withval=$with_authuserdb; doauthuserdb="$withval"
20996 else
20997 doauthuserdb="no"
20998 if test -d ${srcdir}/userdb
20999 then
21000 doauthuserdb="yes"
21001 fi
21002 fi
21003
21004
21005 if test "$doauthuserdb" = "no"
21006 then
21007 AUTHUSERDB=""
21008 else
21009 AUTHUSERDB="authuserdb"
21010 LIBAUTHUSERDB="libauthuserdb.la"
21011
21012 fi
21013
21014
21015 # Check whether --with-makedatprog was given.
21016 if test "${with_makedatprog+set}" = set; then
21017 withval=$with_makedatprog; :
21018 else
21019
21020 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
21021
21022 fi
21023
21024
21025 cat >dbobj.config <<EOF
21026 LIBDB=$LIBDB
21027 LIBGDBM=$LIBGDBM
21028 dblibrary=$dblibrary
21029 EOF
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039 userdb="$pkgconfdir/userdb"
21040
21041 # Check whether --with-userdb was given.
21042 if test "${with_userdb+set}" = set; then
21043 withval=$with_userdb; userdb="$withval"
21044 else
21045 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"
21046 fi
21047
21048
21049
21050 cat >>confdefs.h <<_ACEOF
21051 #define USERDB "$userdb"
21052 _ACEOF
21053
21054
21055
21056
21057 for ac_header in stdio.h
21058 do
21059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21064 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 fi
21066 ac_res=`eval echo '${'$as_ac_Header'}'`
21067 { echo "$as_me:$LINENO: result: $ac_res" >&5
21068 echo "${ECHO_T}$ac_res" >&6; }
21069 else
21070 # Is the header compilable?
21071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21073 cat >conftest.$ac_ext <<_ACEOF
21074 /* confdefs.h. */
21075 _ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 $ac_includes_default
21080 #include <$ac_header>
21081 _ACEOF
21082 rm -f conftest.$ac_objext
21083 if { (ac_try="$ac_compile"
21084 case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21087 esac
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_compile") 2>conftest.er1
21090 ac_status=$?
21091 grep -v '^ *+' conftest.er1 >conftest.err
21092 rm -f conftest.er1
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } && {
21096 test -z "$ac_c_werror_flag" ||
21097 test ! -s conftest.err
21098 } && test -s conftest.$ac_objext; then
21099 ac_header_compiler=yes
21100 else
21101 echo "$as_me: failed program was:" >&5
21102 sed 's/^/| /' conftest.$ac_ext >&5
21103
21104 ac_header_compiler=no
21105 fi
21106
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21109 echo "${ECHO_T}$ac_header_compiler" >&6; }
21110
21111 # Is the header present?
21112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21114 cat >conftest.$ac_ext <<_ACEOF
21115 /* confdefs.h. */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 #include <$ac_header>
21121 _ACEOF
21122 if { (ac_try="$ac_cpp conftest.$ac_ext"
21123 case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21129 ac_status=$?
21130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } >/dev/null && {
21135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21137 }; then
21138 ac_header_preproc=yes
21139 else
21140 echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21142
21143 ac_header_preproc=no
21144 fi
21145
21146 rm -f conftest.err conftest.$ac_ext
21147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21148 echo "${ECHO_T}$ac_header_preproc" >&6; }
21149
21150 # So? What about this header?
21151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21152 yes:no: )
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21157 ac_header_preproc=yes
21158 ;;
21159 no:yes:* )
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21172 ( cat <<\_ASBOX
21173 ## -------------------------------------------------- ##
21174 ## Report this to courier-users@lists.sourceforge.net ##
21175 ## -------------------------------------------------- ##
21176 _ASBOX
21177 ) | sed "s/^/$as_me: WARNING: /" >&2
21178 ;;
21179 esac
21180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21183 echo $ECHO_N "(cached) $ECHO_C" >&6
21184 else
21185 eval "$as_ac_Header=\$ac_header_preproc"
21186 fi
21187 ac_res=`eval echo '${'$as_ac_Header'}'`
21188 { echo "$as_me:$LINENO: result: $ac_res" >&5
21189 echo "${ECHO_T}$ac_res" >&6; }
21190
21191 fi
21192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21193 cat >>confdefs.h <<_ACEOF
21194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21195 _ACEOF
21196
21197 fi
21198
21199 done
21200
21201
21202
21203
21204
21205
21206 # Check whether --with-authpam was given.
21207 if test "${with_authpam+set}" = set; then
21208 withval=$with_authpam; doauthpam="$withval"
21209 fi
21210
21211
21212
21213
21214 for ac_header in security/pam_appl.h Pam/pam_appl.h
21215 do
21216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 fi
21223 ac_res=`eval echo '${'$as_ac_Header'}'`
21224 { echo "$as_me:$LINENO: result: $ac_res" >&5
21225 echo "${ECHO_T}$ac_res" >&6; }
21226 else
21227 # Is the header compilable?
21228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h. */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 $ac_includes_default
21237 #include <$ac_header>
21238 _ACEOF
21239 rm -f conftest.$ac_objext
21240 if { (ac_try="$ac_compile"
21241 case "(($ac_try" in
21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 *) ac_try_echo=$ac_try;;
21244 esac
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_compile") 2>conftest.er1
21247 ac_status=$?
21248 grep -v '^ *+' conftest.er1 >conftest.err
21249 rm -f conftest.er1
21250 cat conftest.err >&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } && {
21253 test -z "$ac_c_werror_flag" ||
21254 test ! -s conftest.err
21255 } && test -s conftest.$ac_objext; then
21256 ac_header_compiler=yes
21257 else
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21260
21261 ac_header_compiler=no
21262 fi
21263
21264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21266 echo "${ECHO_T}$ac_header_compiler" >&6; }
21267
21268 # Is the header present?
21269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21271 cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h. */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21277 #include <$ac_header>
21278 _ACEOF
21279 if { (ac_try="$ac_cpp conftest.$ac_ext"
21280 case "(($ac_try" in
21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282 *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21286 ac_status=$?
21287 grep -v '^ *+' conftest.er1 >conftest.err
21288 rm -f conftest.er1
21289 cat conftest.err >&5
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); } >/dev/null && {
21292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21293 test ! -s conftest.err
21294 }; then
21295 ac_header_preproc=yes
21296 else
21297 echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21299
21300 ac_header_preproc=no
21301 fi
21302
21303 rm -f conftest.err conftest.$ac_ext
21304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21305 echo "${ECHO_T}$ac_header_preproc" >&6; }
21306
21307 # So? What about this header?
21308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21309 yes:no: )
21310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21314 ac_header_preproc=yes
21315 ;;
21316 no:yes:* )
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21329 ( cat <<\_ASBOX
21330 ## -------------------------------------------------- ##
21331 ## Report this to courier-users@lists.sourceforge.net ##
21332 ## -------------------------------------------------- ##
21333 _ASBOX
21334 ) | sed "s/^/$as_me: WARNING: /" >&2
21335 ;;
21336 esac
21337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21341 else
21342 eval "$as_ac_Header=\$ac_header_preproc"
21343 fi
21344 ac_res=`eval echo '${'$as_ac_Header'}'`
21345 { echo "$as_me:$LINENO: result: $ac_res" >&5
21346 echo "${ECHO_T}$ac_res" >&6; }
21347
21348 fi
21349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21350 cat >>confdefs.h <<_ACEOF
21351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21352 _ACEOF
21353
21354 fi
21355
21356 done
21357
21358 if test "$doauthpam" = "no"
21359 then
21360 LIBDL=""
21361 else
21362 saveLIBS="$LIBS"
21363 LIBDL=""
21364 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21365 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
21366 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 else
21369 ac_check_lib_save_LIBS=$LIBS
21370 LIBS="-ldl $LIBS"
21371 cat >conftest.$ac_ext <<_ACEOF
21372 /* confdefs.h. */
21373 _ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21377
21378 /* Override any GCC internal prototype to avoid an error.
21379 Use char because int might match the return type of a GCC
21380 builtin and then its argument prototype would still apply. */
21381 #ifdef __cplusplus
21382 extern "C"
21383 #endif
21384 char dlopen ();
21385 int
21386 main ()
21387 {
21388 return dlopen ();
21389 ;
21390 return 0;
21391 }
21392 _ACEOF
21393 rm -f conftest.$ac_objext conftest$ac_exeext
21394 if { (ac_try="$ac_link"
21395 case "(($ac_try" in
21396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397 *) ac_try_echo=$ac_try;;
21398 esac
21399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400 (eval "$ac_link") 2>conftest.er1
21401 ac_status=$?
21402 grep -v '^ *+' conftest.er1 >conftest.err
21403 rm -f conftest.er1
21404 cat conftest.err >&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } && {
21407 test -z "$ac_c_werror_flag" ||
21408 test ! -s conftest.err
21409 } && test -s conftest$ac_exeext &&
21410 $as_test_x conftest$ac_exeext; then
21411 ac_cv_lib_dl_dlopen=yes
21412 else
21413 echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21415
21416 ac_cv_lib_dl_dlopen=no
21417 fi
21418
21419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21420 conftest$ac_exeext conftest.$ac_ext
21421 LIBS=$ac_check_lib_save_LIBS
21422 fi
21423 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21424 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21425 if test $ac_cv_lib_dl_dlopen = yes; then
21426 LIBDL="-ldl"
21427 fi
21428
21429 LIBS="$saveLIBS"
21430
21431 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
21432 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
21433 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
21434 echo $ECHO_N "(cached) $ECHO_C" >&6
21435 else
21436 ac_check_lib_save_LIBS=$LIBS
21437 LIBS="-lpam $LIBDL $LIBS"
21438 cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h. */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444
21445 /* Override any GCC internal prototype to avoid an error.
21446 Use char because int might match the return type of a GCC
21447 builtin and then its argument prototype would still apply. */
21448 #ifdef __cplusplus
21449 extern "C"
21450 #endif
21451 char pam_start ();
21452 int
21453 main ()
21454 {
21455 return pam_start ();
21456 ;
21457 return 0;
21458 }
21459 _ACEOF
21460 rm -f conftest.$ac_objext conftest$ac_exeext
21461 if { (ac_try="$ac_link"
21462 case "(($ac_try" in
21463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21465 esac
21466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21467 (eval "$ac_link") 2>conftest.er1
21468 ac_status=$?
21469 grep -v '^ *+' conftest.er1 >conftest.err
21470 rm -f conftest.er1
21471 cat conftest.err >&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); } && {
21474 test -z "$ac_c_werror_flag" ||
21475 test ! -s conftest.err
21476 } && test -s conftest$ac_exeext &&
21477 $as_test_x conftest$ac_exeext; then
21478 ac_cv_lib_pam_pam_start=yes
21479 else
21480 echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21482
21483 ac_cv_lib_pam_pam_start=no
21484 fi
21485
21486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21487 conftest$ac_exeext conftest.$ac_ext
21488 LIBS=$ac_check_lib_save_LIBS
21489 fi
21490 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
21491 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
21492 if test $ac_cv_lib_pam_pam_start = yes; then
21493 HAVE_PAM=1
21494 LIBS="-lpam $LIBDL $LIBS"
21495
21496 for ac_func in pam_setcred
21497 do
21498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21502 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 else
21504 cat >conftest.$ac_ext <<_ACEOF
21505 /* confdefs.h. */
21506 _ACEOF
21507 cat confdefs.h >>conftest.$ac_ext
21508 cat >>conftest.$ac_ext <<_ACEOF
21509 /* end confdefs.h. */
21510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21512 #define $ac_func innocuous_$ac_func
21513
21514 /* System header to define __stub macros and hopefully few prototypes,
21515 which can conflict with char $ac_func (); below.
21516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21517 <limits.h> exists even on freestanding compilers. */
21518
21519 #ifdef __STDC__
21520 # include <limits.h>
21521 #else
21522 # include <assert.h>
21523 #endif
21524
21525 #undef $ac_func
21526
21527 /* Override any GCC internal prototype to avoid an error.
21528 Use char because int might match the return type of a GCC
21529 builtin and then its argument prototype would still apply. */
21530 #ifdef __cplusplus
21531 extern "C"
21532 #endif
21533 char $ac_func ();
21534 /* The GNU C library defines this for functions which it implements
21535 to always fail with ENOSYS. Some functions are actually named
21536 something starting with __ and the normal name is an alias. */
21537 #if defined __stub_$ac_func || defined __stub___$ac_func
21538 choke me
21539 #endif
21540
21541 int
21542 main ()
21543 {
21544 return $ac_func ();
21545 ;
21546 return 0;
21547 }
21548 _ACEOF
21549 rm -f conftest.$ac_objext conftest$ac_exeext
21550 if { (ac_try="$ac_link"
21551 case "(($ac_try" in
21552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21553 *) ac_try_echo=$ac_try;;
21554 esac
21555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21556 (eval "$ac_link") 2>conftest.er1
21557 ac_status=$?
21558 grep -v '^ *+' conftest.er1 >conftest.err
21559 rm -f conftest.er1
21560 cat conftest.err >&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } && {
21563 test -z "$ac_c_werror_flag" ||
21564 test ! -s conftest.err
21565 } && test -s conftest$ac_exeext &&
21566 $as_test_x conftest$ac_exeext; then
21567 eval "$as_ac_var=yes"
21568 else
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21571
21572 eval "$as_ac_var=no"
21573 fi
21574
21575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21576 conftest$ac_exeext conftest.$ac_ext
21577 fi
21578 ac_res=`eval echo '${'$as_ac_var'}'`
21579 { echo "$as_me:$LINENO: result: $ac_res" >&5
21580 echo "${ECHO_T}$ac_res" >&6; }
21581 if test `eval echo '${'$as_ac_var'}'` = yes; then
21582 cat >>confdefs.h <<_ACEOF
21583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21584 _ACEOF
21585
21586 fi
21587 done
21588
21589 else
21590 HAVE_PAM=0
21591 fi
21592
21593 LIBS="$saveLIBS"
21594 fi
21595
21596
21597 LIBAUTHPAM=""
21598 if test "$HAVE_PAM" = 1
21599 then
21600 LIBAUTHPAM=libauthpam.la
21601 fi
21602
21603
21604 # Check whether --with-authpam-libraries was given.
21605 if test "${with_authpam_libraries+set}" = set; then
21606 withval=$with_authpam_libraries; authpamcrypt="$withval"
21607 fi
21608
21609
21610 AUTHPAMCRYPT="$authpamcrypt"
21611
21612
21613
21614
21615
21616
21617
21618 # Check whether --with-authldap was given.
21619 if test "${with_authldap+set}" = set; then
21620 withval=$with_authldap; doauthldap="$withval"
21621 else
21622 doauthldap="yes"
21623 fi
21624
21625
21626
21627 for ac_header in lber.h
21628 do
21629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21634 echo $ECHO_N "(cached) $ECHO_C" >&6
21635 fi
21636 ac_res=`eval echo '${'$as_ac_Header'}'`
21637 { echo "$as_me:$LINENO: result: $ac_res" >&5
21638 echo "${ECHO_T}$ac_res" >&6; }
21639 else
21640 # Is the header compilable?
21641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21643 cat >conftest.$ac_ext <<_ACEOF
21644 /* confdefs.h. */
21645 _ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 $ac_includes_default
21650 #include <$ac_header>
21651 _ACEOF
21652 rm -f conftest.$ac_objext
21653 if { (ac_try="$ac_compile"
21654 case "(($ac_try" in
21655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656 *) ac_try_echo=$ac_try;;
21657 esac
21658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21659 (eval "$ac_compile") 2>conftest.er1
21660 ac_status=$?
21661 grep -v '^ *+' conftest.er1 >conftest.err
21662 rm -f conftest.er1
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest.$ac_objext; then
21669 ac_header_compiler=yes
21670 else
21671 echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674 ac_header_compiler=no
21675 fi
21676
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21679 echo "${ECHO_T}$ac_header_compiler" >&6; }
21680
21681 # Is the header present?
21682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21684 cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h. */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21690 #include <$ac_header>
21691 _ACEOF
21692 if { (ac_try="$ac_cpp conftest.$ac_ext"
21693 case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21699 ac_status=$?
21700 grep -v '^ *+' conftest.er1 >conftest.err
21701 rm -f conftest.er1
21702 cat conftest.err >&5
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } >/dev/null && {
21705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21706 test ! -s conftest.err
21707 }; then
21708 ac_header_preproc=yes
21709 else
21710 echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21712
21713 ac_header_preproc=no
21714 fi
21715
21716 rm -f conftest.err conftest.$ac_ext
21717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21718 echo "${ECHO_T}$ac_header_preproc" >&6; }
21719
21720 # So? What about this header?
21721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21722 yes:no: )
21723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21727 ac_header_preproc=yes
21728 ;;
21729 no:yes:* )
21730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21742 ( cat <<\_ASBOX
21743 ## -------------------------------------------------- ##
21744 ## Report this to courier-users@lists.sourceforge.net ##
21745 ## -------------------------------------------------- ##
21746 _ASBOX
21747 ) | sed "s/^/$as_me: WARNING: /" >&2
21748 ;;
21749 esac
21750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21753 echo $ECHO_N "(cached) $ECHO_C" >&6
21754 else
21755 eval "$as_ac_Header=\$ac_header_preproc"
21756 fi
21757 ac_res=`eval echo '${'$as_ac_Header'}'`
21758 { echo "$as_me:$LINENO: result: $ac_res" >&5
21759 echo "${ECHO_T}$ac_res" >&6; }
21760
21761 fi
21762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21763 cat >>confdefs.h <<_ACEOF
21764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21765 _ACEOF
21766
21767 fi
21768
21769 done
21770
21771
21772 for ac_header in ldap.h
21773 do
21774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21780 fi
21781 ac_res=`eval echo '${'$as_ac_Header'}'`
21782 { echo "$as_me:$LINENO: result: $ac_res" >&5
21783 echo "${ECHO_T}$ac_res" >&6; }
21784 else
21785 # Is the header compilable?
21786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21788 cat >conftest.$ac_ext <<_ACEOF
21789 /* confdefs.h. */
21790 _ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h. */
21794 $ac_includes_default
21795 #include <$ac_header>
21796 _ACEOF
21797 rm -f conftest.$ac_objext
21798 if { (ac_try="$ac_compile"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_compile") 2>conftest.er1
21805 ac_status=$?
21806 grep -v '^ *+' conftest.er1 >conftest.err
21807 rm -f conftest.er1
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } && {
21811 test -z "$ac_c_werror_flag" ||
21812 test ! -s conftest.err
21813 } && test -s conftest.$ac_objext; then
21814 ac_header_compiler=yes
21815 else
21816 echo "$as_me: failed program was:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21818
21819 ac_header_compiler=no
21820 fi
21821
21822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21824 echo "${ECHO_T}$ac_header_compiler" >&6; }
21825
21826 # Is the header present?
21827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21829 cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h. */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835 #include <$ac_header>
21836 _ACEOF
21837 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21851 test ! -s conftest.err
21852 }; then
21853 ac_header_preproc=yes
21854 else
21855 echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21857
21858 ac_header_preproc=no
21859 fi
21860
21861 rm -f conftest.err conftest.$ac_ext
21862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21863 echo "${ECHO_T}$ac_header_preproc" >&6; }
21864
21865 # So? What about this header?
21866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21867 yes:no: )
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21872 ac_header_preproc=yes
21873 ;;
21874 no:yes:* )
21875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21879 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21882 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21887 ( cat <<\_ASBOX
21888 ## -------------------------------------------------- ##
21889 ## Report this to courier-users@lists.sourceforge.net ##
21890 ## -------------------------------------------------- ##
21891 _ASBOX
21892 ) | sed "s/^/$as_me: WARNING: /" >&2
21893 ;;
21894 esac
21895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21898 echo $ECHO_N "(cached) $ECHO_C" >&6
21899 else
21900 eval "$as_ac_Header=\$ac_header_preproc"
21901 fi
21902 ac_res=`eval echo '${'$as_ac_Header'}'`
21903 { echo "$as_me:$LINENO: result: $ac_res" >&5
21904 echo "${ECHO_T}$ac_res" >&6; }
21905
21906 fi
21907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21908 cat >>confdefs.h <<_ACEOF
21909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21910 _ACEOF
21911
21912 fi
21913
21914 done
21915
21916
21917 for ac_header in netinet/in.h
21918 do
21919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 fi
21926 ac_res=`eval echo '${'$as_ac_Header'}'`
21927 { echo "$as_me:$LINENO: result: $ac_res" >&5
21928 echo "${ECHO_T}$ac_res" >&6; }
21929 else
21930 # Is the header compilable?
21931 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21933 cat >conftest.$ac_ext <<_ACEOF
21934 /* confdefs.h. */
21935 _ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 $ac_includes_default
21940 #include <$ac_header>
21941 _ACEOF
21942 rm -f conftest.$ac_objext
21943 if { (ac_try="$ac_compile"
21944 case "(($ac_try" in
21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21947 esac
21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949 (eval "$ac_compile") 2>conftest.er1
21950 ac_status=$?
21951 grep -v '^ *+' conftest.er1 >conftest.err
21952 rm -f conftest.er1
21953 cat conftest.err >&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); } && {
21956 test -z "$ac_c_werror_flag" ||
21957 test ! -s conftest.err
21958 } && test -s conftest.$ac_objext; then
21959 ac_header_compiler=yes
21960 else
21961 echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21963
21964 ac_header_compiler=no
21965 fi
21966
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21969 echo "${ECHO_T}$ac_header_compiler" >&6; }
21970
21971 # Is the header present?
21972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21974 cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h. */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 #include <$ac_header>
21981 _ACEOF
21982 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
21995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 }; then
21998 ac_header_preproc=yes
21999 else
22000 echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22002
22003 ac_header_preproc=no
22004 fi
22005
22006 rm -f conftest.err conftest.$ac_ext
22007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22008 echo "${ECHO_T}$ac_header_preproc" >&6; }
22009
22010 # So? What about this header?
22011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22012 yes:no: )
22013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22017 ac_header_preproc=yes
22018 ;;
22019 no:yes:* )
22020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22032 ( cat <<\_ASBOX
22033 ## -------------------------------------------------- ##
22034 ## Report this to courier-users@lists.sourceforge.net ##
22035 ## -------------------------------------------------- ##
22036 _ASBOX
22037 ) | sed "s/^/$as_me: WARNING: /" >&2
22038 ;;
22039 esac
22040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22044 else
22045 eval "$as_ac_Header=\$ac_header_preproc"
22046 fi
22047 ac_res=`eval echo '${'$as_ac_Header'}'`
22048 { echo "$as_me:$LINENO: result: $ac_res" >&5
22049 echo "${ECHO_T}$ac_res" >&6; }
22050
22051 fi
22052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22053 cat >>confdefs.h <<_ACEOF
22054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22055 _ACEOF
22056
22057 fi
22058
22059 done
22060
22061
22062 if test "$doauthldap" = "no"
22063 then
22064 HAVE_LDAP=0
22065 else
22066 saveLIBS="$LIBS"
22067 LIBS="$NETLIBS $LIBS"
22068 LDAPLIBS=""
22069
22070 { echo "$as_me:$LINENO: checking whether -lresolv is needed for res_query" >&5
22071 echo $ECHO_N "checking whether -lresolv is needed for res_query... $ECHO_C" >&6; }
22072 cat >conftest.$ac_ext <<_ACEOF
22073 /* confdefs.h. */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h. */
22078
22079 #include <sys/types.h>
22080 #if HAVE_NETINET_IN_H
22081 #include <netinet/in.h>
22082 #endif
22083 #include <resolv.h>
22084
22085 void (*func)()= (void (*)())res_query;
22086
22087 int
22088 main ()
22089 {
22090 (*func)();
22091 ;
22092 return 0;
22093 }
22094 _ACEOF
22095 rm -f conftest.$ac_objext conftest$ac_exeext
22096 if { (ac_try="$ac_link"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22100 esac
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_link") 2>conftest.er1
22103 ac_status=$?
22104 grep -v '^ *+' conftest.er1 >conftest.err
22105 rm -f conftest.er1
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } && {
22109 test -z "$ac_c_werror_flag" ||
22110 test ! -s conftest.err
22111 } && test -s conftest$ac_exeext &&
22112 $as_test_x conftest$ac_exeext; then
22113 { echo "$as_me:$LINENO: result: no" >&5
22114 echo "${ECHO_T}no" >&6; }
22115 else
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22118
22119
22120 LIBS="-lresolv $LIBS"
22121
22122 cat >conftest.$ac_ext <<_ACEOF
22123 /* confdefs.h. */
22124 _ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128
22129 #include <sys/types.h>
22130 #if HAVE_NETINET_IN_H
22131 #include <netinet/in.h>
22132 #endif
22133 #include <resolv.h>
22134
22135 void (*func)()= (void (*)())res_query;
22136
22137 int
22138 main ()
22139 {
22140 (*func)();
22141 ;
22142 return 0;
22143 }
22144 _ACEOF
22145 rm -f conftest.$ac_objext conftest$ac_exeext
22146 if { (ac_try="$ac_link"
22147 case "(($ac_try" in
22148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_link") 2>conftest.er1
22153 ac_status=$?
22154 grep -v '^ *+' conftest.er1 >conftest.err
22155 rm -f conftest.er1
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } && {
22159 test -z "$ac_c_werror_flag" ||
22160 test ! -s conftest.err
22161 } && test -s conftest$ac_exeext &&
22162 $as_test_x conftest$ac_exeext; then
22163
22164 LDAPLIBS="-lresolv $LDAPLIBS"
22165 HAVE_LDAP=1
22166 { echo "$as_me:$LINENO: result: yes" >&5
22167 echo "${ECHO_T}yes" >&6; }
22168
22169 else
22170 echo "$as_me: failed program was:" >&5
22171 sed 's/^/| /' conftest.$ac_ext >&5
22172
22173 { { echo "$as_me:$LINENO: error: Cannot find function res_query" >&5
22174 echo "$as_me: error: Cannot find function res_query" >&2;}
22175 { (exit 1); exit 1; }; }
22176 fi
22177
22178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22179 conftest$ac_exeext conftest.$ac_ext
22180
22181 fi
22182
22183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22184 conftest$ac_exeext conftest.$ac_ext
22185
22186 { echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
22187 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6; }
22188 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22190 else
22191 ac_check_lib_save_LIBS=$LIBS
22192 LIBS="-llber $LIBS"
22193 cat >conftest.$ac_ext <<_ACEOF
22194 /* confdefs.h. */
22195 _ACEOF
22196 cat confdefs.h >>conftest.$ac_ext
22197 cat >>conftest.$ac_ext <<_ACEOF
22198 /* end confdefs.h. */
22199
22200 /* Override any GCC internal prototype to avoid an error.
22201 Use char because int might match the return type of a GCC
22202 builtin and then its argument prototype would still apply. */
22203 #ifdef __cplusplus
22204 extern "C"
22205 #endif
22206 char ber_scanf ();
22207 int
22208 main ()
22209 {
22210 return ber_scanf ();
22211 ;
22212 return 0;
22213 }
22214 _ACEOF
22215 rm -f conftest.$ac_objext conftest$ac_exeext
22216 if { (ac_try="$ac_link"
22217 case "(($ac_try" in
22218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22220 esac
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_link") 2>conftest.er1
22223 ac_status=$?
22224 grep -v '^ *+' conftest.er1 >conftest.err
22225 rm -f conftest.er1
22226 cat conftest.err >&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } && {
22229 test -z "$ac_c_werror_flag" ||
22230 test ! -s conftest.err
22231 } && test -s conftest$ac_exeext &&
22232 $as_test_x conftest$ac_exeext; then
22233 ac_cv_lib_lber_ber_scanf=yes
22234 else
22235 echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22237
22238 ac_cv_lib_lber_ber_scanf=no
22239 fi
22240
22241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22242 conftest$ac_exeext conftest.$ac_ext
22243 LIBS=$ac_check_lib_save_LIBS
22244 fi
22245 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
22246 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6; }
22247 if test $ac_cv_lib_lber_ber_scanf = yes; then
22248 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS"
22249 fi
22250
22251 { echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
22252 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6; }
22253 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
22254 echo $ECHO_N "(cached) $ECHO_C" >&6
22255 else
22256 ac_check_lib_save_LIBS=$LIBS
22257 LIBS="-lldap $LIBS"
22258 cat >conftest.$ac_ext <<_ACEOF
22259 /* confdefs.h. */
22260 _ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22264
22265 /* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22268 #ifdef __cplusplus
22269 extern "C"
22270 #endif
22271 char ldap_open ();
22272 int
22273 main ()
22274 {
22275 return ldap_open ();
22276 ;
22277 return 0;
22278 }
22279 _ACEOF
22280 rm -f conftest.$ac_objext conftest$ac_exeext
22281 if { (ac_try="$ac_link"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22285 esac
22286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_link") 2>conftest.er1
22288 ac_status=$?
22289 grep -v '^ *+' conftest.er1 >conftest.err
22290 rm -f conftest.er1
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); } && {
22294 test -z "$ac_c_werror_flag" ||
22295 test ! -s conftest.err
22296 } && test -s conftest$ac_exeext &&
22297 $as_test_x conftest$ac_exeext; then
22298 ac_cv_lib_ldap_ldap_open=yes
22299 else
22300 echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22302
22303 ac_cv_lib_ldap_ldap_open=no
22304 fi
22305
22306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22307 conftest$ac_exeext conftest.$ac_ext
22308 LIBS=$ac_check_lib_save_LIBS
22309 fi
22310 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
22311 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6; }
22312 if test $ac_cv_lib_ldap_ldap_open = yes; then
22313 LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS"
22314 fi
22315
22316 { echo "$as_me:$LINENO: checking for ldap_search_st" >&5
22317 echo $ECHO_N "checking for ldap_search_st... $ECHO_C" >&6; }
22318 if test "${ac_cv_func_ldap_search_st+set}" = set; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 else
22321 cat >conftest.$ac_ext <<_ACEOF
22322 /* confdefs.h. */
22323 _ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h. */
22327 /* Define ldap_search_st to an innocuous variant, in case <limits.h> declares ldap_search_st.
22328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22329 #define ldap_search_st innocuous_ldap_search_st
22330
22331 /* System header to define __stub macros and hopefully few prototypes,
22332 which can conflict with char ldap_search_st (); below.
22333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22334 <limits.h> exists even on freestanding compilers. */
22335
22336 #ifdef __STDC__
22337 # include <limits.h>
22338 #else
22339 # include <assert.h>
22340 #endif
22341
22342 #undef ldap_search_st
22343
22344 /* Override any GCC internal prototype to avoid an error.
22345 Use char because int might match the return type of a GCC
22346 builtin and then its argument prototype would still apply. */
22347 #ifdef __cplusplus
22348 extern "C"
22349 #endif
22350 char ldap_search_st ();
22351 /* The GNU C library defines this for functions which it implements
22352 to always fail with ENOSYS. Some functions are actually named
22353 something starting with __ and the normal name is an alias. */
22354 #if defined __stub_ldap_search_st || defined __stub___ldap_search_st
22355 choke me
22356 #endif
22357
22358 int
22359 main ()
22360 {
22361 return ldap_search_st ();
22362 ;
22363 return 0;
22364 }
22365 _ACEOF
22366 rm -f conftest.$ac_objext conftest$ac_exeext
22367 if { (ac_try="$ac_link"
22368 case "(($ac_try" in
22369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22370 *) ac_try_echo=$ac_try;;
22371 esac
22372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22373 (eval "$ac_link") 2>conftest.er1
22374 ac_status=$?
22375 grep -v '^ *+' conftest.er1 >conftest.err
22376 rm -f conftest.er1
22377 cat conftest.err >&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } && {
22380 test -z "$ac_c_werror_flag" ||
22381 test ! -s conftest.err
22382 } && test -s conftest$ac_exeext &&
22383 $as_test_x conftest$ac_exeext; then
22384 ac_cv_func_ldap_search_st=yes
22385 else
22386 echo "$as_me: failed program was:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22388
22389 ac_cv_func_ldap_search_st=no
22390 fi
22391
22392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22393 conftest$ac_exeext conftest.$ac_ext
22394 fi
22395 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_search_st" >&5
22396 echo "${ECHO_T}$ac_cv_func_ldap_search_st" >&6; }
22397 if test $ac_cv_func_ldap_search_st = yes; then
22398 HAVE_LDAP=1
22399 else
22400 HAVE_LDAP=0
22401 fi
22402
22403 { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
22404 echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; }
22405 if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
22406 echo $ECHO_N "(cached) $ECHO_C" >&6
22407 else
22408 cat >conftest.$ac_ext <<_ACEOF
22409 /* confdefs.h. */
22410 _ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22414 /* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s.
22415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22416 #define ldap_start_tls_s innocuous_ldap_start_tls_s
22417
22418 /* System header to define __stub macros and hopefully few prototypes,
22419 which can conflict with char ldap_start_tls_s (); below.
22420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22421 <limits.h> exists even on freestanding compilers. */
22422
22423 #ifdef __STDC__
22424 # include <limits.h>
22425 #else
22426 # include <assert.h>
22427 #endif
22428
22429 #undef ldap_start_tls_s
22430
22431 /* Override any GCC internal prototype to avoid an error.
22432 Use char because int might match the return type of a GCC
22433 builtin and then its argument prototype would still apply. */
22434 #ifdef __cplusplus
22435 extern "C"
22436 #endif
22437 char ldap_start_tls_s ();
22438 /* The GNU C library defines this for functions which it implements
22439 to always fail with ENOSYS. Some functions are actually named
22440 something starting with __ and the normal name is an alias. */
22441 #if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s
22442 choke me
22443 #endif
22444
22445 int
22446 main ()
22447 {
22448 return ldap_start_tls_s ();
22449 ;
22450 return 0;
22451 }
22452 _ACEOF
22453 rm -f conftest.$ac_objext conftest$ac_exeext
22454 if { (ac_try="$ac_link"
22455 case "(($ac_try" in
22456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457 *) ac_try_echo=$ac_try;;
22458 esac
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460 (eval "$ac_link") 2>conftest.er1
22461 ac_status=$?
22462 grep -v '^ *+' conftest.er1 >conftest.err
22463 rm -f conftest.er1
22464 cat conftest.err >&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } && {
22467 test -z "$ac_c_werror_flag" ||
22468 test ! -s conftest.err
22469 } && test -s conftest$ac_exeext &&
22470 $as_test_x conftest$ac_exeext; then
22471 ac_cv_func_ldap_start_tls_s=yes
22472 else
22473 echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22475
22476 ac_cv_func_ldap_start_tls_s=no
22477 fi
22478
22479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22480 conftest$ac_exeext conftest.$ac_ext
22481 fi
22482 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
22483 echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; }
22484 if test $ac_cv_func_ldap_start_tls_s = yes; then
22485 HAVE_LDAP_TLS=1
22486 else
22487 HAVE_LDAP_TLS=0
22488 fi
22489
22490 { echo "$as_me:$LINENO: checking for ldap_result2error" >&5
22491 echo $ECHO_N "checking for ldap_result2error... $ECHO_C" >&6; }
22492 if test "${ac_cv_func_ldap_result2error+set}" = set; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22494 else
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h. */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 /* Define ldap_result2error to an innocuous variant, in case <limits.h> declares ldap_result2error.
22502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22503 #define ldap_result2error innocuous_ldap_result2error
22504
22505 /* System header to define __stub macros and hopefully few prototypes,
22506 which can conflict with char ldap_result2error (); below.
22507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22508 <limits.h> exists even on freestanding compilers. */
22509
22510 #ifdef __STDC__
22511 # include <limits.h>
22512 #else
22513 # include <assert.h>
22514 #endif
22515
22516 #undef ldap_result2error
22517
22518 /* Override any GCC internal prototype to avoid an error.
22519 Use char because int might match the return type of a GCC
22520 builtin and then its argument prototype would still apply. */
22521 #ifdef __cplusplus
22522 extern "C"
22523 #endif
22524 char ldap_result2error ();
22525 /* The GNU C library defines this for functions which it implements
22526 to always fail with ENOSYS. Some functions are actually named
22527 something starting with __ and the normal name is an alias. */
22528 #if defined __stub_ldap_result2error || defined __stub___ldap_result2error
22529 choke me
22530 #endif
22531
22532 int
22533 main ()
22534 {
22535 return ldap_result2error ();
22536 ;
22537 return 0;
22538 }
22539 _ACEOF
22540 rm -f conftest.$ac_objext conftest$ac_exeext
22541 if { (ac_try="$ac_link"
22542 case "(($ac_try" in
22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22545 esac
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_link") 2>conftest.er1
22548 ac_status=$?
22549 grep -v '^ *+' conftest.er1 >conftest.err
22550 rm -f conftest.er1
22551 cat conftest.err >&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } && {
22554 test -z "$ac_c_werror_flag" ||
22555 test ! -s conftest.err
22556 } && test -s conftest$ac_exeext &&
22557 $as_test_x conftest$ac_exeext; then
22558 ac_cv_func_ldap_result2error=yes
22559 else
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22562
22563 ac_cv_func_ldap_result2error=no
22564 fi
22565
22566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22567 conftest$ac_exeext conftest.$ac_ext
22568 fi
22569 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_result2error" >&5
22570 echo "${ECHO_T}$ac_cv_func_ldap_result2error" >&6; }
22571 if test $ac_cv_func_ldap_result2error = yes; then
22572 HAVE_LDAP_RESULT2ERROR=1
22573 else
22574 HAVE_LDAP_RESULT2ERROR=0
22575 fi
22576
22577 { echo "$as_me:$LINENO: checking for ldap_parse_result" >&5
22578 echo $ECHO_N "checking for ldap_parse_result... $ECHO_C" >&6; }
22579 if test "${ac_cv_func_ldap_parse_result+set}" = set; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582 cat >conftest.$ac_ext <<_ACEOF
22583 /* confdefs.h. */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 /* Define ldap_parse_result to an innocuous variant, in case <limits.h> declares ldap_parse_result.
22589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22590 #define ldap_parse_result innocuous_ldap_parse_result
22591
22592 /* System header to define __stub macros and hopefully few prototypes,
22593 which can conflict with char ldap_parse_result (); below.
22594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22595 <limits.h> exists even on freestanding compilers. */
22596
22597 #ifdef __STDC__
22598 # include <limits.h>
22599 #else
22600 # include <assert.h>
22601 #endif
22602
22603 #undef ldap_parse_result
22604
22605 /* Override any GCC internal prototype to avoid an error.
22606 Use char because int might match the return type of a GCC
22607 builtin and then its argument prototype would still apply. */
22608 #ifdef __cplusplus
22609 extern "C"
22610 #endif
22611 char ldap_parse_result ();
22612 /* The GNU C library defines this for functions which it implements
22613 to always fail with ENOSYS. Some functions are actually named
22614 something starting with __ and the normal name is an alias. */
22615 #if defined __stub_ldap_parse_result || defined __stub___ldap_parse_result
22616 choke me
22617 #endif
22618
22619 int
22620 main ()
22621 {
22622 return ldap_parse_result ();
22623 ;
22624 return 0;
22625 }
22626 _ACEOF
22627 rm -f conftest.$ac_objext conftest$ac_exeext
22628 if { (ac_try="$ac_link"
22629 case "(($ac_try" in
22630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631 *) ac_try_echo=$ac_try;;
22632 esac
22633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634 (eval "$ac_link") 2>conftest.er1
22635 ac_status=$?
22636 grep -v '^ *+' conftest.er1 >conftest.err
22637 rm -f conftest.er1
22638 cat conftest.err >&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); } && {
22641 test -z "$ac_c_werror_flag" ||
22642 test ! -s conftest.err
22643 } && test -s conftest$ac_exeext &&
22644 $as_test_x conftest$ac_exeext; then
22645 ac_cv_func_ldap_parse_result=yes
22646 else
22647 echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22649
22650 ac_cv_func_ldap_parse_result=no
22651 fi
22652
22653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22654 conftest$ac_exeext conftest.$ac_ext
22655 fi
22656 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_parse_result" >&5
22657 echo "${ECHO_T}$ac_cv_func_ldap_parse_result" >&6; }
22658 if test $ac_cv_func_ldap_parse_result = yes; then
22659 HAVE_LDAP_PARSE_RESULT=1
22660 else
22661 HAVE_LDAP_PARSE_RESULT=0
22662 fi
22663
22664 LIBS="$saveLIBS"
22665 fi
22666
22667
22668 # Check whether --with-authldaprc was given.
22669 if test "${with_authldaprc+set}" = set; then
22670 withval=$with_authldaprc; authldaprc="$withval"
22671 else
22672 authldaprc="$pkgconfdir/authldaprc"
22673 fi
22674
22675
22676
22677 LIBAUTHLDAP=""
22678 if test "$HAVE_LDAP" = 1
22679 then
22680 LIBAUTHLDAP="libauthldap.la"
22681 else
22682 authldaprc=""
22683 fi
22684
22685
22686
22687 if test "$HAVE_LDAP" = 1; then
22688 HAVE_LDAP_TRUE=
22689 HAVE_LDAP_FALSE='#'
22690 else
22691 HAVE_LDAP_TRUE='#'
22692 HAVE_LDAP_FALSE=
22693 fi
22694
22695
22696 cat >>confdefs.h <<_ACEOF
22697 #define HAVE_LDAP_TLS $HAVE_LDAP_TLS
22698 _ACEOF
22699
22700
22701 cat >>confdefs.h <<_ACEOF
22702 #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
22703 _ACEOF
22704
22705
22706 cat >>confdefs.h <<_ACEOF
22707 #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
22708 _ACEOF
22709
22710
22711
22712
22713
22714 # Check whether --with-authpwd was given.
22715 if test "${with_authpwd+set}" = set; then
22716 withval=$with_authpwd; doauthpwd="$withval"
22717 else
22718 doauthpwd="yes"
22719 test "$HAVE_PAM" = 1 && doauthpwd="no"
22720 test "$HAVE_LDAP" = 1 && doauthpwd="no"
22721
22722 fi
22723
22724
22725 HAVE_PWD=1
22726 if test "$doauthpwd" = "no"
22727 then
22728 HAVE_PWD=0
22729 fi
22730
22731 for ac_func in endpwent
22732 do
22733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22737 echo $ECHO_N "(cached) $ECHO_C" >&6
22738 else
22739 cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h. */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22747 #define $ac_func innocuous_$ac_func
22748
22749 /* System header to define __stub macros and hopefully few prototypes,
22750 which can conflict with char $ac_func (); below.
22751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22752 <limits.h> exists even on freestanding compilers. */
22753
22754 #ifdef __STDC__
22755 # include <limits.h>
22756 #else
22757 # include <assert.h>
22758 #endif
22759
22760 #undef $ac_func
22761
22762 /* Override any GCC internal prototype to avoid an error.
22763 Use char because int might match the return type of a GCC
22764 builtin and then its argument prototype would still apply. */
22765 #ifdef __cplusplus
22766 extern "C"
22767 #endif
22768 char $ac_func ();
22769 /* The GNU C library defines this for functions which it implements
22770 to always fail with ENOSYS. Some functions are actually named
22771 something starting with __ and the normal name is an alias. */
22772 #if defined __stub_$ac_func || defined __stub___$ac_func
22773 choke me
22774 #endif
22775
22776 int
22777 main ()
22778 {
22779 return $ac_func ();
22780 ;
22781 return 0;
22782 }
22783 _ACEOF
22784 rm -f conftest.$ac_objext conftest$ac_exeext
22785 if { (ac_try="$ac_link"
22786 case "(($ac_try" in
22787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788 *) ac_try_echo=$ac_try;;
22789 esac
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791 (eval "$ac_link") 2>conftest.er1
22792 ac_status=$?
22793 grep -v '^ *+' conftest.er1 >conftest.err
22794 rm -f conftest.er1
22795 cat conftest.err >&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); } && {
22798 test -z "$ac_c_werror_flag" ||
22799 test ! -s conftest.err
22800 } && test -s conftest$ac_exeext &&
22801 $as_test_x conftest$ac_exeext; then
22802 eval "$as_ac_var=yes"
22803 else
22804 echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22806
22807 eval "$as_ac_var=no"
22808 fi
22809
22810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22811 conftest$ac_exeext conftest.$ac_ext
22812 fi
22813 ac_res=`eval echo '${'$as_ac_var'}'`
22814 { echo "$as_me:$LINENO: result: $ac_res" >&5
22815 echo "${ECHO_T}$ac_res" >&6; }
22816 if test `eval echo '${'$as_ac_var'}'` = yes; then
22817 cat >>confdefs.h <<_ACEOF
22818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22819 _ACEOF
22820
22821 fi
22822 done
22823
22824
22825
22826
22827
22828
22829 # Check whether --with-authshadow was given.
22830 if test "${with_authshadow+set}" = set; then
22831 withval=$with_authshadow; doauthshadow="$withval"
22832 else
22833 doauthshadow="yes"
22834 test "$HAVE_PAM" = 1 && doauthshadow="no"
22835 test "$HAVE_LDAP" = 1 && doauthshadow="no"
22836 fi
22837
22838
22839
22840 for ac_header in shadow.h
22841 do
22842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22847 echo $ECHO_N "(cached) $ECHO_C" >&6
22848 fi
22849 ac_res=`eval echo '${'$as_ac_Header'}'`
22850 { echo "$as_me:$LINENO: result: $ac_res" >&5
22851 echo "${ECHO_T}$ac_res" >&6; }
22852 else
22853 # Is the header compilable?
22854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22856 cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h. */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 $ac_includes_default
22863 #include <$ac_header>
22864 _ACEOF
22865 rm -f conftest.$ac_objext
22866 if { (ac_try="$ac_compile"
22867 case "(($ac_try" in
22868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869 *) ac_try_echo=$ac_try;;
22870 esac
22871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872 (eval "$ac_compile") 2>conftest.er1
22873 ac_status=$?
22874 grep -v '^ *+' conftest.er1 >conftest.err
22875 rm -f conftest.er1
22876 cat conftest.err >&5
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } && {
22879 test -z "$ac_c_werror_flag" ||
22880 test ! -s conftest.err
22881 } && test -s conftest.$ac_objext; then
22882 ac_header_compiler=yes
22883 else
22884 echo "$as_me: failed program was:" >&5
22885 sed 's/^/| /' conftest.$ac_ext >&5
22886
22887 ac_header_compiler=no
22888 fi
22889
22890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22891 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22892 echo "${ECHO_T}$ac_header_compiler" >&6; }
22893
22894 # Is the header present?
22895 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22897 cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h. */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 #include <$ac_header>
22904 _ACEOF
22905 if { (ac_try="$ac_cpp conftest.$ac_ext"
22906 case "(($ac_try" in
22907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908 *) ac_try_echo=$ac_try;;
22909 esac
22910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22912 ac_status=$?
22913 grep -v '^ *+' conftest.er1 >conftest.err
22914 rm -f conftest.er1
22915 cat conftest.err >&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } >/dev/null && {
22918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22919 test ! -s conftest.err
22920 }; then
22921 ac_header_preproc=yes
22922 else
22923 echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926 ac_header_preproc=no
22927 fi
22928
22929 rm -f conftest.err conftest.$ac_ext
22930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22931 echo "${ECHO_T}$ac_header_preproc" >&6; }
22932
22933 # So? What about this header?
22934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22935 yes:no: )
22936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22940 ac_header_preproc=yes
22941 ;;
22942 no:yes:* )
22943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22955 ( cat <<\_ASBOX
22956 ## -------------------------------------------------- ##
22957 ## Report this to courier-users@lists.sourceforge.net ##
22958 ## -------------------------------------------------- ##
22959 _ASBOX
22960 ) | sed "s/^/$as_me: WARNING: /" >&2
22961 ;;
22962 esac
22963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22967 else
22968 eval "$as_ac_Header=\$ac_header_preproc"
22969 fi
22970 ac_res=`eval echo '${'$as_ac_Header'}'`
22971 { echo "$as_me:$LINENO: result: $ac_res" >&5
22972 echo "${ECHO_T}$ac_res" >&6; }
22973
22974 fi
22975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22976 cat >>confdefs.h <<_ACEOF
22977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22978 _ACEOF
22979
22980 fi
22981
22982 done
22983
22984 saveLIBS="$LIBS"
22985 SHADOWLIBS=""
22986 { echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
22987 echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; }
22988 if test "${ac_cv_lib_shadow_getspent+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991 ac_check_lib_save_LIBS=$LIBS
22992 LIBS="-lshadow $LIBS"
22993 cat >conftest.$ac_ext <<_ACEOF
22994 /* confdefs.h. */
22995 _ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h. */
22999
23000 /* Override any GCC internal prototype to avoid an error.
23001 Use char because int might match the return type of a GCC
23002 builtin and then its argument prototype would still apply. */
23003 #ifdef __cplusplus
23004 extern "C"
23005 #endif
23006 char getspent ();
23007 int
23008 main ()
23009 {
23010 return getspent ();
23011 ;
23012 return 0;
23013 }
23014 _ACEOF
23015 rm -f conftest.$ac_objext conftest$ac_exeext
23016 if { (ac_try="$ac_link"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23020 esac
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_link") 2>conftest.er1
23023 ac_status=$?
23024 grep -v '^ *+' conftest.er1 >conftest.err
23025 rm -f conftest.er1
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } && {
23029 test -z "$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23031 } && test -s conftest$ac_exeext &&
23032 $as_test_x conftest$ac_exeext; then
23033 ac_cv_lib_shadow_getspent=yes
23034 else
23035 echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23037
23038 ac_cv_lib_shadow_getspent=no
23039 fi
23040
23041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23042 conftest$ac_exeext conftest.$ac_ext
23043 LIBS=$ac_check_lib_save_LIBS
23044 fi
23045 { echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
23046 echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; }
23047 if test $ac_cv_lib_shadow_getspent = yes; then
23048 SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS"
23049 fi
23050
23051
23052
23053 for ac_func in endspent getspent
23054 do
23055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23060 else
23061 cat >conftest.$ac_ext <<_ACEOF
23062 /* confdefs.h. */
23063 _ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h. */
23067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23069 #define $ac_func innocuous_$ac_func
23070
23071 /* System header to define __stub macros and hopefully few prototypes,
23072 which can conflict with char $ac_func (); below.
23073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23074 <limits.h> exists even on freestanding compilers. */
23075
23076 #ifdef __STDC__
23077 # include <limits.h>
23078 #else
23079 # include <assert.h>
23080 #endif
23081
23082 #undef $ac_func
23083
23084 /* Override any GCC internal prototype to avoid an error.
23085 Use char because int might match the return type of a GCC
23086 builtin and then its argument prototype would still apply. */
23087 #ifdef __cplusplus
23088 extern "C"
23089 #endif
23090 char $ac_func ();
23091 /* The GNU C library defines this for functions which it implements
23092 to always fail with ENOSYS. Some functions are actually named
23093 something starting with __ and the normal name is an alias. */
23094 #if defined __stub_$ac_func || defined __stub___$ac_func
23095 choke me
23096 #endif
23097
23098 int
23099 main ()
23100 {
23101 return $ac_func ();
23102 ;
23103 return 0;
23104 }
23105 _ACEOF
23106 rm -f conftest.$ac_objext conftest$ac_exeext
23107 if { (ac_try="$ac_link"
23108 case "(($ac_try" in
23109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23110 *) ac_try_echo=$ac_try;;
23111 esac
23112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23113 (eval "$ac_link") 2>conftest.er1
23114 ac_status=$?
23115 grep -v '^ *+' conftest.er1 >conftest.err
23116 rm -f conftest.er1
23117 cat conftest.err >&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); } && {
23120 test -z "$ac_c_werror_flag" ||
23121 test ! -s conftest.err
23122 } && test -s conftest$ac_exeext &&
23123 $as_test_x conftest$ac_exeext; then
23124 eval "$as_ac_var=yes"
23125 else
23126 echo "$as_me: failed program was:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23128
23129 eval "$as_ac_var=no"
23130 fi
23131
23132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23133 conftest$ac_exeext conftest.$ac_ext
23134 fi
23135 ac_res=`eval echo '${'$as_ac_var'}'`
23136 { echo "$as_me:$LINENO: result: $ac_res" >&5
23137 echo "${ECHO_T}$ac_res" >&6; }
23138 if test `eval echo '${'$as_ac_var'}'` = yes; then
23139 cat >>confdefs.h <<_ACEOF
23140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23141 _ACEOF
23142
23143 fi
23144 done
23145
23146 LIBS="$saveLIBS"
23147
23148 if test "$doauthshadow" = "no"
23149 then
23150 HAVE_SHADOW=0
23151 else
23152
23153 saveLIBS="$LIBS"
23154
23155 { echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
23156 echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; }
23157 if test "${ac_cv_lib_shadow_getspent+set}" = set; then
23158 echo $ECHO_N "(cached) $ECHO_C" >&6
23159 else
23160 ac_check_lib_save_LIBS=$LIBS
23161 LIBS="-lshadow $LIBS"
23162 cat >conftest.$ac_ext <<_ACEOF
23163 /* confdefs.h. */
23164 _ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h. */
23168
23169 /* Override any GCC internal prototype to avoid an error.
23170 Use char because int might match the return type of a GCC
23171 builtin and then its argument prototype would still apply. */
23172 #ifdef __cplusplus
23173 extern "C"
23174 #endif
23175 char getspent ();
23176 int
23177 main ()
23178 {
23179 return getspent ();
23180 ;
23181 return 0;
23182 }
23183 _ACEOF
23184 rm -f conftest.$ac_objext conftest$ac_exeext
23185 if { (ac_try="$ac_link"
23186 case "(($ac_try" in
23187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23188 *) ac_try_echo=$ac_try;;
23189 esac
23190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191 (eval "$ac_link") 2>conftest.er1
23192 ac_status=$?
23193 grep -v '^ *+' conftest.er1 >conftest.err
23194 rm -f conftest.er1
23195 cat conftest.err >&5
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); } && {
23198 test -z "$ac_c_werror_flag" ||
23199 test ! -s conftest.err
23200 } && test -s conftest$ac_exeext &&
23201 $as_test_x conftest$ac_exeext; then
23202 ac_cv_lib_shadow_getspent=yes
23203 else
23204 echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23206
23207 ac_cv_lib_shadow_getspent=no
23208 fi
23209
23210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23211 conftest$ac_exeext conftest.$ac_ext
23212 LIBS=$ac_check_lib_save_LIBS
23213 fi
23214 { echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
23215 echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; }
23216 if test $ac_cv_lib_shadow_getspent = yes; then
23217 cat >>confdefs.h <<_ACEOF
23218 #define HAVE_LIBSHADOW 1
23219 _ACEOF
23220
23221 LIBS="-lshadow $LIBS"
23222
23223 fi
23224
23225 { echo "$as_me:$LINENO: checking for getspent" >&5
23226 echo $ECHO_N "checking for getspent... $ECHO_C" >&6; }
23227 if test "${ac_cv_func_getspent+set}" = set; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23229 else
23230 cat >conftest.$ac_ext <<_ACEOF
23231 /* confdefs.h. */
23232 _ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236 /* Define getspent to an innocuous variant, in case <limits.h> declares getspent.
23237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23238 #define getspent innocuous_getspent
23239
23240 /* System header to define __stub macros and hopefully few prototypes,
23241 which can conflict with char getspent (); below.
23242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23243 <limits.h> exists even on freestanding compilers. */
23244
23245 #ifdef __STDC__
23246 # include <limits.h>
23247 #else
23248 # include <assert.h>
23249 #endif
23250
23251 #undef getspent
23252
23253 /* Override any GCC internal prototype to avoid an error.
23254 Use char because int might match the return type of a GCC
23255 builtin and then its argument prototype would still apply. */
23256 #ifdef __cplusplus
23257 extern "C"
23258 #endif
23259 char getspent ();
23260 /* The GNU C library defines this for functions which it implements
23261 to always fail with ENOSYS. Some functions are actually named
23262 something starting with __ and the normal name is an alias. */
23263 #if defined __stub_getspent || defined __stub___getspent
23264 choke me
23265 #endif
23266
23267 int
23268 main ()
23269 {
23270 return getspent ();
23271 ;
23272 return 0;
23273 }
23274 _ACEOF
23275 rm -f conftest.$ac_objext conftest$ac_exeext
23276 if { (ac_try="$ac_link"
23277 case "(($ac_try" in
23278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23280 esac
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282 (eval "$ac_link") 2>conftest.er1
23283 ac_status=$?
23284 grep -v '^ *+' conftest.er1 >conftest.err
23285 rm -f conftest.er1
23286 cat conftest.err >&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } && {
23289 test -z "$ac_c_werror_flag" ||
23290 test ! -s conftest.err
23291 } && test -s conftest$ac_exeext &&
23292 $as_test_x conftest$ac_exeext; then
23293 ac_cv_func_getspent=yes
23294 else
23295 echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23297
23298 ac_cv_func_getspent=no
23299 fi
23300
23301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23302 conftest$ac_exeext conftest.$ac_ext
23303 fi
23304 { echo "$as_me:$LINENO: result: $ac_cv_func_getspent" >&5
23305 echo "${ECHO_T}$ac_cv_func_getspent" >&6; }
23306 if test $ac_cv_func_getspent = yes; then
23307 HAVE_SHADOW=1
23308 else
23309 HAVE_SHADOW=0
23310 fi
23311
23312 LIBS="$saveLIBS"
23313 fi
23314
23315 LIBAUTHSHADOW=""
23316 if test "$HAVE_SHADOW" = 1
23317 then
23318 LIBAUTHSHADOW="libauthshadow.la"
23319 fi
23320
23321
23322
23323 LIBAUTHPWD=""
23324 if test "$HAVE_PWD" = 1
23325 then
23326 LIBAUTHPWD="libauthpwd.la"
23327 fi
23328
23329
23330
23331
23332
23333
23334
23335 vpopmail_home=`$PERL -e '@a=getpwnam("vpopmail"); print "$a[7]";'`
23336
23337
23338
23339
23340 # Check whether --with-authvchkpw was given.
23341 if test "${with_authvchkpw+set}" = set; then
23342 withval=$with_authvchkpw; doauthvchkpw="$withval"
23343 else
23344 doauthvchkpw=no
23345 if test "$vpopmail_home" != ""
23346 then
23347 doauthvchkpw=yes
23348 fi
23349 fi
23350
23351
23352 if test "$doauthvchkpw" = "no"
23353 then
23354 HAVE_VCHKPW=0
23355 vpopmail_home=.
23356 else
23357 HAVE_VCHKPW=1
23358
23359
23360 cat <<EOF
23361 ----------------------------------------------------
23362 NOTE
23363
23364
23365 All questions regarding ANY vpopmail-related problems,
23366 such as compiling/building failures, or login errors
23367 should be referred to the vpopmail mailing list.
23368 Vpopmail questions sent to the Courier mailing lists
23369 will be IGNORED.
23370 ----------------------------------------------------
23371 \a
23372 EOF
23373 sleep 5
23374
23375 if test -f ${vpopmail_home}/etc/lib_deps
23376 then
23377 CFLAGS="`cat ${vpopmail_home}/etc/inc_deps` $CFLAGS"
23378 VPOPMAILLIBS="`cat ${vpopmail_home}/etc/lib_deps`"
23379 else
23380 { { echo "$as_me:$LINENO: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&5
23381 echo "$as_me: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&2;}
23382 { (exit 1); exit 1; }; }
23383 fi
23384 fi
23385
23386
23387
23388 LIBAUTHVCHKPW=""
23389 if test "$HAVE_VCHKPW" = 1
23390 then
23391 LIBAUTHVCHKPW="libauthvchkpw.la"
23392 HAVE_VCHKPW="1"
23393
23394
23395 _SAVE_LIBS=$LIBS
23396 LIBS="$VPOPMAILLIBS $CRYPTLIBS $LIBS"
23397 { echo "$as_me:$LINENO: checking for open_smtp_relay" >&5
23398 echo $ECHO_N "checking for open_smtp_relay... $ECHO_C" >&6; }
23399 if test "${ac_cv_func_open_smtp_relay+set}" = set; then
23400 echo $ECHO_N "(cached) $ECHO_C" >&6
23401 else
23402 cat >conftest.$ac_ext <<_ACEOF
23403 /* confdefs.h. */
23404 _ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h. */
23408 /* Define open_smtp_relay to an innocuous variant, in case <limits.h> declares open_smtp_relay.
23409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23410 #define open_smtp_relay innocuous_open_smtp_relay
23411
23412 /* System header to define __stub macros and hopefully few prototypes,
23413 which can conflict with char open_smtp_relay (); below.
23414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23415 <limits.h> exists even on freestanding compilers. */
23416
23417 #ifdef __STDC__
23418 # include <limits.h>
23419 #else
23420 # include <assert.h>
23421 #endif
23422
23423 #undef open_smtp_relay
23424
23425 /* Override any GCC internal prototype to avoid an error.
23426 Use char because int might match the return type of a GCC
23427 builtin and then its argument prototype would still apply. */
23428 #ifdef __cplusplus
23429 extern "C"
23430 #endif
23431 char open_smtp_relay ();
23432 /* The GNU C library defines this for functions which it implements
23433 to always fail with ENOSYS. Some functions are actually named
23434 something starting with __ and the normal name is an alias. */
23435 #if defined __stub_open_smtp_relay || defined __stub___open_smtp_relay
23436 choke me
23437 #endif
23438
23439 int
23440 main ()
23441 {
23442 return open_smtp_relay ();
23443 ;
23444 return 0;
23445 }
23446 _ACEOF
23447 rm -f conftest.$ac_objext conftest$ac_exeext
23448 if { (ac_try="$ac_link"
23449 case "(($ac_try" in
23450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23451 *) ac_try_echo=$ac_try;;
23452 esac
23453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23454 (eval "$ac_link") 2>conftest.er1
23455 ac_status=$?
23456 grep -v '^ *+' conftest.er1 >conftest.err
23457 rm -f conftest.er1
23458 cat conftest.err >&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } && {
23461 test -z "$ac_c_werror_flag" ||
23462 test ! -s conftest.err
23463 } && test -s conftest$ac_exeext &&
23464 $as_test_x conftest$ac_exeext; then
23465 ac_cv_func_open_smtp_relay=yes
23466 else
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23469
23470 ac_cv_func_open_smtp_relay=no
23471 fi
23472
23473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23474 conftest$ac_exeext conftest.$ac_ext
23475 fi
23476 { echo "$as_me:$LINENO: result: $ac_cv_func_open_smtp_relay" >&5
23477 echo "${ECHO_T}$ac_cv_func_open_smtp_relay" >&6; }
23478 if test $ac_cv_func_open_smtp_relay = yes; then
23479
23480 cat >>confdefs.h <<\_ACEOF
23481 #define HAVE_OPEN_SMTP_RELAY 1
23482 _ACEOF
23483
23484 fi
23485
23486 { echo "$as_me:$LINENO: checking for vset_lastauth" >&5
23487 echo $ECHO_N "checking for vset_lastauth... $ECHO_C" >&6; }
23488 if test "${ac_cv_func_vset_lastauth+set}" = set; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23490 else
23491 cat >conftest.$ac_ext <<_ACEOF
23492 /* confdefs.h. */
23493 _ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 /* Define vset_lastauth to an innocuous variant, in case <limits.h> declares vset_lastauth.
23498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23499 #define vset_lastauth innocuous_vset_lastauth
23500
23501 /* System header to define __stub macros and hopefully few prototypes,
23502 which can conflict with char vset_lastauth (); below.
23503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23504 <limits.h> exists even on freestanding compilers. */
23505
23506 #ifdef __STDC__
23507 # include <limits.h>
23508 #else
23509 # include <assert.h>
23510 #endif
23511
23512 #undef vset_lastauth
23513
23514 /* Override any GCC internal prototype to avoid an error.
23515 Use char because int might match the return type of a GCC
23516 builtin and then its argument prototype would still apply. */
23517 #ifdef __cplusplus
23518 extern "C"
23519 #endif
23520 char vset_lastauth ();
23521 /* The GNU C library defines this for functions which it implements
23522 to always fail with ENOSYS. Some functions are actually named
23523 something starting with __ and the normal name is an alias. */
23524 #if defined __stub_vset_lastauth || defined __stub___vset_lastauth
23525 choke me
23526 #endif
23527
23528 int
23529 main ()
23530 {
23531 return vset_lastauth ();
23532 ;
23533 return 0;
23534 }
23535 _ACEOF
23536 rm -f conftest.$ac_objext conftest$ac_exeext
23537 if { (ac_try="$ac_link"
23538 case "(($ac_try" in
23539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23540 *) ac_try_echo=$ac_try;;
23541 esac
23542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23543 (eval "$ac_link") 2>conftest.er1
23544 ac_status=$?
23545 grep -v '^ *+' conftest.er1 >conftest.err
23546 rm -f conftest.er1
23547 cat conftest.err >&5
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); } && {
23550 test -z "$ac_c_werror_flag" ||
23551 test ! -s conftest.err
23552 } && test -s conftest$ac_exeext &&
23553 $as_test_x conftest$ac_exeext; then
23554 ac_cv_func_vset_lastauth=yes
23555 else
23556 echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23558
23559 ac_cv_func_vset_lastauth=no
23560 fi
23561
23562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23563 conftest$ac_exeext conftest.$ac_ext
23564 fi
23565 { echo "$as_me:$LINENO: result: $ac_cv_func_vset_lastauth" >&5
23566 echo "${ECHO_T}$ac_cv_func_vset_lastauth" >&6; }
23567 if test $ac_cv_func_vset_lastauth = yes; then
23568
23569 cat >>confdefs.h <<\_ACEOF
23570 #define HAVE_VSET_LASTAUTH 1
23571 _ACEOF
23572
23573 fi
23574
23575 LIBS=$_SAVE_LIBS
23576 fi
23577
23578
23579
23580
23581
23582
23583
23584 # Check whether --with-authpgsqlrc was given.
23585 if test "${with_authpgsqlrc+set}" = set; then
23586 withval=$with_authpgsqlrc; authpgsqlrc="$withval"
23587 else
23588 authpgsqlrc="$pkgconfdir/authpgsqlrc"
23589 fi
23590
23591
23592
23593
23594 # Check whether --with-authpgsql was given.
23595 if test "${with_authpgsql+set}" = set; then
23596 withval=$with_authpgsql; doauthpgsql="$withval"
23597 fi
23598
23599
23600 for ac_prog in pg_config
23601 do
23602 # Extract the first word of "$ac_prog", so it can be a program name with args.
23603 set dummy $ac_prog; ac_word=$2
23604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23606 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
23608 else
23609 case $PG_CONFIG in
23610 [\\/]* | ?:[\\/]*)
23611 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23612 ;;
23613 *)
23614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23615 for as_dir in $LPATH
23616 do
23617 IFS=$as_save_IFS
23618 test -z "$as_dir" && as_dir=.
23619 for ac_exec_ext in '' $ac_executable_extensions; do
23620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23621 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23623 break 2
23624 fi
23625 done
23626 done
23627 IFS=$as_save_IFS
23628
23629 ;;
23630 esac
23631 fi
23632 PG_CONFIG=$ac_cv_path_PG_CONFIG
23633 if test -n "$PG_CONFIG"; then
23634 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23635 echo "${ECHO_T}$PG_CONFIG" >&6; }
23636 else
23637 { echo "$as_me:$LINENO: result: no" >&5
23638 echo "${ECHO_T}no" >&6; }
23639 fi
23640
23641
23642 test -n "$PG_CONFIG" && break
23643 done
23644 test -n "$PG_CONFIG" || PG_CONFIG="pg_config"
23645
23646
23647 PGSQL_LIBS="-lpq"
23648
23649 # Check whether --with-pgsql-libs was given.
23650 if test "${with_pgsql_libs+set}" = set; then
23651 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS"
23652 else
23653 if test -x $PG_CONFIG
23654 then
23655 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
23656 fi
23657
23658 fi
23659
23660
23661 # Check whether --with-pgsql-includes was given.
23662 if test "${with_pgsql_includes+set}" = set; then
23663 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval"
23664 else
23665 if test -x $PG_CONFIG
23666 then
23667 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
23668 fi
23669
23670 fi
23671
23672
23673 if test "$doauthpgsql" = ""
23674 then
23675 LIBS="$PGSQL_LIBS $LIBS"
23676 { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
23677 echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; }
23678 if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
23679 echo $ECHO_N "(cached) $ECHO_C" >&6
23680 else
23681 cat >conftest.$ac_ext <<_ACEOF
23682 /* confdefs.h. */
23683 _ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23687 /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
23688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23689 #define PQsetdbLogin innocuous_PQsetdbLogin
23690
23691 /* System header to define __stub macros and hopefully few prototypes,
23692 which can conflict with char PQsetdbLogin (); below.
23693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23694 <limits.h> exists even on freestanding compilers. */
23695
23696 #ifdef __STDC__
23697 # include <limits.h>
23698 #else
23699 # include <assert.h>
23700 #endif
23701
23702 #undef PQsetdbLogin
23703
23704 /* Override any GCC internal prototype to avoid an error.
23705 Use char because int might match the return type of a GCC
23706 builtin and then its argument prototype would still apply. */
23707 #ifdef __cplusplus
23708 extern "C"
23709 #endif
23710 char PQsetdbLogin ();
23711 /* The GNU C library defines this for functions which it implements
23712 to always fail with ENOSYS. Some functions are actually named
23713 something starting with __ and the normal name is an alias. */
23714 #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
23715 choke me
23716 #endif
23717
23718 int
23719 main ()
23720 {
23721 return PQsetdbLogin ();
23722 ;
23723 return 0;
23724 }
23725 _ACEOF
23726 rm -f conftest.$ac_objext conftest$ac_exeext
23727 if { (ac_try="$ac_link"
23728 case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_link") 2>conftest.er1
23734 ac_status=$?
23735 grep -v '^ *+' conftest.er1 >conftest.err
23736 rm -f conftest.er1
23737 cat conftest.err >&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } && {
23740 test -z "$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 } && test -s conftest$ac_exeext &&
23743 $as_test_x conftest$ac_exeext; then
23744 ac_cv_func_PQsetdbLogin=yes
23745 else
23746 echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23748
23749 ac_cv_func_PQsetdbLogin=no
23750 fi
23751
23752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23753 conftest$ac_exeext conftest.$ac_ext
23754 fi
23755 { echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
23756 echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; }
23757 if test $ac_cv_func_PQsetdbLogin = yes; then
23758 doauthpgsql="yes"
23759
23760 fi
23761
23762 LIBS="$saveLIBS"
23763 fi
23764
23765 if test "$doauthpgsql" != "yes"
23766 then
23767 LIBAUTHPGSQL=""
23768 HAVE_AUTHPGSQL=0
23769 else
23770 saveLIBS="$LIBS"
23771 LIBS="$PGSQL_LIBS $LIBS"
23772 { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
23773 echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; }
23774 if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
23775 echo $ECHO_N "(cached) $ECHO_C" >&6
23776 else
23777 cat >conftest.$ac_ext <<_ACEOF
23778 /* confdefs.h. */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23783 /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
23784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23785 #define PQsetdbLogin innocuous_PQsetdbLogin
23786
23787 /* System header to define __stub macros and hopefully few prototypes,
23788 which can conflict with char PQsetdbLogin (); below.
23789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23790 <limits.h> exists even on freestanding compilers. */
23791
23792 #ifdef __STDC__
23793 # include <limits.h>
23794 #else
23795 # include <assert.h>
23796 #endif
23797
23798 #undef PQsetdbLogin
23799
23800 /* Override any GCC internal prototype to avoid an error.
23801 Use char because int might match the return type of a GCC
23802 builtin and then its argument prototype would still apply. */
23803 #ifdef __cplusplus
23804 extern "C"
23805 #endif
23806 char PQsetdbLogin ();
23807 /* The GNU C library defines this for functions which it implements
23808 to always fail with ENOSYS. Some functions are actually named
23809 something starting with __ and the normal name is an alias. */
23810 #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
23811 choke me
23812 #endif
23813
23814 int
23815 main ()
23816 {
23817 return PQsetdbLogin ();
23818 ;
23819 return 0;
23820 }
23821 _ACEOF
23822 rm -f conftest.$ac_objext conftest$ac_exeext
23823 if { (ac_try="$ac_link"
23824 case "(($ac_try" in
23825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23826 *) ac_try_echo=$ac_try;;
23827 esac
23828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23829 (eval "$ac_link") 2>conftest.er1
23830 ac_status=$?
23831 grep -v '^ *+' conftest.er1 >conftest.err
23832 rm -f conftest.er1
23833 cat conftest.err >&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } && {
23836 test -z "$ac_c_werror_flag" ||
23837 test ! -s conftest.err
23838 } && test -s conftest$ac_exeext &&
23839 $as_test_x conftest$ac_exeext; then
23840 ac_cv_func_PQsetdbLogin=yes
23841 else
23842 echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23844
23845 ac_cv_func_PQsetdbLogin=no
23846 fi
23847
23848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23849 conftest$ac_exeext conftest.$ac_ext
23850 fi
23851 { echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
23852 echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; }
23853 if test $ac_cv_func_PQsetdbLogin = yes; then
23854 AUTHPGSQL="authpgsql"
23855 HAVE_AUTHPGSQL=1
23856 else
23857 { { echo "$as_me:$LINENO: error: --with-authpgsql specified but no libpq.so" >&5
23858 echo "$as_me: error: --with-authpgsql specified but no libpq.so" >&2;}
23859 { (exit 1); exit 1; }; }
23860 fi
23861
23862 LIBS="$saveLIBS"
23863 HAVE_AUTHPGSQL=1
23864 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
23865 LIBAUTHPGSQL="libauthpgsql.la"
23866 fi
23867
23868
23869
23870 if test "$HAVE_AUTHPGSQL" = 1; then
23871 HAVE_AUTHPGSQL_TRUE=
23872 HAVE_AUTHPGSQL_FALSE='#'
23873 else
23874 HAVE_AUTHPGSQL_TRUE='#'
23875 HAVE_AUTHPGSQL_FALSE=
23876 fi
23877
23878
23879
23880
23881
23882
23883 # Check whether --with-authmysqlrc was given.
23884 if test "${with_authmysqlrc+set}" = set; then
23885 withval=$with_authmysqlrc; authmysqlrc="$withval"
23886 else
23887 authmysqlrc="$pkgconfdir/authmysqlrc"
23888 fi
23889
23890
23891
23892
23893 # Check whether --with-authmysql was given.
23894 if test "${with_authmysql+set}" = set; then
23895 withval=$with_authmysql; doauthmysql="$withval"
23896 fi
23897
23898
23899 # Check whether --with-mysql-libs was given.
23900 if test "${with_mysql_libs+set}" = set; then
23901 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient"
23902
23903 fi
23904
23905
23906 # Check whether --with-mysql-includes was given.
23907 if test "${with_mysql_includes+set}" = set; then
23908 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval"
23909
23910 fi
23911
23912
23913 for ac_prog in mysql_config
23914 do
23915 # Extract the first word of "$ac_prog", so it can be a program name with args.
23916 set dummy $ac_prog; ac_word=$2
23917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23919 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
23920 echo $ECHO_N "(cached) $ECHO_C" >&6
23921 else
23922 case $MYSQL_CONFIG in
23923 [\\/]* | ?:[\\/]*)
23924 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
23925 ;;
23926 *)
23927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23928 for as_dir in $LPATH
23929 do
23930 IFS=$as_save_IFS
23931 test -z "$as_dir" && as_dir=.
23932 for ac_exec_ext in '' $ac_executable_extensions; do
23933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23934 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23936 break 2
23937 fi
23938 done
23939 done
23940 IFS=$as_save_IFS
23941
23942 ;;
23943 esac
23944 fi
23945 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
23946 if test -n "$MYSQL_CONFIG"; then
23947 { echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
23948 echo "${ECHO_T}$MYSQL_CONFIG" >&6; }
23949 else
23950 { echo "$as_me:$LINENO: result: no" >&5
23951 echo "${ECHO_T}no" >&6; }
23952 fi
23953
23954
23955 test -n "$MYSQL_CONFIG" && break
23956 done
23957 test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config"
23958
23959
23960 if test -x "$MYSQL_CONFIG"
23961 then
23962 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
23963 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
23964
23965 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\""
23966 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\""
23967 fi
23968
23969 if test "$doauthmysql" = ""
23970 then
23971 LIBS="$MYSQL_LIBS $LIBS"
23972 { echo "$as_me:$LINENO: checking for mysql_connect" >&5
23973 echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; }
23974 if test "${ac_cv_func_mysql_connect+set}" = set; then
23975 echo $ECHO_N "(cached) $ECHO_C" >&6
23976 else
23977 cat >conftest.$ac_ext <<_ACEOF
23978 /* confdefs.h. */
23979 _ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h. */
23983 /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
23984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23985 #define mysql_connect innocuous_mysql_connect
23986
23987 /* System header to define __stub macros and hopefully few prototypes,
23988 which can conflict with char mysql_connect (); below.
23989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23990 <limits.h> exists even on freestanding compilers. */
23991
23992 #ifdef __STDC__
23993 # include <limits.h>
23994 #else
23995 # include <assert.h>
23996 #endif
23997
23998 #undef mysql_connect
23999
24000 /* Override any GCC internal prototype to avoid an error.
24001 Use char because int might match the return type of a GCC
24002 builtin and then its argument prototype would still apply. */
24003 #ifdef __cplusplus
24004 extern "C"
24005 #endif
24006 char mysql_connect ();
24007 /* The GNU C library defines this for functions which it implements
24008 to always fail with ENOSYS. Some functions are actually named
24009 something starting with __ and the normal name is an alias. */
24010 #if defined __stub_mysql_connect || defined __stub___mysql_connect
24011 choke me
24012 #endif
24013
24014 int
24015 main ()
24016 {
24017 return mysql_connect ();
24018 ;
24019 return 0;
24020 }
24021 _ACEOF
24022 rm -f conftest.$ac_objext conftest$ac_exeext
24023 if { (ac_try="$ac_link"
24024 case "(($ac_try" in
24025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24026 *) ac_try_echo=$ac_try;;
24027 esac
24028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24029 (eval "$ac_link") 2>conftest.er1
24030 ac_status=$?
24031 grep -v '^ *+' conftest.er1 >conftest.err
24032 rm -f conftest.er1
24033 cat conftest.err >&5
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } && {
24036 test -z "$ac_c_werror_flag" ||
24037 test ! -s conftest.err
24038 } && test -s conftest$ac_exeext &&
24039 $as_test_x conftest$ac_exeext; then
24040 ac_cv_func_mysql_connect=yes
24041 else
24042 echo "$as_me: failed program was:" >&5
24043 sed 's/^/| /' conftest.$ac_ext >&5
24044
24045 ac_cv_func_mysql_connect=no
24046 fi
24047
24048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24049 conftest$ac_exeext conftest.$ac_ext
24050 fi
24051 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
24052 echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; }
24053 if test $ac_cv_func_mysql_connect = yes; then
24054 doauthmysql="yes"
24055
24056 fi
24057
24058 { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
24059 echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; }
24060 if test "${ac_cv_func_mysql_real_connect+set}" = set; then
24061 echo $ECHO_N "(cached) $ECHO_C" >&6
24062 else
24063 cat >conftest.$ac_ext <<_ACEOF
24064 /* confdefs.h. */
24065 _ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h. */
24069 /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
24070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24071 #define mysql_real_connect innocuous_mysql_real_connect
24072
24073 /* System header to define __stub macros and hopefully few prototypes,
24074 which can conflict with char mysql_real_connect (); below.
24075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24076 <limits.h> exists even on freestanding compilers. */
24077
24078 #ifdef __STDC__
24079 # include <limits.h>
24080 #else
24081 # include <assert.h>
24082 #endif
24083
24084 #undef mysql_real_connect
24085
24086 /* Override any GCC internal prototype to avoid an error.
24087 Use char because int might match the return type of a GCC
24088 builtin and then its argument prototype would still apply. */
24089 #ifdef __cplusplus
24090 extern "C"
24091 #endif
24092 char mysql_real_connect ();
24093 /* The GNU C library defines this for functions which it implements
24094 to always fail with ENOSYS. Some functions are actually named
24095 something starting with __ and the normal name is an alias. */
24096 #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
24097 choke me
24098 #endif
24099
24100 int
24101 main ()
24102 {
24103 return mysql_real_connect ();
24104 ;
24105 return 0;
24106 }
24107 _ACEOF
24108 rm -f conftest.$ac_objext conftest$ac_exeext
24109 if { (ac_try="$ac_link"
24110 case "(($ac_try" in
24111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24112 *) ac_try_echo=$ac_try;;
24113 esac
24114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24115 (eval "$ac_link") 2>conftest.er1
24116 ac_status=$?
24117 grep -v '^ *+' conftest.er1 >conftest.err
24118 rm -f conftest.er1
24119 cat conftest.err >&5
24120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121 (exit $ac_status); } && {
24122 test -z "$ac_c_werror_flag" ||
24123 test ! -s conftest.err
24124 } && test -s conftest$ac_exeext &&
24125 $as_test_x conftest$ac_exeext; then
24126 ac_cv_func_mysql_real_connect=yes
24127 else
24128 echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24130
24131 ac_cv_func_mysql_real_connect=no
24132 fi
24133
24134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24135 conftest$ac_exeext conftest.$ac_ext
24136 fi
24137 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
24138 echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; }
24139 if test $ac_cv_func_mysql_real_connect = yes; then
24140 doauthmysql="yes"
24141
24142 fi
24143
24144 LIBS="$saveLIBS"
24145 fi
24146
24147 if test "$doauthmysql" != "yes"
24148 then
24149 LIBAUTHMYSQL=""
24150 HAVE_AUTHMYSQL=0
24151 else
24152 saveLIBS="$LIBS"
24153 LIBS="$MYSQL_LIBS $LIBS"
24154 { echo "$as_me:$LINENO: checking for mysql_connect" >&5
24155 echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; }
24156 if test "${ac_cv_func_mysql_connect+set}" = set; then
24157 echo $ECHO_N "(cached) $ECHO_C" >&6
24158 else
24159 cat >conftest.$ac_ext <<_ACEOF
24160 /* confdefs.h. */
24161 _ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h. */
24165 /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
24166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24167 #define mysql_connect innocuous_mysql_connect
24168
24169 /* System header to define __stub macros and hopefully few prototypes,
24170 which can conflict with char mysql_connect (); below.
24171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24172 <limits.h> exists even on freestanding compilers. */
24173
24174 #ifdef __STDC__
24175 # include <limits.h>
24176 #else
24177 # include <assert.h>
24178 #endif
24179
24180 #undef mysql_connect
24181
24182 /* Override any GCC internal prototype to avoid an error.
24183 Use char because int might match the return type of a GCC
24184 builtin and then its argument prototype would still apply. */
24185 #ifdef __cplusplus
24186 extern "C"
24187 #endif
24188 char mysql_connect ();
24189 /* The GNU C library defines this for functions which it implements
24190 to always fail with ENOSYS. Some functions are actually named
24191 something starting with __ and the normal name is an alias. */
24192 #if defined __stub_mysql_connect || defined __stub___mysql_connect
24193 choke me
24194 #endif
24195
24196 int
24197 main ()
24198 {
24199 return mysql_connect ();
24200 ;
24201 return 0;
24202 }
24203 _ACEOF
24204 rm -f conftest.$ac_objext conftest$ac_exeext
24205 if { (ac_try="$ac_link"
24206 case "(($ac_try" in
24207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24208 *) ac_try_echo=$ac_try;;
24209 esac
24210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24211 (eval "$ac_link") 2>conftest.er1
24212 ac_status=$?
24213 grep -v '^ *+' conftest.er1 >conftest.err
24214 rm -f conftest.er1
24215 cat conftest.err >&5
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); } && {
24218 test -z "$ac_c_werror_flag" ||
24219 test ! -s conftest.err
24220 } && test -s conftest$ac_exeext &&
24221 $as_test_x conftest$ac_exeext; then
24222 ac_cv_func_mysql_connect=yes
24223 else
24224 echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.$ac_ext >&5
24226
24227 ac_cv_func_mysql_connect=no
24228 fi
24229
24230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24231 conftest$ac_exeext conftest.$ac_ext
24232 fi
24233 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
24234 echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; }
24235 if test $ac_cv_func_mysql_connect = yes; then
24236 LIBAUTHMYSQL="libauthmysql.la"
24237 HAVE_AUTHMYSQL=1
24238 else
24239
24240 { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
24241 echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; }
24242 if test "${ac_cv_func_mysql_real_connect+set}" = set; then
24243 echo $ECHO_N "(cached) $ECHO_C" >&6
24244 else
24245 cat >conftest.$ac_ext <<_ACEOF
24246 /* confdefs.h. */
24247 _ACEOF
24248 cat confdefs.h >>conftest.$ac_ext
24249 cat >>conftest.$ac_ext <<_ACEOF
24250 /* end confdefs.h. */
24251 /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
24252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24253 #define mysql_real_connect innocuous_mysql_real_connect
24254
24255 /* System header to define __stub macros and hopefully few prototypes,
24256 which can conflict with char mysql_real_connect (); below.
24257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24258 <limits.h> exists even on freestanding compilers. */
24259
24260 #ifdef __STDC__
24261 # include <limits.h>
24262 #else
24263 # include <assert.h>
24264 #endif
24265
24266 #undef mysql_real_connect
24267
24268 /* Override any GCC internal prototype to avoid an error.
24269 Use char because int might match the return type of a GCC
24270 builtin and then its argument prototype would still apply. */
24271 #ifdef __cplusplus
24272 extern "C"
24273 #endif
24274 char mysql_real_connect ();
24275 /* The GNU C library defines this for functions which it implements
24276 to always fail with ENOSYS. Some functions are actually named
24277 something starting with __ and the normal name is an alias. */
24278 #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
24279 choke me
24280 #endif
24281
24282 int
24283 main ()
24284 {
24285 return mysql_real_connect ();
24286 ;
24287 return 0;
24288 }
24289 _ACEOF
24290 rm -f conftest.$ac_objext conftest$ac_exeext
24291 if { (ac_try="$ac_link"
24292 case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24295 esac
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_link") 2>conftest.er1
24298 ac_status=$?
24299 grep -v '^ *+' conftest.er1 >conftest.err
24300 rm -f conftest.er1
24301 cat conftest.err >&5
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); } && {
24304 test -z "$ac_c_werror_flag" ||
24305 test ! -s conftest.err
24306 } && test -s conftest$ac_exeext &&
24307 $as_test_x conftest$ac_exeext; then
24308 ac_cv_func_mysql_real_connect=yes
24309 else
24310 echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24312
24313 ac_cv_func_mysql_real_connect=no
24314 fi
24315
24316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24317 conftest$ac_exeext conftest.$ac_ext
24318 fi
24319 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
24320 echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; }
24321 if test $ac_cv_func_mysql_real_connect = yes; then
24322 LIBAUTHMYSQL="libauthmysql.la"
24323 HAVE_AUTHMYSQL=1
24324 else
24325 { { echo "$as_me:$LINENO: error: --with-authmysql specified but no mysqlclient.so" >&5
24326 echo "$as_me: error: --with-authmysql specified but no mysqlclient.so" >&2;}
24327 { (exit 1); exit 1; }; }
24328
24329 fi
24330
24331
24332
24333 fi
24334
24335 LIBS="$saveLIBS"
24336 HAVE_AUTHMYSQL=1
24337 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
24338 fi
24339
24340
24341 if test "$HAVE_AUTHMYSQL" = 1; then
24342 HAVE_AUTHMYSQL_TRUE=
24343 HAVE_AUTHMYSQL_FALSE='#'
24344 else
24345 HAVE_AUTHMYSQL_TRUE='#'
24346 HAVE_AUTHMYSQL_FALSE=
24347 fi
24348
24349
24350
24351
24352
24353
24354
24355
24356 # Check whether --with-authcustom was given.
24357 if test "${with_authcustom+set}" = set; then
24358 withval=$with_authcustom; doauthcustom="$withval"
24359 else
24360 doauthcustom=yes
24361 fi
24362
24363
24364 LIBAUTHCUSTOM=""
24365
24366 if test "$doauthcustom" = "yes"
24367 then
24368 LIBAUTHCUSTOM="libauthcustom.la"
24369 fi
24370
24371 if test "$AUTHCUSTOM" != ""; then
24372 HAVE_CUSTOM_TRUE=
24373 HAVE_CUSTOM_FALSE='#'
24374 else
24375 HAVE_CUSTOM_TRUE='#'
24376 HAVE_CUSTOM_FALSE=
24377 fi
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387 # Check whether --with-pipeprog was given.
24388 if test "${with_pipeprog+set}" = set; then
24389 withval=$with_pipeprog; authProg="$withval"
24390 else
24391 authProg="$pkgconfdir/authProg"
24392 fi
24393
24394
24395
24396
24397 # Check whether --with-authpipe was given.
24398 if test "${with_authpipe+set}" = set; then
24399 withval=$with_authpipe; doauthpipe="$withval"
24400 else
24401 doauthpipe=yes
24402 fi
24403
24404
24405 LIBAUTHPIPE=""
24406
24407 if test "$doauthpipe" = "yes"
24408 then
24409 LIBAUTHPIPE="libauthpipe.la"
24410 fi
24411
24412 if test "$AUTHPIPE" != ""; then
24413 HAVE_PIPE_TRUE=
24414 HAVE_PIPE_FALSE='#'
24415 else
24416 HAVE_PIPE_TRUE='#'
24417 HAVE_PIPE_FALSE=
24418 fi
24419
24420
24421
24422
24423
24424 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24425 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
24426 if test "${ac_cv_header_stdc+set}" = set; then
24427 echo $ECHO_N "(cached) $ECHO_C" >&6
24428 else
24429 cat >conftest.$ac_ext <<_ACEOF
24430 /* confdefs.h. */
24431 _ACEOF
24432 cat confdefs.h >>conftest.$ac_ext
24433 cat >>conftest.$ac_ext <<_ACEOF
24434 /* end confdefs.h. */
24435 #include <stdlib.h>
24436 #include <stdarg.h>
24437 #include <string.h>
24438 #include <float.h>
24439
24440 int
24441 main ()
24442 {
24443
24444 ;
24445 return 0;
24446 }
24447 _ACEOF
24448 rm -f conftest.$ac_objext
24449 if { (ac_try="$ac_compile"
24450 case "(($ac_try" in
24451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24452 *) ac_try_echo=$ac_try;;
24453 esac
24454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24455 (eval "$ac_compile") 2>conftest.er1
24456 ac_status=$?
24457 grep -v '^ *+' conftest.er1 >conftest.err
24458 rm -f conftest.er1
24459 cat conftest.err >&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } && {
24462 test -z "$ac_c_werror_flag" ||
24463 test ! -s conftest.err
24464 } && test -s conftest.$ac_objext; then
24465 ac_cv_header_stdc=yes
24466 else
24467 echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.$ac_ext >&5
24469
24470 ac_cv_header_stdc=no
24471 fi
24472
24473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24474
24475 if test $ac_cv_header_stdc = yes; then
24476 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24477 cat >conftest.$ac_ext <<_ACEOF
24478 /* confdefs.h. */
24479 _ACEOF
24480 cat confdefs.h >>conftest.$ac_ext
24481 cat >>conftest.$ac_ext <<_ACEOF
24482 /* end confdefs.h. */
24483 #include <string.h>
24484
24485 _ACEOF
24486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24487 $EGREP "memchr" >/dev/null 2>&1; then
24488 :
24489 else
24490 ac_cv_header_stdc=no
24491 fi
24492 rm -f conftest*
24493
24494 fi
24495
24496 if test $ac_cv_header_stdc = yes; then
24497 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24498 cat >conftest.$ac_ext <<_ACEOF
24499 /* confdefs.h. */
24500 _ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h. */
24504 #include <stdlib.h>
24505
24506 _ACEOF
24507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24508 $EGREP "free" >/dev/null 2>&1; then
24509 :
24510 else
24511 ac_cv_header_stdc=no
24512 fi
24513 rm -f conftest*
24514
24515 fi
24516
24517 if test $ac_cv_header_stdc = yes; then
24518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24519 if test "$cross_compiling" = yes; then
24520 :
24521 else
24522 cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h. */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24528 #include <ctype.h>
24529 #include <stdlib.h>
24530 #if ((' ' & 0x0FF) == 0x020)
24531 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24532 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24533 #else
24534 # define ISLOWER(c) \
24535 (('a' <= (c) && (c) <= 'i') \
24536 || ('j' <= (c) && (c) <= 'r') \
24537 || ('s' <= (c) && (c) <= 'z'))
24538 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24539 #endif
24540
24541 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24542 int
24543 main ()
24544 {
24545 int i;
24546 for (i = 0; i < 256; i++)
24547 if (XOR (islower (i), ISLOWER (i))
24548 || toupper (i) != TOUPPER (i))
24549 return 2;
24550 return 0;
24551 }
24552 _ACEOF
24553 rm -f conftest$ac_exeext
24554 if { (ac_try="$ac_link"
24555 case "(($ac_try" in
24556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24557 *) ac_try_echo=$ac_try;;
24558 esac
24559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24560 (eval "$ac_link") 2>&5
24561 ac_status=$?
24562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
24570 ac_status=$?
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); }; }; then
24573 :
24574 else
24575 echo "$as_me: program exited with status $ac_status" >&5
24576 echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24578
24579 ( exit $ac_status )
24580 ac_cv_header_stdc=no
24581 fi
24582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24583 fi
24584
24585
24586 fi
24587 fi
24588 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24589 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
24590 if test $ac_cv_header_stdc = yes; then
24591
24592 cat >>confdefs.h <<\_ACEOF
24593 #define STDC_HEADERS 1
24594 _ACEOF
24595
24596 fi
24597
24598 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24599 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
24600 if test "${ac_cv_header_sys_wait_h+set}" = set; then
24601 echo $ECHO_N "(cached) $ECHO_C" >&6
24602 else
24603 cat >conftest.$ac_ext <<_ACEOF
24604 /* confdefs.h. */
24605 _ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24609 #include <sys/types.h>
24610 #include <sys/wait.h>
24611 #ifndef WEXITSTATUS
24612 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
24613 #endif
24614 #ifndef WIFEXITED
24615 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24616 #endif
24617
24618 int
24619 main ()
24620 {
24621 int s;
24622 wait (&s);
24623 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24624 ;
24625 return 0;
24626 }
24627 _ACEOF
24628 rm -f conftest.$ac_objext
24629 if { (ac_try="$ac_compile"
24630 case "(($ac_try" in
24631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632 *) ac_try_echo=$ac_try;;
24633 esac
24634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635 (eval "$ac_compile") 2>conftest.er1
24636 ac_status=$?
24637 grep -v '^ *+' conftest.er1 >conftest.err
24638 rm -f conftest.er1
24639 cat conftest.err >&5
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); } && {
24642 test -z "$ac_c_werror_flag" ||
24643 test ! -s conftest.err
24644 } && test -s conftest.$ac_objext; then
24645 ac_cv_header_sys_wait_h=yes
24646 else
24647 echo "$as_me: failed program was:" >&5
24648 sed 's/^/| /' conftest.$ac_ext >&5
24649
24650 ac_cv_header_sys_wait_h=no
24651 fi
24652
24653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24654 fi
24655 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24656 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
24657 if test $ac_cv_header_sys_wait_h = yes; then
24658
24659 cat >>confdefs.h <<\_ACEOF
24660 #define HAVE_SYS_WAIT_H 1
24661 _ACEOF
24662
24663 fi
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673 for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h
24674 do
24675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24680 echo $ECHO_N "(cached) $ECHO_C" >&6
24681 fi
24682 ac_res=`eval echo '${'$as_ac_Header'}'`
24683 { echo "$as_me:$LINENO: result: $ac_res" >&5
24684 echo "${ECHO_T}$ac_res" >&6; }
24685 else
24686 # Is the header compilable?
24687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24689 cat >conftest.$ac_ext <<_ACEOF
24690 /* confdefs.h. */
24691 _ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h. */
24695 $ac_includes_default
24696 #include <$ac_header>
24697 _ACEOF
24698 rm -f conftest.$ac_objext
24699 if { (ac_try="$ac_compile"
24700 case "(($ac_try" in
24701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24702 *) ac_try_echo=$ac_try;;
24703 esac
24704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24705 (eval "$ac_compile") 2>conftest.er1
24706 ac_status=$?
24707 grep -v '^ *+' conftest.er1 >conftest.err
24708 rm -f conftest.er1
24709 cat conftest.err >&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } && {
24712 test -z "$ac_c_werror_flag" ||
24713 test ! -s conftest.err
24714 } && test -s conftest.$ac_objext; then
24715 ac_header_compiler=yes
24716 else
24717 echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24719
24720 ac_header_compiler=no
24721 fi
24722
24723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24725 echo "${ECHO_T}$ac_header_compiler" >&6; }
24726
24727 # Is the header present?
24728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24730 cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h. */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h. */
24736 #include <$ac_header>
24737 _ACEOF
24738 if { (ac_try="$ac_cpp conftest.$ac_ext"
24739 case "(($ac_try" in
24740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741 *) ac_try_echo=$ac_try;;
24742 esac
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24745 ac_status=$?
24746 grep -v '^ *+' conftest.er1 >conftest.err
24747 rm -f conftest.er1
24748 cat conftest.err >&5
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); } >/dev/null && {
24751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24752 test ! -s conftest.err
24753 }; then
24754 ac_header_preproc=yes
24755 else
24756 echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24758
24759 ac_header_preproc=no
24760 fi
24761
24762 rm -f conftest.err conftest.$ac_ext
24763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24764 echo "${ECHO_T}$ac_header_preproc" >&6; }
24765
24766 # So? What about this header?
24767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24768 yes:no: )
24769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24773 ac_header_preproc=yes
24774 ;;
24775 no:yes:* )
24776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24788 ( cat <<\_ASBOX
24789 ## -------------------------------------------------- ##
24790 ## Report this to courier-users@lists.sourceforge.net ##
24791 ## -------------------------------------------------- ##
24792 _ASBOX
24793 ) | sed "s/^/$as_me: WARNING: /" >&2
24794 ;;
24795 esac
24796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24799 echo $ECHO_N "(cached) $ECHO_C" >&6
24800 else
24801 eval "$as_ac_Header=\$ac_header_preproc"
24802 fi
24803 ac_res=`eval echo '${'$as_ac_Header'}'`
24804 { echo "$as_me:$LINENO: result: $ac_res" >&5
24805 echo "${ECHO_T}$ac_res" >&6; }
24806
24807 fi
24808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24809 cat >>confdefs.h <<_ACEOF
24810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24811 _ACEOF
24812
24813 fi
24814
24815 done
24816
24817
24818 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24819 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24820 if test "${ac_cv_c_const+set}" = set; then
24821 echo $ECHO_N "(cached) $ECHO_C" >&6
24822 else
24823 cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h. */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h. */
24829
24830 int
24831 main ()
24832 {
24833 /* FIXME: Include the comments suggested by Paul. */
24834 #ifndef __cplusplus
24835 /* Ultrix mips cc rejects this. */
24836 typedef int charset[2];
24837 const charset cs;
24838 /* SunOS 4.1.1 cc rejects this. */
24839 char const *const *pcpcc;
24840 char **ppc;
24841 /* NEC SVR4.0.2 mips cc rejects this. */
24842 struct point {int x, y;};
24843 static struct point const zero = {0,0};
24844 /* AIX XL C 1.02.0.0 rejects this.
24845 It does not let you subtract one const X* pointer from another in
24846 an arm of an if-expression whose if-part is not a constant
24847 expression */
24848 const char *g = "string";
24849 pcpcc = &g + (g ? g-g : 0);
24850 /* HPUX 7.0 cc rejects these. */
24851 ++pcpcc;
24852 ppc = (char**) pcpcc;
24853 pcpcc = (char const *const *) ppc;
24854 { /* SCO 3.2v4 cc rejects this. */
24855 char *t;
24856 char const *s = 0 ? (char *) 0 : (char const *) 0;
24857
24858 *t++ = 0;
24859 if (s) return 0;
24860 }
24861 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24862 int x[] = {25, 17};
24863 const int *foo = &x[0];
24864 ++foo;
24865 }
24866 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24867 typedef const int *iptr;
24868 iptr p = 0;
24869 ++p;
24870 }
24871 { /* AIX XL C 1.02.0.0 rejects this saying
24872 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24873 struct s { int j; const int *ap[3]; };
24874 struct s *b; b->j = 5;
24875 }
24876 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24877 const int foo = 10;
24878 if (!foo) return 0;
24879 }
24880 return !cs[0] && !zero.x;
24881 #endif
24882
24883 ;
24884 return 0;
24885 }
24886 _ACEOF
24887 rm -f conftest.$ac_objext
24888 if { (ac_try="$ac_compile"
24889 case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24892 esac
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_compile") 2>conftest.er1
24895 ac_status=$?
24896 grep -v '^ *+' conftest.er1 >conftest.err
24897 rm -f conftest.er1
24898 cat conftest.err >&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } && {
24901 test -z "$ac_c_werror_flag" ||
24902 test ! -s conftest.err
24903 } && test -s conftest.$ac_objext; then
24904 ac_cv_c_const=yes
24905 else
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24908
24909 ac_cv_c_const=no
24910 fi
24911
24912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24913 fi
24914 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24915 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24916 if test $ac_cv_c_const = no; then
24917
24918 cat >>confdefs.h <<\_ACEOF
24919 #define const
24920 _ACEOF
24921
24922 fi
24923
24924 { echo "$as_me:$LINENO: checking for pid_t" >&5
24925 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24926 if test "${ac_cv_type_pid_t+set}" = set; then
24927 echo $ECHO_N "(cached) $ECHO_C" >&6
24928 else
24929 cat >conftest.$ac_ext <<_ACEOF
24930 /* confdefs.h. */
24931 _ACEOF
24932 cat confdefs.h >>conftest.$ac_ext
24933 cat >>conftest.$ac_ext <<_ACEOF
24934 /* end confdefs.h. */
24935 $ac_includes_default
24936 typedef pid_t ac__type_new_;
24937 int
24938 main ()
24939 {
24940 if ((ac__type_new_ *) 0)
24941 return 0;
24942 if (sizeof (ac__type_new_))
24943 return 0;
24944 ;
24945 return 0;
24946 }
24947 _ACEOF
24948 rm -f conftest.$ac_objext
24949 if { (ac_try="$ac_compile"
24950 case "(($ac_try" in
24951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952 *) ac_try_echo=$ac_try;;
24953 esac
24954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24955 (eval "$ac_compile") 2>conftest.er1
24956 ac_status=$?
24957 grep -v '^ *+' conftest.er1 >conftest.err
24958 rm -f conftest.er1
24959 cat conftest.err >&5
24960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } && {
24962 test -z "$ac_c_werror_flag" ||
24963 test ! -s conftest.err
24964 } && test -s conftest.$ac_objext; then
24965 ac_cv_type_pid_t=yes
24966 else
24967 echo "$as_me: failed program was:" >&5
24968 sed 's/^/| /' conftest.$ac_ext >&5
24969
24970 ac_cv_type_pid_t=no
24971 fi
24972
24973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24974 fi
24975 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24976 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24977 if test $ac_cv_type_pid_t = yes; then
24978 :
24979 else
24980
24981 cat >>confdefs.h <<_ACEOF
24982 #define pid_t int
24983 _ACEOF
24984
24985 fi
24986
24987 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24988 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24989 if test "${ac_cv_type_uid_t+set}" = set; then
24990 echo $ECHO_N "(cached) $ECHO_C" >&6
24991 else
24992 cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h. */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24998 #include <sys/types.h>
24999
25000 _ACEOF
25001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25002 $EGREP "uid_t" >/dev/null 2>&1; then
25003 ac_cv_type_uid_t=yes
25004 else
25005 ac_cv_type_uid_t=no
25006 fi
25007 rm -f conftest*
25008
25009 fi
25010 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25011 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
25012 if test $ac_cv_type_uid_t = no; then
25013
25014 cat >>confdefs.h <<\_ACEOF
25015 #define uid_t int
25016 _ACEOF
25017
25018
25019 cat >>confdefs.h <<\_ACEOF
25020 #define gid_t int
25021 _ACEOF
25022
25023 fi
25024
25025 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25026 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
25027 if test "${ac_cv_type_signal+set}" = set; then
25028 echo $ECHO_N "(cached) $ECHO_C" >&6
25029 else
25030 cat >conftest.$ac_ext <<_ACEOF
25031 /* confdefs.h. */
25032 _ACEOF
25033 cat confdefs.h >>conftest.$ac_ext
25034 cat >>conftest.$ac_ext <<_ACEOF
25035 /* end confdefs.h. */
25036 #include <sys/types.h>
25037 #include <signal.h>
25038
25039 int
25040 main ()
25041 {
25042 return *(signal (0, 0)) (0) == 1;
25043 ;
25044 return 0;
25045 }
25046 _ACEOF
25047 rm -f conftest.$ac_objext
25048 if { (ac_try="$ac_compile"
25049 case "(($ac_try" in
25050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25051 *) ac_try_echo=$ac_try;;
25052 esac
25053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25054 (eval "$ac_compile") 2>conftest.er1
25055 ac_status=$?
25056 grep -v '^ *+' conftest.er1 >conftest.err
25057 rm -f conftest.er1
25058 cat conftest.err >&5
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); } && {
25061 test -z "$ac_c_werror_flag" ||
25062 test ! -s conftest.err
25063 } && test -s conftest.$ac_objext; then
25064 ac_cv_type_signal=int
25065 else
25066 echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25068
25069 ac_cv_type_signal=void
25070 fi
25071
25072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25073 fi
25074 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25075 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
25076
25077 cat >>confdefs.h <<_ACEOF
25078 #define RETSIGTYPE $ac_cv_type_signal
25079 _ACEOF
25080
25081
25082
25083
25084
25085 for ac_func in setsid setlogin
25086 do
25087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25091 echo $ECHO_N "(cached) $ECHO_C" >&6
25092 else
25093 cat >conftest.$ac_ext <<_ACEOF
25094 /* confdefs.h. */
25095 _ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h. */
25099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25101 #define $ac_func innocuous_$ac_func
25102
25103 /* System header to define __stub macros and hopefully few prototypes,
25104 which can conflict with char $ac_func (); below.
25105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25106 <limits.h> exists even on freestanding compilers. */
25107
25108 #ifdef __STDC__
25109 # include <limits.h>
25110 #else
25111 # include <assert.h>
25112 #endif
25113
25114 #undef $ac_func
25115
25116 /* Override any GCC internal prototype to avoid an error.
25117 Use char because int might match the return type of a GCC
25118 builtin and then its argument prototype would still apply. */
25119 #ifdef __cplusplus
25120 extern "C"
25121 #endif
25122 char $ac_func ();
25123 /* The GNU C library defines this for functions which it implements
25124 to always fail with ENOSYS. Some functions are actually named
25125 something starting with __ and the normal name is an alias. */
25126 #if defined __stub_$ac_func || defined __stub___$ac_func
25127 choke me
25128 #endif
25129
25130 int
25131 main ()
25132 {
25133 return $ac_func ();
25134 ;
25135 return 0;
25136 }
25137 _ACEOF
25138 rm -f conftest.$ac_objext conftest$ac_exeext
25139 if { (ac_try="$ac_link"
25140 case "(($ac_try" in
25141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142 *) ac_try_echo=$ac_try;;
25143 esac
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145 (eval "$ac_link") 2>conftest.er1
25146 ac_status=$?
25147 grep -v '^ *+' conftest.er1 >conftest.err
25148 rm -f conftest.er1
25149 cat conftest.err >&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } && {
25152 test -z "$ac_c_werror_flag" ||
25153 test ! -s conftest.err
25154 } && test -s conftest$ac_exeext &&
25155 $as_test_x conftest$ac_exeext; then
25156 eval "$as_ac_var=yes"
25157 else
25158 echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25160
25161 eval "$as_ac_var=no"
25162 fi
25163
25164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25165 conftest$ac_exeext conftest.$ac_ext
25166 fi
25167 ac_res=`eval echo '${'$as_ac_var'}'`
25168 { echo "$as_me:$LINENO: result: $ac_res" >&5
25169 echo "${ECHO_T}$ac_res" >&6; }
25170 if test `eval echo '${'$as_ac_var'}'` = yes; then
25171 cat >>confdefs.h <<_ACEOF
25172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25173 _ACEOF
25174
25175 fi
25176 done
25177
25178 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25179 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25180 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25181 echo $ECHO_N "(cached) $ECHO_C" >&6
25182 else
25183 ac_check_lib_save_LIBS=$LIBS
25184 LIBS="-lcrypt $LIBS"
25185 cat >conftest.$ac_ext <<_ACEOF
25186 /* confdefs.h. */
25187 _ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h. */
25191
25192 /* Override any GCC internal prototype to avoid an error.
25193 Use char because int might match the return type of a GCC
25194 builtin and then its argument prototype would still apply. */
25195 #ifdef __cplusplus
25196 extern "C"
25197 #endif
25198 char crypt ();
25199 int
25200 main ()
25201 {
25202 return crypt ();
25203 ;
25204 return 0;
25205 }
25206 _ACEOF
25207 rm -f conftest.$ac_objext conftest$ac_exeext
25208 if { (ac_try="$ac_link"
25209 case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25212 esac
25213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214 (eval "$ac_link") 2>conftest.er1
25215 ac_status=$?
25216 grep -v '^ *+' conftest.er1 >conftest.err
25217 rm -f conftest.er1
25218 cat conftest.err >&5
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); } && {
25221 test -z "$ac_c_werror_flag" ||
25222 test ! -s conftest.err
25223 } && test -s conftest$ac_exeext &&
25224 $as_test_x conftest$ac_exeext; then
25225 ac_cv_lib_crypt_crypt=yes
25226 else
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25229
25230 ac_cv_lib_crypt_crypt=no
25231 fi
25232
25233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25234 conftest$ac_exeext conftest.$ac_ext
25235 LIBS=$ac_check_lib_save_LIBS
25236 fi
25237 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25238 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25239 if test $ac_cv_lib_crypt_crypt = yes; then
25240 CRYPTLIBS="-lcrypt"
25241 fi
25242
25243 saveLIBS="$LIBS"
25244 LIBS="$CRYPTLIBS $LIBS"
25245 { echo "$as_me:$LINENO: checking for crypt" >&5
25246 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25247 if test "${ac_cv_func_crypt+set}" = set; then
25248 echo $ECHO_N "(cached) $ECHO_C" >&6
25249 else
25250 cat >conftest.$ac_ext <<_ACEOF
25251 /* confdefs.h. */
25252 _ACEOF
25253 cat confdefs.h >>conftest.$ac_ext
25254 cat >>conftest.$ac_ext <<_ACEOF
25255 /* end confdefs.h. */
25256 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25258 #define crypt innocuous_crypt
25259
25260 /* System header to define __stub macros and hopefully few prototypes,
25261 which can conflict with char crypt (); below.
25262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25263 <limits.h> exists even on freestanding compilers. */
25264
25265 #ifdef __STDC__
25266 # include <limits.h>
25267 #else
25268 # include <assert.h>
25269 #endif
25270
25271 #undef crypt
25272
25273 /* Override any GCC internal prototype to avoid an error.
25274 Use char because int might match the return type of a GCC
25275 builtin and then its argument prototype would still apply. */
25276 #ifdef __cplusplus
25277 extern "C"
25278 #endif
25279 char crypt ();
25280 /* The GNU C library defines this for functions which it implements
25281 to always fail with ENOSYS. Some functions are actually named
25282 something starting with __ and the normal name is an alias. */
25283 #if defined __stub_crypt || defined __stub___crypt
25284 choke me
25285 #endif
25286
25287 int
25288 main ()
25289 {
25290 return crypt ();
25291 ;
25292 return 0;
25293 }
25294 _ACEOF
25295 rm -f conftest.$ac_objext conftest$ac_exeext
25296 if { (ac_try="$ac_link"
25297 case "(($ac_try" in
25298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25299 *) ac_try_echo=$ac_try;;
25300 esac
25301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25302 (eval "$ac_link") 2>conftest.er1
25303 ac_status=$?
25304 grep -v '^ *+' conftest.er1 >conftest.err
25305 rm -f conftest.er1
25306 cat conftest.err >&5
25307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308 (exit $ac_status); } && {
25309 test -z "$ac_c_werror_flag" ||
25310 test ! -s conftest.err
25311 } && test -s conftest$ac_exeext &&
25312 $as_test_x conftest$ac_exeext; then
25313 ac_cv_func_crypt=yes
25314 else
25315 echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25317
25318 ac_cv_func_crypt=no
25319 fi
25320
25321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25322 conftest$ac_exeext conftest.$ac_ext
25323 fi
25324 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25325 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25326 if test $ac_cv_func_crypt = yes; then
25327
25328 cat >>confdefs.h <<_ACEOF
25329 #define HAVE_CRYPT 1
25330 _ACEOF
25331
25332 fi
25333
25334 LIBS="$saveLIBS"
25335 { echo "$as_me:$LINENO: checking for crypt() prototype" >&5
25336 echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6; }
25337 if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
25338 echo $ECHO_N "(cached) $ECHO_C" >&6
25339 else
25340 cat >conftest.$ac_ext <<_ACEOF
25341 /* confdefs.h. */
25342 _ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h. */
25346
25347 #if HAVE_CRYPT_H
25348 #include <crypt.h>
25349 #endif
25350 #if HAVE_UNISTD_H
25351 #include <unistd.h>
25352 #endif
25353 int crypt(int, int);
25354
25355
25356 int
25357 main ()
25358 {
25359
25360 ;
25361 return 0;
25362 }
25363 _ACEOF
25364 rm -f conftest.$ac_objext
25365 if { (ac_try="$ac_compile"
25366 case "(($ac_try" in
25367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25368 *) ac_try_echo=$ac_try;;
25369 esac
25370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25371 (eval "$ac_compile") 2>conftest.er1
25372 ac_status=$?
25373 grep -v '^ *+' conftest.er1 >conftest.err
25374 rm -f conftest.er1
25375 cat conftest.err >&5
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); } && {
25378 test -z "$ac_c_werror_flag" ||
25379 test ! -s conftest.err
25380 } && test -s conftest.$ac_objext; then
25381 userdb_cv_NEED_CRYPT_PROTOTYPE=1
25382 else
25383 echo "$as_me: failed program was:" >&5
25384 sed 's/^/| /' conftest.$ac_ext >&5
25385
25386 userdb_cv_NEED_CRYPT_PROTOTYPE=0
25387 fi
25388
25389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25390
25391
25392 fi
25393 { echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
25394 echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
25395
25396
25397 cat >>confdefs.h <<_ACEOF
25398 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
25399 _ACEOF
25400
25401
25402
25403
25404
25405
25406
25407 # Check whether --with-authdaemonrc was given.
25408 if test "${with_authdaemonrc+set}" = set; then
25409 withval=$with_authdaemonrc; authdaemonrc="$withval"
25410 else
25411 authdaemonrc="$pkgconfdir/authdaemonrc"
25412 fi
25413
25414
25415
25416
25417 # Check whether --with-authdaemonvar was given.
25418 if test "${with_authdaemonvar+set}" = set; then
25419 withval=$with_authdaemonvar; authdaemonvar="$withval"
25420 else
25421 authdaemonvar="$localstatedir/spool/authdaemon"
25422 fi
25423
25424
25425
25426
25427
25428
25429
25430 cat >>confdefs.h <<_ACEOF
25431 #define SASL_LIST $SASL_LIST
25432 _ACEOF
25433
25434
25435 rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
25436
25437
25438
25439 result=""
25440
25441 if test -x "$COURIERCONFIG"
25442 then
25443 $COURIERCONFIG >conftest.out || exit 1
25444 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
25445 . conftest2.out
25446 rm -f conftest.out conftest2.out
25447
25448 cmailuser="$mailuser"
25449 cmailgroup="$mailgroup"
25450 result=" (from courier-config)"
25451 fi
25452
25453 if test -x "$bindir/courierauthconfig"
25454 then
25455 $bindir/courierauthconfig --configfiles >conftest.out || exit 1
25456 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
25457 . conftest2.out
25458 rm -f conftest.out conftest2.out
25459
25460 cmailuser="$mailuser"
25461 cmailgroup="$mailgroup"
25462 result=" (from previous courierauthconfig)"
25463 fi
25464
25465
25466
25467 LB='['
25468 RB=']'
25469
25470
25471
25472 { echo "$as_me:$LINENO: checking for mail userid" >&5
25473 echo $ECHO_N "checking for mail userid... $ECHO_C" >&6; }
25474
25475
25476 # Check whether --with-mailuser was given.
25477 if test "${with_mailuser+set}" = set; then
25478 withval=$with_mailuser; mailuser="$withval"
25479 else
25480 if test "$cmailuser" = ""
25481 then
25482 if test "$cross_compiling" = yes; then
25483 { { echo "$as_me:$LINENO: error: Must use --with-mailuser when cross compiling." >&5
25484 echo "$as_me: error: Must use --with-mailuser when cross compiling." >&2;}
25485 { (exit 1); exit 1; }; }
25486 else
25487 cat >conftest.$ac_ext <<_ACEOF
25488 /* confdefs.h. */
25489 _ACEOF
25490 cat confdefs.h >>conftest.$ac_ext
25491 cat >>conftest.$ac_ext <<_ACEOF
25492 /* end confdefs.h. */
25493
25494 #include <stdio.h>
25495 #include <pwd.h>
25496 #include <stdlib.h>
25497
25498 static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
25499
25500 int main()
25501 {
25502 int i;
25503 FILE *f;
25504 char *p;
25505
25506 for (i=0; ids $LB i $RB; i++)
25507 if (getpwnam(ids $LB i $RB)) break;
25508
25509 f=fopen("conftest.out", "w");
25510 if (f && ids $LB i $RB)
25511 {
25512 fprintf(f, "%s\n", ids $LB i $RB);
25513 fclose(f);
25514 exit(0);
25515 }
25516 fclose(f);
25517 exit (1);
25518 return (1);
25519 }
25520
25521 _ACEOF
25522 rm -f conftest$ac_exeext
25523 if { (ac_try="$ac_link"
25524 case "(($ac_try" in
25525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526 *) ac_try_echo=$ac_try;;
25527 esac
25528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529 (eval "$ac_link") 2>&5
25530 ac_status=$?
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25533 { (case "(($ac_try" in
25534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25535 *) ac_try_echo=$ac_try;;
25536 esac
25537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25538 (eval "$ac_try") 2>&5
25539 ac_status=$?
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); }; }; then
25542 mailuser=`cat conftest.out`
25543 else
25544 echo "$as_me: program exited with status $ac_status" >&5
25545 echo "$as_me: failed program was:" >&5
25546 sed 's/^/| /' conftest.$ac_ext >&5
25547
25548 ( exit $ac_status )
25549 { { echo "$as_me:$LINENO: error: Cannot determine mail user" >&5
25550 echo "$as_me: error: Cannot determine mail user" >&2;}
25551 { (exit use --with-mailuser.); exit use --with-mailuser.; }; }
25552 fi
25553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25554 fi
25555
25556
25557 else
25558 mailuser="$cmailuser"
25559 fi
25560 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser"
25561 fi
25562
25563
25564 { echo "$as_me:$LINENO: result: $mailuser $result" >&5
25565 echo "${ECHO_T}$mailuser $result" >&6; }
25566
25567 { echo "$as_me:$LINENO: checking for mail group id" >&5
25568 echo $ECHO_N "checking for mail group id... $ECHO_C" >&6; }
25569
25570
25571 # Check whether --with-mailgroup was given.
25572 if test "${with_mailgroup+set}" = set; then
25573 withval=$with_mailgroup; mailgroup="$withval"
25574 else
25575 if test "$cmailgroup" = ""
25576 then
25577 if test "$cross_compiling" = yes; then
25578 { { echo "$as_me:$LINENO: error: Must use --with-mailgroup when cross compiling." >&5
25579 echo "$as_me: error: Must use --with-mailgroup when cross compiling." >&2;}
25580 { (exit 1); exit 1; }; }
25581 else
25582 cat >conftest.$ac_ext <<_ACEOF
25583 /* confdefs.h. */
25584 _ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h. */
25588
25589 #include <stdio.h>
25590 #include <grp.h>
25591 #include <stdlib.h>
25592
25593 static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
25594
25595 int main()
25596 {
25597 int i;
25598 FILE *f;
25599
25600 for (i=0; ids $LB i $RB; i++)
25601 if (getgrnam(ids $LB i $RB)) break;
25602
25603 f=fopen("conftest.out", "w");
25604 if (f && ids $LB i $RB)
25605 {
25606 fprintf(f, "%s\n", ids $LB i $RB);
25607 fclose(f);
25608 exit(0);
25609 }
25610 fclose(f);
25611 exit (1);
25612 return (1);
25613 }
25614
25615 _ACEOF
25616 rm -f conftest$ac_exeext
25617 if { (ac_try="$ac_link"
25618 case "(($ac_try" in
25619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25620 *) ac_try_echo=$ac_try;;
25621 esac
25622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25623 (eval "$ac_link") 2>&5
25624 ac_status=$?
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
25633 ac_status=$?
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); }; }; then
25636 mailgroup=`cat conftest.out`
25637 else
25638 echo "$as_me: program exited with status $ac_status" >&5
25639 echo "$as_me: failed program was:" >&5
25640 sed 's/^/| /' conftest.$ac_ext >&5
25641
25642 ( exit $ac_status )
25643 { { echo "$as_me:$LINENO: error: Cannot determine mail group" >&5
25644 echo "$as_me: error: Cannot determine mail group" >&2;}
25645 { (exit use --with-mailgroup.); exit use --with-mailgroup.; }; }
25646 fi
25647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25648 fi
25649
25650
25651 else
25652 mailgroup="$cmailgroup"
25653 fi
25654 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup"
25655
25656 fi
25657
25658 { echo "$as_me:$LINENO: result: $mailgroup $result" >&5
25659 echo "${ECHO_T}$mailgroup $result" >&6; }
25660
25661
25662 rm -f conftest.out
25663
25664
25665 # Check whether --with-stdheaderdir was given.
25666 if test "${with_stdheaderdir+set}" = set; then
25667 withval=$with_stdheaderdir;
25668 if test "$withval" = "no"
25669 then
25670
25671 cat >>confdefs.h <<_ACEOF
25672 #define HAVE_NOSTDHEADERDIR 1
25673 _ACEOF
25674
25675 fi
25676
25677 fi
25678
25679
25680 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25681 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25682 if test "${authlib_cv_hassocklen_t+set}" = set; then
25683 echo $ECHO_N "(cached) $ECHO_C" >&6
25684 else
25685 cat >conftest.$ac_ext <<_ACEOF
25686 /* confdefs.h. */
25687 _ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h. */
25691
25692 #include <sys/types.h>
25693 #include <sys/socket.h>
25694
25695 socklen_t sl_t;
25696
25697 _ACEOF
25698 rm -f conftest.$ac_objext
25699 if { (ac_try="$ac_compile"
25700 case "(($ac_try" in
25701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702 *) ac_try_echo=$ac_try;;
25703 esac
25704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25705 (eval "$ac_compile") 2>conftest.er1
25706 ac_status=$?
25707 grep -v '^ *+' conftest.er1 >conftest.err
25708 rm -f conftest.er1
25709 cat conftest.err >&5
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); } && {
25712 test -z "$ac_c_werror_flag" ||
25713 test ! -s conftest.err
25714 } && test -s conftest.$ac_objext; then
25715 authlib_cv_hassocklen_t=yes
25716 else
25717 echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25719
25720 authlib_cv_hassocklen_t=no
25721 fi
25722
25723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25724
25725 fi
25726 { echo "$as_me:$LINENO: result: $authlib_cv_hassocklen_t" >&5
25727 echo "${ECHO_T}$authlib_cv_hassocklen_t" >&6; }
25728
25729 socklen_t="int"
25730
25731 if test $authlib_cv_hassocklen_t = yes
25732 then
25733 :
25734 else
25735
25736 cat >>confdefs.h <<_ACEOF
25737 #define socklen_t int
25738 _ACEOF
25739
25740 fi
25741
25742 if test x"$enable_ltdl_install" = x"yes"
25743 then
25744 LIBLTDL_SUBDIR=libltdl
25745 fi
25746
25747
25748
25749
25750 # Check whether --with-repository was given.
25751 if test "${with_repository+set}" = set; then
25752 withval=$with_repository; REPOSITORY="$withval"
25753 fi
25754
25755
25756
25757 if test -d ${srcdir}/docbook; then
25758 HAVE_SGML_TRUE=
25759 HAVE_SGML_FALSE='#'
25760 else
25761 HAVE_SGML_TRUE='#'
25762 HAVE_SGML_FALSE=
25763 fi
25764
25765 subdirs="$subdirs libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog"
25766
25767
25768 ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit userdb-test-cram-md5.pl"
25769
25770 cat >confcache <<\_ACEOF
25771 # This file is a shell script that caches the results of configure
25772 # tests run on this system so they can be shared between configure
25773 # scripts and configure runs, see configure's option --config-cache.
25774 # It is not useful on other systems. If it contains results you don't
25775 # want to keep, you may remove or edit it.
25776 #
25777 # config.status only pays attention to the cache file if you give it
25778 # the --recheck option to rerun configure.
25779 #
25780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25782 # following values.
25783
25784 _ACEOF
25785
25786 # The following way of writing the cache mishandles newlines in values,
25787 # but we know of no workaround that is simple, portable, and efficient.
25788 # So, we kill variables containing newlines.
25789 # Ultrix sh set writes to stderr and can't be redirected directly,
25790 # and sets the high bit in the cache file unless we assign to the vars.
25791 (
25792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25793 eval ac_val=\$$ac_var
25794 case $ac_val in #(
25795 *${as_nl}*)
25796 case $ac_var in #(
25797 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25798 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25799 esac
25800 case $ac_var in #(
25801 _ | IFS | as_nl) ;; #(
25802 *) $as_unset $ac_var ;;
25803 esac ;;
25804 esac
25805 done
25806
25807 (set) 2>&1 |
25808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25809 *${as_nl}ac_space=\ *)
25810 # `set' does not quote correctly, so add quotes (double-quote
25811 # substitution turns \\\\ into \\, and sed turns \\ into \).
25812 sed -n \
25813 "s/'/'\\\\''/g;
25814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25815 ;; #(
25816 *)
25817 # `set' quotes correctly as required by POSIX, so do not add quotes.
25818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25819 ;;
25820 esac |
25821 sort
25822 ) |
25823 sed '
25824 /^ac_cv_env_/b end
25825 t clear
25826 :clear
25827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25828 t end
25829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25830 :end' >>confcache
25831 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25832 if test -w "$cache_file"; then
25833 test "x$cache_file" != "x/dev/null" &&
25834 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25835 echo "$as_me: updating cache $cache_file" >&6;}
25836 cat confcache >$cache_file
25837 else
25838 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25839 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25840 fi
25841 fi
25842 rm -f confcache
25843
25844 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25845 # Let make expand exec_prefix.
25846 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25847
25848 DEFS=-DHAVE_CONFIG_H
25849
25850 ac_libobjs=
25851 ac_ltlibobjs=
25852 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25853 # 1. Remove the extension, and $U if already installed.
25854 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25855 ac_i=`echo "$ac_i" | sed "$ac_script"`
25856 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25857 # will be set to the directory where LIBOBJS objects are built.
25858 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25859 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25860 done
25861 LIBOBJS=$ac_libobjs
25862
25863 LTLIBOBJS=$ac_ltlibobjs
25864
25865
25866 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25867 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25868 Usually this means the macro was only invoked conditionally." >&5
25869 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25870 Usually this means the macro was only invoked conditionally." >&2;}
25871 { (exit 1); exit 1; }; }
25872 fi
25873 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25874 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25875 Usually this means the macro was only invoked conditionally." >&5
25876 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25877 Usually this means the macro was only invoked conditionally." >&2;}
25878 { (exit 1); exit 1; }; }
25879 fi
25880 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25881 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25882 Usually this means the macro was only invoked conditionally." >&5
25883 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25884 Usually this means the macro was only invoked conditionally." >&2;}
25885 { (exit 1); exit 1; }; }
25886 fi
25887 if test -z "${HAVE_MD5_TRUE}" && test -z "${HAVE_MD5_FALSE}"; then
25888 { { echo "$as_me:$LINENO: error: conditional \"HAVE_MD5\" was never defined.
25889 Usually this means the macro was only invoked conditionally." >&5
25890 echo "$as_me: error: conditional \"HAVE_MD5\" was never defined.
25891 Usually this means the macro was only invoked conditionally." >&2;}
25892 { (exit 1); exit 1; }; }
25893 fi
25894 if test -z "${HAVE_SHA1_TRUE}" && test -z "${HAVE_SHA1_FALSE}"; then
25895 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SHA1\" was never defined.
25896 Usually this means the macro was only invoked conditionally." >&5
25897 echo "$as_me: error: conditional \"HAVE_SHA1\" was never defined.
25898 Usually this means the macro was only invoked conditionally." >&2;}
25899 { (exit 1); exit 1; }; }
25900 fi
25901 if test -z "${HAVE_HMACLIB_TRUE}" && test -z "${HAVE_HMACLIB_FALSE}"; then
25902 { { echo "$as_me:$LINENO: error: conditional \"HAVE_HMACLIB\" was never defined.
25903 Usually this means the macro was only invoked conditionally." >&5
25904 echo "$as_me: error: conditional \"HAVE_HMACLIB\" was never defined.
25905 Usually this means the macro was only invoked conditionally." >&2;}
25906 { (exit 1); exit 1; }; }
25907 fi
25908 if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
25909 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LDAP\" was never defined.
25910 Usually this means the macro was only invoked conditionally." >&5
25911 echo "$as_me: error: conditional \"HAVE_LDAP\" was never defined.
25912 Usually this means the macro was only invoked conditionally." >&2;}
25913 { (exit 1); exit 1; }; }
25914 fi
25915 if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
25916 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
25917 Usually this means the macro was only invoked conditionally." >&5
25918 echo "$as_me: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
25919 Usually this means the macro was only invoked conditionally." >&2;}
25920 { (exit 1); exit 1; }; }
25921 fi
25922 if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
25923 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
25924 Usually this means the macro was only invoked conditionally." >&5
25925 echo "$as_me: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
25926 Usually this means the macro was only invoked conditionally." >&2;}
25927 { (exit 1); exit 1; }; }
25928 fi
25929 if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
25930 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CUSTOM\" was never defined.
25931 Usually this means the macro was only invoked conditionally." >&5
25932 echo "$as_me: error: conditional \"HAVE_CUSTOM\" was never defined.
25933 Usually this means the macro was only invoked conditionally." >&2;}
25934 { (exit 1); exit 1; }; }
25935 fi
25936 if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
25937 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PIPE\" was never defined.
25938 Usually this means the macro was only invoked conditionally." >&5
25939 echo "$as_me: error: conditional \"HAVE_PIPE\" was never defined.
25940 Usually this means the macro was only invoked conditionally." >&2;}
25941 { (exit 1); exit 1; }; }
25942 fi
25943 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
25944 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
25945 Usually this means the macro was only invoked conditionally." >&5
25946 echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
25947 Usually this means the macro was only invoked conditionally." >&2;}
25948 { (exit 1); exit 1; }; }
25949 fi
25950
25951 : ${CONFIG_STATUS=./config.status}
25952 ac_clean_files_save=$ac_clean_files
25953 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25954 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25955 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25956 cat >$CONFIG_STATUS <<_ACEOF
25957 #! $SHELL
25958 # Generated by $as_me.
25959 # Run this file to recreate the current configuration.
25960 # Compiler output produced by configure, useful for debugging
25961 # configure, is in config.log if it exists.
25962
25963 debug=false
25964 ac_cs_recheck=false
25965 ac_cs_silent=false
25966 SHELL=\${CONFIG_SHELL-$SHELL}
25967 _ACEOF
25968
25969 cat >>$CONFIG_STATUS <<\_ACEOF
25970 ## --------------------- ##
25971 ## M4sh Initialization. ##
25972 ## --------------------- ##
25973
25974 # Be more Bourne compatible
25975 DUALCASE=1; export DUALCASE # for MKS sh
25976 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25977 emulate sh
25978 NULLCMD=:
25979 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25980 # is contrary to our usage. Disable this feature.
25981 alias -g '${1+"$@"}'='"$@"'
25982 setopt NO_GLOB_SUBST
25983 else
25984 case `(set -o) 2>/dev/null` in
25985 *posix*) set -o posix ;;
25986 esac
25987
25988 fi
25989
25990
25991
25992
25993 # PATH needs CR
25994 # Avoid depending upon Character Ranges.
25995 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25996 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25997 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25998 as_cr_digits='0123456789'
25999 as_cr_alnum=$as_cr_Letters$as_cr_digits
26000
26001 # The user is always right.
26002 if test "${PATH_SEPARATOR+set}" != set; then
26003 echo "#! /bin/sh" >conf$$.sh
26004 echo "exit 0" >>conf$$.sh
26005 chmod +x conf$$.sh
26006 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26007 PATH_SEPARATOR=';'
26008 else
26009 PATH_SEPARATOR=:
26010 fi
26011 rm -f conf$$.sh
26012 fi
26013
26014 # Support unset when possible.
26015 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26016 as_unset=unset
26017 else
26018 as_unset=false
26019 fi
26020
26021
26022 # IFS
26023 # We need space, tab and new line, in precisely that order. Quoting is
26024 # there to prevent editors from complaining about space-tab.
26025 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26026 # splitting by setting IFS to empty value.)
26027 as_nl='
26028 '
26029 IFS=" "" $as_nl"
26030
26031 # Find who we are. Look in the path if we contain no directory separator.
26032 case $0 in
26033 *[\\/]* ) as_myself=$0 ;;
26034 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26035 for as_dir in $PATH
26036 do
26037 IFS=$as_save_IFS
26038 test -z "$as_dir" && as_dir=.
26039 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26040 done
26041 IFS=$as_save_IFS
26042
26043 ;;
26044 esac
26045 # We did not find ourselves, most probably we were run as `sh COMMAND'
26046 # in which case we are not to be found in the path.
26047 if test "x$as_myself" = x; then
26048 as_myself=$0
26049 fi
26050 if test ! -f "$as_myself"; then
26051 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26052 { (exit 1); exit 1; }
26053 fi
26054
26055 # Work around bugs in pre-3.0 UWIN ksh.
26056 for as_var in ENV MAIL MAILPATH
26057 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26058 done
26059 PS1='$ '
26060 PS2='> '
26061 PS4='+ '
26062
26063 # NLS nuisances.
26064 for as_var in \
26065 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26066 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26067 LC_TELEPHONE LC_TIME
26068 do
26069 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26070 eval $as_var=C; export $as_var
26071 else
26072 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26073 fi
26074 done
26075
26076 # Required to use basename.
26077 if expr a : '\(a\)' >/dev/null 2>&1 &&
26078 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26079 as_expr=expr
26080 else
26081 as_expr=false
26082 fi
26083
26084 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26085 as_basename=basename
26086 else
26087 as_basename=false
26088 fi
26089
26090
26091 # Name of the executable.
26092 as_me=`$as_basename -- "$0" ||
26093 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26094 X"$0" : 'X\(//\)$' \| \
26095 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26096 echo X/"$0" |
26097 sed '/^.*\/\([^/][^/]*\)\/*$/{
26098 s//\1/
26099 q
26100 }
26101 /^X\/\(\/\/\)$/{
26102 s//\1/
26103 q
26104 }
26105 /^X\/\(\/\).*/{
26106 s//\1/
26107 q
26108 }
26109 s/.*/./; q'`
26110
26111 # CDPATH.
26112 $as_unset CDPATH
26113
26114
26115
26116 as_lineno_1=$LINENO
26117 as_lineno_2=$LINENO
26118 test "x$as_lineno_1" != "x$as_lineno_2" &&
26119 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26120
26121 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26122 # uniformly replaced by the line number. The first 'sed' inserts a
26123 # line-number line after each line using $LINENO; the second 'sed'
26124 # does the real work. The second script uses 'N' to pair each
26125 # line-number line with the line containing $LINENO, and appends
26126 # trailing '-' during substitution so that $LINENO is not a special
26127 # case at line end.
26128 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26129 # scripts with optimization help from Paolo Bonzini. Blame Lee
26130 # E. McMahon (1931-1989) for sed's syntax. :-)
26131 sed -n '
26132 p
26133 /[$]LINENO/=
26134 ' <$as_myself |
26135 sed '
26136 s/[$]LINENO.*/&-/
26137 t lineno
26138 b
26139 :lineno
26140 N
26141 :loop
26142 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26143 t loop
26144 s/-\n.*//
26145 ' >$as_me.lineno &&
26146 chmod +x "$as_me.lineno" ||
26147 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26148 { (exit 1); exit 1; }; }
26149
26150 # Don't try to exec as it changes $[0], causing all sort of problems
26151 # (the dirname of $[0] is not the place where we might find the
26152 # original and so on. Autoconf is especially sensitive to this).
26153 . "./$as_me.lineno"
26154 # Exit status is that of the last command.
26155 exit
26156 }
26157
26158
26159 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26160 as_dirname=dirname
26161 else
26162 as_dirname=false
26163 fi
26164
26165 ECHO_C= ECHO_N= ECHO_T=
26166 case `echo -n x` in
26167 -n*)
26168 case `echo 'x\c'` in
26169 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26170 *) ECHO_C='\c';;
26171 esac;;
26172 *)
26173 ECHO_N='-n';;
26174 esac
26175
26176 if expr a : '\(a\)' >/dev/null 2>&1 &&
26177 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26178 as_expr=expr
26179 else
26180 as_expr=false
26181 fi
26182
26183 rm -f conf$$ conf$$.exe conf$$.file
26184 if test -d conf$$.dir; then
26185 rm -f conf$$.dir/conf$$.file
26186 else
26187 rm -f conf$$.dir
26188 mkdir conf$$.dir
26189 fi
26190 echo >conf$$.file
26191 if ln -s conf$$.file conf$$ 2>/dev/null; then
26192 as_ln_s='ln -s'
26193 # ... but there are two gotchas:
26194 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26195 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26196 # In both cases, we have to default to `cp -p'.
26197 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26198 as_ln_s='cp -p'
26199 elif ln conf$$.file conf$$ 2>/dev/null; then
26200 as_ln_s=ln
26201 else
26202 as_ln_s='cp -p'
26203 fi
26204 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26205 rmdir conf$$.dir 2>/dev/null
26206
26207 if mkdir -p . 2>/dev/null; then
26208 as_mkdir_p=:
26209 else
26210 test -d ./-p && rmdir ./-p
26211 as_mkdir_p=false
26212 fi
26213
26214 if test -x / >/dev/null 2>&1; then
26215 as_test_x='test -x'
26216 else
26217 if ls -dL / >/dev/null 2>&1; then
26218 as_ls_L_option=L
26219 else
26220 as_ls_L_option=
26221 fi
26222 as_test_x='
26223 eval sh -c '\''
26224 if test -d "$1"; then
26225 test -d "$1/.";
26226 else
26227 case $1 in
26228 -*)set "./$1";;
26229 esac;
26230 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26231 ???[sx]*):;;*)false;;esac;fi
26232 '\'' sh
26233 '
26234 fi
26235 as_executable_p=$as_test_x
26236
26237 # Sed expression to map a string onto a valid CPP name.
26238 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26239
26240 # Sed expression to map a string onto a valid variable name.
26241 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26242
26243
26244 exec 6>&1
26245
26246 # Save the log message, to keep $[0] and so on meaningful, and to
26247 # report actual input values of CONFIG_FILES etc. instead of their
26248 # values after options handling.
26249 ac_log="
26250 This file was extended by courier-authlib $as_me 0.60.2, which was
26251 generated by GNU Autoconf 2.61. Invocation command line was
26252
26253 CONFIG_FILES = $CONFIG_FILES
26254 CONFIG_HEADERS = $CONFIG_HEADERS
26255 CONFIG_LINKS = $CONFIG_LINKS
26256 CONFIG_COMMANDS = $CONFIG_COMMANDS
26257 $ $0 $@
26258
26259 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26260 "
26261
26262 _ACEOF
26263
26264 cat >>$CONFIG_STATUS <<_ACEOF
26265 # Files that config.status was made for.
26266 config_files="$ac_config_files"
26267 config_headers="$ac_config_headers"
26268 config_commands="$ac_config_commands"
26269
26270 _ACEOF
26271
26272 cat >>$CONFIG_STATUS <<\_ACEOF
26273 ac_cs_usage="\
26274 \`$as_me' instantiates files from templates according to the
26275 current configuration.
26276
26277 Usage: $0 [OPTIONS] [FILE]...
26278
26279 -h, --help print this help, then exit
26280 -V, --version print version number and configuration settings, then exit
26281 -q, --quiet do not print progress messages
26282 -d, --debug don't remove temporary files
26283 --recheck update $as_me by reconfiguring in the same conditions
26284 --file=FILE[:TEMPLATE]
26285 instantiate the configuration file FILE
26286 --header=FILE[:TEMPLATE]
26287 instantiate the configuration header FILE
26288
26289 Configuration files:
26290 $config_files
26291
26292 Configuration headers:
26293 $config_headers
26294
26295 Configuration commands:
26296 $config_commands
26297
26298 Report bugs to <bug-autoconf@gnu.org>."
26299
26300 _ACEOF
26301 cat >>$CONFIG_STATUS <<_ACEOF
26302 ac_cs_version="\\
26303 courier-authlib config.status 0.60.2
26304 configured by $0, generated by GNU Autoconf 2.61,
26305 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26306
26307 Copyright (C) 2006 Free Software Foundation, Inc.
26308 This config.status script is free software; the Free Software Foundation
26309 gives unlimited permission to copy, distribute and modify it."
26310
26311 ac_pwd='$ac_pwd'
26312 srcdir='$srcdir'
26313 INSTALL='$INSTALL'
26314 MKDIR_P='$MKDIR_P'
26315 _ACEOF
26316
26317 cat >>$CONFIG_STATUS <<\_ACEOF
26318 # If no file are specified by the user, then we need to provide default
26319 # value. By we need to know if files were specified by the user.
26320 ac_need_defaults=:
26321 while test $# != 0
26322 do
26323 case $1 in
26324 --*=*)
26325 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26326 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26327 ac_shift=:
26328 ;;
26329 *)
26330 ac_option=$1
26331 ac_optarg=$2
26332 ac_shift=shift
26333 ;;
26334 esac
26335
26336 case $ac_option in
26337 # Handling of the options.
26338 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26339 ac_cs_recheck=: ;;
26340 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26341 echo "$ac_cs_version"; exit ;;
26342 --debug | --debu | --deb | --de | --d | -d )
26343 debug=: ;;
26344 --file | --fil | --fi | --f )
26345 $ac_shift
26346 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26347 ac_need_defaults=false;;
26348 --header | --heade | --head | --hea )
26349 $ac_shift
26350 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26351 ac_need_defaults=false;;
26352 --he | --h)
26353 # Conflict between --help and --header
26354 { echo "$as_me: error: ambiguous option: $1
26355 Try \`$0 --help' for more information." >&2
26356 { (exit 1); exit 1; }; };;
26357 --help | --hel | -h )
26358 echo "$ac_cs_usage"; exit ;;
26359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26360 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26361 ac_cs_silent=: ;;
26362
26363 # This is an error.
26364 -*) { echo "$as_me: error: unrecognized option: $1
26365 Try \`$0 --help' for more information." >&2
26366 { (exit 1); exit 1; }; } ;;
26367
26368 *) ac_config_targets="$ac_config_targets $1"
26369 ac_need_defaults=false ;;
26370
26371 esac
26372 shift
26373 done
26374
26375 ac_configure_extra_args=
26376
26377 if $ac_cs_silent; then
26378 exec 6>/dev/null
26379 ac_configure_extra_args="$ac_configure_extra_args --silent"
26380 fi
26381
26382 _ACEOF
26383 cat >>$CONFIG_STATUS <<_ACEOF
26384 if \$ac_cs_recheck; then
26385 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26386 CONFIG_SHELL=$SHELL
26387 export CONFIG_SHELL
26388 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26389 fi
26390
26391 _ACEOF
26392 cat >>$CONFIG_STATUS <<\_ACEOF
26393 exec 5>>config.log
26394 {
26395 echo
26396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26397 ## Running $as_me. ##
26398 _ASBOX
26399 echo "$ac_log"
26400 } >&5
26401
26402 _ACEOF
26403 cat >>$CONFIG_STATUS <<_ACEOF
26404 #
26405 # INIT-COMMANDS
26406 #
26407 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26408
26409 _ACEOF
26410
26411 cat >>$CONFIG_STATUS <<\_ACEOF
26412
26413 # Handling of arguments.
26414 for ac_config_target in $ac_config_targets
26415 do
26416 case $ac_config_target in
26417 "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;;
26418 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26419 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26420 "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;;
26421 "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;;
26422 "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;;
26423 "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;;
26424 "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;;
26425 "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;;
26426 "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;;
26427 "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;;
26428 "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;;
26429 "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;;
26430
26431 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26432 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26433 { (exit 1); exit 1; }; };;
26434 esac
26435 done
26436
26437
26438 # If the user did not use the arguments to specify the items to instantiate,
26439 # then the envvar interface is used. Set only those that are not.
26440 # We use the long form for the default assignment because of an extremely
26441 # bizarre bug on SunOS 4.1.3.
26442 if $ac_need_defaults; then
26443 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26444 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26445 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26446 fi
26447
26448 # Have a temporary directory for convenience. Make it in the build tree
26449 # simply because there is no reason against having it here, and in addition,
26450 # creating and moving files from /tmp can sometimes cause problems.
26451 # Hook for its removal unless debugging.
26452 # Note that there is a small window in which the directory will not be cleaned:
26453 # after its creation but before its name has been assigned to `$tmp'.
26454 $debug ||
26455 {
26456 tmp=
26457 trap 'exit_status=$?
26458 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26459 ' 0
26460 trap '{ (exit 1); exit 1; }' 1 2 13 15
26461 }
26462 # Create a (secure) tmp directory for tmp files.
26463
26464 {
26465 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26466 test -n "$tmp" && test -d "$tmp"
26467 } ||
26468 {
26469 tmp=./conf$$-$RANDOM
26470 (umask 077 && mkdir "$tmp")
26471 } ||
26472 {
26473 echo "$me: cannot create a temporary directory in ." >&2
26474 { (exit 1); exit 1; }
26475 }
26476
26477 #
26478 # Set up the sed scripts for CONFIG_FILES section.
26479 #
26480
26481 # No need to generate the scripts if there are no CONFIG_FILES.
26482 # This happens for instance when ./config.status config.h
26483 if test -n "$CONFIG_FILES"; then
26484
26485 _ACEOF
26486
26487
26488
26489 ac_delim='%!_!# '
26490 for ac_last_try in false false false false false :; do
26491 cat >conf$$subs.sed <<_ACEOF
26492 SHELL!$SHELL$ac_delim
26493 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26494 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26495 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26496 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26497 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26498 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26499 exec_prefix!$exec_prefix$ac_delim
26500 prefix!$prefix$ac_delim
26501 program_transform_name!$program_transform_name$ac_delim
26502 bindir!$bindir$ac_delim
26503 sbindir!$sbindir$ac_delim
26504 libexecdir!$libexecdir$ac_delim
26505 datarootdir!$datarootdir$ac_delim
26506 datadir!$datadir$ac_delim
26507 sysconfdir!$sysconfdir$ac_delim
26508 sharedstatedir!$sharedstatedir$ac_delim
26509 localstatedir!$localstatedir$ac_delim
26510 includedir!$includedir$ac_delim
26511 oldincludedir!$oldincludedir$ac_delim
26512 docdir!$docdir$ac_delim
26513 infodir!$infodir$ac_delim
26514 htmldir!$htmldir$ac_delim
26515 dvidir!$dvidir$ac_delim
26516 pdfdir!$pdfdir$ac_delim
26517 psdir!$psdir$ac_delim
26518 libdir!$libdir$ac_delim
26519 localedir!$localedir$ac_delim
26520 mandir!$mandir$ac_delim
26521 DEFS!$DEFS$ac_delim
26522 ECHO_C!$ECHO_C$ac_delim
26523 ECHO_N!$ECHO_N$ac_delim
26524 ECHO_T!$ECHO_T$ac_delim
26525 LIBS!$LIBS$ac_delim
26526 build_alias!$build_alias$ac_delim
26527 host_alias!$host_alias$ac_delim
26528 target_alias!$target_alias$ac_delim
26529 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26530 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26531 INSTALL_DATA!$INSTALL_DATA$ac_delim
26532 am__isrc!$am__isrc$ac_delim
26533 CYGPATH_W!$CYGPATH_W$ac_delim
26534 PACKAGE!$PACKAGE$ac_delim
26535 VERSION!$VERSION$ac_delim
26536 ACLOCAL!$ACLOCAL$ac_delim
26537 AUTOCONF!$AUTOCONF$ac_delim
26538 AUTOMAKE!$AUTOMAKE$ac_delim
26539 AUTOHEADER!$AUTOHEADER$ac_delim
26540 MAKEINFO!$MAKEINFO$ac_delim
26541 install_sh!$install_sh$ac_delim
26542 STRIP!$STRIP$ac_delim
26543 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26544 mkdir_p!$mkdir_p$ac_delim
26545 AWK!$AWK$ac_delim
26546 SET_MAKE!$SET_MAKE$ac_delim
26547 am__leading_dot!$am__leading_dot$ac_delim
26548 AMTAR!$AMTAR$ac_delim
26549 am__tar!$am__tar$ac_delim
26550 am__untar!$am__untar$ac_delim
26551 CC!$CC$ac_delim
26552 CFLAGS!$CFLAGS$ac_delim
26553 LDFLAGS!$LDFLAGS$ac_delim
26554 CPPFLAGS!$CPPFLAGS$ac_delim
26555 ac_ct_CC!$ac_ct_CC$ac_delim
26556 EXEEXT!$EXEEXT$ac_delim
26557 OBJEXT!$OBJEXT$ac_delim
26558 DEPDIR!$DEPDIR$ac_delim
26559 am__include!$am__include$ac_delim
26560 am__quote!$am__quote$ac_delim
26561 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26562 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26563 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26564 CCDEPMODE!$CCDEPMODE$ac_delim
26565 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26566 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26567 CPP!$CPP$ac_delim
26568 LN_S!$LN_S$ac_delim
26569 build!$build$ac_delim
26570 build_cpu!$build_cpu$ac_delim
26571 build_vendor!$build_vendor$ac_delim
26572 build_os!$build_os$ac_delim
26573 host!$host$ac_delim
26574 host_cpu!$host_cpu$ac_delim
26575 host_vendor!$host_vendor$ac_delim
26576 host_os!$host_os$ac_delim
26577 GREP!$GREP$ac_delim
26578 EGREP!$EGREP$ac_delim
26579 ECHO!$ECHO$ac_delim
26580 AR!$AR$ac_delim
26581 RANLIB!$RANLIB$ac_delim
26582 CXX!$CXX$ac_delim
26583 CXXFLAGS!$CXXFLAGS$ac_delim
26584 ac_ct_CXX!$ac_ct_CXX$ac_delim
26585 CXXDEPMODE!$CXXDEPMODE$ac_delim
26586 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26587 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26588 CXXCPP!$CXXCPP$ac_delim
26589 _ACEOF
26590
26591 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26592 break
26593 elif $ac_last_try; then
26594 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26595 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26596 { (exit 1); exit 1; }; }
26597 else
26598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26599 fi
26600 done
26601
26602 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26603 if test -n "$ac_eof"; then
26604 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26605 ac_eof=`expr $ac_eof + 1`
26606 fi
26607
26608 cat >>$CONFIG_STATUS <<_ACEOF
26609 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26611 _ACEOF
26612 sed '
26613 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26614 s/^/s,@/; s/!/@,|#_!!_#|/
26615 :n
26616 t n
26617 s/'"$ac_delim"'$/,g/; t
26618 s/$/\\/; p
26619 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26620 ' >>$CONFIG_STATUS <conf$$subs.sed
26621 rm -f conf$$subs.sed
26622 cat >>$CONFIG_STATUS <<_ACEOF
26623 CEOF$ac_eof
26624 _ACEOF
26625
26626
26627 ac_delim='%!_!# '
26628 for ac_last_try in false false false false false :; do
26629 cat >conf$$subs.sed <<_ACEOF
26630 F77!$F77$ac_delim
26631 FFLAGS!$FFLAGS$ac_delim
26632 ac_ct_F77!$ac_ct_F77$ac_delim
26633 LIBTOOL!$LIBTOOL$ac_delim
26634 LTDLINCL!$LTDLINCL$ac_delim
26635 LIBLTDL!$LIBLTDL$ac_delim
26636 PERL!$PERL$ac_delim
26637 COURIERCONFIG!$COURIERCONFIG$ac_delim
26638 EXPECT!$EXPECT$ac_delim
26639 PASSWD!$PASSWD$ac_delim
26640 MD5LIB!$MD5LIB$ac_delim
26641 HAVE_MD5_TRUE!$HAVE_MD5_TRUE$ac_delim
26642 HAVE_MD5_FALSE!$HAVE_MD5_FALSE$ac_delim
26643 SHA1LIB!$SHA1LIB$ac_delim
26644 HAVE_SHA1_TRUE!$HAVE_SHA1_TRUE$ac_delim
26645 HAVE_SHA1_FALSE!$HAVE_SHA1_FALSE$ac_delim
26646 HMACLIB!$HMACLIB$ac_delim
26647 HAVE_HMACLIB_TRUE!$HAVE_HMACLIB_TRUE$ac_delim
26648 HAVE_HMACLIB_FALSE!$HAVE_HMACLIB_FALSE$ac_delim
26649 NETLIBS!$NETLIBS$ac_delim
26650 DBSUBDIR!$DBSUBDIR$ac_delim
26651 USE_GDBM!$USE_GDBM$ac_delim
26652 USE_DB!$USE_DB$ac_delim
26653 LIBDB!$LIBDB$ac_delim
26654 LIBGDBM!$LIBGDBM$ac_delim
26655 dblibrary!$dblibrary$ac_delim
26656 LIBAUTHUSERDB!$LIBAUTHUSERDB$ac_delim
26657 userdb!$userdb$ac_delim
26658 LIBDL!$LIBDL$ac_delim
26659 AUTHPAMCRYPT!$AUTHPAMCRYPT$ac_delim
26660 LIBAUTHPAM!$LIBAUTHPAM$ac_delim
26661 authldaprc!$authldaprc$ac_delim
26662 LDAPLIBS!$LDAPLIBS$ac_delim
26663 LIBAUTHLDAP!$LIBAUTHLDAP$ac_delim
26664 HAVE_LDAP_TRUE!$HAVE_LDAP_TRUE$ac_delim
26665 HAVE_LDAP_FALSE!$HAVE_LDAP_FALSE$ac_delim
26666 SHADOWLIBS!$SHADOWLIBS$ac_delim
26667 LIBAUTHSHADOW!$LIBAUTHSHADOW$ac_delim
26668 LIBAUTHPWD!$LIBAUTHPWD$ac_delim
26669 vpopmail_home!$vpopmail_home$ac_delim
26670 VPOPMAILLIBS!$VPOPMAILLIBS$ac_delim
26671 LIBAUTHVCHKPW!$LIBAUTHVCHKPW$ac_delim
26672 authpgsqlrc!$authpgsqlrc$ac_delim
26673 PG_CONFIG!$PG_CONFIG$ac_delim
26674 PGSQL_LIBS!$PGSQL_LIBS$ac_delim
26675 LIBAUTHPGSQL!$LIBAUTHPGSQL$ac_delim
26676 HAVE_AUTHPGSQL_TRUE!$HAVE_AUTHPGSQL_TRUE$ac_delim
26677 HAVE_AUTHPGSQL_FALSE!$HAVE_AUTHPGSQL_FALSE$ac_delim
26678 authmysqlrc!$authmysqlrc$ac_delim
26679 MYSQL_CONFIG!$MYSQL_CONFIG$ac_delim
26680 LIBAUTHMYSQL!$LIBAUTHMYSQL$ac_delim
26681 MYSQL_LIBS!$MYSQL_LIBS$ac_delim
26682 HAVE_AUTHMYSQL_TRUE!$HAVE_AUTHMYSQL_TRUE$ac_delim
26683 HAVE_AUTHMYSQL_FALSE!$HAVE_AUTHMYSQL_FALSE$ac_delim
26684 HAVE_CUSTOM_TRUE!$HAVE_CUSTOM_TRUE$ac_delim
26685 HAVE_CUSTOM_FALSE!$HAVE_CUSTOM_FALSE$ac_delim
26686 LIBAUTHCUSTOM!$LIBAUTHCUSTOM$ac_delim
26687 authProg!$authProg$ac_delim
26688 HAVE_PIPE_TRUE!$HAVE_PIPE_TRUE$ac_delim
26689 HAVE_PIPE_FALSE!$HAVE_PIPE_FALSE$ac_delim
26690 LIBAUTHPIPE!$LIBAUTHPIPE$ac_delim
26691 CRYPTLIBS!$CRYPTLIBS$ac_delim
26692 authdaemonrc!$authdaemonrc$ac_delim
26693 authdaemonvar!$authdaemonvar$ac_delim
26694 LIBM!$LIBM$ac_delim
26695 mailuser!$mailuser$ac_delim
26696 mailgroup!$mailgroup$ac_delim
26697 LIBLTDL_SUBDIR!$LIBLTDL_SUBDIR$ac_delim
26698 REPOSITORY!$REPOSITORY$ac_delim
26699 HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
26700 HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
26701 subdirs!$subdirs$ac_delim
26702 LIBOBJS!$LIBOBJS$ac_delim
26703 LTLIBOBJS!$LTLIBOBJS$ac_delim
26704 _ACEOF
26705
26706 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
26707 break
26708 elif $ac_last_try; then
26709 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26710 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26711 { (exit 1); exit 1; }; }
26712 else
26713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26714 fi
26715 done
26716
26717 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26718 if test -n "$ac_eof"; then
26719 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26720 ac_eof=`expr $ac_eof + 1`
26721 fi
26722
26723 cat >>$CONFIG_STATUS <<_ACEOF
26724 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26726 _ACEOF
26727 sed '
26728 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26729 s/^/s,@/; s/!/@,|#_!!_#|/
26730 :n
26731 t n
26732 s/'"$ac_delim"'$/,g/; t
26733 s/$/\\/; p
26734 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26735 ' >>$CONFIG_STATUS <conf$$subs.sed
26736 rm -f conf$$subs.sed
26737 cat >>$CONFIG_STATUS <<_ACEOF
26738 :end
26739 s/|#_!!_#|//g
26740 CEOF$ac_eof
26741 _ACEOF
26742
26743
26744 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26745 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26746 # trailing colons and then remove the whole line if VPATH becomes empty
26747 # (actually we leave an empty line to preserve line numbers).
26748 if test "x$srcdir" = x.; then
26749 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26750 s/:*\$(srcdir):*/:/
26751 s/:*\${srcdir}:*/:/
26752 s/:*@srcdir@:*/:/
26753 s/^\([^=]*=[ ]*\):*/\1/
26754 s/:*$//
26755 s/^[^=]*=[ ]*$//
26756 }'
26757 fi
26758
26759 cat >>$CONFIG_STATUS <<\_ACEOF
26760 fi # test -n "$CONFIG_FILES"
26761
26762
26763 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26764 do
26765 case $ac_tag in
26766 :[FHLC]) ac_mode=$ac_tag; continue;;
26767 esac
26768 case $ac_mode$ac_tag in
26769 :[FHL]*:*);;
26770 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26771 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26772 { (exit 1); exit 1; }; };;
26773 :[FH]-) ac_tag=-:-;;
26774 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26775 esac
26776 ac_save_IFS=$IFS
26777 IFS=:
26778 set x $ac_tag
26779 IFS=$ac_save_IFS
26780 shift
26781 ac_file=$1
26782 shift
26783
26784 case $ac_mode in
26785 :L) ac_source=$1;;
26786 :[FH])
26787 ac_file_inputs=
26788 for ac_f
26789 do
26790 case $ac_f in
26791 -) ac_f="$tmp/stdin";;
26792 *) # Look for the file first in the build tree, then in the source tree
26793 # (if the path is not absolute). The absolute path cannot be DOS-style,
26794 # because $ac_f cannot contain `:'.
26795 test -f "$ac_f" ||
26796 case $ac_f in
26797 [\\/$]*) false;;
26798 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26799 esac ||
26800 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26801 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26802 { (exit 1); exit 1; }; };;
26803 esac
26804 ac_file_inputs="$ac_file_inputs $ac_f"
26805 done
26806
26807 # Let's still pretend it is `configure' which instantiates (i.e., don't
26808 # use $as_me), people would be surprised to read:
26809 # /* config.h. Generated by config.status. */
26810 configure_input="Generated from "`IFS=:
26811 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26812 if test x"$ac_file" != x-; then
26813 configure_input="$ac_file. $configure_input"
26814 { echo "$as_me:$LINENO: creating $ac_file" >&5
26815 echo "$as_me: creating $ac_file" >&6;}
26816 fi
26817
26818 case $ac_tag in
26819 *:-:* | *:-) cat >"$tmp/stdin";;
26820 esac
26821 ;;
26822 esac
26823
26824 ac_dir=`$as_dirname -- "$ac_file" ||
26825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26826 X"$ac_file" : 'X\(//\)[^/]' \| \
26827 X"$ac_file" : 'X\(//\)$' \| \
26828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26829 echo X"$ac_file" |
26830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26831 s//\1/
26832 q
26833 }
26834 /^X\(\/\/\)[^/].*/{
26835 s//\1/
26836 q
26837 }
26838 /^X\(\/\/\)$/{
26839 s//\1/
26840 q
26841 }
26842 /^X\(\/\).*/{
26843 s//\1/
26844 q
26845 }
26846 s/.*/./; q'`
26847 { as_dir="$ac_dir"
26848 case $as_dir in #(
26849 -*) as_dir=./$as_dir;;
26850 esac
26851 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26852 as_dirs=
26853 while :; do
26854 case $as_dir in #(
26855 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26856 *) as_qdir=$as_dir;;
26857 esac
26858 as_dirs="'$as_qdir' $as_dirs"
26859 as_dir=`$as_dirname -- "$as_dir" ||
26860 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26861 X"$as_dir" : 'X\(//\)[^/]' \| \
26862 X"$as_dir" : 'X\(//\)$' \| \
26863 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26864 echo X"$as_dir" |
26865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26866 s//\1/
26867 q
26868 }
26869 /^X\(\/\/\)[^/].*/{
26870 s//\1/
26871 q
26872 }
26873 /^X\(\/\/\)$/{
26874 s//\1/
26875 q
26876 }
26877 /^X\(\/\).*/{
26878 s//\1/
26879 q
26880 }
26881 s/.*/./; q'`
26882 test -d "$as_dir" && break
26883 done
26884 test -z "$as_dirs" || eval "mkdir $as_dirs"
26885 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26886 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26887 { (exit 1); exit 1; }; }; }
26888 ac_builddir=.
26889
26890 case "$ac_dir" in
26891 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26892 *)
26893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26894 # A ".." for each directory in $ac_dir_suffix.
26895 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26896 case $ac_top_builddir_sub in
26897 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26898 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26899 esac ;;
26900 esac
26901 ac_abs_top_builddir=$ac_pwd
26902 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26903 # for backward compatibility:
26904 ac_top_builddir=$ac_top_build_prefix
26905
26906 case $srcdir in
26907 .) # We are building in place.
26908 ac_srcdir=.
26909 ac_top_srcdir=$ac_top_builddir_sub
26910 ac_abs_top_srcdir=$ac_pwd ;;
26911 [\\/]* | ?:[\\/]* ) # Absolute name.
26912 ac_srcdir=$srcdir$ac_dir_suffix;
26913 ac_top_srcdir=$srcdir
26914 ac_abs_top_srcdir=$srcdir ;;
26915 *) # Relative name.
26916 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26917 ac_top_srcdir=$ac_top_build_prefix$srcdir
26918 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26919 esac
26920 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26921
26922
26923 case $ac_mode in
26924 :F)
26925 #
26926 # CONFIG_FILE
26927 #
26928
26929 case $INSTALL in
26930 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26931 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26932 esac
26933 ac_MKDIR_P=$MKDIR_P
26934 case $MKDIR_P in
26935 [\\/$]* | ?:[\\/]* ) ;;
26936 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26937 esac
26938 _ACEOF
26939
26940 cat >>$CONFIG_STATUS <<\_ACEOF
26941 # If the template does not know about datarootdir, expand it.
26942 # FIXME: This hack should be removed a few years after 2.60.
26943 ac_datarootdir_hack=; ac_datarootdir_seen=
26944
26945 case `sed -n '/datarootdir/ {
26946 p
26947 q
26948 }
26949 /@datadir@/p
26950 /@docdir@/p
26951 /@infodir@/p
26952 /@localedir@/p
26953 /@mandir@/p
26954 ' $ac_file_inputs` in
26955 *datarootdir*) ac_datarootdir_seen=yes;;
26956 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26957 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26958 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26959 _ACEOF
26960 cat >>$CONFIG_STATUS <<_ACEOF
26961 ac_datarootdir_hack='
26962 s&@datadir@&$datadir&g
26963 s&@docdir@&$docdir&g
26964 s&@infodir@&$infodir&g
26965 s&@localedir@&$localedir&g
26966 s&@mandir@&$mandir&g
26967 s&\\\${datarootdir}&$datarootdir&g' ;;
26968 esac
26969 _ACEOF
26970
26971 # Neutralize VPATH when `$srcdir' = `.'.
26972 # Shell code in configure.ac might set extrasub.
26973 # FIXME: do we really want to maintain this feature?
26974 cat >>$CONFIG_STATUS <<_ACEOF
26975 sed "$ac_vpsub
26976 $extrasub
26977 _ACEOF
26978 cat >>$CONFIG_STATUS <<\_ACEOF
26979 :t
26980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26981 s&@configure_input@&$configure_input&;t t
26982 s&@top_builddir@&$ac_top_builddir_sub&;t t
26983 s&@srcdir@&$ac_srcdir&;t t
26984 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26985 s&@top_srcdir@&$ac_top_srcdir&;t t
26986 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26987 s&@builddir@&$ac_builddir&;t t
26988 s&@abs_builddir@&$ac_abs_builddir&;t t
26989 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26990 s&@INSTALL@&$ac_INSTALL&;t t
26991 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26992 $ac_datarootdir_hack
26993 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26994
26995 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26996 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26997 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26998 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26999 which seems to be undefined. Please make sure it is defined." >&5
27000 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27001 which seems to be undefined. Please make sure it is defined." >&2;}
27002
27003 rm -f "$tmp/stdin"
27004 case $ac_file in
27005 -) cat "$tmp/out"; rm -f "$tmp/out";;
27006 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27007 esac
27008 ;;
27009 :H)
27010 #
27011 # CONFIG_HEADER
27012 #
27013 _ACEOF
27014
27015 # Transform confdefs.h into a sed script `conftest.defines', that
27016 # substitutes the proper values into config.h.in to produce config.h.
27017 rm -f conftest.defines conftest.tail
27018 # First, append a space to every undef/define line, to ease matching.
27019 echo 's/$/ /' >conftest.defines
27020 # Then, protect against being on the right side of a sed subst, or in
27021 # an unquoted here document, in config.status. If some macros were
27022 # called several times there might be several #defines for the same
27023 # symbol, which is useless. But do not sort them, since the last
27024 # AC_DEFINE must be honored.
27025 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27026 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27027 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27028 # PARAMS is the parameter list in the macro definition--in most cases, it's
27029 # just an empty string.
27030 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27031 ac_dB='\\)[ (].*,\\1define\\2'
27032 ac_dC=' '
27033 ac_dD=' ,'
27034
27035 uniq confdefs.h |
27036 sed -n '
27037 t rset
27038 :rset
27039 s/^[ ]*#[ ]*define[ ][ ]*//
27040 t ok
27041 d
27042 :ok
27043 s/[\\&,]/\\&/g
27044 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27045 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27046 ' >>conftest.defines
27047
27048 # Remove the space that was appended to ease matching.
27049 # Then replace #undef with comments. This is necessary, for
27050 # example, in the case of _POSIX_SOURCE, which is predefined and required
27051 # on some systems where configure will not decide to define it.
27052 # (The regexp can be short, since the line contains either #define or #undef.)
27053 echo 's/ $//
27054 s,^[ #]*u.*,/* & */,' >>conftest.defines
27055
27056 # Break up conftest.defines:
27057 ac_max_sed_lines=50
27058
27059 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27060 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27061 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27062 # et cetera.
27063 ac_in='$ac_file_inputs'
27064 ac_out='"$tmp/out1"'
27065 ac_nxt='"$tmp/out2"'
27066
27067 while :
27068 do
27069 # Write a here document:
27070 cat >>$CONFIG_STATUS <<_ACEOF
27071 # First, check the format of the line:
27072 cat >"\$tmp/defines.sed" <<\\CEOF
27073 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27074 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27075 b
27076 :def
27077 _ACEOF
27078 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27079 echo 'CEOF
27080 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27081 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27082 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27083 grep . conftest.tail >/dev/null || break
27084 rm -f conftest.defines
27085 mv conftest.tail conftest.defines
27086 done
27087 rm -f conftest.defines conftest.tail
27088
27089 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27090 cat >>$CONFIG_STATUS <<\_ACEOF
27091 if test x"$ac_file" != x-; then
27092 echo "/* $configure_input */" >"$tmp/config.h"
27093 cat "$ac_result" >>"$tmp/config.h"
27094 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27095 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27096 echo "$as_me: $ac_file is unchanged" >&6;}
27097 else
27098 rm -f $ac_file
27099 mv "$tmp/config.h" $ac_file
27100 fi
27101 else
27102 echo "/* $configure_input */"
27103 cat "$ac_result"
27104 fi
27105 rm -f "$tmp/out12"
27106 # Compute $ac_file's index in $config_headers.
27107 _am_stamp_count=1
27108 for _am_header in $config_headers :; do
27109 case $_am_header in
27110 $ac_file | $ac_file:* )
27111 break ;;
27112 * )
27113 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27114 esac
27115 done
27116 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27117 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27118 X$ac_file : 'X\(//\)[^/]' \| \
27119 X$ac_file : 'X\(//\)$' \| \
27120 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27121 echo X$ac_file |
27122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27123 s//\1/
27124 q
27125 }
27126 /^X\(\/\/\)[^/].*/{
27127 s//\1/
27128 q
27129 }
27130 /^X\(\/\/\)$/{
27131 s//\1/
27132 q
27133 }
27134 /^X\(\/\).*/{
27135 s//\1/
27136 q
27137 }
27138 s/.*/./; q'`/stamp-h$_am_stamp_count
27139 ;;
27140
27141 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27142 echo "$as_me: executing $ac_file commands" >&6;}
27143 ;;
27144 esac
27145
27146
27147 case $ac_file$ac_mode in
27148 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27149 # Strip MF so we end up with the name of the file.
27150 mf=`echo "$mf" | sed -e 's/:.*$//'`
27151 # Check whether this is an Automake generated Makefile or not.
27152 # We used to match only the files named `Makefile.in', but
27153 # some people rename them; so instead we look at the file content.
27154 # Grep'ing the first line is not enough: some people post-process
27155 # each Makefile.in and add a new line on top of each file to say so.
27156 # Grep'ing the whole file is not good either: AIX grep has a line
27157 # limit of 2048, but all sed's we know have understand at least 4000.
27158 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
27159 dirpart=`$as_dirname -- "$mf" ||
27160 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27161 X"$mf" : 'X\(//\)[^/]' \| \
27162 X"$mf" : 'X\(//\)$' \| \
27163 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27164 echo X"$mf" |
27165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27166 s//\1/
27167 q
27168 }
27169 /^X\(\/\/\)[^/].*/{
27170 s//\1/
27171 q
27172 }
27173 /^X\(\/\/\)$/{
27174 s//\1/
27175 q
27176 }
27177 /^X\(\/\).*/{
27178 s//\1/
27179 q
27180 }
27181 s/.*/./; q'`
27182 else
27183 continue
27184 fi
27185 # Extract the definition of DEPDIR, am__include, and am__quote
27186 # from the Makefile without running `make'.
27187 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27188 test -z "$DEPDIR" && continue
27189 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27190 test -z "am__include" && continue
27191 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27192 # When using ansi2knr, U may be empty or an underscore; expand it
27193 U=`sed -n 's/^U = //p' < "$mf"`
27194 # Find all dependency output files, they are included files with
27195 # $(DEPDIR) in their names. We invoke sed twice because it is the
27196 # simplest approach to changing $(DEPDIR) to its actual value in the
27197 # expansion.
27198 for file in `sed -n "
27199 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27200 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27201 # Make sure the directory exists.
27202 test -f "$dirpart/$file" && continue
27203 fdir=`$as_dirname -- "$file" ||
27204 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27205 X"$file" : 'X\(//\)[^/]' \| \
27206 X"$file" : 'X\(//\)$' \| \
27207 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27208 echo X"$file" |
27209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27210 s//\1/
27211 q
27212 }
27213 /^X\(\/\/\)[^/].*/{
27214 s//\1/
27215 q
27216 }
27217 /^X\(\/\/\)$/{
27218 s//\1/
27219 q
27220 }
27221 /^X\(\/\).*/{
27222 s//\1/
27223 q
27224 }
27225 s/.*/./; q'`
27226 { as_dir=$dirpart/$fdir
27227 case $as_dir in #(
27228 -*) as_dir=./$as_dir;;
27229 esac
27230 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27231 as_dirs=
27232 while :; do
27233 case $as_dir in #(
27234 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27235 *) as_qdir=$as_dir;;
27236 esac
27237 as_dirs="'$as_qdir' $as_dirs"
27238 as_dir=`$as_dirname -- "$as_dir" ||
27239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27240 X"$as_dir" : 'X\(//\)[^/]' \| \
27241 X"$as_dir" : 'X\(//\)$' \| \
27242 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27243 echo X"$as_dir" |
27244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27245 s//\1/
27246 q
27247 }
27248 /^X\(\/\/\)[^/].*/{
27249 s//\1/
27250 q
27251 }
27252 /^X\(\/\/\)$/{
27253 s//\1/
27254 q
27255 }
27256 /^X\(\/\).*/{
27257 s//\1/
27258 q
27259 }
27260 s/.*/./; q'`
27261 test -d "$as_dir" && break
27262 done
27263 test -z "$as_dirs" || eval "mkdir $as_dirs"
27264 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27265 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27266 { (exit 1); exit 1; }; }; }
27267 # echo "creating $dirpart/$file"
27268 echo '# dummy' > "$dirpart/$file"
27269 done
27270 done
27271 ;;
27272
27273 esac
27274 done # for ac_tag
27275
27276
27277 { (exit 0); exit 0; }
27278 _ACEOF
27279 chmod +x $CONFIG_STATUS
27280 ac_clean_files=$ac_clean_files_save
27281
27282
27283 # configure is writing to config.log, and then calls config.status.
27284 # config.status does its own redirection, appending to config.log.
27285 # Unfortunately, on DOS this fails, as config.log is still kept open
27286 # by configure, so config.status won't be able to write to it; its
27287 # output is simply discarded. So we exec the FD to /dev/null,
27288 # effectively closing config.log, so it can be properly (re)opened and
27289 # appended to by config.status. When coming back to configure, we
27290 # need to make the FD available again.
27291 if test "$no_create" != yes; then
27292 ac_cs_success=:
27293 ac_config_status_args=
27294 test "$silent" = yes &&
27295 ac_config_status_args="$ac_config_status_args --quiet"
27296 exec 5>/dev/null
27297 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27298 exec 5>>config.log
27299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27300 # would make configure fail if this is the last instruction.
27301 $ac_cs_success || { (exit 1); exit 1; }
27302 fi
27303
27304 #
27305 # CONFIG_SUBDIRS section.
27306 #
27307 if test "$no_recursion" != yes; then
27308
27309 # Remove --cache-file and --srcdir arguments so they do not pile up.
27310 ac_sub_configure_args=
27311 ac_prev=
27312 eval "set x $ac_configure_args"
27313 shift
27314 for ac_arg
27315 do
27316 if test -n "$ac_prev"; then
27317 ac_prev=
27318 continue
27319 fi
27320 case $ac_arg in
27321 -cache-file | --cache-file | --cache-fil | --cache-fi \
27322 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27323 ac_prev=cache_file ;;
27324 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27325 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27326 | --c=*)
27327 ;;
27328 --config-cache | -C)
27329 ;;
27330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27331 ac_prev=srcdir ;;
27332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27333 ;;
27334 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27335 ac_prev=prefix ;;
27336 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27337 ;;
27338 *)
27339 case $ac_arg in
27340 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27341 esac
27342 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27343 esac
27344 done
27345
27346 # Always prepend --prefix to ensure using the same prefix
27347 # in subdir configurations.
27348 ac_arg="--prefix=$prefix"
27349 case $ac_arg in
27350 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27351 esac
27352 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27353
27354 # Pass --silent
27355 if test "$silent" = yes; then
27356 ac_sub_configure_args="--silent $ac_sub_configure_args"
27357 fi
27358
27359 ac_popdir=`pwd`
27360 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27361
27362 # Do not complain, so a configure script can configure whichever
27363 # parts of a large source tree are present.
27364 test -d "$srcdir/$ac_dir" || continue
27365
27366 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27367 echo "$as_me:$LINENO: $ac_msg" >&5
27368 echo "$ac_msg" >&6
27369 { as_dir="$ac_dir"
27370 case $as_dir in #(
27371 -*) as_dir=./$as_dir;;
27372 esac
27373 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27374 as_dirs=
27375 while :; do
27376 case $as_dir in #(
27377 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27378 *) as_qdir=$as_dir;;
27379 esac
27380 as_dirs="'$as_qdir' $as_dirs"
27381 as_dir=`$as_dirname -- "$as_dir" ||
27382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27383 X"$as_dir" : 'X\(//\)[^/]' \| \
27384 X"$as_dir" : 'X\(//\)$' \| \
27385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27386 echo X"$as_dir" |
27387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27388 s//\1/
27389 q
27390 }
27391 /^X\(\/\/\)[^/].*/{
27392 s//\1/
27393 q
27394 }
27395 /^X\(\/\/\)$/{
27396 s//\1/
27397 q
27398 }
27399 /^X\(\/\).*/{
27400 s//\1/
27401 q
27402 }
27403 s/.*/./; q'`
27404 test -d "$as_dir" && break
27405 done
27406 test -z "$as_dirs" || eval "mkdir $as_dirs"
27407 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27408 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27409 { (exit 1); exit 1; }; }; }
27410 ac_builddir=.
27411
27412 case "$ac_dir" in
27413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27414 *)
27415 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27416 # A ".." for each directory in $ac_dir_suffix.
27417 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27418 case $ac_top_builddir_sub in
27419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27421 esac ;;
27422 esac
27423 ac_abs_top_builddir=$ac_pwd
27424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27425 # for backward compatibility:
27426 ac_top_builddir=$ac_top_build_prefix
27427
27428 case $srcdir in
27429 .) # We are building in place.
27430 ac_srcdir=.
27431 ac_top_srcdir=$ac_top_builddir_sub
27432 ac_abs_top_srcdir=$ac_pwd ;;
27433 [\\/]* | ?:[\\/]* ) # Absolute name.
27434 ac_srcdir=$srcdir$ac_dir_suffix;
27435 ac_top_srcdir=$srcdir
27436 ac_abs_top_srcdir=$srcdir ;;
27437 *) # Relative name.
27438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27439 ac_top_srcdir=$ac_top_build_prefix$srcdir
27440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27441 esac
27442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27443
27444
27445 cd "$ac_dir"
27446
27447 # Check for guested configure; otherwise get Cygnus style configure.
27448 if test -f "$ac_srcdir/configure.gnu"; then
27449 ac_sub_configure=$ac_srcdir/configure.gnu
27450 elif test -f "$ac_srcdir/configure"; then
27451 ac_sub_configure=$ac_srcdir/configure
27452 elif test -f "$ac_srcdir/configure.in"; then
27453 # This should be Cygnus configure.
27454 ac_sub_configure=$ac_aux_dir/configure
27455 else
27456 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27457 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27458 ac_sub_configure=
27459 fi
27460
27461 # The recursion is here.
27462 if test -n "$ac_sub_configure"; then
27463 # Make the cache file name correct relative to the subdirectory.
27464 case $cache_file in
27465 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27466 *) # Relative name.
27467 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27468 esac
27469
27470 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27471 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27472 # The eval makes quoting arguments work.
27473 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27474 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27475 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27476 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27477 { (exit 1); exit 1; }; }
27478 fi
27479
27480 cd "$ac_popdir"
27481 done
27482 fi
27483
27484