Merge branch 'debian'
[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.63 for courier-authlib 0.63.0.
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, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 lt_ltdl_dir='libltdl'
577
578
579 # Check that we are running under the correct shell.
580 SHELL=${CONFIG_SHELL-/bin/sh}
581
582 case X$lt_ECHO in
583 X*--fallback-echo)
584 # Remove one level of quotation (which was required for Make).
585 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 ;;
587 esac
588
589 ECHO=${lt_ECHO-echo}
590 if test "X$1" = X--no-reexec; then
591 # Discard the --no-reexec flag, and continue.
592 shift
593 elif test "X$1" = X--fallback-echo; then
594 # Avoid inline document here, it may be left over
595 :
596 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
597 # Yippee, $ECHO works!
598 :
599 else
600 # Restart under the correct shell.
601 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 fi
603
604 if test "X$1" = X--fallback-echo; then
605 # used as fallback echo
606 shift
607 cat <<_LT_EOF
608 $*
609 _LT_EOF
610 exit 0
611 fi
612
613 # The HP-UX ksh and POSIX shell print the target directory to stdout
614 # if CDPATH is set.
615 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
616
617 if test -z "$lt_ECHO"; then
618 if test "X${echo_test_string+set}" != Xset; then
619 # find a string as large as possible, as long as the shell can cope with it
620 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
621 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
622 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
623 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
624 then
625 break
626 fi
627 done
628 fi
629
630 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 :
634 else
635 # The Solaris, AIX, and Digital Unix default echo programs unquote
636 # backslashes. This makes it impossible to quote backslashes using
637 # echo "$something" | sed 's/\\/\\\\/g'
638 #
639 # So, first we look for a working echo in the user's PATH.
640
641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
642 for dir in $PATH /usr/ucb; do
643 IFS="$lt_save_ifs"
644 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
645 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
646 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
647 test "X$echo_testing_string" = "X$echo_test_string"; then
648 ECHO="$dir/echo"
649 break
650 fi
651 done
652 IFS="$lt_save_ifs"
653
654 if test "X$ECHO" = Xecho; then
655 # We didn't find a better echo, so look for alternatives.
656 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
657 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 # This shell has a builtin print -r that does the trick.
660 ECHO='print -r'
661 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
662 test "X$CONFIG_SHELL" != X/bin/ksh; then
663 # If we have ksh, try running configure again with it.
664 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
665 export ORIGINAL_CONFIG_SHELL
666 CONFIG_SHELL=/bin/ksh
667 export CONFIG_SHELL
668 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669 else
670 # Try using printf.
671 ECHO='printf %s\n'
672 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
673 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
674 test "X$echo_testing_string" = "X$echo_test_string"; then
675 # Cool, printf works
676 :
677 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
678 test "X$echo_testing_string" = 'X\t' &&
679 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
680 test "X$echo_testing_string" = "X$echo_test_string"; then
681 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 export CONFIG_SHELL
683 SHELL="$CONFIG_SHELL"
684 export SHELL
685 ECHO="$CONFIG_SHELL $0 --fallback-echo"
686 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
687 test "X$echo_testing_string" = 'X\t' &&
688 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
689 test "X$echo_testing_string" = "X$echo_test_string"; then
690 ECHO="$CONFIG_SHELL $0 --fallback-echo"
691 else
692 # maybe with a smaller string...
693 prev=:
694
695 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
696 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
697 then
698 break
699 fi
700 prev="$cmd"
701 done
702
703 if test "$prev" != 'sed 50q "$0"'; then
704 echo_test_string=`eval $prev`
705 export echo_test_string
706 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 else
708 # Oops. We lost completely, so just stick with echo.
709 ECHO=echo
710 fi
711 fi
712 fi
713 fi
714 fi
715 fi
716
717 # Copy echo and quote the copy suitably for passing to libtool from
718 # the Makefile, instead of quoting the original, which is used later.
719 lt_ECHO=$ECHO
720 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
721 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
722 fi
723
724
725
726
727 lt_dlopen_dir="$lt_ltdl_dir"
728
729 exec 7<&0 </dev/null 6>&1
730
731 # Name of the host.
732 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
733 # so uname gets run too.
734 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735
736 #
737 # Initializations.
738 #
739 ac_default_prefix=/usr/local
740 ac_clean_files=
741 ac_config_libobj_dir=.
742 LIBOBJS=
743 cross_compiling=no
744 subdirs=
745 MFLAGS=
746 MAKEFLAGS=
747 SHELL=${CONFIG_SHELL-/bin/sh}
748
749 # Identity of this package.
750 PACKAGE_NAME='courier-authlib'
751 PACKAGE_TARNAME='courier-authlib'
752 PACKAGE_VERSION='0.63.0'
753 PACKAGE_STRING='courier-authlib 0.63.0'
754 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
755
756 ac_unique_file="courierauth.h"
757 # Factoring default headers for most tests.
758 ac_includes_default="\
759 #include <stdio.h>
760 #ifdef HAVE_SYS_TYPES_H
761 # include <sys/types.h>
762 #endif
763 #ifdef HAVE_SYS_STAT_H
764 # include <sys/stat.h>
765 #endif
766 #ifdef STDC_HEADERS
767 # include <stdlib.h>
768 # include <stddef.h>
769 #else
770 # ifdef HAVE_STDLIB_H
771 # include <stdlib.h>
772 # endif
773 #endif
774 #ifdef HAVE_STRING_H
775 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776 # include <memory.h>
777 # endif
778 # include <string.h>
779 #endif
780 #ifdef HAVE_STRINGS_H
781 # include <strings.h>
782 #endif
783 #ifdef HAVE_INTTYPES_H
784 # include <inttypes.h>
785 #endif
786 #ifdef HAVE_STDINT_H
787 # include <stdint.h>
788 #endif
789 #ifdef HAVE_UNISTD_H
790 # include <unistd.h>
791 #endif"
792
793 enable_option_checking=no
794 ac_subst_vars='ltdl_LTLIBOBJS
795 ltdl_LIBOBJS
796 am__EXEEXT_FALSE
797 am__EXEEXT_TRUE
798 LTLIBOBJS
799 LIBOBJS
800 HAVE_SGML_FALSE
801 HAVE_SGML_TRUE
802 REPOSITORY
803 mailgroup
804 mailuser
805 LIBM
806 authdaemonvar
807 authdaemonrc
808 CRYPTLIBS
809 LIBAUTHPIPE
810 HAVE_PIPE_FALSE
811 HAVE_PIPE_TRUE
812 authProg
813 LIBAUTHCUSTOM
814 HAVE_CUSTOM_FALSE
815 HAVE_CUSTOM_TRUE
816 HAVE_AUTHMYSQL_FALSE
817 HAVE_AUTHMYSQL_TRUE
818 MYSQL_LIBS
819 LIBAUTHMYSQL
820 MYSQL_CONFIG
821 authmysqlrc
822 HAVE_AUTHPGSQL_FALSE
823 HAVE_AUTHPGSQL_TRUE
824 LIBAUTHPGSQL
825 PGSQL_LIBS
826 PG_CONFIG
827 authpgsqlrc
828 LIBAUTHPWD
829 LIBAUTHSHADOW
830 SHADOWLIBS
831 HAVE_LDAP_FALSE
832 HAVE_LDAP_TRUE
833 LIBAUTHLDAP
834 LDAPLIBS
835 authldaprc
836 LIBAUTHPAM
837 AUTHPAMCRYPT
838 LIBDL
839 userdb
840 LIBAUTHUSERDB
841 LIBDB
842 LIBGDBM
843 dblibrary
844 USE_DB
845 USE_GDBM
846 NETLIBS
847 PASSWD
848 EXPECT
849 COURIERCONFIG
850 PERL
851 LTDLOPEN
852 LT_CONFIG_H
853 subdirs
854 CONVENIENCE_LTDL_FALSE
855 CONVENIENCE_LTDL_TRUE
856 INSTALL_LTDL_FALSE
857 INSTALL_LTDL_TRUE
858 ARGZ_H
859 sys_symbol_underscore
860 LIBADD_DL
861 LT_DLPREOPEN
862 LIBADD_DLD_LINK
863 LIBADD_SHL_LOAD
864 LIBADD_DLOPEN
865 LT_DLLOADERS
866 INCLTDL
867 LTDLINCL
868 LTDLDEPS
869 LIBLTDL
870 OTOOL64
871 OTOOL
872 LIPO
873 NMEDIT
874 DSYMUTIL
875 lt_ECHO
876 RANLIB
877 AR
878 OBJDUMP
879 NM
880 ac_ct_DUMPBIN
881 DUMPBIN
882 LD
883 FGREP
884 EGREP
885 GREP
886 SED
887 host_os
888 host_vendor
889 host_cpu
890 host
891 build_os
892 build_vendor
893 build_cpu
894 build
895 LIBTOOL
896 SYSCONFTOOL
897 SYSCONFTOOL_PERL
898 LN_S
899 CPP
900 am__fastdepCC_FALSE
901 am__fastdepCC_TRUE
902 CCDEPMODE
903 AMDEPBACKSLASH
904 AMDEP_FALSE
905 AMDEP_TRUE
906 am__quote
907 am__include
908 DEPDIR
909 OBJEXT
910 EXEEXT
911 ac_ct_CC
912 CPPFLAGS
913 LDFLAGS
914 CFLAGS
915 CC
916 am__untar
917 am__tar
918 AMTAR
919 am__leading_dot
920 SET_MAKE
921 AWK
922 mkdir_p
923 MKDIR_P
924 INSTALL_STRIP_PROGRAM
925 STRIP
926 install_sh
927 MAKEINFO
928 AUTOHEADER
929 AUTOMAKE
930 AUTOCONF
931 ACLOCAL
932 VERSION
933 PACKAGE
934 CYGPATH_W
935 am__isrc
936 INSTALL_DATA
937 INSTALL_SCRIPT
938 INSTALL_PROGRAM
939 target_alias
940 host_alias
941 build_alias
942 LIBS
943 ECHO_T
944 ECHO_N
945 ECHO_C
946 DEFS
947 mandir
948 localedir
949 libdir
950 psdir
951 pdfdir
952 dvidir
953 htmldir
954 infodir
955 docdir
956 oldincludedir
957 includedir
958 localstatedir
959 sharedstatedir
960 sysconfdir
961 datadir
962 datarootdir
963 libexecdir
964 sbindir
965 bindir
966 program_transform_name
967 prefix
968 exec_prefix
969 PACKAGE_BUGREPORT
970 PACKAGE_STRING
971 PACKAGE_VERSION
972 PACKAGE_TARNAME
973 PACKAGE_NAME
974 PATH_SEPARATOR
975 SHELL'
976 ac_subst_files=''
977 ac_user_opts='
978 enable_option_checking
979 enable_dependency_tracking
980 enable_shared
981 enable_static
982 with_pic
983 enable_fast_install
984 with_gnu_ld
985 enable_libtool_lock
986 with_included_ltdl
987 with_ltdl_include
988 with_ltdl_lib
989 enable_ltdl_install
990 with_redhat
991 with_pkgconfdir
992 with_db
993 with_authuserdb
994 with_makedatprog
995 with_userdb
996 with_authpam
997 with_authpam_libraries
998 with_authldap
999 with_authldaprc
1000 with_authpwd
1001 with_authshadow
1002 with_authpgsqlrc
1003 with_authpgsql
1004 with_pgsql_libs
1005 with_pgsql_includes
1006 with_authmysqlrc
1007 with_authmysql
1008 with_mysql_libs
1009 with_mysql_includes
1010 with_authcustom
1011 with_pipeprog
1012 with_authpipe
1013 with_authdaemonrc
1014 with_authdaemonvar
1015 with_mailuser
1016 with_mailgroup
1017 with_stdheaderdir
1018 with_repository
1019 '
1020 ac_precious_vars='build_alias
1021 host_alias
1022 target_alias
1023 CC
1024 CFLAGS
1025 LDFLAGS
1026 LIBS
1027 CPPFLAGS
1028 CPP'
1029 ac_subdirs_all='libltdl
1030 bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb unicode rfc822 random128 liblock liblog'
1031
1032 # Initialize some variables set by options.
1033 ac_init_help=
1034 ac_init_version=false
1035 ac_unrecognized_opts=
1036 ac_unrecognized_sep=
1037 # The variables have the same names as the options, with
1038 # dashes changed to underlines.
1039 cache_file=/dev/null
1040 exec_prefix=NONE
1041 no_create=
1042 no_recursion=
1043 prefix=NONE
1044 program_prefix=NONE
1045 program_suffix=NONE
1046 program_transform_name=s,x,x,
1047 silent=
1048 site=
1049 srcdir=
1050 verbose=
1051 x_includes=NONE
1052 x_libraries=NONE
1053
1054 # Installation directory options.
1055 # These are left unexpanded so users can "make install exec_prefix=/foo"
1056 # and all the variables that are supposed to be based on exec_prefix
1057 # by default will actually change.
1058 # Use braces instead of parens because sh, perl, etc. also accept them.
1059 # (The list follows the same order as the GNU Coding Standards.)
1060 bindir='${exec_prefix}/bin'
1061 sbindir='${exec_prefix}/sbin'
1062 libexecdir='${exec_prefix}/libexec'
1063 datarootdir='${prefix}/share'
1064 datadir='${datarootdir}'
1065 sysconfdir='${prefix}/etc'
1066 sharedstatedir='${prefix}/com'
1067 localstatedir='${prefix}/var'
1068 includedir='${prefix}/include'
1069 oldincludedir='/usr/include'
1070 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1071 infodir='${datarootdir}/info'
1072 htmldir='${docdir}'
1073 dvidir='${docdir}'
1074 pdfdir='${docdir}'
1075 psdir='${docdir}'
1076 libdir='${exec_prefix}/lib'
1077 localedir='${datarootdir}/locale'
1078 mandir='${datarootdir}/man'
1079
1080 ac_prev=
1081 ac_dashdash=
1082 for ac_option
1083 do
1084 # If the previous option needs an argument, assign it.
1085 if test -n "$ac_prev"; then
1086 eval $ac_prev=\$ac_option
1087 ac_prev=
1088 continue
1089 fi
1090
1091 case $ac_option in
1092 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1093 *) ac_optarg=yes ;;
1094 esac
1095
1096 # Accept the important Cygnus configure options, so we can diagnose typos.
1097
1098 case $ac_dashdash$ac_option in
1099 --)
1100 ac_dashdash=yes ;;
1101
1102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1103 ac_prev=bindir ;;
1104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1105 bindir=$ac_optarg ;;
1106
1107 -build | --build | --buil | --bui | --bu)
1108 ac_prev=build_alias ;;
1109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1110 build_alias=$ac_optarg ;;
1111
1112 -cache-file | --cache-file | --cache-fil | --cache-fi \
1113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1114 ac_prev=cache_file ;;
1115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1117 cache_file=$ac_optarg ;;
1118
1119 --config-cache | -C)
1120 cache_file=config.cache ;;
1121
1122 -datadir | --datadir | --datadi | --datad)
1123 ac_prev=datadir ;;
1124 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1125 datadir=$ac_optarg ;;
1126
1127 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1128 | --dataroo | --dataro | --datar)
1129 ac_prev=datarootdir ;;
1130 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1131 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1132 datarootdir=$ac_optarg ;;
1133
1134 -disable-* | --disable-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "enable_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval enable_$ac_useropt=no ;;
1150
1151 -docdir | --docdir | --docdi | --doc | --do)
1152 ac_prev=docdir ;;
1153 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1154 docdir=$ac_optarg ;;
1155
1156 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1157 ac_prev=dvidir ;;
1158 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1159 dvidir=$ac_optarg ;;
1160
1161 -enable-* | --enable-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1166 { (exit 1); exit 1; }; }
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1170 *"
1171 "enable_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval enable_$ac_useropt=\$ac_optarg ;;
1177
1178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1180 | --exec | --exe | --ex)
1181 ac_prev=exec_prefix ;;
1182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1184 | --exec=* | --exe=* | --ex=*)
1185 exec_prefix=$ac_optarg ;;
1186
1187 -gas | --gas | --ga | --g)
1188 # Obsolete; use --with-gas.
1189 with_gas=yes ;;
1190
1191 -help | --help | --hel | --he | -h)
1192 ac_init_help=long ;;
1193 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1194 ac_init_help=recursive ;;
1195 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1196 ac_init_help=short ;;
1197
1198 -host | --host | --hos | --ho)
1199 ac_prev=host_alias ;;
1200 -host=* | --host=* | --hos=* | --ho=*)
1201 host_alias=$ac_optarg ;;
1202
1203 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1204 ac_prev=htmldir ;;
1205 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1206 | --ht=*)
1207 htmldir=$ac_optarg ;;
1208
1209 -includedir | --includedir | --includedi | --included | --include \
1210 | --includ | --inclu | --incl | --inc)
1211 ac_prev=includedir ;;
1212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1213 | --includ=* | --inclu=* | --incl=* | --inc=*)
1214 includedir=$ac_optarg ;;
1215
1216 -infodir | --infodir | --infodi | --infod | --info | --inf)
1217 ac_prev=infodir ;;
1218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1219 infodir=$ac_optarg ;;
1220
1221 -libdir | --libdir | --libdi | --libd)
1222 ac_prev=libdir ;;
1223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1224 libdir=$ac_optarg ;;
1225
1226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1227 | --libexe | --libex | --libe)
1228 ac_prev=libexecdir ;;
1229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1230 | --libexe=* | --libex=* | --libe=*)
1231 libexecdir=$ac_optarg ;;
1232
1233 -localedir | --localedir | --localedi | --localed | --locale)
1234 ac_prev=localedir ;;
1235 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1236 localedir=$ac_optarg ;;
1237
1238 -localstatedir | --localstatedir | --localstatedi | --localstated \
1239 | --localstate | --localstat | --localsta | --localst | --locals)
1240 ac_prev=localstatedir ;;
1241 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1242 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1243 localstatedir=$ac_optarg ;;
1244
1245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1246 ac_prev=mandir ;;
1247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1248 mandir=$ac_optarg ;;
1249
1250 -nfp | --nfp | --nf)
1251 # Obsolete; use --without-fp.
1252 with_fp=no ;;
1253
1254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1255 | --no-cr | --no-c | -n)
1256 no_create=yes ;;
1257
1258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1260 no_recursion=yes ;;
1261
1262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1264 | --oldin | --oldi | --old | --ol | --o)
1265 ac_prev=oldincludedir ;;
1266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1269 oldincludedir=$ac_optarg ;;
1270
1271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1272 ac_prev=prefix ;;
1273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1274 prefix=$ac_optarg ;;
1275
1276 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1277 | --program-pre | --program-pr | --program-p)
1278 ac_prev=program_prefix ;;
1279 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1281 program_prefix=$ac_optarg ;;
1282
1283 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1284 | --program-suf | --program-su | --program-s)
1285 ac_prev=program_suffix ;;
1286 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1288 program_suffix=$ac_optarg ;;
1289
1290 -program-transform-name | --program-transform-name \
1291 | --program-transform-nam | --program-transform-na \
1292 | --program-transform-n | --program-transform- \
1293 | --program-transform | --program-transfor \
1294 | --program-transfo | --program-transf \
1295 | --program-trans | --program-tran \
1296 | --progr-tra | --program-tr | --program-t)
1297 ac_prev=program_transform_name ;;
1298 -program-transform-name=* | --program-transform-name=* \
1299 | --program-transform-nam=* | --program-transform-na=* \
1300 | --program-transform-n=* | --program-transform-=* \
1301 | --program-transform=* | --program-transfor=* \
1302 | --program-transfo=* | --program-transf=* \
1303 | --program-trans=* | --program-tran=* \
1304 | --progr-tra=* | --program-tr=* | --program-t=*)
1305 program_transform_name=$ac_optarg ;;
1306
1307 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1308 ac_prev=pdfdir ;;
1309 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1310 pdfdir=$ac_optarg ;;
1311
1312 -psdir | --psdir | --psdi | --psd | --ps)
1313 ac_prev=psdir ;;
1314 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1315 psdir=$ac_optarg ;;
1316
1317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318 | -silent | --silent | --silen | --sile | --sil)
1319 silent=yes ;;
1320
1321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1322 ac_prev=sbindir ;;
1323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1324 | --sbi=* | --sb=*)
1325 sbindir=$ac_optarg ;;
1326
1327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1329 | --sharedst | --shareds | --shared | --share | --shar \
1330 | --sha | --sh)
1331 ac_prev=sharedstatedir ;;
1332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1335 | --sha=* | --sh=*)
1336 sharedstatedir=$ac_optarg ;;
1337
1338 -site | --site | --sit)
1339 ac_prev=site ;;
1340 -site=* | --site=* | --sit=*)
1341 site=$ac_optarg ;;
1342
1343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1344 ac_prev=srcdir ;;
1345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1346 srcdir=$ac_optarg ;;
1347
1348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1349 | --syscon | --sysco | --sysc | --sys | --sy)
1350 ac_prev=sysconfdir ;;
1351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1353 sysconfdir=$ac_optarg ;;
1354
1355 -target | --target | --targe | --targ | --tar | --ta | --t)
1356 ac_prev=target_alias ;;
1357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1358 target_alias=$ac_optarg ;;
1359
1360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1361 verbose=yes ;;
1362
1363 -version | --version | --versio | --versi | --vers | -V)
1364 ac_init_version=: ;;
1365
1366 -with-* | --with-*)
1367 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1368 # Reject names that are not valid shell variable names.
1369 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1370 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1371 { (exit 1); exit 1; }; }
1372 ac_useropt_orig=$ac_useropt
1373 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1374 case $ac_user_opts in
1375 *"
1376 "with_$ac_useropt"
1377 "*) ;;
1378 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1379 ac_unrecognized_sep=', ';;
1380 esac
1381 eval with_$ac_useropt=\$ac_optarg ;;
1382
1383 -without-* | --without-*)
1384 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1387 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1388 { (exit 1); exit 1; }; }
1389 ac_useropt_orig=$ac_useropt
1390 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1392 *"
1393 "with_$ac_useropt"
1394 "*) ;;
1395 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1396 ac_unrecognized_sep=', ';;
1397 esac
1398 eval with_$ac_useropt=no ;;
1399
1400 --x)
1401 # Obsolete; use --with-x.
1402 with_x=yes ;;
1403
1404 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1405 | --x-incl | --x-inc | --x-in | --x-i)
1406 ac_prev=x_includes ;;
1407 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1408 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1409 x_includes=$ac_optarg ;;
1410
1411 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1412 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1413 ac_prev=x_libraries ;;
1414 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1415 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1416 x_libraries=$ac_optarg ;;
1417
1418 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1419 Try \`$0 --help' for more information." >&2
1420 { (exit 1); exit 1; }; }
1421 ;;
1422
1423 *=*)
1424 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1425 # Reject names that are not valid shell variable names.
1426 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1427 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1428 { (exit 1); exit 1; }; }
1429 eval $ac_envvar=\$ac_optarg
1430 export $ac_envvar ;;
1431
1432 *)
1433 # FIXME: should be removed in autoconf 3.0.
1434 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1435 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1436 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1437 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1438 ;;
1439
1440 esac
1441 done
1442
1443 if test -n "$ac_prev"; then
1444 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1445 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1446 { (exit 1); exit 1; }; }
1447 fi
1448
1449 if test -n "$ac_unrecognized_opts"; then
1450 case $enable_option_checking in
1451 no) ;;
1452 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1453 { (exit 1); exit 1; }; } ;;
1454 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1455 esac
1456 fi
1457
1458 # Check all directory arguments for consistency.
1459 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1460 datadir sysconfdir sharedstatedir localstatedir includedir \
1461 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1462 libdir localedir mandir
1463 do
1464 eval ac_val=\$$ac_var
1465 # Remove trailing slashes.
1466 case $ac_val in
1467 */ )
1468 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1469 eval $ac_var=\$ac_val;;
1470 esac
1471 # Be sure to have absolute directory names.
1472 case $ac_val in
1473 [\\/$]* | ?:[\\/]* ) continue;;
1474 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1475 esac
1476 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1477 { (exit 1); exit 1; }; }
1478 done
1479
1480 # There might be people who depend on the old broken behavior: `$host'
1481 # used to hold the argument of --host etc.
1482 # FIXME: To remove some day.
1483 build=$build_alias
1484 host=$host_alias
1485 target=$target_alias
1486
1487 # FIXME: To remove some day.
1488 if test "x$host_alias" != x; then
1489 if test "x$build_alias" = x; then
1490 cross_compiling=maybe
1491 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1492 If a cross compiler is detected then cross compile mode will be used." >&2
1493 elif test "x$build_alias" != "x$host_alias"; then
1494 cross_compiling=yes
1495 fi
1496 fi
1497
1498 ac_tool_prefix=
1499 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1500
1501 test "$silent" = yes && exec 6>/dev/null
1502
1503
1504 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1505 ac_ls_di=`ls -di .` &&
1506 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1507 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1508 { (exit 1); exit 1; }; }
1509 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1510 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1511 { (exit 1); exit 1; }; }
1512
1513
1514 # Find the source files, if location was not specified.
1515 if test -z "$srcdir"; then
1516 ac_srcdir_defaulted=yes
1517 # Try the directory containing this script, then the parent directory.
1518 ac_confdir=`$as_dirname -- "$as_myself" ||
1519 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520 X"$as_myself" : 'X\(//\)[^/]' \| \
1521 X"$as_myself" : 'X\(//\)$' \| \
1522 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1523 $as_echo X"$as_myself" |
1524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1525 s//\1/
1526 q
1527 }
1528 /^X\(\/\/\)[^/].*/{
1529 s//\1/
1530 q
1531 }
1532 /^X\(\/\/\)$/{
1533 s//\1/
1534 q
1535 }
1536 /^X\(\/\).*/{
1537 s//\1/
1538 q
1539 }
1540 s/.*/./; q'`
1541 srcdir=$ac_confdir
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1543 srcdir=..
1544 fi
1545 else
1546 ac_srcdir_defaulted=no
1547 fi
1548 if test ! -r "$srcdir/$ac_unique_file"; then
1549 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1550 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1551 { (exit 1); exit 1; }; }
1552 fi
1553 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1554 ac_abs_confdir=`(
1555 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1556 { (exit 1); exit 1; }; }
1557 pwd)`
1558 # When building in place, set srcdir=.
1559 if test "$ac_abs_confdir" = "$ac_pwd"; then
1560 srcdir=.
1561 fi
1562 # Remove unnecessary trailing slashes from srcdir.
1563 # Double slashes in file names in object file debugging info
1564 # mess up M-x gdb in Emacs.
1565 case $srcdir in
1566 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1567 esac
1568 for ac_var in $ac_precious_vars; do
1569 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1570 eval ac_env_${ac_var}_value=\$${ac_var}
1571 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1572 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1573 done
1574
1575 #
1576 # Report the --help message.
1577 #
1578 if test "$ac_init_help" = "long"; then
1579 # Omit some internal or obsolete options to make the list less imposing.
1580 # This message is too long to be a string in the A/UX 3.1 sh.
1581 cat <<_ACEOF
1582 \`configure' configures courier-authlib 0.63.0 to adapt to many kinds of systems.
1583
1584 Usage: $0 [OPTION]... [VAR=VALUE]...
1585
1586 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1587 VAR=VALUE. See below for descriptions of some of the useful variables.
1588
1589 Defaults for the options are specified in brackets.
1590
1591 Configuration:
1592 -h, --help display this help and exit
1593 --help=short display options specific to this package
1594 --help=recursive display the short help of all the included packages
1595 -V, --version display version information and exit
1596 -q, --quiet, --silent do not print \`checking...' messages
1597 --cache-file=FILE cache test results in FILE [disabled]
1598 -C, --config-cache alias for \`--cache-file=config.cache'
1599 -n, --no-create do not create output files
1600 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1601
1602 Installation directories:
1603 --prefix=PREFIX install architecture-independent files in PREFIX
1604 [$ac_default_prefix]
1605 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1606 [PREFIX]
1607
1608 By default, \`make install' will install all the files in
1609 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1610 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1611 for instance \`--prefix=\$HOME'.
1612
1613 For better control, use the options below.
1614
1615 Fine tuning of the installation directories:
1616 --bindir=DIR user executables [EPREFIX/bin]
1617 --sbindir=DIR system admin executables [EPREFIX/sbin]
1618 --libexecdir=DIR program executables [EPREFIX/libexec]
1619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1622 --libdir=DIR object code libraries [EPREFIX/lib]
1623 --includedir=DIR C header files [PREFIX/include]
1624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1625 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1626 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1627 --infodir=DIR info documentation [DATAROOTDIR/info]
1628 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1629 --mandir=DIR man documentation [DATAROOTDIR/man]
1630 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib]
1631 --htmldir=DIR html documentation [DOCDIR]
1632 --dvidir=DIR dvi documentation [DOCDIR]
1633 --pdfdir=DIR pdf documentation [DOCDIR]
1634 --psdir=DIR ps documentation [DOCDIR]
1635 _ACEOF
1636
1637 cat <<\_ACEOF
1638
1639 Program names:
1640 --program-prefix=PREFIX prepend PREFIX to installed program names
1641 --program-suffix=SUFFIX append SUFFIX to installed program names
1642 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1643
1644 System types:
1645 --build=BUILD configure for building on BUILD [guessed]
1646 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1647 _ACEOF
1648 fi
1649
1650 if test -n "$ac_init_help"; then
1651 case $ac_init_help in
1652 short | recursive ) echo "Configuration of courier-authlib 0.63.0:";;
1653 esac
1654 cat <<\_ACEOF
1655
1656 Optional Features:
1657 --disable-option-checking ignore unrecognized --enable/--with options
1658 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1659 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1660 --disable-dependency-tracking speeds up one-time build
1661 --enable-dependency-tracking do not reject slow dependency extractors
1662 --enable-shared[=PKGS] build shared libraries [default=yes]
1663 --enable-static[=PKGS] build static libraries [default=yes]
1664 --enable-fast-install[=PKGS]
1665 optimize for fast installation [default=yes]
1666 --disable-libtool-lock avoid locking (might break parallel builds)
1667 --enable-ltdl-install install libltdl
1668
1669 Optional Packages:
1670 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1671 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1672 --with-pic try to use only PIC/non-PIC objects [default=use
1673 both]
1674 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1675 --with-included-ltdl use the GNU ltdl sources included here
1676 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1677 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1678
1679 --with-pkgconfdir=d Install config files in directory
1680 --with-db=gdbm Use the GDBM library.
1681 --with-db=db Use the libdb.a library.
1682 --without-authuserdb Do not include the authuserdb module
1683
1684 --without-authpam Do not include the authpam module
1685 --with-authpam-libraries="libs" Link 'libs' with authpam, this may be
1686 required for FreeBSD 3.3
1687 --without-authldap Do not include the authldap module
1688 --with-authldaprc=filename Expect to find authldaprc here
1689 --without-authpwd Do not include the authpwd module
1690 --without-authshadow Do not include the authshadow module
1691 --with-authpgsqlrc=filename Expect to find authpgsql here
1692 --without-authpgsql Do not include the authpgsql module
1693 --with-pgsql-libs=DIR Look for pgsql libs in this dir
1694 --with-pgsql-includes=DIR Look for pgsql includes in this dir
1695 --with-authmysqlrc=filename Expect to find authmysql here
1696 --without-authmysql Do not include the authmysql module
1697 --with-mysql-libs=DIR Look for mysql libs in this dir
1698 --with-mysql-includes=DIR Look for mysql includes in this dir
1699 --without-authcustom Do not include the authcustom module
1700 --with-pipeprog=filename Expect to find the pipe-prog here
1701 --without-authpipe Do not include the authpipe module
1702 --with-authdaemonrc=filename Expect to find authdaemonrc here
1703 --with-authdaemonvar=directory Directory where authdaemon.pid and
1704 the listening socket is created
1705 --with-mailuser=user Specify mail user name (defaults to
1706 courier, daemon, admin, bin, or root)
1707 --with-mailgroup=group Specify mail group name (defaults to courier,
1708 daemon, sys, adm, or root)
1709 --without-stdheaderdir Header files will be installed into a directory
1710 not in the compiler's default search path.
1711
1712 Some influential environment variables:
1713 CC C compiler command
1714 CFLAGS C compiler flags
1715 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1716 nonstandard directory <lib dir>
1717 LIBS libraries to pass to the linker, e.g. -l<library>
1718 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1719 you have headers in a nonstandard directory <include dir>
1720 CPP C preprocessor
1721
1722 Use these variables to override the choices made by `configure' or to help
1723 it to find libraries and programs with nonstandard names/locations.
1724
1725 Report bugs to <courier-users@lists.sourceforge.net>.
1726 _ACEOF
1727 ac_status=$?
1728 fi
1729
1730 if test "$ac_init_help" = "recursive"; then
1731 # If there are subdirs, report their specific --help.
1732 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1733 test -d "$ac_dir" ||
1734 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1735 continue
1736 ac_builddir=.
1737
1738 case "$ac_dir" in
1739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740 *)
1741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742 # A ".." for each directory in $ac_dir_suffix.
1743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744 case $ac_top_builddir_sub in
1745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1747 esac ;;
1748 esac
1749 ac_abs_top_builddir=$ac_pwd
1750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1751 # for backward compatibility:
1752 ac_top_builddir=$ac_top_build_prefix
1753
1754 case $srcdir in
1755 .) # We are building in place.
1756 ac_srcdir=.
1757 ac_top_srcdir=$ac_top_builddir_sub
1758 ac_abs_top_srcdir=$ac_pwd ;;
1759 [\\/]* | ?:[\\/]* ) # Absolute name.
1760 ac_srcdir=$srcdir$ac_dir_suffix;
1761 ac_top_srcdir=$srcdir
1762 ac_abs_top_srcdir=$srcdir ;;
1763 *) # Relative name.
1764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765 ac_top_srcdir=$ac_top_build_prefix$srcdir
1766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1767 esac
1768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1769
1770 cd "$ac_dir" || { ac_status=$?; continue; }
1771 # Check for guested configure.
1772 if test -f "$ac_srcdir/configure.gnu"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775 elif test -f "$ac_srcdir/configure"; then
1776 echo &&
1777 $SHELL "$ac_srcdir/configure" --help=recursive
1778 else
1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780 fi || ac_status=$?
1781 cd "$ac_pwd" || { ac_status=$?; break; }
1782 done
1783 fi
1784
1785 test -n "$ac_init_help" && exit $ac_status
1786 if $ac_init_version; then
1787 cat <<\_ACEOF
1788 courier-authlib configure 0.63.0
1789 generated by GNU Autoconf 2.63
1790
1791 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1792 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1793 This configure script is free software; the Free Software Foundation
1794 gives unlimited permission to copy, distribute and modify it.
1795 _ACEOF
1796 exit
1797 fi
1798 cat >config.log <<_ACEOF
1799 This file contains any messages produced by compilers while
1800 running configure, to aid debugging if configure makes a mistake.
1801
1802 It was created by courier-authlib $as_me 0.63.0, which was
1803 generated by GNU Autoconf 2.63. Invocation command line was
1804
1805 $ $0 $@
1806
1807 _ACEOF
1808 exec 5>>config.log
1809 {
1810 cat <<_ASUNAME
1811 ## --------- ##
1812 ## Platform. ##
1813 ## --------- ##
1814
1815 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1816 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1817 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1818 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1819 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1820
1821 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1822 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1823
1824 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1825 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1826 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1827 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1828 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1829 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1830 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1831
1832 _ASUNAME
1833
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 $as_echo "PATH: $as_dir"
1840 done
1841 IFS=$as_save_IFS
1842
1843 } >&5
1844
1845 cat >&5 <<_ACEOF
1846
1847
1848 ## ----------- ##
1849 ## Core tests. ##
1850 ## ----------- ##
1851
1852 _ACEOF
1853
1854
1855 # Keep a trace of the command line.
1856 # Strip out --no-create and --no-recursion so they do not pile up.
1857 # Strip out --silent because we don't want to record it for future runs.
1858 # Also quote any args containing shell meta-characters.
1859 # Make two passes to allow for proper duplicate-argument suppression.
1860 ac_configure_args=
1861 ac_configure_args0=
1862 ac_configure_args1=
1863 ac_must_keep_next=false
1864 for ac_pass in 1 2
1865 do
1866 for ac_arg
1867 do
1868 case $ac_arg in
1869 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1870 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1871 | -silent | --silent | --silen | --sile | --sil)
1872 continue ;;
1873 *\'*)
1874 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1875 esac
1876 case $ac_pass in
1877 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1878 2)
1879 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1880 if test $ac_must_keep_next = true; then
1881 ac_must_keep_next=false # Got value, back to normal.
1882 else
1883 case $ac_arg in
1884 *=* | --config-cache | -C | -disable-* | --disable-* \
1885 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1886 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1887 | -with-* | --with-* | -without-* | --without-* | --x)
1888 case "$ac_configure_args0 " in
1889 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1890 esac
1891 ;;
1892 -* ) ac_must_keep_next=true ;;
1893 esac
1894 fi
1895 ac_configure_args="$ac_configure_args '$ac_arg'"
1896 ;;
1897 esac
1898 done
1899 done
1900 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1901 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1902
1903 # When interrupted or exit'd, cleanup temporary files, and complete
1904 # config.log. We remove comments because anyway the quotes in there
1905 # would cause problems or look ugly.
1906 # WARNING: Use '\'' to represent an apostrophe within the trap.
1907 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1908 trap 'exit_status=$?
1909 # Save into config.log some information that might help in debugging.
1910 {
1911 echo
1912
1913 cat <<\_ASBOX
1914 ## ---------------- ##
1915 ## Cache variables. ##
1916 ## ---------------- ##
1917 _ASBOX
1918 echo
1919 # The following way of writing the cache mishandles newlines in values,
1920 (
1921 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1922 eval ac_val=\$$ac_var
1923 case $ac_val in #(
1924 *${as_nl}*)
1925 case $ac_var in #(
1926 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1927 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1928 esac
1929 case $ac_var in #(
1930 _ | IFS | as_nl) ;; #(
1931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1932 *) $as_unset $ac_var ;;
1933 esac ;;
1934 esac
1935 done
1936 (set) 2>&1 |
1937 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1938 *${as_nl}ac_space=\ *)
1939 sed -n \
1940 "s/'\''/'\''\\\\'\'''\''/g;
1941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1942 ;; #(
1943 *)
1944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1945 ;;
1946 esac |
1947 sort
1948 )
1949 echo
1950
1951 cat <<\_ASBOX
1952 ## ----------------- ##
1953 ## Output variables. ##
1954 ## ----------------- ##
1955 _ASBOX
1956 echo
1957 for ac_var in $ac_subst_vars
1958 do
1959 eval ac_val=\$$ac_var
1960 case $ac_val in
1961 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962 esac
1963 $as_echo "$ac_var='\''$ac_val'\''"
1964 done | sort
1965 echo
1966
1967 if test -n "$ac_subst_files"; then
1968 cat <<\_ASBOX
1969 ## ------------------- ##
1970 ## File substitutions. ##
1971 ## ------------------- ##
1972 _ASBOX
1973 echo
1974 for ac_var in $ac_subst_files
1975 do
1976 eval ac_val=\$$ac_var
1977 case $ac_val in
1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 esac
1980 $as_echo "$ac_var='\''$ac_val'\''"
1981 done | sort
1982 echo
1983 fi
1984
1985 if test -s confdefs.h; then
1986 cat <<\_ASBOX
1987 ## ----------- ##
1988 ## confdefs.h. ##
1989 ## ----------- ##
1990 _ASBOX
1991 echo
1992 cat confdefs.h
1993 echo
1994 fi
1995 test "$ac_signal" != 0 &&
1996 $as_echo "$as_me: caught signal $ac_signal"
1997 $as_echo "$as_me: exit $exit_status"
1998 } >&5
1999 rm -f core *.core core.conftest.* &&
2000 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2001 exit $exit_status
2002 ' 0
2003 for ac_signal in 1 2 13 15; do
2004 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2005 done
2006 ac_signal=0
2007
2008 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2009 rm -f -r conftest* confdefs.h
2010
2011 # Predefined preprocessor variables.
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_NAME "$PACKAGE_NAME"
2015 _ACEOF
2016
2017
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2020 _ACEOF
2021
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2025 _ACEOF
2026
2027
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_STRING "$PACKAGE_STRING"
2030 _ACEOF
2031
2032
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2035 _ACEOF
2036
2037
2038 # Let the site file select an alternate cache file if it wants to.
2039 # Prefer an explicitly selected file to automatically selected ones.
2040 ac_site_file1=NONE
2041 ac_site_file2=NONE
2042 if test -n "$CONFIG_SITE"; then
2043 ac_site_file1=$CONFIG_SITE
2044 elif test "x$prefix" != xNONE; then
2045 ac_site_file1=$prefix/share/config.site
2046 ac_site_file2=$prefix/etc/config.site
2047 else
2048 ac_site_file1=$ac_default_prefix/share/config.site
2049 ac_site_file2=$ac_default_prefix/etc/config.site
2050 fi
2051 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2052 do
2053 test "x$ac_site_file" = xNONE && continue
2054 if test -r "$ac_site_file"; then
2055 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2056 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2057 sed 's/^/| /' "$ac_site_file" >&5
2058 . "$ac_site_file"
2059 fi
2060 done
2061
2062 if test -r "$cache_file"; then
2063 # Some versions of bash will fail to source /dev/null (special
2064 # files actually), so we avoid doing that.
2065 if test -f "$cache_file"; then
2066 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2067 $as_echo "$as_me: loading cache $cache_file" >&6;}
2068 case $cache_file in
2069 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070 *) . "./$cache_file";;
2071 esac
2072 fi
2073 else
2074 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2075 $as_echo "$as_me: creating cache $cache_file" >&6;}
2076 >$cache_file
2077 fi
2078
2079 # Check that the precious variables saved in the cache have kept the same
2080 # value.
2081 ac_cache_corrupted=false
2082 for ac_var in $ac_precious_vars; do
2083 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2084 eval ac_new_set=\$ac_env_${ac_var}_set
2085 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2086 eval ac_new_val=\$ac_env_${ac_var}_value
2087 case $ac_old_set,$ac_new_set in
2088 set,)
2089 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2090 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2091 ac_cache_corrupted=: ;;
2092 ,set)
2093 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2094 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2095 ac_cache_corrupted=: ;;
2096 ,);;
2097 *)
2098 if test "x$ac_old_val" != "x$ac_new_val"; then
2099 # differences in whitespace do not lead to failure.
2100 ac_old_val_w=`echo x $ac_old_val`
2101 ac_new_val_w=`echo x $ac_new_val`
2102 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2103 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2104 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2105 ac_cache_corrupted=:
2106 else
2107 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2108 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2109 eval $ac_var=\$ac_old_val
2110 fi
2111 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2112 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2113 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2114 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2115 fi;;
2116 esac
2117 # Pass precious variables to config.status.
2118 if test "$ac_new_set" = set; then
2119 case $ac_new_val in
2120 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2121 *) ac_arg=$ac_var=$ac_new_val ;;
2122 esac
2123 case " $ac_configure_args " in
2124 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2125 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2126 esac
2127 fi
2128 done
2129 if $ac_cache_corrupted; then
2130 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2133 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2134 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2135 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2136 { (exit 1); exit 1; }; }
2137 fi
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163 ac_ext=c
2164 ac_cpp='$CPP $CPPFLAGS'
2165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2168
2169
2170
2171
2172 ac_config_headers="$ac_config_headers courier_auth_config.h"
2173
2174
2175
2176 am__api_version='1.11'
2177
2178 ac_aux_dir=
2179 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2180 if test -f "$ac_dir/install-sh"; then
2181 ac_aux_dir=$ac_dir
2182 ac_install_sh="$ac_aux_dir/install-sh -c"
2183 break
2184 elif test -f "$ac_dir/install.sh"; then
2185 ac_aux_dir=$ac_dir
2186 ac_install_sh="$ac_aux_dir/install.sh -c"
2187 break
2188 elif test -f "$ac_dir/shtool"; then
2189 ac_aux_dir=$ac_dir
2190 ac_install_sh="$ac_aux_dir/shtool install -c"
2191 break
2192 fi
2193 done
2194 if test -z "$ac_aux_dir"; then
2195 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2196 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2197 { (exit 1); exit 1; }; }
2198 fi
2199
2200 # These three variables are undocumented and unsupported,
2201 # and are intended to be withdrawn in a future Autoconf release.
2202 # They can cause serious problems if a builder's source tree is in a directory
2203 # whose full name contains unusual characters.
2204 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2205 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2206 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2207
2208
2209 # Find a good install program. We prefer a C program (faster),
2210 # so one script is as good as another. But avoid the broken or
2211 # incompatible versions:
2212 # SysV /etc/install, /usr/sbin/install
2213 # SunOS /usr/etc/install
2214 # IRIX /sbin/install
2215 # AIX /bin/install
2216 # AmigaOS /C/install, which installs bootblocks on floppy discs
2217 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2218 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2219 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2220 # OS/2's system install, which has a completely different semantic
2221 # ./install, which can be erroneously created by make from ./install.sh.
2222 # Reject install programs that cannot install multiple files.
2223 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2224 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2225 if test -z "$INSTALL"; then
2226 if test "${ac_cv_path_install+set}" = set; then
2227 $as_echo_n "(cached) " >&6
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 # Account for people who put trailing slashes in PATH elements.
2235 case $as_dir/ in
2236 ./ | .// | /cC/* | \
2237 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2238 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2239 /usr/ucb/* ) ;;
2240 *)
2241 # OSF1 and SCO ODT 3.0 have their own names for install.
2242 # Don't use installbsd from OSF since it installs stuff as root
2243 # by default.
2244 for ac_prog in ginstall scoinst install; do
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2247 if test $ac_prog = install &&
2248 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249 # AIX install. It has an incompatible calling convention.
2250 :
2251 elif test $ac_prog = install &&
2252 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2253 # program-specific install script used by HP pwplus--don't use.
2254 :
2255 else
2256 rm -rf conftest.one conftest.two conftest.dir
2257 echo one > conftest.one
2258 echo two > conftest.two
2259 mkdir conftest.dir
2260 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2261 test -s conftest.one && test -s conftest.two &&
2262 test -s conftest.dir/conftest.one &&
2263 test -s conftest.dir/conftest.two
2264 then
2265 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2266 break 3
2267 fi
2268 fi
2269 fi
2270 done
2271 done
2272 ;;
2273 esac
2274
2275 done
2276 IFS=$as_save_IFS
2277
2278 rm -rf conftest.one conftest.two conftest.dir
2279
2280 fi
2281 if test "${ac_cv_path_install+set}" = set; then
2282 INSTALL=$ac_cv_path_install
2283 else
2284 # As a last resort, use the slow shell script. Don't cache a
2285 # value for INSTALL within a source directory, because that will
2286 # break other packages using the cache if that directory is
2287 # removed, or if the value is a relative name.
2288 INSTALL=$ac_install_sh
2289 fi
2290 fi
2291 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2292 $as_echo "$INSTALL" >&6; }
2293
2294 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2295 # It thinks the first close brace ends the variable substitution.
2296 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2297
2298 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2299
2300 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2301
2302 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2303 $as_echo_n "checking whether build environment is sane... " >&6; }
2304 # Just in case
2305 sleep 1
2306 echo timestamp > conftest.file
2307 # Reject unsafe characters in $srcdir or the absolute working directory
2308 # name. Accept space and tab only in the latter.
2309 am_lf='
2310 '
2311 case `pwd` in
2312 *[\\\"\#\$\&\'\`$am_lf]*)
2313 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2314 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2315 { (exit 1); exit 1; }; };;
2316 esac
2317 case $srcdir in
2318 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2319 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2320 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2321 { (exit 1); exit 1; }; };;
2322 esac
2323
2324 # Do `set' in a subshell so we don't clobber the current shell's
2325 # arguments. Must try -L first in case configure is actually a
2326 # symlink; some systems play weird games with the mod time of symlinks
2327 # (eg FreeBSD returns the mod time of the symlink's containing
2328 # directory).
2329 if (
2330 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2331 if test "$*" = "X"; then
2332 # -L didn't work.
2333 set X `ls -t "$srcdir/configure" conftest.file`
2334 fi
2335 rm -f conftest.file
2336 if test "$*" != "X $srcdir/configure conftest.file" \
2337 && test "$*" != "X conftest.file $srcdir/configure"; then
2338
2339 # If neither matched, then we have a broken ls. This can happen
2340 # if, for instance, CONFIG_SHELL is bash and it inherits a
2341 # broken ls alias from the environment. This has actually
2342 # happened. Such a system could not be considered "sane".
2343 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2344 alias in your environment" >&5
2345 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2346 alias in your environment" >&2;}
2347 { (exit 1); exit 1; }; }
2348 fi
2349
2350 test "$2" = conftest.file
2351 )
2352 then
2353 # Ok.
2354 :
2355 else
2356 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2357 Check your system clock" >&5
2358 $as_echo "$as_me: error: newly created file is older than distributed files!
2359 Check your system clock" >&2;}
2360 { (exit 1); exit 1; }; }
2361 fi
2362 { $as_echo "$as_me:$LINENO: result: yes" >&5
2363 $as_echo "yes" >&6; }
2364 test "$program_prefix" != NONE &&
2365 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2366 # Use a double $ so make ignores it.
2367 test "$program_suffix" != NONE &&
2368 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2369 # Double any \ or $.
2370 # By default was `s,x,x', remove it if useless.
2371 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2373
2374 # expand $ac_aux_dir to an absolute path
2375 am_aux_dir=`cd $ac_aux_dir && pwd`
2376
2377 if test x"${MISSING+set}" != xset; then
2378 case $am_aux_dir in
2379 *\ * | *\ *)
2380 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2381 *)
2382 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2383 esac
2384 fi
2385 # Use eval to expand $SHELL
2386 if eval "$MISSING --run true"; then
2387 am_missing_run="$MISSING --run "
2388 else
2389 am_missing_run=
2390 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2391 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2392 fi
2393
2394 if test x"${install_sh}" != xset; then
2395 case $am_aux_dir in
2396 *\ * | *\ *)
2397 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2398 *)
2399 install_sh="\${SHELL} $am_aux_dir/install-sh"
2400 esac
2401 fi
2402
2403 # Installed binaries are usually stripped using `strip' when the user
2404 # run `make install-strip'. However `strip' might not be the right
2405 # tool to use in cross-compilation environments, therefore Automake
2406 # will honor the `STRIP' environment variable to overrule this program.
2407 if test "$cross_compiling" != no; then
2408 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2410 set dummy ${ac_tool_prefix}strip; ac_word=$2
2411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if test "${ac_cv_prog_STRIP+set}" = set; then
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test -n "$STRIP"; then
2417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430 done
2431 done
2432 IFS=$as_save_IFS
2433
2434 fi
2435 fi
2436 STRIP=$ac_cv_prog_STRIP
2437 if test -n "$STRIP"; then
2438 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2439 $as_echo "$STRIP" >&6; }
2440 else
2441 { $as_echo "$as_me:$LINENO: result: no" >&5
2442 $as_echo "no" >&6; }
2443 fi
2444
2445
2446 fi
2447 if test -z "$ac_cv_prog_STRIP"; then
2448 ac_ct_STRIP=$STRIP
2449 # Extract the first word of "strip", so it can be a program name with args.
2450 set dummy strip; ac_word=$2
2451 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2452 $as_echo_n "checking for $ac_word... " >&6; }
2453 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2454 $as_echo_n "(cached) " >&6
2455 else
2456 if test -n "$ac_ct_STRIP"; then
2457 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_ac_ct_STRIP="strip"
2467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2469 fi
2470 done
2471 done
2472 IFS=$as_save_IFS
2473
2474 fi
2475 fi
2476 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2477 if test -n "$ac_ct_STRIP"; then
2478 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2479 $as_echo "$ac_ct_STRIP" >&6; }
2480 else
2481 { $as_echo "$as_me:$LINENO: result: no" >&5
2482 $as_echo "no" >&6; }
2483 fi
2484
2485 if test "x$ac_ct_STRIP" = x; then
2486 STRIP=":"
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489 yes:)
2490 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2492 ac_tool_warned=yes ;;
2493 esac
2494 STRIP=$ac_ct_STRIP
2495 fi
2496 else
2497 STRIP="$ac_cv_prog_STRIP"
2498 fi
2499
2500 fi
2501 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2502
2503 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2504 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2505 if test -z "$MKDIR_P"; then
2506 if test "${ac_cv_path_mkdir+set}" = set; then
2507 $as_echo_n "(cached) " >&6
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2511 do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_prog in mkdir gmkdir; do
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2517 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2518 'mkdir (GNU coreutils) '* | \
2519 'mkdir (coreutils) '* | \
2520 'mkdir (fileutils) '4.1*)
2521 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2522 break 3;;
2523 esac
2524 done
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530
2531 if test "${ac_cv_path_mkdir+set}" = set; then
2532 MKDIR_P="$ac_cv_path_mkdir -p"
2533 else
2534 # As a last resort, use the slow shell script. Don't cache a
2535 # value for MKDIR_P within a source directory, because that will
2536 # break other packages using the cache if that directory is
2537 # removed, or if the value is a relative name.
2538 test -d ./--version && rmdir ./--version
2539 MKDIR_P="$ac_install_sh -d"
2540 fi
2541 fi
2542 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2543 $as_echo "$MKDIR_P" >&6; }
2544
2545 mkdir_p="$MKDIR_P"
2546 case $mkdir_p in
2547 [\\/$]* | ?:[\\/]*) ;;
2548 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2549 esac
2550
2551 for ac_prog in gawk mawk nawk awk
2552 do
2553 # Extract the first word of "$ac_prog", so it can be a program name with args.
2554 set dummy $ac_prog; ac_word=$2
2555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if test "${ac_cv_prog_AWK+set}" = set; then
2558 $as_echo_n "(cached) " >&6
2559 else
2560 if test -n "$AWK"; then
2561 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_AWK="$ac_prog"
2571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2573 fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 AWK=$ac_cv_prog_AWK
2581 if test -n "$AWK"; then
2582 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2583 $as_echo "$AWK" >&6; }
2584 else
2585 { $as_echo "$as_me:$LINENO: result: no" >&5
2586 $as_echo "no" >&6; }
2587 fi
2588
2589
2590 test -n "$AWK" && break
2591 done
2592
2593 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2594 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2595 set x ${MAKE-make}
2596 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2597 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2598 $as_echo_n "(cached) " >&6
2599 else
2600 cat >conftest.make <<\_ACEOF
2601 SHELL = /bin/sh
2602 all:
2603 @echo '@@@%%%=$(MAKE)=@@@%%%'
2604 _ACEOF
2605 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2606 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2607 *@@@%%%=?*=@@@%%%*)
2608 eval ac_cv_prog_make_${ac_make}_set=yes;;
2609 *)
2610 eval ac_cv_prog_make_${ac_make}_set=no;;
2611 esac
2612 rm -f conftest.make
2613 fi
2614 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2615 { $as_echo "$as_me:$LINENO: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 SET_MAKE=
2618 else
2619 { $as_echo "$as_me:$LINENO: result: no" >&5
2620 $as_echo "no" >&6; }
2621 SET_MAKE="MAKE=${MAKE-make}"
2622 fi
2623
2624 rm -rf .tst 2>/dev/null
2625 mkdir .tst 2>/dev/null
2626 if test -d .tst; then
2627 am__leading_dot=.
2628 else
2629 am__leading_dot=_
2630 fi
2631 rmdir .tst 2>/dev/null
2632
2633 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2634 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2635 # is not polluted with repeated "-I."
2636 am__isrc=' -I$(srcdir)'
2637 # test to see if srcdir already configured
2638 if test -f $srcdir/config.status; then
2639 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2640 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2641 { (exit 1); exit 1; }; }
2642 fi
2643 fi
2644
2645 # test whether we have cygpath
2646 if test -z "$CYGPATH_W"; then
2647 if (cygpath --version) >/dev/null 2>/dev/null; then
2648 CYGPATH_W='cygpath -w'
2649 else
2650 CYGPATH_W=echo
2651 fi
2652 fi
2653
2654
2655 # Define the identity of the package.
2656 PACKAGE='courier-authlib'
2657 VERSION='0.63.0'
2658
2659
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE "$PACKAGE"
2662 _ACEOF
2663
2664
2665 cat >>confdefs.h <<_ACEOF
2666 #define VERSION "$VERSION"
2667 _ACEOF
2668
2669 # Some tools Automake needs.
2670
2671 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2672
2673
2674 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2675
2676
2677 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2678
2679
2680 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2681
2682
2683 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2684
2685 # We need awk for the "check" target. The system "awk" is bad on
2686 # some platforms.
2687 # Always define AMTAR for backward compatibility.
2688
2689 AMTAR=${AMTAR-"${am_missing_run}tar"}
2690
2691 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2692
2693
2694
2695
2696
2697 >confdefs.h # Kill PACKAGE_ macros
2698
2699 LPATH="$PATH:/usr/local/bin"
2700
2701 for ac_prog in gawk mawk nawk awk
2702 do
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy $ac_prog; ac_word=$2
2705 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if test "${ac_cv_prog_AWK+set}" = set; then
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test -n "$AWK"; then
2711 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_AWK="$ac_prog"
2721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2723 fi
2724 done
2725 done
2726 IFS=$as_save_IFS
2727
2728 fi
2729 fi
2730 AWK=$ac_cv_prog_AWK
2731 if test -n "$AWK"; then
2732 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2733 $as_echo "$AWK" >&6; }
2734 else
2735 { $as_echo "$as_me:$LINENO: result: no" >&5
2736 $as_echo "no" >&6; }
2737 fi
2738
2739
2740 test -n "$AWK" && break
2741 done
2742
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748 if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2750 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_CC+set}" = set; then
2754 $as_echo_n "(cached) " >&6
2755 else
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 CC=$ac_cv_prog_CC
2777 if test -n "$CC"; then
2778 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2779 $as_echo "$CC" >&6; }
2780 else
2781 { $as_echo "$as_me:$LINENO: result: no" >&5
2782 $as_echo "no" >&6; }
2783 fi
2784
2785
2786 fi
2787 if test -z "$ac_cv_prog_CC"; then
2788 ac_ct_CC=$CC
2789 # Extract the first word of "gcc", so it can be a program name with args.
2790 set dummy gcc; ac_word=$2
2791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if test -n "$ac_ct_CC"; then
2797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_ac_ct_CC="gcc"
2807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2817 if test -n "$ac_ct_CC"; then
2818 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2819 $as_echo "$ac_ct_CC" >&6; }
2820 else
2821 { $as_echo "$as_me:$LINENO: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825 if test "x$ac_ct_CC" = x; then
2826 CC=""
2827 else
2828 case $cross_compiling:$ac_tool_warned in
2829 yes:)
2830 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2832 ac_tool_warned=yes ;;
2833 esac
2834 CC=$ac_ct_CC
2835 fi
2836 else
2837 CC="$ac_cv_prog_CC"
2838 fi
2839
2840 if test -z "$CC"; then
2841 if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2843 set dummy ${ac_tool_prefix}cc; ac_word=$2
2844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if test "${ac_cv_prog_CC+set}" = set; then
2847 $as_echo_n "(cached) " >&6
2848 else
2849 if test -n "$CC"; then
2850 ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_CC="${ac_tool_prefix}cc"
2860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 CC=$ac_cv_prog_CC
2870 if test -n "$CC"; then
2871 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2872 $as_echo "$CC" >&6; }
2873 else
2874 { $as_echo "$as_me:$LINENO: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879 fi
2880 fi
2881 if test -z "$CC"; then
2882 # Extract the first word of "cc", so it can be a program name with args.
2883 set dummy cc; ac_word=$2
2884 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 ac_prog_rejected=no
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2901 ac_prog_rejected=yes
2902 continue
2903 fi
2904 ac_cv_prog_CC="cc"
2905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 if test $ac_prog_rejected = yes; then
2913 # We found a bogon in the path, so make sure we never use it.
2914 set dummy $ac_cv_prog_CC
2915 shift
2916 if test $# != 0; then
2917 # We chose a different compiler from the bogus one.
2918 # However, it has the same basename, so the bogon will be chosen
2919 # first if we set CC to just the basename; use the full file name.
2920 shift
2921 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2922 fi
2923 fi
2924 fi
2925 fi
2926 CC=$ac_cv_prog_CC
2927 if test -n "$CC"; then
2928 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2929 $as_echo "$CC" >&6; }
2930 else
2931 { $as_echo "$as_me:$LINENO: result: no" >&5
2932 $as_echo "no" >&6; }
2933 fi
2934
2935
2936 fi
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2939 for ac_prog in cl.exe
2940 do
2941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2943 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if test "${ac_cv_prog_CC+set}" = set; then
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962 done
2963 done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
2968 CC=$ac_cv_prog_CC
2969 if test -n "$CC"; then
2970 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2972 else
2973 { $as_echo "$as_me:$LINENO: result: no" >&5
2974 $as_echo "no" >&6; }
2975 fi
2976
2977
2978 test -n "$CC" && break
2979 done
2980 fi
2981 if test -z "$CC"; then
2982 ac_ct_CC=$CC
2983 for ac_prog in cl.exe
2984 do
2985 # Extract the first word of "$ac_prog", so it can be a program name with args.
2986 set dummy $ac_prog; ac_word=$2
2987 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$ac_ct_CC"; then
2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 ac_cv_prog_ac_ct_CC="$ac_prog"
3003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013 if test -n "$ac_ct_CC"; then
3014 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3015 $as_echo "$ac_ct_CC" >&6; }
3016 else
3017 { $as_echo "$as_me:$LINENO: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022 test -n "$ac_ct_CC" && break
3023 done
3024
3025 if test "x$ac_ct_CC" = x; then
3026 CC=""
3027 else
3028 case $cross_compiling:$ac_tool_warned in
3029 yes:)
3030 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032 ac_tool_warned=yes ;;
3033 esac
3034 CC=$ac_ct_CC
3035 fi
3036 fi
3037
3038 fi
3039
3040
3041 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3044 See \`config.log' for more details." >&5
3045 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3046 See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }; }
3048
3049 # Provide some information about the compiler.
3050 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3051 set X $ac_compile
3052 ac_compiler=$2
3053 { (ac_try="$ac_compiler --version >&5"
3054 case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3059 $as_echo "$ac_try_echo") >&5
3060 (eval "$ac_compiler --version >&5") 2>&5
3061 ac_status=$?
3062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }
3064 { (ac_try="$ac_compiler -v >&5"
3065 case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3070 $as_echo "$ac_try_echo") >&5
3071 (eval "$ac_compiler -v >&5") 2>&5
3072 ac_status=$?
3073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }
3075 { (ac_try="$ac_compiler -V >&5"
3076 case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3081 $as_echo "$ac_try_echo") >&5
3082 (eval "$ac_compiler -V >&5") 2>&5
3083 ac_status=$?
3084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }
3086
3087 cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h. */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3093
3094 int
3095 main ()
3096 {
3097
3098 ;
3099 return 0;
3100 }
3101 _ACEOF
3102 ac_clean_files_save=$ac_clean_files
3103 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3104 # Try to create an executable without -o first, disregard a.out.
3105 # It will help us diagnose broken compilers, and finding out an intuition
3106 # of exeext.
3107 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3108 $as_echo_n "checking for C compiler default output file name... " >&6; }
3109 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3110
3111 # The possible output files:
3112 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3113
3114 ac_rmfiles=
3115 for ac_file in $ac_files
3116 do
3117 case $ac_file in
3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3119 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3120 esac
3121 done
3122 rm -f $ac_rmfiles
3123
3124 if { (ac_try="$ac_link_default"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130 $as_echo "$ac_try_echo") >&5
3131 (eval "$ac_link_default") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; then
3135 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3136 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3137 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3138 # so that the user can short-circuit this test for compilers unknown to
3139 # Autoconf.
3140 for ac_file in $ac_files ''
3141 do
3142 test -f "$ac_file" || continue
3143 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3145 ;;
3146 [ab].out )
3147 # We found the default executable, but exeext='' is most
3148 # certainly right.
3149 break;;
3150 *.* )
3151 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3152 then :; else
3153 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154 fi
3155 # We set ac_cv_exeext here because the later test for it is not
3156 # safe: cross compilers may not add the suffix if given an `-o'
3157 # argument, so we may need to know it at that point already.
3158 # Even if this section looks crufty: it has the advantage of
3159 # actually working.
3160 break;;
3161 * )
3162 break;;
3163 esac
3164 done
3165 test "$ac_cv_exeext" = no && ac_cv_exeext=
3166
3167 else
3168 ac_file=''
3169 fi
3170
3171 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3172 $as_echo "$ac_file" >&6; }
3173 if test -z "$ac_file"; then
3174 $as_echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3180 See \`config.log' for more details." >&5
3181 $as_echo "$as_me: error: C compiler cannot create executables
3182 See \`config.log' for more details." >&2;}
3183 { (exit 77); exit 77; }; }; }
3184 fi
3185
3186 ac_exeext=$ac_cv_exeext
3187
3188 # Check that the compiler produces executables we can run. If not, either
3189 # the compiler is broken, or we cross compile.
3190 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3191 $as_echo_n "checking whether the C compiler works... " >&6; }
3192 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3193 # If not cross compiling, check that we can run a simple program.
3194 if test "$cross_compiling" != yes; then
3195 if { ac_try='./$ac_file'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3201 $as_echo "$ac_try_echo") >&5
3202 (eval "$ac_try") 2>&5
3203 ac_status=$?
3204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3206 cross_compiling=no
3207 else
3208 if test "$cross_compiling" = maybe; then
3209 cross_compiling=yes
3210 else
3211 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3214 If you meant to cross compile, use \`--host'.
3215 See \`config.log' for more details." >&5
3216 $as_echo "$as_me: error: cannot run C compiled programs.
3217 If you meant to cross compile, use \`--host'.
3218 See \`config.log' for more details." >&2;}
3219 { (exit 1); exit 1; }; }; }
3220 fi
3221 fi
3222 fi
3223 { $as_echo "$as_me:$LINENO: result: yes" >&5
3224 $as_echo "yes" >&6; }
3225
3226 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3227 ac_clean_files=$ac_clean_files_save
3228 # Check that the compiler produces executables we can run. If not, either
3229 # the compiler is broken, or we cross compile.
3230 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3231 $as_echo_n "checking whether we are cross compiling... " >&6; }
3232 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3233 $as_echo "$cross_compiling" >&6; }
3234
3235 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3236 $as_echo_n "checking for suffix of executables... " >&6; }
3237 if { (ac_try="$ac_link"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3243 $as_echo "$ac_try_echo") >&5
3244 (eval "$ac_link") 2>&5
3245 ac_status=$?
3246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; then
3248 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3249 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3250 # work properly (i.e., refer to `conftest.exe'), while it won't with
3251 # `rm'.
3252 for ac_file in conftest.exe conftest conftest.*; do
3253 test -f "$ac_file" || continue
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3257 break;;
3258 * ) break;;
3259 esac
3260 done
3261 else
3262 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3265 See \`config.log' for more details." >&5
3266 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3267 See \`config.log' for more details." >&2;}
3268 { (exit 1); exit 1; }; }; }
3269 fi
3270
3271 rm -f conftest$ac_cv_exeext
3272 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3273 $as_echo "$ac_cv_exeext" >&6; }
3274
3275 rm -f conftest.$ac_ext
3276 EXEEXT=$ac_cv_exeext
3277 ac_exeext=$EXEEXT
3278 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3279 $as_echo_n "checking for suffix of object files... " >&6; }
3280 if test "${ac_cv_objext+set}" = set; then
3281 $as_echo_n "(cached) " >&6
3282 else
3283 cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h. */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289
3290 int
3291 main ()
3292 {
3293
3294 ;
3295 return 0;
3296 }
3297 _ACEOF
3298 rm -f conftest.o conftest.obj
3299 if { (ac_try="$ac_compile"
3300 case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303 esac
3304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3305 $as_echo "$ac_try_echo") >&5
3306 (eval "$ac_compile") 2>&5
3307 ac_status=$?
3308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; then
3310 for ac_file in conftest.o conftest.obj conftest.*; do
3311 test -f "$ac_file" || continue;
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3314 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3315 break;;
3316 esac
3317 done
3318 else
3319 $as_echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3325 See \`config.log' for more details." >&5
3326 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3327 See \`config.log' for more details." >&2;}
3328 { (exit 1); exit 1; }; }; }
3329 fi
3330
3331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3332 fi
3333 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3334 $as_echo "$ac_cv_objext" >&6; }
3335 OBJEXT=$ac_cv_objext
3336 ac_objext=$OBJEXT
3337 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3338 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3339 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3340 $as_echo_n "(cached) " >&6
3341 else
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348
3349 int
3350 main ()
3351 {
3352 #ifndef __GNUC__
3353 choke me
3354 #endif
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3367 $as_echo "$ac_try_echo") >&5
3368 (eval "$ac_compile") 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && {
3375 test -z "$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 } && test -s conftest.$ac_objext; then
3378 ac_compiler_gnu=yes
3379 else
3380 $as_echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 ac_compiler_gnu=no
3384 fi
3385
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3388
3389 fi
3390 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3391 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3392 if test $ac_compiler_gnu = yes; then
3393 GCC=yes
3394 else
3395 GCC=
3396 fi
3397 ac_test_CFLAGS=${CFLAGS+set}
3398 ac_save_CFLAGS=$CFLAGS
3399 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3400 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3401 if test "${ac_cv_prog_cc_g+set}" = set; then
3402 $as_echo_n "(cached) " >&6
3403 else
3404 ac_save_c_werror_flag=$ac_c_werror_flag
3405 ac_c_werror_flag=yes
3406 ac_cv_prog_cc_g=no
3407 CFLAGS="-g"
3408 cat >conftest.$ac_ext <<_ACEOF
3409 /* confdefs.h. */
3410 _ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414
3415 int
3416 main ()
3417 {
3418
3419 ;
3420 return 0;
3421 }
3422 _ACEOF
3423 rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3425 case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3430 $as_echo "$ac_try_echo") >&5
3431 (eval "$ac_compile") 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } && {
3438 test -z "$ac_c_werror_flag" ||
3439 test ! -s conftest.err
3440 } && test -s conftest.$ac_objext; then
3441 ac_cv_prog_cc_g=yes
3442 else
3443 $as_echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3445
3446 CFLAGS=""
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453
3454 int
3455 main ()
3456 {
3457
3458 ;
3459 return 0;
3460 }
3461 _ACEOF
3462 rm -f conftest.$ac_objext
3463 if { (ac_try="$ac_compile"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3469 $as_echo "$ac_try_echo") >&5
3470 (eval "$ac_compile") 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } && {
3477 test -z "$ac_c_werror_flag" ||
3478 test ! -s conftest.err
3479 } && test -s conftest.$ac_objext; then
3480 :
3481 else
3482 $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 ac_c_werror_flag=$ac_save_c_werror_flag
3486 CFLAGS="-g"
3487 cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h. */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3493
3494 int
3495 main ()
3496 {
3497
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3504 case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3509 $as_echo "$ac_try_echo") >&5
3510 (eval "$ac_compile") 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } && {
3517 test -z "$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3519 } && test -s conftest.$ac_objext; then
3520 ac_cv_prog_cc_g=yes
3521 else
3522 $as_echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525
3526 fi
3527
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 fi
3530
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 fi
3533
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 ac_c_werror_flag=$ac_save_c_werror_flag
3536 fi
3537 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3538 $as_echo "$ac_cv_prog_cc_g" >&6; }
3539 if test "$ac_test_CFLAGS" = set; then
3540 CFLAGS=$ac_save_CFLAGS
3541 elif test $ac_cv_prog_cc_g = yes; then
3542 if test "$GCC" = yes; then
3543 CFLAGS="-g -O2"
3544 else
3545 CFLAGS="-g"
3546 fi
3547 else
3548 if test "$GCC" = yes; then
3549 CFLAGS="-O2"
3550 else
3551 CFLAGS=
3552 fi
3553 fi
3554 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3555 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3556 if test "${ac_cv_prog_cc_c89+set}" = set; then
3557 $as_echo_n "(cached) " >&6
3558 else
3559 ac_cv_prog_cc_c89=no
3560 ac_save_CC=$CC
3561 cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h. */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3567 #include <stdarg.h>
3568 #include <stdio.h>
3569 #include <sys/types.h>
3570 #include <sys/stat.h>
3571 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3572 struct buf { int x; };
3573 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3574 static char *e (p, i)
3575 char **p;
3576 int i;
3577 {
3578 return p[i];
3579 }
3580 static char *f (char * (*g) (char **, int), char **p, ...)
3581 {
3582 char *s;
3583 va_list v;
3584 va_start (v,p);
3585 s = g (p, va_arg (v,int));
3586 va_end (v);
3587 return s;
3588 }
3589
3590 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3591 function prototypes and stuff, but not '\xHH' hex character constants.
3592 These don't provoke an error unfortunately, instead are silently treated
3593 as 'x'. The following induces an error, until -std is added to get
3594 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3595 array size at least. It's necessary to write '\x00'==0 to get something
3596 that's true only with -std. */
3597 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3598
3599 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3600 inside strings and character constants. */
3601 #define FOO(x) 'x'
3602 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3603
3604 int test (int i, double x);
3605 struct s1 {int (*f) (int a);};
3606 struct s2 {int (*f) (double a);};
3607 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3608 int argc;
3609 char **argv;
3610 int
3611 main ()
3612 {
3613 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3619 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3620 do
3621 CC="$ac_save_CC $ac_arg"
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3640 ac_cv_prog_cc_c89=$ac_arg
3641 else
3642 $as_echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645
3646 fi
3647
3648 rm -f core conftest.err conftest.$ac_objext
3649 test "x$ac_cv_prog_cc_c89" != "xno" && break
3650 done
3651 rm -f conftest.$ac_ext
3652 CC=$ac_save_CC
3653
3654 fi
3655 # AC_CACHE_VAL
3656 case "x$ac_cv_prog_cc_c89" in
3657 x)
3658 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3659 $as_echo "none needed" >&6; } ;;
3660 xno)
3661 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3662 $as_echo "unsupported" >&6; } ;;
3663 *)
3664 CC="$CC $ac_cv_prog_cc_c89"
3665 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3666 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3667 esac
3668
3669
3670 ac_ext=c
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 DEPDIR="${am__leading_dot}deps"
3676
3677 ac_config_commands="$ac_config_commands depfiles"
3678
3679
3680 am_make=${MAKE-make}
3681 cat > confinc << 'END'
3682 am__doit:
3683 @echo this is the am__doit target
3684 .PHONY: am__doit
3685 END
3686 # If we don't find an include directive, just comment out the code.
3687 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3688 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3689 am__include="#"
3690 am__quote=
3691 _am_result=none
3692 # First try GNU make style include.
3693 echo "include confinc" > confmf
3694 # Ignore all kinds of additional output from `make'.
3695 case `$am_make -s -f confmf 2> /dev/null` in #(
3696 *the\ am__doit\ target*)
3697 am__include=include
3698 am__quote=
3699 _am_result=GNU
3700 ;;
3701 esac
3702 # Now try BSD make style include.
3703 if test "$am__include" = "#"; then
3704 echo '.include "confinc"' > confmf
3705 case `$am_make -s -f confmf 2> /dev/null` in #(
3706 *the\ am__doit\ target*)
3707 am__include=.include
3708 am__quote="\""
3709 _am_result=BSD
3710 ;;
3711 esac
3712 fi
3713
3714
3715 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3716 $as_echo "$_am_result" >&6; }
3717 rm -f confinc confmf
3718
3719 # Check whether --enable-dependency-tracking was given.
3720 if test "${enable_dependency_tracking+set}" = set; then
3721 enableval=$enable_dependency_tracking;
3722 fi
3723
3724 if test "x$enable_dependency_tracking" != xno; then
3725 am_depcomp="$ac_aux_dir/depcomp"
3726 AMDEPBACKSLASH='\'
3727 fi
3728 if test "x$enable_dependency_tracking" != xno; then
3729 AMDEP_TRUE=
3730 AMDEP_FALSE='#'
3731 else
3732 AMDEP_TRUE='#'
3733 AMDEP_FALSE=
3734 fi
3735
3736
3737
3738 depcc="$CC" am_compiler_list=
3739
3740 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3741 $as_echo_n "checking dependency style of $depcc... " >&6; }
3742 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3743 $as_echo_n "(cached) " >&6
3744 else
3745 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3746 # We make a subdir and do the tests there. Otherwise we can end up
3747 # making bogus files that we don't know about and never remove. For
3748 # instance it was reported that on HP-UX the gcc test will end up
3749 # making a dummy file named `D' -- because `-MD' means `put the output
3750 # in D'.
3751 mkdir conftest.dir
3752 # Copy depcomp to subdir because otherwise we won't find it if we're
3753 # using a relative directory.
3754 cp "$am_depcomp" conftest.dir
3755 cd conftest.dir
3756 # We will build objects and dependencies in a subdirectory because
3757 # it helps to detect inapplicable dependency modes. For instance
3758 # both Tru64's cc and ICC support -MD to output dependencies as a
3759 # side effect of compilation, but ICC will put the dependencies in
3760 # the current directory while Tru64 will put them in the object
3761 # directory.
3762 mkdir sub
3763
3764 am_cv_CC_dependencies_compiler_type=none
3765 if test "$am_compiler_list" = ""; then
3766 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3767 fi
3768 am__universal=false
3769 case " $depcc " in #(
3770 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3771 esac
3772
3773 for depmode in $am_compiler_list; do
3774 # Setup a source with many dependencies, because some compilers
3775 # like to wrap large dependency lists on column 80 (with \), and
3776 # we should not choose a depcomp mode which is confused by this.
3777 #
3778 # We need to recreate these files for each test, as the compiler may
3779 # overwrite some of them when testing with obscure command lines.
3780 # This happens at least with the AIX C compiler.
3781 : > sub/conftest.c
3782 for i in 1 2 3 4 5 6; do
3783 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3784 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3785 # Solaris 8's {/usr,}/bin/sh.
3786 touch sub/conftst$i.h
3787 done
3788 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3789
3790 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3791 # mode. It turns out that the SunPro C++ compiler does not properly
3792 # handle `-M -o', and we need to detect this. Also, some Intel
3793 # versions had trouble with output in subdirs
3794 am__obj=sub/conftest.${OBJEXT-o}
3795 am__minus_obj="-o $am__obj"
3796 case $depmode in
3797 gcc)
3798 # This depmode causes a compiler race in universal mode.
3799 test "$am__universal" = false || continue
3800 ;;
3801 nosideeffect)
3802 # after this tag, mechanisms are not by side-effect, so they'll
3803 # only be used when explicitly requested
3804 if test "x$enable_dependency_tracking" = xyes; then
3805 continue
3806 else
3807 break
3808 fi
3809 ;;
3810 msvisualcpp | msvcmsys)
3811 # This compiler won't grok `-c -o', but also, the minuso test has
3812 # not run yet. These depmodes are late enough in the game, and
3813 # so weak that their functioning should not be impacted.
3814 am__obj=conftest.${OBJEXT-o}
3815 am__minus_obj=
3816 ;;
3817 none) break ;;
3818 esac
3819 if depmode=$depmode \
3820 source=sub/conftest.c object=$am__obj \
3821 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3822 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3823 >/dev/null 2>conftest.err &&
3824 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3825 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3826 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3827 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3828 # icc doesn't choke on unknown options, it will just issue warnings
3829 # or remarks (even with -Werror). So we grep stderr for any message
3830 # that says an option was ignored or not supported.
3831 # When given -MP, icc 7.0 and 7.1 complain thusly:
3832 # icc: Command line warning: ignoring option '-M'; no argument required
3833 # The diagnosis changed in icc 8.0:
3834 # icc: Command line remark: option '-MP' not supported
3835 if (grep 'ignoring option' conftest.err ||
3836 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3837 am_cv_CC_dependencies_compiler_type=$depmode
3838 break
3839 fi
3840 fi
3841 done
3842
3843 cd ..
3844 rm -rf conftest.dir
3845 else
3846 am_cv_CC_dependencies_compiler_type=none
3847 fi
3848
3849 fi
3850 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3851 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3852 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3853
3854 if
3855 test "x$enable_dependency_tracking" != xno \
3856 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3857 am__fastdepCC_TRUE=
3858 am__fastdepCC_FALSE='#'
3859 else
3860 am__fastdepCC_TRUE='#'
3861 am__fastdepCC_FALSE=
3862 fi
3863
3864
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3871 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3872 # On Suns, sometimes $CPP names a directory.
3873 if test -n "$CPP" && test -d "$CPP"; then
3874 CPP=
3875 fi
3876 if test -z "$CPP"; then
3877 if test "${ac_cv_prog_CPP+set}" = set; then
3878 $as_echo_n "(cached) " >&6
3879 else
3880 # Double quotes because CPP needs to be expanded
3881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3882 do
3883 ac_preproc_ok=false
3884 for ac_c_preproc_warn_flag in '' yes
3885 do
3886 # Use a header file that comes with gcc, so configuring glibc
3887 # with a fresh cross-compiler works.
3888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3889 # <limits.h> exists even on freestanding compilers.
3890 # On the NeXT, cc -E runs the code through the compiler's parser,
3891 # not just through cpp. "Syntax error" is here to catch this case.
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 #ifdef __STDC__
3899 # include <limits.h>
3900 #else
3901 # include <assert.h>
3902 #endif
3903 Syntax error
3904 _ACEOF
3905 if { (ac_try="$ac_cpp conftest.$ac_ext"
3906 case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909 esac
3910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3911 $as_echo "$ac_try_echo") >&5
3912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3913 ac_status=$?
3914 grep -v '^ *+' conftest.er1 >conftest.err
3915 rm -f conftest.er1
3916 cat conftest.err >&5
3917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } >/dev/null && {
3919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 }; then
3922 :
3923 else
3924 $as_echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3926
3927 # Broken: fails on valid input.
3928 continue
3929 fi
3930
3931 rm -f conftest.err conftest.$ac_ext
3932
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 #include <ac_nonexistent.h>
3942 _ACEOF
3943 if { (ac_try="$ac_cpp conftest.$ac_ext"
3944 case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3949 $as_echo "$ac_try_echo") >&5
3950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } >/dev/null && {
3957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3958 test ! -s conftest.err
3959 }; then
3960 # Broken: success on invalid input.
3961 continue
3962 else
3963 $as_echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966 # Passes both tests.
3967 ac_preproc_ok=:
3968 break
3969 fi
3970
3971 rm -f conftest.err conftest.$ac_ext
3972
3973 done
3974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3975 rm -f conftest.err conftest.$ac_ext
3976 if $ac_preproc_ok; then
3977 break
3978 fi
3979
3980 done
3981 ac_cv_prog_CPP=$CPP
3982
3983 fi
3984 CPP=$ac_cv_prog_CPP
3985 else
3986 ac_cv_prog_CPP=$CPP
3987 fi
3988 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3989 $as_echo "$CPP" >&6; }
3990 ac_preproc_ok=false
3991 for ac_c_preproc_warn_flag in '' yes
3992 do
3993 # Use a header file that comes with gcc, so configuring glibc
3994 # with a fresh cross-compiler works.
3995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3996 # <limits.h> exists even on freestanding compilers.
3997 # On the NeXT, cc -E runs the code through the compiler's parser,
3998 # not just through cpp. "Syntax error" is here to catch this case.
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h. */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 #ifdef __STDC__
4006 # include <limits.h>
4007 #else
4008 # include <assert.h>
4009 #endif
4010 Syntax error
4011 _ACEOF
4012 if { (ac_try="$ac_cpp conftest.$ac_ext"
4013 case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4018 $as_echo "$ac_try_echo") >&5
4019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } >/dev/null && {
4026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 }; then
4029 :
4030 else
4031 $as_echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 # Broken: fails on valid input.
4035 continue
4036 fi
4037
4038 rm -f conftest.err conftest.$ac_ext
4039
4040 # OK, works on sane cases. Now check whether nonexistent headers
4041 # can be detected and how.
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h. */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 #include <ac_nonexistent.h>
4049 _ACEOF
4050 if { (ac_try="$ac_cpp conftest.$ac_ext"
4051 case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4056 $as_echo "$ac_try_echo") >&5
4057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4058 ac_status=$?
4059 grep -v '^ *+' conftest.er1 >conftest.err
4060 rm -f conftest.er1
4061 cat conftest.err >&5
4062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } >/dev/null && {
4064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4065 test ! -s conftest.err
4066 }; then
4067 # Broken: success on invalid input.
4068 continue
4069 else
4070 $as_echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 # Passes both tests.
4074 ac_preproc_ok=:
4075 break
4076 fi
4077
4078 rm -f conftest.err conftest.$ac_ext
4079
4080 done
4081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4082 rm -f conftest.err conftest.$ac_ext
4083 if $ac_preproc_ok; then
4084 :
4085 else
4086 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4088 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4089 See \`config.log' for more details." >&5
4090 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4091 See \`config.log' for more details." >&2;}
4092 { (exit 1); exit 1; }; }; }
4093 fi
4094
4095 ac_ext=c
4096 ac_cpp='$CPP $CPPFLAGS'
4097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4100
4101 # Find a good install program. We prefer a C program (faster),
4102 # so one script is as good as another. But avoid the broken or
4103 # incompatible versions:
4104 # SysV /etc/install, /usr/sbin/install
4105 # SunOS /usr/etc/install
4106 # IRIX /sbin/install
4107 # AIX /bin/install
4108 # AmigaOS /C/install, which installs bootblocks on floppy discs
4109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4112 # OS/2's system install, which has a completely different semantic
4113 # ./install, which can be erroneously created by make from ./install.sh.
4114 # Reject install programs that cannot install multiple files.
4115 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4116 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4117 if test -z "$INSTALL"; then
4118 if test "${ac_cv_path_install+set}" = set; then
4119 $as_echo_n "(cached) " >&6
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4123 do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 # Account for people who put trailing slashes in PATH elements.
4127 case $as_dir/ in
4128 ./ | .// | /cC/* | \
4129 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4130 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4131 /usr/ucb/* ) ;;
4132 *)
4133 # OSF1 and SCO ODT 3.0 have their own names for install.
4134 # Don't use installbsd from OSF since it installs stuff as root
4135 # by default.
4136 for ac_prog in ginstall scoinst install; do
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4139 if test $ac_prog = install &&
4140 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4141 # AIX install. It has an incompatible calling convention.
4142 :
4143 elif test $ac_prog = install &&
4144 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4145 # program-specific install script used by HP pwplus--don't use.
4146 :
4147 else
4148 rm -rf conftest.one conftest.two conftest.dir
4149 echo one > conftest.one
4150 echo two > conftest.two
4151 mkdir conftest.dir
4152 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4153 test -s conftest.one && test -s conftest.two &&
4154 test -s conftest.dir/conftest.one &&
4155 test -s conftest.dir/conftest.two
4156 then
4157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4158 break 3
4159 fi
4160 fi
4161 fi
4162 done
4163 done
4164 ;;
4165 esac
4166
4167 done
4168 IFS=$as_save_IFS
4169
4170 rm -rf conftest.one conftest.two conftest.dir
4171
4172 fi
4173 if test "${ac_cv_path_install+set}" = set; then
4174 INSTALL=$ac_cv_path_install
4175 else
4176 # As a last resort, use the slow shell script. Don't cache a
4177 # value for INSTALL within a source directory, because that will
4178 # break other packages using the cache if that directory is
4179 # removed, or if the value is a relative name.
4180 INSTALL=$ac_install_sh
4181 fi
4182 fi
4183 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4184 $as_echo "$INSTALL" >&6; }
4185
4186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4187 # It thinks the first close brace ends the variable substitution.
4188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4189
4190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4191
4192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4193
4194 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4195 $as_echo_n "checking whether ln -s works... " >&6; }
4196 LN_S=$as_ln_s
4197 if test "$LN_S" = "ln -s"; then
4198 { $as_echo "$as_me:$LINENO: result: yes" >&5
4199 $as_echo "yes" >&6; }
4200 else
4201 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4202 $as_echo "no, using $LN_S" >&6; }
4203 fi
4204
4205
4206
4207 for ac_prog in perl5 perl
4208 do
4209 # Extract the first word of "$ac_prog", so it can be a program name with args.
4210 set dummy $ac_prog; ac_word=$2
4211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if test "${ac_cv_path_SYSCONFTOOL_PERL+set}" = set; then
4214 $as_echo_n "(cached) " >&6
4215 else
4216 case $SYSCONFTOOL_PERL in
4217 [\\/]* | ?:[\\/]*)
4218 ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path.
4219 ;;
4220 *)
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
4229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4231 fi
4232 done
4233 done
4234 IFS=$as_save_IFS
4235
4236 ;;
4237 esac
4238 fi
4239 SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL
4240 if test -n "$SYSCONFTOOL_PERL"; then
4241 { $as_echo "$as_me:$LINENO: result: $SYSCONFTOOL_PERL" >&5
4242 $as_echo "$SYSCONFTOOL_PERL" >&6; }
4243 else
4244 { $as_echo "$as_me:$LINENO: result: no" >&5
4245 $as_echo "no" >&6; }
4246 fi
4247
4248
4249 test -n "$SYSCONFTOOL_PERL" && break
4250 done
4251 test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl"
4252
4253
4254 if test "$SYSCONFTOOL_PERL" = "perl"
4255 then
4256 { { $as_echo "$as_me:$LINENO: error: perl not found - please install perl" >&5
4257 $as_echo "$as_me: error: perl not found - please install perl" >&2;}
4258 { (exit 1); exit 1; }; }
4259 fi
4260
4261 { $as_echo "$as_me:$LINENO: checking for sysconftool..." >&5
4262 $as_echo_n "checking for sysconftool...... " >&6; }
4263 SYSCONFTOOL=""
4264 for sysconf_dir in $ac_aux_dir . .. ../..
4265 do
4266 if test -f $srcdir/$sysconf_dir/sysconftool
4267 then
4268 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool
4269 break
4270 fi
4271 done
4272
4273 if test "$SYSCONFTOOL" = ""
4274 then
4275 { { $as_echo "$as_me:$LINENO: error: sysconftool missing - not in the package" >&5
4276 $as_echo "$as_me: error: sysconftool missing - not in the package" >&2;}
4277 { (exit 1); exit 1; }; }
4278 fi
4279
4280 { $as_echo "$as_me:$LINENO: result: $SYSCONFTOOL" >&5
4281 $as_echo "$SYSCONFTOOL" >&6; }
4282 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL"
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294 case `pwd` in
4295 *\ * | *\ *)
4296 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4297 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4298 esac
4299
4300
4301
4302 macro_version='2.2.6'
4303 macro_revision='1.3012'
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317 ltmain="$ac_aux_dir/ltmain.sh"
4318
4319 # Make sure we can run config.sub.
4320 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4321 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4322 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4323 { (exit 1); exit 1; }; }
4324
4325 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4326 $as_echo_n "checking build system type... " >&6; }
4327 if test "${ac_cv_build+set}" = set; then
4328 $as_echo_n "(cached) " >&6
4329 else
4330 ac_build_alias=$build_alias
4331 test "x$ac_build_alias" = x &&
4332 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4333 test "x$ac_build_alias" = x &&
4334 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4335 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4336 { (exit 1); exit 1; }; }
4337 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4338 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4339 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4340 { (exit 1); exit 1; }; }
4341
4342 fi
4343 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4344 $as_echo "$ac_cv_build" >&6; }
4345 case $ac_cv_build in
4346 *-*-*) ;;
4347 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4348 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4349 { (exit 1); exit 1; }; };;
4350 esac
4351 build=$ac_cv_build
4352 ac_save_IFS=$IFS; IFS='-'
4353 set x $ac_cv_build
4354 shift
4355 build_cpu=$1
4356 build_vendor=$2
4357 shift; shift
4358 # Remember, the first character of IFS is used to create $*,
4359 # except with old shells:
4360 build_os=$*
4361 IFS=$ac_save_IFS
4362 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4363
4364
4365 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4366 $as_echo_n "checking host system type... " >&6; }
4367 if test "${ac_cv_host+set}" = set; then
4368 $as_echo_n "(cached) " >&6
4369 else
4370 if test "x$host_alias" = x; then
4371 ac_cv_host=$ac_cv_build
4372 else
4373 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4374 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4375 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4376 { (exit 1); exit 1; }; }
4377 fi
4378
4379 fi
4380 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4381 $as_echo "$ac_cv_host" >&6; }
4382 case $ac_cv_host in
4383 *-*-*) ;;
4384 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4385 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4386 { (exit 1); exit 1; }; };;
4387 esac
4388 host=$ac_cv_host
4389 ac_save_IFS=$IFS; IFS='-'
4390 set x $ac_cv_host
4391 shift
4392 host_cpu=$1
4393 host_vendor=$2
4394 shift; shift
4395 # Remember, the first character of IFS is used to create $*,
4396 # except with old shells:
4397 host_os=$*
4398 IFS=$ac_save_IFS
4399 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4400
4401
4402 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4403 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4404 if test "${ac_cv_path_SED+set}" = set; then
4405 $as_echo_n "(cached) " >&6
4406 else
4407 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4408 for ac_i in 1 2 3 4 5 6 7; do
4409 ac_script="$ac_script$as_nl$ac_script"
4410 done
4411 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4412 $as_unset ac_script || ac_script=
4413 if test -z "$SED"; then
4414 ac_path_SED_found=false
4415 # Loop through the user's path and test for each of PROGNAME-LIST
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_prog in sed gsed; do
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4424 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4425 # Check for GNU ac_path_SED and select it if it is found.
4426 # Check for GNU $ac_path_SED
4427 case `"$ac_path_SED" --version 2>&1` in
4428 *GNU*)
4429 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4430 *)
4431 ac_count=0
4432 $as_echo_n 0123456789 >"conftest.in"
4433 while :
4434 do
4435 cat "conftest.in" "conftest.in" >"conftest.tmp"
4436 mv "conftest.tmp" "conftest.in"
4437 cp "conftest.in" "conftest.nl"
4438 $as_echo '' >> "conftest.nl"
4439 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4441 ac_count=`expr $ac_count + 1`
4442 if test $ac_count -gt ${ac_path_SED_max-0}; then
4443 # Best one so far, save it but keep looking for a better one
4444 ac_cv_path_SED="$ac_path_SED"
4445 ac_path_SED_max=$ac_count
4446 fi
4447 # 10*(2^10) chars as input seems more than enough
4448 test $ac_count -gt 10 && break
4449 done
4450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4451 esac
4452
4453 $ac_path_SED_found && break 3
4454 done
4455 done
4456 done
4457 IFS=$as_save_IFS
4458 if test -z "$ac_cv_path_SED"; then
4459 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4460 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4461 { (exit 1); exit 1; }; }
4462 fi
4463 else
4464 ac_cv_path_SED=$SED
4465 fi
4466
4467 fi
4468 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4469 $as_echo "$ac_cv_path_SED" >&6; }
4470 SED="$ac_cv_path_SED"
4471 rm -f conftest.sed
4472
4473 test -z "$SED" && SED=sed
4474 Xsed="$SED -e 1s/^X//"
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4487 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4488 if test "${ac_cv_path_GREP+set}" = set; then
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test -z "$GREP"; then
4492 ac_path_GREP_found=false
4493 # Loop through the user's path and test for each of PROGNAME-LIST
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4496 do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_prog in grep ggrep; do
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4502 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4503 # Check for GNU ac_path_GREP and select it if it is found.
4504 # Check for GNU $ac_path_GREP
4505 case `"$ac_path_GREP" --version 2>&1` in
4506 *GNU*)
4507 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4508 *)
4509 ac_count=0
4510 $as_echo_n 0123456789 >"conftest.in"
4511 while :
4512 do
4513 cat "conftest.in" "conftest.in" >"conftest.tmp"
4514 mv "conftest.tmp" "conftest.in"
4515 cp "conftest.in" "conftest.nl"
4516 $as_echo 'GREP' >> "conftest.nl"
4517 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4519 ac_count=`expr $ac_count + 1`
4520 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4521 # Best one so far, save it but keep looking for a better one
4522 ac_cv_path_GREP="$ac_path_GREP"
4523 ac_path_GREP_max=$ac_count
4524 fi
4525 # 10*(2^10) chars as input seems more than enough
4526 test $ac_count -gt 10 && break
4527 done
4528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4529 esac
4530
4531 $ac_path_GREP_found && break 3
4532 done
4533 done
4534 done
4535 IFS=$as_save_IFS
4536 if test -z "$ac_cv_path_GREP"; then
4537 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4538 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4539 { (exit 1); exit 1; }; }
4540 fi
4541 else
4542 ac_cv_path_GREP=$GREP
4543 fi
4544
4545 fi
4546 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4547 $as_echo "$ac_cv_path_GREP" >&6; }
4548 GREP="$ac_cv_path_GREP"
4549
4550
4551 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4552 $as_echo_n "checking for egrep... " >&6; }
4553 if test "${ac_cv_path_EGREP+set}" = set; then
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4557 then ac_cv_path_EGREP="$GREP -E"
4558 else
4559 if test -z "$EGREP"; then
4560 ac_path_EGREP_found=false
4561 # Loop through the user's path and test for each of PROGNAME-LIST
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564 do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_prog in egrep; do
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4570 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4571 # Check for GNU ac_path_EGREP and select it if it is found.
4572 # Check for GNU $ac_path_EGREP
4573 case `"$ac_path_EGREP" --version 2>&1` in
4574 *GNU*)
4575 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4576 *)
4577 ac_count=0
4578 $as_echo_n 0123456789 >"conftest.in"
4579 while :
4580 do
4581 cat "conftest.in" "conftest.in" >"conftest.tmp"
4582 mv "conftest.tmp" "conftest.in"
4583 cp "conftest.in" "conftest.nl"
4584 $as_echo 'EGREP' >> "conftest.nl"
4585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587 ac_count=`expr $ac_count + 1`
4588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4589 # Best one so far, save it but keep looking for a better one
4590 ac_cv_path_EGREP="$ac_path_EGREP"
4591 ac_path_EGREP_max=$ac_count
4592 fi
4593 # 10*(2^10) chars as input seems more than enough
4594 test $ac_count -gt 10 && break
4595 done
4596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597 esac
4598
4599 $ac_path_EGREP_found && break 3
4600 done
4601 done
4602 done
4603 IFS=$as_save_IFS
4604 if test -z "$ac_cv_path_EGREP"; then
4605 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4606 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4607 { (exit 1); exit 1; }; }
4608 fi
4609 else
4610 ac_cv_path_EGREP=$EGREP
4611 fi
4612
4613 fi
4614 fi
4615 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4616 $as_echo "$ac_cv_path_EGREP" >&6; }
4617 EGREP="$ac_cv_path_EGREP"
4618
4619
4620 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4621 $as_echo_n "checking for fgrep... " >&6; }
4622 if test "${ac_cv_path_FGREP+set}" = set; then
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4626 then ac_cv_path_FGREP="$GREP -F"
4627 else
4628 if test -z "$FGREP"; then
4629 ac_path_FGREP_found=false
4630 # Loop through the user's path and test for each of PROGNAME-LIST
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633 do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_prog in fgrep; do
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4639 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4640 # Check for GNU ac_path_FGREP and select it if it is found.
4641 # Check for GNU $ac_path_FGREP
4642 case `"$ac_path_FGREP" --version 2>&1` in
4643 *GNU*)
4644 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4645 *)
4646 ac_count=0
4647 $as_echo_n 0123456789 >"conftest.in"
4648 while :
4649 do
4650 cat "conftest.in" "conftest.in" >"conftest.tmp"
4651 mv "conftest.tmp" "conftest.in"
4652 cp "conftest.in" "conftest.nl"
4653 $as_echo 'FGREP' >> "conftest.nl"
4654 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4656 ac_count=`expr $ac_count + 1`
4657 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4658 # Best one so far, save it but keep looking for a better one
4659 ac_cv_path_FGREP="$ac_path_FGREP"
4660 ac_path_FGREP_max=$ac_count
4661 fi
4662 # 10*(2^10) chars as input seems more than enough
4663 test $ac_count -gt 10 && break
4664 done
4665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666 esac
4667
4668 $ac_path_FGREP_found && break 3
4669 done
4670 done
4671 done
4672 IFS=$as_save_IFS
4673 if test -z "$ac_cv_path_FGREP"; then
4674 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4675 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4676 { (exit 1); exit 1; }; }
4677 fi
4678 else
4679 ac_cv_path_FGREP=$FGREP
4680 fi
4681
4682 fi
4683 fi
4684 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4685 $as_echo "$ac_cv_path_FGREP" >&6; }
4686 FGREP="$ac_cv_path_FGREP"
4687
4688
4689 test -z "$GREP" && GREP=grep
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709 # Check whether --with-gnu-ld was given.
4710 if test "${with_gnu_ld+set}" = set; then
4711 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4712 else
4713 with_gnu_ld=no
4714 fi
4715
4716 ac_prog=ld
4717 if test "$GCC" = yes; then
4718 # Check if gcc -print-prog-name=ld gives a path.
4719 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4720 $as_echo_n "checking for ld used by $CC... " >&6; }
4721 case $host in
4722 *-*-mingw*)
4723 # gcc leaves a trailing carriage return which upsets mingw
4724 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4725 *)
4726 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4727 esac
4728 case $ac_prog in
4729 # Accept absolute paths.
4730 [\\/]* | ?:[\\/]*)
4731 re_direlt='/[^/][^/]*/\.\./'
4732 # Canonicalize the pathname of ld
4733 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4734 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4735 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4736 done
4737 test -z "$LD" && LD="$ac_prog"
4738 ;;
4739 "")
4740 # If it fails, then pretend we aren't using GCC.
4741 ac_prog=ld
4742 ;;
4743 *)
4744 # If it is relative, then search for the first ld in PATH.
4745 with_gnu_ld=unknown
4746 ;;
4747 esac
4748 elif test "$with_gnu_ld" = yes; then
4749 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4750 $as_echo_n "checking for GNU ld... " >&6; }
4751 else
4752 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4753 $as_echo_n "checking for non-GNU ld... " >&6; }
4754 fi
4755 if test "${lt_cv_path_LD+set}" = set; then
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -z "$LD"; then
4759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4760 for ac_dir in $PATH; do
4761 IFS="$lt_save_ifs"
4762 test -z "$ac_dir" && ac_dir=.
4763 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4764 lt_cv_path_LD="$ac_dir/$ac_prog"
4765 # Check to see if the program is GNU ld. I'd rather use --version,
4766 # but apparently some variants of GNU ld only accept -v.
4767 # Break only if it was the GNU/non-GNU ld that we prefer.
4768 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4769 *GNU* | *'with BFD'*)
4770 test "$with_gnu_ld" != no && break
4771 ;;
4772 *)
4773 test "$with_gnu_ld" != yes && break
4774 ;;
4775 esac
4776 fi
4777 done
4778 IFS="$lt_save_ifs"
4779 else
4780 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4781 fi
4782 fi
4783
4784 LD="$lt_cv_path_LD"
4785 if test -n "$LD"; then
4786 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4787 $as_echo "$LD" >&6; }
4788 else
4789 { $as_echo "$as_me:$LINENO: result: no" >&5
4790 $as_echo "no" >&6; }
4791 fi
4792 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4793 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4794 { (exit 1); exit 1; }; }
4795 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4796 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4797 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4798 $as_echo_n "(cached) " >&6
4799 else
4800 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4801 case `$LD -v 2>&1 </dev/null` in
4802 *GNU* | *'with BFD'*)
4803 lt_cv_prog_gnu_ld=yes
4804 ;;
4805 *)
4806 lt_cv_prog_gnu_ld=no
4807 ;;
4808 esac
4809 fi
4810 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4811 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4812 with_gnu_ld=$lt_cv_prog_gnu_ld
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4823 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4824 if test "${lt_cv_path_NM+set}" = set; then
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -n "$NM"; then
4828 # Let the user override the test.
4829 lt_cv_path_NM="$NM"
4830 else
4831 lt_nm_to_check="${ac_tool_prefix}nm"
4832 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4833 lt_nm_to_check="$lt_nm_to_check nm"
4834 fi
4835 for lt_tmp_nm in $lt_nm_to_check; do
4836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4837 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4838 IFS="$lt_save_ifs"
4839 test -z "$ac_dir" && ac_dir=.
4840 tmp_nm="$ac_dir/$lt_tmp_nm"
4841 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4842 # Check to see if the nm accepts a BSD-compat flag.
4843 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4844 # nm: unknown option "B" ignored
4845 # Tru64's nm complains that /dev/null is an invalid object file
4846 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4847 */dev/null* | *'Invalid file or object type'*)
4848 lt_cv_path_NM="$tmp_nm -B"
4849 break
4850 ;;
4851 *)
4852 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4853 */dev/null*)
4854 lt_cv_path_NM="$tmp_nm -p"
4855 break
4856 ;;
4857 *)
4858 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4859 continue # so that we can try to find one that supports BSD flags
4860 ;;
4861 esac
4862 ;;
4863 esac
4864 fi
4865 done
4866 IFS="$lt_save_ifs"
4867 done
4868 : ${lt_cv_path_NM=no}
4869 fi
4870 fi
4871 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4872 $as_echo "$lt_cv_path_NM" >&6; }
4873 if test "$lt_cv_path_NM" != "no"; then
4874 NM="$lt_cv_path_NM"
4875 else
4876 # Didn't find any BSD compatible name lister, look for dumpbin.
4877 if test -n "$ac_tool_prefix"; then
4878 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4879 do
4880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4882 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4885 $as_echo_n "(cached) " >&6
4886 else
4887 if test -n "$DUMPBIN"; then
4888 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4889 else
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4892 do
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 break 2
4900 fi
4901 done
4902 done
4903 IFS=$as_save_IFS
4904
4905 fi
4906 fi
4907 DUMPBIN=$ac_cv_prog_DUMPBIN
4908 if test -n "$DUMPBIN"; then
4909 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4910 $as_echo "$DUMPBIN" >&6; }
4911 else
4912 { $as_echo "$as_me:$LINENO: result: no" >&5
4913 $as_echo "no" >&6; }
4914 fi
4915
4916
4917 test -n "$DUMPBIN" && break
4918 done
4919 fi
4920 if test -z "$DUMPBIN"; then
4921 ac_ct_DUMPBIN=$DUMPBIN
4922 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4923 do
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$ac_ct_DUMPBIN"; then
4932 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945 done
4946 done
4947 IFS=$as_save_IFS
4948
4949 fi
4950 fi
4951 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4952 if test -n "$ac_ct_DUMPBIN"; then
4953 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4954 $as_echo "$ac_ct_DUMPBIN" >&6; }
4955 else
4956 { $as_echo "$as_me:$LINENO: result: no" >&5
4957 $as_echo "no" >&6; }
4958 fi
4959
4960
4961 test -n "$ac_ct_DUMPBIN" && break
4962 done
4963
4964 if test "x$ac_ct_DUMPBIN" = x; then
4965 DUMPBIN=":"
4966 else
4967 case $cross_compiling:$ac_tool_warned in
4968 yes:)
4969 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971 ac_tool_warned=yes ;;
4972 esac
4973 DUMPBIN=$ac_ct_DUMPBIN
4974 fi
4975 fi
4976
4977
4978 if test "$DUMPBIN" != ":"; then
4979 NM="$DUMPBIN"
4980 fi
4981 fi
4982 test -z "$NM" && NM=nm
4983
4984
4985
4986
4987
4988
4989 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4990 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4991 if test "${lt_cv_nm_interface+set}" = set; then
4992 $as_echo_n "(cached) " >&6
4993 else
4994 lt_cv_nm_interface="BSD nm"
4995 echo "int some_variable = 0;" > conftest.$ac_ext
4996 (eval echo "\"\$as_me:4996: $ac_compile\"" >&5)
4997 (eval "$ac_compile" 2>conftest.err)
4998 cat conftest.err >&5
4999 (eval echo "\"\$as_me:4999: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5000 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5001 cat conftest.err >&5
5002 (eval echo "\"\$as_me:5002: output\"" >&5)
5003 cat conftest.out >&5
5004 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5005 lt_cv_nm_interface="MS dumpbin"
5006 fi
5007 rm -f conftest*
5008 fi
5009 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5010 $as_echo "$lt_cv_nm_interface" >&6; }
5011
5012 # find the maximum length of command line arguments
5013 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5014 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5015 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5016 $as_echo_n "(cached) " >&6
5017 else
5018 i=0
5019 teststring="ABCD"
5020
5021 case $build_os in
5022 msdosdjgpp*)
5023 # On DJGPP, this test can blow up pretty badly due to problems in libc
5024 # (any single argument exceeding 2000 bytes causes a buffer overrun
5025 # during glob expansion). Even if it were fixed, the result of this
5026 # check would be larger than it should be.
5027 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5028 ;;
5029
5030 gnu*)
5031 # Under GNU Hurd, this test is not required because there is
5032 # no limit to the length of command line arguments.
5033 # Libtool will interpret -1 as no limit whatsoever
5034 lt_cv_sys_max_cmd_len=-1;
5035 ;;
5036
5037 cygwin* | mingw* | cegcc*)
5038 # On Win9x/ME, this test blows up -- it succeeds, but takes
5039 # about 5 minutes as the teststring grows exponentially.
5040 # Worse, since 9x/ME are not pre-emptively multitasking,
5041 # you end up with a "frozen" computer, even though with patience
5042 # the test eventually succeeds (with a max line length of 256k).
5043 # Instead, let's just punt: use the minimum linelength reported by
5044 # all of the supported platforms: 8192 (on NT/2K/XP).
5045 lt_cv_sys_max_cmd_len=8192;
5046 ;;
5047
5048 amigaos*)
5049 # On AmigaOS with pdksh, this test takes hours, literally.
5050 # So we just punt and use a minimum line length of 8192.
5051 lt_cv_sys_max_cmd_len=8192;
5052 ;;
5053
5054 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5055 # This has been around since 386BSD, at least. Likely further.
5056 if test -x /sbin/sysctl; then
5057 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5058 elif test -x /usr/sbin/sysctl; then
5059 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5060 else
5061 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5062 fi
5063 # And add a safety zone
5064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5066 ;;
5067
5068 interix*)
5069 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5070 lt_cv_sys_max_cmd_len=196608
5071 ;;
5072
5073 osf*)
5074 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5075 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5076 # nice to cause kernel panics so lets avoid the loop below.
5077 # First set a reasonable default.
5078 lt_cv_sys_max_cmd_len=16384
5079 #
5080 if test -x /sbin/sysconfig; then
5081 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5082 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5083 esac
5084 fi
5085 ;;
5086 sco3.2v5*)
5087 lt_cv_sys_max_cmd_len=102400
5088 ;;
5089 sysv5* | sco5v6* | sysv4.2uw2*)
5090 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5091 if test -n "$kargmax"; then
5092 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5093 else
5094 lt_cv_sys_max_cmd_len=32768
5095 fi
5096 ;;
5097 *)
5098 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5099 if test -n "$lt_cv_sys_max_cmd_len"; then
5100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5102 else
5103 # Make teststring a little bigger before we do anything with it.
5104 # a 1K string should be a reasonable start.
5105 for i in 1 2 3 4 5 6 7 8 ; do
5106 teststring=$teststring$teststring
5107 done
5108 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5109 # If test is not a shell built-in, we'll probably end up computing a
5110 # maximum length that is only half of the actual maximum length, but
5111 # we can't tell.
5112 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5113 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5114 test $i != 17 # 1/2 MB should be enough
5115 do
5116 i=`expr $i + 1`
5117 teststring=$teststring$teststring
5118 done
5119 # Only check the string length outside the loop.
5120 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5121 teststring=
5122 # Add a significant safety factor because C++ compilers can tack on
5123 # massive amounts of additional arguments before passing them to the
5124 # linker. It appears as though 1/2 is a usable value.
5125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5126 fi
5127 ;;
5128 esac
5129
5130 fi
5131
5132 if test -n $lt_cv_sys_max_cmd_len ; then
5133 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5134 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5135 else
5136 { $as_echo "$as_me:$LINENO: result: none" >&5
5137 $as_echo "none" >&6; }
5138 fi
5139 max_cmd_len=$lt_cv_sys_max_cmd_len
5140
5141
5142
5143
5144
5145
5146 : ${CP="cp -f"}
5147 : ${MV="mv -f"}
5148 : ${RM="rm -f"}
5149
5150 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5151 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5152 # Try some XSI features
5153 xsi_shell=no
5154 ( _lt_dummy="a/b/c"
5155 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5156 = c,a/b,, \
5157 && eval 'test $(( 1 + 1 )) -eq 2 \
5158 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5159 && xsi_shell=yes
5160 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5161 $as_echo "$xsi_shell" >&6; }
5162
5163
5164 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5165 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5166 lt_shell_append=no
5167 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5168 >/dev/null 2>&1 \
5169 && lt_shell_append=yes
5170 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5171 $as_echo "$lt_shell_append" >&6; }
5172
5173
5174 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5175 lt_unset=unset
5176 else
5177 lt_unset=false
5178 fi
5179
5180
5181
5182
5183
5184 # test EBCDIC or ASCII
5185 case `echo X|tr X '\101'` in
5186 A) # ASCII based system
5187 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5188 lt_SP2NL='tr \040 \012'
5189 lt_NL2SP='tr \015\012 \040\040'
5190 ;;
5191 *) # EBCDIC based system
5192 lt_SP2NL='tr \100 \n'
5193 lt_NL2SP='tr \r\n \100\100'
5194 ;;
5195 esac
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5206 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5207 if test "${lt_cv_ld_reload_flag+set}" = set; then
5208 $as_echo_n "(cached) " >&6
5209 else
5210 lt_cv_ld_reload_flag='-r'
5211 fi
5212 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5213 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5214 reload_flag=$lt_cv_ld_reload_flag
5215 case $reload_flag in
5216 "" | " "*) ;;
5217 *) reload_flag=" $reload_flag" ;;
5218 esac
5219 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5220 case $host_os in
5221 darwin*)
5222 if test "$GCC" = yes; then
5223 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5224 else
5225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5226 fi
5227 ;;
5228 esac
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238 if test -n "$ac_tool_prefix"; then
5239 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5240 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if test -n "$OBJDUMP"; then
5247 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260 done
5261 done
5262 IFS=$as_save_IFS
5263
5264 fi
5265 fi
5266 OBJDUMP=$ac_cv_prog_OBJDUMP
5267 if test -n "$OBJDUMP"; then
5268 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5269 $as_echo "$OBJDUMP" >&6; }
5270 else
5271 { $as_echo "$as_me:$LINENO: result: no" >&5
5272 $as_echo "no" >&6; }
5273 fi
5274
5275
5276 fi
5277 if test -z "$ac_cv_prog_OBJDUMP"; then
5278 ac_ct_OBJDUMP=$OBJDUMP
5279 # Extract the first word of "objdump", so it can be a program name with args.
5280 set dummy objdump; ac_word=$2
5281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5284 $as_echo_n "(cached) " >&6
5285 else
5286 if test -n "$ac_ct_OBJDUMP"; then
5287 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5291 do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300 done
5301 done
5302 IFS=$as_save_IFS
5303
5304 fi
5305 fi
5306 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5307 if test -n "$ac_ct_OBJDUMP"; then
5308 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5309 $as_echo "$ac_ct_OBJDUMP" >&6; }
5310 else
5311 { $as_echo "$as_me:$LINENO: result: no" >&5
5312 $as_echo "no" >&6; }
5313 fi
5314
5315 if test "x$ac_ct_OBJDUMP" = x; then
5316 OBJDUMP="false"
5317 else
5318 case $cross_compiling:$ac_tool_warned in
5319 yes:)
5320 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5322 ac_tool_warned=yes ;;
5323 esac
5324 OBJDUMP=$ac_ct_OBJDUMP
5325 fi
5326 else
5327 OBJDUMP="$ac_cv_prog_OBJDUMP"
5328 fi
5329
5330 test -z "$OBJDUMP" && OBJDUMP=objdump
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5341 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5342 if test "${lt_cv_deplibs_check_method+set}" = set; then
5343 $as_echo_n "(cached) " >&6
5344 else
5345 lt_cv_file_magic_cmd='$MAGIC_CMD'
5346 lt_cv_file_magic_test_file=
5347 lt_cv_deplibs_check_method='unknown'
5348 # Need to set the preceding variable on all platforms that support
5349 # interlibrary dependencies.
5350 # 'none' -- dependencies not supported.
5351 # `unknown' -- same as none, but documents that we really don't know.
5352 # 'pass_all' -- all dependencies passed with no checks.
5353 # 'test_compile' -- check by making test program.
5354 # 'file_magic [[regex]]' -- check by looking for files in library path
5355 # which responds to the $file_magic_cmd with a given extended regex.
5356 # If you have `file' or equivalent on your system and you're not sure
5357 # whether `pass_all' will *always* work, you probably want this one.
5358
5359 case $host_os in
5360 aix[4-9]*)
5361 lt_cv_deplibs_check_method=pass_all
5362 ;;
5363
5364 beos*)
5365 lt_cv_deplibs_check_method=pass_all
5366 ;;
5367
5368 bsdi[45]*)
5369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5370 lt_cv_file_magic_cmd='/usr/bin/file -L'
5371 lt_cv_file_magic_test_file=/shlib/libc.so
5372 ;;
5373
5374 cygwin*)
5375 # func_win32_libid is a shell function defined in ltmain.sh
5376 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5377 lt_cv_file_magic_cmd='func_win32_libid'
5378 ;;
5379
5380 mingw* | pw32*)
5381 # Base MSYS/MinGW do not provide the 'file' command needed by
5382 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5383 # unless we find 'file', for example because we are cross-compiling.
5384 if ( file / ) >/dev/null 2>&1; then
5385 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5386 lt_cv_file_magic_cmd='func_win32_libid'
5387 else
5388 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5389 lt_cv_file_magic_cmd='$OBJDUMP -f'
5390 fi
5391 ;;
5392
5393 cegcc)
5394 # use the weaker test based on 'objdump'. See mingw*.
5395 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5396 lt_cv_file_magic_cmd='$OBJDUMP -f'
5397 ;;
5398
5399 darwin* | rhapsody*)
5400 lt_cv_deplibs_check_method=pass_all
5401 ;;
5402
5403 freebsd* | dragonfly*)
5404 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5405 case $host_cpu in
5406 i*86 )
5407 # Not sure whether the presence of OpenBSD here was a mistake.
5408 # Let's accept both of them until this is cleared up.
5409 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5410 lt_cv_file_magic_cmd=/usr/bin/file
5411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5412 ;;
5413 esac
5414 else
5415 lt_cv_deplibs_check_method=pass_all
5416 fi
5417 ;;
5418
5419 gnu*)
5420 lt_cv_deplibs_check_method=pass_all
5421 ;;
5422
5423 hpux10.20* | hpux11*)
5424 lt_cv_file_magic_cmd=/usr/bin/file
5425 case $host_cpu in
5426 ia64*)
5427 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5428 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5429 ;;
5430 hppa*64*)
5431 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]'
5432 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5433 ;;
5434 *)
5435 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5436 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5437 ;;
5438 esac
5439 ;;
5440
5441 interix[3-9]*)
5442 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5444 ;;
5445
5446 irix5* | irix6* | nonstopux*)
5447 case $LD in
5448 *-32|*"-32 ") libmagic=32-bit;;
5449 *-n32|*"-n32 ") libmagic=N32;;
5450 *-64|*"-64 ") libmagic=64-bit;;
5451 *) libmagic=never-match;;
5452 esac
5453 lt_cv_deplibs_check_method=pass_all
5454 ;;
5455
5456 # This must be Linux ELF.
5457 linux* | k*bsd*-gnu)
5458 lt_cv_deplibs_check_method=pass_all
5459 ;;
5460
5461 netbsd*)
5462 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5464 else
5465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5466 fi
5467 ;;
5468
5469 newos6*)
5470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5471 lt_cv_file_magic_cmd=/usr/bin/file
5472 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5473 ;;
5474
5475 *nto* | *qnx*)
5476 lt_cv_deplibs_check_method=pass_all
5477 ;;
5478
5479 openbsd*)
5480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5482 else
5483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5484 fi
5485 ;;
5486
5487 osf3* | osf4* | osf5*)
5488 lt_cv_deplibs_check_method=pass_all
5489 ;;
5490
5491 rdos*)
5492 lt_cv_deplibs_check_method=pass_all
5493 ;;
5494
5495 solaris*)
5496 lt_cv_deplibs_check_method=pass_all
5497 ;;
5498
5499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5500 lt_cv_deplibs_check_method=pass_all
5501 ;;
5502
5503 sysv4 | sysv4.3*)
5504 case $host_vendor in
5505 motorola)
5506 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]'
5507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5508 ;;
5509 ncr)
5510 lt_cv_deplibs_check_method=pass_all
5511 ;;
5512 sequent)
5513 lt_cv_file_magic_cmd='/bin/file'
5514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5515 ;;
5516 sni)
5517 lt_cv_file_magic_cmd='/bin/file'
5518 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5519 lt_cv_file_magic_test_file=/lib/libc.so
5520 ;;
5521 siemens)
5522 lt_cv_deplibs_check_method=pass_all
5523 ;;
5524 pc)
5525 lt_cv_deplibs_check_method=pass_all
5526 ;;
5527 esac
5528 ;;
5529
5530 tpf*)
5531 lt_cv_deplibs_check_method=pass_all
5532 ;;
5533 esac
5534
5535 fi
5536 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5537 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5538 file_magic_cmd=$lt_cv_file_magic_cmd
5539 deplibs_check_method=$lt_cv_deplibs_check_method
5540 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553 if test -n "$ac_tool_prefix"; then
5554 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5555 set dummy ${ac_tool_prefix}ar; ac_word=$2
5556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if test "${ac_cv_prog_AR+set}" = set; then
5559 $as_echo_n "(cached) " >&6
5560 else
5561 if test -n "$AR"; then
5562 ac_cv_prog_AR="$AR" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5566 do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_prog_AR="${ac_tool_prefix}ar"
5572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5574 fi
5575 done
5576 done
5577 IFS=$as_save_IFS
5578
5579 fi
5580 fi
5581 AR=$ac_cv_prog_AR
5582 if test -n "$AR"; then
5583 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5584 $as_echo "$AR" >&6; }
5585 else
5586 { $as_echo "$as_me:$LINENO: result: no" >&5
5587 $as_echo "no" >&6; }
5588 fi
5589
5590
5591 fi
5592 if test -z "$ac_cv_prog_AR"; then
5593 ac_ct_AR=$AR
5594 # Extract the first word of "ar", so it can be a program name with args.
5595 set dummy ar; ac_word=$2
5596 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5597 $as_echo_n "checking for $ac_word... " >&6; }
5598 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5599 $as_echo_n "(cached) " >&6
5600 else
5601 if test -n "$ac_ct_AR"; then
5602 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5611 ac_cv_prog_ac_ct_AR="ar"
5612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5614 fi
5615 done
5616 done
5617 IFS=$as_save_IFS
5618
5619 fi
5620 fi
5621 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5622 if test -n "$ac_ct_AR"; then
5623 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5624 $as_echo "$ac_ct_AR" >&6; }
5625 else
5626 { $as_echo "$as_me:$LINENO: result: no" >&5
5627 $as_echo "no" >&6; }
5628 fi
5629
5630 if test "x$ac_ct_AR" = x; then
5631 AR="false"
5632 else
5633 case $cross_compiling:$ac_tool_warned in
5634 yes:)
5635 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5637 ac_tool_warned=yes ;;
5638 esac
5639 AR=$ac_ct_AR
5640 fi
5641 else
5642 AR="$ac_cv_prog_AR"
5643 fi
5644
5645 test -z "$AR" && AR=ar
5646 test -z "$AR_FLAGS" && AR_FLAGS=cru
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658 if test -n "$ac_tool_prefix"; then
5659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5660 set dummy ${ac_tool_prefix}strip; ac_word=$2
5661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if test "${ac_cv_prog_STRIP+set}" = set; then
5664 $as_echo_n "(cached) " >&6
5665 else
5666 if test -n "$STRIP"; then
5667 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680 done
5681 done
5682 IFS=$as_save_IFS
5683
5684 fi
5685 fi
5686 STRIP=$ac_cv_prog_STRIP
5687 if test -n "$STRIP"; then
5688 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5689 $as_echo "$STRIP" >&6; }
5690 else
5691 { $as_echo "$as_me:$LINENO: result: no" >&5
5692 $as_echo "no" >&6; }
5693 fi
5694
5695
5696 fi
5697 if test -z "$ac_cv_prog_STRIP"; then
5698 ac_ct_STRIP=$STRIP
5699 # Extract the first word of "strip", so it can be a program name with args.
5700 set dummy strip; ac_word=$2
5701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5704 $as_echo_n "(cached) " >&6
5705 else
5706 if test -n "$ac_ct_STRIP"; then
5707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5716 ac_cv_prog_ac_ct_STRIP="strip"
5717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5719 fi
5720 done
5721 done
5722 IFS=$as_save_IFS
5723
5724 fi
5725 fi
5726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5727 if test -n "$ac_ct_STRIP"; then
5728 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5729 $as_echo "$ac_ct_STRIP" >&6; }
5730 else
5731 { $as_echo "$as_me:$LINENO: result: no" >&5
5732 $as_echo "no" >&6; }
5733 fi
5734
5735 if test "x$ac_ct_STRIP" = x; then
5736 STRIP=":"
5737 else
5738 case $cross_compiling:$ac_tool_warned in
5739 yes:)
5740 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742 ac_tool_warned=yes ;;
5743 esac
5744 STRIP=$ac_ct_STRIP
5745 fi
5746 else
5747 STRIP="$ac_cv_prog_STRIP"
5748 fi
5749
5750 test -z "$STRIP" && STRIP=:
5751
5752
5753
5754
5755
5756
5757 if test -n "$ac_tool_prefix"; then
5758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5760 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if test "${ac_cv_prog_RANLIB+set}" = set; then
5763 $as_echo_n "(cached) " >&6
5764 else
5765 if test -n "$RANLIB"; then
5766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771 IFS=$as_save_IFS
5772 test -z "$as_dir" && as_dir=.
5773 for ac_exec_ext in '' $ac_executable_extensions; do
5774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5776 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 break 2
5778 fi
5779 done
5780 done
5781 IFS=$as_save_IFS
5782
5783 fi
5784 fi
5785 RANLIB=$ac_cv_prog_RANLIB
5786 if test -n "$RANLIB"; then
5787 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5788 $as_echo "$RANLIB" >&6; }
5789 else
5790 { $as_echo "$as_me:$LINENO: result: no" >&5
5791 $as_echo "no" >&6; }
5792 fi
5793
5794
5795 fi
5796 if test -z "$ac_cv_prog_RANLIB"; then
5797 ac_ct_RANLIB=$RANLIB
5798 # Extract the first word of "ranlib", so it can be a program name with args.
5799 set dummy ranlib; ac_word=$2
5800 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if test -n "$ac_ct_RANLIB"; then
5806 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_prog_ac_ct_RANLIB="ranlib"
5816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5818 fi
5819 done
5820 done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5826 if test -n "$ac_ct_RANLIB"; then
5827 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5828 $as_echo "$ac_ct_RANLIB" >&6; }
5829 else
5830 { $as_echo "$as_me:$LINENO: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834 if test "x$ac_ct_RANLIB" = x; then
5835 RANLIB=":"
5836 else
5837 case $cross_compiling:$ac_tool_warned in
5838 yes:)
5839 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5841 ac_tool_warned=yes ;;
5842 esac
5843 RANLIB=$ac_ct_RANLIB
5844 fi
5845 else
5846 RANLIB="$ac_cv_prog_RANLIB"
5847 fi
5848
5849 test -z "$RANLIB" && RANLIB=:
5850
5851
5852
5853
5854
5855
5856 # Determine commands to create old-style static archives.
5857 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5858 old_postinstall_cmds='chmod 644 $oldlib'
5859 old_postuninstall_cmds=
5860
5861 if test -n "$RANLIB"; then
5862 case $host_os in
5863 openbsd*)
5864 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5865 ;;
5866 *)
5867 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5868 ;;
5869 esac
5870 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5871 fi
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906 # If no C compiler was specified, use CC.
5907 LTCC=${LTCC-"$CC"}
5908
5909 # If no C compiler flags were specified, use CFLAGS.
5910 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5911
5912 # Allow CC to be a program name with arguments.
5913 compiler=$CC
5914
5915
5916 # Check for command to grab the raw symbol name followed by C symbol from nm.
5917 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5918 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5919 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5920 $as_echo_n "(cached) " >&6
5921 else
5922
5923 # These are sane defaults that work on at least a few old systems.
5924 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5925
5926 # Character class describing NM global symbol codes.
5927 symcode='[BCDEGRST]'
5928
5929 # Regexp to match symbols that can be accessed directly from C.
5930 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5931
5932 # Define system-specific variables.
5933 case $host_os in
5934 aix*)
5935 symcode='[BCDT]'
5936 ;;
5937 cygwin* | mingw* | pw32* | cegcc*)
5938 symcode='[ABCDGISTW]'
5939 ;;
5940 hpux*)
5941 if test "$host_cpu" = ia64; then
5942 symcode='[ABCDEGRST]'
5943 fi
5944 ;;
5945 irix* | nonstopux*)
5946 symcode='[BCDEGRST]'
5947 ;;
5948 osf*)
5949 symcode='[BCDEGQRST]'
5950 ;;
5951 solaris*)
5952 symcode='[BDRT]'
5953 ;;
5954 sco3.2v5*)
5955 symcode='[DT]'
5956 ;;
5957 sysv4.2uw2*)
5958 symcode='[DT]'
5959 ;;
5960 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5961 symcode='[ABDT]'
5962 ;;
5963 sysv4)
5964 symcode='[DFNSTU]'
5965 ;;
5966 esac
5967
5968 # If we're using GNU nm, then use its standard symbol codes.
5969 case `$NM -V 2>&1` in
5970 *GNU* | *'with BFD'*)
5971 symcode='[ABCDGIRSTW]' ;;
5972 esac
5973
5974 # Transform an extracted symbol line into a proper C declaration.
5975 # Some systems (esp. on ia64) link data and code symbols differently,
5976 # so use this general approach.
5977 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5978
5979 # Transform an extracted symbol line into symbol name and symbol address
5980 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5981 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5982
5983 # Handle CRLF in mingw tool chain
5984 opt_cr=
5985 case $build_os in
5986 mingw*)
5987 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5988 ;;
5989 esac
5990
5991 # Try without a prefix underscore, then with it.
5992 for ac_symprfx in "" "_"; do
5993
5994 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5995 symxfrm="\\1 $ac_symprfx\\2 \\2"
5996
5997 # Write the raw and C identifiers.
5998 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5999 # Fake it for dumpbin and say T for any non-static function
6000 # and D for any global variable.
6001 # Also find C++ and __fastcall symbols from MSVC++,
6002 # which start with @ or ?.
6003 lt_cv_sys_global_symbol_pipe="$AWK '"\
6004 " {last_section=section; section=\$ 3};"\
6005 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6006 " \$ 0!~/External *\|/{next};"\
6007 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6008 " {if(hide[section]) next};"\
6009 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6010 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6011 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6012 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6013 " ' prfx=^$ac_symprfx"
6014 else
6015 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6016 fi
6017
6018 # Check to see that the pipe works correctly.
6019 pipe_works=no
6020
6021 rm -f conftest*
6022 cat > conftest.$ac_ext <<_LT_EOF
6023 #ifdef __cplusplus
6024 extern "C" {
6025 #endif
6026 char nm_test_var;
6027 void nm_test_func(void);
6028 void nm_test_func(void){}
6029 #ifdef __cplusplus
6030 }
6031 #endif
6032 int main(){nm_test_var='a';nm_test_func();return(0);}
6033 _LT_EOF
6034
6035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036 (eval $ac_compile) 2>&5
6037 ac_status=$?
6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; then
6040 # Now try to grab the symbols.
6041 nlist=conftest.nm
6042 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6043 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6044 ac_status=$?
6045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && test -s "$nlist"; then
6047 # Try sorting and uniquifying the output.
6048 if sort "$nlist" | uniq > "$nlist"T; then
6049 mv -f "$nlist"T "$nlist"
6050 else
6051 rm -f "$nlist"T
6052 fi
6053
6054 # Make sure that we snagged all the symbols we need.
6055 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6056 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6057 cat <<_LT_EOF > conftest.$ac_ext
6058 #ifdef __cplusplus
6059 extern "C" {
6060 #endif
6061
6062 _LT_EOF
6063 # Now generate the symbol file.
6064 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6065
6066 cat <<_LT_EOF >> conftest.$ac_ext
6067
6068 /* The mapping between symbol names and symbols. */
6069 const struct {
6070 const char *name;
6071 void *address;
6072 }
6073 lt__PROGRAM__LTX_preloaded_symbols[] =
6074 {
6075 { "@PROGRAM@", (void *) 0 },
6076 _LT_EOF
6077 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6078 cat <<\_LT_EOF >> conftest.$ac_ext
6079 {0, (void *) 0}
6080 };
6081
6082 /* This works around a problem in FreeBSD linker */
6083 #ifdef FREEBSD_WORKAROUND
6084 static const void *lt_preloaded_setup() {
6085 return lt__PROGRAM__LTX_preloaded_symbols;
6086 }
6087 #endif
6088
6089 #ifdef __cplusplus
6090 }
6091 #endif
6092 _LT_EOF
6093 # Now try linking the two files.
6094 mv conftest.$ac_objext conftstm.$ac_objext
6095 lt_save_LIBS="$LIBS"
6096 lt_save_CFLAGS="$CFLAGS"
6097 LIBS="conftstm.$ac_objext"
6098 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6100 (eval $ac_link) 2>&5
6101 ac_status=$?
6102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6104 pipe_works=yes
6105 fi
6106 LIBS="$lt_save_LIBS"
6107 CFLAGS="$lt_save_CFLAGS"
6108 else
6109 echo "cannot find nm_test_func in $nlist" >&5
6110 fi
6111 else
6112 echo "cannot find nm_test_var in $nlist" >&5
6113 fi
6114 else
6115 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6116 fi
6117 else
6118 echo "$progname: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 fi
6121 rm -rf conftest* conftst*
6122
6123 # Do not use the global_symbol_pipe unless it works.
6124 if test "$pipe_works" = yes; then
6125 break
6126 else
6127 lt_cv_sys_global_symbol_pipe=
6128 fi
6129 done
6130
6131 fi
6132
6133 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6134 lt_cv_sys_global_symbol_to_cdecl=
6135 fi
6136 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6137 { $as_echo "$as_me:$LINENO: result: failed" >&5
6138 $as_echo "failed" >&6; }
6139 else
6140 { $as_echo "$as_me:$LINENO: result: ok" >&5
6141 $as_echo "ok" >&6; }
6142 fi
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166 # Check whether --enable-libtool-lock was given.
6167 if test "${enable_libtool_lock+set}" = set; then
6168 enableval=$enable_libtool_lock;
6169 fi
6170
6171 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6172
6173 # Some flags need to be propagated to the compiler or linker for good
6174 # libtool support.
6175 case $host in
6176 ia64-*-hpux*)
6177 # Find out which ABI we are using.
6178 echo 'int i;' > conftest.$ac_ext
6179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6180 (eval $ac_compile) 2>&5
6181 ac_status=$?
6182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; then
6184 case `/usr/bin/file conftest.$ac_objext` in
6185 *ELF-32*)
6186 HPUX_IA64_MODE="32"
6187 ;;
6188 *ELF-64*)
6189 HPUX_IA64_MODE="64"
6190 ;;
6191 esac
6192 fi
6193 rm -rf conftest*
6194 ;;
6195 *-*-irix6*)
6196 # Find out which ABI we are using.
6197 echo '#line 6197 "configure"' > conftest.$ac_ext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6199 (eval $ac_compile) 2>&5
6200 ac_status=$?
6201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; then
6203 if test "$lt_cv_prog_gnu_ld" = yes; then
6204 case `/usr/bin/file conftest.$ac_objext` in
6205 *32-bit*)
6206 LD="${LD-ld} -melf32bsmip"
6207 ;;
6208 *N32*)
6209 LD="${LD-ld} -melf32bmipn32"
6210 ;;
6211 *64-bit*)
6212 LD="${LD-ld} -melf64bmip"
6213 ;;
6214 esac
6215 else
6216 case `/usr/bin/file conftest.$ac_objext` in
6217 *32-bit*)
6218 LD="${LD-ld} -32"
6219 ;;
6220 *N32*)
6221 LD="${LD-ld} -n32"
6222 ;;
6223 *64-bit*)
6224 LD="${LD-ld} -64"
6225 ;;
6226 esac
6227 fi
6228 fi
6229 rm -rf conftest*
6230 ;;
6231
6232 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6233 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6234 # Find out which ABI we are using.
6235 echo 'int i;' > conftest.$ac_ext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 (eval $ac_compile) 2>&5
6238 ac_status=$?
6239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; then
6241 case `/usr/bin/file conftest.o` in
6242 *32-bit*)
6243 case $host in
6244 x86_64-*kfreebsd*-gnu)
6245 LD="${LD-ld} -m elf_i386_fbsd"
6246 ;;
6247 x86_64-*linux*)
6248 LD="${LD-ld} -m elf_i386"
6249 ;;
6250 ppc64-*linux*|powerpc64-*linux*)
6251 LD="${LD-ld} -m elf32ppclinux"
6252 ;;
6253 s390x-*linux*)
6254 LD="${LD-ld} -m elf_s390"
6255 ;;
6256 sparc64-*linux*)
6257 LD="${LD-ld} -m elf32_sparc"
6258 ;;
6259 esac
6260 ;;
6261 *64-bit*)
6262 case $host in
6263 x86_64-*kfreebsd*-gnu)
6264 LD="${LD-ld} -m elf_x86_64_fbsd"
6265 ;;
6266 x86_64-*linux*)
6267 LD="${LD-ld} -m elf_x86_64"
6268 ;;
6269 ppc*-*linux*|powerpc*-*linux*)
6270 LD="${LD-ld} -m elf64ppc"
6271 ;;
6272 s390*-*linux*|s390*-*tpf*)
6273 LD="${LD-ld} -m elf64_s390"
6274 ;;
6275 sparc*-*linux*)
6276 LD="${LD-ld} -m elf64_sparc"
6277 ;;
6278 esac
6279 ;;
6280 esac
6281 fi
6282 rm -rf conftest*
6283 ;;
6284
6285 *-*-sco3.2v5*)
6286 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6287 SAVE_CFLAGS="$CFLAGS"
6288 CFLAGS="$CFLAGS -belf"
6289 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6290 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6291 if test "${lt_cv_cc_needs_belf+set}" = set; then
6292 $as_echo_n "(cached) " >&6
6293 else
6294 ac_ext=c
6295 ac_cpp='$CPP $CPPFLAGS'
6296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6299
6300 cat >conftest.$ac_ext <<_ACEOF
6301 /* confdefs.h. */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306
6307 int
6308 main ()
6309 {
6310
6311 ;
6312 return 0;
6313 }
6314 _ACEOF
6315 rm -f conftest.$ac_objext conftest$ac_exeext
6316 if { (ac_try="$ac_link"
6317 case "(($ac_try" in
6318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319 *) ac_try_echo=$ac_try;;
6320 esac
6321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6322 $as_echo "$ac_try_echo") >&5
6323 (eval "$ac_link") 2>conftest.er1
6324 ac_status=$?
6325 grep -v '^ *+' conftest.er1 >conftest.err
6326 rm -f conftest.er1
6327 cat conftest.err >&5
6328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } && {
6330 test -z "$ac_c_werror_flag" ||
6331 test ! -s conftest.err
6332 } && test -s conftest$ac_exeext && {
6333 test "$cross_compiling" = yes ||
6334 $as_test_x conftest$ac_exeext
6335 }; then
6336 lt_cv_cc_needs_belf=yes
6337 else
6338 $as_echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6340
6341 lt_cv_cc_needs_belf=no
6342 fi
6343
6344 rm -rf conftest.dSYM
6345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6346 conftest$ac_exeext conftest.$ac_ext
6347 ac_ext=c
6348 ac_cpp='$CPP $CPPFLAGS'
6349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6352
6353 fi
6354 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6355 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6356 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6357 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6358 CFLAGS="$SAVE_CFLAGS"
6359 fi
6360 ;;
6361 sparc*-*solaris*)
6362 # Find out which ABI we are using.
6363 echo 'int i;' > conftest.$ac_ext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6365 (eval $ac_compile) 2>&5
6366 ac_status=$?
6367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; then
6369 case `/usr/bin/file conftest.o` in
6370 *64-bit*)
6371 case $lt_cv_prog_gnu_ld in
6372 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6373 *)
6374 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6375 LD="${LD-ld} -64"
6376 fi
6377 ;;
6378 esac
6379 ;;
6380 esac
6381 fi
6382 rm -rf conftest*
6383 ;;
6384 esac
6385
6386 need_locks="$enable_libtool_lock"
6387
6388
6389 case $host_os in
6390 rhapsody* | darwin*)
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6393 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6394 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6397 $as_echo_n "(cached) " >&6
6398 else
6399 if test -n "$DSYMUTIL"; then
6400 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413 done
6414 done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6420 if test -n "$DSYMUTIL"; then
6421 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6422 $as_echo "$DSYMUTIL" >&6; }
6423 else
6424 { $as_echo "$as_me:$LINENO: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427
6428
6429 fi
6430 if test -z "$ac_cv_prog_DSYMUTIL"; then
6431 ac_ct_DSYMUTIL=$DSYMUTIL
6432 # Extract the first word of "dsymutil", so it can be a program name with args.
6433 set dummy dsymutil; ac_word=$2
6434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6437 $as_echo_n "(cached) " >&6
6438 else
6439 if test -n "$ac_ct_DSYMUTIL"; then
6440 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453 done
6454 done
6455 IFS=$as_save_IFS
6456
6457 fi
6458 fi
6459 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6460 if test -n "$ac_ct_DSYMUTIL"; then
6461 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6462 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6463 else
6464 { $as_echo "$as_me:$LINENO: result: no" >&5
6465 $as_echo "no" >&6; }
6466 fi
6467
6468 if test "x$ac_ct_DSYMUTIL" = x; then
6469 DSYMUTIL=":"
6470 else
6471 case $cross_compiling:$ac_tool_warned in
6472 yes:)
6473 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475 ac_tool_warned=yes ;;
6476 esac
6477 DSYMUTIL=$ac_ct_DSYMUTIL
6478 fi
6479 else
6480 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6481 fi
6482
6483 if test -n "$ac_tool_prefix"; then
6484 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6485 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6486 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6489 $as_echo_n "(cached) " >&6
6490 else
6491 if test -n "$NMEDIT"; then
6492 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6493 else
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6502 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505 done
6506 done
6507 IFS=$as_save_IFS
6508
6509 fi
6510 fi
6511 NMEDIT=$ac_cv_prog_NMEDIT
6512 if test -n "$NMEDIT"; then
6513 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6514 $as_echo "$NMEDIT" >&6; }
6515 else
6516 { $as_echo "$as_me:$LINENO: result: no" >&5
6517 $as_echo "no" >&6; }
6518 fi
6519
6520
6521 fi
6522 if test -z "$ac_cv_prog_NMEDIT"; then
6523 ac_ct_NMEDIT=$NMEDIT
6524 # Extract the first word of "nmedit", so it can be a program name with args.
6525 set dummy nmedit; ac_word=$2
6526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6529 $as_echo_n "(cached) " >&6
6530 else
6531 if test -n "$ac_ct_NMEDIT"; then
6532 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6542 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545 done
6546 done
6547 IFS=$as_save_IFS
6548
6549 fi
6550 fi
6551 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6552 if test -n "$ac_ct_NMEDIT"; then
6553 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6554 $as_echo "$ac_ct_NMEDIT" >&6; }
6555 else
6556 { $as_echo "$as_me:$LINENO: result: no" >&5
6557 $as_echo "no" >&6; }
6558 fi
6559
6560 if test "x$ac_ct_NMEDIT" = x; then
6561 NMEDIT=":"
6562 else
6563 case $cross_compiling:$ac_tool_warned in
6564 yes:)
6565 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567 ac_tool_warned=yes ;;
6568 esac
6569 NMEDIT=$ac_ct_NMEDIT
6570 fi
6571 else
6572 NMEDIT="$ac_cv_prog_NMEDIT"
6573 fi
6574
6575 if test -n "$ac_tool_prefix"; then
6576 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6577 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if test "${ac_cv_prog_LIPO+set}" = set; then
6581 $as_echo_n "(cached) " >&6
6582 else
6583 if test -n "$LIPO"; then
6584 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6585 else
6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 for as_dir in $PATH
6588 do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6593 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597 done
6598 done
6599 IFS=$as_save_IFS
6600
6601 fi
6602 fi
6603 LIPO=$ac_cv_prog_LIPO
6604 if test -n "$LIPO"; then
6605 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6606 $as_echo "$LIPO" >&6; }
6607 else
6608 { $as_echo "$as_me:$LINENO: result: no" >&5
6609 $as_echo "no" >&6; }
6610 fi
6611
6612
6613 fi
6614 if test -z "$ac_cv_prog_LIPO"; then
6615 ac_ct_LIPO=$LIPO
6616 # Extract the first word of "lipo", so it can be a program name with args.
6617 set dummy lipo; ac_word=$2
6618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 $as_echo_n "checking for $ac_word... " >&6; }
6620 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6621 $as_echo_n "(cached) " >&6
6622 else
6623 if test -n "$ac_ct_LIPO"; then
6624 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6625 else
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633 ac_cv_prog_ac_ct_LIPO="lipo"
6634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641 fi
6642 fi
6643 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6644 if test -n "$ac_ct_LIPO"; then
6645 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6646 $as_echo "$ac_ct_LIPO" >&6; }
6647 else
6648 { $as_echo "$as_me:$LINENO: result: no" >&5
6649 $as_echo "no" >&6; }
6650 fi
6651
6652 if test "x$ac_ct_LIPO" = x; then
6653 LIPO=":"
6654 else
6655 case $cross_compiling:$ac_tool_warned in
6656 yes:)
6657 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659 ac_tool_warned=yes ;;
6660 esac
6661 LIPO=$ac_ct_LIPO
6662 fi
6663 else
6664 LIPO="$ac_cv_prog_LIPO"
6665 fi
6666
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}otool; ac_word=$2
6670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if test "${ac_cv_prog_OTOOL+set}" = set; then
6673 $as_echo_n "(cached) " >&6
6674 else
6675 if test -n "$OTOOL"; then
6676 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 break 2
6688 fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693 fi
6694 fi
6695 OTOOL=$ac_cv_prog_OTOOL
6696 if test -n "$OTOOL"; then
6697 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6698 $as_echo "$OTOOL" >&6; }
6699 else
6700 { $as_echo "$as_me:$LINENO: result: no" >&5
6701 $as_echo "no" >&6; }
6702 fi
6703
6704
6705 fi
6706 if test -z "$ac_cv_prog_OTOOL"; then
6707 ac_ct_OTOOL=$OTOOL
6708 # Extract the first word of "otool", so it can be a program name with args.
6709 set dummy otool; ac_word=$2
6710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$ac_ct_OTOOL"; then
6716 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725 ac_cv_prog_ac_ct_OTOOL="otool"
6726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6736 if test -n "$ac_ct_OTOOL"; then
6737 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6738 $as_echo "$ac_ct_OTOOL" >&6; }
6739 else
6740 { $as_echo "$as_me:$LINENO: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744 if test "x$ac_ct_OTOOL" = x; then
6745 OTOOL=":"
6746 else
6747 case $cross_compiling:$ac_tool_warned in
6748 yes:)
6749 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6752 esac
6753 OTOOL=$ac_ct_OTOOL
6754 fi
6755 else
6756 OTOOL="$ac_cv_prog_OTOOL"
6757 fi
6758
6759 if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6761 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6765 $as_echo_n "(cached) " >&6
6766 else
6767 if test -n "$OTOOL64"; then
6768 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 break 2
6780 fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 OTOOL64=$ac_cv_prog_OTOOL64
6788 if test -n "$OTOOL64"; then
6789 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6790 $as_echo "$OTOOL64" >&6; }
6791 else
6792 { $as_echo "$as_me:$LINENO: result: no" >&5
6793 $as_echo "no" >&6; }
6794 fi
6795
6796
6797 fi
6798 if test -z "$ac_cv_prog_OTOOL64"; then
6799 ac_ct_OTOOL64=$OTOOL64
6800 # Extract the first word of "otool64", so it can be a program name with args.
6801 set dummy otool64; ac_word=$2
6802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6803 $as_echo_n "checking for $ac_word... " >&6; }
6804 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6805 $as_echo_n "(cached) " >&6
6806 else
6807 if test -n "$ac_ct_OTOOL64"; then
6808 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_ac_ct_OTOOL64="otool64"
6818 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6828 if test -n "$ac_ct_OTOOL64"; then
6829 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6830 $as_echo "$ac_ct_OTOOL64" >&6; }
6831 else
6832 { $as_echo "$as_me:$LINENO: result: no" >&5
6833 $as_echo "no" >&6; }
6834 fi
6835
6836 if test "x$ac_ct_OTOOL64" = x; then
6837 OTOOL64=":"
6838 else
6839 case $cross_compiling:$ac_tool_warned in
6840 yes:)
6841 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843 ac_tool_warned=yes ;;
6844 esac
6845 OTOOL64=$ac_ct_OTOOL64
6846 fi
6847 else
6848 OTOOL64="$ac_cv_prog_OTOOL64"
6849 fi
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6878 $as_echo_n "checking for -single_module linker flag... " >&6; }
6879 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6880 $as_echo_n "(cached) " >&6
6881 else
6882 lt_cv_apple_cc_single_mod=no
6883 if test -z "${LT_MULTI_MODULE}"; then
6884 # By default we will add the -single_module flag. You can override
6885 # by either setting the environment variable LT_MULTI_MODULE
6886 # non-empty at configure time, or by adding -multi_module to the
6887 # link flags.
6888 rm -rf libconftest.dylib*
6889 echo "int foo(void){return 1;}" > conftest.c
6890 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6891 -dynamiclib -Wl,-single_module conftest.c" >&5
6892 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6893 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6894 _lt_result=$?
6895 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6896 lt_cv_apple_cc_single_mod=yes
6897 else
6898 cat conftest.err >&5
6899 fi
6900 rm -rf libconftest.dylib*
6901 rm -f conftest.*
6902 fi
6903 fi
6904 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6905 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6906 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6907 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6908 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6909 $as_echo_n "(cached) " >&6
6910 else
6911 lt_cv_ld_exported_symbols_list=no
6912 save_LDFLAGS=$LDFLAGS
6913 echo "_main" > conftest.sym
6914 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6915 cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h. */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6921
6922 int
6923 main ()
6924 {
6925
6926 ;
6927 return 0;
6928 }
6929 _ACEOF
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (ac_try="$ac_link"
6932 case "(($ac_try" in
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6935 esac
6936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6937 $as_echo "$ac_try_echo") >&5
6938 (eval "$ac_link") 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && {
6945 test -z "$ac_c_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest$ac_exeext && {
6948 test "$cross_compiling" = yes ||
6949 $as_test_x conftest$ac_exeext
6950 }; then
6951 lt_cv_ld_exported_symbols_list=yes
6952 else
6953 $as_echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6955
6956 lt_cv_ld_exported_symbols_list=no
6957 fi
6958
6959 rm -rf conftest.dSYM
6960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6961 conftest$ac_exeext conftest.$ac_ext
6962 LDFLAGS="$save_LDFLAGS"
6963
6964 fi
6965 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6966 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6967 case $host_os in
6968 rhapsody* | darwin1.[012])
6969 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6970 darwin1.*)
6971 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6972 darwin*) # darwin 5.x on
6973 # if running on 10.5 or later, the deployment target defaults
6974 # to the OS version, if on x86, and 10.4, the deployment
6975 # target defaults to 10.4. Don't you love it?
6976 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6977 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6978 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6979 10.[012]*)
6980 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6981 10.*)
6982 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6983 esac
6984 ;;
6985 esac
6986 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6987 _lt_dar_single_mod='$single_module'
6988 fi
6989 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6990 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6991 else
6992 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6993 fi
6994 if test "$DSYMUTIL" != ":"; then
6995 _lt_dsymutil='~$DSYMUTIL $lib || :'
6996 else
6997 _lt_dsymutil=
6998 fi
6999 ;;
7000 esac
7001
7002
7003 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7004 $as_echo_n "checking for ANSI C header files... " >&6; }
7005 if test "${ac_cv_header_stdc+set}" = set; then
7006 $as_echo_n "(cached) " >&6
7007 else
7008 cat >conftest.$ac_ext <<_ACEOF
7009 /* confdefs.h. */
7010 _ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014 #include <stdlib.h>
7015 #include <stdarg.h>
7016 #include <string.h>
7017 #include <float.h>
7018
7019 int
7020 main ()
7021 {
7022
7023 ;
7024 return 0;
7025 }
7026 _ACEOF
7027 rm -f conftest.$ac_objext
7028 if { (ac_try="$ac_compile"
7029 case "(($ac_try" in
7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7031 *) ac_try_echo=$ac_try;;
7032 esac
7033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7034 $as_echo "$ac_try_echo") >&5
7035 (eval "$ac_compile") 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } && {
7042 test -z "$ac_c_werror_flag" ||
7043 test ! -s conftest.err
7044 } && test -s conftest.$ac_objext; then
7045 ac_cv_header_stdc=yes
7046 else
7047 $as_echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050 ac_cv_header_stdc=no
7051 fi
7052
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054
7055 if test $ac_cv_header_stdc = yes; then
7056 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 #include <string.h>
7064
7065 _ACEOF
7066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7067 $EGREP "memchr" >/dev/null 2>&1; then
7068 :
7069 else
7070 ac_cv_header_stdc=no
7071 fi
7072 rm -f conftest*
7073
7074 fi
7075
7076 if test $ac_cv_header_stdc = yes; then
7077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7078 cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h. */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 #include <stdlib.h>
7085
7086 _ACEOF
7087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7088 $EGREP "free" >/dev/null 2>&1; then
7089 :
7090 else
7091 ac_cv_header_stdc=no
7092 fi
7093 rm -f conftest*
7094
7095 fi
7096
7097 if test $ac_cv_header_stdc = yes; then
7098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7099 if test "$cross_compiling" = yes; then
7100 :
7101 else
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h. */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 #include <ctype.h>
7109 #include <stdlib.h>
7110 #if ((' ' & 0x0FF) == 0x020)
7111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7113 #else
7114 # define ISLOWER(c) \
7115 (('a' <= (c) && (c) <= 'i') \
7116 || ('j' <= (c) && (c) <= 'r') \
7117 || ('s' <= (c) && (c) <= 'z'))
7118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7119 #endif
7120
7121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7122 int
7123 main ()
7124 {
7125 int i;
7126 for (i = 0; i < 256; i++)
7127 if (XOR (islower (i), ISLOWER (i))
7128 || toupper (i) != TOUPPER (i))
7129 return 2;
7130 return 0;
7131 }
7132 _ACEOF
7133 rm -f conftest$ac_exeext
7134 if { (ac_try="$ac_link"
7135 case "(($ac_try" in
7136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7137 *) ac_try_echo=$ac_try;;
7138 esac
7139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7140 $as_echo "$ac_try_echo") >&5
7141 (eval "$ac_link") 2>&5
7142 ac_status=$?
7143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7145 { (case "(($ac_try" in
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7148 esac
7149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7150 $as_echo "$ac_try_echo") >&5
7151 (eval "$ac_try") 2>&5
7152 ac_status=$?
7153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; }; then
7155 :
7156 else
7157 $as_echo "$as_me: program exited with status $ac_status" >&5
7158 $as_echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7160
7161 ( exit $ac_status )
7162 ac_cv_header_stdc=no
7163 fi
7164 rm -rf conftest.dSYM
7165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7166 fi
7167
7168
7169 fi
7170 fi
7171 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7172 $as_echo "$ac_cv_header_stdc" >&6; }
7173 if test $ac_cv_header_stdc = yes; then
7174
7175 cat >>confdefs.h <<\_ACEOF
7176 #define STDC_HEADERS 1
7177 _ACEOF
7178
7179 fi
7180
7181 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7192 inttypes.h stdint.h unistd.h
7193 do
7194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7195 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7196 $as_echo_n "checking for $ac_header... " >&6; }
7197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7198 $as_echo_n "(cached) " >&6
7199 else
7200 cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h. */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7206 $ac_includes_default
7207
7208 #include <$ac_header>
7209 _ACEOF
7210 rm -f conftest.$ac_objext
7211 if { (ac_try="$ac_compile"
7212 case "(($ac_try" in
7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7215 esac
7216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7217 $as_echo "$ac_try_echo") >&5
7218 (eval "$ac_compile") 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && {
7225 test -z "$ac_c_werror_flag" ||
7226 test ! -s conftest.err
7227 } && test -s conftest.$ac_objext; then
7228 eval "$as_ac_Header=yes"
7229 else
7230 $as_echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7232
7233 eval "$as_ac_Header=no"
7234 fi
7235
7236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 fi
7238 ac_res=`eval 'as_val=${'$as_ac_Header'}
7239 $as_echo "$as_val"'`
7240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7241 $as_echo "$ac_res" >&6; }
7242 as_val=`eval 'as_val=${'$as_ac_Header'}
7243 $as_echo "$as_val"'`
7244 if test "x$as_val" = x""yes; then
7245 cat >>confdefs.h <<_ACEOF
7246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7247 _ACEOF
7248
7249 fi
7250
7251 done
7252
7253
7254
7255 for ac_header in dlfcn.h
7256 do
7257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7259 $as_echo_n "checking for $ac_header... " >&6; }
7260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7261 $as_echo_n "(cached) " >&6
7262 else
7263 cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h. */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7269 $ac_includes_default
7270
7271 #include <$ac_header>
7272 _ACEOF
7273 rm -f conftest.$ac_objext
7274 if { (ac_try="$ac_compile"
7275 case "(($ac_try" in
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7278 esac
7279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7280 $as_echo "$ac_try_echo") >&5
7281 (eval "$ac_compile") 2>conftest.er1
7282 ac_status=$?
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
7286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } && {
7288 test -z "$ac_c_werror_flag" ||
7289 test ! -s conftest.err
7290 } && test -s conftest.$ac_objext; then
7291 eval "$as_ac_Header=yes"
7292 else
7293 $as_echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296 eval "$as_ac_Header=no"
7297 fi
7298
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 fi
7301 ac_res=`eval 'as_val=${'$as_ac_Header'}
7302 $as_echo "$as_val"'`
7303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7304 $as_echo "$ac_res" >&6; }
7305 as_val=`eval 'as_val=${'$as_ac_Header'}
7306 $as_echo "$as_val"'`
7307 if test "x$as_val" = x""yes; then
7308 cat >>confdefs.h <<_ACEOF
7309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7310 _ACEOF
7311
7312 fi
7313
7314 done
7315
7316
7317
7318 # Set options
7319 enable_dlopen=yes
7320
7321
7322
7323
7324 enable_win32_dll=no
7325
7326
7327 # Check whether --enable-shared was given.
7328 if test "${enable_shared+set}" = set; then
7329 enableval=$enable_shared; p=${PACKAGE-default}
7330 case $enableval in
7331 yes) enable_shared=yes ;;
7332 no) enable_shared=no ;;
7333 *)
7334 enable_shared=no
7335 # Look at the argument we got. We use all the common list separators.
7336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7337 for pkg in $enableval; do
7338 IFS="$lt_save_ifs"
7339 if test "X$pkg" = "X$p"; then
7340 enable_shared=yes
7341 fi
7342 done
7343 IFS="$lt_save_ifs"
7344 ;;
7345 esac
7346 else
7347 enable_shared=yes
7348 fi
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358 # Check whether --enable-static was given.
7359 if test "${enable_static+set}" = set; then
7360 enableval=$enable_static; p=${PACKAGE-default}
7361 case $enableval in
7362 yes) enable_static=yes ;;
7363 no) enable_static=no ;;
7364 *)
7365 enable_static=no
7366 # Look at the argument we got. We use all the common list separators.
7367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7368 for pkg in $enableval; do
7369 IFS="$lt_save_ifs"
7370 if test "X$pkg" = "X$p"; then
7371 enable_static=yes
7372 fi
7373 done
7374 IFS="$lt_save_ifs"
7375 ;;
7376 esac
7377 else
7378 enable_static=yes
7379 fi
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390 # Check whether --with-pic was given.
7391 if test "${with_pic+set}" = set; then
7392 withval=$with_pic; pic_mode="$withval"
7393 else
7394 pic_mode=default
7395 fi
7396
7397
7398 test -z "$pic_mode" && pic_mode=default
7399
7400
7401
7402
7403
7404
7405
7406 # Check whether --enable-fast-install was given.
7407 if test "${enable_fast_install+set}" = set; then
7408 enableval=$enable_fast_install; p=${PACKAGE-default}
7409 case $enableval in
7410 yes) enable_fast_install=yes ;;
7411 no) enable_fast_install=no ;;
7412 *)
7413 enable_fast_install=no
7414 # Look at the argument we got. We use all the common list separators.
7415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7416 for pkg in $enableval; do
7417 IFS="$lt_save_ifs"
7418 if test "X$pkg" = "X$p"; then
7419 enable_fast_install=yes
7420 fi
7421 done
7422 IFS="$lt_save_ifs"
7423 ;;
7424 esac
7425 else
7426 enable_fast_install=yes
7427 fi
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439 # This can be used to rebuild libtool when needed
7440 LIBTOOL_DEPS="$ltmain"
7441
7442 # Always use our own libtool.
7443 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469 test -z "$LN_S" && LN_S="ln -s"
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484 if test -n "${ZSH_VERSION+set}" ; then
7485 setopt NO_GLOB_SUBST
7486 fi
7487
7488 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7489 $as_echo_n "checking for objdir... " >&6; }
7490 if test "${lt_cv_objdir+set}" = set; then
7491 $as_echo_n "(cached) " >&6
7492 else
7493 rm -f .libs 2>/dev/null
7494 mkdir .libs 2>/dev/null
7495 if test -d .libs; then
7496 lt_cv_objdir=.libs
7497 else
7498 # MS-DOS does not allow filenames that begin with a dot.
7499 lt_cv_objdir=_libs
7500 fi
7501 rmdir .libs 2>/dev/null
7502 fi
7503 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7504 $as_echo "$lt_cv_objdir" >&6; }
7505 objdir=$lt_cv_objdir
7506
7507
7508
7509
7510
7511 cat >>confdefs.h <<_ACEOF
7512 #define LT_OBJDIR "$lt_cv_objdir/"
7513 _ACEOF
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531 case $host_os in
7532 aix3*)
7533 # AIX sometimes has problems with the GCC collect2 program. For some
7534 # reason, if we set the COLLECT_NAMES environment variable, the problems
7535 # vanish in a puff of smoke.
7536 if test "X${COLLECT_NAMES+set}" != Xset; then
7537 COLLECT_NAMES=
7538 export COLLECT_NAMES
7539 fi
7540 ;;
7541 esac
7542
7543 # Sed substitution that helps us do robust quoting. It backslashifies
7544 # metacharacters that are still active within double-quoted strings.
7545 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7546
7547 # Same as above, but do not quote variable references.
7548 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7549
7550 # Sed substitution to delay expansion of an escaped shell variable in a
7551 # double_quote_subst'ed string.
7552 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7553
7554 # Sed substitution to delay expansion of an escaped single quote.
7555 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7556
7557 # Sed substitution to avoid accidental globbing in evaled expressions
7558 no_glob_subst='s/\*/\\\*/g'
7559
7560 # Global variables:
7561 ofile=libtool
7562 can_build_shared=yes
7563
7564 # All known linkers require a `.a' archive for static linking (except MSVC,
7565 # which needs '.lib').
7566 libext=a
7567
7568 with_gnu_ld="$lt_cv_prog_gnu_ld"
7569
7570 old_CC="$CC"
7571 old_CFLAGS="$CFLAGS"
7572
7573 # Set sane defaults for various variables
7574 test -z "$CC" && CC=cc
7575 test -z "$LTCC" && LTCC=$CC
7576 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7577 test -z "$LD" && LD=ld
7578 test -z "$ac_objext" && ac_objext=o
7579
7580 for cc_temp in $compiler""; do
7581 case $cc_temp in
7582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7584 \-*) ;;
7585 *) break;;
7586 esac
7587 done
7588 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7589
7590
7591 # Only perform the check for file, if the check method requires it
7592 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7593 case $deplibs_check_method in
7594 file_magic*)
7595 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7596 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7597 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7598 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7599 $as_echo_n "(cached) " >&6
7600 else
7601 case $MAGIC_CMD in
7602 [\\/*] | ?:[\\/]*)
7603 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7604 ;;
7605 *)
7606 lt_save_MAGIC_CMD="$MAGIC_CMD"
7607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7608 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7609 for ac_dir in $ac_dummy; do
7610 IFS="$lt_save_ifs"
7611 test -z "$ac_dir" && ac_dir=.
7612 if test -f $ac_dir/${ac_tool_prefix}file; then
7613 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7614 if test -n "$file_magic_test_file"; then
7615 case $deplibs_check_method in
7616 "file_magic "*)
7617 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7619 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7620 $EGREP "$file_magic_regex" > /dev/null; then
7621 :
7622 else
7623 cat <<_LT_EOF 1>&2
7624
7625 *** Warning: the command libtool uses to detect shared libraries,
7626 *** $file_magic_cmd, produces output that libtool cannot recognize.
7627 *** The result is that libtool may fail to recognize shared libraries
7628 *** as such. This will affect the creation of libtool libraries that
7629 *** depend on shared libraries, but programs linked with such libtool
7630 *** libraries will work regardless of this problem. Nevertheless, you
7631 *** may want to report the problem to your system manager and/or to
7632 *** bug-libtool@gnu.org
7633
7634 _LT_EOF
7635 fi ;;
7636 esac
7637 fi
7638 break
7639 fi
7640 done
7641 IFS="$lt_save_ifs"
7642 MAGIC_CMD="$lt_save_MAGIC_CMD"
7643 ;;
7644 esac
7645 fi
7646
7647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7648 if test -n "$MAGIC_CMD"; then
7649 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7650 $as_echo "$MAGIC_CMD" >&6; }
7651 else
7652 { $as_echo "$as_me:$LINENO: result: no" >&5
7653 $as_echo "no" >&6; }
7654 fi
7655
7656
7657
7658
7659
7660 if test -z "$lt_cv_path_MAGIC_CMD"; then
7661 if test -n "$ac_tool_prefix"; then
7662 { $as_echo "$as_me:$LINENO: checking for file" >&5
7663 $as_echo_n "checking for file... " >&6; }
7664 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7665 $as_echo_n "(cached) " >&6
7666 else
7667 case $MAGIC_CMD in
7668 [\\/*] | ?:[\\/]*)
7669 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7670 ;;
7671 *)
7672 lt_save_MAGIC_CMD="$MAGIC_CMD"
7673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7674 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7675 for ac_dir in $ac_dummy; do
7676 IFS="$lt_save_ifs"
7677 test -z "$ac_dir" && ac_dir=.
7678 if test -f $ac_dir/file; then
7679 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7680 if test -n "$file_magic_test_file"; then
7681 case $deplibs_check_method in
7682 "file_magic "*)
7683 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7686 $EGREP "$file_magic_regex" > /dev/null; then
7687 :
7688 else
7689 cat <<_LT_EOF 1>&2
7690
7691 *** Warning: the command libtool uses to detect shared libraries,
7692 *** $file_magic_cmd, produces output that libtool cannot recognize.
7693 *** The result is that libtool may fail to recognize shared libraries
7694 *** as such. This will affect the creation of libtool libraries that
7695 *** depend on shared libraries, but programs linked with such libtool
7696 *** libraries will work regardless of this problem. Nevertheless, you
7697 *** may want to report the problem to your system manager and/or to
7698 *** bug-libtool@gnu.org
7699
7700 _LT_EOF
7701 fi ;;
7702 esac
7703 fi
7704 break
7705 fi
7706 done
7707 IFS="$lt_save_ifs"
7708 MAGIC_CMD="$lt_save_MAGIC_CMD"
7709 ;;
7710 esac
7711 fi
7712
7713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714 if test -n "$MAGIC_CMD"; then
7715 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7716 $as_echo "$MAGIC_CMD" >&6; }
7717 else
7718 { $as_echo "$as_me:$LINENO: result: no" >&5
7719 $as_echo "no" >&6; }
7720 fi
7721
7722
7723 else
7724 MAGIC_CMD=:
7725 fi
7726 fi
7727
7728 fi
7729 ;;
7730 esac
7731
7732 # Use C for the default configuration in the libtool script
7733
7734 lt_save_CC="$CC"
7735 ac_ext=c
7736 ac_cpp='$CPP $CPPFLAGS'
7737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7740
7741
7742 # Source file extension for C test sources.
7743 ac_ext=c
7744
7745 # Object file extension for compiled C test sources.
7746 objext=o
7747 objext=$objext
7748
7749 # Code to be used in simple compile tests
7750 lt_simple_compile_test_code="int some_variable = 0;"
7751
7752 # Code to be used in simple link tests
7753 lt_simple_link_test_code='int main(){return(0);}'
7754
7755
7756
7757
7758
7759
7760
7761 # If no C compiler was specified, use CC.
7762 LTCC=${LTCC-"$CC"}
7763
7764 # If no C compiler flags were specified, use CFLAGS.
7765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7766
7767 # Allow CC to be a program name with arguments.
7768 compiler=$CC
7769
7770 # Save the default compiler, since it gets overwritten when the other
7771 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7772 compiler_DEFAULT=$CC
7773
7774 # save warnings/boilerplate of simple test code
7775 ac_outfile=conftest.$ac_objext
7776 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7777 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7778 _lt_compiler_boilerplate=`cat conftest.err`
7779 $RM conftest*
7780
7781 ac_outfile=conftest.$ac_objext
7782 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7783 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7784 _lt_linker_boilerplate=`cat conftest.err`
7785 $RM -r conftest*
7786
7787
7788 if test -n "$compiler"; then
7789
7790 lt_prog_compiler_no_builtin_flag=
7791
7792 if test "$GCC" = yes; then
7793 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7794
7795 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7796 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7797 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7798 $as_echo_n "(cached) " >&6
7799 else
7800 lt_cv_prog_compiler_rtti_exceptions=no
7801 ac_outfile=conftest.$ac_objext
7802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7803 lt_compiler_flag="-fno-rtti -fno-exceptions"
7804 # Insert the option either (1) after the last *FLAGS variable, or
7805 # (2) before a word containing "conftest.", or (3) at the end.
7806 # Note that $ac_compile itself does not contain backslashes and begins
7807 # with a dollar sign (not a hyphen), so the echo should work correctly.
7808 # The option is referenced via a variable to avoid confusing sed.
7809 lt_compile=`echo "$ac_compile" | $SED \
7810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7812 -e 's:$: $lt_compiler_flag:'`
7813 (eval echo "\"\$as_me:7813: $lt_compile\"" >&5)
7814 (eval "$lt_compile" 2>conftest.err)
7815 ac_status=$?
7816 cat conftest.err >&5
7817 echo "$as_me:7817: \$? = $ac_status" >&5
7818 if (exit $ac_status) && test -s "$ac_outfile"; then
7819 # The compiler can only warn and ignore the option if not recognized
7820 # So say no if there are warnings other than the usual output.
7821 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7824 lt_cv_prog_compiler_rtti_exceptions=yes
7825 fi
7826 fi
7827 $RM conftest*
7828
7829 fi
7830 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7831 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7832
7833 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7834 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7835 else
7836 :
7837 fi
7838
7839 fi
7840
7841
7842
7843
7844
7845
7846 lt_prog_compiler_wl=
7847 lt_prog_compiler_pic=
7848 lt_prog_compiler_static=
7849
7850 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7851 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7852
7853 if test "$GCC" = yes; then
7854 lt_prog_compiler_wl='-Wl,'
7855 lt_prog_compiler_static='-static'
7856
7857 case $host_os in
7858 aix*)
7859 # All AIX code is PIC.
7860 if test "$host_cpu" = ia64; then
7861 # AIX 5 now supports IA64 processor
7862 lt_prog_compiler_static='-Bstatic'
7863 fi
7864 ;;
7865
7866 amigaos*)
7867 case $host_cpu in
7868 powerpc)
7869 # see comment about AmigaOS4 .so support
7870 lt_prog_compiler_pic='-fPIC'
7871 ;;
7872 m68k)
7873 # FIXME: we need at least 68020 code to build shared libraries, but
7874 # adding the `-m68020' flag to GCC prevents building anything better,
7875 # like `-m68040'.
7876 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7877 ;;
7878 esac
7879 ;;
7880
7881 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7882 # PIC is the default for these OSes.
7883 ;;
7884
7885 mingw* | cygwin* | pw32* | os2* | cegcc*)
7886 # This hack is so that the source file can tell whether it is being
7887 # built for inclusion in a dll (and should export symbols for example).
7888 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7889 # (--disable-auto-import) libraries
7890 lt_prog_compiler_pic='-DDLL_EXPORT'
7891 ;;
7892
7893 darwin* | rhapsody*)
7894 # PIC is the default on this platform
7895 # Common symbols not allowed in MH_DYLIB files
7896 lt_prog_compiler_pic='-fno-common'
7897 ;;
7898
7899 hpux*)
7900 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7901 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7902 # sets the default TLS model and affects inlining.
7903 case $host_cpu in
7904 hppa*64*)
7905 # +Z the default
7906 ;;
7907 *)
7908 lt_prog_compiler_pic='-fPIC'
7909 ;;
7910 esac
7911 ;;
7912
7913 interix[3-9]*)
7914 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7915 # Instead, we relocate shared libraries at runtime.
7916 ;;
7917
7918 msdosdjgpp*)
7919 # Just because we use GCC doesn't mean we suddenly get shared libraries
7920 # on systems that don't support them.
7921 lt_prog_compiler_can_build_shared=no
7922 enable_shared=no
7923 ;;
7924
7925 *nto* | *qnx*)
7926 # QNX uses GNU C++, but need to define -shared option too, otherwise
7927 # it will coredump.
7928 lt_prog_compiler_pic='-fPIC -shared'
7929 ;;
7930
7931 sysv4*MP*)
7932 if test -d /usr/nec; then
7933 lt_prog_compiler_pic=-Kconform_pic
7934 fi
7935 ;;
7936
7937 *)
7938 lt_prog_compiler_pic='-fPIC'
7939 ;;
7940 esac
7941 else
7942 # PORTME Check for flag to pass linker flags through the system compiler.
7943 case $host_os in
7944 aix*)
7945 lt_prog_compiler_wl='-Wl,'
7946 if test "$host_cpu" = ia64; then
7947 # AIX 5 now supports IA64 processor
7948 lt_prog_compiler_static='-Bstatic'
7949 else
7950 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7951 fi
7952 ;;
7953
7954 mingw* | cygwin* | pw32* | os2* | cegcc*)
7955 # This hack is so that the source file can tell whether it is being
7956 # built for inclusion in a dll (and should export symbols for example).
7957 lt_prog_compiler_pic='-DDLL_EXPORT'
7958 ;;
7959
7960 hpux9* | hpux10* | hpux11*)
7961 lt_prog_compiler_wl='-Wl,'
7962 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7963 # not for PA HP-UX.
7964 case $host_cpu in
7965 hppa*64*|ia64*)
7966 # +Z the default
7967 ;;
7968 *)
7969 lt_prog_compiler_pic='+Z'
7970 ;;
7971 esac
7972 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7973 lt_prog_compiler_static='${wl}-a ${wl}archive'
7974 ;;
7975
7976 irix5* | irix6* | nonstopux*)
7977 lt_prog_compiler_wl='-Wl,'
7978 # PIC (with -KPIC) is the default.
7979 lt_prog_compiler_static='-non_shared'
7980 ;;
7981
7982 linux* | k*bsd*-gnu)
7983 case $cc_basename in
7984 # old Intel for x86_64 which still supported -KPIC.
7985 ecc*)
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-KPIC'
7988 lt_prog_compiler_static='-static'
7989 ;;
7990 # icc used to be incompatible with GCC.
7991 # ICC 10 doesn't accept -KPIC any more.
7992 icc* | ifort*)
7993 lt_prog_compiler_wl='-Wl,'
7994 lt_prog_compiler_pic='-fPIC'
7995 lt_prog_compiler_static='-static'
7996 ;;
7997 # Lahey Fortran 8.1.
7998 lf95*)
7999 lt_prog_compiler_wl='-Wl,'
8000 lt_prog_compiler_pic='--shared'
8001 lt_prog_compiler_static='--static'
8002 ;;
8003 pgcc* | pgf77* | pgf90* | pgf95*)
8004 # Portland Group compilers (*not* the Pentium gcc compiler,
8005 # which looks to be a dead project)
8006 lt_prog_compiler_wl='-Wl,'
8007 lt_prog_compiler_pic='-fpic'
8008 lt_prog_compiler_static='-Bstatic'
8009 ;;
8010 ccc*)
8011 lt_prog_compiler_wl='-Wl,'
8012 # All Alpha code is PIC.
8013 lt_prog_compiler_static='-non_shared'
8014 ;;
8015 xl*)
8016 # IBM XL C 8.0/Fortran 10.1 on PPC
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_pic='-qpic'
8019 lt_prog_compiler_static='-qstaticlink'
8020 ;;
8021 *)
8022 case `$CC -V 2>&1 | sed 5q` in
8023 *Sun\ C*)
8024 # Sun C 5.9
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-Bstatic'
8027 lt_prog_compiler_wl='-Wl,'
8028 ;;
8029 *Sun\ F*)
8030 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8031 lt_prog_compiler_pic='-KPIC'
8032 lt_prog_compiler_static='-Bstatic'
8033 lt_prog_compiler_wl=''
8034 ;;
8035 esac
8036 ;;
8037 esac
8038 ;;
8039
8040 newsos6)
8041 lt_prog_compiler_pic='-KPIC'
8042 lt_prog_compiler_static='-Bstatic'
8043 ;;
8044
8045 *nto* | *qnx*)
8046 # QNX uses GNU C++, but need to define -shared option too, otherwise
8047 # it will coredump.
8048 lt_prog_compiler_pic='-fPIC -shared'
8049 ;;
8050
8051 osf3* | osf4* | osf5*)
8052 lt_prog_compiler_wl='-Wl,'
8053 # All OSF/1 code is PIC.
8054 lt_prog_compiler_static='-non_shared'
8055 ;;
8056
8057 rdos*)
8058 lt_prog_compiler_static='-non_shared'
8059 ;;
8060
8061 solaris*)
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-Bstatic'
8064 case $cc_basename in
8065 f77* | f90* | f95*)
8066 lt_prog_compiler_wl='-Qoption ld ';;
8067 *)
8068 lt_prog_compiler_wl='-Wl,';;
8069 esac
8070 ;;
8071
8072 sunos4*)
8073 lt_prog_compiler_wl='-Qoption ld '
8074 lt_prog_compiler_pic='-PIC'
8075 lt_prog_compiler_static='-Bstatic'
8076 ;;
8077
8078 sysv4 | sysv4.2uw2* | sysv4.3*)
8079 lt_prog_compiler_wl='-Wl,'
8080 lt_prog_compiler_pic='-KPIC'
8081 lt_prog_compiler_static='-Bstatic'
8082 ;;
8083
8084 sysv4*MP*)
8085 if test -d /usr/nec ;then
8086 lt_prog_compiler_pic='-Kconform_pic'
8087 lt_prog_compiler_static='-Bstatic'
8088 fi
8089 ;;
8090
8091 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-KPIC'
8094 lt_prog_compiler_static='-Bstatic'
8095 ;;
8096
8097 unicos*)
8098 lt_prog_compiler_wl='-Wl,'
8099 lt_prog_compiler_can_build_shared=no
8100 ;;
8101
8102 uts4*)
8103 lt_prog_compiler_pic='-pic'
8104 lt_prog_compiler_static='-Bstatic'
8105 ;;
8106
8107 *)
8108 lt_prog_compiler_can_build_shared=no
8109 ;;
8110 esac
8111 fi
8112
8113 case $host_os in
8114 # For platforms which do not support PIC, -DPIC is meaningless:
8115 *djgpp*)
8116 lt_prog_compiler_pic=
8117 ;;
8118 *)
8119 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8120 ;;
8121 esac
8122 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8123 $as_echo "$lt_prog_compiler_pic" >&6; }
8124
8125
8126
8127
8128
8129
8130 #
8131 # Check to make sure the PIC flag actually works.
8132 #
8133 if test -n "$lt_prog_compiler_pic"; then
8134 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8135 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8136 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8137 $as_echo_n "(cached) " >&6
8138 else
8139 lt_cv_prog_compiler_pic_works=no
8140 ac_outfile=conftest.$ac_objext
8141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8142 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8143 # Insert the option either (1) after the last *FLAGS variable, or
8144 # (2) before a word containing "conftest.", or (3) at the end.
8145 # Note that $ac_compile itself does not contain backslashes and begins
8146 # with a dollar sign (not a hyphen), so the echo should work correctly.
8147 # The option is referenced via a variable to avoid confusing sed.
8148 lt_compile=`echo "$ac_compile" | $SED \
8149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8151 -e 's:$: $lt_compiler_flag:'`
8152 (eval echo "\"\$as_me:8152: $lt_compile\"" >&5)
8153 (eval "$lt_compile" 2>conftest.err)
8154 ac_status=$?
8155 cat conftest.err >&5
8156 echo "$as_me:8156: \$? = $ac_status" >&5
8157 if (exit $ac_status) && test -s "$ac_outfile"; then
8158 # The compiler can only warn and ignore the option if not recognized
8159 # So say no if there are warnings other than the usual output.
8160 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8163 lt_cv_prog_compiler_pic_works=yes
8164 fi
8165 fi
8166 $RM conftest*
8167
8168 fi
8169 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8170 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8171
8172 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8173 case $lt_prog_compiler_pic in
8174 "" | " "*) ;;
8175 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8176 esac
8177 else
8178 lt_prog_compiler_pic=
8179 lt_prog_compiler_can_build_shared=no
8180 fi
8181
8182 fi
8183
8184
8185
8186
8187
8188
8189 #
8190 # Check to make sure the static flag actually works.
8191 #
8192 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8193 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8194 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8195 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8196 $as_echo_n "(cached) " >&6
8197 else
8198 lt_cv_prog_compiler_static_works=no
8199 save_LDFLAGS="$LDFLAGS"
8200 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8201 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8202 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8203 # The linker can only warn and ignore the option if not recognized
8204 # So say no if there are warnings
8205 if test -s conftest.err; then
8206 # Append any errors to the config.log.
8207 cat conftest.err 1>&5
8208 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8209 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8210 if diff conftest.exp conftest.er2 >/dev/null; then
8211 lt_cv_prog_compiler_static_works=yes
8212 fi
8213 else
8214 lt_cv_prog_compiler_static_works=yes
8215 fi
8216 fi
8217 $RM -r conftest*
8218 LDFLAGS="$save_LDFLAGS"
8219
8220 fi
8221 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8222 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8223
8224 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8225 :
8226 else
8227 lt_prog_compiler_static=
8228 fi
8229
8230
8231
8232
8233
8234
8235
8236 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8237 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8238 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8239 $as_echo_n "(cached) " >&6
8240 else
8241 lt_cv_prog_compiler_c_o=no
8242 $RM -r conftest 2>/dev/null
8243 mkdir conftest
8244 cd conftest
8245 mkdir out
8246 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8247
8248 lt_compiler_flag="-o out/conftest2.$ac_objext"
8249 # Insert the option either (1) after the last *FLAGS variable, or
8250 # (2) before a word containing "conftest.", or (3) at the end.
8251 # Note that $ac_compile itself does not contain backslashes and begins
8252 # with a dollar sign (not a hyphen), so the echo should work correctly.
8253 lt_compile=`echo "$ac_compile" | $SED \
8254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8256 -e 's:$: $lt_compiler_flag:'`
8257 (eval echo "\"\$as_me:8257: $lt_compile\"" >&5)
8258 (eval "$lt_compile" 2>out/conftest.err)
8259 ac_status=$?
8260 cat out/conftest.err >&5
8261 echo "$as_me:8261: \$? = $ac_status" >&5
8262 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8263 then
8264 # The compiler can only warn and ignore the option if not recognized
8265 # So say no if there are warnings
8266 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8267 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8268 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8269 lt_cv_prog_compiler_c_o=yes
8270 fi
8271 fi
8272 chmod u+w . 2>&5
8273 $RM conftest*
8274 # SGI C++ compiler will create directory out/ii_files/ for
8275 # template instantiation
8276 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8277 $RM out/* && rmdir out
8278 cd ..
8279 $RM -r conftest
8280 $RM conftest*
8281
8282 fi
8283 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8284 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8285
8286
8287
8288
8289
8290
8291 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8292 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8293 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8294 $as_echo_n "(cached) " >&6
8295 else
8296 lt_cv_prog_compiler_c_o=no
8297 $RM -r conftest 2>/dev/null
8298 mkdir conftest
8299 cd conftest
8300 mkdir out
8301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8302
8303 lt_compiler_flag="-o out/conftest2.$ac_objext"
8304 # Insert the option either (1) after the last *FLAGS variable, or
8305 # (2) before a word containing "conftest.", or (3) at the end.
8306 # Note that $ac_compile itself does not contain backslashes and begins
8307 # with a dollar sign (not a hyphen), so the echo should work correctly.
8308 lt_compile=`echo "$ac_compile" | $SED \
8309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8311 -e 's:$: $lt_compiler_flag:'`
8312 (eval echo "\"\$as_me:8312: $lt_compile\"" >&5)
8313 (eval "$lt_compile" 2>out/conftest.err)
8314 ac_status=$?
8315 cat out/conftest.err >&5
8316 echo "$as_me:8316: \$? = $ac_status" >&5
8317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8318 then
8319 # The compiler can only warn and ignore the option if not recognized
8320 # So say no if there are warnings
8321 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8322 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8323 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8324 lt_cv_prog_compiler_c_o=yes
8325 fi
8326 fi
8327 chmod u+w . 2>&5
8328 $RM conftest*
8329 # SGI C++ compiler will create directory out/ii_files/ for
8330 # template instantiation
8331 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8332 $RM out/* && rmdir out
8333 cd ..
8334 $RM -r conftest
8335 $RM conftest*
8336
8337 fi
8338 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8339 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8340
8341
8342
8343
8344 hard_links="nottested"
8345 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8346 # do not overwrite the value of need_locks provided by the user
8347 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8348 $as_echo_n "checking if we can lock with hard links... " >&6; }
8349 hard_links=yes
8350 $RM conftest*
8351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8352 touch conftest.a
8353 ln conftest.a conftest.b 2>&5 || hard_links=no
8354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8355 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8356 $as_echo "$hard_links" >&6; }
8357 if test "$hard_links" = no; then
8358 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8359 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8360 need_locks=warn
8361 fi
8362 else
8363 need_locks=no
8364 fi
8365
8366
8367
8368
8369
8370
8371 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8372 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8373
8374 runpath_var=
8375 allow_undefined_flag=
8376 always_export_symbols=no
8377 archive_cmds=
8378 archive_expsym_cmds=
8379 compiler_needs_object=no
8380 enable_shared_with_static_runtimes=no
8381 export_dynamic_flag_spec=
8382 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8383 hardcode_automatic=no
8384 hardcode_direct=no
8385 hardcode_direct_absolute=no
8386 hardcode_libdir_flag_spec=
8387 hardcode_libdir_flag_spec_ld=
8388 hardcode_libdir_separator=
8389 hardcode_minus_L=no
8390 hardcode_shlibpath_var=unsupported
8391 inherit_rpath=no
8392 link_all_deplibs=unknown
8393 module_cmds=
8394 module_expsym_cmds=
8395 old_archive_from_new_cmds=
8396 old_archive_from_expsyms_cmds=
8397 thread_safe_flag_spec=
8398 whole_archive_flag_spec=
8399 # include_expsyms should be a list of space-separated symbols to be *always*
8400 # included in the symbol list
8401 include_expsyms=
8402 # exclude_expsyms can be an extended regexp of symbols to exclude
8403 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8404 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8405 # as well as any symbol that contains `d'.
8406 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8407 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8408 # platforms (ab)use it in PIC code, but their linkers get confused if
8409 # the symbol is explicitly referenced. Since portable code cannot
8410 # rely on this symbol name, it's probably fine to never include it in
8411 # preloaded symbol tables.
8412 # Exclude shared library initialization/finalization symbols.
8413 extract_expsyms_cmds=
8414
8415 case $host_os in
8416 cygwin* | mingw* | pw32* | cegcc*)
8417 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8418 # When not using gcc, we currently assume that we are using
8419 # Microsoft Visual C++.
8420 if test "$GCC" != yes; then
8421 with_gnu_ld=no
8422 fi
8423 ;;
8424 interix*)
8425 # we just hope/assume this is gcc and not c89 (= MSVC++)
8426 with_gnu_ld=yes
8427 ;;
8428 openbsd*)
8429 with_gnu_ld=no
8430 ;;
8431 esac
8432
8433 ld_shlibs=yes
8434 if test "$with_gnu_ld" = yes; then
8435 # If archive_cmds runs LD, not CC, wlarc should be empty
8436 wlarc='${wl}'
8437
8438 # Set some defaults for GNU ld with shared library support. These
8439 # are reset later if shared libraries are not supported. Putting them
8440 # here allows them to be overridden if necessary.
8441 runpath_var=LD_RUN_PATH
8442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8443 export_dynamic_flag_spec='${wl}--export-dynamic'
8444 # ancient GNU ld didn't support --whole-archive et. al.
8445 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8446 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8447 else
8448 whole_archive_flag_spec=
8449 fi
8450 supports_anon_versioning=no
8451 case `$LD -v 2>&1` in
8452 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8453 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8454 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8455 *\ 2.11.*) ;; # other 2.11 versions
8456 *) supports_anon_versioning=yes ;;
8457 esac
8458
8459 # See if GNU ld supports shared libraries.
8460 case $host_os in
8461 aix[3-9]*)
8462 # On AIX/PPC, the GNU linker is very broken
8463 if test "$host_cpu" != ia64; then
8464 ld_shlibs=no
8465 cat <<_LT_EOF 1>&2
8466
8467 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8468 *** to be unable to reliably create shared libraries on AIX.
8469 *** Therefore, libtool is disabling shared libraries support. If you
8470 *** really care for shared libraries, you may want to modify your PATH
8471 *** so that a non-GNU linker is found, and then restart.
8472
8473 _LT_EOF
8474 fi
8475 ;;
8476
8477 amigaos*)
8478 case $host_cpu in
8479 powerpc)
8480 # see comment about AmigaOS4 .so support
8481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8482 archive_expsym_cmds=''
8483 ;;
8484 m68k)
8485 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)'
8486 hardcode_libdir_flag_spec='-L$libdir'
8487 hardcode_minus_L=yes
8488 ;;
8489 esac
8490 ;;
8491
8492 beos*)
8493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8494 allow_undefined_flag=unsupported
8495 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8496 # support --undefined. This deserves some investigation. FIXME
8497 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498 else
8499 ld_shlibs=no
8500 fi
8501 ;;
8502
8503 cygwin* | mingw* | pw32* | cegcc*)
8504 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8505 # as there is no search path for DLLs.
8506 hardcode_libdir_flag_spec='-L$libdir'
8507 allow_undefined_flag=unsupported
8508 always_export_symbols=no
8509 enable_shared_with_static_runtimes=yes
8510 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8511
8512 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8514 # If the export-symbols file already is a .def file (1st line
8515 # is EXPORTS), use it as is; otherwise, prepend...
8516 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8517 cp $export_symbols $output_objdir/$soname.def;
8518 else
8519 echo EXPORTS > $output_objdir/$soname.def;
8520 cat $export_symbols >> $output_objdir/$soname.def;
8521 fi~
8522 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8523 else
8524 ld_shlibs=no
8525 fi
8526 ;;
8527
8528 interix[3-9]*)
8529 hardcode_direct=no
8530 hardcode_shlibpath_var=no
8531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8532 export_dynamic_flag_spec='${wl}-E'
8533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8534 # Instead, shared libraries are loaded at an image base (0x10000000 by
8535 # default) and relocated if they conflict, which is a slow very memory
8536 # consuming and fragmenting process. To avoid this, we pick a random,
8537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8540 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'
8541 ;;
8542
8543 gnu* | linux* | tpf* | k*bsd*-gnu)
8544 tmp_diet=no
8545 if test "$host_os" = linux-dietlibc; then
8546 case $cc_basename in
8547 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8548 esac
8549 fi
8550 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8551 && test "$tmp_diet" = no
8552 then
8553 tmp_addflag=
8554 tmp_sharedflag='-shared'
8555 case $cc_basename,$host_cpu in
8556 pgcc*) # Portland Group C compiler
8557 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'
8558 tmp_addflag=' $pic_flag'
8559 ;;
8560 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8561 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'
8562 tmp_addflag=' $pic_flag -Mnomain' ;;
8563 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8564 tmp_addflag=' -i_dynamic' ;;
8565 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8566 tmp_addflag=' -i_dynamic -nofor_main' ;;
8567 ifc* | ifort*) # Intel Fortran compiler
8568 tmp_addflag=' -nofor_main' ;;
8569 lf95*) # Lahey Fortran 8.1
8570 whole_archive_flag_spec=
8571 tmp_sharedflag='--shared' ;;
8572 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8573 tmp_sharedflag='-qmkshrobj'
8574 tmp_addflag= ;;
8575 esac
8576 case `$CC -V 2>&1 | sed 5q` in
8577 *Sun\ C*) # Sun C 5.9
8578 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8579 compiler_needs_object=yes
8580 tmp_sharedflag='-G' ;;
8581 *Sun\ F*) # Sun Fortran 8.3
8582 tmp_sharedflag='-G' ;;
8583 esac
8584 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8585
8586 if test "x$supports_anon_versioning" = xyes; then
8587 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8588 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8589 echo "local: *; };" >> $output_objdir/$libname.ver~
8590 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8591 fi
8592
8593 case $cc_basename in
8594 xlf*)
8595 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8596 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8597 hardcode_libdir_flag_spec=
8598 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8599 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8600 if test "x$supports_anon_versioning" = xyes; then
8601 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8603 echo "local: *; };" >> $output_objdir/$libname.ver~
8604 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8605 fi
8606 ;;
8607 esac
8608 else
8609 ld_shlibs=no
8610 fi
8611 ;;
8612
8613 netbsd*)
8614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8615 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8616 wlarc=
8617 else
8618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8619 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8620 fi
8621 ;;
8622
8623 solaris*)
8624 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8625 ld_shlibs=no
8626 cat <<_LT_EOF 1>&2
8627
8628 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8629 *** create shared libraries on Solaris systems. Therefore, libtool
8630 *** is disabling shared libraries support. We urge you to upgrade GNU
8631 *** binutils to release 2.9.1 or newer. Another option is to modify
8632 *** your PATH or compiler configuration so that the native linker is
8633 *** used, and then restart.
8634
8635 _LT_EOF
8636 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8639 else
8640 ld_shlibs=no
8641 fi
8642 ;;
8643
8644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8645 case `$LD -v 2>&1` in
8646 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8647 ld_shlibs=no
8648 cat <<_LT_EOF 1>&2
8649
8650 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8651 *** reliably create shared libraries on SCO systems. Therefore, libtool
8652 *** is disabling shared libraries support. We urge you to upgrade GNU
8653 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8654 *** your PATH or compiler configuration so that the native linker is
8655 *** used, and then restart.
8656
8657 _LT_EOF
8658 ;;
8659 *)
8660 # For security reasons, it is highly recommended that you always
8661 # use absolute paths for naming shared libraries, and exclude the
8662 # DT_RUNPATH tag from executables and libraries. But doing so
8663 # requires that you compile everything twice, which is a pain.
8664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8668 else
8669 ld_shlibs=no
8670 fi
8671 ;;
8672 esac
8673 ;;
8674
8675 sunos4*)
8676 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8677 wlarc=
8678 hardcode_direct=yes
8679 hardcode_shlibpath_var=no
8680 ;;
8681
8682 *)
8683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8686 else
8687 ld_shlibs=no
8688 fi
8689 ;;
8690 esac
8691
8692 if test "$ld_shlibs" = no; then
8693 runpath_var=
8694 hardcode_libdir_flag_spec=
8695 export_dynamic_flag_spec=
8696 whole_archive_flag_spec=
8697 fi
8698 else
8699 # PORTME fill in a description of your system's linker (not GNU ld)
8700 case $host_os in
8701 aix3*)
8702 allow_undefined_flag=unsupported
8703 always_export_symbols=yes
8704 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'
8705 # Note: this linker hardcodes the directories in LIBPATH if there
8706 # are no directories specified by -L.
8707 hardcode_minus_L=yes
8708 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8709 # Neither direct hardcoding nor static linking is supported with a
8710 # broken collect2.
8711 hardcode_direct=unsupported
8712 fi
8713 ;;
8714
8715 aix[4-9]*)
8716 if test "$host_cpu" = ia64; then
8717 # On IA64, the linker does run time linking by default, so we don't
8718 # have to do anything special.
8719 aix_use_runtimelinking=no
8720 exp_sym_flag='-Bexport'
8721 no_entry_flag=""
8722 else
8723 # If we're using GNU nm, then we don't want the "-C" option.
8724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8725 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8726 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'
8727 else
8728 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'
8729 fi
8730 aix_use_runtimelinking=no
8731
8732 # Test if we are trying to use run time linking or normal
8733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8734 # need to do runtime linking.
8735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8736 for ld_flag in $LDFLAGS; do
8737 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8738 aix_use_runtimelinking=yes
8739 break
8740 fi
8741 done
8742 ;;
8743 esac
8744
8745 exp_sym_flag='-bexport'
8746 no_entry_flag='-bnoentry'
8747 fi
8748
8749 # When large executables or shared objects are built, AIX ld can
8750 # have problems creating the table of contents. If linking a library
8751 # or program results in "error TOC overflow" add -mminimal-toc to
8752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8754
8755 archive_cmds=''
8756 hardcode_direct=yes
8757 hardcode_direct_absolute=yes
8758 hardcode_libdir_separator=':'
8759 link_all_deplibs=yes
8760 file_list_spec='${wl}-f,'
8761
8762 if test "$GCC" = yes; then
8763 case $host_os in aix4.[012]|aix4.[012].*)
8764 # We only want to do this on AIX 4.2 and lower, the check
8765 # below for broken collect2 doesn't work under 4.3+
8766 collect2name=`${CC} -print-prog-name=collect2`
8767 if test -f "$collect2name" &&
8768 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8769 then
8770 # We have reworked collect2
8771 :
8772 else
8773 # We have old collect2
8774 hardcode_direct=unsupported
8775 # It fails to find uninstalled libraries when the uninstalled
8776 # path is not listed in the libpath. Setting hardcode_minus_L
8777 # to unsupported forces relinking
8778 hardcode_minus_L=yes
8779 hardcode_libdir_flag_spec='-L$libdir'
8780 hardcode_libdir_separator=
8781 fi
8782 ;;
8783 esac
8784 shared_flag='-shared'
8785 if test "$aix_use_runtimelinking" = yes; then
8786 shared_flag="$shared_flag "'${wl}-G'
8787 fi
8788 else
8789 # not using gcc
8790 if test "$host_cpu" = ia64; then
8791 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8792 # chokes on -Wl,-G. The following line is correct:
8793 shared_flag='-G'
8794 else
8795 if test "$aix_use_runtimelinking" = yes; then
8796 shared_flag='${wl}-G'
8797 else
8798 shared_flag='${wl}-bM:SRE'
8799 fi
8800 fi
8801 fi
8802
8803 export_dynamic_flag_spec='${wl}-bexpall'
8804 # It seems that -bexpall does not export symbols beginning with
8805 # underscore (_), so it is better to generate a list of symbols to export.
8806 always_export_symbols=yes
8807 if test "$aix_use_runtimelinking" = yes; then
8808 # Warning - without using the other runtime loading flags (-brtl),
8809 # -berok will link without error, but may produce a broken library.
8810 allow_undefined_flag='-berok'
8811 # Determine the default libpath from the value encoded in an
8812 # empty executable.
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h. */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819
8820 int
8821 main ()
8822 {
8823
8824 ;
8825 return 0;
8826 }
8827 _ACEOF
8828 rm -f conftest.$ac_objext conftest$ac_exeext
8829 if { (ac_try="$ac_link"
8830 case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8833 esac
8834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8835 $as_echo "$ac_try_echo") >&5
8836 (eval "$ac_link") 2>conftest.er1
8837 ac_status=$?
8838 grep -v '^ *+' conftest.er1 >conftest.err
8839 rm -f conftest.er1
8840 cat conftest.err >&5
8841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); } && {
8843 test -z "$ac_c_werror_flag" ||
8844 test ! -s conftest.err
8845 } && test -s conftest$ac_exeext && {
8846 test "$cross_compiling" = yes ||
8847 $as_test_x conftest$ac_exeext
8848 }; then
8849
8850 lt_aix_libpath_sed='
8851 /Import File Strings/,/^$/ {
8852 /^0/ {
8853 s/^0 *\(.*\)$/\1/
8854 p
8855 }
8856 }'
8857 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8858 # Check for a 64-bit object if we didn't find anything.
8859 if test -z "$aix_libpath"; then
8860 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8861 fi
8862 else
8863 $as_echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8865
8866
8867 fi
8868
8869 rm -rf conftest.dSYM
8870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8871 conftest$ac_exeext conftest.$ac_ext
8872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8873
8874 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8875 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8876 else
8877 if test "$host_cpu" = ia64; then
8878 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8879 allow_undefined_flag="-z nodefs"
8880 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"
8881 else
8882 # Determine the default libpath from the value encoded in an
8883 # empty executable.
8884 cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h. */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890
8891 int
8892 main ()
8893 {
8894
8895 ;
8896 return 0;
8897 }
8898 _ACEOF
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (ac_try="$ac_link"
8901 case "(($ac_try" in
8902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903 *) ac_try_echo=$ac_try;;
8904 esac
8905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8906 $as_echo "$ac_try_echo") >&5
8907 (eval "$ac_link") 2>conftest.er1
8908 ac_status=$?
8909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
8912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } && {
8914 test -z "$ac_c_werror_flag" ||
8915 test ! -s conftest.err
8916 } && test -s conftest$ac_exeext && {
8917 test "$cross_compiling" = yes ||
8918 $as_test_x conftest$ac_exeext
8919 }; then
8920
8921 lt_aix_libpath_sed='
8922 /Import File Strings/,/^$/ {
8923 /^0/ {
8924 s/^0 *\(.*\)$/\1/
8925 p
8926 }
8927 }'
8928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8929 # Check for a 64-bit object if we didn't find anything.
8930 if test -z "$aix_libpath"; then
8931 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8932 fi
8933 else
8934 $as_echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937
8938 fi
8939
8940 rm -rf conftest.dSYM
8941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8942 conftest$ac_exeext conftest.$ac_ext
8943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8944
8945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8946 # Warning - without using the other run time loading flags,
8947 # -berok will link without error, but may produce a broken library.
8948 no_undefined_flag=' ${wl}-bernotok'
8949 allow_undefined_flag=' ${wl}-berok'
8950 # Exported symbols can be pulled into shared objects from archives
8951 whole_archive_flag_spec='$convenience'
8952 archive_cmds_need_lc=yes
8953 # This is similar to how AIX traditionally builds its shared libraries.
8954 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'
8955 fi
8956 fi
8957 ;;
8958
8959 amigaos*)
8960 case $host_cpu in
8961 powerpc)
8962 # see comment about AmigaOS4 .so support
8963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964 archive_expsym_cmds=''
8965 ;;
8966 m68k)
8967 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)'
8968 hardcode_libdir_flag_spec='-L$libdir'
8969 hardcode_minus_L=yes
8970 ;;
8971 esac
8972 ;;
8973
8974 bsdi[45]*)
8975 export_dynamic_flag_spec=-rdynamic
8976 ;;
8977
8978 cygwin* | mingw* | pw32* | cegcc*)
8979 # When not using gcc, we currently assume that we are using
8980 # Microsoft Visual C++.
8981 # hardcode_libdir_flag_spec is actually meaningless, as there is
8982 # no search path for DLLs.
8983 hardcode_libdir_flag_spec=' '
8984 allow_undefined_flag=unsupported
8985 # Tell ltmain to make .lib files, not .a files.
8986 libext=lib
8987 # Tell ltmain to make .dll files, not .so files.
8988 shrext_cmds=".dll"
8989 # FIXME: Setting linknames here is a bad hack.
8990 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8991 # The linker will automatically build a .lib file if we build a DLL.
8992 old_archive_from_new_cmds='true'
8993 # FIXME: Should let the user specify the lib program.
8994 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8995 fix_srcfile_path='`cygpath -w "$srcfile"`'
8996 enable_shared_with_static_runtimes=yes
8997 ;;
8998
8999 darwin* | rhapsody*)
9000
9001
9002 archive_cmds_need_lc=no
9003 hardcode_direct=no
9004 hardcode_automatic=yes
9005 hardcode_shlibpath_var=unsupported
9006 whole_archive_flag_spec=''
9007 link_all_deplibs=yes
9008 allow_undefined_flag="$_lt_dar_allow_undefined"
9009 case $cc_basename in
9010 ifort*) _lt_dar_can_shared=yes ;;
9011 *) _lt_dar_can_shared=$GCC ;;
9012 esac
9013 if test "$_lt_dar_can_shared" = "yes"; then
9014 output_verbose_link_cmd=echo
9015 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9016 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9017 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9018 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9019
9020 else
9021 ld_shlibs=no
9022 fi
9023
9024 ;;
9025
9026 dgux*)
9027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028 hardcode_libdir_flag_spec='-L$libdir'
9029 hardcode_shlibpath_var=no
9030 ;;
9031
9032 freebsd1*)
9033 ld_shlibs=no
9034 ;;
9035
9036 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9037 # support. Future versions do this automatically, but an explicit c++rt0.o
9038 # does not break anything, and helps significantly (at the cost of a little
9039 # extra space).
9040 freebsd2.2*)
9041 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9042 hardcode_libdir_flag_spec='-R$libdir'
9043 hardcode_direct=yes
9044 hardcode_shlibpath_var=no
9045 ;;
9046
9047 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9048 freebsd2*)
9049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9050 hardcode_direct=yes
9051 hardcode_minus_L=yes
9052 hardcode_shlibpath_var=no
9053 ;;
9054
9055 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9056 freebsd* | dragonfly*)
9057 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9058 hardcode_libdir_flag_spec='-R$libdir'
9059 hardcode_direct=yes
9060 hardcode_shlibpath_var=no
9061 ;;
9062
9063 hpux9*)
9064 if test "$GCC" = yes; then
9065 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'
9066 else
9067 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'
9068 fi
9069 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9070 hardcode_libdir_separator=:
9071 hardcode_direct=yes
9072
9073 # hardcode_minus_L: Not really in the search PATH,
9074 # but as the default location of the library.
9075 hardcode_minus_L=yes
9076 export_dynamic_flag_spec='${wl}-E'
9077 ;;
9078
9079 hpux10*)
9080 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9081 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9082 else
9083 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9084 fi
9085 if test "$with_gnu_ld" = no; then
9086 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9087 hardcode_libdir_flag_spec_ld='+b $libdir'
9088 hardcode_libdir_separator=:
9089 hardcode_direct=yes
9090 hardcode_direct_absolute=yes
9091 export_dynamic_flag_spec='${wl}-E'
9092 # hardcode_minus_L: Not really in the search PATH,
9093 # but as the default location of the library.
9094 hardcode_minus_L=yes
9095 fi
9096 ;;
9097
9098 hpux11*)
9099 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9100 case $host_cpu in
9101 hppa*64*)
9102 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9103 ;;
9104 ia64*)
9105 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9106 ;;
9107 *)
9108 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9109 ;;
9110 esac
9111 else
9112 case $host_cpu in
9113 hppa*64*)
9114 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9115 ;;
9116 ia64*)
9117 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9118 ;;
9119 *)
9120 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9121 ;;
9122 esac
9123 fi
9124 if test "$with_gnu_ld" = no; then
9125 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9126 hardcode_libdir_separator=:
9127
9128 case $host_cpu in
9129 hppa*64*|ia64*)
9130 hardcode_direct=no
9131 hardcode_shlibpath_var=no
9132 ;;
9133 *)
9134 hardcode_direct=yes
9135 hardcode_direct_absolute=yes
9136 export_dynamic_flag_spec='${wl}-E'
9137
9138 # hardcode_minus_L: Not really in the search PATH,
9139 # but as the default location of the library.
9140 hardcode_minus_L=yes
9141 ;;
9142 esac
9143 fi
9144 ;;
9145
9146 irix5* | irix6* | nonstopux*)
9147 if test "$GCC" = yes; then
9148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9149 # Try to use the -exported_symbol ld option, if it does not
9150 # work, assume that -exports_file does not work either and
9151 # implicitly export all symbols.
9152 save_LDFLAGS="$LDFLAGS"
9153 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9154 cat >conftest.$ac_ext <<_ACEOF
9155 int foo(void) {}
9156 _ACEOF
9157 rm -f conftest.$ac_objext conftest$ac_exeext
9158 if { (ac_try="$ac_link"
9159 case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9162 esac
9163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9164 $as_echo "$ac_try_echo") >&5
9165 (eval "$ac_link") 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && {
9172 test -z "$ac_c_werror_flag" ||
9173 test ! -s conftest.err
9174 } && test -s conftest$ac_exeext && {
9175 test "$cross_compiling" = yes ||
9176 $as_test_x conftest$ac_exeext
9177 }; then
9178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9179
9180 else
9181 $as_echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9183
9184
9185 fi
9186
9187 rm -rf conftest.dSYM
9188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9189 conftest$ac_exeext conftest.$ac_ext
9190 LDFLAGS="$save_LDFLAGS"
9191 else
9192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9194 fi
9195 archive_cmds_need_lc='no'
9196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9197 hardcode_libdir_separator=:
9198 inherit_rpath=yes
9199 link_all_deplibs=yes
9200 ;;
9201
9202 netbsd*)
9203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9205 else
9206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9207 fi
9208 hardcode_libdir_flag_spec='-R$libdir'
9209 hardcode_direct=yes
9210 hardcode_shlibpath_var=no
9211 ;;
9212
9213 newsos6)
9214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9215 hardcode_direct=yes
9216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9217 hardcode_libdir_separator=:
9218 hardcode_shlibpath_var=no
9219 ;;
9220
9221 *nto* | *qnx*)
9222 ;;
9223
9224 openbsd*)
9225 if test -f /usr/libexec/ld.so; then
9226 hardcode_direct=yes
9227 hardcode_shlibpath_var=no
9228 hardcode_direct_absolute=yes
9229 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9231 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9233 export_dynamic_flag_spec='${wl}-E'
9234 else
9235 case $host_os in
9236 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9238 hardcode_libdir_flag_spec='-R$libdir'
9239 ;;
9240 *)
9241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9243 ;;
9244 esac
9245 fi
9246 else
9247 ld_shlibs=no
9248 fi
9249 ;;
9250
9251 os2*)
9252 hardcode_libdir_flag_spec='-L$libdir'
9253 hardcode_minus_L=yes
9254 allow_undefined_flag=unsupported
9255 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'
9256 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9257 ;;
9258
9259 osf3*)
9260 if test "$GCC" = yes; then
9261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9262 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9263 else
9264 allow_undefined_flag=' -expect_unresolved \*'
9265 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9266 fi
9267 archive_cmds_need_lc='no'
9268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9269 hardcode_libdir_separator=:
9270 ;;
9271
9272 osf4* | osf5*) # as osf3* with the addition of -msym flag
9273 if test "$GCC" = yes; then
9274 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9275 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9277 else
9278 allow_undefined_flag=' -expect_unresolved \*'
9279 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9280 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9281 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9282
9283 # Both c and cxx compiler support -rpath directly
9284 hardcode_libdir_flag_spec='-rpath $libdir'
9285 fi
9286 archive_cmds_need_lc='no'
9287 hardcode_libdir_separator=:
9288 ;;
9289
9290 solaris*)
9291 no_undefined_flag=' -z defs'
9292 if test "$GCC" = yes; then
9293 wlarc='${wl}'
9294 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9296 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9297 else
9298 case `$CC -V 2>&1` in
9299 *"Compilers 5.0"*)
9300 wlarc=''
9301 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9304 ;;
9305 *)
9306 wlarc='${wl}'
9307 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9309 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9310 ;;
9311 esac
9312 fi
9313 hardcode_libdir_flag_spec='-R$libdir'
9314 hardcode_shlibpath_var=no
9315 case $host_os in
9316 solaris2.[0-5] | solaris2.[0-5].*) ;;
9317 *)
9318 # The compiler driver will combine and reorder linker options,
9319 # but understands `-z linker_flag'. GCC discards it without `$wl',
9320 # but is careful enough not to reorder.
9321 # Supported since Solaris 2.6 (maybe 2.5.1?)
9322 if test "$GCC" = yes; then
9323 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9324 else
9325 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9326 fi
9327 ;;
9328 esac
9329 link_all_deplibs=yes
9330 ;;
9331
9332 sunos4*)
9333 if test "x$host_vendor" = xsequent; then
9334 # Use $CC to link under sequent, because it throws in some extra .o
9335 # files that make .init and .fini sections work.
9336 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9337 else
9338 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9339 fi
9340 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_direct=yes
9342 hardcode_minus_L=yes
9343 hardcode_shlibpath_var=no
9344 ;;
9345
9346 sysv4)
9347 case $host_vendor in
9348 sni)
9349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_direct=yes # is this really true???
9351 ;;
9352 siemens)
9353 ## LD is ld it makes a PLAMLIB
9354 ## CC just makes a GrossModule.
9355 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9356 reload_cmds='$CC -r -o $output$reload_objs'
9357 hardcode_direct=no
9358 ;;
9359 motorola)
9360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9361 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9362 ;;
9363 esac
9364 runpath_var='LD_RUN_PATH'
9365 hardcode_shlibpath_var=no
9366 ;;
9367
9368 sysv4.3*)
9369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 hardcode_shlibpath_var=no
9371 export_dynamic_flag_spec='-Bexport'
9372 ;;
9373
9374 sysv4*MP*)
9375 if test -d /usr/nec; then
9376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377 hardcode_shlibpath_var=no
9378 runpath_var=LD_RUN_PATH
9379 hardcode_runpath_var=yes
9380 ld_shlibs=yes
9381 fi
9382 ;;
9383
9384 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9385 no_undefined_flag='${wl}-z,text'
9386 archive_cmds_need_lc=no
9387 hardcode_shlibpath_var=no
9388 runpath_var='LD_RUN_PATH'
9389
9390 if test "$GCC" = yes; then
9391 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 else
9394 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9395 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 fi
9397 ;;
9398
9399 sysv5* | sco3.2v5* | sco5v6*)
9400 # Note: We can NOT use -z defs as we might desire, because we do not
9401 # link with -lc, and that would cause any symbols used from libc to
9402 # always be unresolved, which means just about no library would
9403 # ever link correctly. If we're not using GNU ld we use -z text
9404 # though, which does catch some bad symbols but isn't as heavy-handed
9405 # as -z defs.
9406 no_undefined_flag='${wl}-z,text'
9407 allow_undefined_flag='${wl}-z,nodefs'
9408 archive_cmds_need_lc=no
9409 hardcode_shlibpath_var=no
9410 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9411 hardcode_libdir_separator=':'
9412 link_all_deplibs=yes
9413 export_dynamic_flag_spec='${wl}-Bexport'
9414 runpath_var='LD_RUN_PATH'
9415
9416 if test "$GCC" = yes; then
9417 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 else
9420 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9421 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422 fi
9423 ;;
9424
9425 uts4*)
9426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427 hardcode_libdir_flag_spec='-L$libdir'
9428 hardcode_shlibpath_var=no
9429 ;;
9430
9431 *)
9432 ld_shlibs=no
9433 ;;
9434 esac
9435
9436 if test x$host_vendor = xsni; then
9437 case $host in
9438 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9439 export_dynamic_flag_spec='${wl}-Blargedynsym'
9440 ;;
9441 esac
9442 fi
9443 fi
9444
9445 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9446 $as_echo "$ld_shlibs" >&6; }
9447 test "$ld_shlibs" = no && can_build_shared=no
9448
9449 with_gnu_ld=$with_gnu_ld
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465 #
9466 # Do we need to explicitly link libc?
9467 #
9468 case "x$archive_cmds_need_lc" in
9469 x|xyes)
9470 # Assume -lc should be added
9471 archive_cmds_need_lc=yes
9472
9473 if test "$enable_shared" = yes && test "$GCC" = yes; then
9474 case $archive_cmds in
9475 *'~'*)
9476 # FIXME: we may have to deal with multi-command sequences.
9477 ;;
9478 '$CC '*)
9479 # Test whether the compiler implicitly links with -lc since on some
9480 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9481 # to ld, don't add -lc before -lgcc.
9482 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9483 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9484 $RM conftest*
9485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9486
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>&5
9489 ac_status=$?
9490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } 2>conftest.err; then
9492 soname=conftest
9493 lib=conftest
9494 libobjs=conftest.$ac_objext
9495 deplibs=
9496 wl=$lt_prog_compiler_wl
9497 pic_flag=$lt_prog_compiler_pic
9498 compiler_flags=-v
9499 linker_flags=-v
9500 verstring=
9501 output_objdir=.
9502 libname=conftest
9503 lt_save_allow_undefined_flag=$allow_undefined_flag
9504 allow_undefined_flag=
9505 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9506 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9507 ac_status=$?
9508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); }
9510 then
9511 archive_cmds_need_lc=no
9512 else
9513 archive_cmds_need_lc=yes
9514 fi
9515 allow_undefined_flag=$lt_save_allow_undefined_flag
9516 else
9517 cat conftest.err 1>&5
9518 fi
9519 $RM conftest*
9520 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9521 $as_echo "$archive_cmds_need_lc" >&6; }
9522 ;;
9523 esac
9524 fi
9525 ;;
9526 esac
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9685 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9686
9687 if test "$GCC" = yes; then
9688 case $host_os in
9689 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9690 *) lt_awk_arg="/^libraries:/" ;;
9691 esac
9692 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9693 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9694 # if the path contains ";" then we assume it to be the separator
9695 # otherwise default to the standard path separator (i.e. ":") - it is
9696 # assumed that no part of a normal pathname contains ";" but that should
9697 # okay in the real world where ";" in dirpaths is itself problematic.
9698 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9699 else
9700 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9701 fi
9702 # Ok, now we have the path, separated by spaces, we can step through it
9703 # and add multilib dir if necessary.
9704 lt_tmp_lt_search_path_spec=
9705 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9706 for lt_sys_path in $lt_search_path_spec; do
9707 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9708 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9709 else
9710 test -d "$lt_sys_path" && \
9711 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9712 fi
9713 done
9714 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9715 BEGIN {RS=" "; FS="/|\n";} {
9716 lt_foo="";
9717 lt_count=0;
9718 for (lt_i = NF; lt_i > 0; lt_i--) {
9719 if ($lt_i != "" && $lt_i != ".") {
9720 if ($lt_i == "..") {
9721 lt_count++;
9722 } else {
9723 if (lt_count == 0) {
9724 lt_foo="/" $lt_i lt_foo;
9725 } else {
9726 lt_count--;
9727 }
9728 }
9729 }
9730 }
9731 if (lt_foo != "") { lt_freq[lt_foo]++; }
9732 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9733 }'`
9734 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9735 else
9736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9737 fi
9738 library_names_spec=
9739 libname_spec='lib$name'
9740 soname_spec=
9741 shrext_cmds=".so"
9742 postinstall_cmds=
9743 postuninstall_cmds=
9744 finish_cmds=
9745 finish_eval=
9746 shlibpath_var=
9747 shlibpath_overrides_runpath=unknown
9748 version_type=none
9749 dynamic_linker="$host_os ld.so"
9750 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9751 need_lib_prefix=unknown
9752 hardcode_into_libs=no
9753
9754 # when you set need_version to no, make sure it does not cause -set_version
9755 # flags to be left without arguments
9756 need_version=unknown
9757
9758 case $host_os in
9759 aix3*)
9760 version_type=linux
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9762 shlibpath_var=LIBPATH
9763
9764 # AIX 3 has no versioning support, so we append a major version to the name.
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 ;;
9767
9768 aix[4-9]*)
9769 version_type=linux
9770 need_lib_prefix=no
9771 need_version=no
9772 hardcode_into_libs=yes
9773 if test "$host_cpu" = ia64; then
9774 # AIX 5 supports IA64
9775 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9776 shlibpath_var=LD_LIBRARY_PATH
9777 else
9778 # With GCC up to 2.95.x, collect2 would create an import file
9779 # for dependence libraries. The import file would start with
9780 # the line `#! .'. This would cause the generated library to
9781 # depend on `.', always an invalid library. This was fixed in
9782 # development snapshots of GCC prior to 3.0.
9783 case $host_os in
9784 aix4 | aix4.[01] | aix4.[01].*)
9785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9786 echo ' yes '
9787 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9788 :
9789 else
9790 can_build_shared=no
9791 fi
9792 ;;
9793 esac
9794 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9795 # soname into executable. Probably we can add versioning support to
9796 # collect2, so additional links can be useful in future.
9797 if test "$aix_use_runtimelinking" = yes; then
9798 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9799 # instead of lib<name>.a to let people know that these are not
9800 # typical AIX shared libraries.
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802 else
9803 # We preserve .a as extension for shared libraries through AIX4.2
9804 # and later when we are not doing run time linking.
9805 library_names_spec='${libname}${release}.a $libname.a'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 fi
9808 shlibpath_var=LIBPATH
9809 fi
9810 ;;
9811
9812 amigaos*)
9813 case $host_cpu in
9814 powerpc)
9815 # Since July 2007 AmigaOS4 officially supports .so libraries.
9816 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818 ;;
9819 m68k)
9820 library_names_spec='$libname.ixlibrary $libname.a'
9821 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9822 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'
9823 ;;
9824 esac
9825 ;;
9826
9827 beos*)
9828 library_names_spec='${libname}${shared_ext}'
9829 dynamic_linker="$host_os ld.so"
9830 shlibpath_var=LIBRARY_PATH
9831 ;;
9832
9833 bsdi[45]*)
9834 version_type=linux
9835 need_version=no
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837 soname_spec='${libname}${release}${shared_ext}$major'
9838 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9841 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9842 # the default ld.so.conf also contains /usr/contrib/lib and
9843 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9844 # libtool to hard-code these into programs
9845 ;;
9846
9847 cygwin* | mingw* | pw32* | cegcc*)
9848 version_type=windows
9849 shrext_cmds=".dll"
9850 need_version=no
9851 need_lib_prefix=no
9852
9853 case $GCC,$host_os in
9854 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9855 library_names_spec='$libname.dll.a'
9856 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9857 postinstall_cmds='base_file=`basename \${file}`~
9858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9859 dldir=$destdir/`dirname \$dlpath`~
9860 test -d \$dldir || mkdir -p \$dldir~
9861 $install_prog $dir/$dlname \$dldir/$dlname~
9862 chmod a+x \$dldir/$dlname~
9863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9864 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9865 fi'
9866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9867 dlpath=$dir/\$dldll~
9868 $RM \$dlpath'
9869 shlibpath_overrides_runpath=yes
9870
9871 case $host_os in
9872 cygwin*)
9873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9874 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9875 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9876 ;;
9877 mingw* | cegcc*)
9878 # MinGW DLLs use traditional 'lib' prefix
9879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9880 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9881 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9882 # It is most probably a Windows format PATH printed by
9883 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9884 # path with ; separators, and with drive letters. We can handle the
9885 # drive letters (cygwin fileutils understands them), so leave them,
9886 # especially as we might pass files found there to a mingw objdump,
9887 # which wouldn't understand a cygwinified path. Ahh.
9888 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9889 else
9890 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9891 fi
9892 ;;
9893 pw32*)
9894 # pw32 DLLs use 'pw' prefix rather than 'lib'
9895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9896 ;;
9897 esac
9898 ;;
9899
9900 *)
9901 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9902 ;;
9903 esac
9904 dynamic_linker='Win32 ld.exe'
9905 # FIXME: first we should search . and the directory the executable is in
9906 shlibpath_var=PATH
9907 ;;
9908
9909 darwin* | rhapsody*)
9910 dynamic_linker="$host_os dyld"
9911 version_type=darwin
9912 need_lib_prefix=no
9913 need_version=no
9914 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9915 soname_spec='${libname}${release}${major}$shared_ext'
9916 shlibpath_overrides_runpath=yes
9917 shlibpath_var=DYLD_LIBRARY_PATH
9918 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9919
9920 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9921 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9922 ;;
9923
9924 dgux*)
9925 version_type=linux
9926 need_lib_prefix=no
9927 need_version=no
9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9929 soname_spec='${libname}${release}${shared_ext}$major'
9930 shlibpath_var=LD_LIBRARY_PATH
9931 ;;
9932
9933 freebsd1*)
9934 dynamic_linker=no
9935 ;;
9936
9937 freebsd* | dragonfly*)
9938 # DragonFly does not have aout. When/if they implement a new
9939 # versioning mechanism, adjust this.
9940 if test -x /usr/bin/objformat; then
9941 objformat=`/usr/bin/objformat`
9942 else
9943 case $host_os in
9944 freebsd[123]*) objformat=aout ;;
9945 *) objformat=elf ;;
9946 esac
9947 fi
9948 version_type=freebsd-$objformat
9949 case $version_type in
9950 freebsd-elf*)
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9952 need_version=no
9953 need_lib_prefix=no
9954 ;;
9955 freebsd-*)
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9957 need_version=yes
9958 ;;
9959 esac
9960 shlibpath_var=LD_LIBRARY_PATH
9961 case $host_os in
9962 freebsd2*)
9963 shlibpath_overrides_runpath=yes
9964 ;;
9965 freebsd3.[01]* | freebsdelf3.[01]*)
9966 shlibpath_overrides_runpath=yes
9967 hardcode_into_libs=yes
9968 ;;
9969 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9970 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9971 shlibpath_overrides_runpath=no
9972 hardcode_into_libs=yes
9973 ;;
9974 *) # from 4.6 on, and DragonFly
9975 shlibpath_overrides_runpath=yes
9976 hardcode_into_libs=yes
9977 ;;
9978 esac
9979 ;;
9980
9981 gnu*)
9982 version_type=linux
9983 need_lib_prefix=no
9984 need_version=no
9985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9986 soname_spec='${libname}${release}${shared_ext}$major'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 hardcode_into_libs=yes
9989 ;;
9990
9991 hpux9* | hpux10* | hpux11*)
9992 # Give a soname corresponding to the major version so that dld.sl refuses to
9993 # link against other versions.
9994 version_type=sunos
9995 need_lib_prefix=no
9996 need_version=no
9997 case $host_cpu in
9998 ia64*)
9999 shrext_cmds='.so'
10000 hardcode_into_libs=yes
10001 dynamic_linker="$host_os dld.so"
10002 shlibpath_var=LD_LIBRARY_PATH
10003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 if test "X$HPUX_IA64_MODE" = X32; then
10007 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10008 else
10009 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10010 fi
10011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10012 ;;
10013 hppa*64*)
10014 shrext_cmds='.sl'
10015 hardcode_into_libs=yes
10016 dynamic_linker="$host_os dld.sl"
10017 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10023 ;;
10024 *)
10025 shrext_cmds='.sl'
10026 dynamic_linker="$host_os dld.sl"
10027 shlibpath_var=SHLIB_PATH
10028 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 ;;
10032 esac
10033 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10034 postinstall_cmds='chmod 555 $lib'
10035 ;;
10036
10037 interix[3-9]*)
10038 version_type=linux
10039 need_lib_prefix=no
10040 need_version=no
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10044 shlibpath_var=LD_LIBRARY_PATH
10045 shlibpath_overrides_runpath=no
10046 hardcode_into_libs=yes
10047 ;;
10048
10049 irix5* | irix6* | nonstopux*)
10050 case $host_os in
10051 nonstopux*) version_type=nonstopux ;;
10052 *)
10053 if test "$lt_cv_prog_gnu_ld" = yes; then
10054 version_type=linux
10055 else
10056 version_type=irix
10057 fi ;;
10058 esac
10059 need_lib_prefix=no
10060 need_version=no
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10063 case $host_os in
10064 irix5* | nonstopux*)
10065 libsuff= shlibsuff=
10066 ;;
10067 *)
10068 case $LD in # libtool.m4 will add one of these switches to LD
10069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10070 libsuff= shlibsuff= libmagic=32-bit;;
10071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10072 libsuff=32 shlibsuff=N32 libmagic=N32;;
10073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10075 *) libsuff= shlibsuff= libmagic=never-match;;
10076 esac
10077 ;;
10078 esac
10079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10080 shlibpath_overrides_runpath=no
10081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10083 hardcode_into_libs=yes
10084 ;;
10085
10086 # No shared lib support for Linux oldld, aout, or coff.
10087 linux*oldld* | linux*aout* | linux*coff*)
10088 dynamic_linker=no
10089 ;;
10090
10091 # This must be Linux ELF.
10092 linux* | k*bsd*-gnu)
10093 version_type=linux
10094 need_lib_prefix=no
10095 need_version=no
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 soname_spec='${libname}${release}${shared_ext}$major'
10098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10099 shlibpath_var=LD_LIBRARY_PATH
10100 shlibpath_overrides_runpath=no
10101 # Some binutils ld are patched to set DT_RUNPATH
10102 save_LDFLAGS=$LDFLAGS
10103 save_libdir=$libdir
10104 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10105 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10106 cat >conftest.$ac_ext <<_ACEOF
10107 /* confdefs.h. */
10108 _ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112
10113 int
10114 main ()
10115 {
10116
10117 ;
10118 return 0;
10119 }
10120 _ACEOF
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (ac_try="$ac_link"
10123 case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126 esac
10127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10128 $as_echo "$ac_try_echo") >&5
10129 (eval "$ac_link") 2>conftest.er1
10130 ac_status=$?
10131 grep -v '^ *+' conftest.er1 >conftest.err
10132 rm -f conftest.er1
10133 cat conftest.err >&5
10134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } && {
10136 test -z "$ac_c_werror_flag" ||
10137 test ! -s conftest.err
10138 } && test -s conftest$ac_exeext && {
10139 test "$cross_compiling" = yes ||
10140 $as_test_x conftest$ac_exeext
10141 }; then
10142 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10143 shlibpath_overrides_runpath=yes
10144 fi
10145
10146 else
10147 $as_echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10149
10150
10151 fi
10152
10153 rm -rf conftest.dSYM
10154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10155 conftest$ac_exeext conftest.$ac_ext
10156 LDFLAGS=$save_LDFLAGS
10157 libdir=$save_libdir
10158
10159 # This implies no fast_install, which is unacceptable.
10160 # Some rework will be needed to allow for fast_install
10161 # before this can be enabled.
10162 hardcode_into_libs=yes
10163
10164 # Add ABI-specific directories to the system library path.
10165 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10166
10167 # Append ld.so.conf contents to the search path
10168 if test -f /etc/ld.so.conf; then
10169 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10170 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10171 fi
10172
10173 # We used to test for /lib/ld.so.1 and disable shared libraries on
10174 # powerpc, because MkLinux only supported shared libraries with the
10175 # GNU dynamic linker. Since this was broken with cross compilers,
10176 # most powerpc-linux boxes support dynamic linking these days and
10177 # people can always --disable-shared, the test was removed, and we
10178 # assume the GNU/Linux dynamic linker is in use.
10179 dynamic_linker='GNU/Linux ld.so'
10180 ;;
10181
10182 netbsd*)
10183 version_type=sunos
10184 need_lib_prefix=no
10185 need_version=no
10186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10189 dynamic_linker='NetBSD (a.out) ld.so'
10190 else
10191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10192 soname_spec='${libname}${release}${shared_ext}$major'
10193 dynamic_linker='NetBSD ld.elf_so'
10194 fi
10195 shlibpath_var=LD_LIBRARY_PATH
10196 shlibpath_overrides_runpath=yes
10197 hardcode_into_libs=yes
10198 ;;
10199
10200 newsos6)
10201 version_type=linux
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=yes
10205 ;;
10206
10207 *nto* | *qnx*)
10208 version_type=qnx
10209 need_lib_prefix=no
10210 need_version=no
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 shlibpath_var=LD_LIBRARY_PATH
10214 shlibpath_overrides_runpath=no
10215 hardcode_into_libs=yes
10216 dynamic_linker='ldqnx.so'
10217 ;;
10218
10219 openbsd*)
10220 version_type=sunos
10221 sys_lib_dlsearch_path_spec="/usr/lib"
10222 need_lib_prefix=no
10223 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10224 case $host_os in
10225 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10226 *) need_version=no ;;
10227 esac
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10232 case $host_os in
10233 openbsd2.[89] | openbsd2.[89].*)
10234 shlibpath_overrides_runpath=no
10235 ;;
10236 *)
10237 shlibpath_overrides_runpath=yes
10238 ;;
10239 esac
10240 else
10241 shlibpath_overrides_runpath=yes
10242 fi
10243 ;;
10244
10245 os2*)
10246 libname_spec='$name'
10247 shrext_cmds=".dll"
10248 need_lib_prefix=no
10249 library_names_spec='$libname${shared_ext} $libname.a'
10250 dynamic_linker='OS/2 ld.exe'
10251 shlibpath_var=LIBPATH
10252 ;;
10253
10254 osf3* | osf4* | osf5*)
10255 version_type=osf
10256 need_lib_prefix=no
10257 need_version=no
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 shlibpath_var=LD_LIBRARY_PATH
10261 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10262 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10263 ;;
10264
10265 rdos*)
10266 dynamic_linker=no
10267 ;;
10268
10269 solaris*)
10270 version_type=linux
10271 need_lib_prefix=no
10272 need_version=no
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 shlibpath_overrides_runpath=yes
10277 hardcode_into_libs=yes
10278 # ldd complains unless libraries are executable
10279 postinstall_cmds='chmod +x $lib'
10280 ;;
10281
10282 sunos4*)
10283 version_type=sunos
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10285 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath=yes
10288 if test "$with_gnu_ld" = yes; then
10289 need_lib_prefix=no
10290 fi
10291 need_version=yes
10292 ;;
10293
10294 sysv4 | sysv4.3*)
10295 version_type=linux
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 case $host_vendor in
10300 sni)
10301 shlibpath_overrides_runpath=no
10302 need_lib_prefix=no
10303 runpath_var=LD_RUN_PATH
10304 ;;
10305 siemens)
10306 need_lib_prefix=no
10307 ;;
10308 motorola)
10309 need_lib_prefix=no
10310 need_version=no
10311 shlibpath_overrides_runpath=no
10312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10313 ;;
10314 esac
10315 ;;
10316
10317 sysv4*MP*)
10318 if test -d /usr/nec ;then
10319 version_type=linux
10320 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10321 soname_spec='$libname${shared_ext}.$major'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 fi
10324 ;;
10325
10326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10327 version_type=freebsd-elf
10328 need_lib_prefix=no
10329 need_version=no
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 shlibpath_overrides_runpath=yes
10334 hardcode_into_libs=yes
10335 if test "$with_gnu_ld" = yes; then
10336 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10337 else
10338 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10339 case $host_os in
10340 sco3.2v5*)
10341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10342 ;;
10343 esac
10344 fi
10345 sys_lib_dlsearch_path_spec='/usr/lib'
10346 ;;
10347
10348 tpf*)
10349 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10350 version_type=linux
10351 need_lib_prefix=no
10352 need_version=no
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 shlibpath_overrides_runpath=no
10356 hardcode_into_libs=yes
10357 ;;
10358
10359 uts4*)
10360 version_type=linux
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 shlibpath_var=LD_LIBRARY_PATH
10364 ;;
10365
10366 *)
10367 dynamic_linker=no
10368 ;;
10369 esac
10370 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10371 $as_echo "$dynamic_linker" >&6; }
10372 test "$dynamic_linker" = no && can_build_shared=no
10373
10374 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10375 if test "$GCC" = yes; then
10376 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10377 fi
10378
10379 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10380 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10381 fi
10382 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10383 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10384 fi
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10473 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10474 hardcode_action=
10475 if test -n "$hardcode_libdir_flag_spec" ||
10476 test -n "$runpath_var" ||
10477 test "X$hardcode_automatic" = "Xyes" ; then
10478
10479 # We can hardcode non-existent directories.
10480 if test "$hardcode_direct" != no &&
10481 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10482 # have to relink, otherwise we might link with an installed library
10483 # when we should be linking with a yet-to-be-installed one
10484 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10485 test "$hardcode_minus_L" != no; then
10486 # Linking always hardcodes the temporary library directory.
10487 hardcode_action=relink
10488 else
10489 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10490 hardcode_action=immediate
10491 fi
10492 else
10493 # We cannot hardcode anything, or else we can only hardcode existing
10494 # directories.
10495 hardcode_action=unsupported
10496 fi
10497 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10498 $as_echo "$hardcode_action" >&6; }
10499
10500 if test "$hardcode_action" = relink ||
10501 test "$inherit_rpath" = yes; then
10502 # Fast installation is not supported
10503 enable_fast_install=no
10504 elif test "$shlibpath_overrides_runpath" = yes ||
10505 test "$enable_shared" = no; then
10506 # Fast installation is not necessary
10507 enable_fast_install=needless
10508 fi
10509
10510
10511
10512
10513
10514
10515 if test "x$enable_dlopen" != xyes; then
10516 enable_dlopen=unknown
10517 enable_dlopen_self=unknown
10518 enable_dlopen_self_static=unknown
10519 else
10520 lt_cv_dlopen=no
10521 lt_cv_dlopen_libs=
10522
10523 case $host_os in
10524 beos*)
10525 lt_cv_dlopen="load_add_on"
10526 lt_cv_dlopen_libs=
10527 lt_cv_dlopen_self=yes
10528 ;;
10529
10530 mingw* | pw32* | cegcc*)
10531 lt_cv_dlopen="LoadLibrary"
10532 lt_cv_dlopen_libs=
10533 ;;
10534
10535 cygwin*)
10536 lt_cv_dlopen="dlopen"
10537 lt_cv_dlopen_libs=
10538 ;;
10539
10540 darwin*)
10541 # if libdl is installed we need to link against it
10542 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10543 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10544 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10545 $as_echo_n "(cached) " >&6
10546 else
10547 ac_check_lib_save_LIBS=$LIBS
10548 LIBS="-ldl $LIBS"
10549 cat >conftest.$ac_ext <<_ACEOF
10550 /* confdefs.h. */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555
10556 /* Override any GCC internal prototype to avoid an error.
10557 Use char because int might match the return type of a GCC
10558 builtin and then its argument prototype would still apply. */
10559 #ifdef __cplusplus
10560 extern "C"
10561 #endif
10562 char dlopen ();
10563 int
10564 main ()
10565 {
10566 return dlopen ();
10567 ;
10568 return 0;
10569 }
10570 _ACEOF
10571 rm -f conftest.$ac_objext conftest$ac_exeext
10572 if { (ac_try="$ac_link"
10573 case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10576 esac
10577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10578 $as_echo "$ac_try_echo") >&5
10579 (eval "$ac_link") 2>conftest.er1
10580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } && {
10586 test -z "$ac_c_werror_flag" ||
10587 test ! -s conftest.err
10588 } && test -s conftest$ac_exeext && {
10589 test "$cross_compiling" = yes ||
10590 $as_test_x conftest$ac_exeext
10591 }; then
10592 ac_cv_lib_dl_dlopen=yes
10593 else
10594 $as_echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10596
10597 ac_cv_lib_dl_dlopen=no
10598 fi
10599
10600 rm -rf conftest.dSYM
10601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10602 conftest$ac_exeext conftest.$ac_ext
10603 LIBS=$ac_check_lib_save_LIBS
10604 fi
10605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10606 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10607 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10608 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10609 else
10610
10611 lt_cv_dlopen="dyld"
10612 lt_cv_dlopen_libs=
10613 lt_cv_dlopen_self=yes
10614
10615 fi
10616
10617 ;;
10618
10619 *)
10620 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10621 $as_echo_n "checking for shl_load... " >&6; }
10622 if test "${ac_cv_func_shl_load+set}" = set; then
10623 $as_echo_n "(cached) " >&6
10624 else
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10633 #define shl_load innocuous_shl_load
10634
10635 /* System header to define __stub macros and hopefully few prototypes,
10636 which can conflict with char shl_load (); below.
10637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10638 <limits.h> exists even on freestanding compilers. */
10639
10640 #ifdef __STDC__
10641 # include <limits.h>
10642 #else
10643 # include <assert.h>
10644 #endif
10645
10646 #undef shl_load
10647
10648 /* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 char shl_load ();
10655 /* The GNU C library defines this for functions which it implements
10656 to always fail with ENOSYS. Some functions are actually named
10657 something starting with __ and the normal name is an alias. */
10658 #if defined __stub_shl_load || defined __stub___shl_load
10659 choke me
10660 #endif
10661
10662 int
10663 main ()
10664 {
10665 return shl_load ();
10666 ;
10667 return 0;
10668 }
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10675 esac
10676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10677 $as_echo "$ac_try_echo") >&5
10678 (eval "$ac_link") 2>conftest.er1
10679 ac_status=$?
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
10683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } && {
10685 test -z "$ac_c_werror_flag" ||
10686 test ! -s conftest.err
10687 } && test -s conftest$ac_exeext && {
10688 test "$cross_compiling" = yes ||
10689 $as_test_x conftest$ac_exeext
10690 }; then
10691 ac_cv_func_shl_load=yes
10692 else
10693 $as_echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10695
10696 ac_cv_func_shl_load=no
10697 fi
10698
10699 rm -rf conftest.dSYM
10700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10701 conftest$ac_exeext conftest.$ac_ext
10702 fi
10703 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10704 $as_echo "$ac_cv_func_shl_load" >&6; }
10705 if test "x$ac_cv_func_shl_load" = x""yes; then
10706 lt_cv_dlopen="shl_load"
10707 else
10708 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10709 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10710 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10711 $as_echo_n "(cached) " >&6
10712 else
10713 ac_check_lib_save_LIBS=$LIBS
10714 LIBS="-ldld $LIBS"
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h. */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721
10722 /* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10725 #ifdef __cplusplus
10726 extern "C"
10727 #endif
10728 char shl_load ();
10729 int
10730 main ()
10731 {
10732 return shl_load ();
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (ac_try="$ac_link"
10739 case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10742 esac
10743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10744 $as_echo "$ac_try_echo") >&5
10745 (eval "$ac_link") 2>conftest.er1
10746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
10750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } && {
10752 test -z "$ac_c_werror_flag" ||
10753 test ! -s conftest.err
10754 } && test -s conftest$ac_exeext && {
10755 test "$cross_compiling" = yes ||
10756 $as_test_x conftest$ac_exeext
10757 }; then
10758 ac_cv_lib_dld_shl_load=yes
10759 else
10760 $as_echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763 ac_cv_lib_dld_shl_load=no
10764 fi
10765
10766 rm -rf conftest.dSYM
10767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768 conftest$ac_exeext conftest.$ac_ext
10769 LIBS=$ac_check_lib_save_LIBS
10770 fi
10771 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10772 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10773 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10774 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10775 else
10776 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10777 $as_echo_n "checking for dlopen... " >&6; }
10778 if test "${ac_cv_func_dlopen+set}" = set; then
10779 $as_echo_n "(cached) " >&6
10780 else
10781 cat >conftest.$ac_ext <<_ACEOF
10782 /* confdefs.h. */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10789 #define dlopen innocuous_dlopen
10790
10791 /* System header to define __stub macros and hopefully few prototypes,
10792 which can conflict with char dlopen (); below.
10793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10794 <limits.h> exists even on freestanding compilers. */
10795
10796 #ifdef __STDC__
10797 # include <limits.h>
10798 #else
10799 # include <assert.h>
10800 #endif
10801
10802 #undef dlopen
10803
10804 /* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10807 #ifdef __cplusplus
10808 extern "C"
10809 #endif
10810 char dlopen ();
10811 /* The GNU C library defines this for functions which it implements
10812 to always fail with ENOSYS. Some functions are actually named
10813 something starting with __ and the normal name is an alias. */
10814 #if defined __stub_dlopen || defined __stub___dlopen
10815 choke me
10816 #endif
10817
10818 int
10819 main ()
10820 {
10821 return dlopen ();
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831 esac
10832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10833 $as_echo "$ac_try_echo") >&5
10834 (eval "$ac_link") 2>conftest.er1
10835 ac_status=$?
10836 grep -v '^ *+' conftest.er1 >conftest.err
10837 rm -f conftest.er1
10838 cat conftest.err >&5
10839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } && {
10841 test -z "$ac_c_werror_flag" ||
10842 test ! -s conftest.err
10843 } && test -s conftest$ac_exeext && {
10844 test "$cross_compiling" = yes ||
10845 $as_test_x conftest$ac_exeext
10846 }; then
10847 ac_cv_func_dlopen=yes
10848 else
10849 $as_echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10851
10852 ac_cv_func_dlopen=no
10853 fi
10854
10855 rm -rf conftest.dSYM
10856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10857 conftest$ac_exeext conftest.$ac_ext
10858 fi
10859 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10860 $as_echo "$ac_cv_func_dlopen" >&6; }
10861 if test "x$ac_cv_func_dlopen" = x""yes; then
10862 lt_cv_dlopen="dlopen"
10863 else
10864 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10865 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10867 $as_echo_n "(cached) " >&6
10868 else
10869 ac_check_lib_save_LIBS=$LIBS
10870 LIBS="-ldl $LIBS"
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h. */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 char dlopen ();
10885 int
10886 main ()
10887 {
10888 return dlopen ();
10889 ;
10890 return 0;
10891 }
10892 _ACEOF
10893 rm -f conftest.$ac_objext conftest$ac_exeext
10894 if { (ac_try="$ac_link"
10895 case "(($ac_try" in
10896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10898 esac
10899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10900 $as_echo "$ac_try_echo") >&5
10901 (eval "$ac_link") 2>conftest.er1
10902 ac_status=$?
10903 grep -v '^ *+' conftest.er1 >conftest.err
10904 rm -f conftest.er1
10905 cat conftest.err >&5
10906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } && {
10908 test -z "$ac_c_werror_flag" ||
10909 test ! -s conftest.err
10910 } && test -s conftest$ac_exeext && {
10911 test "$cross_compiling" = yes ||
10912 $as_test_x conftest$ac_exeext
10913 }; then
10914 ac_cv_lib_dl_dlopen=yes
10915 else
10916 $as_echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10918
10919 ac_cv_lib_dl_dlopen=no
10920 fi
10921
10922 rm -rf conftest.dSYM
10923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10924 conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10926 fi
10927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10928 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10929 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10931 else
10932 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10933 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10934 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10935 $as_echo_n "(cached) " >&6
10936 else
10937 ac_check_lib_save_LIBS=$LIBS
10938 LIBS="-lsvld $LIBS"
10939 cat >conftest.$ac_ext <<_ACEOF
10940 /* confdefs.h. */
10941 _ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945
10946 /* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10949 #ifdef __cplusplus
10950 extern "C"
10951 #endif
10952 char dlopen ();
10953 int
10954 main ()
10955 {
10956 return dlopen ();
10957 ;
10958 return 0;
10959 }
10960 _ACEOF
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (ac_try="$ac_link"
10963 case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10966 esac
10967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10968 $as_echo "$ac_try_echo") >&5
10969 (eval "$ac_link") 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest$ac_exeext && {
10979 test "$cross_compiling" = yes ||
10980 $as_test_x conftest$ac_exeext
10981 }; then
10982 ac_cv_lib_svld_dlopen=yes
10983 else
10984 $as_echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10986
10987 ac_cv_lib_svld_dlopen=no
10988 fi
10989
10990 rm -rf conftest.dSYM
10991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10992 conftest$ac_exeext conftest.$ac_ext
10993 LIBS=$ac_check_lib_save_LIBS
10994 fi
10995 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10996 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10997 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10999 else
11000 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11001 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11002 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11003 $as_echo_n "(cached) " >&6
11004 else
11005 ac_check_lib_save_LIBS=$LIBS
11006 LIBS="-ldld $LIBS"
11007 cat >conftest.$ac_ext <<_ACEOF
11008 /* confdefs.h. */
11009 _ACEOF
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11017 #ifdef __cplusplus
11018 extern "C"
11019 #endif
11020 char dld_link ();
11021 int
11022 main ()
11023 {
11024 return dld_link ();
11025 ;
11026 return 0;
11027 }
11028 _ACEOF
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (ac_try="$ac_link"
11031 case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034 esac
11035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11036 $as_echo "$ac_try_echo") >&5
11037 (eval "$ac_link") 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } && {
11044 test -z "$ac_c_werror_flag" ||
11045 test ! -s conftest.err
11046 } && test -s conftest$ac_exeext && {
11047 test "$cross_compiling" = yes ||
11048 $as_test_x conftest$ac_exeext
11049 }; then
11050 ac_cv_lib_dld_dld_link=yes
11051 else
11052 $as_echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 ac_cv_lib_dld_dld_link=no
11056 fi
11057
11058 rm -rf conftest.dSYM
11059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11060 conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11062 fi
11063 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11064 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11065 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11066 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11067 fi
11068
11069
11070 fi
11071
11072
11073 fi
11074
11075
11076 fi
11077
11078
11079 fi
11080
11081
11082 fi
11083
11084 ;;
11085 esac
11086
11087 if test "x$lt_cv_dlopen" != xno; then
11088 enable_dlopen=yes
11089 else
11090 enable_dlopen=no
11091 fi
11092
11093 case $lt_cv_dlopen in
11094 dlopen)
11095 save_CPPFLAGS="$CPPFLAGS"
11096 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11097
11098 save_LDFLAGS="$LDFLAGS"
11099 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11100
11101 save_LIBS="$LIBS"
11102 LIBS="$lt_cv_dlopen_libs $LIBS"
11103
11104 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11105 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11106 if test "${lt_cv_dlopen_self+set}" = set; then
11107 $as_echo_n "(cached) " >&6
11108 else
11109 if test "$cross_compiling" = yes; then :
11110 lt_cv_dlopen_self=cross
11111 else
11112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11113 lt_status=$lt_dlunknown
11114 cat > conftest.$ac_ext <<_LT_EOF
11115 #line 11115 "configure"
11116 #include "confdefs.h"
11117
11118 #if HAVE_DLFCN_H
11119 #include <dlfcn.h>
11120 #endif
11121
11122 #include <stdio.h>
11123
11124 #ifdef RTLD_GLOBAL
11125 # define LT_DLGLOBAL RTLD_GLOBAL
11126 #else
11127 # ifdef DL_GLOBAL
11128 # define LT_DLGLOBAL DL_GLOBAL
11129 # else
11130 # define LT_DLGLOBAL 0
11131 # endif
11132 #endif
11133
11134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11135 find out it does not work in some platform. */
11136 #ifndef LT_DLLAZY_OR_NOW
11137 # ifdef RTLD_LAZY
11138 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11139 # else
11140 # ifdef DL_LAZY
11141 # define LT_DLLAZY_OR_NOW DL_LAZY
11142 # else
11143 # ifdef RTLD_NOW
11144 # define LT_DLLAZY_OR_NOW RTLD_NOW
11145 # else
11146 # ifdef DL_NOW
11147 # define LT_DLLAZY_OR_NOW DL_NOW
11148 # else
11149 # define LT_DLLAZY_OR_NOW 0
11150 # endif
11151 # endif
11152 # endif
11153 # endif
11154 #endif
11155
11156 void fnord() { int i=42;}
11157 int main ()
11158 {
11159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11160 int status = $lt_dlunknown;
11161
11162 if (self)
11163 {
11164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11165 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11166 /* dlclose (self); */
11167 }
11168 else
11169 puts (dlerror ());
11170
11171 return status;
11172 }
11173 _LT_EOF
11174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11175 (eval $ac_link) 2>&5
11176 ac_status=$?
11177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11179 (./conftest; exit; ) >&5 2>/dev/null
11180 lt_status=$?
11181 case x$lt_status in
11182 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11183 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11184 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11185 esac
11186 else :
11187 # compilation failed
11188 lt_cv_dlopen_self=no
11189 fi
11190 fi
11191 rm -fr conftest*
11192
11193
11194 fi
11195 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11196 $as_echo "$lt_cv_dlopen_self" >&6; }
11197
11198 if test "x$lt_cv_dlopen_self" = xyes; then
11199 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11200 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11201 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11202 if test "${lt_cv_dlopen_self_static+set}" = set; then
11203 $as_echo_n "(cached) " >&6
11204 else
11205 if test "$cross_compiling" = yes; then :
11206 lt_cv_dlopen_self_static=cross
11207 else
11208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11209 lt_status=$lt_dlunknown
11210 cat > conftest.$ac_ext <<_LT_EOF
11211 #line 11211 "configure"
11212 #include "confdefs.h"
11213
11214 #if HAVE_DLFCN_H
11215 #include <dlfcn.h>
11216 #endif
11217
11218 #include <stdio.h>
11219
11220 #ifdef RTLD_GLOBAL
11221 # define LT_DLGLOBAL RTLD_GLOBAL
11222 #else
11223 # ifdef DL_GLOBAL
11224 # define LT_DLGLOBAL DL_GLOBAL
11225 # else
11226 # define LT_DLGLOBAL 0
11227 # endif
11228 #endif
11229
11230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11231 find out it does not work in some platform. */
11232 #ifndef LT_DLLAZY_OR_NOW
11233 # ifdef RTLD_LAZY
11234 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11235 # else
11236 # ifdef DL_LAZY
11237 # define LT_DLLAZY_OR_NOW DL_LAZY
11238 # else
11239 # ifdef RTLD_NOW
11240 # define LT_DLLAZY_OR_NOW RTLD_NOW
11241 # else
11242 # ifdef DL_NOW
11243 # define LT_DLLAZY_OR_NOW DL_NOW
11244 # else
11245 # define LT_DLLAZY_OR_NOW 0
11246 # endif
11247 # endif
11248 # endif
11249 # endif
11250 #endif
11251
11252 void fnord() { int i=42;}
11253 int main ()
11254 {
11255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11256 int status = $lt_dlunknown;
11257
11258 if (self)
11259 {
11260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11261 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11262 /* dlclose (self); */
11263 }
11264 else
11265 puts (dlerror ());
11266
11267 return status;
11268 }
11269 _LT_EOF
11270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11271 (eval $ac_link) 2>&5
11272 ac_status=$?
11273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11275 (./conftest; exit; ) >&5 2>/dev/null
11276 lt_status=$?
11277 case x$lt_status in
11278 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11279 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11280 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11281 esac
11282 else :
11283 # compilation failed
11284 lt_cv_dlopen_self_static=no
11285 fi
11286 fi
11287 rm -fr conftest*
11288
11289
11290 fi
11291 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11292 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11293 fi
11294
11295 CPPFLAGS="$save_CPPFLAGS"
11296 LDFLAGS="$save_LDFLAGS"
11297 LIBS="$save_LIBS"
11298 ;;
11299 esac
11300
11301 case $lt_cv_dlopen_self in
11302 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11303 *) enable_dlopen_self=unknown ;;
11304 esac
11305
11306 case $lt_cv_dlopen_self_static in
11307 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11308 *) enable_dlopen_self_static=unknown ;;
11309 esac
11310 fi
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328 striplib=
11329 old_striplib=
11330 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11331 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11332 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11333 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11334 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11335 { $as_echo "$as_me:$LINENO: result: yes" >&5
11336 $as_echo "yes" >&6; }
11337 else
11338 # FIXME - insert some real tests, host_os isn't really good enough
11339 case $host_os in
11340 darwin*)
11341 if test -n "$STRIP" ; then
11342 striplib="$STRIP -x"
11343 old_striplib="$STRIP -S"
11344 { $as_echo "$as_me:$LINENO: result: yes" >&5
11345 $as_echo "yes" >&6; }
11346 else
11347 { $as_echo "$as_me:$LINENO: result: no" >&5
11348 $as_echo "no" >&6; }
11349 fi
11350 ;;
11351 *)
11352 { $as_echo "$as_me:$LINENO: result: no" >&5
11353 $as_echo "no" >&6; }
11354 ;;
11355 esac
11356 fi
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369 # Report which library types will actually be built
11370 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11371 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11372 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11373 $as_echo "$can_build_shared" >&6; }
11374
11375 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11376 $as_echo_n "checking whether to build shared libraries... " >&6; }
11377 test "$can_build_shared" = "no" && enable_shared=no
11378
11379 # On AIX, shared libraries and static libraries use the same namespace, and
11380 # are all built from PIC.
11381 case $host_os in
11382 aix3*)
11383 test "$enable_shared" = yes && enable_static=no
11384 if test -n "$RANLIB"; then
11385 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11386 postinstall_cmds='$RANLIB $lib'
11387 fi
11388 ;;
11389
11390 aix[4-9]*)
11391 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11392 test "$enable_shared" = yes && enable_static=no
11393 fi
11394 ;;
11395 esac
11396 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11397 $as_echo "$enable_shared" >&6; }
11398
11399 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11400 $as_echo_n "checking whether to build static libraries... " >&6; }
11401 # Make sure either enable_shared or enable_static is yes.
11402 test "$enable_shared" = yes || enable_static=yes
11403 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11404 $as_echo "$enable_static" >&6; }
11405
11406
11407
11408
11409 fi
11410 ac_ext=c
11411 ac_cpp='$CPP $CPPFLAGS'
11412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11415
11416 CC="$lt_save_CC"
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430 ac_config_commands="$ac_config_commands libtool"
11431
11432
11433
11434
11435 # Only expand once:
11436
11437
11438 { $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
11439 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11440 if test "${libltdl_cv_shlibext+set}" = set; then
11441 $as_echo_n "(cached) " >&6
11442 else
11443
11444 module=yes
11445 eval libltdl_cv_shlibext=$shrext_cmds
11446
11447 fi
11448 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
11449 $as_echo "$libltdl_cv_shlibext" >&6; }
11450 if test -n "$libltdl_cv_shlibext"; then
11451
11452 cat >>confdefs.h <<_ACEOF
11453 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11454 _ACEOF
11455
11456 fi
11457
11458 { $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
11459 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11460 if test "${lt_cv_module_path_var+set}" = set; then
11461 $as_echo_n "(cached) " >&6
11462 else
11463 lt_cv_module_path_var="$shlibpath_var"
11464 fi
11465 { $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
11466 $as_echo "$lt_cv_module_path_var" >&6; }
11467 if test -n "$lt_cv_module_path_var"; then
11468
11469 cat >>confdefs.h <<_ACEOF
11470 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11471 _ACEOF
11472
11473 fi
11474
11475 { $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
11476 $as_echo_n "checking for the default library search path... " >&6; }
11477 if test "${lt_cv_sys_dlsearch_path+set}" = set; then
11478 $as_echo_n "(cached) " >&6
11479 else
11480 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11481 fi
11482 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
11483 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11484 if test -n "$lt_cv_sys_dlsearch_path"; then
11485 sys_dlsearch_path=
11486 for dir in $lt_cv_sys_dlsearch_path; do
11487 if test -z "$sys_dlsearch_path"; then
11488 sys_dlsearch_path="$dir"
11489 else
11490 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11491 fi
11492 done
11493
11494 cat >>confdefs.h <<_ACEOF
11495 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11496 _ACEOF
11497
11498 fi
11499
11500
11501 LT_DLLOADERS=
11502
11503
11504 ac_ext=c
11505 ac_cpp='$CPP $CPPFLAGS'
11506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11509
11510
11511 LIBADD_DLOPEN=
11512 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11513 $as_echo_n "checking for library containing dlopen... " >&6; }
11514 if test "${ac_cv_search_dlopen+set}" = set; then
11515 $as_echo_n "(cached) " >&6
11516 else
11517 ac_func_search_save_LIBS=$LIBS
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524
11525 /* Override any GCC internal prototype to avoid an error.
11526 Use char because int might match the return type of a GCC
11527 builtin and then its argument prototype would still apply. */
11528 #ifdef __cplusplus
11529 extern "C"
11530 #endif
11531 char dlopen ();
11532 int
11533 main ()
11534 {
11535 return dlopen ();
11536 ;
11537 return 0;
11538 }
11539 _ACEOF
11540 for ac_lib in '' dl; do
11541 if test -z "$ac_lib"; then
11542 ac_res="none required"
11543 else
11544 ac_res=-l$ac_lib
11545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11546 fi
11547 rm -f conftest.$ac_objext conftest$ac_exeext
11548 if { (ac_try="$ac_link"
11549 case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11552 esac
11553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11554 $as_echo "$ac_try_echo") >&5
11555 (eval "$ac_link") 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && {
11562 test -z "$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest$ac_exeext && {
11565 test "$cross_compiling" = yes ||
11566 $as_test_x conftest$ac_exeext
11567 }; then
11568 ac_cv_search_dlopen=$ac_res
11569 else
11570 $as_echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11572
11573
11574 fi
11575
11576 rm -rf conftest.dSYM
11577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11578 conftest$ac_exeext
11579 if test "${ac_cv_search_dlopen+set}" = set; then
11580 break
11581 fi
11582 done
11583 if test "${ac_cv_search_dlopen+set}" = set; then
11584 :
11585 else
11586 ac_cv_search_dlopen=no
11587 fi
11588 rm conftest.$ac_ext
11589 LIBS=$ac_func_search_save_LIBS
11590 fi
11591 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11592 $as_echo "$ac_cv_search_dlopen" >&6; }
11593 ac_res=$ac_cv_search_dlopen
11594 if test "$ac_res" != no; then
11595 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11596
11597 cat >>confdefs.h <<\_ACEOF
11598 #define HAVE_LIBDL 1
11599 _ACEOF
11600
11601 if test "$ac_cv_search_dlopen" != "none required" ; then
11602 LIBADD_DLOPEN="-ldl"
11603 fi
11604 libltdl_cv_lib_dl_dlopen="yes"
11605 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11606 else
11607 cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h. */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 #if HAVE_DLFCN_H
11614 # include <dlfcn.h>
11615 #endif
11616
11617 int
11618 main ()
11619 {
11620 dlopen(0, 0);
11621 ;
11622 return 0;
11623 }
11624 _ACEOF
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (ac_try="$ac_link"
11627 case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630 esac
11631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11632 $as_echo "$ac_try_echo") >&5
11633 (eval "$ac_link") 2>conftest.er1
11634 ac_status=$?
11635 grep -v '^ *+' conftest.er1 >conftest.err
11636 rm -f conftest.er1
11637 cat conftest.err >&5
11638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } && {
11640 test -z "$ac_c_werror_flag" ||
11641 test ! -s conftest.err
11642 } && test -s conftest$ac_exeext && {
11643 test "$cross_compiling" = yes ||
11644 $as_test_x conftest$ac_exeext
11645 }; then
11646
11647 cat >>confdefs.h <<\_ACEOF
11648 #define HAVE_LIBDL 1
11649 _ACEOF
11650
11651 libltdl_cv_func_dlopen="yes"
11652 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11653 else
11654 $as_echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11658 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11659 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11660 $as_echo_n "(cached) " >&6
11661 else
11662 ac_check_lib_save_LIBS=$LIBS
11663 LIBS="-lsvld $LIBS"
11664 cat >conftest.$ac_ext <<_ACEOF
11665 /* confdefs.h. */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670
11671 /* Override any GCC internal prototype to avoid an error.
11672 Use char because int might match the return type of a GCC
11673 builtin and then its argument prototype would still apply. */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char dlopen ();
11678 int
11679 main ()
11680 {
11681 return dlopen ();
11682 ;
11683 return 0;
11684 }
11685 _ACEOF
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691 esac
11692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11693 $as_echo "$ac_try_echo") >&5
11694 (eval "$ac_link") 2>conftest.er1
11695 ac_status=$?
11696 grep -v '^ *+' conftest.er1 >conftest.err
11697 rm -f conftest.er1
11698 cat conftest.err >&5
11699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && {
11701 test -z "$ac_c_werror_flag" ||
11702 test ! -s conftest.err
11703 } && test -s conftest$ac_exeext && {
11704 test "$cross_compiling" = yes ||
11705 $as_test_x conftest$ac_exeext
11706 }; then
11707 ac_cv_lib_svld_dlopen=yes
11708 else
11709 $as_echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ac_cv_lib_svld_dlopen=no
11713 fi
11714
11715 rm -rf conftest.dSYM
11716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11717 conftest$ac_exeext conftest.$ac_ext
11718 LIBS=$ac_check_lib_save_LIBS
11719 fi
11720 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11721 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11722 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11723
11724 cat >>confdefs.h <<\_ACEOF
11725 #define HAVE_LIBDL 1
11726 _ACEOF
11727
11728 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11729 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11730 fi
11731
11732 fi
11733
11734 rm -rf conftest.dSYM
11735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11736 conftest$ac_exeext conftest.$ac_ext
11737 fi
11738
11739 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11740 then
11741 lt_save_LIBS="$LIBS"
11742 LIBS="$LIBS $LIBADD_DLOPEN"
11743
11744 for ac_func in dlerror
11745 do
11746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11748 $as_echo_n "checking for $ac_func... " >&6; }
11749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750 $as_echo_n "(cached) " >&6
11751 else
11752 cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h. */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11760 #define $ac_func innocuous_$ac_func
11761
11762 /* System header to define __stub macros and hopefully few prototypes,
11763 which can conflict with char $ac_func (); below.
11764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765 <limits.h> exists even on freestanding compilers. */
11766
11767 #ifdef __STDC__
11768 # include <limits.h>
11769 #else
11770 # include <assert.h>
11771 #endif
11772
11773 #undef $ac_func
11774
11775 /* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11778 #ifdef __cplusplus
11779 extern "C"
11780 #endif
11781 char $ac_func ();
11782 /* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785 #if defined __stub_$ac_func || defined __stub___$ac_func
11786 choke me
11787 #endif
11788
11789 int
11790 main ()
11791 {
11792 return $ac_func ();
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802 esac
11803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11804 $as_echo "$ac_try_echo") >&5
11805 (eval "$ac_link") 2>conftest.er1
11806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } && {
11812 test -z "$ac_c_werror_flag" ||
11813 test ! -s conftest.err
11814 } && test -s conftest$ac_exeext && {
11815 test "$cross_compiling" = yes ||
11816 $as_test_x conftest$ac_exeext
11817 }; then
11818 eval "$as_ac_var=yes"
11819 else
11820 $as_echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 eval "$as_ac_var=no"
11824 fi
11825
11826 rm -rf conftest.dSYM
11827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11828 conftest$ac_exeext conftest.$ac_ext
11829 fi
11830 ac_res=`eval 'as_val=${'$as_ac_var'}
11831 $as_echo "$as_val"'`
11832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11833 $as_echo "$ac_res" >&6; }
11834 as_val=`eval 'as_val=${'$as_ac_var'}
11835 $as_echo "$as_val"'`
11836 if test "x$as_val" = x""yes; then
11837 cat >>confdefs.h <<_ACEOF
11838 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11839 _ACEOF
11840
11841 fi
11842 done
11843
11844 LIBS="$lt_save_LIBS"
11845 fi
11846
11847
11848 LIBADD_SHL_LOAD=
11849 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11850 $as_echo_n "checking for shl_load... " >&6; }
11851 if test "${ac_cv_func_shl_load+set}" = set; then
11852 $as_echo_n "(cached) " >&6
11853 else
11854 cat >conftest.$ac_ext <<_ACEOF
11855 /* confdefs.h. */
11856 _ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11862 #define shl_load innocuous_shl_load
11863
11864 /* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char shl_load (); below.
11866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867 <limits.h> exists even on freestanding compilers. */
11868
11869 #ifdef __STDC__
11870 # include <limits.h>
11871 #else
11872 # include <assert.h>
11873 #endif
11874
11875 #undef shl_load
11876
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char shl_load ();
11884 /* The GNU C library defines this for functions which it implements
11885 to always fail with ENOSYS. Some functions are actually named
11886 something starting with __ and the normal name is an alias. */
11887 #if defined __stub_shl_load || defined __stub___shl_load
11888 choke me
11889 #endif
11890
11891 int
11892 main ()
11893 {
11894 return shl_load ();
11895 ;
11896 return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (ac_try="$ac_link"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904 esac
11905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906 $as_echo "$ac_try_echo") >&5
11907 (eval "$ac_link") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest$ac_exeext && {
11917 test "$cross_compiling" = yes ||
11918 $as_test_x conftest$ac_exeext
11919 }; then
11920 ac_cv_func_shl_load=yes
11921 else
11922 $as_echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11924
11925 ac_cv_func_shl_load=no
11926 fi
11927
11928 rm -rf conftest.dSYM
11929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11930 conftest$ac_exeext conftest.$ac_ext
11931 fi
11932 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11933 $as_echo "$ac_cv_func_shl_load" >&6; }
11934 if test "x$ac_cv_func_shl_load" = x""yes; then
11935
11936 cat >>confdefs.h <<\_ACEOF
11937 #define HAVE_SHL_LOAD 1
11938 _ACEOF
11939
11940 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11941 else
11942 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11943 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11944 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11945 $as_echo_n "(cached) " >&6
11946 else
11947 ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-ldld $LIBS"
11949 cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h. */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11955
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 char shl_load ();
11963 int
11964 main ()
11965 {
11966 return shl_load ();
11967 ;
11968 return 0;
11969 }
11970 _ACEOF
11971 rm -f conftest.$ac_objext conftest$ac_exeext
11972 if { (ac_try="$ac_link"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976 esac
11977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11978 $as_echo "$ac_try_echo") >&5
11979 (eval "$ac_link") 2>conftest.er1
11980 ac_status=$?
11981 grep -v '^ *+' conftest.er1 >conftest.err
11982 rm -f conftest.er1
11983 cat conftest.err >&5
11984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } && {
11986 test -z "$ac_c_werror_flag" ||
11987 test ! -s conftest.err
11988 } && test -s conftest$ac_exeext && {
11989 test "$cross_compiling" = yes ||
11990 $as_test_x conftest$ac_exeext
11991 }; then
11992 ac_cv_lib_dld_shl_load=yes
11993 else
11994 $as_echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.$ac_ext >&5
11996
11997 ac_cv_lib_dld_shl_load=no
11998 fi
11999
12000 rm -rf conftest.dSYM
12001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12002 conftest$ac_exeext conftest.$ac_ext
12003 LIBS=$ac_check_lib_save_LIBS
12004 fi
12005 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12006 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12007 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12008
12009 cat >>confdefs.h <<\_ACEOF
12010 #define HAVE_SHL_LOAD 1
12011 _ACEOF
12012
12013 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12014 LIBADD_SHL_LOAD="-ldld"
12015 fi
12016
12017 fi
12018
12019
12020
12021 case $host_os in
12022 darwin[1567].*)
12023 # We only want this for pre-Mac OS X 10.4.
12024 { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
12025 $as_echo_n "checking for _dyld_func_lookup... " >&6; }
12026 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
12027 $as_echo_n "(cached) " >&6
12028 else
12029 cat >conftest.$ac_ext <<_ACEOF
12030 /* confdefs.h. */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
12036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12037 #define _dyld_func_lookup innocuous__dyld_func_lookup
12038
12039 /* System header to define __stub macros and hopefully few prototypes,
12040 which can conflict with char _dyld_func_lookup (); below.
12041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12042 <limits.h> exists even on freestanding compilers. */
12043
12044 #ifdef __STDC__
12045 # include <limits.h>
12046 #else
12047 # include <assert.h>
12048 #endif
12049
12050 #undef _dyld_func_lookup
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char _dyld_func_lookup ();
12059 /* The GNU C library defines this for functions which it implements
12060 to always fail with ENOSYS. Some functions are actually named
12061 something starting with __ and the normal name is an alias. */
12062 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
12063 choke me
12064 #endif
12065
12066 int
12067 main ()
12068 {
12069 return _dyld_func_lookup ();
12070 ;
12071 return 0;
12072 }
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (ac_try="$ac_link"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079 esac
12080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12081 $as_echo "$ac_try_echo") >&5
12082 (eval "$ac_link") 2>conftest.er1
12083 ac_status=$?
12084 grep -v '^ *+' conftest.er1 >conftest.err
12085 rm -f conftest.er1
12086 cat conftest.err >&5
12087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } && {
12089 test -z "$ac_c_werror_flag" ||
12090 test ! -s conftest.err
12091 } && test -s conftest$ac_exeext && {
12092 test "$cross_compiling" = yes ||
12093 $as_test_x conftest$ac_exeext
12094 }; then
12095 ac_cv_func__dyld_func_lookup=yes
12096 else
12097 $as_echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12099
12100 ac_cv_func__dyld_func_lookup=no
12101 fi
12102
12103 rm -rf conftest.dSYM
12104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12105 conftest$ac_exeext conftest.$ac_ext
12106 fi
12107 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
12108 $as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
12109 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
12110
12111 cat >>confdefs.h <<\_ACEOF
12112 #define HAVE_DYLD 1
12113 _ACEOF
12114
12115 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12116 fi
12117
12118 ;;
12119 beos*)
12120 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12121 ;;
12122 cygwin* | mingw* | os2* | pw32*)
12123 { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
12124 $as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
12125 if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
12126 $as_echo_n "(cached) " >&6
12127 else
12128 cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h. */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 #include <sys/cygwin.h>
12135
12136 int
12137 main ()
12138 {
12139 #ifndef cygwin_conv_path
12140 (void) cygwin_conv_path;
12141 #endif
12142
12143 ;
12144 return 0;
12145 }
12146 _ACEOF
12147 rm -f conftest.$ac_objext
12148 if { (ac_try="$ac_compile"
12149 case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152 esac
12153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12154 $as_echo "$ac_try_echo") >&5
12155 (eval "$ac_compile") 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } && {
12162 test -z "$ac_c_werror_flag" ||
12163 test ! -s conftest.err
12164 } && test -s conftest.$ac_objext; then
12165 ac_cv_have_decl_cygwin_conv_path=yes
12166 else
12167 $as_echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12169
12170 ac_cv_have_decl_cygwin_conv_path=no
12171 fi
12172
12173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174 fi
12175 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
12176 $as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
12177 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
12178
12179 cat >>confdefs.h <<_ACEOF
12180 #define HAVE_DECL_CYGWIN_CONV_PATH 1
12181 _ACEOF
12182
12183
12184 else
12185 cat >>confdefs.h <<_ACEOF
12186 #define HAVE_DECL_CYGWIN_CONV_PATH 0
12187 _ACEOF
12188
12189
12190 fi
12191
12192
12193 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12194 ;;
12195 esac
12196
12197 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12198 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12199 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12200 $as_echo_n "(cached) " >&6
12201 else
12202 ac_check_lib_save_LIBS=$LIBS
12203 LIBS="-ldld $LIBS"
12204 cat >conftest.$ac_ext <<_ACEOF
12205 /* confdefs.h. */
12206 _ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h. */
12210
12211 /* Override any GCC internal prototype to avoid an error.
12212 Use char because int might match the return type of a GCC
12213 builtin and then its argument prototype would still apply. */
12214 #ifdef __cplusplus
12215 extern "C"
12216 #endif
12217 char dld_link ();
12218 int
12219 main ()
12220 {
12221 return dld_link ();
12222 ;
12223 return 0;
12224 }
12225 _ACEOF
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (ac_try="$ac_link"
12228 case "(($ac_try" in
12229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230 *) ac_try_echo=$ac_try;;
12231 esac
12232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12233 $as_echo "$ac_try_echo") >&5
12234 (eval "$ac_link") 2>conftest.er1
12235 ac_status=$?
12236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
12239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && {
12241 test -z "$ac_c_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest$ac_exeext && {
12244 test "$cross_compiling" = yes ||
12245 $as_test_x conftest$ac_exeext
12246 }; then
12247 ac_cv_lib_dld_dld_link=yes
12248 else
12249 $as_echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12251
12252 ac_cv_lib_dld_dld_link=no
12253 fi
12254
12255 rm -rf conftest.dSYM
12256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12257 conftest$ac_exeext conftest.$ac_ext
12258 LIBS=$ac_check_lib_save_LIBS
12259 fi
12260 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12261 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12262 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12263
12264 cat >>confdefs.h <<\_ACEOF
12265 #define HAVE_DLD 1
12266 _ACEOF
12267
12268 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12269 fi
12270
12271
12272
12273
12274 LT_DLPREOPEN=
12275 if test -n "$LT_DLLOADERS"
12276 then
12277 for lt_loader in $LT_DLLOADERS; do
12278 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12279 done
12280
12281 cat >>confdefs.h <<\_ACEOF
12282 #define HAVE_LIBDLLOADER 1
12283 _ACEOF
12284
12285 fi
12286
12287
12288 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12289
12290
12291 ac_ext=c
12292 ac_cpp='$CPP $CPPFLAGS'
12293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12296
12297
12298 { $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
12299 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12300 if test "${lt_cv_sys_symbol_underscore+set}" = set; then
12301 $as_echo_n "(cached) " >&6
12302 else
12303 lt_cv_sys_symbol_underscore=no
12304 cat > conftest.$ac_ext <<_LT_EOF
12305 void nm_test_func(){}
12306 int main(){nm_test_func;return 0;}
12307 _LT_EOF
12308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12309 (eval $ac_compile) 2>&5
12310 ac_status=$?
12311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; then
12313 # Now try to grab the symbols.
12314 ac_nlist=conftest.nm
12315 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
12316 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12317 ac_status=$?
12318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && test -s "$ac_nlist"; then
12320 # See whether the symbols have a leading underscore.
12321 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12322 lt_cv_sys_symbol_underscore=yes
12323 else
12324 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12325 :
12326 else
12327 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12328 fi
12329 fi
12330 else
12331 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12332 fi
12333 else
12334 echo "configure: failed program was:" >&5
12335 cat conftest.c >&5
12336 fi
12337 rm -rf conftest*
12338
12339 fi
12340 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
12341 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12342 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12343
12344
12345 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12346 if test x"$libltdl_cv_func_dlopen" = xyes ||
12347 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12348 { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
12349 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12350 if test "${libltdl_cv_need_uscore+set}" = set; then
12351 $as_echo_n "(cached) " >&6
12352 else
12353 libltdl_cv_need_uscore=unknown
12354 save_LIBS="$LIBS"
12355 LIBS="$LIBS $LIBADD_DLOPEN"
12356 if test "$cross_compiling" = yes; then :
12357 libltdl_cv_need_uscore=cross
12358 else
12359 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12360 lt_status=$lt_dlunknown
12361 cat > conftest.$ac_ext <<_LT_EOF
12362 #line 12362 "configure"
12363 #include "confdefs.h"
12364
12365 #if HAVE_DLFCN_H
12366 #include <dlfcn.h>
12367 #endif
12368
12369 #include <stdio.h>
12370
12371 #ifdef RTLD_GLOBAL
12372 # define LT_DLGLOBAL RTLD_GLOBAL
12373 #else
12374 # ifdef DL_GLOBAL
12375 # define LT_DLGLOBAL DL_GLOBAL
12376 # else
12377 # define LT_DLGLOBAL 0
12378 # endif
12379 #endif
12380
12381 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12382 find out it does not work in some platform. */
12383 #ifndef LT_DLLAZY_OR_NOW
12384 # ifdef RTLD_LAZY
12385 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12386 # else
12387 # ifdef DL_LAZY
12388 # define LT_DLLAZY_OR_NOW DL_LAZY
12389 # else
12390 # ifdef RTLD_NOW
12391 # define LT_DLLAZY_OR_NOW RTLD_NOW
12392 # else
12393 # ifdef DL_NOW
12394 # define LT_DLLAZY_OR_NOW DL_NOW
12395 # else
12396 # define LT_DLLAZY_OR_NOW 0
12397 # endif
12398 # endif
12399 # endif
12400 # endif
12401 #endif
12402
12403 void fnord() { int i=42;}
12404 int main ()
12405 {
12406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12407 int status = $lt_dlunknown;
12408
12409 if (self)
12410 {
12411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12413 /* dlclose (self); */
12414 }
12415 else
12416 puts (dlerror ());
12417
12418 return status;
12419 }
12420 _LT_EOF
12421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12422 (eval $ac_link) 2>&5
12423 ac_status=$?
12424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12426 (./conftest; exit; ) >&5 2>/dev/null
12427 lt_status=$?
12428 case x$lt_status in
12429 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12430 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12431 x$lt_dlunknown|x*) ;;
12432 esac
12433 else :
12434 # compilation failed
12435
12436 fi
12437 fi
12438 rm -fr conftest*
12439
12440 LIBS="$save_LIBS"
12441
12442 fi
12443 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
12444 $as_echo "$libltdl_cv_need_uscore" >&6; }
12445 fi
12446 fi
12447
12448 if test x"$libltdl_cv_need_uscore" = xyes; then
12449
12450 cat >>confdefs.h <<\_ACEOF
12451 #define NEED_USCORE 1
12452 _ACEOF
12453
12454 fi
12455
12456 { $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
12457 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12458 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
12459 $as_echo_n "(cached) " >&6
12460 else
12461 # PORTME does your system automatically load deplibs for dlopen?
12462 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12463 # For now, we just catch OSes we know something about -- in the
12464 # future, we'll try test this programmatically.
12465 lt_cv_sys_dlopen_deplibs=unknown
12466 case $host_os in
12467 aix3*|aix4.1.*|aix4.2.*)
12468 # Unknown whether this is true for these versions of AIX, but
12469 # we want this `case' here to explicitly catch those versions.
12470 lt_cv_sys_dlopen_deplibs=unknown
12471 ;;
12472 aix[4-9]*)
12473 lt_cv_sys_dlopen_deplibs=yes
12474 ;;
12475 amigaos*)
12476 case $host_cpu in
12477 powerpc)
12478 lt_cv_sys_dlopen_deplibs=no
12479 ;;
12480 esac
12481 ;;
12482 darwin*)
12483 # Assuming the user has installed a libdl from somewhere, this is true
12484 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12485 lt_cv_sys_dlopen_deplibs=yes
12486 ;;
12487 freebsd* | dragonfly*)
12488 lt_cv_sys_dlopen_deplibs=yes
12489 ;;
12490 gnu* | linux* | k*bsd*-gnu)
12491 # GNU and its variants, using gnu ld.so (Glibc)
12492 lt_cv_sys_dlopen_deplibs=yes
12493 ;;
12494 hpux10*|hpux11*)
12495 lt_cv_sys_dlopen_deplibs=yes
12496 ;;
12497 interix*)
12498 lt_cv_sys_dlopen_deplibs=yes
12499 ;;
12500 irix[12345]*|irix6.[01]*)
12501 # Catch all versions of IRIX before 6.2, and indicate that we don't
12502 # know how it worked for any of those versions.
12503 lt_cv_sys_dlopen_deplibs=unknown
12504 ;;
12505 irix*)
12506 # The case above catches anything before 6.2, and it's known that
12507 # at 6.2 and later dlopen does load deplibs.
12508 lt_cv_sys_dlopen_deplibs=yes
12509 ;;
12510 netbsd*)
12511 lt_cv_sys_dlopen_deplibs=yes
12512 ;;
12513 openbsd*)
12514 lt_cv_sys_dlopen_deplibs=yes
12515 ;;
12516 osf[1234]*)
12517 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12518 # it did *not* use an RPATH in a shared library to find objects the
12519 # library depends on, so we explicitly say `no'.
12520 lt_cv_sys_dlopen_deplibs=no
12521 ;;
12522 osf5.0|osf5.0a|osf5.1)
12523 # dlopen *does* load deplibs and with the right loader patch applied
12524 # it even uses RPATH in a shared library to search for shared objects
12525 # that the library depends on, but there's no easy way to know if that
12526 # patch is installed. Since this is the case, all we can really
12527 # say is unknown -- it depends on the patch being installed. If
12528 # it is, this changes to `yes'. Without it, it would be `no'.
12529 lt_cv_sys_dlopen_deplibs=unknown
12530 ;;
12531 osf*)
12532 # the two cases above should catch all versions of osf <= 5.1. Read
12533 # the comments above for what we know about them.
12534 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12535 # is used to find them so we can finally say `yes'.
12536 lt_cv_sys_dlopen_deplibs=yes
12537 ;;
12538 qnx*)
12539 lt_cv_sys_dlopen_deplibs=yes
12540 ;;
12541 solaris*)
12542 lt_cv_sys_dlopen_deplibs=yes
12543 ;;
12544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12545 libltdl_cv_sys_dlopen_deplibs=yes
12546 ;;
12547 esac
12548
12549 fi
12550 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
12551 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12552 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12553
12554 cat >>confdefs.h <<\_ACEOF
12555 #define LTDL_DLOPEN_DEPLIBS 1
12556 _ACEOF
12557
12558 fi
12559
12560 :
12561
12562
12563 for ac_header in argz.h
12564 do
12565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12566 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12567 $as_echo_n "checking for $ac_header... " >&6; }
12568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12569 $as_echo_n "(cached) " >&6
12570 else
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h. */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 $ac_includes_default
12578
12579 #include <$ac_header>
12580 _ACEOF
12581 rm -f conftest.$ac_objext
12582 if { (ac_try="$ac_compile"
12583 case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586 esac
12587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12588 $as_echo "$ac_try_echo") >&5
12589 (eval "$ac_compile") 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest.$ac_objext; then
12599 eval "$as_ac_Header=yes"
12600 else
12601 $as_echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12603
12604 eval "$as_ac_Header=no"
12605 fi
12606
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608 fi
12609 ac_res=`eval 'as_val=${'$as_ac_Header'}
12610 $as_echo "$as_val"'`
12611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12612 $as_echo "$ac_res" >&6; }
12613 as_val=`eval 'as_val=${'$as_ac_Header'}
12614 $as_echo "$as_val"'`
12615 if test "x$as_val" = x""yes; then
12616 cat >>confdefs.h <<_ACEOF
12617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12618 _ACEOF
12619
12620 fi
12621
12622 done
12623
12624
12625 { $as_echo "$as_me:$LINENO: checking for error_t" >&5
12626 $as_echo_n "checking for error_t... " >&6; }
12627 if test "${ac_cv_type_error_t+set}" = set; then
12628 $as_echo_n "(cached) " >&6
12629 else
12630 ac_cv_type_error_t=no
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h. */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 #if defined(HAVE_ARGZ_H)
12638 # include <argz.h>
12639 #endif
12640
12641 int
12642 main ()
12643 {
12644 if (sizeof (error_t))
12645 return 0;
12646 ;
12647 return 0;
12648 }
12649 _ACEOF
12650 rm -f conftest.$ac_objext
12651 if { (ac_try="$ac_compile"
12652 case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655 esac
12656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12657 $as_echo "$ac_try_echo") >&5
12658 (eval "$ac_compile") 2>conftest.er1
12659 ac_status=$?
12660 grep -v '^ *+' conftest.er1 >conftest.err
12661 rm -f conftest.er1
12662 cat conftest.err >&5
12663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } && {
12665 test -z "$ac_c_werror_flag" ||
12666 test ! -s conftest.err
12667 } && test -s conftest.$ac_objext; then
12668 cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h. */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 #if defined(HAVE_ARGZ_H)
12675 # include <argz.h>
12676 #endif
12677
12678 int
12679 main ()
12680 {
12681 if (sizeof ((error_t)))
12682 return 0;
12683 ;
12684 return 0;
12685 }
12686 _ACEOF
12687 rm -f conftest.$ac_objext
12688 if { (ac_try="$ac_compile"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692 esac
12693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12694 $as_echo "$ac_try_echo") >&5
12695 (eval "$ac_compile") 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } && {
12702 test -z "$ac_c_werror_flag" ||
12703 test ! -s conftest.err
12704 } && test -s conftest.$ac_objext; then
12705 :
12706 else
12707 $as_echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12709
12710 ac_cv_type_error_t=yes
12711 fi
12712
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714 else
12715 $as_echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718
12719 fi
12720
12721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12722 fi
12723 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12724 $as_echo "$ac_cv_type_error_t" >&6; }
12725 if test "x$ac_cv_type_error_t" = x""yes; then
12726
12727 cat >>confdefs.h <<_ACEOF
12728 #define HAVE_ERROR_T 1
12729 _ACEOF
12730
12731
12732 else
12733
12734 cat >>confdefs.h <<\_ACEOF
12735 #define error_t int
12736 _ACEOF
12737
12738
12739 cat >>confdefs.h <<\_ACEOF
12740 #define __error_t_defined 1
12741 _ACEOF
12742
12743 fi
12744
12745
12746 ARGZ_H=
12747
12748
12749
12750
12751
12752
12753
12754 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12755 argz_next argz_stringify
12756 do
12757 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12758 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12759 $as_echo_n "checking for $ac_func... " >&6; }
12760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12761 $as_echo_n "(cached) " >&6
12762 else
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h. */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12771 #define $ac_func innocuous_$ac_func
12772
12773 /* System header to define __stub macros and hopefully few prototypes,
12774 which can conflict with char $ac_func (); below.
12775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12776 <limits.h> exists even on freestanding compilers. */
12777
12778 #ifdef __STDC__
12779 # include <limits.h>
12780 #else
12781 # include <assert.h>
12782 #endif
12783
12784 #undef $ac_func
12785
12786 /* Override any GCC internal prototype to avoid an error.
12787 Use char because int might match the return type of a GCC
12788 builtin and then its argument prototype would still apply. */
12789 #ifdef __cplusplus
12790 extern "C"
12791 #endif
12792 char $ac_func ();
12793 /* The GNU C library defines this for functions which it implements
12794 to always fail with ENOSYS. Some functions are actually named
12795 something starting with __ and the normal name is an alias. */
12796 #if defined __stub_$ac_func || defined __stub___$ac_func
12797 choke me
12798 #endif
12799
12800 int
12801 main ()
12802 {
12803 return $ac_func ();
12804 ;
12805 return 0;
12806 }
12807 _ACEOF
12808 rm -f conftest.$ac_objext conftest$ac_exeext
12809 if { (ac_try="$ac_link"
12810 case "(($ac_try" in
12811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812 *) ac_try_echo=$ac_try;;
12813 esac
12814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12815 $as_echo "$ac_try_echo") >&5
12816 (eval "$ac_link") 2>conftest.er1
12817 ac_status=$?
12818 grep -v '^ *+' conftest.er1 >conftest.err
12819 rm -f conftest.er1
12820 cat conftest.err >&5
12821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } && {
12823 test -z "$ac_c_werror_flag" ||
12824 test ! -s conftest.err
12825 } && test -s conftest$ac_exeext && {
12826 test "$cross_compiling" = yes ||
12827 $as_test_x conftest$ac_exeext
12828 }; then
12829 eval "$as_ac_var=yes"
12830 else
12831 $as_echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12833
12834 eval "$as_ac_var=no"
12835 fi
12836
12837 rm -rf conftest.dSYM
12838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12839 conftest$ac_exeext conftest.$ac_ext
12840 fi
12841 ac_res=`eval 'as_val=${'$as_ac_var'}
12842 $as_echo "$as_val"'`
12843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12844 $as_echo "$ac_res" >&6; }
12845 as_val=`eval 'as_val=${'$as_ac_var'}
12846 $as_echo "$as_val"'`
12847 if test "x$as_val" = x""yes; then
12848 cat >>confdefs.h <<_ACEOF
12849 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12850 _ACEOF
12851
12852 else
12853 ARGZ_H=argz.h;
12854
12855 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12856
12857 fi
12858 done
12859
12860
12861 if test -z "$ARGZ_H"; then
12862 { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
12863 $as_echo_n "checking if argz actually works... " >&6; }
12864 if test "${lt_cv_sys_argz_works+set}" = set; then
12865 $as_echo_n "(cached) " >&6
12866 else
12867 case $host_os in #(
12868 *cygwin*)
12869 lt_cv_sys_argz_works=no
12870 if test "$cross_compiling" != no; then
12871 lt_cv_sys_argz_works="guessing no"
12872 else
12873 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12874 save_IFS=$IFS
12875 IFS=-.
12876 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12877 IFS=$save_IFS
12878 lt_os_major=${2-0}
12879 lt_os_minor=${3-0}
12880 lt_os_micro=${4-0}
12881 if test "$lt_os_major" -gt 1 \
12882 || { test "$lt_os_major" -eq 1 \
12883 && { test "$lt_os_minor" -gt 5 \
12884 || { test "$lt_os_minor" -eq 5 \
12885 && test "$lt_os_micro" -gt 24; }; }; }; then
12886 lt_cv_sys_argz_works=yes
12887 fi
12888 fi
12889 ;; #(
12890 *) lt_cv_sys_argz_works=yes ;;
12891 esac
12892 fi
12893 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
12894 $as_echo "$lt_cv_sys_argz_works" >&6; }
12895 if test $lt_cv_sys_argz_works = yes; then
12896
12897 cat >>confdefs.h <<\_ACEOF
12898 #define HAVE_WORKING_ARGZ 1
12899 _ACEOF
12900
12901 else
12902 ARGZ_H=argz.h
12903
12904
12905 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12906
12907 fi
12908
12909 fi
12910
12911
12912
12913
12914 { $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
12915 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12916 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
12917 $as_echo_n "(cached) " >&6
12918 else
12919 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12920 libltdl_cv_preloaded_symbols=yes
12921 else
12922 libltdl_cv_preloaded_symbols=no
12923 fi
12924
12925 fi
12926 { $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
12927 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12928 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12929
12930 cat >>confdefs.h <<\_ACEOF
12931 #define HAVE_PRELOADED_SYMBOLS 1
12932 _ACEOF
12933
12934 fi
12935
12936
12937
12938 # Set options
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951 # Check whether --with-included_ltdl was given.
12952 if test "${with_included_ltdl+set}" = set; then
12953 withval=$with_included_ltdl;
12954 fi
12955
12956
12957 if test "x$with_included_ltdl" != xyes; then
12958 # We are not being forced to use the included libltdl sources, so
12959 # decide whether there is a useful installed version we can use.
12960 { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
12961 $as_echo_n "checking for ltdl.h... " >&6; }
12962 if test "${ac_cv_header_ltdl_h+set}" = set; then
12963 $as_echo_n "(cached) " >&6
12964 else
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h. */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 $ac_includes_default
12972
12973
12974 #include <ltdl.h>
12975 _ACEOF
12976 rm -f conftest.$ac_objext
12977 if { (ac_try="$ac_compile"
12978 case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12981 esac
12982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12983 $as_echo "$ac_try_echo") >&5
12984 (eval "$ac_compile") 2>conftest.er1
12985 ac_status=$?
12986 grep -v '^ *+' conftest.er1 >conftest.err
12987 rm -f conftest.er1
12988 cat conftest.err >&5
12989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } && {
12991 test -z "$ac_c_werror_flag" ||
12992 test ! -s conftest.err
12993 } && test -s conftest.$ac_objext; then
12994 ac_cv_header_ltdl_h=yes
12995 else
12996 $as_echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12998
12999 ac_cv_header_ltdl_h=no
13000 fi
13001
13002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003 fi
13004 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
13005 $as_echo "$ac_cv_header_ltdl_h" >&6; }
13006 if test "x$ac_cv_header_ltdl_h" = x""yes; then
13007 { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
13008 $as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; }
13009 if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
13010 $as_echo_n "(cached) " >&6
13011 else
13012 cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h. */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h. */
13018 $ac_includes_default
13019 #include <ltdl.h>
13020
13021 int
13022 main ()
13023 {
13024 #ifndef lt_dlinterface_register
13025 (void) lt_dlinterface_register;
13026 #endif
13027
13028 ;
13029 return 0;
13030 }
13031 _ACEOF
13032 rm -f conftest.$ac_objext
13033 if { (ac_try="$ac_compile"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037 esac
13038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13039 $as_echo "$ac_try_echo") >&5
13040 (eval "$ac_compile") 2>conftest.er1
13041 ac_status=$?
13042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
13045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } && {
13047 test -z "$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 } && test -s conftest.$ac_objext; then
13050 ac_cv_have_decl_lt_dlinterface_register=yes
13051 else
13052 $as_echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13054
13055 ac_cv_have_decl_lt_dlinterface_register=no
13056 fi
13057
13058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059 fi
13060 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
13061 $as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; }
13062 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then
13063 { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
13064 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
13065 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
13066 $as_echo_n "(cached) " >&6
13067 else
13068 ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-lltdl $LIBS"
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h. */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13076
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 char lt_dladvise_preload ();
13084 int
13085 main ()
13086 {
13087 return lt_dladvise_preload ();
13088 ;
13089 return 0;
13090 }
13091 _ACEOF
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (ac_try="$ac_link"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097 esac
13098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13099 $as_echo "$ac_try_echo") >&5
13100 (eval "$ac_link") 2>conftest.er1
13101 ac_status=$?
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
13105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } && {
13107 test -z "$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13109 } && test -s conftest$ac_exeext && {
13110 test "$cross_compiling" = yes ||
13111 $as_test_x conftest$ac_exeext
13112 }; then
13113 ac_cv_lib_ltdl_lt_dladvise_preload=yes
13114 else
13115 $as_echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13117
13118 ac_cv_lib_ltdl_lt_dladvise_preload=no
13119 fi
13120
13121 rm -rf conftest.dSYM
13122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13123 conftest$ac_exeext conftest.$ac_ext
13124 LIBS=$ac_check_lib_save_LIBS
13125 fi
13126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
13127 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
13128 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then
13129 with_included_ltdl=no
13130 else
13131 with_included_ltdl=yes
13132 fi
13133
13134 else
13135 with_included_ltdl=yes
13136 fi
13137
13138 else
13139 with_included_ltdl=yes
13140 fi
13141
13142
13143 fi
13144
13145
13146
13147
13148 # Check whether --with-ltdl_include was given.
13149 if test "${with_ltdl_include+set}" = set; then
13150 withval=$with_ltdl_include;
13151 fi
13152
13153
13154 if test -n "$with_ltdl_include"; then
13155 if test -f "$with_ltdl_include/ltdl.h"; then :
13156 else
13157 { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
13158 $as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
13159 { (exit 1); exit 1; }; }
13160 fi
13161 else
13162 with_ltdl_include=no
13163 fi
13164
13165
13166 # Check whether --with-ltdl_lib was given.
13167 if test "${with_ltdl_lib+set}" = set; then
13168 withval=$with_ltdl_lib;
13169 fi
13170
13171
13172 if test -n "$with_ltdl_lib"; then
13173 if test -f "$with_ltdl_lib/libltdl.la"; then :
13174 else
13175 { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
13176 $as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
13177 { (exit 1); exit 1; }; }
13178 fi
13179 else
13180 with_ltdl_lib=no
13181 fi
13182
13183 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13184 ,yes,no,no,)
13185 case $enable_ltdl_convenience in
13186 no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
13187 $as_echo "$as_me: error: this package needs a convenience libltdl" >&2;}
13188 { (exit 1); exit 1; }; } ;;
13189 "") enable_ltdl_convenience=yes
13190 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13191 esac
13192 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13193 LTDLDEPS=$LIBLTDL
13194 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13195
13196
13197
13198
13199
13200 # For backwards non-gettext consistent compatibility...
13201 INCLTDL="$LTDLINCL"
13202
13203
13204 ;;
13205 ,no,no,no,)
13206 # If the included ltdl is not to be used, then use the
13207 # preinstalled libltdl we found.
13208
13209 cat >>confdefs.h <<\_ACEOF
13210 #define HAVE_LTDL 1
13211 _ACEOF
13212
13213 LIBLTDL=-lltdl
13214 LTDLDEPS=
13215 LTDLINCL=
13216 ;;
13217 ,no*,no,*)
13218 { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
13219 $as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
13220 { (exit 1); exit 1; }; }
13221 ;;
13222 *) with_included_ltdl=no
13223 LIBLTDL="-L$with_ltdl_lib -lltdl"
13224 LTDLDEPS=
13225 LTDLINCL="-I$with_ltdl_include"
13226 ;;
13227 esac
13228 INCLTDL="$LTDLINCL"
13229
13230 # Report our decision...
13231 { $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
13232 $as_echo_n "checking where to find libltdl headers... " >&6; }
13233 { $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5
13234 $as_echo "$LTDLINCL" >&6; }
13235 { $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5
13236 $as_echo_n "checking where to find libltdl library... " >&6; }
13237 { $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5
13238 $as_echo "$LIBLTDL" >&6; }
13239
13240
13241
13242 # Check whether --enable-ltdl-install was given.
13243 if test "${enable_ltdl_install+set}" = set; then
13244 enableval=$enable_ltdl_install;
13245 fi
13246
13247
13248 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13249 *yes*) ;;
13250 *) enable_ltdl_convenience=yes ;;
13251 esac
13252
13253 if test x"${enable_ltdl_install-no}" != xno; then
13254 INSTALL_LTDL_TRUE=
13255 INSTALL_LTDL_FALSE='#'
13256 else
13257 INSTALL_LTDL_TRUE='#'
13258 INSTALL_LTDL_FALSE=
13259 fi
13260
13261 if test x"${enable_ltdl_convenience-no}" != xno; then
13262 CONVENIENCE_LTDL_TRUE=
13263 CONVENIENCE_LTDL_FALSE='#'
13264 else
13265 CONVENIENCE_LTDL_TRUE='#'
13266 CONVENIENCE_LTDL_FALSE=
13267 fi
13268
13269
13270
13271 subdirs="$subdirs libltdl"
13272
13273
13274
13275
13276
13277 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13278 # the user used. This is so that ltdl.h can pick up the parent projects
13279 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
13280 # definitions required by ltdl.c.
13281 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13292 do
13293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13294 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13295 $as_echo_n "checking for $ac_header... " >&6; }
13296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13297 $as_echo_n "(cached) " >&6
13298 else
13299 cat >conftest.$ac_ext <<_ACEOF
13300 /* confdefs.h. */
13301 _ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13305 $ac_includes_default
13306
13307 #include <$ac_header>
13308 _ACEOF
13309 rm -f conftest.$ac_objext
13310 if { (ac_try="$ac_compile"
13311 case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13314 esac
13315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13316 $as_echo "$ac_try_echo") >&5
13317 (eval "$ac_compile") 2>conftest.er1
13318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } && {
13324 test -z "$ac_c_werror_flag" ||
13325 test ! -s conftest.err
13326 } && test -s conftest.$ac_objext; then
13327 eval "$as_ac_Header=yes"
13328 else
13329 $as_echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 eval "$as_ac_Header=no"
13333 fi
13334
13335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13336 fi
13337 ac_res=`eval 'as_val=${'$as_ac_Header'}
13338 $as_echo "$as_val"'`
13339 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13340 $as_echo "$ac_res" >&6; }
13341 as_val=`eval 'as_val=${'$as_ac_Header'}
13342 $as_echo "$as_val"'`
13343 if test "x$as_val" = x""yes; then
13344 cat >>confdefs.h <<_ACEOF
13345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13346 _ACEOF
13347
13348 fi
13349
13350 done
13351
13352
13353
13354
13355
13356 for ac_func in closedir opendir readdir
13357 do
13358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13359 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13360 $as_echo_n "checking for $ac_func... " >&6; }
13361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13362 $as_echo_n "(cached) " >&6
13363 else
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h. */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13372 #define $ac_func innocuous_$ac_func
13373
13374 /* System header to define __stub macros and hopefully few prototypes,
13375 which can conflict with char $ac_func (); below.
13376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13377 <limits.h> exists even on freestanding compilers. */
13378
13379 #ifdef __STDC__
13380 # include <limits.h>
13381 #else
13382 # include <assert.h>
13383 #endif
13384
13385 #undef $ac_func
13386
13387 /* Override any GCC internal prototype to avoid an error.
13388 Use char because int might match the return type of a GCC
13389 builtin and then its argument prototype would still apply. */
13390 #ifdef __cplusplus
13391 extern "C"
13392 #endif
13393 char $ac_func ();
13394 /* The GNU C library defines this for functions which it implements
13395 to always fail with ENOSYS. Some functions are actually named
13396 something starting with __ and the normal name is an alias. */
13397 #if defined __stub_$ac_func || defined __stub___$ac_func
13398 choke me
13399 #endif
13400
13401 int
13402 main ()
13403 {
13404 return $ac_func ();
13405 ;
13406 return 0;
13407 }
13408 _ACEOF
13409 rm -f conftest.$ac_objext conftest$ac_exeext
13410 if { (ac_try="$ac_link"
13411 case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414 esac
13415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13416 $as_echo "$ac_try_echo") >&5
13417 (eval "$ac_link") 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } && {
13424 test -z "$ac_c_werror_flag" ||
13425 test ! -s conftest.err
13426 } && test -s conftest$ac_exeext && {
13427 test "$cross_compiling" = yes ||
13428 $as_test_x conftest$ac_exeext
13429 }; then
13430 eval "$as_ac_var=yes"
13431 else
13432 $as_echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 eval "$as_ac_var=no"
13436 fi
13437
13438 rm -rf conftest.dSYM
13439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13440 conftest$ac_exeext conftest.$ac_ext
13441 fi
13442 ac_res=`eval 'as_val=${'$as_ac_var'}
13443 $as_echo "$as_val"'`
13444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13445 $as_echo "$ac_res" >&6; }
13446 as_val=`eval 'as_val=${'$as_ac_var'}
13447 $as_echo "$as_val"'`
13448 if test "x$as_val" = x""yes; then
13449 cat >>confdefs.h <<_ACEOF
13450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13451 _ACEOF
13452
13453 else
13454
13455
13456 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13457
13458 fi
13459 done
13460
13461
13462
13463 for ac_func in strlcat strlcpy
13464 do
13465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13466 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13467 $as_echo_n "checking for $ac_func... " >&6; }
13468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13469 $as_echo_n "(cached) " >&6
13470 else
13471 cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h. */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13479 #define $ac_func innocuous_$ac_func
13480
13481 /* System header to define __stub macros and hopefully few prototypes,
13482 which can conflict with char $ac_func (); below.
13483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13484 <limits.h> exists even on freestanding compilers. */
13485
13486 #ifdef __STDC__
13487 # include <limits.h>
13488 #else
13489 # include <assert.h>
13490 #endif
13491
13492 #undef $ac_func
13493
13494 /* Override any GCC internal prototype to avoid an error.
13495 Use char because int might match the return type of a GCC
13496 builtin and then its argument prototype would still apply. */
13497 #ifdef __cplusplus
13498 extern "C"
13499 #endif
13500 char $ac_func ();
13501 /* The GNU C library defines this for functions which it implements
13502 to always fail with ENOSYS. Some functions are actually named
13503 something starting with __ and the normal name is an alias. */
13504 #if defined __stub_$ac_func || defined __stub___$ac_func
13505 choke me
13506 #endif
13507
13508 int
13509 main ()
13510 {
13511 return $ac_func ();
13512 ;
13513 return 0;
13514 }
13515 _ACEOF
13516 rm -f conftest.$ac_objext conftest$ac_exeext
13517 if { (ac_try="$ac_link"
13518 case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13521 esac
13522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13523 $as_echo "$ac_try_echo") >&5
13524 (eval "$ac_link") 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } && {
13531 test -z "$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13533 } && test -s conftest$ac_exeext && {
13534 test "$cross_compiling" = yes ||
13535 $as_test_x conftest$ac_exeext
13536 }; then
13537 eval "$as_ac_var=yes"
13538 else
13539 $as_echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542 eval "$as_ac_var=no"
13543 fi
13544
13545 rm -rf conftest.dSYM
13546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13547 conftest$ac_exeext conftest.$ac_ext
13548 fi
13549 ac_res=`eval 'as_val=${'$as_ac_var'}
13550 $as_echo "$as_val"'`
13551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13552 $as_echo "$ac_res" >&6; }
13553 as_val=`eval 'as_val=${'$as_ac_var'}
13554 $as_echo "$as_val"'`
13555 if test "x$as_val" = x""yes; then
13556 cat >>confdefs.h <<_ACEOF
13557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13558 _ACEOF
13559
13560 else
13561
13562
13563 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13564
13565 fi
13566 done
13567
13568
13569
13570 cat >>confdefs.h <<_ACEOF
13571 #define LT_LIBEXT "$libext"
13572 _ACEOF
13573
13574
13575 name=ltdl
13576 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
13577
13578
13579
13580
13581
13582
13583
13584
13585 # Only expand once:
13586
13587
13588
13589
13590 for ac_prog in perl5 perl
13591 do
13592 # Extract the first word of "$ac_prog", so it can be a program name with args.
13593 set dummy $ac_prog; ac_word=$2
13594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13595 $as_echo_n "checking for $ac_word... " >&6; }
13596 if test "${ac_cv_path_PERL+set}" = set; then
13597 $as_echo_n "(cached) " >&6
13598 else
13599 case $PERL in
13600 [\\/]* | ?:[\\/]*)
13601 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13602 ;;
13603 *)
13604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13605 for as_dir in $LPATH
13606 do
13607 IFS=$as_save_IFS
13608 test -z "$as_dir" && as_dir=.
13609 for ac_exec_ext in '' $ac_executable_extensions; do
13610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13611 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13612 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13613 break 2
13614 fi
13615 done
13616 done
13617 IFS=$as_save_IFS
13618
13619 ;;
13620 esac
13621 fi
13622 PERL=$ac_cv_path_PERL
13623 if test -n "$PERL"; then
13624 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
13625 $as_echo "$PERL" >&6; }
13626 else
13627 { $as_echo "$as_me:$LINENO: result: no" >&5
13628 $as_echo "no" >&6; }
13629 fi
13630
13631
13632 test -n "$PERL" && break
13633 done
13634 test -n "$PERL" || PERL="perl"
13635
13636 for ac_prog in courier-config
13637 do
13638 # Extract the first word of "$ac_prog", so it can be a program name with args.
13639 set dummy $ac_prog; ac_word=$2
13640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13641 $as_echo_n "checking for $ac_word... " >&6; }
13642 if test "${ac_cv_path_COURIERCONFIG+set}" = set; then
13643 $as_echo_n "(cached) " >&6
13644 else
13645 case $COURIERCONFIG in
13646 [\\/]* | ?:[\\/]*)
13647 ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path.
13648 ;;
13649 *)
13650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651 for as_dir in $LPATH
13652 do
13653 IFS=$as_save_IFS
13654 test -z "$as_dir" && as_dir=.
13655 for ac_exec_ext in '' $ac_executable_extensions; do
13656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13657 ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext"
13658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13659 break 2
13660 fi
13661 done
13662 done
13663 IFS=$as_save_IFS
13664
13665 ;;
13666 esac
13667 fi
13668 COURIERCONFIG=$ac_cv_path_COURIERCONFIG
13669 if test -n "$COURIERCONFIG"; then
13670 { $as_echo "$as_me:$LINENO: result: $COURIERCONFIG" >&5
13671 $as_echo "$COURIERCONFIG" >&6; }
13672 else
13673 { $as_echo "$as_me:$LINENO: result: no" >&5
13674 $as_echo "no" >&6; }
13675 fi
13676
13677
13678 test -n "$COURIERCONFIG" && break
13679 done
13680 test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config"
13681
13682
13683 if test "$PERL" = "perl"
13684 then
13685 { { $as_echo "$as_me:$LINENO: error: Perl is required" >&5
13686 $as_echo "$as_me: error: Perl is required" >&2;}
13687 { (exit 1); exit 1; }; }
13688 fi
13689
13690 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13692 eval "prefix=$prefix"
13693 eval "exec_prefix=$exec_prefix"
13694 eval "sysconfdir=$sysconfdir"
13695 eval "bindir=$bindir"
13696 eval "sbindir=$sbindir"
13697 eval "localstatedir=$localstatedir"
13698 eval "libexecdir=$libexecdir"
13699
13700
13701 # Check whether --with-redhat was given.
13702 if test "${with_redhat+set}" = set; then
13703 withval=$with_redhat; redhat=$withval
13704 else
13705 redhat=no
13706 fi
13707
13708
13709 if test "$srcdir" = "."
13710 then
13711 case `./config.guess` in
13712 *-redhat-*)
13713 if test "$redhat" = "no"
13714 then
13715 hash='#'
13716 { $as_echo "$as_me:$LINENO: WARNING: === I think you are trying to run this configure script" >&5
13717 $as_echo "$as_me: WARNING: === I think you are trying to run this configure script" >&2;}
13718 { $as_echo "$as_me:$LINENO: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&5
13719 $as_echo "$as_me: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&2;}
13720 { $as_echo "$as_me:$LINENO: WARNING: === It's much faster to create installable binary RPMs" >&5
13721 $as_echo "$as_me: WARNING: === It's much faster to create installable binary RPMs" >&2;}
13722 { $as_echo "$as_me:$LINENO: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&5
13723 $as_echo "$as_me: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&2;}
13724 { $as_echo "$as_me:$LINENO: WARNING: === When you do this you may find that RPM will tell you" >&5
13725 $as_echo "$as_me: WARNING: === When you do this you may find that RPM will tell you" >&2;}
13726 { $as_echo "$as_me:$LINENO: WARNING: === to install some other software first, before trying to" >&5
13727 $as_echo "$as_me: WARNING: === to install some other software first, before trying to" >&2;}
13728 { $as_echo "$as_me:$LINENO: WARNING: === build this one, and even tell you the name of RPMs you" >&5
13729 $as_echo "$as_me: WARNING: === build this one, and even tell you the name of RPMs you" >&2;}
13730 { $as_echo "$as_me:$LINENO: WARNING: === need to install from the distribution CD. That's much" >&5
13731 $as_echo "$as_me: WARNING: === need to install from the distribution CD. That's much" >&2;}
13732 { $as_echo "$as_me:$LINENO: WARNING: === easier than trying to figure out the same from some" >&5
13733 $as_echo "$as_me: WARNING: === easier than trying to figure out the same from some" >&2;}
13734 { $as_echo "$as_me:$LINENO: WARNING: === cryptic error message." >&5
13735 $as_echo "$as_me: WARNING: === cryptic error message." >&2;}
13736 { $as_echo "$as_me:$LINENO: WARNING: " >&5
13737 $as_echo "$as_me: WARNING: " >&2;}
13738 { $as_echo "$as_me:$LINENO: WARNING: === Even if you don't intend to use everything you need to" >&5
13739 $as_echo "$as_me: WARNING: === Even if you don't intend to use everything you need to" >&2;}
13740 { $as_echo "$as_me:$LINENO: WARNING: === have in order to build via RPM, you should still do as" >&5
13741 $as_echo "$as_me: WARNING: === have in order to build via RPM, you should still do as" >&2;}
13742 { $as_echo "$as_me:$LINENO: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&5
13743 $as_echo "$as_me: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&2;}
13744 { $as_echo "$as_me:$LINENO: WARNING: === goes into RPM sub-packages, which do not need to be" >&5
13745 $as_echo "$as_me: WARNING: === goes into RPM sub-packages, which do not need to be" >&2;}
13746 { $as_echo "$as_me:$LINENO: WARNING: === installed." >&5
13747 $as_echo "$as_me: WARNING: === installed." >&2;}
13748 { $as_echo "$as_me:$LINENO: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&5
13749 $as_echo "$as_me: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&2;}
13750 { $as_echo "$as_me:$LINENO: WARNING: === parameter to this configure script and not see this" >&5
13751 $as_echo "$as_me: WARNING: === parameter to this configure script and not see this" >&2;}
13752 { $as_echo "$as_me:$LINENO: WARNING: === error message. You should also do this when upgrading" >&5
13753 $as_echo "$as_me: WARNING: === error message. You should also do this when upgrading" >&2;}
13754 { $as_echo "$as_me:$LINENO: WARNING: === and you didn't use RPM with the older version." >&5
13755 $as_echo "$as_me: WARNING: === and you didn't use RPM with the older version." >&2;}
13756 { { $as_echo "$as_me:$LINENO: error: ... in either case you better know what you're doing!" >&5
13757 $as_echo "$as_me: error: ... in either case you better know what you're doing!" >&2;}
13758 { (exit 1); exit 1; }; }
13759 fi
13760 ;;
13761 *)
13762 ;;
13763 esac
13764 fi
13765 for ac_prog in expect
13766 do
13767 # Extract the first word of "$ac_prog", so it can be a program name with args.
13768 set dummy $ac_prog; ac_word=$2
13769 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13770 $as_echo_n "checking for $ac_word... " >&6; }
13771 if test "${ac_cv_path_EXPECT+set}" = set; then
13772 $as_echo_n "(cached) " >&6
13773 else
13774 case $EXPECT in
13775 [\\/]* | ?:[\\/]*)
13776 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
13777 ;;
13778 *)
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780 for as_dir in $LPATH
13781 do
13782 IFS=$as_save_IFS
13783 test -z "$as_dir" && as_dir=.
13784 for ac_exec_ext in '' $ac_executable_extensions; do
13785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13786 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
13787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13788 break 2
13789 fi
13790 done
13791 done
13792 IFS=$as_save_IFS
13793
13794 ;;
13795 esac
13796 fi
13797 EXPECT=$ac_cv_path_EXPECT
13798 if test -n "$EXPECT"; then
13799 { $as_echo "$as_me:$LINENO: result: $EXPECT" >&5
13800 $as_echo "$EXPECT" >&6; }
13801 else
13802 { $as_echo "$as_me:$LINENO: result: no" >&5
13803 $as_echo "no" >&6; }
13804 fi
13805
13806
13807 test -n "$EXPECT" && break
13808 done
13809 test -n "$EXPECT" || EXPECT="expect"
13810
13811
13812 if test "$EXPECT" = "expect"
13813 then
13814 { $as_echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
13815 $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
13816 { $as_echo "$as_me:$LINENO: WARNING: expect not found - will not be able to change passwds" >&5
13817 $as_echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
13818 { $as_echo "$as_me:$LINENO: WARNING: in webmail" >&5
13819 $as_echo "$as_me: WARNING: in webmail" >&2;}
13820 { $as_echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
13821 $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
13822 sleep 5
13823 else
13824
13825 cat >>confdefs.h <<_ACEOF
13826 #define HAVE_EXPECT 1
13827 _ACEOF
13828
13829 fi
13830
13831 for ac_prog in passwd
13832 do
13833 # Extract the first word of "$ac_prog", so it can be a program name with args.
13834 set dummy $ac_prog; ac_word=$2
13835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13836 $as_echo_n "checking for $ac_word... " >&6; }
13837 if test "${ac_cv_path_PASSWD+set}" = set; then
13838 $as_echo_n "(cached) " >&6
13839 else
13840 case $PASSWD in
13841 [\\/]* | ?:[\\/]*)
13842 ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path.
13843 ;;
13844 *)
13845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846 for as_dir in $LPATH
13847 do
13848 IFS=$as_save_IFS
13849 test -z "$as_dir" && as_dir=.
13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13852 ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext"
13853 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13854 break 2
13855 fi
13856 done
13857 done
13858 IFS=$as_save_IFS
13859
13860 ;;
13861 esac
13862 fi
13863 PASSWD=$ac_cv_path_PASSWD
13864 if test -n "$PASSWD"; then
13865 { $as_echo "$as_me:$LINENO: result: $PASSWD" >&5
13866 $as_echo "$PASSWD" >&6; }
13867 else
13868 { $as_echo "$as_me:$LINENO: result: no" >&5
13869 $as_echo "no" >&6; }
13870 fi
13871
13872
13873 test -n "$PASSWD" && break
13874 done
13875 test -n "$PASSWD" || PASSWD="passwd"
13876
13877
13878
13879 if test "$GCC" = "yes"
13880 then
13881 CFLAGS="$CFLAGS -Wall"
13882 fi
13883
13884 CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
13885
13886 { $as_echo "$as_me:$LINENO: checking whether -lm is needed for floor" >&5
13887 $as_echo_n "checking whether -lm is needed for floor... " >&6; }
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894
13895 /* Override any GCC internal prototype to avoid an error.
13896 Use char because int might match the return type of a GCC
13897 builtin and then its argument prototype would still apply. */
13898 #ifdef __cplusplus
13899 extern "C"
13900 #endif
13901 char floor ();
13902 int
13903 main ()
13904 {
13905 return floor ();
13906 ;
13907 return 0;
13908 }
13909 _ACEOF
13910 rm -f conftest.$ac_objext conftest$ac_exeext
13911 if { (ac_try="$ac_link"
13912 case "(($ac_try" in
13913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13915 esac
13916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13917 $as_echo "$ac_try_echo") >&5
13918 (eval "$ac_link") 2>conftest.er1
13919 ac_status=$?
13920 grep -v '^ *+' conftest.er1 >conftest.err
13921 rm -f conftest.er1
13922 cat conftest.err >&5
13923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } && {
13925 test -z "$ac_c_werror_flag" ||
13926 test ! -s conftest.err
13927 } && test -s conftest$ac_exeext && {
13928 test "$cross_compiling" = yes ||
13929 $as_test_x conftest$ac_exeext
13930 }; then
13931 { $as_echo "$as_me:$LINENO: result: no" >&5
13932 $as_echo "no" >&6; }
13933 else
13934 $as_echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937 LIBM="-lm"
13938 { $as_echo "$as_me:$LINENO: result: yes" >&5
13939 $as_echo "yes" >&6; }
13940 fi
13941
13942 rm -rf conftest.dSYM
13943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13944 conftest$ac_exeext conftest.$ac_ext
13945
13946
13947 # Check whether --with-pkgconfdir was given.
13948 if test "${with_pkgconfdir+set}" = set; then
13949 withval=$with_pkgconfdir; pkgconfdir="$withval"
13950 else
13951 pkgconfdir="$sysconfdir/authlib"
13952 fi
13953
13954
13955 saveLIBS="$LIBS"
13956 NETLIBS=""
13957 USENSL=no
13958
13959 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13960 $as_echo_n "checking for socket in -lsocket... " >&6; }
13961 if test "${ac_cv_lib_socket_socket+set}" = set; then
13962 $as_echo_n "(cached) " >&6
13963 else
13964 ac_check_lib_save_LIBS=$LIBS
13965 LIBS="-lsocket $LIBS"
13966 cat >conftest.$ac_ext <<_ACEOF
13967 /* confdefs.h. */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972
13973 /* Override any GCC internal prototype to avoid an error.
13974 Use char because int might match the return type of a GCC
13975 builtin and then its argument prototype would still apply. */
13976 #ifdef __cplusplus
13977 extern "C"
13978 #endif
13979 char socket ();
13980 int
13981 main ()
13982 {
13983 return socket ();
13984 ;
13985 return 0;
13986 }
13987 _ACEOF
13988 rm -f conftest.$ac_objext conftest$ac_exeext
13989 if { (ac_try="$ac_link"
13990 case "(($ac_try" in
13991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992 *) ac_try_echo=$ac_try;;
13993 esac
13994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13995 $as_echo "$ac_try_echo") >&5
13996 (eval "$ac_link") 2>conftest.er1
13997 ac_status=$?
13998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
14001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } && {
14003 test -z "$ac_c_werror_flag" ||
14004 test ! -s conftest.err
14005 } && test -s conftest$ac_exeext && {
14006 test "$cross_compiling" = yes ||
14007 $as_test_x conftest$ac_exeext
14008 }; then
14009 ac_cv_lib_socket_socket=yes
14010 else
14011 $as_echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14013
14014 ac_cv_lib_socket_socket=no
14015 fi
14016
14017 rm -rf conftest.dSYM
14018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14019 conftest$ac_exeext conftest.$ac_ext
14020 LIBS=$ac_check_lib_save_LIBS
14021 fi
14022 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14023 $as_echo "$ac_cv_lib_socket_socket" >&6; }
14024 if test "x$ac_cv_lib_socket_socket" = x""yes; then
14025 result=yes
14026 else
14027 result=no
14028 fi
14029
14030 if test $result = yes; then
14031 NETLIBS="-lsocket"
14032 else
14033 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14034 $as_echo_n "checking for socket in -lsocket... " >&6; }
14035 if test "${ac_cv_lib_socket_socket+set}" = set; then
14036 $as_echo_n "(cached) " >&6
14037 else
14038 ac_check_lib_save_LIBS=$LIBS
14039 LIBS="-lsocket -lnsl $LIBS"
14040 cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h. */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14046
14047 /* Override any GCC internal prototype to avoid an error.
14048 Use char because int might match the return type of a GCC
14049 builtin and then its argument prototype would still apply. */
14050 #ifdef __cplusplus
14051 extern "C"
14052 #endif
14053 char socket ();
14054 int
14055 main ()
14056 {
14057 return socket ();
14058 ;
14059 return 0;
14060 }
14061 _ACEOF
14062 rm -f conftest.$ac_objext conftest$ac_exeext
14063 if { (ac_try="$ac_link"
14064 case "(($ac_try" in
14065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14066 *) ac_try_echo=$ac_try;;
14067 esac
14068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14069 $as_echo "$ac_try_echo") >&5
14070 (eval "$ac_link") 2>conftest.er1
14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
14075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } && {
14077 test -z "$ac_c_werror_flag" ||
14078 test ! -s conftest.err
14079 } && test -s conftest$ac_exeext && {
14080 test "$cross_compiling" = yes ||
14081 $as_test_x conftest$ac_exeext
14082 }; then
14083 ac_cv_lib_socket_socket=yes
14084 else
14085 $as_echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14087
14088 ac_cv_lib_socket_socket=no
14089 fi
14090
14091 rm -rf conftest.dSYM
14092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14093 conftest$ac_exeext conftest.$ac_ext
14094 LIBS=$ac_check_lib_save_LIBS
14095 fi
14096 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14097 $as_echo "$ac_cv_lib_socket_socket" >&6; }
14098 if test "x$ac_cv_lib_socket_socket" = x""yes; then
14099 result=yes
14100 else
14101 result=no
14102 fi
14103
14104 if test $result = yes; then
14105 NETLIBS = "-lsocket -lnsl"
14106 USENSL=yes
14107 else
14108 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
14109 $as_echo_n "checking for connect in -lsocket... " >&6; }
14110 if test "${ac_cv_lib_socket_connect+set}" = set; then
14111 $as_echo_n "(cached) " >&6
14112 else
14113 ac_check_lib_save_LIBS=$LIBS
14114 LIBS="-lsocket $LIBS"
14115 cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h. */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14121
14122 /* Override any GCC internal prototype to avoid an error.
14123 Use char because int might match the return type of a GCC
14124 builtin and then its argument prototype would still apply. */
14125 #ifdef __cplusplus
14126 extern "C"
14127 #endif
14128 char connect ();
14129 int
14130 main ()
14131 {
14132 return connect ();
14133 ;
14134 return 0;
14135 }
14136 _ACEOF
14137 rm -f conftest.$ac_objext conftest$ac_exeext
14138 if { (ac_try="$ac_link"
14139 case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14142 esac
14143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14144 $as_echo "$ac_try_echo") >&5
14145 (eval "$ac_link") 2>conftest.er1
14146 ac_status=$?
14147 grep -v '^ *+' conftest.er1 >conftest.err
14148 rm -f conftest.er1
14149 cat conftest.err >&5
14150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } && {
14152 test -z "$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14154 } && test -s conftest$ac_exeext && {
14155 test "$cross_compiling" = yes ||
14156 $as_test_x conftest$ac_exeext
14157 }; then
14158 ac_cv_lib_socket_connect=yes
14159 else
14160 $as_echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163 ac_cv_lib_socket_connect=no
14164 fi
14165
14166 rm -rf conftest.dSYM
14167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14168 conftest$ac_exeext conftest.$ac_ext
14169 LIBS=$ac_check_lib_save_LIBS
14170 fi
14171 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
14172 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14173 if test "x$ac_cv_lib_socket_connect" = x""yes; then
14174 result=yes
14175 else
14176 result=no
14177 fi
14178
14179 if test $result = yes; then
14180 NETLIBS="-lsocket"
14181 else
14182 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
14183 $as_echo_n "checking for connect in -lsocket... " >&6; }
14184 if test "${ac_cv_lib_socket_connect+set}" = set; then
14185 $as_echo_n "(cached) " >&6
14186 else
14187 ac_check_lib_save_LIBS=$LIBS
14188 LIBS="-lsocket -lnsl $LIBS"
14189 cat >conftest.$ac_ext <<_ACEOF
14190 /* confdefs.h. */
14191 _ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14195
14196 /* Override any GCC internal prototype to avoid an error.
14197 Use char because int might match the return type of a GCC
14198 builtin and then its argument prototype would still apply. */
14199 #ifdef __cplusplus
14200 extern "C"
14201 #endif
14202 char connect ();
14203 int
14204 main ()
14205 {
14206 return connect ();
14207 ;
14208 return 0;
14209 }
14210 _ACEOF
14211 rm -f conftest.$ac_objext conftest$ac_exeext
14212 if { (ac_try="$ac_link"
14213 case "(($ac_try" in
14214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14215 *) ac_try_echo=$ac_try;;
14216 esac
14217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14218 $as_echo "$ac_try_echo") >&5
14219 (eval "$ac_link") 2>conftest.er1
14220 ac_status=$?
14221 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1
14223 cat conftest.err >&5
14224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } && {
14226 test -z "$ac_c_werror_flag" ||
14227 test ! -s conftest.err
14228 } && test -s conftest$ac_exeext && {
14229 test "$cross_compiling" = yes ||
14230 $as_test_x conftest$ac_exeext
14231 }; then
14232 ac_cv_lib_socket_connect=yes
14233 else
14234 $as_echo "$as_me: failed program was:" >&5
14235 sed 's/^/| /' conftest.$ac_ext >&5
14236
14237 ac_cv_lib_socket_connect=no
14238 fi
14239
14240 rm -rf conftest.dSYM
14241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14242 conftest$ac_exeext conftest.$ac_ext
14243 LIBS=$ac_check_lib_save_LIBS
14244 fi
14245 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
14246 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14247 if test "x$ac_cv_lib_socket_connect" = x""yes; then
14248 result=yes
14249 else
14250 result=no
14251 fi
14252
14253 if test $result = yes; then
14254 NETLIBS="-lsocket -lnsl"
14255 USENSL=yes
14256 fi
14257 fi
14258 fi
14259 fi
14260
14261 if test $USENSL != yes; then
14262 LIBS="$LIBS $NETLIBS"
14263 cat >conftest.$ac_ext <<_ACEOF
14264 /* confdefs.h. */
14265 _ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269
14270 /* Override any GCC internal prototype to avoid an error.
14271 Use char because int might match the return type of a GCC
14272 builtin and then its argument prototype would still apply. */
14273 #ifdef __cplusplus
14274 extern "C"
14275 #endif
14276 char inet_addr ();
14277 int
14278 main ()
14279 {
14280 return inet_addr ();
14281 ;
14282 return 0;
14283 }
14284 _ACEOF
14285 rm -f conftest.$ac_objext conftest$ac_exeext
14286 if { (ac_try="$ac_link"
14287 case "(($ac_try" in
14288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289 *) ac_try_echo=$ac_try;;
14290 esac
14291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14292 $as_echo "$ac_try_echo") >&5
14293 (eval "$ac_link") 2>conftest.er1
14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
14298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } && {
14300 test -z "$ac_c_werror_flag" ||
14301 test ! -s conftest.err
14302 } && test -s conftest$ac_exeext && {
14303 test "$cross_compiling" = yes ||
14304 $as_test_x conftest$ac_exeext
14305 }; then
14306 :
14307 else
14308 $as_echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14310
14311
14312 { $as_echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
14313 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
14314 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
14315 $as_echo_n "(cached) " >&6
14316 else
14317 ac_check_lib_save_LIBS=$LIBS
14318 LIBS="-lnsl $LIBS"
14319 cat >conftest.$ac_ext <<_ACEOF
14320 /* confdefs.h. */
14321 _ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14325
14326 /* Override any GCC internal prototype to avoid an error.
14327 Use char because int might match the return type of a GCC
14328 builtin and then its argument prototype would still apply. */
14329 #ifdef __cplusplus
14330 extern "C"
14331 #endif
14332 char inet_addr ();
14333 int
14334 main ()
14335 {
14336 return inet_addr ();
14337 ;
14338 return 0;
14339 }
14340 _ACEOF
14341 rm -f conftest.$ac_objext conftest$ac_exeext
14342 if { (ac_try="$ac_link"
14343 case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14346 esac
14347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14348 $as_echo "$ac_try_echo") >&5
14349 (eval "$ac_link") 2>conftest.er1
14350 ac_status=$?
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
14354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } && {
14356 test -z "$ac_c_werror_flag" ||
14357 test ! -s conftest.err
14358 } && test -s conftest$ac_exeext && {
14359 test "$cross_compiling" = yes ||
14360 $as_test_x conftest$ac_exeext
14361 }; then
14362 ac_cv_lib_nsl_inet_addr=yes
14363 else
14364 $as_echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367 ac_cv_lib_nsl_inet_addr=no
14368 fi
14369
14370 rm -rf conftest.dSYM
14371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14372 conftest$ac_exeext conftest.$ac_ext
14373 LIBS=$ac_check_lib_save_LIBS
14374 fi
14375 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
14376 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
14377 if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then
14378 result=yes
14379 else
14380 result=no
14381 fi
14382
14383 if test $result = yes; then
14384 NETLIBS="$NETLIBS -lnsl"
14385 fi
14386
14387 fi
14388
14389 rm -rf conftest.dSYM
14390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14391 conftest$ac_exeext conftest.$ac_ext
14392 fi
14393
14394 LIBS="$saveLIBS"
14395
14396
14397
14398
14399
14400
14401
14402 # Check whether --with-db was given.
14403 if test "${with_db+set}" = set; then
14404 withval=$with_db; db="$withval"
14405 else
14406 needs_withdb=1
14407 fi
14408
14409
14410 case "$db" in
14411 gdbm)
14412 ;;
14413 db)
14414 ;;
14415 "")
14416 ;;
14417 *)
14418 { { $as_echo "$as_me:$LINENO: error: Invalid --with-db option." >&5
14419 $as_echo "$as_me: error: Invalid --with-db option." >&2;}
14420 { (exit 1); exit 1; }; }
14421 ;;
14422 esac
14423
14424 saveLIBS="$LIBS"
14425
14426 if test "$db" != "db"
14427 then
14428 { $as_echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
14429 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
14430 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
14431 $as_echo_n "(cached) " >&6
14432 else
14433 ac_check_lib_save_LIBS=$LIBS
14434 LIBS="-lgdbm $LIBS"
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h. */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441
14442 /* Override any GCC internal prototype to avoid an error.
14443 Use char because int might match the return type of a GCC
14444 builtin and then its argument prototype would still apply. */
14445 #ifdef __cplusplus
14446 extern "C"
14447 #endif
14448 char gdbm_open ();
14449 int
14450 main ()
14451 {
14452 return gdbm_open ();
14453 ;
14454 return 0;
14455 }
14456 _ACEOF
14457 rm -f conftest.$ac_objext conftest$ac_exeext
14458 if { (ac_try="$ac_link"
14459 case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14462 esac
14463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14464 $as_echo "$ac_try_echo") >&5
14465 (eval "$ac_link") 2>conftest.er1
14466 ac_status=$?
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -f conftest.er1
14469 cat conftest.err >&5
14470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } && {
14472 test -z "$ac_c_werror_flag" ||
14473 test ! -s conftest.err
14474 } && test -s conftest$ac_exeext && {
14475 test "$cross_compiling" = yes ||
14476 $as_test_x conftest$ac_exeext
14477 }; then
14478 ac_cv_lib_gdbm_gdbm_open=yes
14479 else
14480 $as_echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14482
14483 ac_cv_lib_gdbm_gdbm_open=no
14484 fi
14485
14486 rm -rf conftest.dSYM
14487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14488 conftest$ac_exeext conftest.$ac_ext
14489 LIBS=$ac_check_lib_save_LIBS
14490 fi
14491 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
14492 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
14493 if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then
14494 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS"
14495 fi
14496
14497 { $as_echo "$as_me:$LINENO: checking for gdbm_open" >&5
14498 $as_echo_n "checking for gdbm_open... " >&6; }
14499 if test "${ac_cv_func_gdbm_open+set}" = set; then
14500 $as_echo_n "(cached) " >&6
14501 else
14502 cat >conftest.$ac_ext <<_ACEOF
14503 /* confdefs.h. */
14504 _ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
14509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14510 #define gdbm_open innocuous_gdbm_open
14511
14512 /* System header to define __stub macros and hopefully few prototypes,
14513 which can conflict with char gdbm_open (); below.
14514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14515 <limits.h> exists even on freestanding compilers. */
14516
14517 #ifdef __STDC__
14518 # include <limits.h>
14519 #else
14520 # include <assert.h>
14521 #endif
14522
14523 #undef gdbm_open
14524
14525 /* Override any GCC internal prototype to avoid an error.
14526 Use char because int might match the return type of a GCC
14527 builtin and then its argument prototype would still apply. */
14528 #ifdef __cplusplus
14529 extern "C"
14530 #endif
14531 char gdbm_open ();
14532 /* The GNU C library defines this for functions which it implements
14533 to always fail with ENOSYS. Some functions are actually named
14534 something starting with __ and the normal name is an alias. */
14535 #if defined __stub_gdbm_open || defined __stub___gdbm_open
14536 choke me
14537 #endif
14538
14539 int
14540 main ()
14541 {
14542 return gdbm_open ();
14543 ;
14544 return 0;
14545 }
14546 _ACEOF
14547 rm -f conftest.$ac_objext conftest$ac_exeext
14548 if { (ac_try="$ac_link"
14549 case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14552 esac
14553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14554 $as_echo "$ac_try_echo") >&5
14555 (eval "$ac_link") 2>conftest.er1
14556 ac_status=$?
14557 grep -v '^ *+' conftest.er1 >conftest.err
14558 rm -f conftest.er1
14559 cat conftest.err >&5
14560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
14564 } && test -s conftest$ac_exeext && {
14565 test "$cross_compiling" = yes ||
14566 $as_test_x conftest$ac_exeext
14567 }; then
14568 ac_cv_func_gdbm_open=yes
14569 else
14570 $as_echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573 ac_cv_func_gdbm_open=no
14574 fi
14575
14576 rm -rf conftest.dSYM
14577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14578 conftest$ac_exeext conftest.$ac_ext
14579 fi
14580 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
14581 $as_echo "$ac_cv_func_gdbm_open" >&6; }
14582 if test "x$ac_cv_func_gdbm_open" = x""yes; then
14583 HAVE_GDBM=y
14584 fi
14585
14586 fi
14587
14588 LIBS="$saveLIBS"
14589
14590 if test "$db" != "gdbm"
14591 then
14592 { $as_echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
14593 $as_echo_n "checking for dbopen in -ldb... " >&6; }
14594 if test "${ac_cv_lib_db_dbopen+set}" = set; then
14595 $as_echo_n "(cached) " >&6
14596 else
14597 ac_check_lib_save_LIBS=$LIBS
14598 LIBS="-ldb $LIBS"
14599 cat >conftest.$ac_ext <<_ACEOF
14600 /* confdefs.h. */
14601 _ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14605
14606 /* Override any GCC internal prototype to avoid an error.
14607 Use char because int might match the return type of a GCC
14608 builtin and then its argument prototype would still apply. */
14609 #ifdef __cplusplus
14610 extern "C"
14611 #endif
14612 char dbopen ();
14613 int
14614 main ()
14615 {
14616 return dbopen ();
14617 ;
14618 return 0;
14619 }
14620 _ACEOF
14621 rm -f conftest.$ac_objext conftest$ac_exeext
14622 if { (ac_try="$ac_link"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626 esac
14627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628 $as_echo "$ac_try_echo") >&5
14629 (eval "$ac_link") 2>conftest.er1
14630 ac_status=$?
14631 grep -v '^ *+' conftest.er1 >conftest.err
14632 rm -f conftest.er1
14633 cat conftest.err >&5
14634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } && {
14636 test -z "$ac_c_werror_flag" ||
14637 test ! -s conftest.err
14638 } && test -s conftest$ac_exeext && {
14639 test "$cross_compiling" = yes ||
14640 $as_test_x conftest$ac_exeext
14641 }; then
14642 ac_cv_lib_db_dbopen=yes
14643 else
14644 $as_echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647 ac_cv_lib_db_dbopen=no
14648 fi
14649
14650 rm -rf conftest.dSYM
14651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14652 conftest$ac_exeext conftest.$ac_ext
14653 LIBS=$ac_check_lib_save_LIBS
14654 fi
14655 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
14656 $as_echo "$ac_cv_lib_db_dbopen" >&6; }
14657 if test "x$ac_cv_lib_db_dbopen" = x""yes; then
14658 LIBDB=-ldb ; LIBS="-ldb $LIBS"
14659 else
14660 { $as_echo "$as_me:$LINENO: checking for db_open in -ldb" >&5
14661 $as_echo_n "checking for db_open in -ldb... " >&6; }
14662 if test "${ac_cv_lib_db_db_open+set}" = set; then
14663 $as_echo_n "(cached) " >&6
14664 else
14665 ac_check_lib_save_LIBS=$LIBS
14666 LIBS="-ldb $LIBS"
14667 cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h. */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673
14674 /* Override any GCC internal prototype to avoid an error.
14675 Use char because int might match the return type of a GCC
14676 builtin and then its argument prototype would still apply. */
14677 #ifdef __cplusplus
14678 extern "C"
14679 #endif
14680 char db_open ();
14681 int
14682 main ()
14683 {
14684 return db_open ();
14685 ;
14686 return 0;
14687 }
14688 _ACEOF
14689 rm -f conftest.$ac_objext conftest$ac_exeext
14690 if { (ac_try="$ac_link"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694 esac
14695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14696 $as_echo "$ac_try_echo") >&5
14697 (eval "$ac_link") 2>conftest.er1
14698 ac_status=$?
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
14702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest$ac_exeext && {
14707 test "$cross_compiling" = yes ||
14708 $as_test_x conftest$ac_exeext
14709 }; then
14710 ac_cv_lib_db_db_open=yes
14711 else
14712 $as_echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14714
14715 ac_cv_lib_db_db_open=no
14716 fi
14717
14718 rm -rf conftest.dSYM
14719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14720 conftest$ac_exeext conftest.$ac_ext
14721 LIBS=$ac_check_lib_save_LIBS
14722 fi
14723 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5
14724 $as_echo "$ac_cv_lib_db_db_open" >&6; }
14725 if test "x$ac_cv_lib_db_db_open" = x""yes; then
14726 LIBDB=-ldb ; LIBS="-ldb $LIBS"
14727 else
14728 { $as_echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
14729 $as_echo_n "checking for db_env_create in -ldb... " >&6; }
14730 if test "${ac_cv_lib_db_db_env_create+set}" = set; then
14731 $as_echo_n "(cached) " >&6
14732 else
14733 ac_check_lib_save_LIBS=$LIBS
14734 LIBS="-ldb $LIBS"
14735 cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h. */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741
14742 /* Override any GCC internal prototype to avoid an error.
14743 Use char because int might match the return type of a GCC
14744 builtin and then its argument prototype would still apply. */
14745 #ifdef __cplusplus
14746 extern "C"
14747 #endif
14748 char db_env_create ();
14749 int
14750 main ()
14751 {
14752 return db_env_create ();
14753 ;
14754 return 0;
14755 }
14756 _ACEOF
14757 rm -f conftest.$ac_objext conftest$ac_exeext
14758 if { (ac_try="$ac_link"
14759 case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14762 esac
14763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14764 $as_echo "$ac_try_echo") >&5
14765 (eval "$ac_link") 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } && {
14772 test -z "$ac_c_werror_flag" ||
14773 test ! -s conftest.err
14774 } && test -s conftest$ac_exeext && {
14775 test "$cross_compiling" = yes ||
14776 $as_test_x conftest$ac_exeext
14777 }; then
14778 ac_cv_lib_db_db_env_create=yes
14779 else
14780 $as_echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783 ac_cv_lib_db_db_env_create=no
14784 fi
14785
14786 rm -rf conftest.dSYM
14787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14788 conftest$ac_exeext conftest.$ac_ext
14789 LIBS=$ac_check_lib_save_LIBS
14790 fi
14791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
14792 $as_echo "$ac_cv_lib_db_db_env_create" >&6; }
14793 if test "x$ac_cv_lib_db_db_env_create" = x""yes; then
14794 LIBDB=-ldb; LIBS="-ldb $LIBS"
14795 fi
14796
14797
14798 fi
14799
14800 fi
14801
14802
14803 { $as_echo "$as_me:$LINENO: checking for dbopen" >&5
14804 $as_echo_n "checking for dbopen... " >&6; }
14805 if test "${ac_cv_func_dbopen+set}" = set; then
14806 $as_echo_n "(cached) " >&6
14807 else
14808 cat >conftest.$ac_ext <<_ACEOF
14809 /* confdefs.h. */
14810 _ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14814 /* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen.
14815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14816 #define dbopen innocuous_dbopen
14817
14818 /* System header to define __stub macros and hopefully few prototypes,
14819 which can conflict with char dbopen (); below.
14820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14821 <limits.h> exists even on freestanding compilers. */
14822
14823 #ifdef __STDC__
14824 # include <limits.h>
14825 #else
14826 # include <assert.h>
14827 #endif
14828
14829 #undef dbopen
14830
14831 /* Override any GCC internal prototype to avoid an error.
14832 Use char because int might match the return type of a GCC
14833 builtin and then its argument prototype would still apply. */
14834 #ifdef __cplusplus
14835 extern "C"
14836 #endif
14837 char dbopen ();
14838 /* The GNU C library defines this for functions which it implements
14839 to always fail with ENOSYS. Some functions are actually named
14840 something starting with __ and the normal name is an alias. */
14841 #if defined __stub_dbopen || defined __stub___dbopen
14842 choke me
14843 #endif
14844
14845 int
14846 main ()
14847 {
14848 return dbopen ();
14849 ;
14850 return 0;
14851 }
14852 _ACEOF
14853 rm -f conftest.$ac_objext conftest$ac_exeext
14854 if { (ac_try="$ac_link"
14855 case "(($ac_try" in
14856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857 *) ac_try_echo=$ac_try;;
14858 esac
14859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14860 $as_echo "$ac_try_echo") >&5
14861 (eval "$ac_link") 2>conftest.er1
14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
14866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } && {
14868 test -z "$ac_c_werror_flag" ||
14869 test ! -s conftest.err
14870 } && test -s conftest$ac_exeext && {
14871 test "$cross_compiling" = yes ||
14872 $as_test_x conftest$ac_exeext
14873 }; then
14874 ac_cv_func_dbopen=yes
14875 else
14876 $as_echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14878
14879 ac_cv_func_dbopen=no
14880 fi
14881
14882 rm -rf conftest.dSYM
14883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14884 conftest$ac_exeext conftest.$ac_ext
14885 fi
14886 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
14887 $as_echo "$ac_cv_func_dbopen" >&6; }
14888 if test "x$ac_cv_func_dbopen" = x""yes; then
14889 HAVE_BDB=1
14890 fi
14891
14892 { $as_echo "$as_me:$LINENO: checking for db_open" >&5
14893 $as_echo_n "checking for db_open... " >&6; }
14894 if test "${ac_cv_func_db_open+set}" = set; then
14895 $as_echo_n "(cached) " >&6
14896 else
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h. */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 /* Define db_open to an innocuous variant, in case <limits.h> declares db_open.
14904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14905 #define db_open innocuous_db_open
14906
14907 /* System header to define __stub macros and hopefully few prototypes,
14908 which can conflict with char db_open (); below.
14909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14910 <limits.h> exists even on freestanding compilers. */
14911
14912 #ifdef __STDC__
14913 # include <limits.h>
14914 #else
14915 # include <assert.h>
14916 #endif
14917
14918 #undef db_open
14919
14920 /* Override any GCC internal prototype to avoid an error.
14921 Use char because int might match the return type of a GCC
14922 builtin and then its argument prototype would still apply. */
14923 #ifdef __cplusplus
14924 extern "C"
14925 #endif
14926 char db_open ();
14927 /* The GNU C library defines this for functions which it implements
14928 to always fail with ENOSYS. Some functions are actually named
14929 something starting with __ and the normal name is an alias. */
14930 #if defined __stub_db_open || defined __stub___db_open
14931 choke me
14932 #endif
14933
14934 int
14935 main ()
14936 {
14937 return db_open ();
14938 ;
14939 return 0;
14940 }
14941 _ACEOF
14942 rm -f conftest.$ac_objext conftest$ac_exeext
14943 if { (ac_try="$ac_link"
14944 case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947 esac
14948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14949 $as_echo "$ac_try_echo") >&5
14950 (eval "$ac_link") 2>conftest.er1
14951 ac_status=$?
14952 grep -v '^ *+' conftest.er1 >conftest.err
14953 rm -f conftest.er1
14954 cat conftest.err >&5
14955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } && {
14957 test -z "$ac_c_werror_flag" ||
14958 test ! -s conftest.err
14959 } && test -s conftest$ac_exeext && {
14960 test "$cross_compiling" = yes ||
14961 $as_test_x conftest$ac_exeext
14962 }; then
14963 ac_cv_func_db_open=yes
14964 else
14965 $as_echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14967
14968 ac_cv_func_db_open=no
14969 fi
14970
14971 rm -rf conftest.dSYM
14972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14973 conftest$ac_exeext conftest.$ac_ext
14974 fi
14975 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5
14976 $as_echo "$ac_cv_func_db_open" >&6; }
14977 if test "x$ac_cv_func_db_open" = x""yes; then
14978 HAVE_BDB=1
14979 fi
14980
14981 { $as_echo "$as_me:$LINENO: checking for db_env_create" >&5
14982 $as_echo_n "checking for db_env_create... " >&6; }
14983 if test "${ac_cv_func_db_env_create+set}" = set; then
14984 $as_echo_n "(cached) " >&6
14985 else
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h. */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14992 /* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create.
14993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14994 #define db_env_create innocuous_db_env_create
14995
14996 /* System header to define __stub macros and hopefully few prototypes,
14997 which can conflict with char db_env_create (); below.
14998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14999 <limits.h> exists even on freestanding compilers. */
15000
15001 #ifdef __STDC__
15002 # include <limits.h>
15003 #else
15004 # include <assert.h>
15005 #endif
15006
15007 #undef db_env_create
15008
15009 /* Override any GCC internal prototype to avoid an error.
15010 Use char because int might match the return type of a GCC
15011 builtin and then its argument prototype would still apply. */
15012 #ifdef __cplusplus
15013 extern "C"
15014 #endif
15015 char db_env_create ();
15016 /* The GNU C library defines this for functions which it implements
15017 to always fail with ENOSYS. Some functions are actually named
15018 something starting with __ and the normal name is an alias. */
15019 #if defined __stub_db_env_create || defined __stub___db_env_create
15020 choke me
15021 #endif
15022
15023 int
15024 main ()
15025 {
15026 return db_env_create ();
15027 ;
15028 return 0;
15029 }
15030 _ACEOF
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (ac_try="$ac_link"
15033 case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15036 esac
15037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15038 $as_echo "$ac_try_echo") >&5
15039 (eval "$ac_link") 2>conftest.er1
15040 ac_status=$?
15041 grep -v '^ *+' conftest.er1 >conftest.err
15042 rm -f conftest.er1
15043 cat conftest.err >&5
15044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } && {
15046 test -z "$ac_c_werror_flag" ||
15047 test ! -s conftest.err
15048 } && test -s conftest$ac_exeext && {
15049 test "$cross_compiling" = yes ||
15050 $as_test_x conftest$ac_exeext
15051 }; then
15052 ac_cv_func_db_env_create=yes
15053 else
15054 $as_echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057 ac_cv_func_db_env_create=no
15058 fi
15059
15060 rm -rf conftest.dSYM
15061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15062 conftest$ac_exeext conftest.$ac_ext
15063 fi
15064 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5
15065 $as_echo "$ac_cv_func_db_env_create" >&6; }
15066 if test "x$ac_cv_func_db_env_create" = x""yes; then
15067 HAVE_BDB=1
15068 fi
15069
15070 fi
15071
15072 LIBS="$saveLIBS"
15073
15074 if test "$HAVE_GDBM$HAVE_BDB" = ""
15075 then
15076 { { $as_echo "$as_me:$LINENO: error: Cannot find either the gdbm or the db library." >&5
15077 $as_echo "$as_me: error: Cannot find either the gdbm or the db library." >&2;}
15078 { (exit 1); exit 1; }; }
15079 fi
15080
15081 USE_GDBM=0
15082 USE_DB=0
15083
15084 if test "$HAVE_GDBM" = "y"
15085 then
15086 LIBDB=""
15087 USE_GDBM=1
15088 if test "$needs_withdb" = 1
15089 then
15090 ac_configure_args="$ac_configure_args --with-db=gdbm"
15091 fi
15092 dblibrary=gdbmobj/libgdbmobj.la
15093 else
15094 LIBGDBM=""
15095 USE_DB=1
15096 if test "$needs_withdb" = 1
15097 then
15098 ac_configure_args="$ac_configure_args --with-db=db"
15099 fi
15100 dblibrary=bdbobj/libbdbobj.la
15101 fi
15102
15103
15104
15105
15106
15107 # Check whether --with-authuserdb was given.
15108 if test "${with_authuserdb+set}" = set; then
15109 withval=$with_authuserdb; doauthuserdb="$withval"
15110 else
15111 doauthuserdb="no"
15112 if test -d ${srcdir}/userdb
15113 then
15114 doauthuserdb="yes"
15115 fi
15116 fi
15117
15118
15119 if test "$doauthuserdb" = "no"
15120 then
15121 AUTHUSERDB=""
15122 else
15123 AUTHUSERDB="authuserdb"
15124 LIBAUTHUSERDB="libauthuserdb.la"
15125
15126 fi
15127
15128
15129 # Check whether --with-makedatprog was given.
15130 if test "${with_makedatprog+set}" = set; then
15131 withval=$with_makedatprog; :
15132 else
15133
15134 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
15135
15136 fi
15137
15138
15139 cat >dbobj.config <<EOF
15140 LIBDB=$LIBDB
15141 LIBGDBM=$LIBGDBM
15142 dblibrary=$dblibrary
15143 EOF
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153 userdb="$pkgconfdir/userdb"
15154
15155 # Check whether --with-userdb was given.
15156 if test "${with_userdb+set}" = set; then
15157 withval=$with_userdb; userdb="$withval"
15158 else
15159 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"
15160 fi
15161
15162
15163
15164 cat >>confdefs.h <<_ACEOF
15165 #define USERDB "$userdb"
15166 _ACEOF
15167
15168
15169
15170
15171 for ac_header in stdio.h
15172 do
15173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15176 $as_echo_n "checking for $ac_header... " >&6; }
15177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15178 $as_echo_n "(cached) " >&6
15179 fi
15180 ac_res=`eval 'as_val=${'$as_ac_Header'}
15181 $as_echo "$as_val"'`
15182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15183 $as_echo "$ac_res" >&6; }
15184 else
15185 # Is the header compilable?
15186 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15187 $as_echo_n "checking $ac_header usability... " >&6; }
15188 cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h. */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h. */
15194 $ac_includes_default
15195 #include <$ac_header>
15196 _ACEOF
15197 rm -f conftest.$ac_objext
15198 if { (ac_try="$ac_compile"
15199 case "(($ac_try" in
15200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201 *) ac_try_echo=$ac_try;;
15202 esac
15203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15204 $as_echo "$ac_try_echo") >&5
15205 (eval "$ac_compile") 2>conftest.er1
15206 ac_status=$?
15207 grep -v '^ *+' conftest.er1 >conftest.err
15208 rm -f conftest.er1
15209 cat conftest.err >&5
15210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } && {
15212 test -z "$ac_c_werror_flag" ||
15213 test ! -s conftest.err
15214 } && test -s conftest.$ac_objext; then
15215 ac_header_compiler=yes
15216 else
15217 $as_echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15219
15220 ac_header_compiler=no
15221 fi
15222
15223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15224 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15225 $as_echo "$ac_header_compiler" >&6; }
15226
15227 # Is the header present?
15228 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15229 $as_echo_n "checking $ac_header presence... " >&6; }
15230 cat >conftest.$ac_ext <<_ACEOF
15231 /* confdefs.h. */
15232 _ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15236 #include <$ac_header>
15237 _ACEOF
15238 if { (ac_try="$ac_cpp conftest.$ac_ext"
15239 case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15242 esac
15243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15244 $as_echo "$ac_try_echo") >&5
15245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15246 ac_status=$?
15247 grep -v '^ *+' conftest.er1 >conftest.err
15248 rm -f conftest.er1
15249 cat conftest.err >&5
15250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } >/dev/null && {
15252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15253 test ! -s conftest.err
15254 }; then
15255 ac_header_preproc=yes
15256 else
15257 $as_echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15259
15260 ac_header_preproc=no
15261 fi
15262
15263 rm -f conftest.err conftest.$ac_ext
15264 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15265 $as_echo "$ac_header_preproc" >&6; }
15266
15267 # So? What about this header?
15268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15269 yes:no: )
15270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15271 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15273 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15274 ac_header_preproc=yes
15275 ;;
15276 no:yes:* )
15277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15278 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15280 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15282 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15284 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15288 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15289 ( cat <<\_ASBOX
15290 ## -------------------------------------------------- ##
15291 ## Report this to courier-users@lists.sourceforge.net ##
15292 ## -------------------------------------------------- ##
15293 _ASBOX
15294 ) | sed "s/^/$as_me: WARNING: /" >&2
15295 ;;
15296 esac
15297 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15298 $as_echo_n "checking for $ac_header... " >&6; }
15299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15300 $as_echo_n "(cached) " >&6
15301 else
15302 eval "$as_ac_Header=\$ac_header_preproc"
15303 fi
15304 ac_res=`eval 'as_val=${'$as_ac_Header'}
15305 $as_echo "$as_val"'`
15306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15307 $as_echo "$ac_res" >&6; }
15308
15309 fi
15310 as_val=`eval 'as_val=${'$as_ac_Header'}
15311 $as_echo "$as_val"'`
15312 if test "x$as_val" = x""yes; then
15313 cat >>confdefs.h <<_ACEOF
15314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15315 _ACEOF
15316
15317 fi
15318
15319 done
15320
15321
15322
15323
15324
15325
15326 # Check whether --with-authpam was given.
15327 if test "${with_authpam+set}" = set; then
15328 withval=$with_authpam; doauthpam="$withval"
15329 fi
15330
15331
15332
15333
15334 for ac_header in security/pam_appl.h Pam/pam_appl.h
15335 do
15336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15338 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15339 $as_echo_n "checking for $ac_header... " >&6; }
15340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15341 $as_echo_n "(cached) " >&6
15342 fi
15343 ac_res=`eval 'as_val=${'$as_ac_Header'}
15344 $as_echo "$as_val"'`
15345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15346 $as_echo "$ac_res" >&6; }
15347 else
15348 # Is the header compilable?
15349 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15350 $as_echo_n "checking $ac_header usability... " >&6; }
15351 cat >conftest.$ac_ext <<_ACEOF
15352 /* confdefs.h. */
15353 _ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 $ac_includes_default
15358 #include <$ac_header>
15359 _ACEOF
15360 rm -f conftest.$ac_objext
15361 if { (ac_try="$ac_compile"
15362 case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15365 esac
15366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15367 $as_echo "$ac_try_echo") >&5
15368 (eval "$ac_compile") 2>conftest.er1
15369 ac_status=$?
15370 grep -v '^ *+' conftest.er1 >conftest.err
15371 rm -f conftest.er1
15372 cat conftest.err >&5
15373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } && {
15375 test -z "$ac_c_werror_flag" ||
15376 test ! -s conftest.err
15377 } && test -s conftest.$ac_objext; then
15378 ac_header_compiler=yes
15379 else
15380 $as_echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15382
15383 ac_header_compiler=no
15384 fi
15385
15386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15388 $as_echo "$ac_header_compiler" >&6; }
15389
15390 # Is the header present?
15391 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15392 $as_echo_n "checking $ac_header presence... " >&6; }
15393 cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h. */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15399 #include <$ac_header>
15400 _ACEOF
15401 if { (ac_try="$ac_cpp conftest.$ac_ext"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15405 esac
15406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15407 $as_echo "$ac_try_echo") >&5
15408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
15413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } >/dev/null && {
15415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15416 test ! -s conftest.err
15417 }; then
15418 ac_header_preproc=yes
15419 else
15420 $as_echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15422
15423 ac_header_preproc=no
15424 fi
15425
15426 rm -f conftest.err conftest.$ac_ext
15427 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15428 $as_echo "$ac_header_preproc" >&6; }
15429
15430 # So? What about this header?
15431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15432 yes:no: )
15433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15434 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15436 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15437 ac_header_preproc=yes
15438 ;;
15439 no:yes:* )
15440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15441 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15443 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15445 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15447 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15449 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15451 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15452 ( cat <<\_ASBOX
15453 ## -------------------------------------------------- ##
15454 ## Report this to courier-users@lists.sourceforge.net ##
15455 ## -------------------------------------------------- ##
15456 _ASBOX
15457 ) | sed "s/^/$as_me: WARNING: /" >&2
15458 ;;
15459 esac
15460 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15461 $as_echo_n "checking for $ac_header... " >&6; }
15462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15463 $as_echo_n "(cached) " >&6
15464 else
15465 eval "$as_ac_Header=\$ac_header_preproc"
15466 fi
15467 ac_res=`eval 'as_val=${'$as_ac_Header'}
15468 $as_echo "$as_val"'`
15469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15470 $as_echo "$ac_res" >&6; }
15471
15472 fi
15473 as_val=`eval 'as_val=${'$as_ac_Header'}
15474 $as_echo "$as_val"'`
15475 if test "x$as_val" = x""yes; then
15476 cat >>confdefs.h <<_ACEOF
15477 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15478 _ACEOF
15479
15480 fi
15481
15482 done
15483
15484 if test "$doauthpam" = "no"
15485 then
15486 LIBDL=""
15487 else
15488 saveLIBS="$LIBS"
15489 LIBDL=""
15490 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15491 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15492 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15493 $as_echo_n "(cached) " >&6
15494 else
15495 ac_check_lib_save_LIBS=$LIBS
15496 LIBS="-ldl $LIBS"
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h. */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503
15504 /* Override any GCC internal prototype to avoid an error.
15505 Use char because int might match the return type of a GCC
15506 builtin and then its argument prototype would still apply. */
15507 #ifdef __cplusplus
15508 extern "C"
15509 #endif
15510 char dlopen ();
15511 int
15512 main ()
15513 {
15514 return dlopen ();
15515 ;
15516 return 0;
15517 }
15518 _ACEOF
15519 rm -f conftest.$ac_objext conftest$ac_exeext
15520 if { (ac_try="$ac_link"
15521 case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15524 esac
15525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15526 $as_echo "$ac_try_echo") >&5
15527 (eval "$ac_link") 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } && {
15534 test -z "$ac_c_werror_flag" ||
15535 test ! -s conftest.err
15536 } && test -s conftest$ac_exeext && {
15537 test "$cross_compiling" = yes ||
15538 $as_test_x conftest$ac_exeext
15539 }; then
15540 ac_cv_lib_dl_dlopen=yes
15541 else
15542 $as_echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15544
15545 ac_cv_lib_dl_dlopen=no
15546 fi
15547
15548 rm -rf conftest.dSYM
15549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15550 conftest$ac_exeext conftest.$ac_ext
15551 LIBS=$ac_check_lib_save_LIBS
15552 fi
15553 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15554 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15555 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15556 LIBDL="-ldl"
15557 fi
15558
15559 LIBS="$saveLIBS"
15560
15561 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
15562 $as_echo_n "checking for pam_start in -lpam... " >&6; }
15563 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
15564 $as_echo_n "(cached) " >&6
15565 else
15566 ac_check_lib_save_LIBS=$LIBS
15567 LIBS="-lpam $LIBDL $LIBS"
15568 cat >conftest.$ac_ext <<_ACEOF
15569 /* confdefs.h. */
15570 _ACEOF
15571 cat confdefs.h >>conftest.$ac_ext
15572 cat >>conftest.$ac_ext <<_ACEOF
15573 /* end confdefs.h. */
15574
15575 /* Override any GCC internal prototype to avoid an error.
15576 Use char because int might match the return type of a GCC
15577 builtin and then its argument prototype would still apply. */
15578 #ifdef __cplusplus
15579 extern "C"
15580 #endif
15581 char pam_start ();
15582 int
15583 main ()
15584 {
15585 return pam_start ();
15586 ;
15587 return 0;
15588 }
15589 _ACEOF
15590 rm -f conftest.$ac_objext conftest$ac_exeext
15591 if { (ac_try="$ac_link"
15592 case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15595 esac
15596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15597 $as_echo "$ac_try_echo") >&5
15598 (eval "$ac_link") 2>conftest.er1
15599 ac_status=$?
15600 grep -v '^ *+' conftest.er1 >conftest.err
15601 rm -f conftest.er1
15602 cat conftest.err >&5
15603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } && {
15605 test -z "$ac_c_werror_flag" ||
15606 test ! -s conftest.err
15607 } && test -s conftest$ac_exeext && {
15608 test "$cross_compiling" = yes ||
15609 $as_test_x conftest$ac_exeext
15610 }; then
15611 ac_cv_lib_pam_pam_start=yes
15612 else
15613 $as_echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.$ac_ext >&5
15615
15616 ac_cv_lib_pam_pam_start=no
15617 fi
15618
15619 rm -rf conftest.dSYM
15620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15621 conftest$ac_exeext conftest.$ac_ext
15622 LIBS=$ac_check_lib_save_LIBS
15623 fi
15624 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
15625 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
15626 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
15627 HAVE_PAM=1
15628 LIBS="-lpam $LIBDL $LIBS"
15629
15630 for ac_func in pam_setcred
15631 do
15632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15633 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15634 $as_echo_n "checking for $ac_func... " >&6; }
15635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15636 $as_echo_n "(cached) " >&6
15637 else
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h. */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15646 #define $ac_func innocuous_$ac_func
15647
15648 /* System header to define __stub macros and hopefully few prototypes,
15649 which can conflict with char $ac_func (); below.
15650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15651 <limits.h> exists even on freestanding compilers. */
15652
15653 #ifdef __STDC__
15654 # include <limits.h>
15655 #else
15656 # include <assert.h>
15657 #endif
15658
15659 #undef $ac_func
15660
15661 /* Override any GCC internal prototype to avoid an error.
15662 Use char because int might match the return type of a GCC
15663 builtin and then its argument prototype would still apply. */
15664 #ifdef __cplusplus
15665 extern "C"
15666 #endif
15667 char $ac_func ();
15668 /* The GNU C library defines this for functions which it implements
15669 to always fail with ENOSYS. Some functions are actually named
15670 something starting with __ and the normal name is an alias. */
15671 #if defined __stub_$ac_func || defined __stub___$ac_func
15672 choke me
15673 #endif
15674
15675 int
15676 main ()
15677 {
15678 return $ac_func ();
15679 ;
15680 return 0;
15681 }
15682 _ACEOF
15683 rm -f conftest.$ac_objext conftest$ac_exeext
15684 if { (ac_try="$ac_link"
15685 case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15688 esac
15689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15690 $as_echo "$ac_try_echo") >&5
15691 (eval "$ac_link") 2>conftest.er1
15692 ac_status=$?
15693 grep -v '^ *+' conftest.er1 >conftest.err
15694 rm -f conftest.er1
15695 cat conftest.err >&5
15696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } && {
15698 test -z "$ac_c_werror_flag" ||
15699 test ! -s conftest.err
15700 } && test -s conftest$ac_exeext && {
15701 test "$cross_compiling" = yes ||
15702 $as_test_x conftest$ac_exeext
15703 }; then
15704 eval "$as_ac_var=yes"
15705 else
15706 $as_echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709 eval "$as_ac_var=no"
15710 fi
15711
15712 rm -rf conftest.dSYM
15713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15714 conftest$ac_exeext conftest.$ac_ext
15715 fi
15716 ac_res=`eval 'as_val=${'$as_ac_var'}
15717 $as_echo "$as_val"'`
15718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15719 $as_echo "$ac_res" >&6; }
15720 as_val=`eval 'as_val=${'$as_ac_var'}
15721 $as_echo "$as_val"'`
15722 if test "x$as_val" = x""yes; then
15723 cat >>confdefs.h <<_ACEOF
15724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15725 _ACEOF
15726
15727 fi
15728 done
15729
15730 else
15731 HAVE_PAM=0
15732 fi
15733
15734 LIBS="$saveLIBS"
15735 fi
15736
15737
15738 LIBAUTHPAM=""
15739 if test "$HAVE_PAM" = 1
15740 then
15741 LIBAUTHPAM=libauthpam.la
15742 fi
15743
15744
15745 # Check whether --with-authpam-libraries was given.
15746 if test "${with_authpam_libraries+set}" = set; then
15747 withval=$with_authpam_libraries; authpamcrypt="$withval"
15748 fi
15749
15750
15751 AUTHPAMCRYPT="$authpamcrypt"
15752
15753
15754
15755
15756
15757
15758
15759 # Check whether --with-authldap was given.
15760 if test "${with_authldap+set}" = set; then
15761 withval=$with_authldap; doauthldap="$withval"
15762 else
15763 doauthldap="yes"
15764 fi
15765
15766
15767
15768 for ac_header in lber.h
15769 do
15770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15773 $as_echo_n "checking for $ac_header... " >&6; }
15774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15775 $as_echo_n "(cached) " >&6
15776 fi
15777 ac_res=`eval 'as_val=${'$as_ac_Header'}
15778 $as_echo "$as_val"'`
15779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15780 $as_echo "$ac_res" >&6; }
15781 else
15782 # Is the header compilable?
15783 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15784 $as_echo_n "checking $ac_header usability... " >&6; }
15785 cat >conftest.$ac_ext <<_ACEOF
15786 /* confdefs.h. */
15787 _ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791 $ac_includes_default
15792 #include <$ac_header>
15793 _ACEOF
15794 rm -f conftest.$ac_objext
15795 if { (ac_try="$ac_compile"
15796 case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15799 esac
15800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15801 $as_echo "$ac_try_echo") >&5
15802 (eval "$ac_compile") 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } && {
15809 test -z "$ac_c_werror_flag" ||
15810 test ! -s conftest.err
15811 } && test -s conftest.$ac_objext; then
15812 ac_header_compiler=yes
15813 else
15814 $as_echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15816
15817 ac_header_compiler=no
15818 fi
15819
15820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15822 $as_echo "$ac_header_compiler" >&6; }
15823
15824 # Is the header present?
15825 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15826 $as_echo_n "checking $ac_header presence... " >&6; }
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h. */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 #include <$ac_header>
15834 _ACEOF
15835 if { (ac_try="$ac_cpp conftest.$ac_ext"
15836 case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15839 esac
15840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15841 $as_echo "$ac_try_echo") >&5
15842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15843 ac_status=$?
15844 grep -v '^ *+' conftest.er1 >conftest.err
15845 rm -f conftest.er1
15846 cat conftest.err >&5
15847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } >/dev/null && {
15849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15850 test ! -s conftest.err
15851 }; then
15852 ac_header_preproc=yes
15853 else
15854 $as_echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15856
15857 ac_header_preproc=no
15858 fi
15859
15860 rm -f conftest.err conftest.$ac_ext
15861 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15862 $as_echo "$ac_header_preproc" >&6; }
15863
15864 # So? What about this header?
15865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15866 yes:no: )
15867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15868 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15870 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15871 ac_header_preproc=yes
15872 ;;
15873 no:yes:* )
15874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15875 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15877 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15879 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15881 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15885 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15886 ( cat <<\_ASBOX
15887 ## -------------------------------------------------- ##
15888 ## Report this to courier-users@lists.sourceforge.net ##
15889 ## -------------------------------------------------- ##
15890 _ASBOX
15891 ) | sed "s/^/$as_me: WARNING: /" >&2
15892 ;;
15893 esac
15894 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15895 $as_echo_n "checking for $ac_header... " >&6; }
15896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15897 $as_echo_n "(cached) " >&6
15898 else
15899 eval "$as_ac_Header=\$ac_header_preproc"
15900 fi
15901 ac_res=`eval 'as_val=${'$as_ac_Header'}
15902 $as_echo "$as_val"'`
15903 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15904 $as_echo "$ac_res" >&6; }
15905
15906 fi
15907 as_val=`eval 'as_val=${'$as_ac_Header'}
15908 $as_echo "$as_val"'`
15909 if test "x$as_val" = x""yes; then
15910 cat >>confdefs.h <<_ACEOF
15911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15912 _ACEOF
15913
15914 fi
15915
15916 done
15917
15918
15919 for ac_header in ldap.h
15920 do
15921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15923 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15924 $as_echo_n "checking for $ac_header... " >&6; }
15925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15926 $as_echo_n "(cached) " >&6
15927 fi
15928 ac_res=`eval 'as_val=${'$as_ac_Header'}
15929 $as_echo "$as_val"'`
15930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15931 $as_echo "$ac_res" >&6; }
15932 else
15933 # Is the header compilable?
15934 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15935 $as_echo_n "checking $ac_header usability... " >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h. */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 $ac_includes_default
15943 #include <$ac_header>
15944 _ACEOF
15945 rm -f conftest.$ac_objext
15946 if { (ac_try="$ac_compile"
15947 case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15950 esac
15951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15952 $as_echo "$ac_try_echo") >&5
15953 (eval "$ac_compile") 2>conftest.er1
15954 ac_status=$?
15955 grep -v '^ *+' conftest.er1 >conftest.err
15956 rm -f conftest.er1
15957 cat conftest.err >&5
15958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } && {
15960 test -z "$ac_c_werror_flag" ||
15961 test ! -s conftest.err
15962 } && test -s conftest.$ac_objext; then
15963 ac_header_compiler=yes
15964 else
15965 $as_echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968 ac_header_compiler=no
15969 fi
15970
15971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15972 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15973 $as_echo "$ac_header_compiler" >&6; }
15974
15975 # Is the header present?
15976 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15977 $as_echo_n "checking $ac_header presence... " >&6; }
15978 cat >conftest.$ac_ext <<_ACEOF
15979 /* confdefs.h. */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15984 #include <$ac_header>
15985 _ACEOF
15986 if { (ac_try="$ac_cpp conftest.$ac_ext"
15987 case "(($ac_try" in
15988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15989 *) ac_try_echo=$ac_try;;
15990 esac
15991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15992 $as_echo "$ac_try_echo") >&5
15993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15994 ac_status=$?
15995 grep -v '^ *+' conftest.er1 >conftest.err
15996 rm -f conftest.er1
15997 cat conftest.err >&5
15998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } >/dev/null && {
16000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16001 test ! -s conftest.err
16002 }; then
16003 ac_header_preproc=yes
16004 else
16005 $as_echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16007
16008 ac_header_preproc=no
16009 fi
16010
16011 rm -f conftest.err conftest.$ac_ext
16012 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16013 $as_echo "$ac_header_preproc" >&6; }
16014
16015 # So? What about this header?
16016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16017 yes:no: )
16018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16019 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16021 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16022 ac_header_preproc=yes
16023 ;;
16024 no:yes:* )
16025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16026 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16028 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16030 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16032 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16034 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16036 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16037 ( cat <<\_ASBOX
16038 ## -------------------------------------------------- ##
16039 ## Report this to courier-users@lists.sourceforge.net ##
16040 ## -------------------------------------------------- ##
16041 _ASBOX
16042 ) | sed "s/^/$as_me: WARNING: /" >&2
16043 ;;
16044 esac
16045 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16046 $as_echo_n "checking for $ac_header... " >&6; }
16047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16048 $as_echo_n "(cached) " >&6
16049 else
16050 eval "$as_ac_Header=\$ac_header_preproc"
16051 fi
16052 ac_res=`eval 'as_val=${'$as_ac_Header'}
16053 $as_echo "$as_val"'`
16054 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16055 $as_echo "$ac_res" >&6; }
16056
16057 fi
16058 as_val=`eval 'as_val=${'$as_ac_Header'}
16059 $as_echo "$as_val"'`
16060 if test "x$as_val" = x""yes; then
16061 cat >>confdefs.h <<_ACEOF
16062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16063 _ACEOF
16064
16065 fi
16066
16067 done
16068
16069
16070 for ac_header in netinet/in.h
16071 do
16072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16075 $as_echo_n "checking for $ac_header... " >&6; }
16076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16077 $as_echo_n "(cached) " >&6
16078 fi
16079 ac_res=`eval 'as_val=${'$as_ac_Header'}
16080 $as_echo "$as_val"'`
16081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16082 $as_echo "$ac_res" >&6; }
16083 else
16084 # Is the header compilable?
16085 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16086 $as_echo_n "checking $ac_header usability... " >&6; }
16087 cat >conftest.$ac_ext <<_ACEOF
16088 /* confdefs.h. */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16093 $ac_includes_default
16094 #include <$ac_header>
16095 _ACEOF
16096 rm -f conftest.$ac_objext
16097 if { (ac_try="$ac_compile"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16101 esac
16102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16103 $as_echo "$ac_try_echo") >&5
16104 (eval "$ac_compile") 2>conftest.er1
16105 ac_status=$?
16106 grep -v '^ *+' conftest.er1 >conftest.err
16107 rm -f conftest.er1
16108 cat conftest.err >&5
16109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } && {
16111 test -z "$ac_c_werror_flag" ||
16112 test ! -s conftest.err
16113 } && test -s conftest.$ac_objext; then
16114 ac_header_compiler=yes
16115 else
16116 $as_echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16118
16119 ac_header_compiler=no
16120 fi
16121
16122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16123 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16124 $as_echo "$ac_header_compiler" >&6; }
16125
16126 # Is the header present?
16127 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16128 $as_echo_n "checking $ac_header presence... " >&6; }
16129 cat >conftest.$ac_ext <<_ACEOF
16130 /* confdefs.h. */
16131 _ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h. */
16135 #include <$ac_header>
16136 _ACEOF
16137 if { (ac_try="$ac_cpp conftest.$ac_ext"
16138 case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16141 esac
16142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16143 $as_echo "$ac_try_echo") >&5
16144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16145 ac_status=$?
16146 grep -v '^ *+' conftest.er1 >conftest.err
16147 rm -f conftest.er1
16148 cat conftest.err >&5
16149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } >/dev/null && {
16151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16152 test ! -s conftest.err
16153 }; then
16154 ac_header_preproc=yes
16155 else
16156 $as_echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159 ac_header_preproc=no
16160 fi
16161
16162 rm -f conftest.err conftest.$ac_ext
16163 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16164 $as_echo "$ac_header_preproc" >&6; }
16165
16166 # So? What about this header?
16167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16168 yes:no: )
16169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16170 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16172 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16173 ac_header_preproc=yes
16174 ;;
16175 no:yes:* )
16176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16177 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16179 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16181 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16183 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16185 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16187 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16188 ( cat <<\_ASBOX
16189 ## -------------------------------------------------- ##
16190 ## Report this to courier-users@lists.sourceforge.net ##
16191 ## -------------------------------------------------- ##
16192 _ASBOX
16193 ) | sed "s/^/$as_me: WARNING: /" >&2
16194 ;;
16195 esac
16196 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16197 $as_echo_n "checking for $ac_header... " >&6; }
16198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16199 $as_echo_n "(cached) " >&6
16200 else
16201 eval "$as_ac_Header=\$ac_header_preproc"
16202 fi
16203 ac_res=`eval 'as_val=${'$as_ac_Header'}
16204 $as_echo "$as_val"'`
16205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16206 $as_echo "$ac_res" >&6; }
16207
16208 fi
16209 as_val=`eval 'as_val=${'$as_ac_Header'}
16210 $as_echo "$as_val"'`
16211 if test "x$as_val" = x""yes; then
16212 cat >>confdefs.h <<_ACEOF
16213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16214 _ACEOF
16215
16216 fi
16217
16218 done
16219
16220
16221 if test "$doauthldap" = "no"
16222 then
16223 HAVE_LDAP=0
16224 else
16225 saveLIBS="$LIBS"
16226 LIBS="$NETLIBS $LIBS"
16227 LDAPLIBS=""
16228
16229 { $as_echo "$as_me:$LINENO: checking whether -lresolv is needed for res_query" >&5
16230 $as_echo_n "checking whether -lresolv is needed for res_query... " >&6; }
16231 cat >conftest.$ac_ext <<_ACEOF
16232 /* confdefs.h. */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h. */
16237
16238 #include <sys/types.h>
16239 #if HAVE_NETINET_IN_H
16240 #include <netinet/in.h>
16241 #endif
16242 #include <resolv.h>
16243
16244 void (*func)()= (void (*)())res_query;
16245
16246 int
16247 main ()
16248 {
16249 (*func)();
16250 ;
16251 return 0;
16252 }
16253 _ACEOF
16254 rm -f conftest.$ac_objext conftest$ac_exeext
16255 if { (ac_try="$ac_link"
16256 case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16259 esac
16260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16261 $as_echo "$ac_try_echo") >&5
16262 (eval "$ac_link") 2>conftest.er1
16263 ac_status=$?
16264 grep -v '^ *+' conftest.er1 >conftest.err
16265 rm -f conftest.er1
16266 cat conftest.err >&5
16267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } && {
16269 test -z "$ac_c_werror_flag" ||
16270 test ! -s conftest.err
16271 } && test -s conftest$ac_exeext && {
16272 test "$cross_compiling" = yes ||
16273 $as_test_x conftest$ac_exeext
16274 }; then
16275 { $as_echo "$as_me:$LINENO: result: no" >&5
16276 $as_echo "no" >&6; }
16277 else
16278 $as_echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16280
16281
16282 LIBS="-lresolv $LIBS"
16283
16284 cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h. */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16290
16291 #include <sys/types.h>
16292 #if HAVE_NETINET_IN_H
16293 #include <netinet/in.h>
16294 #endif
16295 #include <resolv.h>
16296
16297 void (*func)()= (void (*)())res_query;
16298
16299 int
16300 main ()
16301 {
16302 (*func)();
16303 ;
16304 return 0;
16305 }
16306 _ACEOF
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (ac_try="$ac_link"
16309 case "(($ac_try" in
16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311 *) ac_try_echo=$ac_try;;
16312 esac
16313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16314 $as_echo "$ac_try_echo") >&5
16315 (eval "$ac_link") 2>conftest.er1
16316 ac_status=$?
16317 grep -v '^ *+' conftest.er1 >conftest.err
16318 rm -f conftest.er1
16319 cat conftest.err >&5
16320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } && {
16322 test -z "$ac_c_werror_flag" ||
16323 test ! -s conftest.err
16324 } && test -s conftest$ac_exeext && {
16325 test "$cross_compiling" = yes ||
16326 $as_test_x conftest$ac_exeext
16327 }; then
16328
16329 LDAPLIBS="-lresolv $LDAPLIBS"
16330 HAVE_LDAP=1
16331 { $as_echo "$as_me:$LINENO: result: yes" >&5
16332 $as_echo "yes" >&6; }
16333
16334 else
16335 $as_echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16337
16338 { { $as_echo "$as_me:$LINENO: error: Cannot find function res_query" >&5
16339 $as_echo "$as_me: error: Cannot find function res_query" >&2;}
16340 { (exit 1); exit 1; }; }
16341 fi
16342
16343 rm -rf conftest.dSYM
16344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16345 conftest$ac_exeext conftest.$ac_ext
16346
16347 fi
16348
16349 rm -rf conftest.dSYM
16350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16351 conftest$ac_exeext conftest.$ac_ext
16352
16353 { $as_echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
16354 $as_echo_n "checking for ber_scanf in -llber... " >&6; }
16355 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
16356 $as_echo_n "(cached) " >&6
16357 else
16358 ac_check_lib_save_LIBS=$LIBS
16359 LIBS="-llber $LIBS"
16360 cat >conftest.$ac_ext <<_ACEOF
16361 /* confdefs.h. */
16362 _ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16366
16367 /* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
16370 #ifdef __cplusplus
16371 extern "C"
16372 #endif
16373 char ber_scanf ();
16374 int
16375 main ()
16376 {
16377 return ber_scanf ();
16378 ;
16379 return 0;
16380 }
16381 _ACEOF
16382 rm -f conftest.$ac_objext conftest$ac_exeext
16383 if { (ac_try="$ac_link"
16384 case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16387 esac
16388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16389 $as_echo "$ac_try_echo") >&5
16390 (eval "$ac_link") 2>conftest.er1
16391 ac_status=$?
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
16395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } && {
16397 test -z "$ac_c_werror_flag" ||
16398 test ! -s conftest.err
16399 } && test -s conftest$ac_exeext && {
16400 test "$cross_compiling" = yes ||
16401 $as_test_x conftest$ac_exeext
16402 }; then
16403 ac_cv_lib_lber_ber_scanf=yes
16404 else
16405 $as_echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16407
16408 ac_cv_lib_lber_ber_scanf=no
16409 fi
16410
16411 rm -rf conftest.dSYM
16412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16413 conftest$ac_exeext conftest.$ac_ext
16414 LIBS=$ac_check_lib_save_LIBS
16415 fi
16416 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
16417 $as_echo "$ac_cv_lib_lber_ber_scanf" >&6; }
16418 if test "x$ac_cv_lib_lber_ber_scanf" = x""yes; then
16419 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS"
16420 fi
16421
16422 { $as_echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
16423 $as_echo_n "checking for ldap_open in -lldap... " >&6; }
16424 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
16425 $as_echo_n "(cached) " >&6
16426 else
16427 ac_check_lib_save_LIBS=$LIBS
16428 LIBS="-lldap $LIBS"
16429 cat >conftest.$ac_ext <<_ACEOF
16430 /* confdefs.h. */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16435
16436 /* Override any GCC internal prototype to avoid an error.
16437 Use char because int might match the return type of a GCC
16438 builtin and then its argument prototype would still apply. */
16439 #ifdef __cplusplus
16440 extern "C"
16441 #endif
16442 char ldap_open ();
16443 int
16444 main ()
16445 {
16446 return ldap_open ();
16447 ;
16448 return 0;
16449 }
16450 _ACEOF
16451 rm -f conftest.$ac_objext conftest$ac_exeext
16452 if { (ac_try="$ac_link"
16453 case "(($ac_try" in
16454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455 *) ac_try_echo=$ac_try;;
16456 esac
16457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16458 $as_echo "$ac_try_echo") >&5
16459 (eval "$ac_link") 2>conftest.er1
16460 ac_status=$?
16461 grep -v '^ *+' conftest.er1 >conftest.err
16462 rm -f conftest.er1
16463 cat conftest.err >&5
16464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); } && {
16466 test -z "$ac_c_werror_flag" ||
16467 test ! -s conftest.err
16468 } && test -s conftest$ac_exeext && {
16469 test "$cross_compiling" = yes ||
16470 $as_test_x conftest$ac_exeext
16471 }; then
16472 ac_cv_lib_ldap_ldap_open=yes
16473 else
16474 $as_echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16476
16477 ac_cv_lib_ldap_ldap_open=no
16478 fi
16479
16480 rm -rf conftest.dSYM
16481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16482 conftest$ac_exeext conftest.$ac_ext
16483 LIBS=$ac_check_lib_save_LIBS
16484 fi
16485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
16486 $as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
16487 if test "x$ac_cv_lib_ldap_ldap_open" = x""yes; then
16488 LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS"
16489 fi
16490
16491 { $as_echo "$as_me:$LINENO: checking for ldap_search_st" >&5
16492 $as_echo_n "checking for ldap_search_st... " >&6; }
16493 if test "${ac_cv_func_ldap_search_st+set}" = set; then
16494 $as_echo_n "(cached) " >&6
16495 else
16496 cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h. */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16502 /* Define ldap_search_st to an innocuous variant, in case <limits.h> declares ldap_search_st.
16503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16504 #define ldap_search_st innocuous_ldap_search_st
16505
16506 /* System header to define __stub macros and hopefully few prototypes,
16507 which can conflict with char ldap_search_st (); below.
16508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16509 <limits.h> exists even on freestanding compilers. */
16510
16511 #ifdef __STDC__
16512 # include <limits.h>
16513 #else
16514 # include <assert.h>
16515 #endif
16516
16517 #undef ldap_search_st
16518
16519 /* Override any GCC internal prototype to avoid an error.
16520 Use char because int might match the return type of a GCC
16521 builtin and then its argument prototype would still apply. */
16522 #ifdef __cplusplus
16523 extern "C"
16524 #endif
16525 char ldap_search_st ();
16526 /* The GNU C library defines this for functions which it implements
16527 to always fail with ENOSYS. Some functions are actually named
16528 something starting with __ and the normal name is an alias. */
16529 #if defined __stub_ldap_search_st || defined __stub___ldap_search_st
16530 choke me
16531 #endif
16532
16533 int
16534 main ()
16535 {
16536 return ldap_search_st ();
16537 ;
16538 return 0;
16539 }
16540 _ACEOF
16541 rm -f conftest.$ac_objext conftest$ac_exeext
16542 if { (ac_try="$ac_link"
16543 case "(($ac_try" in
16544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545 *) ac_try_echo=$ac_try;;
16546 esac
16547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16548 $as_echo "$ac_try_echo") >&5
16549 (eval "$ac_link") 2>conftest.er1
16550 ac_status=$?
16551 grep -v '^ *+' conftest.er1 >conftest.err
16552 rm -f conftest.er1
16553 cat conftest.err >&5
16554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } && {
16556 test -z "$ac_c_werror_flag" ||
16557 test ! -s conftest.err
16558 } && test -s conftest$ac_exeext && {
16559 test "$cross_compiling" = yes ||
16560 $as_test_x conftest$ac_exeext
16561 }; then
16562 ac_cv_func_ldap_search_st=yes
16563 else
16564 $as_echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16566
16567 ac_cv_func_ldap_search_st=no
16568 fi
16569
16570 rm -rf conftest.dSYM
16571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16572 conftest$ac_exeext conftest.$ac_ext
16573 fi
16574 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_search_st" >&5
16575 $as_echo "$ac_cv_func_ldap_search_st" >&6; }
16576 if test "x$ac_cv_func_ldap_search_st" = x""yes; then
16577 HAVE_LDAP=1
16578 else
16579 HAVE_LDAP=0
16580 fi
16581
16582 { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
16583 $as_echo_n "checking for ldap_start_tls_s... " >&6; }
16584 if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
16585 $as_echo_n "(cached) " >&6
16586 else
16587 cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h. */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16593 /* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s.
16594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16595 #define ldap_start_tls_s innocuous_ldap_start_tls_s
16596
16597 /* System header to define __stub macros and hopefully few prototypes,
16598 which can conflict with char ldap_start_tls_s (); below.
16599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16600 <limits.h> exists even on freestanding compilers. */
16601
16602 #ifdef __STDC__
16603 # include <limits.h>
16604 #else
16605 # include <assert.h>
16606 #endif
16607
16608 #undef ldap_start_tls_s
16609
16610 /* Override any GCC internal prototype to avoid an error.
16611 Use char because int might match the return type of a GCC
16612 builtin and then its argument prototype would still apply. */
16613 #ifdef __cplusplus
16614 extern "C"
16615 #endif
16616 char ldap_start_tls_s ();
16617 /* The GNU C library defines this for functions which it implements
16618 to always fail with ENOSYS. Some functions are actually named
16619 something starting with __ and the normal name is an alias. */
16620 #if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s
16621 choke me
16622 #endif
16623
16624 int
16625 main ()
16626 {
16627 return ldap_start_tls_s ();
16628 ;
16629 return 0;
16630 }
16631 _ACEOF
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (ac_try="$ac_link"
16634 case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637 esac
16638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16639 $as_echo "$ac_try_echo") >&5
16640 (eval "$ac_link") 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } && {
16647 test -z "$ac_c_werror_flag" ||
16648 test ! -s conftest.err
16649 } && test -s conftest$ac_exeext && {
16650 test "$cross_compiling" = yes ||
16651 $as_test_x conftest$ac_exeext
16652 }; then
16653 ac_cv_func_ldap_start_tls_s=yes
16654 else
16655 $as_echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 ac_cv_func_ldap_start_tls_s=no
16659 fi
16660
16661 rm -rf conftest.dSYM
16662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16663 conftest$ac_exeext conftest.$ac_ext
16664 fi
16665 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
16666 $as_echo "$ac_cv_func_ldap_start_tls_s" >&6; }
16667 if test "x$ac_cv_func_ldap_start_tls_s" = x""yes; then
16668 HAVE_LDAP_TLS=1
16669 else
16670 HAVE_LDAP_TLS=0
16671 fi
16672
16673 { $as_echo "$as_me:$LINENO: checking for ldap_result2error" >&5
16674 $as_echo_n "checking for ldap_result2error... " >&6; }
16675 if test "${ac_cv_func_ldap_result2error+set}" = set; then
16676 $as_echo_n "(cached) " >&6
16677 else
16678 cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h. */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 /* Define ldap_result2error to an innocuous variant, in case <limits.h> declares ldap_result2error.
16685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16686 #define ldap_result2error innocuous_ldap_result2error
16687
16688 /* System header to define __stub macros and hopefully few prototypes,
16689 which can conflict with char ldap_result2error (); below.
16690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16691 <limits.h> exists even on freestanding compilers. */
16692
16693 #ifdef __STDC__
16694 # include <limits.h>
16695 #else
16696 # include <assert.h>
16697 #endif
16698
16699 #undef ldap_result2error
16700
16701 /* Override any GCC internal prototype to avoid an error.
16702 Use char because int might match the return type of a GCC
16703 builtin and then its argument prototype would still apply. */
16704 #ifdef __cplusplus
16705 extern "C"
16706 #endif
16707 char ldap_result2error ();
16708 /* The GNU C library defines this for functions which it implements
16709 to always fail with ENOSYS. Some functions are actually named
16710 something starting with __ and the normal name is an alias. */
16711 #if defined __stub_ldap_result2error || defined __stub___ldap_result2error
16712 choke me
16713 #endif
16714
16715 int
16716 main ()
16717 {
16718 return ldap_result2error ();
16719 ;
16720 return 0;
16721 }
16722 _ACEOF
16723 rm -f conftest.$ac_objext conftest$ac_exeext
16724 if { (ac_try="$ac_link"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728 esac
16729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16730 $as_echo "$ac_try_echo") >&5
16731 (eval "$ac_link") 2>conftest.er1
16732 ac_status=$?
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
16736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } && {
16738 test -z "$ac_c_werror_flag" ||
16739 test ! -s conftest.err
16740 } && test -s conftest$ac_exeext && {
16741 test "$cross_compiling" = yes ||
16742 $as_test_x conftest$ac_exeext
16743 }; then
16744 ac_cv_func_ldap_result2error=yes
16745 else
16746 $as_echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749 ac_cv_func_ldap_result2error=no
16750 fi
16751
16752 rm -rf conftest.dSYM
16753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16754 conftest$ac_exeext conftest.$ac_ext
16755 fi
16756 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_result2error" >&5
16757 $as_echo "$ac_cv_func_ldap_result2error" >&6; }
16758 if test "x$ac_cv_func_ldap_result2error" = x""yes; then
16759 HAVE_LDAP_RESULT2ERROR=1
16760 else
16761 HAVE_LDAP_RESULT2ERROR=0
16762 fi
16763
16764 { $as_echo "$as_me:$LINENO: checking for ldap_parse_result" >&5
16765 $as_echo_n "checking for ldap_parse_result... " >&6; }
16766 if test "${ac_cv_func_ldap_parse_result+set}" = set; then
16767 $as_echo_n "(cached) " >&6
16768 else
16769 cat >conftest.$ac_ext <<_ACEOF
16770 /* confdefs.h. */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16775 /* Define ldap_parse_result to an innocuous variant, in case <limits.h> declares ldap_parse_result.
16776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16777 #define ldap_parse_result innocuous_ldap_parse_result
16778
16779 /* System header to define __stub macros and hopefully few prototypes,
16780 which can conflict with char ldap_parse_result (); below.
16781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16782 <limits.h> exists even on freestanding compilers. */
16783
16784 #ifdef __STDC__
16785 # include <limits.h>
16786 #else
16787 # include <assert.h>
16788 #endif
16789
16790 #undef ldap_parse_result
16791
16792 /* Override any GCC internal prototype to avoid an error.
16793 Use char because int might match the return type of a GCC
16794 builtin and then its argument prototype would still apply. */
16795 #ifdef __cplusplus
16796 extern "C"
16797 #endif
16798 char ldap_parse_result ();
16799 /* The GNU C library defines this for functions which it implements
16800 to always fail with ENOSYS. Some functions are actually named
16801 something starting with __ and the normal name is an alias. */
16802 #if defined __stub_ldap_parse_result || defined __stub___ldap_parse_result
16803 choke me
16804 #endif
16805
16806 int
16807 main ()
16808 {
16809 return ldap_parse_result ();
16810 ;
16811 return 0;
16812 }
16813 _ACEOF
16814 rm -f conftest.$ac_objext conftest$ac_exeext
16815 if { (ac_try="$ac_link"
16816 case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16819 esac
16820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16821 $as_echo "$ac_try_echo") >&5
16822 (eval "$ac_link") 2>conftest.er1
16823 ac_status=$?
16824 grep -v '^ *+' conftest.er1 >conftest.err
16825 rm -f conftest.er1
16826 cat conftest.err >&5
16827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); } && {
16829 test -z "$ac_c_werror_flag" ||
16830 test ! -s conftest.err
16831 } && test -s conftest$ac_exeext && {
16832 test "$cross_compiling" = yes ||
16833 $as_test_x conftest$ac_exeext
16834 }; then
16835 ac_cv_func_ldap_parse_result=yes
16836 else
16837 $as_echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16839
16840 ac_cv_func_ldap_parse_result=no
16841 fi
16842
16843 rm -rf conftest.dSYM
16844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16845 conftest$ac_exeext conftest.$ac_ext
16846 fi
16847 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_parse_result" >&5
16848 $as_echo "$ac_cv_func_ldap_parse_result" >&6; }
16849 if test "x$ac_cv_func_ldap_parse_result" = x""yes; then
16850 HAVE_LDAP_PARSE_RESULT=1
16851 else
16852 HAVE_LDAP_PARSE_RESULT=0
16853 fi
16854
16855 LIBS="$saveLIBS"
16856 fi
16857
16858
16859 # Check whether --with-authldaprc was given.
16860 if test "${with_authldaprc+set}" = set; then
16861 withval=$with_authldaprc; authldaprc="$withval"
16862 else
16863 authldaprc="$pkgconfdir/authldaprc"
16864 fi
16865
16866
16867
16868 LIBAUTHLDAP=""
16869 if test "$HAVE_LDAP" = 1
16870 then
16871 LIBAUTHLDAP="libauthldap.la"
16872 else
16873 authldaprc=""
16874 fi
16875
16876
16877
16878 if test "$HAVE_LDAP" = 1; then
16879 HAVE_LDAP_TRUE=
16880 HAVE_LDAP_FALSE='#'
16881 else
16882 HAVE_LDAP_TRUE='#'
16883 HAVE_LDAP_FALSE=
16884 fi
16885
16886
16887 cat >>confdefs.h <<_ACEOF
16888 #define HAVE_LDAP_TLS $HAVE_LDAP_TLS
16889 _ACEOF
16890
16891
16892 cat >>confdefs.h <<_ACEOF
16893 #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
16894 _ACEOF
16895
16896
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
16899 _ACEOF
16900
16901
16902
16903
16904
16905 # Check whether --with-authpwd was given.
16906 if test "${with_authpwd+set}" = set; then
16907 withval=$with_authpwd; doauthpwd="$withval"
16908 else
16909 doauthpwd="yes"
16910 test "$HAVE_PAM" = 1 && doauthpwd="no"
16911 test "$HAVE_LDAP" = 1 && doauthpwd="no"
16912
16913 fi
16914
16915
16916 HAVE_PWD=1
16917 if test "$doauthpwd" = "no"
16918 then
16919 HAVE_PWD=0
16920 fi
16921
16922 for ac_func in endpwent
16923 do
16924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16925 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16926 $as_echo_n "checking for $ac_func... " >&6; }
16927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16928 $as_echo_n "(cached) " >&6
16929 else
16930 cat >conftest.$ac_ext <<_ACEOF
16931 /* confdefs.h. */
16932 _ACEOF
16933 cat confdefs.h >>conftest.$ac_ext
16934 cat >>conftest.$ac_ext <<_ACEOF
16935 /* end confdefs.h. */
16936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16938 #define $ac_func innocuous_$ac_func
16939
16940 /* System header to define __stub macros and hopefully few prototypes,
16941 which can conflict with char $ac_func (); below.
16942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16943 <limits.h> exists even on freestanding compilers. */
16944
16945 #ifdef __STDC__
16946 # include <limits.h>
16947 #else
16948 # include <assert.h>
16949 #endif
16950
16951 #undef $ac_func
16952
16953 /* Override any GCC internal prototype to avoid an error.
16954 Use char because int might match the return type of a GCC
16955 builtin and then its argument prototype would still apply. */
16956 #ifdef __cplusplus
16957 extern "C"
16958 #endif
16959 char $ac_func ();
16960 /* The GNU C library defines this for functions which it implements
16961 to always fail with ENOSYS. Some functions are actually named
16962 something starting with __ and the normal name is an alias. */
16963 #if defined __stub_$ac_func || defined __stub___$ac_func
16964 choke me
16965 #endif
16966
16967 int
16968 main ()
16969 {
16970 return $ac_func ();
16971 ;
16972 return 0;
16973 }
16974 _ACEOF
16975 rm -f conftest.$ac_objext conftest$ac_exeext
16976 if { (ac_try="$ac_link"
16977 case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16980 esac
16981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16982 $as_echo "$ac_try_echo") >&5
16983 (eval "$ac_link") 2>conftest.er1
16984 ac_status=$?
16985 grep -v '^ *+' conftest.er1 >conftest.err
16986 rm -f conftest.er1
16987 cat conftest.err >&5
16988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } && {
16990 test -z "$ac_c_werror_flag" ||
16991 test ! -s conftest.err
16992 } && test -s conftest$ac_exeext && {
16993 test "$cross_compiling" = yes ||
16994 $as_test_x conftest$ac_exeext
16995 }; then
16996 eval "$as_ac_var=yes"
16997 else
16998 $as_echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17000
17001 eval "$as_ac_var=no"
17002 fi
17003
17004 rm -rf conftest.dSYM
17005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17006 conftest$ac_exeext conftest.$ac_ext
17007 fi
17008 ac_res=`eval 'as_val=${'$as_ac_var'}
17009 $as_echo "$as_val"'`
17010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17011 $as_echo "$ac_res" >&6; }
17012 as_val=`eval 'as_val=${'$as_ac_var'}
17013 $as_echo "$as_val"'`
17014 if test "x$as_val" = x""yes; then
17015 cat >>confdefs.h <<_ACEOF
17016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17017 _ACEOF
17018
17019 fi
17020 done
17021
17022
17023
17024
17025
17026
17027 # Check whether --with-authshadow was given.
17028 if test "${with_authshadow+set}" = set; then
17029 withval=$with_authshadow; doauthshadow="$withval"
17030 else
17031 doauthshadow="yes"
17032 test "$HAVE_PAM" = 1 && doauthshadow="no"
17033 test "$HAVE_LDAP" = 1 && doauthshadow="no"
17034 fi
17035
17036
17037
17038 for ac_header in shadow.h
17039 do
17040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17043 $as_echo_n "checking for $ac_header... " >&6; }
17044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17045 $as_echo_n "(cached) " >&6
17046 fi
17047 ac_res=`eval 'as_val=${'$as_ac_Header'}
17048 $as_echo "$as_val"'`
17049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17050 $as_echo "$ac_res" >&6; }
17051 else
17052 # Is the header compilable?
17053 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17054 $as_echo_n "checking $ac_header usability... " >&6; }
17055 cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h. */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 $ac_includes_default
17062 #include <$ac_header>
17063 _ACEOF
17064 rm -f conftest.$ac_objext
17065 if { (ac_try="$ac_compile"
17066 case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17069 esac
17070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17071 $as_echo "$ac_try_echo") >&5
17072 (eval "$ac_compile") 2>conftest.er1
17073 ac_status=$?
17074 grep -v '^ *+' conftest.er1 >conftest.err
17075 rm -f conftest.er1
17076 cat conftest.err >&5
17077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } && {
17079 test -z "$ac_c_werror_flag" ||
17080 test ! -s conftest.err
17081 } && test -s conftest.$ac_objext; then
17082 ac_header_compiler=yes
17083 else
17084 $as_echo "$as_me: failed program was:" >&5
17085 sed 's/^/| /' conftest.$ac_ext >&5
17086
17087 ac_header_compiler=no
17088 fi
17089
17090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17091 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17092 $as_echo "$ac_header_compiler" >&6; }
17093
17094 # Is the header present?
17095 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17096 $as_echo_n "checking $ac_header presence... " >&6; }
17097 cat >conftest.$ac_ext <<_ACEOF
17098 /* confdefs.h. */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103 #include <$ac_header>
17104 _ACEOF
17105 if { (ac_try="$ac_cpp conftest.$ac_ext"
17106 case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17109 esac
17110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17111 $as_echo "$ac_try_echo") >&5
17112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17113 ac_status=$?
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
17117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } >/dev/null && {
17119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17120 test ! -s conftest.err
17121 }; then
17122 ac_header_preproc=yes
17123 else
17124 $as_echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17126
17127 ac_header_preproc=no
17128 fi
17129
17130 rm -f conftest.err conftest.$ac_ext
17131 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17132 $as_echo "$ac_header_preproc" >&6; }
17133
17134 # So? What about this header?
17135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17136 yes:no: )
17137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17138 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17141 ac_header_preproc=yes
17142 ;;
17143 no:yes:* )
17144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17145 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17147 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17149 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17151 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17155 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17156 ( cat <<\_ASBOX
17157 ## -------------------------------------------------- ##
17158 ## Report this to courier-users@lists.sourceforge.net ##
17159 ## -------------------------------------------------- ##
17160 _ASBOX
17161 ) | sed "s/^/$as_me: WARNING: /" >&2
17162 ;;
17163 esac
17164 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17165 $as_echo_n "checking for $ac_header... " >&6; }
17166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17167 $as_echo_n "(cached) " >&6
17168 else
17169 eval "$as_ac_Header=\$ac_header_preproc"
17170 fi
17171 ac_res=`eval 'as_val=${'$as_ac_Header'}
17172 $as_echo "$as_val"'`
17173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17174 $as_echo "$ac_res" >&6; }
17175
17176 fi
17177 as_val=`eval 'as_val=${'$as_ac_Header'}
17178 $as_echo "$as_val"'`
17179 if test "x$as_val" = x""yes; then
17180 cat >>confdefs.h <<_ACEOF
17181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17182 _ACEOF
17183
17184 fi
17185
17186 done
17187
17188 saveLIBS="$LIBS"
17189 SHADOWLIBS=""
17190 { $as_echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
17191 $as_echo_n "checking for getspent in -lshadow... " >&6; }
17192 if test "${ac_cv_lib_shadow_getspent+set}" = set; then
17193 $as_echo_n "(cached) " >&6
17194 else
17195 ac_check_lib_save_LIBS=$LIBS
17196 LIBS="-lshadow $LIBS"
17197 cat >conftest.$ac_ext <<_ACEOF
17198 /* confdefs.h. */
17199 _ACEOF
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h. */
17203
17204 /* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
17207 #ifdef __cplusplus
17208 extern "C"
17209 #endif
17210 char getspent ();
17211 int
17212 main ()
17213 {
17214 return getspent ();
17215 ;
17216 return 0;
17217 }
17218 _ACEOF
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (ac_try="$ac_link"
17221 case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17224 esac
17225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17226 $as_echo "$ac_try_echo") >&5
17227 (eval "$ac_link") 2>conftest.er1
17228 ac_status=$?
17229 grep -v '^ *+' conftest.er1 >conftest.err
17230 rm -f conftest.er1
17231 cat conftest.err >&5
17232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } && {
17234 test -z "$ac_c_werror_flag" ||
17235 test ! -s conftest.err
17236 } && test -s conftest$ac_exeext && {
17237 test "$cross_compiling" = yes ||
17238 $as_test_x conftest$ac_exeext
17239 }; then
17240 ac_cv_lib_shadow_getspent=yes
17241 else
17242 $as_echo "$as_me: failed program was:" >&5
17243 sed 's/^/| /' conftest.$ac_ext >&5
17244
17245 ac_cv_lib_shadow_getspent=no
17246 fi
17247
17248 rm -rf conftest.dSYM
17249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17250 conftest$ac_exeext conftest.$ac_ext
17251 LIBS=$ac_check_lib_save_LIBS
17252 fi
17253 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
17254 $as_echo "$ac_cv_lib_shadow_getspent" >&6; }
17255 if test "x$ac_cv_lib_shadow_getspent" = x""yes; then
17256 SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS"
17257 fi
17258
17259
17260
17261 for ac_func in endspent getspent
17262 do
17263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17264 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17265 $as_echo_n "checking for $ac_func... " >&6; }
17266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17267 $as_echo_n "(cached) " >&6
17268 else
17269 cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h. */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17277 #define $ac_func innocuous_$ac_func
17278
17279 /* System header to define __stub macros and hopefully few prototypes,
17280 which can conflict with char $ac_func (); below.
17281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17282 <limits.h> exists even on freestanding compilers. */
17283
17284 #ifdef __STDC__
17285 # include <limits.h>
17286 #else
17287 # include <assert.h>
17288 #endif
17289
17290 #undef $ac_func
17291
17292 /* Override any GCC internal prototype to avoid an error.
17293 Use char because int might match the return type of a GCC
17294 builtin and then its argument prototype would still apply. */
17295 #ifdef __cplusplus
17296 extern "C"
17297 #endif
17298 char $ac_func ();
17299 /* The GNU C library defines this for functions which it implements
17300 to always fail with ENOSYS. Some functions are actually named
17301 something starting with __ and the normal name is an alias. */
17302 #if defined __stub_$ac_func || defined __stub___$ac_func
17303 choke me
17304 #endif
17305
17306 int
17307 main ()
17308 {
17309 return $ac_func ();
17310 ;
17311 return 0;
17312 }
17313 _ACEOF
17314 rm -f conftest.$ac_objext conftest$ac_exeext
17315 if { (ac_try="$ac_link"
17316 case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17319 esac
17320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17321 $as_echo "$ac_try_echo") >&5
17322 (eval "$ac_link") 2>conftest.er1
17323 ac_status=$?
17324 grep -v '^ *+' conftest.er1 >conftest.err
17325 rm -f conftest.er1
17326 cat conftest.err >&5
17327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
17331 } && test -s conftest$ac_exeext && {
17332 test "$cross_compiling" = yes ||
17333 $as_test_x conftest$ac_exeext
17334 }; then
17335 eval "$as_ac_var=yes"
17336 else
17337 $as_echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340 eval "$as_ac_var=no"
17341 fi
17342
17343 rm -rf conftest.dSYM
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345 conftest$ac_exeext conftest.$ac_ext
17346 fi
17347 ac_res=`eval 'as_val=${'$as_ac_var'}
17348 $as_echo "$as_val"'`
17349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17350 $as_echo "$ac_res" >&6; }
17351 as_val=`eval 'as_val=${'$as_ac_var'}
17352 $as_echo "$as_val"'`
17353 if test "x$as_val" = x""yes; then
17354 cat >>confdefs.h <<_ACEOF
17355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17356 _ACEOF
17357
17358 fi
17359 done
17360
17361 LIBS="$saveLIBS"
17362
17363 if test "$doauthshadow" = "no"
17364 then
17365 HAVE_SHADOW=0
17366 else
17367
17368 saveLIBS="$LIBS"
17369
17370 { $as_echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
17371 $as_echo_n "checking for getspent in -lshadow... " >&6; }
17372 if test "${ac_cv_lib_shadow_getspent+set}" = set; then
17373 $as_echo_n "(cached) " >&6
17374 else
17375 ac_check_lib_save_LIBS=$LIBS
17376 LIBS="-lshadow $LIBS"
17377 cat >conftest.$ac_ext <<_ACEOF
17378 /* confdefs.h. */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17387 #ifdef __cplusplus
17388 extern "C"
17389 #endif
17390 char getspent ();
17391 int
17392 main ()
17393 {
17394 return getspent ();
17395 ;
17396 return 0;
17397 }
17398 _ACEOF
17399 rm -f conftest.$ac_objext conftest$ac_exeext
17400 if { (ac_try="$ac_link"
17401 case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17404 esac
17405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17406 $as_echo "$ac_try_echo") >&5
17407 (eval "$ac_link") 2>conftest.er1
17408 ac_status=$?
17409 grep -v '^ *+' conftest.er1 >conftest.err
17410 rm -f conftest.er1
17411 cat conftest.err >&5
17412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } && {
17414 test -z "$ac_c_werror_flag" ||
17415 test ! -s conftest.err
17416 } && test -s conftest$ac_exeext && {
17417 test "$cross_compiling" = yes ||
17418 $as_test_x conftest$ac_exeext
17419 }; then
17420 ac_cv_lib_shadow_getspent=yes
17421 else
17422 $as_echo "$as_me: failed program was:" >&5
17423 sed 's/^/| /' conftest.$ac_ext >&5
17424
17425 ac_cv_lib_shadow_getspent=no
17426 fi
17427
17428 rm -rf conftest.dSYM
17429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17430 conftest$ac_exeext conftest.$ac_ext
17431 LIBS=$ac_check_lib_save_LIBS
17432 fi
17433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
17434 $as_echo "$ac_cv_lib_shadow_getspent" >&6; }
17435 if test "x$ac_cv_lib_shadow_getspent" = x""yes; then
17436 cat >>confdefs.h <<_ACEOF
17437 #define HAVE_LIBSHADOW 1
17438 _ACEOF
17439
17440 LIBS="-lshadow $LIBS"
17441
17442 fi
17443
17444 { $as_echo "$as_me:$LINENO: checking for getspent" >&5
17445 $as_echo_n "checking for getspent... " >&6; }
17446 if test "${ac_cv_func_getspent+set}" = set; then
17447 $as_echo_n "(cached) " >&6
17448 else
17449 cat >conftest.$ac_ext <<_ACEOF
17450 /* confdefs.h. */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455 /* Define getspent to an innocuous variant, in case <limits.h> declares getspent.
17456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17457 #define getspent innocuous_getspent
17458
17459 /* System header to define __stub macros and hopefully few prototypes,
17460 which can conflict with char getspent (); below.
17461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17462 <limits.h> exists even on freestanding compilers. */
17463
17464 #ifdef __STDC__
17465 # include <limits.h>
17466 #else
17467 # include <assert.h>
17468 #endif
17469
17470 #undef getspent
17471
17472 /* Override any GCC internal prototype to avoid an error.
17473 Use char because int might match the return type of a GCC
17474 builtin and then its argument prototype would still apply. */
17475 #ifdef __cplusplus
17476 extern "C"
17477 #endif
17478 char getspent ();
17479 /* The GNU C library defines this for functions which it implements
17480 to always fail with ENOSYS. Some functions are actually named
17481 something starting with __ and the normal name is an alias. */
17482 #if defined __stub_getspent || defined __stub___getspent
17483 choke me
17484 #endif
17485
17486 int
17487 main ()
17488 {
17489 return getspent ();
17490 ;
17491 return 0;
17492 }
17493 _ACEOF
17494 rm -f conftest.$ac_objext conftest$ac_exeext
17495 if { (ac_try="$ac_link"
17496 case "(($ac_try" in
17497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498 *) ac_try_echo=$ac_try;;
17499 esac
17500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17501 $as_echo "$ac_try_echo") >&5
17502 (eval "$ac_link") 2>conftest.er1
17503 ac_status=$?
17504 grep -v '^ *+' conftest.er1 >conftest.err
17505 rm -f conftest.er1
17506 cat conftest.err >&5
17507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } && {
17509 test -z "$ac_c_werror_flag" ||
17510 test ! -s conftest.err
17511 } && test -s conftest$ac_exeext && {
17512 test "$cross_compiling" = yes ||
17513 $as_test_x conftest$ac_exeext
17514 }; then
17515 ac_cv_func_getspent=yes
17516 else
17517 $as_echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17519
17520 ac_cv_func_getspent=no
17521 fi
17522
17523 rm -rf conftest.dSYM
17524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17525 conftest$ac_exeext conftest.$ac_ext
17526 fi
17527 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getspent" >&5
17528 $as_echo "$ac_cv_func_getspent" >&6; }
17529 if test "x$ac_cv_func_getspent" = x""yes; then
17530 HAVE_SHADOW=1
17531 else
17532 HAVE_SHADOW=0
17533 fi
17534
17535 LIBS="$saveLIBS"
17536 fi
17537
17538 LIBAUTHSHADOW=""
17539 if test "$HAVE_SHADOW" = 1
17540 then
17541 LIBAUTHSHADOW="libauthshadow.la"
17542 fi
17543
17544
17545
17546 LIBAUTHPWD=""
17547 if test "$HAVE_PWD" = 1
17548 then
17549 LIBAUTHPWD="libauthpwd.la"
17550 fi
17551
17552
17553
17554
17555
17556
17557 # Check whether --with-authpgsqlrc was given.
17558 if test "${with_authpgsqlrc+set}" = set; then
17559 withval=$with_authpgsqlrc; authpgsqlrc="$withval"
17560 else
17561 authpgsqlrc="$pkgconfdir/authpgsqlrc"
17562 fi
17563
17564
17565
17566
17567 # Check whether --with-authpgsql was given.
17568 if test "${with_authpgsql+set}" = set; then
17569 withval=$with_authpgsql; doauthpgsql="$withval"
17570 fi
17571
17572
17573 for ac_prog in pg_config
17574 do
17575 # Extract the first word of "$ac_prog", so it can be a program name with args.
17576 set dummy $ac_prog; ac_word=$2
17577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17578 $as_echo_n "checking for $ac_word... " >&6; }
17579 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
17580 $as_echo_n "(cached) " >&6
17581 else
17582 case $PG_CONFIG in
17583 [\\/]* | ?:[\\/]*)
17584 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
17585 ;;
17586 *)
17587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17588 for as_dir in $LPATH
17589 do
17590 IFS=$as_save_IFS
17591 test -z "$as_dir" && as_dir=.
17592 for ac_exec_ext in '' $ac_executable_extensions; do
17593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17594 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17596 break 2
17597 fi
17598 done
17599 done
17600 IFS=$as_save_IFS
17601
17602 ;;
17603 esac
17604 fi
17605 PG_CONFIG=$ac_cv_path_PG_CONFIG
17606 if test -n "$PG_CONFIG"; then
17607 { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
17608 $as_echo "$PG_CONFIG" >&6; }
17609 else
17610 { $as_echo "$as_me:$LINENO: result: no" >&5
17611 $as_echo "no" >&6; }
17612 fi
17613
17614
17615 test -n "$PG_CONFIG" && break
17616 done
17617 test -n "$PG_CONFIG" || PG_CONFIG="pg_config"
17618
17619
17620 PGSQL_LIBS="-lpq"
17621
17622 # Check whether --with-pgsql-libs was given.
17623 if test "${with_pgsql_libs+set}" = set; then
17624 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS"
17625 else
17626 if test -x $PG_CONFIG
17627 then
17628 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
17629 fi
17630
17631 fi
17632
17633
17634 # Check whether --with-pgsql-includes was given.
17635 if test "${with_pgsql_includes+set}" = set; then
17636 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval"
17637 else
17638 if test -x $PG_CONFIG
17639 then
17640 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
17641 fi
17642
17643 fi
17644
17645
17646 if test "$doauthpgsql" = ""
17647 then
17648 LIBS="$PGSQL_LIBS $LIBS"
17649 { $as_echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
17650 $as_echo_n "checking for PQsetdbLogin... " >&6; }
17651 if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
17652 $as_echo_n "(cached) " >&6
17653 else
17654 cat >conftest.$ac_ext <<_ACEOF
17655 /* confdefs.h. */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
17661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17662 #define PQsetdbLogin innocuous_PQsetdbLogin
17663
17664 /* System header to define __stub macros and hopefully few prototypes,
17665 which can conflict with char PQsetdbLogin (); below.
17666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17667 <limits.h> exists even on freestanding compilers. */
17668
17669 #ifdef __STDC__
17670 # include <limits.h>
17671 #else
17672 # include <assert.h>
17673 #endif
17674
17675 #undef PQsetdbLogin
17676
17677 /* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
17680 #ifdef __cplusplus
17681 extern "C"
17682 #endif
17683 char PQsetdbLogin ();
17684 /* The GNU C library defines this for functions which it implements
17685 to always fail with ENOSYS. Some functions are actually named
17686 something starting with __ and the normal name is an alias. */
17687 #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
17688 choke me
17689 #endif
17690
17691 int
17692 main ()
17693 {
17694 return PQsetdbLogin ();
17695 ;
17696 return 0;
17697 }
17698 _ACEOF
17699 rm -f conftest.$ac_objext conftest$ac_exeext
17700 if { (ac_try="$ac_link"
17701 case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17704 esac
17705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17706 $as_echo "$ac_try_echo") >&5
17707 (eval "$ac_link") 2>conftest.er1
17708 ac_status=$?
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
17712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } && {
17714 test -z "$ac_c_werror_flag" ||
17715 test ! -s conftest.err
17716 } && test -s conftest$ac_exeext && {
17717 test "$cross_compiling" = yes ||
17718 $as_test_x conftest$ac_exeext
17719 }; then
17720 ac_cv_func_PQsetdbLogin=yes
17721 else
17722 $as_echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17724
17725 ac_cv_func_PQsetdbLogin=no
17726 fi
17727
17728 rm -rf conftest.dSYM
17729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17730 conftest$ac_exeext conftest.$ac_ext
17731 fi
17732 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
17733 $as_echo "$ac_cv_func_PQsetdbLogin" >&6; }
17734 if test "x$ac_cv_func_PQsetdbLogin" = x""yes; then
17735 doauthpgsql="yes"
17736
17737 fi
17738
17739 LIBS="$saveLIBS"
17740 fi
17741
17742 if test "$doauthpgsql" != "yes"
17743 then
17744 LIBAUTHPGSQL=""
17745 HAVE_AUTHPGSQL=0
17746 else
17747 saveLIBS="$LIBS"
17748 LIBS="$PGSQL_LIBS $LIBS"
17749 { $as_echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
17750 $as_echo_n "checking for PQsetdbLogin... " >&6; }
17751 if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
17752 $as_echo_n "(cached) " >&6
17753 else
17754 cat >conftest.$ac_ext <<_ACEOF
17755 /* confdefs.h. */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760 /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
17761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17762 #define PQsetdbLogin innocuous_PQsetdbLogin
17763
17764 /* System header to define __stub macros and hopefully few prototypes,
17765 which can conflict with char PQsetdbLogin (); below.
17766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17767 <limits.h> exists even on freestanding compilers. */
17768
17769 #ifdef __STDC__
17770 # include <limits.h>
17771 #else
17772 # include <assert.h>
17773 #endif
17774
17775 #undef PQsetdbLogin
17776
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17780 #ifdef __cplusplus
17781 extern "C"
17782 #endif
17783 char PQsetdbLogin ();
17784 /* The GNU C library defines this for functions which it implements
17785 to always fail with ENOSYS. Some functions are actually named
17786 something starting with __ and the normal name is an alias. */
17787 #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
17788 choke me
17789 #endif
17790
17791 int
17792 main ()
17793 {
17794 return PQsetdbLogin ();
17795 ;
17796 return 0;
17797 }
17798 _ACEOF
17799 rm -f conftest.$ac_objext conftest$ac_exeext
17800 if { (ac_try="$ac_link"
17801 case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17804 esac
17805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17806 $as_echo "$ac_try_echo") >&5
17807 (eval "$ac_link") 2>conftest.er1
17808 ac_status=$?
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
17812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } && {
17814 test -z "$ac_c_werror_flag" ||
17815 test ! -s conftest.err
17816 } && test -s conftest$ac_exeext && {
17817 test "$cross_compiling" = yes ||
17818 $as_test_x conftest$ac_exeext
17819 }; then
17820 ac_cv_func_PQsetdbLogin=yes
17821 else
17822 $as_echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17824
17825 ac_cv_func_PQsetdbLogin=no
17826 fi
17827
17828 rm -rf conftest.dSYM
17829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17830 conftest$ac_exeext conftest.$ac_ext
17831 fi
17832 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
17833 $as_echo "$ac_cv_func_PQsetdbLogin" >&6; }
17834 if test "x$ac_cv_func_PQsetdbLogin" = x""yes; then
17835 AUTHPGSQL="authpgsql"
17836 HAVE_AUTHPGSQL=1
17837 else
17838 { { $as_echo "$as_me:$LINENO: error: --with-authpgsql specified but no libpq.so" >&5
17839 $as_echo "$as_me: error: --with-authpgsql specified but no libpq.so" >&2;}
17840 { (exit 1); exit 1; }; }
17841 fi
17842
17843 LIBS="$saveLIBS"
17844 HAVE_AUTHPGSQL=1
17845 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
17846 LIBAUTHPGSQL="libauthpgsql.la"
17847 fi
17848
17849
17850
17851 if test "$HAVE_AUTHPGSQL" = 1; then
17852 HAVE_AUTHPGSQL_TRUE=
17853 HAVE_AUTHPGSQL_FALSE='#'
17854 else
17855 HAVE_AUTHPGSQL_TRUE='#'
17856 HAVE_AUTHPGSQL_FALSE=
17857 fi
17858
17859
17860
17861
17862
17863
17864 # Check whether --with-authmysqlrc was given.
17865 if test "${with_authmysqlrc+set}" = set; then
17866 withval=$with_authmysqlrc; authmysqlrc="$withval"
17867 else
17868 authmysqlrc="$pkgconfdir/authmysqlrc"
17869 fi
17870
17871
17872
17873
17874 # Check whether --with-authmysql was given.
17875 if test "${with_authmysql+set}" = set; then
17876 withval=$with_authmysql; doauthmysql="$withval"
17877 fi
17878
17879
17880 # Check whether --with-mysql-libs was given.
17881 if test "${with_mysql_libs+set}" = set; then
17882 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient"
17883
17884 fi
17885
17886
17887 # Check whether --with-mysql-includes was given.
17888 if test "${with_mysql_includes+set}" = set; then
17889 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval"
17890
17891 fi
17892
17893
17894 for ac_prog in mysql_config
17895 do
17896 # Extract the first word of "$ac_prog", so it can be a program name with args.
17897 set dummy $ac_prog; ac_word=$2
17898 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17899 $as_echo_n "checking for $ac_word... " >&6; }
17900 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
17901 $as_echo_n "(cached) " >&6
17902 else
17903 case $MYSQL_CONFIG in
17904 [\\/]* | ?:[\\/]*)
17905 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
17906 ;;
17907 *)
17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909 for as_dir in $LPATH
17910 do
17911 IFS=$as_save_IFS
17912 test -z "$as_dir" && as_dir=.
17913 for ac_exec_ext in '' $ac_executable_extensions; do
17914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17915 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17917 break 2
17918 fi
17919 done
17920 done
17921 IFS=$as_save_IFS
17922
17923 ;;
17924 esac
17925 fi
17926 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
17927 if test -n "$MYSQL_CONFIG"; then
17928 { $as_echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
17929 $as_echo "$MYSQL_CONFIG" >&6; }
17930 else
17931 { $as_echo "$as_me:$LINENO: result: no" >&5
17932 $as_echo "no" >&6; }
17933 fi
17934
17935
17936 test -n "$MYSQL_CONFIG" && break
17937 done
17938 test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config"
17939
17940
17941 if test -x "$MYSQL_CONFIG"
17942 then
17943 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
17944 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
17945
17946 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\""
17947 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\""
17948 fi
17949
17950 if test "$doauthmysql" = ""
17951 then
17952 LIBS="$MYSQL_LIBS $LIBS"
17953 { $as_echo "$as_me:$LINENO: checking for mysql_connect" >&5
17954 $as_echo_n "checking for mysql_connect... " >&6; }
17955 if test "${ac_cv_func_mysql_connect+set}" = set; then
17956 $as_echo_n "(cached) " >&6
17957 else
17958 cat >conftest.$ac_ext <<_ACEOF
17959 /* confdefs.h. */
17960 _ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h. */
17964 /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
17965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17966 #define mysql_connect innocuous_mysql_connect
17967
17968 /* System header to define __stub macros and hopefully few prototypes,
17969 which can conflict with char mysql_connect (); below.
17970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17971 <limits.h> exists even on freestanding compilers. */
17972
17973 #ifdef __STDC__
17974 # include <limits.h>
17975 #else
17976 # include <assert.h>
17977 #endif
17978
17979 #undef mysql_connect
17980
17981 /* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
17984 #ifdef __cplusplus
17985 extern "C"
17986 #endif
17987 char mysql_connect ();
17988 /* The GNU C library defines this for functions which it implements
17989 to always fail with ENOSYS. Some functions are actually named
17990 something starting with __ and the normal name is an alias. */
17991 #if defined __stub_mysql_connect || defined __stub___mysql_connect
17992 choke me
17993 #endif
17994
17995 int
17996 main ()
17997 {
17998 return mysql_connect ();
17999 ;
18000 return 0;
18001 }
18002 _ACEOF
18003 rm -f conftest.$ac_objext conftest$ac_exeext
18004 if { (ac_try="$ac_link"
18005 case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18008 esac
18009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18010 $as_echo "$ac_try_echo") >&5
18011 (eval "$ac_link") 2>conftest.er1
18012 ac_status=$?
18013 grep -v '^ *+' conftest.er1 >conftest.err
18014 rm -f conftest.er1
18015 cat conftest.err >&5
18016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } && {
18018 test -z "$ac_c_werror_flag" ||
18019 test ! -s conftest.err
18020 } && test -s conftest$ac_exeext && {
18021 test "$cross_compiling" = yes ||
18022 $as_test_x conftest$ac_exeext
18023 }; then
18024 ac_cv_func_mysql_connect=yes
18025 else
18026 $as_echo "$as_me: failed program was:" >&5
18027 sed 's/^/| /' conftest.$ac_ext >&5
18028
18029 ac_cv_func_mysql_connect=no
18030 fi
18031
18032 rm -rf conftest.dSYM
18033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18034 conftest$ac_exeext conftest.$ac_ext
18035 fi
18036 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
18037 $as_echo "$ac_cv_func_mysql_connect" >&6; }
18038 if test "x$ac_cv_func_mysql_connect" = x""yes; then
18039 doauthmysql="yes"
18040
18041 fi
18042
18043 { $as_echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
18044 $as_echo_n "checking for mysql_real_connect... " >&6; }
18045 if test "${ac_cv_func_mysql_real_connect+set}" = set; then
18046 $as_echo_n "(cached) " >&6
18047 else
18048 cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h. */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
18055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18056 #define mysql_real_connect innocuous_mysql_real_connect
18057
18058 /* System header to define __stub macros and hopefully few prototypes,
18059 which can conflict with char mysql_real_connect (); below.
18060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18061 <limits.h> exists even on freestanding compilers. */
18062
18063 #ifdef __STDC__
18064 # include <limits.h>
18065 #else
18066 # include <assert.h>
18067 #endif
18068
18069 #undef mysql_real_connect
18070
18071 /* Override any GCC internal prototype to avoid an error.
18072 Use char because int might match the return type of a GCC
18073 builtin and then its argument prototype would still apply. */
18074 #ifdef __cplusplus
18075 extern "C"
18076 #endif
18077 char mysql_real_connect ();
18078 /* The GNU C library defines this for functions which it implements
18079 to always fail with ENOSYS. Some functions are actually named
18080 something starting with __ and the normal name is an alias. */
18081 #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
18082 choke me
18083 #endif
18084
18085 int
18086 main ()
18087 {
18088 return mysql_real_connect ();
18089 ;
18090 return 0;
18091 }
18092 _ACEOF
18093 rm -f conftest.$ac_objext conftest$ac_exeext
18094 if { (ac_try="$ac_link"
18095 case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18098 esac
18099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18100 $as_echo "$ac_try_echo") >&5
18101 (eval "$ac_link") 2>conftest.er1
18102 ac_status=$?
18103 grep -v '^ *+' conftest.er1 >conftest.err
18104 rm -f conftest.er1
18105 cat conftest.err >&5
18106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } && {
18108 test -z "$ac_c_werror_flag" ||
18109 test ! -s conftest.err
18110 } && test -s conftest$ac_exeext && {
18111 test "$cross_compiling" = yes ||
18112 $as_test_x conftest$ac_exeext
18113 }; then
18114 ac_cv_func_mysql_real_connect=yes
18115 else
18116 $as_echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18118
18119 ac_cv_func_mysql_real_connect=no
18120 fi
18121
18122 rm -rf conftest.dSYM
18123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18124 conftest$ac_exeext conftest.$ac_ext
18125 fi
18126 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
18127 $as_echo "$ac_cv_func_mysql_real_connect" >&6; }
18128 if test "x$ac_cv_func_mysql_real_connect" = x""yes; then
18129 doauthmysql="yes"
18130
18131 fi
18132
18133 LIBS="$saveLIBS"
18134 fi
18135
18136 if test "$doauthmysql" != "yes"
18137 then
18138 LIBAUTHMYSQL=""
18139 HAVE_AUTHMYSQL=0
18140 else
18141 saveLIBS="$LIBS"
18142 LIBS="$MYSQL_LIBS $LIBS"
18143 { $as_echo "$as_me:$LINENO: checking for mysql_connect" >&5
18144 $as_echo_n "checking for mysql_connect... " >&6; }
18145 if test "${ac_cv_func_mysql_connect+set}" = set; then
18146 $as_echo_n "(cached) " >&6
18147 else
18148 cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h. */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
18155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18156 #define mysql_connect innocuous_mysql_connect
18157
18158 /* System header to define __stub macros and hopefully few prototypes,
18159 which can conflict with char mysql_connect (); below.
18160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18161 <limits.h> exists even on freestanding compilers. */
18162
18163 #ifdef __STDC__
18164 # include <limits.h>
18165 #else
18166 # include <assert.h>
18167 #endif
18168
18169 #undef mysql_connect
18170
18171 /* Override any GCC internal prototype to avoid an error.
18172 Use char because int might match the return type of a GCC
18173 builtin and then its argument prototype would still apply. */
18174 #ifdef __cplusplus
18175 extern "C"
18176 #endif
18177 char mysql_connect ();
18178 /* The GNU C library defines this for functions which it implements
18179 to always fail with ENOSYS. Some functions are actually named
18180 something starting with __ and the normal name is an alias. */
18181 #if defined __stub_mysql_connect || defined __stub___mysql_connect
18182 choke me
18183 #endif
18184
18185 int
18186 main ()
18187 {
18188 return mysql_connect ();
18189 ;
18190 return 0;
18191 }
18192 _ACEOF
18193 rm -f conftest.$ac_objext conftest$ac_exeext
18194 if { (ac_try="$ac_link"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198 esac
18199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18200 $as_echo "$ac_try_echo") >&5
18201 (eval "$ac_link") 2>conftest.er1
18202 ac_status=$?
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
18206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } && {
18208 test -z "$ac_c_werror_flag" ||
18209 test ! -s conftest.err
18210 } && test -s conftest$ac_exeext && {
18211 test "$cross_compiling" = yes ||
18212 $as_test_x conftest$ac_exeext
18213 }; then
18214 ac_cv_func_mysql_connect=yes
18215 else
18216 $as_echo "$as_me: failed program was:" >&5
18217 sed 's/^/| /' conftest.$ac_ext >&5
18218
18219 ac_cv_func_mysql_connect=no
18220 fi
18221
18222 rm -rf conftest.dSYM
18223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18224 conftest$ac_exeext conftest.$ac_ext
18225 fi
18226 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
18227 $as_echo "$ac_cv_func_mysql_connect" >&6; }
18228 if test "x$ac_cv_func_mysql_connect" = x""yes; then
18229 LIBAUTHMYSQL="libauthmysql.la"
18230 HAVE_AUTHMYSQL=1
18231 else
18232
18233 { $as_echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
18234 $as_echo_n "checking for mysql_real_connect... " >&6; }
18235 if test "${ac_cv_func_mysql_real_connect+set}" = set; then
18236 $as_echo_n "(cached) " >&6
18237 else
18238 cat >conftest.$ac_ext <<_ACEOF
18239 /* confdefs.h. */
18240 _ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18244 /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
18245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18246 #define mysql_real_connect innocuous_mysql_real_connect
18247
18248 /* System header to define __stub macros and hopefully few prototypes,
18249 which can conflict with char mysql_real_connect (); below.
18250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18251 <limits.h> exists even on freestanding compilers. */
18252
18253 #ifdef __STDC__
18254 # include <limits.h>
18255 #else
18256 # include <assert.h>
18257 #endif
18258
18259 #undef mysql_real_connect
18260
18261 /* Override any GCC internal prototype to avoid an error.
18262 Use char because int might match the return type of a GCC
18263 builtin and then its argument prototype would still apply. */
18264 #ifdef __cplusplus
18265 extern "C"
18266 #endif
18267 char mysql_real_connect ();
18268 /* The GNU C library defines this for functions which it implements
18269 to always fail with ENOSYS. Some functions are actually named
18270 something starting with __ and the normal name is an alias. */
18271 #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
18272 choke me
18273 #endif
18274
18275 int
18276 main ()
18277 {
18278 return mysql_real_connect ();
18279 ;
18280 return 0;
18281 }
18282 _ACEOF
18283 rm -f conftest.$ac_objext conftest$ac_exeext
18284 if { (ac_try="$ac_link"
18285 case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18288 esac
18289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18290 $as_echo "$ac_try_echo") >&5
18291 (eval "$ac_link") 2>conftest.er1
18292 ac_status=$?
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
18296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } && {
18298 test -z "$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18300 } && test -s conftest$ac_exeext && {
18301 test "$cross_compiling" = yes ||
18302 $as_test_x conftest$ac_exeext
18303 }; then
18304 ac_cv_func_mysql_real_connect=yes
18305 else
18306 $as_echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18308
18309 ac_cv_func_mysql_real_connect=no
18310 fi
18311
18312 rm -rf conftest.dSYM
18313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18314 conftest$ac_exeext conftest.$ac_ext
18315 fi
18316 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
18317 $as_echo "$ac_cv_func_mysql_real_connect" >&6; }
18318 if test "x$ac_cv_func_mysql_real_connect" = x""yes; then
18319 LIBAUTHMYSQL="libauthmysql.la"
18320 HAVE_AUTHMYSQL=1
18321 else
18322 { { $as_echo "$as_me:$LINENO: error: --with-authmysql specified but no mysqlclient.so" >&5
18323 $as_echo "$as_me: error: --with-authmysql specified but no mysqlclient.so" >&2;}
18324 { (exit 1); exit 1; }; }
18325
18326 fi
18327
18328
18329
18330 fi
18331
18332 LIBS="$saveLIBS"
18333 HAVE_AUTHMYSQL=1
18334 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
18335 fi
18336
18337
18338 if test "$HAVE_AUTHMYSQL" = 1; then
18339 HAVE_AUTHMYSQL_TRUE=
18340 HAVE_AUTHMYSQL_FALSE='#'
18341 else
18342 HAVE_AUTHMYSQL_TRUE='#'
18343 HAVE_AUTHMYSQL_FALSE=
18344 fi
18345
18346
18347
18348
18349
18350
18351
18352
18353 # Check whether --with-authcustom was given.
18354 if test "${with_authcustom+set}" = set; then
18355 withval=$with_authcustom; doauthcustom="$withval"
18356 else
18357 doauthcustom=yes
18358 fi
18359
18360
18361 LIBAUTHCUSTOM=""
18362
18363 if test "$doauthcustom" = "yes"
18364 then
18365 LIBAUTHCUSTOM="libauthcustom.la"
18366 fi
18367
18368 if test "$AUTHCUSTOM" != ""; then
18369 HAVE_CUSTOM_TRUE=
18370 HAVE_CUSTOM_FALSE='#'
18371 else
18372 HAVE_CUSTOM_TRUE='#'
18373 HAVE_CUSTOM_FALSE=
18374 fi
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384 # Check whether --with-pipeprog was given.
18385 if test "${with_pipeprog+set}" = set; then
18386 withval=$with_pipeprog; authProg="$withval"
18387 else
18388 authProg="$pkgconfdir/authProg"
18389 fi
18390
18391
18392
18393
18394 # Check whether --with-authpipe was given.
18395 if test "${with_authpipe+set}" = set; then
18396 withval=$with_authpipe; doauthpipe="$withval"
18397 else
18398 doauthpipe=yes
18399 fi
18400
18401
18402 LIBAUTHPIPE=""
18403
18404 if test "$doauthpipe" = "yes"
18405 then
18406 LIBAUTHPIPE="libauthpipe.la"
18407 fi
18408
18409 if test "$AUTHPIPE" != ""; then
18410 HAVE_PIPE_TRUE=
18411 HAVE_PIPE_FALSE='#'
18412 else
18413 HAVE_PIPE_TRUE='#'
18414 HAVE_PIPE_FALSE=
18415 fi
18416
18417
18418
18419
18420
18421 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18422 $as_echo_n "checking for ANSI C header files... " >&6; }
18423 if test "${ac_cv_header_stdc+set}" = set; then
18424 $as_echo_n "(cached) " >&6
18425 else
18426 cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h. */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 #include <stdlib.h>
18433 #include <stdarg.h>
18434 #include <string.h>
18435 #include <float.h>
18436
18437 int
18438 main ()
18439 {
18440
18441 ;
18442 return 0;
18443 }
18444 _ACEOF
18445 rm -f conftest.$ac_objext
18446 if { (ac_try="$ac_compile"
18447 case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450 esac
18451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18452 $as_echo "$ac_try_echo") >&5
18453 (eval "$ac_compile") 2>conftest.er1
18454 ac_status=$?
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
18458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } && {
18460 test -z "$ac_c_werror_flag" ||
18461 test ! -s conftest.err
18462 } && test -s conftest.$ac_objext; then
18463 ac_cv_header_stdc=yes
18464 else
18465 $as_echo "$as_me: failed program was:" >&5
18466 sed 's/^/| /' conftest.$ac_ext >&5
18467
18468 ac_cv_header_stdc=no
18469 fi
18470
18471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18472
18473 if test $ac_cv_header_stdc = yes; then
18474 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18475 cat >conftest.$ac_ext <<_ACEOF
18476 /* confdefs.h. */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18481 #include <string.h>
18482
18483 _ACEOF
18484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18485 $EGREP "memchr" >/dev/null 2>&1; then
18486 :
18487 else
18488 ac_cv_header_stdc=no
18489 fi
18490 rm -f conftest*
18491
18492 fi
18493
18494 if test $ac_cv_header_stdc = yes; then
18495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18496 cat >conftest.$ac_ext <<_ACEOF
18497 /* confdefs.h. */
18498 _ACEOF
18499 cat confdefs.h >>conftest.$ac_ext
18500 cat >>conftest.$ac_ext <<_ACEOF
18501 /* end confdefs.h. */
18502 #include <stdlib.h>
18503
18504 _ACEOF
18505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18506 $EGREP "free" >/dev/null 2>&1; then
18507 :
18508 else
18509 ac_cv_header_stdc=no
18510 fi
18511 rm -f conftest*
18512
18513 fi
18514
18515 if test $ac_cv_header_stdc = yes; then
18516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18517 if test "$cross_compiling" = yes; then
18518 :
18519 else
18520 cat >conftest.$ac_ext <<_ACEOF
18521 /* confdefs.h. */
18522 _ACEOF
18523 cat confdefs.h >>conftest.$ac_ext
18524 cat >>conftest.$ac_ext <<_ACEOF
18525 /* end confdefs.h. */
18526 #include <ctype.h>
18527 #include <stdlib.h>
18528 #if ((' ' & 0x0FF) == 0x020)
18529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18531 #else
18532 # define ISLOWER(c) \
18533 (('a' <= (c) && (c) <= 'i') \
18534 || ('j' <= (c) && (c) <= 'r') \
18535 || ('s' <= (c) && (c) <= 'z'))
18536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18537 #endif
18538
18539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18540 int
18541 main ()
18542 {
18543 int i;
18544 for (i = 0; i < 256; i++)
18545 if (XOR (islower (i), ISLOWER (i))
18546 || toupper (i) != TOUPPER (i))
18547 return 2;
18548 return 0;
18549 }
18550 _ACEOF
18551 rm -f conftest$ac_exeext
18552 if { (ac_try="$ac_link"
18553 case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18556 esac
18557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18558 $as_echo "$ac_try_echo") >&5
18559 (eval "$ac_link") 2>&5
18560 ac_status=$?
18561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18563 { (case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18566 esac
18567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18568 $as_echo "$ac_try_echo") >&5
18569 (eval "$ac_try") 2>&5
18570 ac_status=$?
18571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; }; then
18573 :
18574 else
18575 $as_echo "$as_me: program exited with status $ac_status" >&5
18576 $as_echo "$as_me: failed program was:" >&5
18577 sed 's/^/| /' conftest.$ac_ext >&5
18578
18579 ( exit $ac_status )
18580 ac_cv_header_stdc=no
18581 fi
18582 rm -rf conftest.dSYM
18583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18584 fi
18585
18586
18587 fi
18588 fi
18589 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18590 $as_echo "$ac_cv_header_stdc" >&6; }
18591 if test $ac_cv_header_stdc = yes; then
18592
18593 cat >>confdefs.h <<\_ACEOF
18594 #define STDC_HEADERS 1
18595 _ACEOF
18596
18597 fi
18598
18599 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18600 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18601 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18602 $as_echo_n "(cached) " >&6
18603 else
18604 cat >conftest.$ac_ext <<_ACEOF
18605 /* confdefs.h. */
18606 _ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18610 #include <sys/types.h>
18611 #include <sys/wait.h>
18612 #ifndef WEXITSTATUS
18613 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18614 #endif
18615 #ifndef WIFEXITED
18616 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18617 #endif
18618
18619 int
18620 main ()
18621 {
18622 int s;
18623 wait (&s);
18624 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18625 ;
18626 return 0;
18627 }
18628 _ACEOF
18629 rm -f conftest.$ac_objext
18630 if { (ac_try="$ac_compile"
18631 case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18634 esac
18635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18636 $as_echo "$ac_try_echo") >&5
18637 (eval "$ac_compile") 2>conftest.er1
18638 ac_status=$?
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -f conftest.er1
18641 cat conftest.err >&5
18642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } && {
18644 test -z "$ac_c_werror_flag" ||
18645 test ! -s conftest.err
18646 } && test -s conftest.$ac_objext; then
18647 ac_cv_header_sys_wait_h=yes
18648 else
18649 $as_echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18651
18652 ac_cv_header_sys_wait_h=no
18653 fi
18654
18655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18656 fi
18657 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18658 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
18659 if test $ac_cv_header_sys_wait_h = yes; then
18660
18661 cat >>confdefs.h <<\_ACEOF
18662 #define HAVE_SYS_WAIT_H 1
18663 _ACEOF
18664
18665 fi
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675 for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h
18676 do
18677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18680 $as_echo_n "checking for $ac_header... " >&6; }
18681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18682 $as_echo_n "(cached) " >&6
18683 fi
18684 ac_res=`eval 'as_val=${'$as_ac_Header'}
18685 $as_echo "$as_val"'`
18686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18687 $as_echo "$ac_res" >&6; }
18688 else
18689 # Is the header compilable?
18690 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18691 $as_echo_n "checking $ac_header usability... " >&6; }
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h. */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 $ac_includes_default
18699 #include <$ac_header>
18700 _ACEOF
18701 rm -f conftest.$ac_objext
18702 if { (ac_try="$ac_compile"
18703 case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18706 esac
18707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18708 $as_echo "$ac_try_echo") >&5
18709 (eval "$ac_compile") 2>conftest.er1
18710 ac_status=$?
18711 grep -v '^ *+' conftest.er1 >conftest.err
18712 rm -f conftest.er1
18713 cat conftest.err >&5
18714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } && {
18716 test -z "$ac_c_werror_flag" ||
18717 test ! -s conftest.err
18718 } && test -s conftest.$ac_objext; then
18719 ac_header_compiler=yes
18720 else
18721 $as_echo "$as_me: failed program was:" >&5
18722 sed 's/^/| /' conftest.$ac_ext >&5
18723
18724 ac_header_compiler=no
18725 fi
18726
18727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18729 $as_echo "$ac_header_compiler" >&6; }
18730
18731 # Is the header present?
18732 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18733 $as_echo_n "checking $ac_header presence... " >&6; }
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h. */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 #include <$ac_header>
18741 _ACEOF
18742 if { (ac_try="$ac_cpp conftest.$ac_ext"
18743 case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18746 esac
18747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18748 $as_echo "$ac_try_echo") >&5
18749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18750 ac_status=$?
18751 grep -v '^ *+' conftest.er1 >conftest.err
18752 rm -f conftest.er1
18753 cat conftest.err >&5
18754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } >/dev/null && {
18756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18757 test ! -s conftest.err
18758 }; then
18759 ac_header_preproc=yes
18760 else
18761 $as_echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18763
18764 ac_header_preproc=no
18765 fi
18766
18767 rm -f conftest.err conftest.$ac_ext
18768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18769 $as_echo "$ac_header_preproc" >&6; }
18770
18771 # So? What about this header?
18772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18773 yes:no: )
18774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18775 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18777 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18778 ac_header_preproc=yes
18779 ;;
18780 no:yes:* )
18781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18782 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18784 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18786 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18788 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18790 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18792 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18793 ( cat <<\_ASBOX
18794 ## -------------------------------------------------- ##
18795 ## Report this to courier-users@lists.sourceforge.net ##
18796 ## -------------------------------------------------- ##
18797 _ASBOX
18798 ) | sed "s/^/$as_me: WARNING: /" >&2
18799 ;;
18800 esac
18801 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18802 $as_echo_n "checking for $ac_header... " >&6; }
18803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18804 $as_echo_n "(cached) " >&6
18805 else
18806 eval "$as_ac_Header=\$ac_header_preproc"
18807 fi
18808 ac_res=`eval 'as_val=${'$as_ac_Header'}
18809 $as_echo "$as_val"'`
18810 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18811 $as_echo "$ac_res" >&6; }
18812
18813 fi
18814 as_val=`eval 'as_val=${'$as_ac_Header'}
18815 $as_echo "$as_val"'`
18816 if test "x$as_val" = x""yes; then
18817 cat >>confdefs.h <<_ACEOF
18818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18819 _ACEOF
18820
18821 fi
18822
18823 done
18824
18825
18826 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18827 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18828 if test "${ac_cv_c_const+set}" = set; then
18829 $as_echo_n "(cached) " >&6
18830 else
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h. */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837
18838 int
18839 main ()
18840 {
18841 /* FIXME: Include the comments suggested by Paul. */
18842 #ifndef __cplusplus
18843 /* Ultrix mips cc rejects this. */
18844 typedef int charset[2];
18845 const charset cs;
18846 /* SunOS 4.1.1 cc rejects this. */
18847 char const *const *pcpcc;
18848 char **ppc;
18849 /* NEC SVR4.0.2 mips cc rejects this. */
18850 struct point {int x, y;};
18851 static struct point const zero = {0,0};
18852 /* AIX XL C 1.02.0.0 rejects this.
18853 It does not let you subtract one const X* pointer from another in
18854 an arm of an if-expression whose if-part is not a constant
18855 expression */
18856 const char *g = "string";
18857 pcpcc = &g + (g ? g-g : 0);
18858 /* HPUX 7.0 cc rejects these. */
18859 ++pcpcc;
18860 ppc = (char**) pcpcc;
18861 pcpcc = (char const *const *) ppc;
18862 { /* SCO 3.2v4 cc rejects this. */
18863 char *t;
18864 char const *s = 0 ? (char *) 0 : (char const *) 0;
18865
18866 *t++ = 0;
18867 if (s) return 0;
18868 }
18869 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18870 int x[] = {25, 17};
18871 const int *foo = &x[0];
18872 ++foo;
18873 }
18874 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18875 typedef const int *iptr;
18876 iptr p = 0;
18877 ++p;
18878 }
18879 { /* AIX XL C 1.02.0.0 rejects this saying
18880 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18881 struct s { int j; const int *ap[3]; };
18882 struct s *b; b->j = 5;
18883 }
18884 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18885 const int foo = 10;
18886 if (!foo) return 0;
18887 }
18888 return !cs[0] && !zero.x;
18889 #endif
18890
18891 ;
18892 return 0;
18893 }
18894 _ACEOF
18895 rm -f conftest.$ac_objext
18896 if { (ac_try="$ac_compile"
18897 case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18900 esac
18901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18902 $as_echo "$ac_try_echo") >&5
18903 (eval "$ac_compile") 2>conftest.er1
18904 ac_status=$?
18905 grep -v '^ *+' conftest.er1 >conftest.err
18906 rm -f conftest.er1
18907 cat conftest.err >&5
18908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } && {
18910 test -z "$ac_c_werror_flag" ||
18911 test ! -s conftest.err
18912 } && test -s conftest.$ac_objext; then
18913 ac_cv_c_const=yes
18914 else
18915 $as_echo "$as_me: failed program was:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18917
18918 ac_cv_c_const=no
18919 fi
18920
18921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18922 fi
18923 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18924 $as_echo "$ac_cv_c_const" >&6; }
18925 if test $ac_cv_c_const = no; then
18926
18927 cat >>confdefs.h <<\_ACEOF
18928 #define const /**/
18929 _ACEOF
18930
18931 fi
18932
18933 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
18934 $as_echo_n "checking for pid_t... " >&6; }
18935 if test "${ac_cv_type_pid_t+set}" = set; then
18936 $as_echo_n "(cached) " >&6
18937 else
18938 ac_cv_type_pid_t=no
18939 cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h. */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18945 $ac_includes_default
18946 int
18947 main ()
18948 {
18949 if (sizeof (pid_t))
18950 return 0;
18951 ;
18952 return 0;
18953 }
18954 _ACEOF
18955 rm -f conftest.$ac_objext
18956 if { (ac_try="$ac_compile"
18957 case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18960 esac
18961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18962 $as_echo "$ac_try_echo") >&5
18963 (eval "$ac_compile") 2>conftest.er1
18964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && {
18970 test -z "$ac_c_werror_flag" ||
18971 test ! -s conftest.err
18972 } && test -s conftest.$ac_objext; then
18973 cat >conftest.$ac_ext <<_ACEOF
18974 /* confdefs.h. */
18975 _ACEOF
18976 cat confdefs.h >>conftest.$ac_ext
18977 cat >>conftest.$ac_ext <<_ACEOF
18978 /* end confdefs.h. */
18979 $ac_includes_default
18980 int
18981 main ()
18982 {
18983 if (sizeof ((pid_t)))
18984 return 0;
18985 ;
18986 return 0;
18987 }
18988 _ACEOF
18989 rm -f conftest.$ac_objext
18990 if { (ac_try="$ac_compile"
18991 case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18994 esac
18995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18996 $as_echo "$ac_try_echo") >&5
18997 (eval "$ac_compile") 2>conftest.er1
18998 ac_status=$?
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } && {
19004 test -z "$ac_c_werror_flag" ||
19005 test ! -s conftest.err
19006 } && test -s conftest.$ac_objext; then
19007 :
19008 else
19009 $as_echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19011
19012 ac_cv_type_pid_t=yes
19013 fi
19014
19015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19016 else
19017 $as_echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19019
19020
19021 fi
19022
19023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024 fi
19025 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19026 $as_echo "$ac_cv_type_pid_t" >&6; }
19027 if test "x$ac_cv_type_pid_t" = x""yes; then
19028 :
19029 else
19030
19031 cat >>confdefs.h <<_ACEOF
19032 #define pid_t int
19033 _ACEOF
19034
19035 fi
19036
19037 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
19038 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19039 if test "${ac_cv_type_uid_t+set}" = set; then
19040 $as_echo_n "(cached) " >&6
19041 else
19042 cat >conftest.$ac_ext <<_ACEOF
19043 /* confdefs.h. */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 #include <sys/types.h>
19049
19050 _ACEOF
19051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19052 $EGREP "uid_t" >/dev/null 2>&1; then
19053 ac_cv_type_uid_t=yes
19054 else
19055 ac_cv_type_uid_t=no
19056 fi
19057 rm -f conftest*
19058
19059 fi
19060 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
19061 $as_echo "$ac_cv_type_uid_t" >&6; }
19062 if test $ac_cv_type_uid_t = no; then
19063
19064 cat >>confdefs.h <<\_ACEOF
19065 #define uid_t int
19066 _ACEOF
19067
19068
19069 cat >>confdefs.h <<\_ACEOF
19070 #define gid_t int
19071 _ACEOF
19072
19073 fi
19074
19075
19076
19077 for ac_func in setsid setlogin
19078 do
19079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19080 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19081 $as_echo_n "checking for $ac_func... " >&6; }
19082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19083 $as_echo_n "(cached) " >&6
19084 else
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h. */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19093 #define $ac_func innocuous_$ac_func
19094
19095 /* System header to define __stub macros and hopefully few prototypes,
19096 which can conflict with char $ac_func (); below.
19097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19098 <limits.h> exists even on freestanding compilers. */
19099
19100 #ifdef __STDC__
19101 # include <limits.h>
19102 #else
19103 # include <assert.h>
19104 #endif
19105
19106 #undef $ac_func
19107
19108 /* Override any GCC internal prototype to avoid an error.
19109 Use char because int might match the return type of a GCC
19110 builtin and then its argument prototype would still apply. */
19111 #ifdef __cplusplus
19112 extern "C"
19113 #endif
19114 char $ac_func ();
19115 /* The GNU C library defines this for functions which it implements
19116 to always fail with ENOSYS. Some functions are actually named
19117 something starting with __ and the normal name is an alias. */
19118 #if defined __stub_$ac_func || defined __stub___$ac_func
19119 choke me
19120 #endif
19121
19122 int
19123 main ()
19124 {
19125 return $ac_func ();
19126 ;
19127 return 0;
19128 }
19129 _ACEOF
19130 rm -f conftest.$ac_objext conftest$ac_exeext
19131 if { (ac_try="$ac_link"
19132 case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19135 esac
19136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19137 $as_echo "$ac_try_echo") >&5
19138 (eval "$ac_link") 2>conftest.er1
19139 ac_status=$?
19140 grep -v '^ *+' conftest.er1 >conftest.err
19141 rm -f conftest.er1
19142 cat conftest.err >&5
19143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } && {
19145 test -z "$ac_c_werror_flag" ||
19146 test ! -s conftest.err
19147 } && test -s conftest$ac_exeext && {
19148 test "$cross_compiling" = yes ||
19149 $as_test_x conftest$ac_exeext
19150 }; then
19151 eval "$as_ac_var=yes"
19152 else
19153 $as_echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19155
19156 eval "$as_ac_var=no"
19157 fi
19158
19159 rm -rf conftest.dSYM
19160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19161 conftest$ac_exeext conftest.$ac_ext
19162 fi
19163 ac_res=`eval 'as_val=${'$as_ac_var'}
19164 $as_echo "$as_val"'`
19165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19166 $as_echo "$ac_res" >&6; }
19167 as_val=`eval 'as_val=${'$as_ac_var'}
19168 $as_echo "$as_val"'`
19169 if test "x$as_val" = x""yes; then
19170 cat >>confdefs.h <<_ACEOF
19171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19172 _ACEOF
19173
19174 fi
19175 done
19176
19177 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19178 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
19179 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19180 $as_echo_n "(cached) " >&6
19181 else
19182 ac_check_lib_save_LIBS=$LIBS
19183 LIBS="-lcrypt $LIBS"
19184 cat >conftest.$ac_ext <<_ACEOF
19185 /* confdefs.h. */
19186 _ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19190
19191 /* Override any GCC internal prototype to avoid an error.
19192 Use char because int might match the return type of a GCC
19193 builtin and then its argument prototype would still apply. */
19194 #ifdef __cplusplus
19195 extern "C"
19196 #endif
19197 char crypt ();
19198 int
19199 main ()
19200 {
19201 return crypt ();
19202 ;
19203 return 0;
19204 }
19205 _ACEOF
19206 rm -f conftest.$ac_objext conftest$ac_exeext
19207 if { (ac_try="$ac_link"
19208 case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19211 esac
19212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19213 $as_echo "$ac_try_echo") >&5
19214 (eval "$ac_link") 2>conftest.er1
19215 ac_status=$?
19216 grep -v '^ *+' conftest.er1 >conftest.err
19217 rm -f conftest.er1
19218 cat conftest.err >&5
19219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } && {
19221 test -z "$ac_c_werror_flag" ||
19222 test ! -s conftest.err
19223 } && test -s conftest$ac_exeext && {
19224 test "$cross_compiling" = yes ||
19225 $as_test_x conftest$ac_exeext
19226 }; then
19227 ac_cv_lib_crypt_crypt=yes
19228 else
19229 $as_echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232 ac_cv_lib_crypt_crypt=no
19233 fi
19234
19235 rm -rf conftest.dSYM
19236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19237 conftest$ac_exeext conftest.$ac_ext
19238 LIBS=$ac_check_lib_save_LIBS
19239 fi
19240 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19241 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
19242 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
19243 CRYPTLIBS="-lcrypt"
19244 fi
19245
19246 saveLIBS="$LIBS"
19247 LIBS="$CRYPTLIBS $LIBS"
19248 { $as_echo "$as_me:$LINENO: checking for crypt" >&5
19249 $as_echo_n "checking for crypt... " >&6; }
19250 if test "${ac_cv_func_crypt+set}" = set; then
19251 $as_echo_n "(cached) " >&6
19252 else
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h. */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
19260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19261 #define crypt innocuous_crypt
19262
19263 /* System header to define __stub macros and hopefully few prototypes,
19264 which can conflict with char crypt (); below.
19265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19266 <limits.h> exists even on freestanding compilers. */
19267
19268 #ifdef __STDC__
19269 # include <limits.h>
19270 #else
19271 # include <assert.h>
19272 #endif
19273
19274 #undef crypt
19275
19276 /* Override any GCC internal prototype to avoid an error.
19277 Use char because int might match the return type of a GCC
19278 builtin and then its argument prototype would still apply. */
19279 #ifdef __cplusplus
19280 extern "C"
19281 #endif
19282 char crypt ();
19283 /* The GNU C library defines this for functions which it implements
19284 to always fail with ENOSYS. Some functions are actually named
19285 something starting with __ and the normal name is an alias. */
19286 #if defined __stub_crypt || defined __stub___crypt
19287 choke me
19288 #endif
19289
19290 int
19291 main ()
19292 {
19293 return crypt ();
19294 ;
19295 return 0;
19296 }
19297 _ACEOF
19298 rm -f conftest.$ac_objext conftest$ac_exeext
19299 if { (ac_try="$ac_link"
19300 case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19303 esac
19304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19305 $as_echo "$ac_try_echo") >&5
19306 (eval "$ac_link") 2>conftest.er1
19307 ac_status=$?
19308 grep -v '^ *+' conftest.er1 >conftest.err
19309 rm -f conftest.er1
19310 cat conftest.err >&5
19311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } && {
19313 test -z "$ac_c_werror_flag" ||
19314 test ! -s conftest.err
19315 } && test -s conftest$ac_exeext && {
19316 test "$cross_compiling" = yes ||
19317 $as_test_x conftest$ac_exeext
19318 }; then
19319 ac_cv_func_crypt=yes
19320 else
19321 $as_echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 ac_cv_func_crypt=no
19325 fi
19326
19327 rm -rf conftest.dSYM
19328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19329 conftest$ac_exeext conftest.$ac_ext
19330 fi
19331 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
19332 $as_echo "$ac_cv_func_crypt" >&6; }
19333 if test "x$ac_cv_func_crypt" = x""yes; then
19334
19335 cat >>confdefs.h <<_ACEOF
19336 #define HAVE_CRYPT 1
19337 _ACEOF
19338
19339 fi
19340
19341 LIBS="$saveLIBS"
19342 { $as_echo "$as_me:$LINENO: checking for crypt() prototype" >&5
19343 $as_echo_n "checking for crypt() prototype... " >&6; }
19344 if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
19345 $as_echo_n "(cached) " >&6
19346 else
19347 cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h. */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19353
19354 #if HAVE_CRYPT_H
19355 #include <crypt.h>
19356 #endif
19357 #if HAVE_UNISTD_H
19358 #include <unistd.h>
19359 #endif
19360 int crypt(int, int);
19361
19362
19363 int
19364 main ()
19365 {
19366
19367 ;
19368 return 0;
19369 }
19370 _ACEOF
19371 rm -f conftest.$ac_objext
19372 if { (ac_try="$ac_compile"
19373 case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19376 esac
19377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19378 $as_echo "$ac_try_echo") >&5
19379 (eval "$ac_compile") 2>conftest.er1
19380 ac_status=$?
19381 grep -v '^ *+' conftest.er1 >conftest.err
19382 rm -f conftest.er1
19383 cat conftest.err >&5
19384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } && {
19386 test -z "$ac_c_werror_flag" ||
19387 test ! -s conftest.err
19388 } && test -s conftest.$ac_objext; then
19389 userdb_cv_NEED_CRYPT_PROTOTYPE=1
19390 else
19391 $as_echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19393
19394 userdb_cv_NEED_CRYPT_PROTOTYPE=0
19395 fi
19396
19397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19398
19399
19400 fi
19401 { $as_echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
19402 $as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
19403
19404
19405 cat >>confdefs.h <<_ACEOF
19406 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
19407 _ACEOF
19408
19409
19410
19411
19412
19413
19414
19415 # Check whether --with-authdaemonrc was given.
19416 if test "${with_authdaemonrc+set}" = set; then
19417 withval=$with_authdaemonrc; authdaemonrc="$withval"
19418 else
19419 authdaemonrc="$pkgconfdir/authdaemonrc"
19420 fi
19421
19422
19423
19424
19425 # Check whether --with-authdaemonvar was given.
19426 if test "${with_authdaemonvar+set}" = set; then
19427 withval=$with_authdaemonvar; authdaemonvar="$withval"
19428 else
19429 authdaemonvar="$localstatedir/spool/authdaemon"
19430 fi
19431
19432
19433
19434
19435
19436
19437 rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
19438
19439
19440 result=""
19441
19442 if test -x "$COURIERCONFIG"
19443 then
19444 $COURIERCONFIG >conftest.out || exit 1
19445 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
19446 . ./conftest2.out
19447 rm -f conftest.out conftest2.out
19448
19449 cmailuser="$mailuser"
19450 cmailgroup="$mailgroup"
19451 result=" (from courier-config)"
19452 fi
19453
19454 if test -x "$bindir/courierauthconfig"
19455 then
19456 $bindir/courierauthconfig --configfiles >conftest.out || exit 1
19457 sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1
19458 . ./conftest2.out
19459 rm -f conftest.out conftest2.out
19460
19461 cmailuser="$mailuser"
19462 cmailgroup="$mailgroup"
19463 result=" (from previous courierauthconfig)"
19464 fi
19465
19466
19467
19468 LB='['
19469 RB=']'
19470
19471
19472
19473 { $as_echo "$as_me:$LINENO: checking for mail userid" >&5
19474 $as_echo_n "checking for mail userid... " >&6; }
19475
19476
19477 # Check whether --with-mailuser was given.
19478 if test "${with_mailuser+set}" = set; then
19479 withval=$with_mailuser; mailuser="$withval"
19480 else
19481 if test "$cmailuser" = ""
19482 then
19483 if test "$cross_compiling" = yes; then
19484 { { $as_echo "$as_me:$LINENO: error: Must use --with-mailuser when cross compiling." >&5
19485 $as_echo "$as_me: error: Must use --with-mailuser when cross compiling." >&2;}
19486 { (exit 1); exit 1; }; }
19487 else
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h. */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494
19495 #include <stdio.h>
19496 #include <pwd.h>
19497 #include <stdlib.h>
19498
19499 static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
19500
19501 int main()
19502 {
19503 int i;
19504 FILE *f;
19505 char *p;
19506
19507 for (i=0; ids $LB i $RB; i++)
19508 if (getpwnam(ids $LB i $RB)) break;
19509
19510 f=fopen("conftest.out", "w");
19511 if (f && ids $LB i $RB)
19512 {
19513 fprintf(f, "%s\n", ids $LB i $RB);
19514 fclose(f);
19515 exit(0);
19516 }
19517 fclose(f);
19518 exit (1);
19519 return (1);
19520 }
19521
19522 _ACEOF
19523 rm -f conftest$ac_exeext
19524 if { (ac_try="$ac_link"
19525 case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528 esac
19529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19530 $as_echo "$ac_try_echo") >&5
19531 (eval "$ac_link") 2>&5
19532 ac_status=$?
19533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19535 { (case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19538 esac
19539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19540 $as_echo "$ac_try_echo") >&5
19541 (eval "$ac_try") 2>&5
19542 ac_status=$?
19543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19545 mailuser=`cat conftest.out`
19546 else
19547 $as_echo "$as_me: program exited with status $ac_status" >&5
19548 $as_echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19550
19551 ( exit $ac_status )
19552 { { $as_echo "$as_me:$LINENO: error: Cannot determine mail user" >&5
19553 $as_echo "$as_me: error: Cannot determine mail user" >&2;}
19554 { (exit use --with-mailuser.); exit use --with-mailuser.; }; }
19555 fi
19556 rm -rf conftest.dSYM
19557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19558 fi
19559
19560
19561 else
19562 mailuser="$cmailuser"
19563 fi
19564 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser"
19565 fi
19566
19567
19568 { $as_echo "$as_me:$LINENO: result: $mailuser $result" >&5
19569 $as_echo "$mailuser $result" >&6; }
19570
19571 { $as_echo "$as_me:$LINENO: checking for mail group id" >&5
19572 $as_echo_n "checking for mail group id... " >&6; }
19573
19574
19575 # Check whether --with-mailgroup was given.
19576 if test "${with_mailgroup+set}" = set; then
19577 withval=$with_mailgroup; mailgroup="$withval"
19578 else
19579 if test "$cmailgroup" = ""
19580 then
19581 if test "$cross_compiling" = yes; then
19582 { { $as_echo "$as_me:$LINENO: error: Must use --with-mailgroup when cross compiling." >&5
19583 $as_echo "$as_me: error: Must use --with-mailgroup when cross compiling." >&2;}
19584 { (exit 1); exit 1; }; }
19585 else
19586 cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h. */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592
19593 #include <stdio.h>
19594 #include <grp.h>
19595 #include <stdlib.h>
19596
19597 static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
19598
19599 int main()
19600 {
19601 int i;
19602 FILE *f;
19603
19604 for (i=0; ids $LB i $RB; i++)
19605 if (getgrnam(ids $LB i $RB)) break;
19606
19607 f=fopen("conftest.out", "w");
19608 if (f && ids $LB i $RB)
19609 {
19610 fprintf(f, "%s\n", ids $LB i $RB);
19611 fclose(f);
19612 exit(0);
19613 }
19614 fclose(f);
19615 exit (1);
19616 return (1);
19617 }
19618
19619 _ACEOF
19620 rm -f conftest$ac_exeext
19621 if { (ac_try="$ac_link"
19622 case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19625 esac
19626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19627 $as_echo "$ac_try_echo") >&5
19628 (eval "$ac_link") 2>&5
19629 ac_status=$?
19630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19632 { (case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19635 esac
19636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19637 $as_echo "$ac_try_echo") >&5
19638 (eval "$ac_try") 2>&5
19639 ac_status=$?
19640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 mailgroup=`cat conftest.out`
19643 else
19644 $as_echo "$as_me: program exited with status $ac_status" >&5
19645 $as_echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19647
19648 ( exit $ac_status )
19649 { { $as_echo "$as_me:$LINENO: error: Cannot determine mail group" >&5
19650 $as_echo "$as_me: error: Cannot determine mail group" >&2;}
19651 { (exit use --with-mailgroup.); exit use --with-mailgroup.; }; }
19652 fi
19653 rm -rf conftest.dSYM
19654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19655 fi
19656
19657
19658 else
19659 mailgroup="$cmailgroup"
19660 fi
19661 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup"
19662
19663 fi
19664
19665 { $as_echo "$as_me:$LINENO: result: $mailgroup $result" >&5
19666 $as_echo "$mailgroup $result" >&6; }
19667
19668
19669 rm -f conftest.out
19670
19671
19672 # Check whether --with-stdheaderdir was given.
19673 if test "${with_stdheaderdir+set}" = set; then
19674 withval=$with_stdheaderdir;
19675 if test "$withval" = "no"
19676 then
19677
19678 cat >>confdefs.h <<_ACEOF
19679 #define HAVE_NOSTDHEADERDIR 1
19680 _ACEOF
19681
19682 fi
19683
19684 fi
19685
19686
19687 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
19688 $as_echo_n "checking for socklen_t... " >&6; }
19689 if test "${authlib_cv_hassocklen_t+set}" = set; then
19690 $as_echo_n "(cached) " >&6
19691 else
19692 cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h. */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19698
19699 #include <sys/types.h>
19700 #include <sys/socket.h>
19701
19702 socklen_t sl_t;
19703
19704 _ACEOF
19705 rm -f conftest.$ac_objext
19706 if { (ac_try="$ac_compile"
19707 case "(($ac_try" in
19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709 *) ac_try_echo=$ac_try;;
19710 esac
19711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19712 $as_echo "$ac_try_echo") >&5
19713 (eval "$ac_compile") 2>conftest.er1
19714 ac_status=$?
19715 grep -v '^ *+' conftest.er1 >conftest.err
19716 rm -f conftest.er1
19717 cat conftest.err >&5
19718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } && {
19720 test -z "$ac_c_werror_flag" ||
19721 test ! -s conftest.err
19722 } && test -s conftest.$ac_objext; then
19723 authlib_cv_hassocklen_t=yes
19724 else
19725 $as_echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19727
19728 authlib_cv_hassocklen_t=no
19729 fi
19730
19731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19732
19733 fi
19734 { $as_echo "$as_me:$LINENO: result: $authlib_cv_hassocklen_t" >&5
19735 $as_echo "$authlib_cv_hassocklen_t" >&6; }
19736
19737 socklen_t="int"
19738
19739 if test $authlib_cv_hassocklen_t = yes
19740 then
19741 :
19742 else
19743
19744 cat >>confdefs.h <<_ACEOF
19745 #define socklen_t int
19746 _ACEOF
19747
19748 fi
19749
19750
19751 # Check whether --with-repository was given.
19752 if test "${with_repository+set}" = set; then
19753 withval=$with_repository; REPOSITORY="$withval"
19754 fi
19755
19756
19757
19758 if test -d ${srcdir}/docbook; then
19759 HAVE_SGML_TRUE=
19760 HAVE_SGML_FALSE='#'
19761 else
19762 HAVE_SGML_TRUE='#'
19763 HAVE_SGML_FALSE=
19764 fi
19765
19766 subdirs="$subdirs bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb unicode rfc822 random128 liblock liblog"
19767
19768
19769 ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.config dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit userdb-test-cram-md5.pl"
19770
19771 cat >confcache <<\_ACEOF
19772 # This file is a shell script that caches the results of configure
19773 # tests run on this system so they can be shared between configure
19774 # scripts and configure runs, see configure's option --config-cache.
19775 # It is not useful on other systems. If it contains results you don't
19776 # want to keep, you may remove or edit it.
19777 #
19778 # config.status only pays attention to the cache file if you give it
19779 # the --recheck option to rerun configure.
19780 #
19781 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19782 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19783 # following values.
19784
19785 _ACEOF
19786
19787 # The following way of writing the cache mishandles newlines in values,
19788 # but we know of no workaround that is simple, portable, and efficient.
19789 # So, we kill variables containing newlines.
19790 # Ultrix sh set writes to stderr and can't be redirected directly,
19791 # and sets the high bit in the cache file unless we assign to the vars.
19792 (
19793 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19794 eval ac_val=\$$ac_var
19795 case $ac_val in #(
19796 *${as_nl}*)
19797 case $ac_var in #(
19798 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
19799 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19800 esac
19801 case $ac_var in #(
19802 _ | IFS | as_nl) ;; #(
19803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19804 *) $as_unset $ac_var ;;
19805 esac ;;
19806 esac
19807 done
19808
19809 (set) 2>&1 |
19810 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19811 *${as_nl}ac_space=\ *)
19812 # `set' does not quote correctly, so add quotes (double-quote
19813 # substitution turns \\\\ into \\, and sed turns \\ into \).
19814 sed -n \
19815 "s/'/'\\\\''/g;
19816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19817 ;; #(
19818 *)
19819 # `set' quotes correctly as required by POSIX, so do not add quotes.
19820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19821 ;;
19822 esac |
19823 sort
19824 ) |
19825 sed '
19826 /^ac_cv_env_/b end
19827 t clear
19828 :clear
19829 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19830 t end
19831 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19832 :end' >>confcache
19833 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19834 if test -w "$cache_file"; then
19835 test "x$cache_file" != "x/dev/null" &&
19836 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
19837 $as_echo "$as_me: updating cache $cache_file" >&6;}
19838 cat confcache >$cache_file
19839 else
19840 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19841 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19842 fi
19843 fi
19844 rm -f confcache
19845
19846 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19847 # Let make expand exec_prefix.
19848 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19849
19850 DEFS=-DHAVE_CONFIG_H
19851
19852 ac_libobjs=
19853 ac_ltlibobjs=
19854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19855 # 1. Remove the extension, and $U if already installed.
19856 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19857 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19858 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19859 # will be set to the directory where LIBOBJS objects are built.
19860 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19861 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19862 done
19863 LIBOBJS=$ac_libobjs
19864
19865 LTLIBOBJS=$ac_ltlibobjs
19866
19867
19868 if test -n "$EXEEXT"; then
19869 am__EXEEXT_TRUE=
19870 am__EXEEXT_FALSE='#'
19871 else
19872 am__EXEEXT_TRUE='#'
19873 am__EXEEXT_FALSE=
19874 fi
19875
19876 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19877 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19878 Usually this means the macro was only invoked conditionally." >&5
19879 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
19880 Usually this means the macro was only invoked conditionally." >&2;}
19881 { (exit 1); exit 1; }; }
19882 fi
19883 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19884 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19885 Usually this means the macro was only invoked conditionally." >&5
19886 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19887 Usually this means the macro was only invoked conditionally." >&2;}
19888 { (exit 1); exit 1; }; }
19889 fi
19890 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
19891 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
19892 Usually this means the macro was only invoked conditionally." >&5
19893 $as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
19894 Usually this means the macro was only invoked conditionally." >&2;}
19895 { (exit 1); exit 1; }; }
19896 fi
19897 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
19898 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
19899 Usually this means the macro was only invoked conditionally." >&5
19900 $as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
19901 Usually this means the macro was only invoked conditionally." >&2;}
19902 { (exit 1); exit 1; }; }
19903 fi
19904 LT_CONFIG_H=courier_auth_config.h
19905
19906 _ltdl_libobjs=
19907 _ltdl_ltlibobjs=
19908 if test -n "$_LT_LIBOBJS"; then
19909 # Remove the extension.
19910 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
19911 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
19912 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
19913 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
19914 done
19915 fi
19916 ltdl_LIBOBJS=$_ltdl_libobjs
19917
19918 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
19919
19920
19921 if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
19922 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LDAP\" was never defined.
19923 Usually this means the macro was only invoked conditionally." >&5
19924 $as_echo "$as_me: error: conditional \"HAVE_LDAP\" was never defined.
19925 Usually this means the macro was only invoked conditionally." >&2;}
19926 { (exit 1); exit 1; }; }
19927 fi
19928 if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
19929 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
19930 Usually this means the macro was only invoked conditionally." >&5
19931 $as_echo "$as_me: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
19932 Usually this means the macro was only invoked conditionally." >&2;}
19933 { (exit 1); exit 1; }; }
19934 fi
19935 if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
19936 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
19937 Usually this means the macro was only invoked conditionally." >&5
19938 $as_echo "$as_me: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
19939 Usually this means the macro was only invoked conditionally." >&2;}
19940 { (exit 1); exit 1; }; }
19941 fi
19942 if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
19943 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CUSTOM\" was never defined.
19944 Usually this means the macro was only invoked conditionally." >&5
19945 $as_echo "$as_me: error: conditional \"HAVE_CUSTOM\" was never defined.
19946 Usually this means the macro was only invoked conditionally." >&2;}
19947 { (exit 1); exit 1; }; }
19948 fi
19949 if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
19950 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PIPE\" was never defined.
19951 Usually this means the macro was only invoked conditionally." >&5
19952 $as_echo "$as_me: error: conditional \"HAVE_PIPE\" was never defined.
19953 Usually this means the macro was only invoked conditionally." >&2;}
19954 { (exit 1); exit 1; }; }
19955 fi
19956 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
19957 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
19958 Usually this means the macro was only invoked conditionally." >&5
19959 $as_echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
19960 Usually this means the macro was only invoked conditionally." >&2;}
19961 { (exit 1); exit 1; }; }
19962 fi
19963
19964 : ${CONFIG_STATUS=./config.status}
19965 ac_write_fail=0
19966 ac_clean_files_save=$ac_clean_files
19967 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19968 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19969 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19970 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19971 #! $SHELL
19972 # Generated by $as_me.
19973 # Run this file to recreate the current configuration.
19974 # Compiler output produced by configure, useful for debugging
19975 # configure, is in config.log if it exists.
19976
19977 debug=false
19978 ac_cs_recheck=false
19979 ac_cs_silent=false
19980 SHELL=\${CONFIG_SHELL-$SHELL}
19981 _ACEOF
19982
19983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19984 ## --------------------- ##
19985 ## M4sh Initialization. ##
19986 ## --------------------- ##
19987
19988 # Be more Bourne compatible
19989 DUALCASE=1; export DUALCASE # for MKS sh
19990 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19991 emulate sh
19992 NULLCMD=:
19993 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19994 # is contrary to our usage. Disable this feature.
19995 alias -g '${1+"$@"}'='"$@"'
19996 setopt NO_GLOB_SUBST
19997 else
19998 case `(set -o) 2>/dev/null` in
19999 *posix*) set -o posix ;;
20000 esac
20001
20002 fi
20003
20004
20005
20006
20007 # PATH needs CR
20008 # Avoid depending upon Character Ranges.
20009 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20010 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20011 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20012 as_cr_digits='0123456789'
20013 as_cr_alnum=$as_cr_Letters$as_cr_digits
20014
20015 as_nl='
20016 '
20017 export as_nl
20018 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20019 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20020 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20022 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20023 as_echo='printf %s\n'
20024 as_echo_n='printf %s'
20025 else
20026 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20027 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20028 as_echo_n='/usr/ucb/echo -n'
20029 else
20030 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20031 as_echo_n_body='eval
20032 arg=$1;
20033 case $arg in
20034 *"$as_nl"*)
20035 expr "X$arg" : "X\\(.*\\)$as_nl";
20036 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20037 esac;
20038 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20039 '
20040 export as_echo_n_body
20041 as_echo_n='sh -c $as_echo_n_body as_echo'
20042 fi
20043 export as_echo_body
20044 as_echo='sh -c $as_echo_body as_echo'
20045 fi
20046
20047 # The user is always right.
20048 if test "${PATH_SEPARATOR+set}" != set; then
20049 PATH_SEPARATOR=:
20050 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20051 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20052 PATH_SEPARATOR=';'
20053 }
20054 fi
20055
20056 # Support unset when possible.
20057 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20058 as_unset=unset
20059 else
20060 as_unset=false
20061 fi
20062
20063
20064 # IFS
20065 # We need space, tab and new line, in precisely that order. Quoting is
20066 # there to prevent editors from complaining about space-tab.
20067 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20068 # splitting by setting IFS to empty value.)
20069 IFS=" "" $as_nl"
20070
20071 # Find who we are. Look in the path if we contain no directory separator.
20072 case $0 in
20073 *[\\/]* ) as_myself=$0 ;;
20074 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20075 for as_dir in $PATH
20076 do
20077 IFS=$as_save_IFS
20078 test -z "$as_dir" && as_dir=.
20079 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20080 done
20081 IFS=$as_save_IFS
20082
20083 ;;
20084 esac
20085 # We did not find ourselves, most probably we were run as `sh COMMAND'
20086 # in which case we are not to be found in the path.
20087 if test "x$as_myself" = x; then
20088 as_myself=$0
20089 fi
20090 if test ! -f "$as_myself"; then
20091 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20092 { (exit 1); exit 1; }
20093 fi
20094
20095 # Work around bugs in pre-3.0 UWIN ksh.
20096 for as_var in ENV MAIL MAILPATH
20097 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20098 done
20099 PS1='$ '
20100 PS2='> '
20101 PS4='+ '
20102
20103 # NLS nuisances.
20104 LC_ALL=C
20105 export LC_ALL
20106 LANGUAGE=C
20107 export LANGUAGE
20108
20109 # Required to use basename.
20110 if expr a : '\(a\)' >/dev/null 2>&1 &&
20111 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20112 as_expr=expr
20113 else
20114 as_expr=false
20115 fi
20116
20117 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20118 as_basename=basename
20119 else
20120 as_basename=false
20121 fi
20122
20123
20124 # Name of the executable.
20125 as_me=`$as_basename -- "$0" ||
20126 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20127 X"$0" : 'X\(//\)$' \| \
20128 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20129 $as_echo X/"$0" |
20130 sed '/^.*\/\([^/][^/]*\)\/*$/{
20131 s//\1/
20132 q
20133 }
20134 /^X\/\(\/\/\)$/{
20135 s//\1/
20136 q
20137 }
20138 /^X\/\(\/\).*/{
20139 s//\1/
20140 q
20141 }
20142 s/.*/./; q'`
20143
20144 # CDPATH.
20145 $as_unset CDPATH
20146
20147
20148
20149 as_lineno_1=$LINENO
20150 as_lineno_2=$LINENO
20151 test "x$as_lineno_1" != "x$as_lineno_2" &&
20152 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20153
20154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20155 # uniformly replaced by the line number. The first 'sed' inserts a
20156 # line-number line after each line using $LINENO; the second 'sed'
20157 # does the real work. The second script uses 'N' to pair each
20158 # line-number line with the line containing $LINENO, and appends
20159 # trailing '-' during substitution so that $LINENO is not a special
20160 # case at line end.
20161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20162 # scripts with optimization help from Paolo Bonzini. Blame Lee
20163 # E. McMahon (1931-1989) for sed's syntax. :-)
20164 sed -n '
20165 p
20166 /[$]LINENO/=
20167 ' <$as_myself |
20168 sed '
20169 s/[$]LINENO.*/&-/
20170 t lineno
20171 b
20172 :lineno
20173 N
20174 :loop
20175 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20176 t loop
20177 s/-\n.*//
20178 ' >$as_me.lineno &&
20179 chmod +x "$as_me.lineno" ||
20180 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20181 { (exit 1); exit 1; }; }
20182
20183 # Don't try to exec as it changes $[0], causing all sort of problems
20184 # (the dirname of $[0] is not the place where we might find the
20185 # original and so on. Autoconf is especially sensitive to this).
20186 . "./$as_me.lineno"
20187 # Exit status is that of the last command.
20188 exit
20189 }
20190
20191
20192 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20193 as_dirname=dirname
20194 else
20195 as_dirname=false
20196 fi
20197
20198 ECHO_C= ECHO_N= ECHO_T=
20199 case `echo -n x` in
20200 -n*)
20201 case `echo 'x\c'` in
20202 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20203 *) ECHO_C='\c';;
20204 esac;;
20205 *)
20206 ECHO_N='-n';;
20207 esac
20208 if expr a : '\(a\)' >/dev/null 2>&1 &&
20209 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20210 as_expr=expr
20211 else
20212 as_expr=false
20213 fi
20214
20215 rm -f conf$$ conf$$.exe conf$$.file
20216 if test -d conf$$.dir; then
20217 rm -f conf$$.dir/conf$$.file
20218 else
20219 rm -f conf$$.dir
20220 mkdir conf$$.dir 2>/dev/null
20221 fi
20222 if (echo >conf$$.file) 2>/dev/null; then
20223 if ln -s conf$$.file conf$$ 2>/dev/null; then
20224 as_ln_s='ln -s'
20225 # ... but there are two gotchas:
20226 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20227 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20228 # In both cases, we have to default to `cp -p'.
20229 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20230 as_ln_s='cp -p'
20231 elif ln conf$$.file conf$$ 2>/dev/null; then
20232 as_ln_s=ln
20233 else
20234 as_ln_s='cp -p'
20235 fi
20236 else
20237 as_ln_s='cp -p'
20238 fi
20239 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20240 rmdir conf$$.dir 2>/dev/null
20241
20242 if mkdir -p . 2>/dev/null; then
20243 as_mkdir_p=:
20244 else
20245 test -d ./-p && rmdir ./-p
20246 as_mkdir_p=false
20247 fi
20248
20249 if test -x / >/dev/null 2>&1; then
20250 as_test_x='test -x'
20251 else
20252 if ls -dL / >/dev/null 2>&1; then
20253 as_ls_L_option=L
20254 else
20255 as_ls_L_option=
20256 fi
20257 as_test_x='
20258 eval sh -c '\''
20259 if test -d "$1"; then
20260 test -d "$1/.";
20261 else
20262 case $1 in
20263 -*)set "./$1";;
20264 esac;
20265 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20266 ???[sx]*):;;*)false;;esac;fi
20267 '\'' sh
20268 '
20269 fi
20270 as_executable_p=$as_test_x
20271
20272 # Sed expression to map a string onto a valid CPP name.
20273 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20274
20275 # Sed expression to map a string onto a valid variable name.
20276 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20277
20278
20279 exec 6>&1
20280
20281 # Save the log message, to keep $[0] and so on meaningful, and to
20282 # report actual input values of CONFIG_FILES etc. instead of their
20283 # values after options handling.
20284 ac_log="
20285 This file was extended by courier-authlib $as_me 0.63.0, which was
20286 generated by GNU Autoconf 2.63. Invocation command line was
20287
20288 CONFIG_FILES = $CONFIG_FILES
20289 CONFIG_HEADERS = $CONFIG_HEADERS
20290 CONFIG_LINKS = $CONFIG_LINKS
20291 CONFIG_COMMANDS = $CONFIG_COMMANDS
20292 $ $0 $@
20293
20294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20295 "
20296
20297 _ACEOF
20298
20299 case $ac_config_files in *"
20300 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20301 esac
20302
20303 case $ac_config_headers in *"
20304 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20305 esac
20306
20307
20308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20309 # Files that config.status was made for.
20310 config_files="$ac_config_files"
20311 config_headers="$ac_config_headers"
20312 config_commands="$ac_config_commands"
20313
20314 _ACEOF
20315
20316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20317 ac_cs_usage="\
20318 \`$as_me' instantiates files from templates according to the
20319 current configuration.
20320
20321 Usage: $0 [OPTION]... [FILE]...
20322
20323 -h, --help print this help, then exit
20324 -V, --version print version number and configuration settings, then exit
20325 -q, --quiet, --silent
20326 do not print progress messages
20327 -d, --debug don't remove temporary files
20328 --recheck update $as_me by reconfiguring in the same conditions
20329 --file=FILE[:TEMPLATE]
20330 instantiate the configuration file FILE
20331 --header=FILE[:TEMPLATE]
20332 instantiate the configuration header FILE
20333
20334 Configuration files:
20335 $config_files
20336
20337 Configuration headers:
20338 $config_headers
20339
20340 Configuration commands:
20341 $config_commands
20342
20343 Report bugs to <bug-autoconf@gnu.org>."
20344
20345 _ACEOF
20346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20347 ac_cs_version="\\
20348 courier-authlib config.status 0.63.0
20349 configured by $0, generated by GNU Autoconf 2.63,
20350 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20351
20352 Copyright (C) 2008 Free Software Foundation, Inc.
20353 This config.status script is free software; the Free Software Foundation
20354 gives unlimited permission to copy, distribute and modify it."
20355
20356 ac_pwd='$ac_pwd'
20357 srcdir='$srcdir'
20358 INSTALL='$INSTALL'
20359 MKDIR_P='$MKDIR_P'
20360 AWK='$AWK'
20361 test -n "\$AWK" || AWK=awk
20362 _ACEOF
20363
20364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20365 # The default lists apply if the user does not specify any file.
20366 ac_need_defaults=:
20367 while test $# != 0
20368 do
20369 case $1 in
20370 --*=*)
20371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20372 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20373 ac_shift=:
20374 ;;
20375 *)
20376 ac_option=$1
20377 ac_optarg=$2
20378 ac_shift=shift
20379 ;;
20380 esac
20381
20382 case $ac_option in
20383 # Handling of the options.
20384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20385 ac_cs_recheck=: ;;
20386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20387 $as_echo "$ac_cs_version"; exit ;;
20388 --debug | --debu | --deb | --de | --d | -d )
20389 debug=: ;;
20390 --file | --fil | --fi | --f )
20391 $ac_shift
20392 case $ac_optarg in
20393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20394 esac
20395 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20396 ac_need_defaults=false;;
20397 --header | --heade | --head | --hea )
20398 $ac_shift
20399 case $ac_optarg in
20400 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20401 esac
20402 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20403 ac_need_defaults=false;;
20404 --he | --h)
20405 # Conflict between --help and --header
20406 { $as_echo "$as_me: error: ambiguous option: $1
20407 Try \`$0 --help' for more information." >&2
20408 { (exit 1); exit 1; }; };;
20409 --help | --hel | -h )
20410 $as_echo "$ac_cs_usage"; exit ;;
20411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20412 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20413 ac_cs_silent=: ;;
20414
20415 # This is an error.
20416 -*) { $as_echo "$as_me: error: unrecognized option: $1
20417 Try \`$0 --help' for more information." >&2
20418 { (exit 1); exit 1; }; } ;;
20419
20420 *) ac_config_targets="$ac_config_targets $1"
20421 ac_need_defaults=false ;;
20422
20423 esac
20424 shift
20425 done
20426
20427 ac_configure_extra_args=
20428
20429 if $ac_cs_silent; then
20430 exec 6>/dev/null
20431 ac_configure_extra_args="$ac_configure_extra_args --silent"
20432 fi
20433
20434 _ACEOF
20435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20436 if \$ac_cs_recheck; then
20437 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20438 shift
20439 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20440 CONFIG_SHELL='$SHELL'
20441 export CONFIG_SHELL
20442 exec "\$@"
20443 fi
20444
20445 _ACEOF
20446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20447 exec 5>>config.log
20448 {
20449 echo
20450 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20451 ## Running $as_me. ##
20452 _ASBOX
20453 $as_echo "$ac_log"
20454 } >&5
20455
20456 _ACEOF
20457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20458 #
20459 # INIT-COMMANDS
20460 #
20461 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20462
20463
20464 # The HP-UX ksh and POSIX shell print the target directory to stdout
20465 # if CDPATH is set.
20466 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20467
20468 sed_quote_subst='$sed_quote_subst'
20469 double_quote_subst='$double_quote_subst'
20470 delay_variable_subst='$delay_variable_subst'
20471 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20472 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20473 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20474 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20475 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20476 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20477 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20478 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20479 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20480 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20481 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20482 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20483 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20484 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20485 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20486 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20487 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20488 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20489 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20490 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20491 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20492 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20493 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20494 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20495 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20496 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20497 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20498 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20499 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20500 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20501 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20502 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20503 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20504 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20505 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20506 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20507 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20508 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20509 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20510 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20511 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20512 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20513 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20514 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20515 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
20516 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20517 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20518 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20519 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20520 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20521 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20522 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20523 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20524 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20525 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20526 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20527 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20528 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20529 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20530 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20531 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20532 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20533 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20534 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20535 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20536 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20537 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20538 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20539 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20540 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20541 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20542 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20543 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20544 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20545 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20546 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20547 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20548 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20549 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20550 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20551 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20552 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20553 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20554 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20555 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20556 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20557 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20558 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20559 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20560 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20561 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20562 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20563 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20564 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20565 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20566 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20567 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20568 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20569 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20570 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20571 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20572 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20573 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20574 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20575 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20576 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20577 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20578 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20579 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20580 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20581 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20582 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20583 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20584 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20585 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20586 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20587 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20588 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20589
20590 LTCC='$LTCC'
20591 LTCFLAGS='$LTCFLAGS'
20592 compiler='$compiler_DEFAULT'
20593
20594 # Quote evaled strings.
20595 for var in SED \
20596 GREP \
20597 EGREP \
20598 FGREP \
20599 LD \
20600 NM \
20601 LN_S \
20602 lt_SP2NL \
20603 lt_NL2SP \
20604 reload_flag \
20605 OBJDUMP \
20606 deplibs_check_method \
20607 file_magic_cmd \
20608 AR \
20609 AR_FLAGS \
20610 STRIP \
20611 RANLIB \
20612 CC \
20613 CFLAGS \
20614 compiler \
20615 lt_cv_sys_global_symbol_pipe \
20616 lt_cv_sys_global_symbol_to_cdecl \
20617 lt_cv_sys_global_symbol_to_c_name_address \
20618 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20619 SHELL \
20620 ECHO \
20621 lt_prog_compiler_no_builtin_flag \
20622 lt_prog_compiler_wl \
20623 lt_prog_compiler_pic \
20624 lt_prog_compiler_static \
20625 lt_cv_prog_compiler_c_o \
20626 need_locks \
20627 DSYMUTIL \
20628 NMEDIT \
20629 LIPO \
20630 OTOOL \
20631 OTOOL64 \
20632 shrext_cmds \
20633 export_dynamic_flag_spec \
20634 whole_archive_flag_spec \
20635 compiler_needs_object \
20636 with_gnu_ld \
20637 allow_undefined_flag \
20638 no_undefined_flag \
20639 hardcode_libdir_flag_spec \
20640 hardcode_libdir_flag_spec_ld \
20641 hardcode_libdir_separator \
20642 fix_srcfile_path \
20643 exclude_expsyms \
20644 include_expsyms \
20645 file_list_spec \
20646 variables_saved_for_relink \
20647 libname_spec \
20648 library_names_spec \
20649 soname_spec \
20650 finish_eval \
20651 old_striplib \
20652 striplib; do
20653 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20654 *[\\\\\\\`\\"\\\$]*)
20655 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20656 ;;
20657 *)
20658 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20659 ;;
20660 esac
20661 done
20662
20663 # Double-quote double-evaled strings.
20664 for var in reload_cmds \
20665 old_postinstall_cmds \
20666 old_postuninstall_cmds \
20667 old_archive_cmds \
20668 extract_expsyms_cmds \
20669 old_archive_from_new_cmds \
20670 old_archive_from_expsyms_cmds \
20671 archive_cmds \
20672 archive_expsym_cmds \
20673 module_cmds \
20674 module_expsym_cmds \
20675 export_symbols_cmds \
20676 prelink_cmds \
20677 postinstall_cmds \
20678 postuninstall_cmds \
20679 finish_cmds \
20680 sys_lib_search_path_spec \
20681 sys_lib_dlsearch_path_spec; do
20682 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20683 *[\\\\\\\`\\"\\\$]*)
20684 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20685 ;;
20686 *)
20687 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20688 ;;
20689 esac
20690 done
20691
20692 # Fix-up fallback echo if it was mangled by the above quoting rules.
20693 case \$lt_ECHO in
20694 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20695 ;;
20696 esac
20697
20698 ac_aux_dir='$ac_aux_dir'
20699 xsi_shell='$xsi_shell'
20700 lt_shell_append='$lt_shell_append'
20701
20702 # See if we are running on zsh, and set the options which allow our
20703 # commands through without removal of \ escapes INIT.
20704 if test -n "\${ZSH_VERSION+set}" ; then
20705 setopt NO_GLOB_SUBST
20706 fi
20707
20708
20709 PACKAGE='$PACKAGE'
20710 VERSION='$VERSION'
20711 TIMESTAMP='$TIMESTAMP'
20712 RM='$RM'
20713 ofile='$ofile'
20714
20715
20716
20717
20718 _ACEOF
20719
20720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20721
20722 # Handling of arguments.
20723 for ac_config_target in $ac_config_targets
20724 do
20725 case $ac_config_target in
20726 "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;;
20727 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20728 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20729 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20730 "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;;
20731 "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;;
20732 "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;;
20733 "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;;
20734 "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;;
20735 "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;;
20736 "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;;
20737 "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;;
20738 "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;;
20739 "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;;
20740 "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;;
20741
20742 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20743 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20744 { (exit 1); exit 1; }; };;
20745 esac
20746 done
20747
20748
20749 # If the user did not use the arguments to specify the items to instantiate,
20750 # then the envvar interface is used. Set only those that are not.
20751 # We use the long form for the default assignment because of an extremely
20752 # bizarre bug on SunOS 4.1.3.
20753 if $ac_need_defaults; then
20754 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20755 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20756 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20757 fi
20758
20759 # Have a temporary directory for convenience. Make it in the build tree
20760 # simply because there is no reason against having it here, and in addition,
20761 # creating and moving files from /tmp can sometimes cause problems.
20762 # Hook for its removal unless debugging.
20763 # Note that there is a small window in which the directory will not be cleaned:
20764 # after its creation but before its name has been assigned to `$tmp'.
20765 $debug ||
20766 {
20767 tmp=
20768 trap 'exit_status=$?
20769 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20770 ' 0
20771 trap '{ (exit 1); exit 1; }' 1 2 13 15
20772 }
20773 # Create a (secure) tmp directory for tmp files.
20774
20775 {
20776 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20777 test -n "$tmp" && test -d "$tmp"
20778 } ||
20779 {
20780 tmp=./conf$$-$RANDOM
20781 (umask 077 && mkdir "$tmp")
20782 } ||
20783 {
20784 $as_echo "$as_me: cannot create a temporary directory in ." >&2
20785 { (exit 1); exit 1; }
20786 }
20787
20788 # Set up the scripts for CONFIG_FILES section.
20789 # No need to generate them if there are no CONFIG_FILES.
20790 # This happens for instance with `./config.status config.h'.
20791 if test -n "$CONFIG_FILES"; then
20792
20793
20794 ac_cr=' '
20795 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20796 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20797 ac_cs_awk_cr='\\r'
20798 else
20799 ac_cs_awk_cr=$ac_cr
20800 fi
20801
20802 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20803 _ACEOF
20804
20805
20806 {
20807 echo "cat >conf$$subs.awk <<_ACEOF" &&
20808 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20809 echo "_ACEOF"
20810 } >conf$$subs.sh ||
20811 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20812 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20813 { (exit 1); exit 1; }; }
20814 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20815 ac_delim='%!_!# '
20816 for ac_last_try in false false false false false :; do
20817 . ./conf$$subs.sh ||
20818 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20819 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20820 { (exit 1); exit 1; }; }
20821
20822 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20823 if test $ac_delim_n = $ac_delim_num; then
20824 break
20825 elif $ac_last_try; then
20826 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20827 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20828 { (exit 1); exit 1; }; }
20829 else
20830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20831 fi
20832 done
20833 rm -f conf$$subs.sh
20834
20835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20836 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20837 _ACEOF
20838 sed -n '
20839 h
20840 s/^/S["/; s/!.*/"]=/
20841 p
20842 g
20843 s/^[^!]*!//
20844 :repl
20845 t repl
20846 s/'"$ac_delim"'$//
20847 t delim
20848 :nl
20849 h
20850 s/\(.\{148\}\).*/\1/
20851 t more1
20852 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20853 p
20854 n
20855 b repl
20856 :more1
20857 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20858 p
20859 g
20860 s/.\{148\}//
20861 t nl
20862 :delim
20863 h
20864 s/\(.\{148\}\).*/\1/
20865 t more2
20866 s/["\\]/\\&/g; s/^/"/; s/$/"/
20867 p
20868 b
20869 :more2
20870 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20871 p
20872 g
20873 s/.\{148\}//
20874 t delim
20875 ' <conf$$subs.awk | sed '
20876 /^[^""]/{
20877 N
20878 s/\n//
20879 }
20880 ' >>$CONFIG_STATUS || ac_write_fail=1
20881 rm -f conf$$subs.awk
20882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20883 _ACAWK
20884 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20885 for (key in S) S_is_set[key] = 1
20886 FS = "\a"
20887
20888 }
20889 {
20890 line = $ 0
20891 nfields = split(line, field, "@")
20892 substed = 0
20893 len = length(field[1])
20894 for (i = 2; i < nfields; i++) {
20895 key = field[i]
20896 keylen = length(key)
20897 if (S_is_set[key]) {
20898 value = S[key]
20899 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20900 len += length(value) + length(field[++i])
20901 substed = 1
20902 } else
20903 len += 1 + keylen
20904 }
20905
20906 print line
20907 }
20908
20909 _ACAWK
20910 _ACEOF
20911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20912 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20913 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20914 else
20915 cat
20916 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20917 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
20918 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
20919 { (exit 1); exit 1; }; }
20920 _ACEOF
20921
20922 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20923 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20924 # trailing colons and then remove the whole line if VPATH becomes empty
20925 # (actually we leave an empty line to preserve line numbers).
20926 if test "x$srcdir" = x.; then
20927 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20928 s/:*\$(srcdir):*/:/
20929 s/:*\${srcdir}:*/:/
20930 s/:*@srcdir@:*/:/
20931 s/^\([^=]*=[ ]*\):*/\1/
20932 s/:*$//
20933 s/^[^=]*=[ ]*$//
20934 }'
20935 fi
20936
20937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20938 fi # test -n "$CONFIG_FILES"
20939
20940 # Set up the scripts for CONFIG_HEADERS section.
20941 # No need to generate them if there are no CONFIG_HEADERS.
20942 # This happens for instance with `./config.status Makefile'.
20943 if test -n "$CONFIG_HEADERS"; then
20944 cat >"$tmp/defines.awk" <<\_ACAWK ||
20945 BEGIN {
20946 _ACEOF
20947
20948 # Transform confdefs.h into an awk script `defines.awk', embedded as
20949 # here-document in config.status, that substitutes the proper values into
20950 # config.h.in to produce config.h.
20951
20952 # Create a delimiter string that does not exist in confdefs.h, to ease
20953 # handling of long lines.
20954 ac_delim='%!_!# '
20955 for ac_last_try in false false :; do
20956 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20957 if test -z "$ac_t"; then
20958 break
20959 elif $ac_last_try; then
20960 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
20961 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
20962 { (exit 1); exit 1; }; }
20963 else
20964 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20965 fi
20966 done
20967
20968 # For the awk script, D is an array of macro values keyed by name,
20969 # likewise P contains macro parameters if any. Preserve backslash
20970 # newline sequences.
20971
20972 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20973 sed -n '
20974 s/.\{148\}/&'"$ac_delim"'/g
20975 t rset
20976 :rset
20977 s/^[ ]*#[ ]*define[ ][ ]*/ /
20978 t def
20979 d
20980 :def
20981 s/\\$//
20982 t bsnl
20983 s/["\\]/\\&/g
20984 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20985 D["\1"]=" \3"/p
20986 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20987 d
20988 :bsnl
20989 s/["\\]/\\&/g
20990 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20991 D["\1"]=" \3\\\\\\n"\\/p
20992 t cont
20993 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20994 t cont
20995 d
20996 :cont
20997 n
20998 s/.\{148\}/&'"$ac_delim"'/g
20999 t clear
21000 :clear
21001 s/\\$//
21002 t bsnlc
21003 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21004 d
21005 :bsnlc
21006 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21007 b cont
21008 ' <confdefs.h | sed '
21009 s/'"$ac_delim"'/"\\\
21010 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21011
21012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21013 for (key in D) D_is_set[key] = 1
21014 FS = "\a"
21015 }
21016 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21017 line = \$ 0
21018 split(line, arg, " ")
21019 if (arg[1] == "#") {
21020 defundef = arg[2]
21021 mac1 = arg[3]
21022 } else {
21023 defundef = substr(arg[1], 2)
21024 mac1 = arg[2]
21025 }
21026 split(mac1, mac2, "(") #)
21027 macro = mac2[1]
21028 prefix = substr(line, 1, index(line, defundef) - 1)
21029 if (D_is_set[macro]) {
21030 # Preserve the white space surrounding the "#".
21031 print prefix "define", macro P[macro] D[macro]
21032 next
21033 } else {
21034 # Replace #undef with comments. This is necessary, for example,
21035 # in the case of _POSIX_SOURCE, which is predefined and required
21036 # on some systems where configure will not decide to define it.
21037 if (defundef == "undef") {
21038 print "/*", prefix defundef, macro, "*/"
21039 next
21040 }
21041 }
21042 }
21043 { print }
21044 _ACAWK
21045 _ACEOF
21046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21047 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21048 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21049 { (exit 1); exit 1; }; }
21050 fi # test -n "$CONFIG_HEADERS"
21051
21052
21053 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21054 shift
21055 for ac_tag
21056 do
21057 case $ac_tag in
21058 :[FHLC]) ac_mode=$ac_tag; continue;;
21059 esac
21060 case $ac_mode$ac_tag in
21061 :[FHL]*:*);;
21062 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21063 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21064 { (exit 1); exit 1; }; };;
21065 :[FH]-) ac_tag=-:-;;
21066 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21067 esac
21068 ac_save_IFS=$IFS
21069 IFS=:
21070 set x $ac_tag
21071 IFS=$ac_save_IFS
21072 shift
21073 ac_file=$1
21074 shift
21075
21076 case $ac_mode in
21077 :L) ac_source=$1;;
21078 :[FH])
21079 ac_file_inputs=
21080 for ac_f
21081 do
21082 case $ac_f in
21083 -) ac_f="$tmp/stdin";;
21084 *) # Look for the file first in the build tree, then in the source tree
21085 # (if the path is not absolute). The absolute path cannot be DOS-style,
21086 # because $ac_f cannot contain `:'.
21087 test -f "$ac_f" ||
21088 case $ac_f in
21089 [\\/$]*) false;;
21090 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21091 esac ||
21092 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21093 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21094 { (exit 1); exit 1; }; };;
21095 esac
21096 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21097 ac_file_inputs="$ac_file_inputs '$ac_f'"
21098 done
21099
21100 # Let's still pretend it is `configure' which instantiates (i.e., don't
21101 # use $as_me), people would be surprised to read:
21102 # /* config.h. Generated by config.status. */
21103 configure_input='Generated from '`
21104 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21105 `' by configure.'
21106 if test x"$ac_file" != x-; then
21107 configure_input="$ac_file. $configure_input"
21108 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21109 $as_echo "$as_me: creating $ac_file" >&6;}
21110 fi
21111 # Neutralize special characters interpreted by sed in replacement strings.
21112 case $configure_input in #(
21113 *\&* | *\|* | *\\* )
21114 ac_sed_conf_input=`$as_echo "$configure_input" |
21115 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21116 *) ac_sed_conf_input=$configure_input;;
21117 esac
21118
21119 case $ac_tag in
21120 *:-:* | *:-) cat >"$tmp/stdin" \
21121 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21122 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21123 { (exit 1); exit 1; }; } ;;
21124 esac
21125 ;;
21126 esac
21127
21128 ac_dir=`$as_dirname -- "$ac_file" ||
21129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21130 X"$ac_file" : 'X\(//\)[^/]' \| \
21131 X"$ac_file" : 'X\(//\)$' \| \
21132 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21133 $as_echo X"$ac_file" |
21134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21135 s//\1/
21136 q
21137 }
21138 /^X\(\/\/\)[^/].*/{
21139 s//\1/
21140 q
21141 }
21142 /^X\(\/\/\)$/{
21143 s//\1/
21144 q
21145 }
21146 /^X\(\/\).*/{
21147 s//\1/
21148 q
21149 }
21150 s/.*/./; q'`
21151 { as_dir="$ac_dir"
21152 case $as_dir in #(
21153 -*) as_dir=./$as_dir;;
21154 esac
21155 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21156 as_dirs=
21157 while :; do
21158 case $as_dir in #(
21159 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21160 *) as_qdir=$as_dir;;
21161 esac
21162 as_dirs="'$as_qdir' $as_dirs"
21163 as_dir=`$as_dirname -- "$as_dir" ||
21164 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21165 X"$as_dir" : 'X\(//\)[^/]' \| \
21166 X"$as_dir" : 'X\(//\)$' \| \
21167 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21168 $as_echo X"$as_dir" |
21169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21170 s//\1/
21171 q
21172 }
21173 /^X\(\/\/\)[^/].*/{
21174 s//\1/
21175 q
21176 }
21177 /^X\(\/\/\)$/{
21178 s//\1/
21179 q
21180 }
21181 /^X\(\/\).*/{
21182 s//\1/
21183 q
21184 }
21185 s/.*/./; q'`
21186 test -d "$as_dir" && break
21187 done
21188 test -z "$as_dirs" || eval "mkdir $as_dirs"
21189 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21190 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21191 { (exit 1); exit 1; }; }; }
21192 ac_builddir=.
21193
21194 case "$ac_dir" in
21195 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21196 *)
21197 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21198 # A ".." for each directory in $ac_dir_suffix.
21199 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21200 case $ac_top_builddir_sub in
21201 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21202 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21203 esac ;;
21204 esac
21205 ac_abs_top_builddir=$ac_pwd
21206 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21207 # for backward compatibility:
21208 ac_top_builddir=$ac_top_build_prefix
21209
21210 case $srcdir in
21211 .) # We are building in place.
21212 ac_srcdir=.
21213 ac_top_srcdir=$ac_top_builddir_sub
21214 ac_abs_top_srcdir=$ac_pwd ;;
21215 [\\/]* | ?:[\\/]* ) # Absolute name.
21216 ac_srcdir=$srcdir$ac_dir_suffix;
21217 ac_top_srcdir=$srcdir
21218 ac_abs_top_srcdir=$srcdir ;;
21219 *) # Relative name.
21220 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21221 ac_top_srcdir=$ac_top_build_prefix$srcdir
21222 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21223 esac
21224 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21225
21226
21227 case $ac_mode in
21228 :F)
21229 #
21230 # CONFIG_FILE
21231 #
21232
21233 case $INSTALL in
21234 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21235 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21236 esac
21237 ac_MKDIR_P=$MKDIR_P
21238 case $MKDIR_P in
21239 [\\/$]* | ?:[\\/]* ) ;;
21240 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21241 esac
21242 _ACEOF
21243
21244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21245 # If the template does not know about datarootdir, expand it.
21246 # FIXME: This hack should be removed a few years after 2.60.
21247 ac_datarootdir_hack=; ac_datarootdir_seen=
21248
21249 ac_sed_dataroot='
21250 /datarootdir/ {
21251 p
21252 q
21253 }
21254 /@datadir@/p
21255 /@docdir@/p
21256 /@infodir@/p
21257 /@localedir@/p
21258 /@mandir@/p
21259 '
21260 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21261 *datarootdir*) ac_datarootdir_seen=yes;;
21262 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21263 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21264 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21265 _ACEOF
21266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21267 ac_datarootdir_hack='
21268 s&@datadir@&$datadir&g
21269 s&@docdir@&$docdir&g
21270 s&@infodir@&$infodir&g
21271 s&@localedir@&$localedir&g
21272 s&@mandir@&$mandir&g
21273 s&\\\${datarootdir}&$datarootdir&g' ;;
21274 esac
21275 _ACEOF
21276
21277 # Neutralize VPATH when `$srcdir' = `.'.
21278 # Shell code in configure.ac might set extrasub.
21279 # FIXME: do we really want to maintain this feature?
21280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21281 ac_sed_extra="$ac_vpsub
21282 $extrasub
21283 _ACEOF
21284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21285 :t
21286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21287 s|@configure_input@|$ac_sed_conf_input|;t t
21288 s&@top_builddir@&$ac_top_builddir_sub&;t t
21289 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21290 s&@srcdir@&$ac_srcdir&;t t
21291 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21292 s&@top_srcdir@&$ac_top_srcdir&;t t
21293 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21294 s&@builddir@&$ac_builddir&;t t
21295 s&@abs_builddir@&$ac_abs_builddir&;t t
21296 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21297 s&@INSTALL@&$ac_INSTALL&;t t
21298 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21299 $ac_datarootdir_hack
21300 "
21301 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21302 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21303 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21304 { (exit 1); exit 1; }; }
21305
21306 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21307 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21308 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21309 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21310 which seems to be undefined. Please make sure it is defined." >&5
21311 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21312 which seems to be undefined. Please make sure it is defined." >&2;}
21313
21314 rm -f "$tmp/stdin"
21315 case $ac_file in
21316 -) cat "$tmp/out" && rm -f "$tmp/out";;
21317 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21318 esac \
21319 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21320 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21321 { (exit 1); exit 1; }; }
21322 ;;
21323 :H)
21324 #
21325 # CONFIG_HEADER
21326 #
21327 if test x"$ac_file" != x-; then
21328 {
21329 $as_echo "/* $configure_input */" \
21330 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21331 } >"$tmp/config.h" \
21332 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21333 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21334 { (exit 1); exit 1; }; }
21335 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21336 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21337 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21338 else
21339 rm -f "$ac_file"
21340 mv "$tmp/config.h" "$ac_file" \
21341 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21342 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21343 { (exit 1); exit 1; }; }
21344 fi
21345 else
21346 $as_echo "/* $configure_input */" \
21347 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21348 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21349 $as_echo "$as_me: error: could not create -" >&2;}
21350 { (exit 1); exit 1; }; }
21351 fi
21352 # Compute "$ac_file"'s index in $config_headers.
21353 _am_arg="$ac_file"
21354 _am_stamp_count=1
21355 for _am_header in $config_headers :; do
21356 case $_am_header in
21357 $_am_arg | $_am_arg:* )
21358 break ;;
21359 * )
21360 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21361 esac
21362 done
21363 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21364 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21365 X"$_am_arg" : 'X\(//\)[^/]' \| \
21366 X"$_am_arg" : 'X\(//\)$' \| \
21367 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21368 $as_echo X"$_am_arg" |
21369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21370 s//\1/
21371 q
21372 }
21373 /^X\(\/\/\)[^/].*/{
21374 s//\1/
21375 q
21376 }
21377 /^X\(\/\/\)$/{
21378 s//\1/
21379 q
21380 }
21381 /^X\(\/\).*/{
21382 s//\1/
21383 q
21384 }
21385 s/.*/./; q'`/stamp-h$_am_stamp_count
21386 ;;
21387
21388 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21389 $as_echo "$as_me: executing $ac_file commands" >&6;}
21390 ;;
21391 esac
21392
21393
21394 case $ac_file$ac_mode in
21395 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21396 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21397 # are listed without --file. Let's play safe and only enable the eval
21398 # if we detect the quoting.
21399 case $CONFIG_FILES in
21400 *\'*) eval set x "$CONFIG_FILES" ;;
21401 *) set x $CONFIG_FILES ;;
21402 esac
21403 shift
21404 for mf
21405 do
21406 # Strip MF so we end up with the name of the file.
21407 mf=`echo "$mf" | sed -e 's/:.*$//'`
21408 # Check whether this is an Automake generated Makefile or not.
21409 # We used to match only the files named `Makefile.in', but
21410 # some people rename them; so instead we look at the file content.
21411 # Grep'ing the first line is not enough: some people post-process
21412 # each Makefile.in and add a new line on top of each file to say so.
21413 # Grep'ing the whole file is not good either: AIX grep has a line
21414 # limit of 2048, but all sed's we know have understand at least 4000.
21415 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21416 dirpart=`$as_dirname -- "$mf" ||
21417 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21418 X"$mf" : 'X\(//\)[^/]' \| \
21419 X"$mf" : 'X\(//\)$' \| \
21420 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21421 $as_echo X"$mf" |
21422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21423 s//\1/
21424 q
21425 }
21426 /^X\(\/\/\)[^/].*/{
21427 s//\1/
21428 q
21429 }
21430 /^X\(\/\/\)$/{
21431 s//\1/
21432 q
21433 }
21434 /^X\(\/\).*/{
21435 s//\1/
21436 q
21437 }
21438 s/.*/./; q'`
21439 else
21440 continue
21441 fi
21442 # Extract the definition of DEPDIR, am__include, and am__quote
21443 # from the Makefile without running `make'.
21444 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21445 test -z "$DEPDIR" && continue
21446 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21447 test -z "am__include" && continue
21448 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21449 # When using ansi2knr, U may be empty or an underscore; expand it
21450 U=`sed -n 's/^U = //p' < "$mf"`
21451 # Find all dependency output files, they are included files with
21452 # $(DEPDIR) in their names. We invoke sed twice because it is the
21453 # simplest approach to changing $(DEPDIR) to its actual value in the
21454 # expansion.
21455 for file in `sed -n "
21456 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21457 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21458 # Make sure the directory exists.
21459 test -f "$dirpart/$file" && continue
21460 fdir=`$as_dirname -- "$file" ||
21461 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21462 X"$file" : 'X\(//\)[^/]' \| \
21463 X"$file" : 'X\(//\)$' \| \
21464 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21465 $as_echo X"$file" |
21466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21467 s//\1/
21468 q
21469 }
21470 /^X\(\/\/\)[^/].*/{
21471 s//\1/
21472 q
21473 }
21474 /^X\(\/\/\)$/{
21475 s//\1/
21476 q
21477 }
21478 /^X\(\/\).*/{
21479 s//\1/
21480 q
21481 }
21482 s/.*/./; q'`
21483 { as_dir=$dirpart/$fdir
21484 case $as_dir in #(
21485 -*) as_dir=./$as_dir;;
21486 esac
21487 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21488 as_dirs=
21489 while :; do
21490 case $as_dir in #(
21491 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21492 *) as_qdir=$as_dir;;
21493 esac
21494 as_dirs="'$as_qdir' $as_dirs"
21495 as_dir=`$as_dirname -- "$as_dir" ||
21496 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21497 X"$as_dir" : 'X\(//\)[^/]' \| \
21498 X"$as_dir" : 'X\(//\)$' \| \
21499 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21500 $as_echo X"$as_dir" |
21501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21502 s//\1/
21503 q
21504 }
21505 /^X\(\/\/\)[^/].*/{
21506 s//\1/
21507 q
21508 }
21509 /^X\(\/\/\)$/{
21510 s//\1/
21511 q
21512 }
21513 /^X\(\/\).*/{
21514 s//\1/
21515 q
21516 }
21517 s/.*/./; q'`
21518 test -d "$as_dir" && break
21519 done
21520 test -z "$as_dirs" || eval "mkdir $as_dirs"
21521 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21522 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21523 { (exit 1); exit 1; }; }; }
21524 # echo "creating $dirpart/$file"
21525 echo '# dummy' > "$dirpart/$file"
21526 done
21527 done
21528 }
21529 ;;
21530 "libtool":C)
21531
21532 # See if we are running on zsh, and set the options which allow our
21533 # commands through without removal of \ escapes.
21534 if test -n "${ZSH_VERSION+set}" ; then
21535 setopt NO_GLOB_SUBST
21536 fi
21537
21538 cfgfile="${ofile}T"
21539 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21540 $RM "$cfgfile"
21541
21542 cat <<_LT_EOF >> "$cfgfile"
21543 #! $SHELL
21544
21545 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21546 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21547 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21548 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21549 #
21550 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21551 # 2006, 2007, 2008 Free Software Foundation, Inc.
21552 # Written by Gordon Matzigkeit, 1996
21553 #
21554 # This file is part of GNU Libtool.
21555 #
21556 # GNU Libtool is free software; you can redistribute it and/or
21557 # modify it under the terms of the GNU General Public License as
21558 # published by the Free Software Foundation; either version 2 of
21559 # the License, or (at your option) any later version.
21560 #
21561 # As a special exception to the GNU General Public License,
21562 # if you distribute this file as part of a program or library that
21563 # is built using GNU Libtool, you may include this file under the
21564 # same distribution terms that you use for the rest of that program.
21565 #
21566 # GNU Libtool is distributed in the hope that it will be useful,
21567 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21568 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21569 # GNU General Public License for more details.
21570 #
21571 # You should have received a copy of the GNU General Public License
21572 # along with GNU Libtool; see the file COPYING. If not, a copy
21573 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21574 # obtained by writing to the Free Software Foundation, Inc.,
21575 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21576
21577
21578 # The names of the tagged configurations supported by this script.
21579 available_tags=""
21580
21581 # ### BEGIN LIBTOOL CONFIG
21582
21583 # Which release of libtool.m4 was used?
21584 macro_version=$macro_version
21585 macro_revision=$macro_revision
21586
21587 # Whether or not to build shared libraries.
21588 build_libtool_libs=$enable_shared
21589
21590 # Whether or not to build static libraries.
21591 build_old_libs=$enable_static
21592
21593 # What type of objects to build.
21594 pic_mode=$pic_mode
21595
21596 # Whether or not to optimize for fast installation.
21597 fast_install=$enable_fast_install
21598
21599 # The host system.
21600 host_alias=$host_alias
21601 host=$host
21602 host_os=$host_os
21603
21604 # The build system.
21605 build_alias=$build_alias
21606 build=$build
21607 build_os=$build_os
21608
21609 # A sed program that does not truncate output.
21610 SED=$lt_SED
21611
21612 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21613 Xsed="\$SED -e 1s/^X//"
21614
21615 # A grep program that handles long lines.
21616 GREP=$lt_GREP
21617
21618 # An ERE matcher.
21619 EGREP=$lt_EGREP
21620
21621 # A literal string matcher.
21622 FGREP=$lt_FGREP
21623
21624 # A BSD- or MS-compatible name lister.
21625 NM=$lt_NM
21626
21627 # Whether we need soft or hard links.
21628 LN_S=$lt_LN_S
21629
21630 # What is the maximum length of a command?
21631 max_cmd_len=$max_cmd_len
21632
21633 # Object file suffix (normally "o").
21634 objext=$ac_objext
21635
21636 # Executable file suffix (normally "").
21637 exeext=$exeext
21638
21639 # whether the shell understands "unset".
21640 lt_unset=$lt_unset
21641
21642 # turn spaces into newlines.
21643 SP2NL=$lt_lt_SP2NL
21644
21645 # turn newlines into spaces.
21646 NL2SP=$lt_lt_NL2SP
21647
21648 # How to create reloadable object files.
21649 reload_flag=$lt_reload_flag
21650 reload_cmds=$lt_reload_cmds
21651
21652 # An object symbol dumper.
21653 OBJDUMP=$lt_OBJDUMP
21654
21655 # Method to check whether dependent libraries are shared objects.
21656 deplibs_check_method=$lt_deplibs_check_method
21657
21658 # Command to use when deplibs_check_method == "file_magic".
21659 file_magic_cmd=$lt_file_magic_cmd
21660
21661 # The archiver.
21662 AR=$lt_AR
21663 AR_FLAGS=$lt_AR_FLAGS
21664
21665 # A symbol stripping program.
21666 STRIP=$lt_STRIP
21667
21668 # Commands used to install an old-style archive.
21669 RANLIB=$lt_RANLIB
21670 old_postinstall_cmds=$lt_old_postinstall_cmds
21671 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21672
21673 # A C compiler.
21674 LTCC=$lt_CC
21675
21676 # LTCC compiler flags.
21677 LTCFLAGS=$lt_CFLAGS
21678
21679 # Take the output of nm and produce a listing of raw symbols and C names.
21680 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21681
21682 # Transform the output of nm in a proper C declaration.
21683 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21684
21685 # Transform the output of nm in a C name address pair.
21686 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21687
21688 # Transform the output of nm in a C name address pair when lib prefix is needed.
21689 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21690
21691 # The name of the directory that contains temporary libtool files.
21692 objdir=$objdir
21693
21694 # Shell to use when invoking shell scripts.
21695 SHELL=$lt_SHELL
21696
21697 # An echo program that does not interpret backslashes.
21698 ECHO=$lt_ECHO
21699
21700 # Used to examine libraries when file_magic_cmd begins with "file".
21701 MAGIC_CMD=$MAGIC_CMD
21702
21703 # Must we lock files when doing compilation?
21704 need_locks=$lt_need_locks
21705
21706 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21707 DSYMUTIL=$lt_DSYMUTIL
21708
21709 # Tool to change global to local symbols on Mac OS X.
21710 NMEDIT=$lt_NMEDIT
21711
21712 # Tool to manipulate fat objects and archives on Mac OS X.
21713 LIPO=$lt_LIPO
21714
21715 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21716 OTOOL=$lt_OTOOL
21717
21718 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21719 OTOOL64=$lt_OTOOL64
21720
21721 # Old archive suffix (normally "a").
21722 libext=$libext
21723
21724 # Shared library suffix (normally ".so").
21725 shrext_cmds=$lt_shrext_cmds
21726
21727 # The commands to extract the exported symbol list from a shared archive.
21728 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21729
21730 # Variables whose values should be saved in libtool wrapper scripts and
21731 # restored at link time.
21732 variables_saved_for_relink=$lt_variables_saved_for_relink
21733
21734 # Do we need the "lib" prefix for modules?
21735 need_lib_prefix=$need_lib_prefix
21736
21737 # Do we need a version for libraries?
21738 need_version=$need_version
21739
21740 # Library versioning type.
21741 version_type=$version_type
21742
21743 # Shared library runtime path variable.
21744 runpath_var=$runpath_var
21745
21746 # Shared library path variable.
21747 shlibpath_var=$shlibpath_var
21748
21749 # Is shlibpath searched before the hard-coded library search path?
21750 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21751
21752 # Format of library name prefix.
21753 libname_spec=$lt_libname_spec
21754
21755 # List of archive names. First name is the real one, the rest are links.
21756 # The last name is the one that the linker finds with -lNAME
21757 library_names_spec=$lt_library_names_spec
21758
21759 # The coded name of the library, if different from the real name.
21760 soname_spec=$lt_soname_spec
21761
21762 # Command to use after installation of a shared archive.
21763 postinstall_cmds=$lt_postinstall_cmds
21764
21765 # Command to use after uninstallation of a shared archive.
21766 postuninstall_cmds=$lt_postuninstall_cmds
21767
21768 # Commands used to finish a libtool library installation in a directory.
21769 finish_cmds=$lt_finish_cmds
21770
21771 # As "finish_cmds", except a single script fragment to be evaled but
21772 # not shown.
21773 finish_eval=$lt_finish_eval
21774
21775 # Whether we should hardcode library paths into libraries.
21776 hardcode_into_libs=$hardcode_into_libs
21777
21778 # Compile-time system search path for libraries.
21779 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21780
21781 # Run-time system search path for libraries.
21782 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21783
21784 # Whether dlopen is supported.
21785 dlopen_support=$enable_dlopen
21786
21787 # Whether dlopen of programs is supported.
21788 dlopen_self=$enable_dlopen_self
21789
21790 # Whether dlopen of statically linked programs is supported.
21791 dlopen_self_static=$enable_dlopen_self_static
21792
21793 # Commands to strip libraries.
21794 old_striplib=$lt_old_striplib
21795 striplib=$lt_striplib
21796
21797
21798 # The linker used to build libraries.
21799 LD=$lt_LD
21800
21801 # Commands used to build an old-style archive.
21802 old_archive_cmds=$lt_old_archive_cmds
21803
21804 # A language specific compiler.
21805 CC=$lt_compiler
21806
21807 # Is the compiler the GNU compiler?
21808 with_gcc=$GCC
21809
21810 # Compiler flag to turn off builtin functions.
21811 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21812
21813 # How to pass a linker flag through the compiler.
21814 wl=$lt_lt_prog_compiler_wl
21815
21816 # Additional compiler flags for building library objects.
21817 pic_flag=$lt_lt_prog_compiler_pic
21818
21819 # Compiler flag to prevent dynamic linking.
21820 link_static_flag=$lt_lt_prog_compiler_static
21821
21822 # Does compiler simultaneously support -c and -o options?
21823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21824
21825 # Whether or not to add -lc for building shared libraries.
21826 build_libtool_need_lc=$archive_cmds_need_lc
21827
21828 # Whether or not to disallow shared libs when runtime libs are static.
21829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21830
21831 # Compiler flag to allow reflexive dlopens.
21832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21833
21834 # Compiler flag to generate shared objects directly from archives.
21835 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21836
21837 # Whether the compiler copes with passing no objects directly.
21838 compiler_needs_object=$lt_compiler_needs_object
21839
21840 # Create an old-style archive from a shared archive.
21841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21842
21843 # Create a temporary old-style archive to link instead of a shared archive.
21844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21845
21846 # Commands used to build a shared archive.
21847 archive_cmds=$lt_archive_cmds
21848 archive_expsym_cmds=$lt_archive_expsym_cmds
21849
21850 # Commands used to build a loadable module if different from building
21851 # a shared archive.
21852 module_cmds=$lt_module_cmds
21853 module_expsym_cmds=$lt_module_expsym_cmds
21854
21855 # Whether we are building with GNU ld or not.
21856 with_gnu_ld=$lt_with_gnu_ld
21857
21858 # Flag that allows shared libraries with undefined symbols to be built.
21859 allow_undefined_flag=$lt_allow_undefined_flag
21860
21861 # Flag that enforces no undefined symbols.
21862 no_undefined_flag=$lt_no_undefined_flag
21863
21864 # Flag to hardcode \$libdir into a binary during linking.
21865 # This must work even if \$libdir does not exist
21866 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21867
21868 # If ld is used when linking, flag to hardcode \$libdir into a binary
21869 # during linking. This must work even if \$libdir does not exist.
21870 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21871
21872 # Whether we need a single "-rpath" flag with a separated argument.
21873 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21874
21875 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21876 # DIR into the resulting binary.
21877 hardcode_direct=$hardcode_direct
21878
21879 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21880 # DIR into the resulting binary and the resulting library dependency is
21881 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21882 # library is relocated.
21883 hardcode_direct_absolute=$hardcode_direct_absolute
21884
21885 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21886 # into the resulting binary.
21887 hardcode_minus_L=$hardcode_minus_L
21888
21889 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21890 # into the resulting binary.
21891 hardcode_shlibpath_var=$hardcode_shlibpath_var
21892
21893 # Set to "yes" if building a shared library automatically hardcodes DIR
21894 # into the library and all subsequent libraries and executables linked
21895 # against it.
21896 hardcode_automatic=$hardcode_automatic
21897
21898 # Set to yes if linker adds runtime paths of dependent libraries
21899 # to runtime path list.
21900 inherit_rpath=$inherit_rpath
21901
21902 # Whether libtool must link a program against all its dependency libraries.
21903 link_all_deplibs=$link_all_deplibs
21904
21905 # Fix the shell variable \$srcfile for the compiler.
21906 fix_srcfile_path=$lt_fix_srcfile_path
21907
21908 # Set to "yes" if exported symbols are required.
21909 always_export_symbols=$always_export_symbols
21910
21911 # The commands to list exported symbols.
21912 export_symbols_cmds=$lt_export_symbols_cmds
21913
21914 # Symbols that should not be listed in the preloaded symbols.
21915 exclude_expsyms=$lt_exclude_expsyms
21916
21917 # Symbols that must always be exported.
21918 include_expsyms=$lt_include_expsyms
21919
21920 # Commands necessary for linking programs (against libraries) with templates.
21921 prelink_cmds=$lt_prelink_cmds
21922
21923 # Specify filename containing input files.
21924 file_list_spec=$lt_file_list_spec
21925
21926 # How to hardcode a shared library path into an executable.
21927 hardcode_action=$hardcode_action
21928
21929 # ### END LIBTOOL CONFIG
21930
21931 _LT_EOF
21932
21933 case $host_os in
21934 aix3*)
21935 cat <<\_LT_EOF >> "$cfgfile"
21936 # AIX sometimes has problems with the GCC collect2 program. For some
21937 # reason, if we set the COLLECT_NAMES environment variable, the problems
21938 # vanish in a puff of smoke.
21939 if test "X${COLLECT_NAMES+set}" != Xset; then
21940 COLLECT_NAMES=
21941 export COLLECT_NAMES
21942 fi
21943 _LT_EOF
21944 ;;
21945 esac
21946
21947
21948 ltmain="$ac_aux_dir/ltmain.sh"
21949
21950
21951 # We use sed instead of cat because bash on DJGPP gets confused if
21952 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21953 # text mode, it properly converts lines to CR/LF. This bash problem
21954 # is reportedly fixed, but why not run on old versions too?
21955 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21956 || (rm -f "$cfgfile"; exit 1)
21957
21958 case $xsi_shell in
21959 yes)
21960 cat << \_LT_EOF >> "$cfgfile"
21961
21962 # func_dirname file append nondir_replacement
21963 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21964 # otherwise set result to NONDIR_REPLACEMENT.
21965 func_dirname ()
21966 {
21967 case ${1} in
21968 */*) func_dirname_result="${1%/*}${2}" ;;
21969 * ) func_dirname_result="${3}" ;;
21970 esac
21971 }
21972
21973 # func_basename file
21974 func_basename ()
21975 {
21976 func_basename_result="${1##*/}"
21977 }
21978
21979 # func_dirname_and_basename file append nondir_replacement
21980 # perform func_basename and func_dirname in a single function
21981 # call:
21982 # dirname: Compute the dirname of FILE. If nonempty,
21983 # add APPEND to the result, otherwise set result
21984 # to NONDIR_REPLACEMENT.
21985 # value returned in "$func_dirname_result"
21986 # basename: Compute filename of FILE.
21987 # value retuned in "$func_basename_result"
21988 # Implementation must be kept synchronized with func_dirname
21989 # and func_basename. For efficiency, we do not delegate to
21990 # those functions but instead duplicate the functionality here.
21991 func_dirname_and_basename ()
21992 {
21993 case ${1} in
21994 */*) func_dirname_result="${1%/*}${2}" ;;
21995 * ) func_dirname_result="${3}" ;;
21996 esac
21997 func_basename_result="${1##*/}"
21998 }
21999
22000 # func_stripname prefix suffix name
22001 # strip PREFIX and SUFFIX off of NAME.
22002 # PREFIX and SUFFIX must not contain globbing or regex special
22003 # characters, hashes, percent signs, but SUFFIX may contain a leading
22004 # dot (in which case that matches only a dot).
22005 func_stripname ()
22006 {
22007 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22008 # positional parameters, so assign one to ordinary parameter first.
22009 func_stripname_result=${3}
22010 func_stripname_result=${func_stripname_result#"${1}"}
22011 func_stripname_result=${func_stripname_result%"${2}"}
22012 }
22013
22014 # func_opt_split
22015 func_opt_split ()
22016 {
22017 func_opt_split_opt=${1%%=*}
22018 func_opt_split_arg=${1#*=}
22019 }
22020
22021 # func_lo2o object
22022 func_lo2o ()
22023 {
22024 case ${1} in
22025 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22026 *) func_lo2o_result=${1} ;;
22027 esac
22028 }
22029
22030 # func_xform libobj-or-source
22031 func_xform ()
22032 {
22033 func_xform_result=${1%.*}.lo
22034 }
22035
22036 # func_arith arithmetic-term...
22037 func_arith ()
22038 {
22039 func_arith_result=$(( $* ))
22040 }
22041
22042 # func_len string
22043 # STRING may not start with a hyphen.
22044 func_len ()
22045 {
22046 func_len_result=${#1}
22047 }
22048
22049 _LT_EOF
22050 ;;
22051 *) # Bourne compatible functions.
22052 cat << \_LT_EOF >> "$cfgfile"
22053
22054 # func_dirname file append nondir_replacement
22055 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22056 # otherwise set result to NONDIR_REPLACEMENT.
22057 func_dirname ()
22058 {
22059 # Extract subdirectory from the argument.
22060 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22061 if test "X$func_dirname_result" = "X${1}"; then
22062 func_dirname_result="${3}"
22063 else
22064 func_dirname_result="$func_dirname_result${2}"
22065 fi
22066 }
22067
22068 # func_basename file
22069 func_basename ()
22070 {
22071 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22072 }
22073
22074
22075 # func_stripname prefix suffix name
22076 # strip PREFIX and SUFFIX off of NAME.
22077 # PREFIX and SUFFIX must not contain globbing or regex special
22078 # characters, hashes, percent signs, but SUFFIX may contain a leading
22079 # dot (in which case that matches only a dot).
22080 # func_strip_suffix prefix name
22081 func_stripname ()
22082 {
22083 case ${2} in
22084 .*) func_stripname_result=`$ECHO "X${3}" \
22085 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22086 *) func_stripname_result=`$ECHO "X${3}" \
22087 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22088 esac
22089 }
22090
22091 # sed scripts:
22092 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22093 my_sed_long_arg='1s/^-[^=]*=//'
22094
22095 # func_opt_split
22096 func_opt_split ()
22097 {
22098 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22099 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22100 }
22101
22102 # func_lo2o object
22103 func_lo2o ()
22104 {
22105 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22106 }
22107
22108 # func_xform libobj-or-source
22109 func_xform ()
22110 {
22111 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22112 }
22113
22114 # func_arith arithmetic-term...
22115 func_arith ()
22116 {
22117 func_arith_result=`expr "$@"`
22118 }
22119
22120 # func_len string
22121 # STRING may not start with a hyphen.
22122 func_len ()
22123 {
22124 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22125 }
22126
22127 _LT_EOF
22128 esac
22129
22130 case $lt_shell_append in
22131 yes)
22132 cat << \_LT_EOF >> "$cfgfile"
22133
22134 # func_append var value
22135 # Append VALUE to the end of shell variable VAR.
22136 func_append ()
22137 {
22138 eval "$1+=\$2"
22139 }
22140 _LT_EOF
22141 ;;
22142 *)
22143 cat << \_LT_EOF >> "$cfgfile"
22144
22145 # func_append var value
22146 # Append VALUE to the end of shell variable VAR.
22147 func_append ()
22148 {
22149 eval "$1=\$$1\$2"
22150 }
22151
22152 _LT_EOF
22153 ;;
22154 esac
22155
22156
22157 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22158 || (rm -f "$cfgfile"; exit 1)
22159
22160 mv -f "$cfgfile" "$ofile" ||
22161 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22162 chmod +x "$ofile"
22163
22164 ;;
22165
22166 esac
22167 done # for ac_tag
22168
22169
22170 { (exit 0); exit 0; }
22171 _ACEOF
22172 chmod +x $CONFIG_STATUS
22173 ac_clean_files=$ac_clean_files_save
22174
22175 test $ac_write_fail = 0 ||
22176 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22177 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22178 { (exit 1); exit 1; }; }
22179
22180
22181 # configure is writing to config.log, and then calls config.status.
22182 # config.status does its own redirection, appending to config.log.
22183 # Unfortunately, on DOS this fails, as config.log is still kept open
22184 # by configure, so config.status won't be able to write to it; its
22185 # output is simply discarded. So we exec the FD to /dev/null,
22186 # effectively closing config.log, so it can be properly (re)opened and
22187 # appended to by config.status. When coming back to configure, we
22188 # need to make the FD available again.
22189 if test "$no_create" != yes; then
22190 ac_cs_success=:
22191 ac_config_status_args=
22192 test "$silent" = yes &&
22193 ac_config_status_args="$ac_config_status_args --quiet"
22194 exec 5>/dev/null
22195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22196 exec 5>>config.log
22197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22198 # would make configure fail if this is the last instruction.
22199 $ac_cs_success || { (exit 1); exit 1; }
22200 fi
22201
22202 #
22203 # CONFIG_SUBDIRS section.
22204 #
22205 if test "$no_recursion" != yes; then
22206
22207 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
22208 # so they do not pile up.
22209 ac_sub_configure_args=
22210 ac_prev=
22211 eval "set x $ac_configure_args"
22212 shift
22213 for ac_arg
22214 do
22215 if test -n "$ac_prev"; then
22216 ac_prev=
22217 continue
22218 fi
22219 case $ac_arg in
22220 -cache-file | --cache-file | --cache-fil | --cache-fi \
22221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22222 ac_prev=cache_file ;;
22223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22225 | --c=*)
22226 ;;
22227 --config-cache | -C)
22228 ;;
22229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22230 ac_prev=srcdir ;;
22231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22232 ;;
22233 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22234 ac_prev=prefix ;;
22235 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22236 ;;
22237 --disable-option-checking)
22238 ;;
22239 *)
22240 case $ac_arg in
22241 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22242 esac
22243 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22244 esac
22245 done
22246
22247 # Always prepend --prefix to ensure using the same prefix
22248 # in subdir configurations.
22249 ac_arg="--prefix=$prefix"
22250 case $ac_arg in
22251 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22252 esac
22253 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22254
22255 # Pass --silent
22256 if test "$silent" = yes; then
22257 ac_sub_configure_args="--silent $ac_sub_configure_args"
22258 fi
22259
22260 # Always prepend --disable-option-checking to silence warnings, since
22261 # different subdirs can have different --enable and --with options.
22262 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
22263
22264 ac_popdir=`pwd`
22265 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22266
22267 # Do not complain, so a configure script can configure whichever
22268 # parts of a large source tree are present.
22269 test -d "$srcdir/$ac_dir" || continue
22270
22271 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22272 $as_echo "$as_me:$LINENO: $ac_msg" >&5
22273 $as_echo "$ac_msg" >&6
22274 { as_dir="$ac_dir"
22275 case $as_dir in #(
22276 -*) as_dir=./$as_dir;;
22277 esac
22278 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22279 as_dirs=
22280 while :; do
22281 case $as_dir in #(
22282 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22283 *) as_qdir=$as_dir;;
22284 esac
22285 as_dirs="'$as_qdir' $as_dirs"
22286 as_dir=`$as_dirname -- "$as_dir" ||
22287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22288 X"$as_dir" : 'X\(//\)[^/]' \| \
22289 X"$as_dir" : 'X\(//\)$' \| \
22290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22291 $as_echo X"$as_dir" |
22292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22293 s//\1/
22294 q
22295 }
22296 /^X\(\/\/\)[^/].*/{
22297 s//\1/
22298 q
22299 }
22300 /^X\(\/\/\)$/{
22301 s//\1/
22302 q
22303 }
22304 /^X\(\/\).*/{
22305 s//\1/
22306 q
22307 }
22308 s/.*/./; q'`
22309 test -d "$as_dir" && break
22310 done
22311 test -z "$as_dirs" || eval "mkdir $as_dirs"
22312 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22313 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22314 { (exit 1); exit 1; }; }; }
22315 ac_builddir=.
22316
22317 case "$ac_dir" in
22318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22319 *)
22320 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22321 # A ".." for each directory in $ac_dir_suffix.
22322 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22323 case $ac_top_builddir_sub in
22324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22326 esac ;;
22327 esac
22328 ac_abs_top_builddir=$ac_pwd
22329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22330 # for backward compatibility:
22331 ac_top_builddir=$ac_top_build_prefix
22332
22333 case $srcdir in
22334 .) # We are building in place.
22335 ac_srcdir=.
22336 ac_top_srcdir=$ac_top_builddir_sub
22337 ac_abs_top_srcdir=$ac_pwd ;;
22338 [\\/]* | ?:[\\/]* ) # Absolute name.
22339 ac_srcdir=$srcdir$ac_dir_suffix;
22340 ac_top_srcdir=$srcdir
22341 ac_abs_top_srcdir=$srcdir ;;
22342 *) # Relative name.
22343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22344 ac_top_srcdir=$ac_top_build_prefix$srcdir
22345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22346 esac
22347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22348
22349
22350 cd "$ac_dir"
22351
22352 # Check for guested configure; otherwise get Cygnus style configure.
22353 if test -f "$ac_srcdir/configure.gnu"; then
22354 ac_sub_configure=$ac_srcdir/configure.gnu
22355 elif test -f "$ac_srcdir/configure"; then
22356 ac_sub_configure=$ac_srcdir/configure
22357 elif test -f "$ac_srcdir/configure.in"; then
22358 # This should be Cygnus configure.
22359 ac_sub_configure=$ac_aux_dir/configure
22360 else
22361 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22362 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22363 ac_sub_configure=
22364 fi
22365
22366 # The recursion is here.
22367 if test -n "$ac_sub_configure"; then
22368 # Make the cache file name correct relative to the subdirectory.
22369 case $cache_file in
22370 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22371 *) # Relative name.
22372 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22373 esac
22374
22375 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22376 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22377 # The eval makes quoting arguments work.
22378 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22379 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22380 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22381 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22382 { (exit 1); exit 1; }; }
22383 fi
22384
22385 cd "$ac_popdir"
22386 done
22387 fi
22388 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22389 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22390 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22391 fi
22392
22393