Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for gross 1.0-svn.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$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 # Zsh 3.x and 4.x performs 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 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582 $*
583 EOF
584 exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 exec 7<&0 </dev/null 6>&1
703
704 # Name of the host.
705 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
706 # so uname gets run too.
707 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
708
709 #
710 # Initializations.
711 #
712 ac_default_prefix=/usr/local
713 ac_clean_files=
714 ac_config_libobj_dir=.
715 LIBOBJS=
716 cross_compiling=no
717 subdirs=
718 MFLAGS=
719 MAKEFLAGS=
720 SHELL=${CONFIG_SHELL-/bin/sh}
721
722 # Identity of this package.
723 PACKAGE_NAME='gross'
724 PACKAGE_TARNAME='gross'
725 PACKAGE_VERSION='1.0-svn'
726 PACKAGE_STRING='gross 1.0-svn'
727 PACKAGE_BUGREPORT=''
728
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 # include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 # include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 build
803 build_cpu
804 build_vendor
805 build_os
806 host
807 host_cpu
808 host_vendor
809 host_os
810 target
811 target_cpu
812 target_vendor
813 target_os
814 INSTALL_PROGRAM
815 INSTALL_SCRIPT
816 INSTALL_DATA
817 am__isrc
818 CYGPATH_W
819 PACKAGE
820 VERSION
821 ACLOCAL
822 AUTOCONF
823 AUTOMAKE
824 AUTOHEADER
825 MAKEINFO
826 install_sh
827 STRIP
828 INSTALL_STRIP_PROGRAM
829 mkdir_p
830 AWK
831 SET_MAKE
832 am__leading_dot
833 AMTAR
834 am__tar
835 am__untar
836 CC
837 CFLAGS
838 LDFLAGS
839 CPPFLAGS
840 ac_ct_CC
841 EXEEXT
842 OBJEXT
843 DEPDIR
844 am__include
845 am__quote
846 AMDEP_TRUE
847 AMDEP_FALSE
848 AMDEPBACKSLASH
849 CCDEPMODE
850 am__fastdepCC_TRUE
851 am__fastdepCC_FALSE
852 GREP
853 EGREP
854 LN_S
855 ECHO
856 AR
857 RANLIB
858 CPP
859 LIBTOOL
860 SED
861 HAVE_SED_TRUE
862 HAVE_SED_FALSE
863 DNSBLSOURCES
864 MILTERSOURCES
865 REENTRANT_FLAG
866 STATIC_GLIBC_FLAG
867 LIBOBJS
868 LTLIBOBJS'
869 ac_subst_files=''
870 ac_precious_vars='build_alias
871 host_alias
872 target_alias
873 CC
874 CFLAGS
875 LDFLAGS
876 LIBS
877 CPPFLAGS
878 CPP'
879
880
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
900
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
936 fi
937
938 case $ac_option in
939 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *) ac_optarg=yes ;;
941 esac
942
943 # Accept the important Cygnus configure options, so we can diagnose typos.
944
945 case $ac_dashdash$ac_option in
946 --)
947 ac_dashdash=yes ;;
948
949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
950 ac_prev=bindir ;;
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 bindir=$ac_optarg ;;
953
954 -build | --build | --buil | --bui | --bu)
955 ac_prev=build_alias ;;
956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957 build_alias=$ac_optarg ;;
958
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964 cache_file=$ac_optarg ;;
965
966 --config-cache | -C)
967 cache_file=config.cache ;;
968
969 -datadir | --datadir | --datadi | --datad)
970 ac_prev=datadir ;;
971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
972 datadir=$ac_optarg ;;
973
974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
980
981 -disable-* | --disable-*)
982 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
985 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
986 { (exit 1); exit 1; }; }
987 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
988 eval enable_$ac_feature=no ;;
989
990 -docdir | --docdir | --docdi | --doc | --do)
991 ac_prev=docdir ;;
992 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993 docdir=$ac_optarg ;;
994
995 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996 ac_prev=dvidir ;;
997 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998 dvidir=$ac_optarg ;;
999
1000 -enable-* | --enable-*)
1001 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1004 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1005 { (exit 1); exit 1; }; }
1006 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1007 eval enable_$ac_feature=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1204 eval with_$ac_package=\$ac_optarg ;;
1205
1206 -without-* | --without-*)
1207 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 { echo "$as_me: error: invalid package name: $ac_package" >&2
1211 { (exit 1); exit 1; }; }
1212 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1213 eval with_$ac_package=no ;;
1214
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1218
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1225
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1232
1233 -*) { echo "$as_me: error: unrecognized option: $ac_option
1234 Try \`$0 --help' for more information." >&2
1235 { (exit 1); exit 1; }; }
1236 ;;
1237
1238 *=*)
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1242 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1243 { (exit 1); exit 1; }; }
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1246
1247 *)
1248 # FIXME: should be removed in autoconf 3.0.
1249 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1253 ;;
1254
1255 esac
1256 done
1257
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 { echo "$as_me: error: missing argument to $ac_option" >&2
1261 { (exit 1); exit 1; }; }
1262 fi
1263
1264 # Be sure to have absolute directory names.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1269 do
1270 eval ac_val=\$$ac_var
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1276 { (exit 1); exit 1; }; }
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 { echo "$as_me: error: Working directory cannot be determined" >&2
1307 { (exit 1); exit 1; }; }
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 { echo "$as_me: error: pwd does not report name of working directory" >&2
1310 { (exit 1); exit 1; }; }
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$0" ||
1318 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$0" : 'X\(//\)[^/]' \| \
1320 X"$0" : 'X\(//\)$' \| \
1321 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1322 echo X"$0" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1343 fi
1344 else
1345 ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1350 { (exit 1); exit 1; }; }
1351 fi
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1355 { (exit 1); exit 1; }; }
1356 pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1360 fi
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1373
1374 #
1375 # Report the --help message.
1376 #
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381 \`configure' configures gross 1.0-svn to adapt to many kinds of systems.
1382
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1387
1388 Defaults for the options are specified in brackets.
1389
1390 Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1400
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1406
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1411
1412 For better control, use the options below.
1413
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/gross]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434 _ACEOF
1435
1436 cat <<\_ACEOF
1437
1438 Program names:
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442
1443 System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 --target=TARGET configure for building compilers for TARGET [HOST]
1447 _ACEOF
1448 fi
1449
1450 if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of gross 1.0-svn:";;
1453 esac
1454 cat <<\_ACEOF
1455
1456 Optional Features:
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --disable-dependency-tracking speeds up one-time build
1460 --enable-dependency-tracking do not reject slow dependency extractors
1461 --enable-shared[=PKGS] build shared libraries [default=yes]
1462 --enable-static[=PKGS] build static libraries [default=yes]
1463 --enable-fast-install[=PKGS]
1464 optimize for fast installation [default=yes]
1465 --disable-libtool-lock avoid locking (might break parallel builds)
1466 --disable-dnsbl Disable dnsbl checking
1467 --enable-milter Enable milter
1468
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1473 --with-pic try to use only PIC/non-PIC objects [default=use
1474 both]
1475
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 CPP C preprocessor
1485
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1488
1489 _ACEOF
1490 ac_status=$?
1491 fi
1492
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" || continue
1497 ac_builddir=.
1498
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *)
1502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1514
1515 case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1539 else
1540 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1543 done
1544 fi
1545
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548 cat <<\_ACEOF
1549 gross configure 1.0-svn
1550 generated by GNU Autoconf 2.61
1551
1552 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1553 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1558 fi
1559 cat >config.log <<_ACEOF
1560 This file contains any messages produced by compilers while
1561 running configure, to aid debugging if configure makes a mistake.
1562
1563 It was created by gross $as_me 1.0-svn, which was
1564 generated by GNU Autoconf 2.61. Invocation command line was
1565
1566 $ $0 $@
1567
1568 _ACEOF
1569 exec 5>>config.log
1570 {
1571 cat <<_ASUNAME
1572 ## --------- ##
1573 ## Platform. ##
1574 ## --------- ##
1575
1576 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1577 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1578 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1579 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1580 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1581
1582 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1583 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1584
1585 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1586 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1587 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1588 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1589 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1590 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1591 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1592
1593 _ASUNAME
1594
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 for as_dir in $PATH
1597 do
1598 IFS=$as_save_IFS
1599 test -z "$as_dir" && as_dir=.
1600 echo "PATH: $as_dir"
1601 done
1602 IFS=$as_save_IFS
1603
1604 } >&5
1605
1606 cat >&5 <<_ACEOF
1607
1608
1609 ## ----------- ##
1610 ## Core tests. ##
1611 ## ----------- ##
1612
1613 _ACEOF
1614
1615
1616 # Keep a trace of the command line.
1617 # Strip out --no-create and --no-recursion so they do not pile up.
1618 # Strip out --silent because we don't want to record it for future runs.
1619 # Also quote any args containing shell meta-characters.
1620 # Make two passes to allow for proper duplicate-argument suppression.
1621 ac_configure_args=
1622 ac_configure_args0=
1623 ac_configure_args1=
1624 ac_must_keep_next=false
1625 for ac_pass in 1 2
1626 do
1627 for ac_arg
1628 do
1629 case $ac_arg in
1630 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1632 | -silent | --silent | --silen | --sile | --sil)
1633 continue ;;
1634 *\'*)
1635 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1636 esac
1637 case $ac_pass in
1638 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1639 2)
1640 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1641 if test $ac_must_keep_next = true; then
1642 ac_must_keep_next=false # Got value, back to normal.
1643 else
1644 case $ac_arg in
1645 *=* | --config-cache | -C | -disable-* | --disable-* \
1646 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1647 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1648 | -with-* | --with-* | -without-* | --without-* | --x)
1649 case "$ac_configure_args0 " in
1650 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1651 esac
1652 ;;
1653 -* ) ac_must_keep_next=true ;;
1654 esac
1655 fi
1656 ac_configure_args="$ac_configure_args '$ac_arg'"
1657 ;;
1658 esac
1659 done
1660 done
1661 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1662 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1663
1664 # When interrupted or exit'd, cleanup temporary files, and complete
1665 # config.log. We remove comments because anyway the quotes in there
1666 # would cause problems or look ugly.
1667 # WARNING: Use '\'' to represent an apostrophe within the trap.
1668 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1669 trap 'exit_status=$?
1670 # Save into config.log some information that might help in debugging.
1671 {
1672 echo
1673
1674 cat <<\_ASBOX
1675 ## ---------------- ##
1676 ## Cache variables. ##
1677 ## ---------------- ##
1678 _ASBOX
1679 echo
1680 # The following way of writing the cache mishandles newlines in values,
1681 (
1682 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1683 eval ac_val=\$$ac_var
1684 case $ac_val in #(
1685 *${as_nl}*)
1686 case $ac_var in #(
1687 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1688 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1689 esac
1690 case $ac_var in #(
1691 _ | IFS | as_nl) ;; #(
1692 *) $as_unset $ac_var ;;
1693 esac ;;
1694 esac
1695 done
1696 (set) 2>&1 |
1697 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1698 *${as_nl}ac_space=\ *)
1699 sed -n \
1700 "s/'\''/'\''\\\\'\'''\''/g;
1701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1702 ;; #(
1703 *)
1704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1705 ;;
1706 esac |
1707 sort
1708 )
1709 echo
1710
1711 cat <<\_ASBOX
1712 ## ----------------- ##
1713 ## Output variables. ##
1714 ## ----------------- ##
1715 _ASBOX
1716 echo
1717 for ac_var in $ac_subst_vars
1718 do
1719 eval ac_val=\$$ac_var
1720 case $ac_val in
1721 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1722 esac
1723 echo "$ac_var='\''$ac_val'\''"
1724 done | sort
1725 echo
1726
1727 if test -n "$ac_subst_files"; then
1728 cat <<\_ASBOX
1729 ## ------------------- ##
1730 ## File substitutions. ##
1731 ## ------------------- ##
1732 _ASBOX
1733 echo
1734 for ac_var in $ac_subst_files
1735 do
1736 eval ac_val=\$$ac_var
1737 case $ac_val in
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 esac
1740 echo "$ac_var='\''$ac_val'\''"
1741 done | sort
1742 echo
1743 fi
1744
1745 if test -s confdefs.h; then
1746 cat <<\_ASBOX
1747 ## ----------- ##
1748 ## confdefs.h. ##
1749 ## ----------- ##
1750 _ASBOX
1751 echo
1752 cat confdefs.h
1753 echo
1754 fi
1755 test "$ac_signal" != 0 &&
1756 echo "$as_me: caught signal $ac_signal"
1757 echo "$as_me: exit $exit_status"
1758 } >&5
1759 rm -f core *.core core.conftest.* &&
1760 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1761 exit $exit_status
1762 ' 0
1763 for ac_signal in 1 2 13 15; do
1764 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1765 done
1766 ac_signal=0
1767
1768 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1769 rm -f -r conftest* confdefs.h
1770
1771 # Predefined preprocessor variables.
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_NAME "$PACKAGE_NAME"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1785 _ACEOF
1786
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_STRING "$PACKAGE_STRING"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1795 _ACEOF
1796
1797
1798 # Let the site file select an alternate cache file if it wants to.
1799 # Prefer explicitly selected file to automatically selected ones.
1800 if test -n "$CONFIG_SITE"; then
1801 set x "$CONFIG_SITE"
1802 elif test "x$prefix" != xNONE; then
1803 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1804 else
1805 set x "$ac_default_prefix/share/config.site" \
1806 "$ac_default_prefix/etc/config.site"
1807 fi
1808 shift
1809 for ac_site_file
1810 do
1811 if test -r "$ac_site_file"; then
1812 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1813 echo "$as_me: loading site script $ac_site_file" >&6;}
1814 sed 's/^/| /' "$ac_site_file" >&5
1815 . "$ac_site_file"
1816 fi
1817 done
1818
1819 if test -r "$cache_file"; then
1820 # Some versions of bash will fail to source /dev/null (special
1821 # files actually), so we avoid doing that.
1822 if test -f "$cache_file"; then
1823 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1824 echo "$as_me: loading cache $cache_file" >&6;}
1825 case $cache_file in
1826 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1827 *) . "./$cache_file";;
1828 esac
1829 fi
1830 else
1831 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1832 echo "$as_me: creating cache $cache_file" >&6;}
1833 >$cache_file
1834 fi
1835
1836 # Check that the precious variables saved in the cache have kept the same
1837 # value.
1838 ac_cache_corrupted=false
1839 for ac_var in $ac_precious_vars; do
1840 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1841 eval ac_new_set=\$ac_env_${ac_var}_set
1842 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1843 eval ac_new_val=\$ac_env_${ac_var}_value
1844 case $ac_old_set,$ac_new_set in
1845 set,)
1846 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1847 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1848 ac_cache_corrupted=: ;;
1849 ,set)
1850 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1851 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1852 ac_cache_corrupted=: ;;
1853 ,);;
1854 *)
1855 if test "x$ac_old_val" != "x$ac_new_val"; then
1856 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1857 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1858 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1859 echo "$as_me: former value: $ac_old_val" >&2;}
1860 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1861 echo "$as_me: current value: $ac_new_val" >&2;}
1862 ac_cache_corrupted=:
1863 fi;;
1864 esac
1865 # Pass precious variables to config.status.
1866 if test "$ac_new_set" = set; then
1867 case $ac_new_val in
1868 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1869 *) ac_arg=$ac_var=$ac_new_val ;;
1870 esac
1871 case " $ac_configure_args " in
1872 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1873 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1874 esac
1875 fi
1876 done
1877 if $ac_cache_corrupted; then
1878 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1879 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1880 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1881 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1882 { (exit 1); exit 1; }; }
1883 fi
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909 ac_ext=c
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914
1915
1916 ac_aux_dir=
1917 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1918 if test -f "$ac_dir/install-sh"; then
1919 ac_aux_dir=$ac_dir
1920 ac_install_sh="$ac_aux_dir/install-sh -c"
1921 break
1922 elif test -f "$ac_dir/install.sh"; then
1923 ac_aux_dir=$ac_dir
1924 ac_install_sh="$ac_aux_dir/install.sh -c"
1925 break
1926 elif test -f "$ac_dir/shtool"; then
1927 ac_aux_dir=$ac_dir
1928 ac_install_sh="$ac_aux_dir/shtool install -c"
1929 break
1930 fi
1931 done
1932 if test -z "$ac_aux_dir"; then
1933 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1934 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1935 { (exit 1); exit 1; }; }
1936 fi
1937
1938 # These three variables are undocumented and unsupported,
1939 # and are intended to be withdrawn in a future Autoconf release.
1940 # They can cause serious problems if a builder's source tree is in a directory
1941 # whose full name contains unusual characters.
1942 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1943 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1944 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1945
1946
1947 # Make sure we can run config.sub.
1948 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1949 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1950 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1951 { (exit 1); exit 1; }; }
1952
1953 { echo "$as_me:$LINENO: checking build system type" >&5
1954 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1955 if test "${ac_cv_build+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958 ac_build_alias=$build_alias
1959 test "x$ac_build_alias" = x &&
1960 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1961 test "x$ac_build_alias" = x &&
1962 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1963 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1964 { (exit 1); exit 1; }; }
1965 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1966 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1967 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1968 { (exit 1); exit 1; }; }
1969
1970 fi
1971 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1972 echo "${ECHO_T}$ac_cv_build" >&6; }
1973 case $ac_cv_build in
1974 *-*-*) ;;
1975 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1976 echo "$as_me: error: invalid value of canonical build" >&2;}
1977 { (exit 1); exit 1; }; };;
1978 esac
1979 build=$ac_cv_build
1980 ac_save_IFS=$IFS; IFS='-'
1981 set x $ac_cv_build
1982 shift
1983 build_cpu=$1
1984 build_vendor=$2
1985 shift; shift
1986 # Remember, the first character of IFS is used to create $*,
1987 # except with old shells:
1988 build_os=$*
1989 IFS=$ac_save_IFS
1990 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1991
1992
1993 { echo "$as_me:$LINENO: checking host system type" >&5
1994 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1995 if test "${ac_cv_host+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998 if test "x$host_alias" = x; then
1999 ac_cv_host=$ac_cv_build
2000 else
2001 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2002 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2003 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2004 { (exit 1); exit 1; }; }
2005 fi
2006
2007 fi
2008 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2009 echo "${ECHO_T}$ac_cv_host" >&6; }
2010 case $ac_cv_host in
2011 *-*-*) ;;
2012 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2013 echo "$as_me: error: invalid value of canonical host" >&2;}
2014 { (exit 1); exit 1; }; };;
2015 esac
2016 host=$ac_cv_host
2017 ac_save_IFS=$IFS; IFS='-'
2018 set x $ac_cv_host
2019 shift
2020 host_cpu=$1
2021 host_vendor=$2
2022 shift; shift
2023 # Remember, the first character of IFS is used to create $*,
2024 # except with old shells:
2025 host_os=$*
2026 IFS=$ac_save_IFS
2027 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2028
2029
2030 { echo "$as_me:$LINENO: checking target system type" >&5
2031 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2032 if test "${ac_cv_target+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035 if test "x$target_alias" = x; then
2036 ac_cv_target=$ac_cv_host
2037 else
2038 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2039 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2040 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2041 { (exit 1); exit 1; }; }
2042 fi
2043
2044 fi
2045 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2046 echo "${ECHO_T}$ac_cv_target" >&6; }
2047 case $ac_cv_target in
2048 *-*-*) ;;
2049 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2050 echo "$as_me: error: invalid value of canonical target" >&2;}
2051 { (exit 1); exit 1; }; };;
2052 esac
2053 target=$ac_cv_target
2054 ac_save_IFS=$IFS; IFS='-'
2055 set x $ac_cv_target
2056 shift
2057 target_cpu=$1
2058 target_vendor=$2
2059 shift; shift
2060 # Remember, the first character of IFS is used to create $*,
2061 # except with old shells:
2062 target_os=$*
2063 IFS=$ac_save_IFS
2064 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2065
2066
2067 # The aliases save the names the user supplied, while $host etc.
2068 # will get canonicalized.
2069 test -n "$target_alias" &&
2070 test "$program_prefix$program_suffix$program_transform_name" = \
2071 NONENONEs,x,x, &&
2072 program_prefix=${target_alias}-
2073 am__api_version='1.10'
2074
2075 # Find a good install program. We prefer a C program (faster),
2076 # so one script is as good as another. But avoid the broken or
2077 # incompatible versions:
2078 # SysV /etc/install, /usr/sbin/install
2079 # SunOS /usr/etc/install
2080 # IRIX /sbin/install
2081 # AIX /bin/install
2082 # AmigaOS /C/install, which installs bootblocks on floppy discs
2083 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2084 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2085 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2086 # OS/2's system install, which has a completely different semantic
2087 # ./install, which can be erroneously created by make from ./install.sh.
2088 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2089 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2090 if test -z "$INSTALL"; then
2091 if test "${ac_cv_path_install+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 # Account for people who put trailing slashes in PATH elements.
2100 case $as_dir/ in
2101 ./ | .// | /cC/* | \
2102 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2103 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2104 /usr/ucb/* ) ;;
2105 *)
2106 # OSF1 and SCO ODT 3.0 have their own names for install.
2107 # Don't use installbsd from OSF since it installs stuff as root
2108 # by default.
2109 for ac_prog in ginstall scoinst install; do
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2112 if test $ac_prog = install &&
2113 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2114 # AIX install. It has an incompatible calling convention.
2115 :
2116 elif test $ac_prog = install &&
2117 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2118 # program-specific install script used by HP pwplus--don't use.
2119 :
2120 else
2121 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2122 break 3
2123 fi
2124 fi
2125 done
2126 done
2127 ;;
2128 esac
2129 done
2130 IFS=$as_save_IFS
2131
2132
2133 fi
2134 if test "${ac_cv_path_install+set}" = set; then
2135 INSTALL=$ac_cv_path_install
2136 else
2137 # As a last resort, use the slow shell script. Don't cache a
2138 # value for INSTALL within a source directory, because that will
2139 # break other packages using the cache if that directory is
2140 # removed, or if the value is a relative name.
2141 INSTALL=$ac_install_sh
2142 fi
2143 fi
2144 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2145 echo "${ECHO_T}$INSTALL" >&6; }
2146
2147 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2148 # It thinks the first close brace ends the variable substitution.
2149 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2150
2151 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2152
2153 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2154
2155 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2156 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2157 # Just in case
2158 sleep 1
2159 echo timestamp > conftest.file
2160 # Do `set' in a subshell so we don't clobber the current shell's
2161 # arguments. Must try -L first in case configure is actually a
2162 # symlink; some systems play weird games with the mod time of symlinks
2163 # (eg FreeBSD returns the mod time of the symlink's containing
2164 # directory).
2165 if (
2166 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2167 if test "$*" = "X"; then
2168 # -L didn't work.
2169 set X `ls -t $srcdir/configure conftest.file`
2170 fi
2171 rm -f conftest.file
2172 if test "$*" != "X $srcdir/configure conftest.file" \
2173 && test "$*" != "X conftest.file $srcdir/configure"; then
2174
2175 # If neither matched, then we have a broken ls. This can happen
2176 # if, for instance, CONFIG_SHELL is bash and it inherits a
2177 # broken ls alias from the environment. This has actually
2178 # happened. Such a system could not be considered "sane".
2179 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2180 alias in your environment" >&5
2181 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2182 alias in your environment" >&2;}
2183 { (exit 1); exit 1; }; }
2184 fi
2185
2186 test "$2" = conftest.file
2187 )
2188 then
2189 # Ok.
2190 :
2191 else
2192 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2193 Check your system clock" >&5
2194 echo "$as_me: error: newly created file is older than distributed files!
2195 Check your system clock" >&2;}
2196 { (exit 1); exit 1; }; }
2197 fi
2198 { echo "$as_me:$LINENO: result: yes" >&5
2199 echo "${ECHO_T}yes" >&6; }
2200 test "$program_prefix" != NONE &&
2201 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2202 # Use a double $ so make ignores it.
2203 test "$program_suffix" != NONE &&
2204 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2205 # Double any \ or $. echo might interpret backslashes.
2206 # By default was `s,x,x', remove it if useless.
2207 cat <<\_ACEOF >conftest.sed
2208 s/[\\$]/&&/g;s/;s,x,x,$//
2209 _ACEOF
2210 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2211 rm -f conftest.sed
2212
2213 # expand $ac_aux_dir to an absolute path
2214 am_aux_dir=`cd $ac_aux_dir && pwd`
2215
2216 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2217 # Use eval to expand $SHELL
2218 if eval "$MISSING --run true"; then
2219 am_missing_run="$MISSING --run "
2220 else
2221 am_missing_run=
2222 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2223 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2224 fi
2225
2226 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2227 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2228 if test -z "$MKDIR_P"; then
2229 if test "${ac_cv_path_mkdir+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2234 do
2235 IFS=$as_save_IFS
2236 test -z "$as_dir" && as_dir=.
2237 for ac_prog in mkdir gmkdir; do
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2240 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2241 'mkdir (GNU coreutils) '* | \
2242 'mkdir (coreutils) '* | \
2243 'mkdir (fileutils) '4.1*)
2244 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2245 break 3;;
2246 esac
2247 done
2248 done
2249 done
2250 IFS=$as_save_IFS
2251
2252 fi
2253
2254 if test "${ac_cv_path_mkdir+set}" = set; then
2255 MKDIR_P="$ac_cv_path_mkdir -p"
2256 else
2257 # As a last resort, use the slow shell script. Don't cache a
2258 # value for MKDIR_P within a source directory, because that will
2259 # break other packages using the cache if that directory is
2260 # removed, or if the value is a relative name.
2261 test -d ./--version && rmdir ./--version
2262 MKDIR_P="$ac_install_sh -d"
2263 fi
2264 fi
2265 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2266 echo "${ECHO_T}$MKDIR_P" >&6; }
2267
2268 mkdir_p="$MKDIR_P"
2269 case $mkdir_p in
2270 [\\/$]* | ?:[\\/]*) ;;
2271 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2272 esac
2273
2274 for ac_prog in gawk mawk nawk awk
2275 do
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_AWK+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283 if test -n "$AWK"; then
2284 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289 IFS=$as_save_IFS
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_AWK="$ac_prog"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 break 2
2296 fi
2297 done
2298 done
2299 IFS=$as_save_IFS
2300
2301 fi
2302 fi
2303 AWK=$ac_cv_prog_AWK
2304 if test -n "$AWK"; then
2305 { echo "$as_me:$LINENO: result: $AWK" >&5
2306 echo "${ECHO_T}$AWK" >&6; }
2307 else
2308 { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2310 fi
2311
2312
2313 test -n "$AWK" && break
2314 done
2315
2316 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2317 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2318 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2319 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 cat >conftest.make <<\_ACEOF
2323 SHELL = /bin/sh
2324 all:
2325 @echo '@@@%%%=$(MAKE)=@@@%%%'
2326 _ACEOF
2327 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2328 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2329 *@@@%%%=?*=@@@%%%*)
2330 eval ac_cv_prog_make_${ac_make}_set=yes;;
2331 *)
2332 eval ac_cv_prog_make_${ac_make}_set=no;;
2333 esac
2334 rm -f conftest.make
2335 fi
2336 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2337 { echo "$as_me:$LINENO: result: yes" >&5
2338 echo "${ECHO_T}yes" >&6; }
2339 SET_MAKE=
2340 else
2341 { echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6; }
2343 SET_MAKE="MAKE=${MAKE-make}"
2344 fi
2345
2346 rm -rf .tst 2>/dev/null
2347 mkdir .tst 2>/dev/null
2348 if test -d .tst; then
2349 am__leading_dot=.
2350 else
2351 am__leading_dot=_
2352 fi
2353 rmdir .tst 2>/dev/null
2354
2355 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2356 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2357 # is not polluted with repeated "-I."
2358 am__isrc=' -I$(srcdir)'
2359 # test to see if srcdir already configured
2360 if test -f $srcdir/config.status; then
2361 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2362 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2363 { (exit 1); exit 1; }; }
2364 fi
2365 fi
2366
2367 # test whether we have cygpath
2368 if test -z "$CYGPATH_W"; then
2369 if (cygpath --version) >/dev/null 2>/dev/null; then
2370 CYGPATH_W='cygpath -w'
2371 else
2372 CYGPATH_W=echo
2373 fi
2374 fi
2375
2376
2377 # Define the identity of the package.
2378 PACKAGE='gross'
2379 VERSION='1.0-svn'
2380
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE "$PACKAGE"
2384 _ACEOF
2385
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define VERSION "$VERSION"
2389 _ACEOF
2390
2391 # Some tools Automake needs.
2392
2393 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2394
2395
2396 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2397
2398
2399 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2400
2401
2402 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2403
2404
2405 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2406
2407 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2408
2409 # Installed binaries are usually stripped using `strip' when the user
2410 # run `make install-strip'. However `strip' might not be the right
2411 # tool to use in cross-compilation environments, therefore Automake
2412 # will honor the `STRIP' environment variable to overrule this program.
2413 if test "$cross_compiling" != no; then
2414 if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2416 set dummy ${ac_tool_prefix}strip; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_STRIP+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 if test -n "$STRIP"; then
2423 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2427 do
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2432 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2435 fi
2436 done
2437 done
2438 IFS=$as_save_IFS
2439
2440 fi
2441 fi
2442 STRIP=$ac_cv_prog_STRIP
2443 if test -n "$STRIP"; then
2444 { echo "$as_me:$LINENO: result: $STRIP" >&5
2445 echo "${ECHO_T}$STRIP" >&6; }
2446 else
2447 { echo "$as_me:$LINENO: result: no" >&5
2448 echo "${ECHO_T}no" >&6; }
2449 fi
2450
2451
2452 fi
2453 if test -z "$ac_cv_prog_STRIP"; then
2454 ac_ct_STRIP=$STRIP
2455 # Extract the first word of "strip", so it can be a program name with args.
2456 set dummy strip; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462 if test -n "$ac_ct_STRIP"; then
2463 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472 ac_cv_prog_ac_ct_STRIP="strip"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2475 fi
2476 done
2477 done
2478 IFS=$as_save_IFS
2479
2480 fi
2481 fi
2482 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2483 if test -n "$ac_ct_STRIP"; then
2484 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2485 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2486 else
2487 { echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6; }
2489 fi
2490
2491 if test "x$ac_ct_STRIP" = x; then
2492 STRIP=":"
2493 else
2494 case $cross_compiling:$ac_tool_warned in
2495 yes:)
2496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2497 whose name does not start with the host triplet. If you think this
2498 configuration is useful to you, please write to [email protected]." >&5
2499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2500 whose name does not start with the host triplet. If you think this
2501 configuration is useful to you, please write to [email protected]." >&2;}
2502 ac_tool_warned=yes ;;
2503 esac
2504 STRIP=$ac_ct_STRIP
2505 fi
2506 else
2507 STRIP="$ac_cv_prog_STRIP"
2508 fi
2509
2510 fi
2511 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2512
2513 # We need awk for the "check" target. The system "awk" is bad on
2514 # some platforms.
2515 # Always define AMTAR for backward compatibility.
2516
2517 AMTAR=${AMTAR-"${am_missing_run}tar"}
2518
2519 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2520
2521
2522
2523
2524
2525 ac_config_headers="$ac_config_headers config.h"
2526
2527
2528 CONFIGURE_LINE="$0 $*"
2529
2530 ac_ext=c
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535 if test -n "$ac_tool_prefix"; then
2536 for ac_prog in cc gcc
2537 do
2538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_CC+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 CC=$ac_cv_prog_CC
2566 if test -n "$CC"; then
2567 { echo "$as_me:$LINENO: result: $CC" >&5
2568 echo "${ECHO_T}$CC" >&6; }
2569 else
2570 { echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6; }
2572 fi
2573
2574
2575 test -n "$CC" && break
2576 done
2577 fi
2578 if test -z "$CC"; then
2579 ac_ct_CC=$CC
2580 for ac_prog in cc gcc
2581 do
2582 # Extract the first word of "$ac_prog", so it can be a program name with args.
2583 set dummy $ac_prog; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_ac_ct_CC="$ac_prog"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2602 fi
2603 done
2604 done
2605 IFS=$as_save_IFS
2606
2607 fi
2608 fi
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612 echo "${ECHO_T}$ac_ct_CC" >&6; }
2613 else
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2616 fi
2617
2618
2619 test -n "$ac_ct_CC" && break
2620 done
2621
2622 if test "x$ac_ct_CC" = x; then
2623 CC=""
2624 else
2625 case $cross_compiling:$ac_tool_warned in
2626 yes:)
2627 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2628 whose name does not start with the host triplet. If you think this
2629 configuration is useful to you, please write to [email protected]." >&5
2630 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2631 whose name does not start with the host triplet. If you think this
2632 configuration is useful to you, please write to [email protected]." >&2;}
2633 ac_tool_warned=yes ;;
2634 esac
2635 CC=$ac_ct_CC
2636 fi
2637 fi
2638
2639
2640 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2641 See \`config.log' for more details." >&5
2642 echo "$as_me: error: no acceptable C compiler found in \$PATH
2643 See \`config.log' for more details." >&2;}
2644 { (exit 1); exit 1; }; }
2645
2646 # Provide some information about the compiler.
2647 echo "$as_me:$LINENO: checking for C compiler version" >&5
2648 ac_compiler=`set X $ac_compile; echo $2`
2649 { (ac_try="$ac_compiler --version >&5"
2650 case "(($ac_try" in
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2653 esac
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655 (eval "$ac_compiler --version >&5") 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }
2659 { (ac_try="$ac_compiler -v >&5"
2660 case "(($ac_try" in
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2663 esac
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665 (eval "$ac_compiler -v >&5") 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }
2669 { (ac_try="$ac_compiler -V >&5"
2670 case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2673 esac
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compiler -V >&5") 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }
2679
2680 cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h. */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2686
2687 int
2688 main ()
2689 {
2690
2691 ;
2692 return 0;
2693 }
2694 _ACEOF
2695 ac_clean_files_save=$ac_clean_files
2696 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2697 # Try to create an executable without -o first, disregard a.out.
2698 # It will help us diagnose broken compilers, and finding out an intuition
2699 # of exeext.
2700 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2701 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2702 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2703 #
2704 # List of possible output files, starting from the most likely.
2705 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2706 # only as a last resort. b.out is created by i960 compilers.
2707 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2708 #
2709 # The IRIX 6 linker writes into existing files which may not be
2710 # executable, retaining their permissions. Remove them first so a
2711 # subsequent execution test works.
2712 ac_rmfiles=
2713 for ac_file in $ac_files
2714 do
2715 case $ac_file in
2716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2717 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2718 esac
2719 done
2720 rm -f $ac_rmfiles
2721
2722 if { (ac_try="$ac_link_default"
2723 case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_link_default") 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; then
2732 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2733 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2734 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2735 # so that the user can short-circuit this test for compilers unknown to
2736 # Autoconf.
2737 for ac_file in $ac_files ''
2738 do
2739 test -f "$ac_file" || continue
2740 case $ac_file in
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2742 ;;
2743 [ab].out )
2744 # We found the default executable, but exeext='' is most
2745 # certainly right.
2746 break;;
2747 *.* )
2748 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2749 then :; else
2750 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2751 fi
2752 # We set ac_cv_exeext here because the later test for it is not
2753 # safe: cross compilers may not add the suffix if given an `-o'
2754 # argument, so we may need to know it at that point already.
2755 # Even if this section looks crufty: it has the advantage of
2756 # actually working.
2757 break;;
2758 * )
2759 break;;
2760 esac
2761 done
2762 test "$ac_cv_exeext" = no && ac_cv_exeext=
2763
2764 else
2765 ac_file=''
2766 fi
2767
2768 { echo "$as_me:$LINENO: result: $ac_file" >&5
2769 echo "${ECHO_T}$ac_file" >&6; }
2770 if test -z "$ac_file"; then
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2773
2774 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2775 See \`config.log' for more details." >&5
2776 echo "$as_me: error: C compiler cannot create executables
2777 See \`config.log' for more details." >&2;}
2778 { (exit 77); exit 77; }; }
2779 fi
2780
2781 ac_exeext=$ac_cv_exeext
2782
2783 # Check that the compiler produces executables we can run. If not, either
2784 # the compiler is broken, or we cross compile.
2785 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2786 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2787 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2788 # If not cross compiling, check that we can run a simple program.
2789 if test "$cross_compiling" != yes; then
2790 if { ac_try='./$ac_file'
2791 { (case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794 esac
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796 (eval "$ac_try") 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 cross_compiling=no
2801 else
2802 if test "$cross_compiling" = maybe; then
2803 cross_compiling=yes
2804 else
2805 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2806 If you meant to cross compile, use \`--host'.
2807 See \`config.log' for more details." >&5
2808 echo "$as_me: error: cannot run C compiled programs.
2809 If you meant to cross compile, use \`--host'.
2810 See \`config.log' for more details." >&2;}
2811 { (exit 1); exit 1; }; }
2812 fi
2813 fi
2814 fi
2815 { echo "$as_me:$LINENO: result: yes" >&5
2816 echo "${ECHO_T}yes" >&6; }
2817
2818 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2819 ac_clean_files=$ac_clean_files_save
2820 # Check that the compiler produces executables we can run. If not, either
2821 # the compiler is broken, or we cross compile.
2822 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2823 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2824 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2825 echo "${ECHO_T}$cross_compiling" >&6; }
2826
2827 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2828 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2829 if { (ac_try="$ac_link"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2835 (eval "$ac_link") 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; then
2839 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2840 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2841 # work properly (i.e., refer to `conftest.exe'), while it won't with
2842 # `rm'.
2843 for ac_file in conftest.exe conftest conftest.*; do
2844 test -f "$ac_file" || continue
2845 case $ac_file in
2846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2847 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 break;;
2849 * ) break;;
2850 esac
2851 done
2852 else
2853 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2854 See \`config.log' for more details." >&5
2855 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2856 See \`config.log' for more details." >&2;}
2857 { (exit 1); exit 1; }; }
2858 fi
2859
2860 rm -f conftest$ac_cv_exeext
2861 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2862 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2863
2864 rm -f conftest.$ac_ext
2865 EXEEXT=$ac_cv_exeext
2866 ac_exeext=$EXEEXT
2867 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2868 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2869 if test "${ac_cv_objext+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h. */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878
2879 int
2880 main ()
2881 {
2882
2883 ;
2884 return 0;
2885 }
2886 _ACEOF
2887 rm -f conftest.o conftest.obj
2888 if { (ac_try="$ac_compile"
2889 case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compile") 2>&5
2895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; then
2898 for ac_file in conftest.o conftest.obj conftest.*; do
2899 test -f "$ac_file" || continue;
2900 case $ac_file in
2901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2902 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2903 break;;
2904 esac
2905 done
2906 else
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.$ac_ext >&5
2909
2910 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2911 See \`config.log' for more details." >&5
2912 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2913 See \`config.log' for more details." >&2;}
2914 { (exit 1); exit 1; }; }
2915 fi
2916
2917 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2918 fi
2919 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2920 echo "${ECHO_T}$ac_cv_objext" >&6; }
2921 OBJEXT=$ac_cv_objext
2922 ac_objext=$OBJEXT
2923 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2924 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2925 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 else
2928 cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h. */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2934
2935 int
2936 main ()
2937 {
2938 #ifndef __GNUC__
2939 choke me
2940 #endif
2941
2942 ;
2943 return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } && {
2960 test -z "$ac_c_werror_flag" ||
2961 test ! -s conftest.err
2962 } && test -s conftest.$ac_objext; then
2963 ac_compiler_gnu=yes
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968 ac_compiler_gnu=no
2969 fi
2970
2971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2973
2974 fi
2975 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2976 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2977 GCC=`test $ac_compiler_gnu = yes && echo yes`
2978 ac_test_CFLAGS=${CFLAGS+set}
2979 ac_save_CFLAGS=$CFLAGS
2980 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2981 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2982 if test "${ac_cv_prog_cc_g+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985 ac_save_c_werror_flag=$ac_c_werror_flag
2986 ac_c_werror_flag=yes
2987 ac_cv_prog_cc_g=no
2988 CFLAGS="-g"
2989 cat >conftest.$ac_ext <<_ACEOF
2990 /* confdefs.h. */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
2995
2996 int
2997 main ()
2998 {
2999
3000 ;
3001 return 0;
3002 }
3003 _ACEOF
3004 rm -f conftest.$ac_objext
3005 if { (ac_try="$ac_compile"
3006 case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_compile") 2>conftest.er1
3012 ac_status=$?
3013 grep -v '^ *+' conftest.er1 >conftest.err
3014 rm -f conftest.er1
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } && {
3018 test -z "$ac_c_werror_flag" ||
3019 test ! -s conftest.err
3020 } && test -s conftest.$ac_objext; then
3021 ac_cv_prog_cc_g=yes
3022 else
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 CFLAGS=""
3027 cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h. */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3033
3034 int
3035 main ()
3036 {
3037
3038 ;
3039 return 0;
3040 }
3041 _ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3044 case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } && {
3056 test -z "$ac_c_werror_flag" ||
3057 test ! -s conftest.err
3058 } && test -s conftest.$ac_objext; then
3059 :
3060 else
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064 ac_c_werror_flag=$ac_save_c_werror_flag
3065 CFLAGS="-g"
3066 cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h. */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3072
3073 int
3074 main ()
3075 {
3076
3077 ;
3078 return 0;
3079 }
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (ac_try="$ac_compile"
3083 case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
3089 ac_status=$?
3090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); } && {
3095 test -z "$ac_c_werror_flag" ||
3096 test ! -s conftest.err
3097 } && test -s conftest.$ac_objext; then
3098 ac_cv_prog_cc_g=yes
3099 else
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103
3104 fi
3105
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 fi
3108
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 fi
3111
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 ac_c_werror_flag=$ac_save_c_werror_flag
3114 fi
3115 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3116 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3117 if test "$ac_test_CFLAGS" = set; then
3118 CFLAGS=$ac_save_CFLAGS
3119 elif test $ac_cv_prog_cc_g = yes; then
3120 if test "$GCC" = yes; then
3121 CFLAGS="-g -O2"
3122 else
3123 CFLAGS="-g"
3124 fi
3125 else
3126 if test "$GCC" = yes; then
3127 CFLAGS="-O2"
3128 else
3129 CFLAGS=
3130 fi
3131 fi
3132 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3133 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3134 if test "${ac_cv_prog_cc_c89+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 else
3137 ac_cv_prog_cc_c89=no
3138 ac_save_CC=$CC
3139 cat >conftest.$ac_ext <<_ACEOF
3140 /* confdefs.h. */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3145 #include <stdarg.h>
3146 #include <stdio.h>
3147 #include <sys/types.h>
3148 #include <sys/stat.h>
3149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3150 struct buf { int x; };
3151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3152 static char *e (p, i)
3153 char **p;
3154 int i;
3155 {
3156 return p[i];
3157 }
3158 static char *f (char * (*g) (char **, int), char **p, ...)
3159 {
3160 char *s;
3161 va_list v;
3162 va_start (v,p);
3163 s = g (p, va_arg (v,int));
3164 va_end (v);
3165 return s;
3166 }
3167
3168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3169 function prototypes and stuff, but not '\xHH' hex character constants.
3170 These don't provoke an error unfortunately, instead are silently treated
3171 as 'x'. The following induces an error, until -std is added to get
3172 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3173 array size at least. It's necessary to write '\x00'==0 to get something
3174 that's true only with -std. */
3175 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3176
3177 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3178 inside strings and character constants. */
3179 #define FOO(x) 'x'
3180 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3181
3182 int test (int i, double x);
3183 struct s1 {int (*f) (int a);};
3184 struct s2 {int (*f) (double a);};
3185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3186 int argc;
3187 char **argv;
3188 int
3189 main ()
3190 {
3191 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3192 ;
3193 return 0;
3194 }
3195 _ACEOF
3196 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3197 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3198 do
3199 CC="$ac_save_CC $ac_arg"
3200 rm -f conftest.$ac_objext
3201 if { (ac_try="$ac_compile"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compile") 2>conftest.er1
3208 ac_status=$?
3209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } && {
3214 test -z "$ac_c_werror_flag" ||
3215 test ! -s conftest.err
3216 } && test -s conftest.$ac_objext; then
3217 ac_cv_prog_cc_c89=$ac_arg
3218 else
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222
3223 fi
3224
3225 rm -f core conftest.err conftest.$ac_objext
3226 test "x$ac_cv_prog_cc_c89" != "xno" && break
3227 done
3228 rm -f conftest.$ac_ext
3229 CC=$ac_save_CC
3230
3231 fi
3232 # AC_CACHE_VAL
3233 case "x$ac_cv_prog_cc_c89" in
3234 x)
3235 { echo "$as_me:$LINENO: result: none needed" >&5
3236 echo "${ECHO_T}none needed" >&6; } ;;
3237 xno)
3238 { echo "$as_me:$LINENO: result: unsupported" >&5
3239 echo "${ECHO_T}unsupported" >&6; } ;;
3240 *)
3241 CC="$CC $ac_cv_prog_cc_c89"
3242 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3243 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3244 esac
3245
3246
3247 ac_ext=c
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 DEPDIR="${am__leading_dot}deps"
3253
3254 ac_config_commands="$ac_config_commands depfiles"
3255
3256
3257 am_make=${MAKE-make}
3258 cat > confinc << 'END'
3259 am__doit:
3260 @echo done
3261 .PHONY: am__doit
3262 END
3263 # If we don't find an include directive, just comment out the code.
3264 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3265 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3266 am__include="#"
3267 am__quote=
3268 _am_result=none
3269 # First try GNU make style include.
3270 echo "include confinc" > confmf
3271 # We grep out `Entering directory' and `Leaving directory'
3272 # messages which can occur if `w' ends up in MAKEFLAGS.
3273 # In particular we don't look at `^make:' because GNU make might
3274 # be invoked under some other name (usually "gmake"), in which
3275 # case it prints its new name instead of `make'.
3276 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3277 am__include=include
3278 am__quote=
3279 _am_result=GNU
3280 fi
3281 # Now try BSD make style include.
3282 if test "$am__include" = "#"; then
3283 echo '.include "confinc"' > confmf
3284 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3285 am__include=.include
3286 am__quote="\""
3287 _am_result=BSD
3288 fi
3289 fi
3290
3291
3292 { echo "$as_me:$LINENO: result: $_am_result" >&5
3293 echo "${ECHO_T}$_am_result" >&6; }
3294 rm -f confinc confmf
3295
3296 # Check whether --enable-dependency-tracking was given.
3297 if test "${enable_dependency_tracking+set}" = set; then
3298 enableval=$enable_dependency_tracking;
3299 fi
3300
3301 if test "x$enable_dependency_tracking" != xno; then
3302 am_depcomp="$ac_aux_dir/depcomp"
3303 AMDEPBACKSLASH='\'
3304 fi
3305 if test "x$enable_dependency_tracking" != xno; then
3306 AMDEP_TRUE=
3307 AMDEP_FALSE='#'
3308 else
3309 AMDEP_TRUE='#'
3310 AMDEP_FALSE=
3311 fi
3312
3313
3314
3315 depcc="$CC" am_compiler_list=
3316
3317 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3318 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3319 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3323 # We make a subdir and do the tests there. Otherwise we can end up
3324 # making bogus files that we don't know about and never remove. For
3325 # instance it was reported that on HP-UX the gcc test will end up
3326 # making a dummy file named `D' -- because `-MD' means `put the output
3327 # in D'.
3328 mkdir conftest.dir
3329 # Copy depcomp to subdir because otherwise we won't find it if we're
3330 # using a relative directory.
3331 cp "$am_depcomp" conftest.dir
3332 cd conftest.dir
3333 # We will build objects and dependencies in a subdirectory because
3334 # it helps to detect inapplicable dependency modes. For instance
3335 # both Tru64's cc and ICC support -MD to output dependencies as a
3336 # side effect of compilation, but ICC will put the dependencies in
3337 # the current directory while Tru64 will put them in the object
3338 # directory.
3339 mkdir sub
3340
3341 am_cv_CC_dependencies_compiler_type=none
3342 if test "$am_compiler_list" = ""; then
3343 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3344 fi
3345 for depmode in $am_compiler_list; do
3346 # Setup a source with many dependencies, because some compilers
3347 # like to wrap large dependency lists on column 80 (with \), and
3348 # we should not choose a depcomp mode which is confused by this.
3349 #
3350 # We need to recreate these files for each test, as the compiler may
3351 # overwrite some of them when testing with obscure command lines.
3352 # This happens at least with the AIX C compiler.
3353 : > sub/conftest.c
3354 for i in 1 2 3 4 5 6; do
3355 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3356 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3357 # Solaris 8's {/usr,}/bin/sh.
3358 touch sub/conftst$i.h
3359 done
3360 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3361
3362 case $depmode in
3363 nosideeffect)
3364 # after this tag, mechanisms are not by side-effect, so they'll
3365 # only be used when explicitly requested
3366 if test "x$enable_dependency_tracking" = xyes; then
3367 continue
3368 else
3369 break
3370 fi
3371 ;;
3372 none) break ;;
3373 esac
3374 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3375 # mode. It turns out that the SunPro C++ compiler does not properly
3376 # handle `-M -o', and we need to detect this.
3377 if depmode=$depmode \
3378 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3379 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3380 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3381 >/dev/null 2>conftest.err &&
3382 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3383 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3384 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3385 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3386 # icc doesn't choke on unknown options, it will just issue warnings
3387 # or remarks (even with -Werror). So we grep stderr for any message
3388 # that says an option was ignored or not supported.
3389 # When given -MP, icc 7.0 and 7.1 complain thusly:
3390 # icc: Command line warning: ignoring option '-M'; no argument required
3391 # The diagnosis changed in icc 8.0:
3392 # icc: Command line remark: option '-MP' not supported
3393 if (grep 'ignoring option' conftest.err ||
3394 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3395 am_cv_CC_dependencies_compiler_type=$depmode
3396 break
3397 fi
3398 fi
3399 done
3400
3401 cd ..
3402 rm -rf conftest.dir
3403 else
3404 am_cv_CC_dependencies_compiler_type=none
3405 fi
3406
3407 fi
3408 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3409 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3410 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3411
3412 if
3413 test "x$enable_dependency_tracking" != xno \
3414 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3415 am__fastdepCC_TRUE=
3416 am__fastdepCC_FALSE='#'
3417 else
3418 am__fastdepCC_TRUE='#'
3419 am__fastdepCC_FALSE=
3420 fi
3421
3422
3423 # Find a good install program. We prefer a C program (faster),
3424 # so one script is as good as another. But avoid the broken or
3425 # incompatible versions:
3426 # SysV /etc/install, /usr/sbin/install
3427 # SunOS /usr/etc/install
3428 # IRIX /sbin/install
3429 # AIX /bin/install
3430 # AmigaOS /C/install, which installs bootblocks on floppy discs
3431 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3432 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3433 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3434 # OS/2's system install, which has a completely different semantic
3435 # ./install, which can be erroneously created by make from ./install.sh.
3436 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3437 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3438 if test -z "$INSTALL"; then
3439 if test "${ac_cv_path_install+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445 IFS=$as_save_IFS
3446 test -z "$as_dir" && as_dir=.
3447 # Account for people who put trailing slashes in PATH elements.
3448 case $as_dir/ in
3449 ./ | .// | /cC/* | \
3450 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3451 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3452 /usr/ucb/* ) ;;
3453 *)
3454 # OSF1 and SCO ODT 3.0 have their own names for install.
3455 # Don't use installbsd from OSF since it installs stuff as root
3456 # by default.
3457 for ac_prog in ginstall scoinst install; do
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3460 if test $ac_prog = install &&
3461 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3462 # AIX install. It has an incompatible calling convention.
3463 :
3464 elif test $ac_prog = install &&
3465 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3466 # program-specific install script used by HP pwplus--don't use.
3467 :
3468 else
3469 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3470 break 3
3471 fi
3472 fi
3473 done
3474 done
3475 ;;
3476 esac
3477 done
3478 IFS=$as_save_IFS
3479
3480
3481 fi
3482 if test "${ac_cv_path_install+set}" = set; then
3483 INSTALL=$ac_cv_path_install
3484 else
3485 # As a last resort, use the slow shell script. Don't cache a
3486 # value for INSTALL within a source directory, because that will
3487 # break other packages using the cache if that directory is
3488 # removed, or if the value is a relative name.
3489 INSTALL=$ac_install_sh
3490 fi
3491 fi
3492 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3493 echo "${ECHO_T}$INSTALL" >&6; }
3494
3495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3496 # It thinks the first close brace ends the variable substitution.
3497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3498
3499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3500
3501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3502
3503
3504
3505
3506
3507 # Check whether --enable-shared was given.
3508 if test "${enable_shared+set}" = set; then
3509 enableval=$enable_shared; p=${PACKAGE-default}
3510 case $enableval in
3511 yes) enable_shared=yes ;;
3512 no) enable_shared=no ;;
3513 *)
3514 enable_shared=no
3515 # Look at the argument we got. We use all the common list separators.
3516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3517 for pkg in $enableval; do
3518 IFS="$lt_save_ifs"
3519 if test "X$pkg" = "X$p"; then
3520 enable_shared=yes
3521 fi
3522 done
3523 IFS="$lt_save_ifs"
3524 ;;
3525 esac
3526 else
3527 enable_shared=yes
3528 fi
3529
3530
3531 # Check whether --enable-static was given.
3532 if test "${enable_static+set}" = set; then
3533 enableval=$enable_static; p=${PACKAGE-default}
3534 case $enableval in
3535 yes) enable_static=yes ;;
3536 no) enable_static=no ;;
3537 *)
3538 enable_static=no
3539 # Look at the argument we got. We use all the common list separators.
3540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3541 for pkg in $enableval; do
3542 IFS="$lt_save_ifs"
3543 if test "X$pkg" = "X$p"; then
3544 enable_static=yes
3545 fi
3546 done
3547 IFS="$lt_save_ifs"
3548 ;;
3549 esac
3550 else
3551 enable_static=yes
3552 fi
3553
3554
3555 # Check whether --enable-fast-install was given.
3556 if test "${enable_fast_install+set}" = set; then
3557 enableval=$enable_fast_install; p=${PACKAGE-default}
3558 case $enableval in
3559 yes) enable_fast_install=yes ;;
3560 no) enable_fast_install=no ;;
3561 *)
3562 enable_fast_install=no
3563 # Look at the argument we got. We use all the common list separators.
3564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3565 for pkg in $enableval; do
3566 IFS="$lt_save_ifs"
3567 if test "X$pkg" = "X$p"; then
3568 enable_fast_install=yes
3569 fi
3570 done
3571 IFS="$lt_save_ifs"
3572 ;;
3573 esac
3574 else
3575 enable_fast_install=yes
3576 fi
3577
3578
3579 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3580 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3581 if test "${lt_cv_path_SED+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584 # Loop through the user's path and test for sed and gsed.
3585 # Then use that list of sed's as ones to test for truncation.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for lt_ac_prog in sed gsed; do
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3594 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3595 fi
3596 done
3597 done
3598 done
3599 lt_ac_max=0
3600 lt_ac_count=0
3601 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3602 # along with /bin/sed that truncates output.
3603 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3604 test ! -f $lt_ac_sed && continue
3605 cat /dev/null > conftest.in
3606 lt_ac_count=0
3607 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3608 # Check for GNU sed and select it if it is found.
3609 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3610 lt_cv_path_SED=$lt_ac_sed
3611 break
3612 fi
3613 while true; do
3614 cat conftest.in conftest.in >conftest.tmp
3615 mv conftest.tmp conftest.in
3616 cp conftest.in conftest.nl
3617 echo >>conftest.nl
3618 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3619 cmp -s conftest.out conftest.nl || break
3620 # 10000 chars as input seems more than enough
3621 test $lt_ac_count -gt 10 && break
3622 lt_ac_count=`expr $lt_ac_count + 1`
3623 if test $lt_ac_count -gt $lt_ac_max; then
3624 lt_ac_max=$lt_ac_count
3625 lt_cv_path_SED=$lt_ac_sed
3626 fi
3627 done
3628 done
3629
3630 fi
3631
3632 SED=$lt_cv_path_SED
3633 { echo "$as_me:$LINENO: result: $SED" >&5
3634 echo "${ECHO_T}$SED" >&6; }
3635
3636 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3637 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3638 if test "${ac_cv_path_GREP+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641 # Extract the first word of "grep ggrep" to use in msg output
3642 if test -z "$GREP"; then
3643 set dummy grep ggrep; ac_prog_name=$2
3644 if test "${ac_cv_path_GREP+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647 ac_path_GREP_found=false
3648 # Loop through the user's path and test for each of PROGNAME-LIST
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3651 do
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 for ac_prog in grep ggrep; do
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3657 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3658 # Check for GNU ac_path_GREP and select it if it is found.
3659 # Check for GNU $ac_path_GREP
3660 case `"$ac_path_GREP" --version 2>&1` in
3661 *GNU*)
3662 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3663 *)
3664 ac_count=0
3665 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3666 while :
3667 do
3668 cat "conftest.in" "conftest.in" >"conftest.tmp"
3669 mv "conftest.tmp" "conftest.in"
3670 cp "conftest.in" "conftest.nl"
3671 echo 'GREP' >> "conftest.nl"
3672 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3674 ac_count=`expr $ac_count + 1`
3675 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3676 # Best one so far, save it but keep looking for a better one
3677 ac_cv_path_GREP="$ac_path_GREP"
3678 ac_path_GREP_max=$ac_count
3679 fi
3680 # 10*(2^10) chars as input seems more than enough
3681 test $ac_count -gt 10 && break
3682 done
3683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3684 esac
3685
3686
3687 $ac_path_GREP_found && break 3
3688 done
3689 done
3690
3691 done
3692 IFS=$as_save_IFS
3693
3694
3695 fi
3696
3697 GREP="$ac_cv_path_GREP"
3698 if test -z "$GREP"; then
3699 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3700 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3701 { (exit 1); exit 1; }; }
3702 fi
3703
3704 else
3705 ac_cv_path_GREP=$GREP
3706 fi
3707
3708
3709 fi
3710 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3711 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3712 GREP="$ac_cv_path_GREP"
3713
3714
3715 { echo "$as_me:$LINENO: checking for egrep" >&5
3716 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3717 if test "${ac_cv_path_EGREP+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3721 then ac_cv_path_EGREP="$GREP -E"
3722 else
3723 # Extract the first word of "egrep" to use in msg output
3724 if test -z "$EGREP"; then
3725 set dummy egrep; ac_prog_name=$2
3726 if test "${ac_cv_path_EGREP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729 ac_path_EGREP_found=false
3730 # Loop through the user's path and test for each of PROGNAME-LIST
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3733 do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_prog in egrep; do
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3739 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3740 # Check for GNU ac_path_EGREP and select it if it is found.
3741 # Check for GNU $ac_path_EGREP
3742 case `"$ac_path_EGREP" --version 2>&1` in
3743 *GNU*)
3744 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3745 *)
3746 ac_count=0
3747 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3748 while :
3749 do
3750 cat "conftest.in" "conftest.in" >"conftest.tmp"
3751 mv "conftest.tmp" "conftest.in"
3752 cp "conftest.in" "conftest.nl"
3753 echo 'EGREP' >> "conftest.nl"
3754 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3756 ac_count=`expr $ac_count + 1`
3757 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3758 # Best one so far, save it but keep looking for a better one
3759 ac_cv_path_EGREP="$ac_path_EGREP"
3760 ac_path_EGREP_max=$ac_count
3761 fi
3762 # 10*(2^10) chars as input seems more than enough
3763 test $ac_count -gt 10 && break
3764 done
3765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3766 esac
3767
3768
3769 $ac_path_EGREP_found && break 3
3770 done
3771 done
3772
3773 done
3774 IFS=$as_save_IFS
3775
3776
3777 fi
3778
3779 EGREP="$ac_cv_path_EGREP"
3780 if test -z "$EGREP"; then
3781 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3782 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3783 { (exit 1); exit 1; }; }
3784 fi
3785
3786 else
3787 ac_cv_path_EGREP=$EGREP
3788 fi
3789
3790
3791 fi
3792 fi
3793 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3794 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3795 EGREP="$ac_cv_path_EGREP"
3796
3797
3798
3799 # Check whether --with-gnu-ld was given.
3800 if test "${with_gnu_ld+set}" = set; then
3801 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3802 else
3803 with_gnu_ld=no
3804 fi
3805
3806 ac_prog=ld
3807 if test "$GCC" = yes; then
3808 # Check if gcc -print-prog-name=ld gives a path.
3809 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3810 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3811 case $host in
3812 *-*-mingw*)
3813 # gcc leaves a trailing carriage return which upsets mingw
3814 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3815 *)
3816 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3817 esac
3818 case $ac_prog in
3819 # Accept absolute paths.
3820 [\\/]* | ?:[\\/]*)
3821 re_direlt='/[^/][^/]*/\.\./'
3822 # Canonicalize the pathname of ld
3823 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3824 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3825 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3826 done
3827 test -z "$LD" && LD="$ac_prog"
3828 ;;
3829 "")
3830 # If it fails, then pretend we aren't using GCC.
3831 ac_prog=ld
3832 ;;
3833 *)
3834 # If it is relative, then search for the first ld in PATH.
3835 with_gnu_ld=unknown
3836 ;;
3837 esac
3838 elif test "$with_gnu_ld" = yes; then
3839 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3840 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3841 else
3842 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3843 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3844 fi
3845 if test "${lt_cv_path_LD+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 if test -z "$LD"; then
3849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3850 for ac_dir in $PATH; do
3851 IFS="$lt_save_ifs"
3852 test -z "$ac_dir" && ac_dir=.
3853 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3854 lt_cv_path_LD="$ac_dir/$ac_prog"
3855 # Check to see if the program is GNU ld. I'd rather use --version,
3856 # but apparently some variants of GNU ld only accept -v.
3857 # Break only if it was the GNU/non-GNU ld that we prefer.
3858 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3859 *GNU* | *'with BFD'*)
3860 test "$with_gnu_ld" != no && break
3861 ;;
3862 *)
3863 test "$with_gnu_ld" != yes && break
3864 ;;
3865 esac
3866 fi
3867 done
3868 IFS="$lt_save_ifs"
3869 else
3870 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3871 fi
3872 fi
3873
3874 LD="$lt_cv_path_LD"
3875 if test -n "$LD"; then
3876 { echo "$as_me:$LINENO: result: $LD" >&5
3877 echo "${ECHO_T}$LD" >&6; }
3878 else
3879 { echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6; }
3881 fi
3882 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3883 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3884 { (exit 1); exit 1; }; }
3885 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3886 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3887 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3891 case `$LD -v 2>&1 </dev/null` in
3892 *GNU* | *'with BFD'*)
3893 lt_cv_prog_gnu_ld=yes
3894 ;;
3895 *)
3896 lt_cv_prog_gnu_ld=no
3897 ;;
3898 esac
3899 fi
3900 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3901 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3902 with_gnu_ld=$lt_cv_prog_gnu_ld
3903
3904
3905 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3906 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3907 if test "${lt_cv_ld_reload_flag+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910 lt_cv_ld_reload_flag='-r'
3911 fi
3912 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3913 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3914 reload_flag=$lt_cv_ld_reload_flag
3915 case $reload_flag in
3916 "" | " "*) ;;
3917 *) reload_flag=" $reload_flag" ;;
3918 esac
3919 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3920 case $host_os in
3921 darwin*)
3922 if test "$GCC" = yes; then
3923 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3924 else
3925 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3926 fi
3927 ;;
3928 esac
3929
3930 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3931 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3932 if test "${lt_cv_path_NM+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935 if test -n "$NM"; then
3936 # Let the user override the test.
3937 lt_cv_path_NM="$NM"
3938 else
3939 lt_nm_to_check="${ac_tool_prefix}nm"
3940 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3941 lt_nm_to_check="$lt_nm_to_check nm"
3942 fi
3943 for lt_tmp_nm in $lt_nm_to_check; do
3944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3945 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3946 IFS="$lt_save_ifs"
3947 test -z "$ac_dir" && ac_dir=.
3948 tmp_nm="$ac_dir/$lt_tmp_nm"
3949 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3950 # Check to see if the nm accepts a BSD-compat flag.
3951 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3952 # nm: unknown option "B" ignored
3953 # Tru64's nm complains that /dev/null is an invalid object file
3954 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3955 */dev/null* | *'Invalid file or object type'*)
3956 lt_cv_path_NM="$tmp_nm -B"
3957 break
3958 ;;
3959 *)
3960 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3961 */dev/null*)
3962 lt_cv_path_NM="$tmp_nm -p"
3963 break
3964 ;;
3965 *)
3966 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3967 continue # so that we can try to find one that supports BSD flags
3968 ;;
3969 esac
3970 ;;
3971 esac
3972 fi
3973 done
3974 IFS="$lt_save_ifs"
3975 done
3976 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3977 fi
3978 fi
3979 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3980 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3981 NM="$lt_cv_path_NM"
3982
3983 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3984 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3985 LN_S=$as_ln_s
3986 if test "$LN_S" = "ln -s"; then
3987 { echo "$as_me:$LINENO: result: yes" >&5
3988 echo "${ECHO_T}yes" >&6; }
3989 else
3990 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3991 echo "${ECHO_T}no, using $LN_S" >&6; }
3992 fi
3993
3994 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3995 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
3996 if test "${lt_cv_deplibs_check_method+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 lt_cv_file_magic_cmd='$MAGIC_CMD'
4000 lt_cv_file_magic_test_file=
4001 lt_cv_deplibs_check_method='unknown'
4002 # Need to set the preceding variable on all platforms that support
4003 # interlibrary dependencies.
4004 # 'none' -- dependencies not supported.
4005 # `unknown' -- same as none, but documents that we really don't know.
4006 # 'pass_all' -- all dependencies passed with no checks.
4007 # 'test_compile' -- check by making test program.
4008 # 'file_magic [[regex]]' -- check by looking for files in library path
4009 # which responds to the $file_magic_cmd with a given extended regex.
4010 # If you have `file' or equivalent on your system and you're not sure
4011 # whether `pass_all' will *always* work, you probably want this one.
4012
4013 case $host_os in
4014 aix4* | aix5*)
4015 lt_cv_deplibs_check_method=pass_all
4016 ;;
4017
4018 beos*)
4019 lt_cv_deplibs_check_method=pass_all
4020 ;;
4021
4022 bsdi[45]*)
4023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4024 lt_cv_file_magic_cmd='/usr/bin/file -L'
4025 lt_cv_file_magic_test_file=/shlib/libc.so
4026 ;;
4027
4028 cygwin*)
4029 # func_win32_libid is a shell function defined in ltmain.sh
4030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4031 lt_cv_file_magic_cmd='func_win32_libid'
4032 ;;
4033
4034 mingw* | pw32*)
4035 # Base MSYS/MinGW do not provide the 'file' command needed by
4036 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4037 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4038 lt_cv_file_magic_cmd='$OBJDUMP -f'
4039 ;;
4040
4041 darwin* | rhapsody*)
4042 lt_cv_deplibs_check_method=pass_all
4043 ;;
4044
4045 freebsd* | kfreebsd*-gnu | dragonfly*)
4046 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4047 case $host_cpu in
4048 i*86 )
4049 # Not sure whether the presence of OpenBSD here was a mistake.
4050 # Let's accept both of them until this is cleared up.
4051 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4052 lt_cv_file_magic_cmd=/usr/bin/file
4053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4054 ;;
4055 esac
4056 else
4057 lt_cv_deplibs_check_method=pass_all
4058 fi
4059 ;;
4060
4061 gnu*)
4062 lt_cv_deplibs_check_method=pass_all
4063 ;;
4064
4065 hpux10.20* | hpux11*)
4066 lt_cv_file_magic_cmd=/usr/bin/file
4067 case $host_cpu in
4068 ia64*)
4069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4070 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4071 ;;
4072 hppa*64*)
4073 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]'
4074 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4075 ;;
4076 *)
4077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4078 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4079 ;;
4080 esac
4081 ;;
4082
4083 interix3*)
4084 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4086 ;;
4087
4088 irix5* | irix6* | nonstopux*)
4089 case $LD in
4090 *-32|*"-32 ") libmagic=32-bit;;
4091 *-n32|*"-n32 ") libmagic=N32;;
4092 *-64|*"-64 ") libmagic=64-bit;;
4093 *) libmagic=never-match;;
4094 esac
4095 lt_cv_deplibs_check_method=pass_all
4096 ;;
4097
4098 # This must be Linux ELF.
4099 linux*)
4100 lt_cv_deplibs_check_method=pass_all
4101 ;;
4102
4103 netbsd*)
4104 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4106 else
4107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4108 fi
4109 ;;
4110
4111 newos6*)
4112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4113 lt_cv_file_magic_cmd=/usr/bin/file
4114 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4115 ;;
4116
4117 nto-qnx*)
4118 lt_cv_deplibs_check_method=unknown
4119 ;;
4120
4121 openbsd*)
4122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4124 else
4125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4126 fi
4127 ;;
4128
4129 osf3* | osf4* | osf5*)
4130 lt_cv_deplibs_check_method=pass_all
4131 ;;
4132
4133 solaris*)
4134 lt_cv_deplibs_check_method=pass_all
4135 ;;
4136
4137 sysv4 | sysv4.3*)
4138 case $host_vendor in
4139 motorola)
4140 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]'
4141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4142 ;;
4143 ncr)
4144 lt_cv_deplibs_check_method=pass_all
4145 ;;
4146 sequent)
4147 lt_cv_file_magic_cmd='/bin/file'
4148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4149 ;;
4150 sni)
4151 lt_cv_file_magic_cmd='/bin/file'
4152 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4153 lt_cv_file_magic_test_file=/lib/libc.so
4154 ;;
4155 siemens)
4156 lt_cv_deplibs_check_method=pass_all
4157 ;;
4158 pc)
4159 lt_cv_deplibs_check_method=pass_all
4160 ;;
4161 esac
4162 ;;
4163
4164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4165 lt_cv_deplibs_check_method=pass_all
4166 ;;
4167 esac
4168
4169 fi
4170 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4171 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4172 file_magic_cmd=$lt_cv_file_magic_cmd
4173 deplibs_check_method=$lt_cv_deplibs_check_method
4174 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4175
4176
4177
4178
4179 # If no C compiler was specified, use CC.
4180 LTCC=${LTCC-"$CC"}
4181
4182 # If no C compiler flags were specified, use CFLAGS.
4183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4184
4185 # Allow CC to be a program name with arguments.
4186 compiler=$CC
4187
4188
4189 # Check whether --enable-libtool-lock was given.
4190 if test "${enable_libtool_lock+set}" = set; then
4191 enableval=$enable_libtool_lock;
4192 fi
4193
4194 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4195
4196 # Some flags need to be propagated to the compiler or linker for good
4197 # libtool support.
4198 case $host in
4199 ia64-*-hpux*)
4200 # Find out which ABI we are using.
4201 echo 'int i;' > conftest.$ac_ext
4202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4203 (eval $ac_compile) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; then
4207 case `/usr/bin/file conftest.$ac_objext` in
4208 *ELF-32*)
4209 HPUX_IA64_MODE="32"
4210 ;;
4211 *ELF-64*)
4212 HPUX_IA64_MODE="64"
4213 ;;
4214 esac
4215 fi
4216 rm -rf conftest*
4217 ;;
4218 *-*-irix6*)
4219 # Find out which ABI we are using.
4220 echo '#line 4220 "configure"' > conftest.$ac_ext
4221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4222 (eval $ac_compile) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; then
4226 if test "$lt_cv_prog_gnu_ld" = yes; then
4227 case `/usr/bin/file conftest.$ac_objext` in
4228 *32-bit*)
4229 LD="${LD-ld} -melf32bsmip"
4230 ;;
4231 *N32*)
4232 LD="${LD-ld} -melf32bmipn32"
4233 ;;
4234 *64-bit*)
4235 LD="${LD-ld} -melf64bmip"
4236 ;;
4237 esac
4238 else
4239 case `/usr/bin/file conftest.$ac_objext` in
4240 *32-bit*)
4241 LD="${LD-ld} -32"
4242 ;;
4243 *N32*)
4244 LD="${LD-ld} -n32"
4245 ;;
4246 *64-bit*)
4247 LD="${LD-ld} -64"
4248 ;;
4249 esac
4250 fi
4251 fi
4252 rm -rf conftest*
4253 ;;
4254
4255 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4256 # Find out which ABI we are using.
4257 echo 'int i;' > conftest.$ac_ext
4258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4259 (eval $ac_compile) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; then
4263 case `/usr/bin/file conftest.o` in
4264 *32-bit*)
4265 case $host in
4266 x86_64-*linux*)
4267 LD="${LD-ld} -m elf_i386"
4268 ;;
4269 ppc64-*linux*|powerpc64-*linux*)
4270 LD="${LD-ld} -m elf32ppclinux"
4271 ;;
4272 s390x-*linux*)
4273 LD="${LD-ld} -m elf_s390"
4274 ;;
4275 sparc64-*linux*)
4276 LD="${LD-ld} -m elf32_sparc"
4277 ;;
4278 esac
4279 ;;
4280 *64-bit*)
4281 case $host in
4282 x86_64-*linux*)
4283 LD="${LD-ld} -m elf_x86_64"
4284 ;;
4285 ppc*-*linux*|powerpc*-*linux*)
4286 LD="${LD-ld} -m elf64ppc"
4287 ;;
4288 s390*-*linux*)
4289 LD="${LD-ld} -m elf64_s390"
4290 ;;
4291 sparc*-*linux*)
4292 LD="${LD-ld} -m elf64_sparc"
4293 ;;
4294 esac
4295 ;;
4296 esac
4297 fi
4298 rm -rf conftest*
4299 ;;
4300
4301 *-*-sco3.2v5*)
4302 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4303 SAVE_CFLAGS="$CFLAGS"
4304 CFLAGS="$CFLAGS -belf"
4305 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4306 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4307 if test "${lt_cv_cc_needs_belf+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 ac_ext=c
4311 ac_cpp='$CPP $CPPFLAGS'
4312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4315
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322
4323 int
4324 main ()
4325 {
4326
4327 ;
4328 return 0;
4329 }
4330 _ACEOF
4331 rm -f conftest.$ac_objext conftest$ac_exeext
4332 if { (ac_try="$ac_link"
4333 case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336 esac
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338 (eval "$ac_link") 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } && {
4345 test -z "$ac_c_werror_flag" ||
4346 test ! -s conftest.err
4347 } && test -s conftest$ac_exeext &&
4348 $as_test_x conftest$ac_exeext; then
4349 lt_cv_cc_needs_belf=yes
4350 else
4351 echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4353
4354 lt_cv_cc_needs_belf=no
4355 fi
4356
4357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4358 conftest$ac_exeext conftest.$ac_ext
4359 ac_ext=c
4360 ac_cpp='$CPP $CPPFLAGS'
4361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364
4365 fi
4366 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4367 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4368 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4369 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4370 CFLAGS="$SAVE_CFLAGS"
4371 fi
4372 ;;
4373 sparc*-*solaris*)
4374 # Find out which ABI we are using.
4375 echo 'int i;' > conftest.$ac_ext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377 (eval $ac_compile) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; then
4381 case `/usr/bin/file conftest.o` in
4382 *64-bit*)
4383 case $lt_cv_prog_gnu_ld in
4384 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4385 *) LD="${LD-ld} -64" ;;
4386 esac
4387 ;;
4388 esac
4389 fi
4390 rm -rf conftest*
4391 ;;
4392
4393
4394 esac
4395
4396 need_locks="$enable_libtool_lock"
4397
4398
4399 ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4405 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4406 # On Suns, sometimes $CPP names a directory.
4407 if test -n "$CPP" && test -d "$CPP"; then
4408 CPP=
4409 fi
4410 if test -z "$CPP"; then
4411 if test "${ac_cv_prog_CPP+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 # Double quotes because CPP needs to be expanded
4415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4416 do
4417 ac_preproc_ok=false
4418 for ac_c_preproc_warn_flag in '' yes
4419 do
4420 # Use a header file that comes with gcc, so configuring glibc
4421 # with a fresh cross-compiler works.
4422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4423 # <limits.h> exists even on freestanding compilers.
4424 # On the NeXT, cc -E runs the code through the compiler's parser,
4425 # not just through cpp. "Syntax error" is here to catch this case.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h. */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4432 #ifdef __STDC__
4433 # include <limits.h>
4434 #else
4435 # include <assert.h>
4436 #endif
4437 Syntax error
4438 _ACEOF
4439 if { (ac_try="$ac_cpp conftest.$ac_ext"
4440 case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443 esac
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } >/dev/null && {
4452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4453 test ! -s conftest.err
4454 }; then
4455 :
4456 else
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4459
4460 # Broken: fails on valid input.
4461 continue
4462 fi
4463
4464 rm -f conftest.err conftest.$ac_ext
4465
4466 # OK, works on sane cases. Now check whether nonexistent headers
4467 # can be detected and how.
4468 cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h. */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #include <ac_nonexistent.h>
4475 _ACEOF
4476 if { (ac_try="$ac_cpp conftest.$ac_ext"
4477 case "(($ac_try" in
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4480 esac
4481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4483 ac_status=$?
4484 grep -v '^ *+' conftest.er1 >conftest.err
4485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } >/dev/null && {
4489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4490 test ! -s conftest.err
4491 }; then
4492 # Broken: success on invalid input.
4493 continue
4494 else
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4497
4498 # Passes both tests.
4499 ac_preproc_ok=:
4500 break
4501 fi
4502
4503 rm -f conftest.err conftest.$ac_ext
4504
4505 done
4506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4507 rm -f conftest.err conftest.$ac_ext
4508 if $ac_preproc_ok; then
4509 break
4510 fi
4511
4512 done
4513 ac_cv_prog_CPP=$CPP
4514
4515 fi
4516 CPP=$ac_cv_prog_CPP
4517 else
4518 ac_cv_prog_CPP=$CPP
4519 fi
4520 { echo "$as_me:$LINENO: result: $CPP" >&5
4521 echo "${ECHO_T}$CPP" >&6; }
4522 ac_preproc_ok=false
4523 for ac_c_preproc_warn_flag in '' yes
4524 do
4525 # Use a header file that comes with gcc, so configuring glibc
4526 # with a fresh cross-compiler works.
4527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4528 # <limits.h> exists even on freestanding compilers.
4529 # On the NeXT, cc -E runs the code through the compiler's parser,
4530 # not just through cpp. "Syntax error" is here to catch this case.
4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h. */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 #ifdef __STDC__
4538 # include <limits.h>
4539 #else
4540 # include <assert.h>
4541 #endif
4542 Syntax error
4543 _ACEOF
4544 if { (ac_try="$ac_cpp conftest.$ac_ext"
4545 case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } >/dev/null && {
4557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4558 test ! -s conftest.err
4559 }; then
4560 :
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565 # Broken: fails on valid input.
4566 continue
4567 fi
4568
4569 rm -f conftest.err conftest.$ac_ext
4570
4571 # OK, works on sane cases. Now check whether nonexistent headers
4572 # can be detected and how.
4573 cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h. */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 #include <ac_nonexistent.h>
4580 _ACEOF
4581 if { (ac_try="$ac_cpp conftest.$ac_ext"
4582 case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585 esac
4586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4588 ac_status=$?
4589 grep -v '^ *+' conftest.er1 >conftest.err
4590 rm -f conftest.er1
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } >/dev/null && {
4594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4595 test ! -s conftest.err
4596 }; then
4597 # Broken: success on invalid input.
4598 continue
4599 else
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603 # Passes both tests.
4604 ac_preproc_ok=:
4605 break
4606 fi
4607
4608 rm -f conftest.err conftest.$ac_ext
4609
4610 done
4611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4612 rm -f conftest.err conftest.$ac_ext
4613 if $ac_preproc_ok; then
4614 :
4615 else
4616 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4617 See \`config.log' for more details." >&5
4618 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4619 See \`config.log' for more details." >&2;}
4620 { (exit 1); exit 1; }; }
4621 fi
4622
4623 ac_ext=c
4624 ac_cpp='$CPP $CPPFLAGS'
4625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628
4629
4630 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4631 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4632 if test "${ac_cv_header_stdc+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 #include <stdlib.h>
4642 #include <stdarg.h>
4643 #include <string.h>
4644 #include <float.h>
4645
4646 int
4647 main ()
4648 {
4649
4650 ;
4651 return 0;
4652 }
4653 _ACEOF
4654 rm -f conftest.$ac_objext
4655 if { (ac_try="$ac_compile"
4656 case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659 esac
4660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_compile") 2>conftest.er1
4662 ac_status=$?
4663 grep -v '^ *+' conftest.er1 >conftest.err
4664 rm -f conftest.er1
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } && {
4668 test -z "$ac_c_werror_flag" ||
4669 test ! -s conftest.err
4670 } && test -s conftest.$ac_objext; then
4671 ac_cv_header_stdc=yes
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676 ac_cv_header_stdc=no
4677 fi
4678
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680
4681 if test $ac_cv_header_stdc = yes; then
4682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4683 cat >conftest.$ac_ext <<_ACEOF
4684 /* confdefs.h. */
4685 _ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4689 #include <string.h>
4690
4691 _ACEOF
4692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4693 $EGREP "memchr" >/dev/null 2>&1; then
4694 :
4695 else
4696 ac_cv_header_stdc=no
4697 fi
4698 rm -f conftest*
4699
4700 fi
4701
4702 if test $ac_cv_header_stdc = yes; then
4703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4704 cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h. */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 #include <stdlib.h>
4711
4712 _ACEOF
4713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4714 $EGREP "free" >/dev/null 2>&1; then
4715 :
4716 else
4717 ac_cv_header_stdc=no
4718 fi
4719 rm -f conftest*
4720
4721 fi
4722
4723 if test $ac_cv_header_stdc = yes; then
4724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4725 if test "$cross_compiling" = yes; then
4726 :
4727 else
4728 cat >conftest.$ac_ext <<_ACEOF
4729 /* confdefs.h. */
4730 _ACEOF
4731 cat confdefs.h >>conftest.$ac_ext
4732 cat >>conftest.$ac_ext <<_ACEOF
4733 /* end confdefs.h. */
4734 #include <ctype.h>
4735 #include <stdlib.h>
4736 #if ((' ' & 0x0FF) == 0x020)
4737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4739 #else
4740 # define ISLOWER(c) \
4741 (('a' <= (c) && (c) <= 'i') \
4742 || ('j' <= (c) && (c) <= 'r') \
4743 || ('s' <= (c) && (c) <= 'z'))
4744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4745 #endif
4746
4747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4748 int
4749 main ()
4750 {
4751 int i;
4752 for (i = 0; i < 256; i++)
4753 if (XOR (islower (i), ISLOWER (i))
4754 || toupper (i) != TOUPPER (i))
4755 return 2;
4756 return 0;
4757 }
4758 _ACEOF
4759 rm -f conftest$ac_exeext
4760 if { (ac_try="$ac_link"
4761 case "(($ac_try" in
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4764 esac
4765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4766 (eval "$ac_link") 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4770 { (case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_try") 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 :
4780 else
4781 echo "$as_me: program exited with status $ac_status" >&5
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785 ( exit $ac_status )
4786 ac_cv_header_stdc=no
4787 fi
4788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4789 fi
4790
4791
4792 fi
4793 fi
4794 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4795 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4796 if test $ac_cv_header_stdc = yes; then
4797
4798 cat >>confdefs.h <<\_ACEOF
4799 #define STDC_HEADERS 1
4800 _ACEOF
4801
4802 fi
4803
4804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4815 inttypes.h stdint.h unistd.h
4816 do
4817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823 cat >conftest.$ac_ext <<_ACEOF
4824 /* confdefs.h. */
4825 _ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h. */
4829 $ac_includes_default
4830
4831 #include <$ac_header>
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (ac_try="$ac_compile"
4835 case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838 esac
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_compile") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } && {
4847 test -z "$ac_c_werror_flag" ||
4848 test ! -s conftest.err
4849 } && test -s conftest.$ac_objext; then
4850 eval "$as_ac_Header=yes"
4851 else
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4854
4855 eval "$as_ac_Header=no"
4856 fi
4857
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 fi
4860 ac_res=`eval echo '${'$as_ac_Header'}'`
4861 { echo "$as_me:$LINENO: result: $ac_res" >&5
4862 echo "${ECHO_T}$ac_res" >&6; }
4863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4864 cat >>confdefs.h <<_ACEOF
4865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4866 _ACEOF
4867
4868 fi
4869
4870 done
4871
4872
4873
4874 for ac_header in dlfcn.h
4875 do
4876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 fi
4883 ac_res=`eval echo '${'$as_ac_Header'}'`
4884 { echo "$as_me:$LINENO: result: $ac_res" >&5
4885 echo "${ECHO_T}$ac_res" >&6; }
4886 else
4887 # Is the header compilable?
4888 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4890 cat >conftest.$ac_ext <<_ACEOF
4891 /* confdefs.h. */
4892 _ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4896 $ac_includes_default
4897 #include <$ac_header>
4898 _ACEOF
4899 rm -f conftest.$ac_objext
4900 if { (ac_try="$ac_compile"
4901 case "(($ac_try" in
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4904 esac
4905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906 (eval "$ac_compile") 2>conftest.er1
4907 ac_status=$?
4908 grep -v '^ *+' conftest.er1 >conftest.err
4909 rm -f conftest.er1
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } && {
4913 test -z "$ac_c_werror_flag" ||
4914 test ! -s conftest.err
4915 } && test -s conftest.$ac_objext; then
4916 ac_header_compiler=yes
4917 else
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4920
4921 ac_header_compiler=no
4922 fi
4923
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4926 echo "${ECHO_T}$ac_header_compiler" >&6; }
4927
4928 # Is the header present?
4929 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 #include <$ac_header>
4938 _ACEOF
4939 if { (ac_try="$ac_cpp conftest.$ac_ext"
4940 case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943 esac
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4946 ac_status=$?
4947 grep -v '^ *+' conftest.er1 >conftest.err
4948 rm -f conftest.er1
4949 cat conftest.err >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } >/dev/null && {
4952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4953 test ! -s conftest.err
4954 }; then
4955 ac_header_preproc=yes
4956 else
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 ac_header_preproc=no
4961 fi
4962
4963 rm -f conftest.err conftest.$ac_ext
4964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4965 echo "${ECHO_T}$ac_header_preproc" >&6; }
4966
4967 # So? What about this header?
4968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4969 yes:no: )
4970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4974 ac_header_preproc=yes
4975 ;;
4976 no:yes:* )
4977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4989
4990 ;;
4991 esac
4992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997 eval "$as_ac_Header=\$ac_header_preproc"
4998 fi
4999 ac_res=`eval echo '${'$as_ac_Header'}'`
5000 { echo "$as_me:$LINENO: result: $ac_res" >&5
5001 echo "${ECHO_T}$ac_res" >&6; }
5002
5003 fi
5004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5005 cat >>confdefs.h <<_ACEOF
5006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5007 _ACEOF
5008
5009 fi
5010
5011 done
5012
5013
5014 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5015
5016 # find the maximum length of command line arguments
5017 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5018 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5019 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 i=0
5023 teststring="ABCD"
5024
5025 case $build_os in
5026 msdosdjgpp*)
5027 # On DJGPP, this test can blow up pretty badly due to problems in libc
5028 # (any single argument exceeding 2000 bytes causes a buffer overrun
5029 # during glob expansion). Even if it were fixed, the result of this
5030 # check would be larger than it should be.
5031 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5032 ;;
5033
5034 gnu*)
5035 # Under GNU Hurd, this test is not required because there is
5036 # no limit to the length of command line arguments.
5037 # Libtool will interpret -1 as no limit whatsoever
5038 lt_cv_sys_max_cmd_len=-1;
5039 ;;
5040
5041 cygwin* | mingw*)
5042 # On Win9x/ME, this test blows up -- it succeeds, but takes
5043 # about 5 minutes as the teststring grows exponentially.
5044 # Worse, since 9x/ME are not pre-emptively multitasking,
5045 # you end up with a "frozen" computer, even though with patience
5046 # the test eventually succeeds (with a max line length of 256k).
5047 # Instead, let's just punt: use the minimum linelength reported by
5048 # all of the supported platforms: 8192 (on NT/2K/XP).
5049 lt_cv_sys_max_cmd_len=8192;
5050 ;;
5051
5052 amigaos*)
5053 # On AmigaOS with pdksh, this test takes hours, literally.
5054 # So we just punt and use a minimum line length of 8192.
5055 lt_cv_sys_max_cmd_len=8192;
5056 ;;
5057
5058 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5059 # This has been around since 386BSD, at least. Likely further.
5060 if test -x /sbin/sysctl; then
5061 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5062 elif test -x /usr/sbin/sysctl; then
5063 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5064 else
5065 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5066 fi
5067 # And add a safety zone
5068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5070 ;;
5071
5072 interix*)
5073 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5074 lt_cv_sys_max_cmd_len=196608
5075 ;;
5076
5077 osf*)
5078 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5079 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5080 # nice to cause kernel panics so lets avoid the loop below.
5081 # First set a reasonable default.
5082 lt_cv_sys_max_cmd_len=16384
5083 #
5084 if test -x /sbin/sysconfig; then
5085 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5086 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5087 esac
5088 fi
5089 ;;
5090 sco3.2v5*)
5091 lt_cv_sys_max_cmd_len=102400
5092 ;;
5093 sysv5* | sco5v6* | sysv4.2uw2*)
5094 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5095 if test -n "$kargmax"; then
5096 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5097 else
5098 lt_cv_sys_max_cmd_len=32768
5099 fi
5100 ;;
5101 *)
5102 # If test is not a shell built-in, we'll probably end up computing a
5103 # maximum length that is only half of the actual maximum length, but
5104 # we can't tell.
5105 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5106 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5107 = "XX$teststring") >/dev/null 2>&1 &&
5108 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5109 lt_cv_sys_max_cmd_len=$new_result &&
5110 test $i != 17 # 1/2 MB should be enough
5111 do
5112 i=`expr $i + 1`
5113 teststring=$teststring$teststring
5114 done
5115 teststring=
5116 # Add a significant safety factor because C++ compilers can tack on massive
5117 # amounts of additional arguments before passing them to the linker.
5118 # It appears as though 1/2 is a usable value.
5119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5120 ;;
5121 esac
5122
5123 fi
5124
5125 if test -n $lt_cv_sys_max_cmd_len ; then
5126 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5127 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5128 else
5129 { echo "$as_me:$LINENO: result: none" >&5
5130 echo "${ECHO_T}none" >&6; }
5131 fi
5132
5133
5134
5135
5136 # Check for command to grab the raw symbol name followed by C symbol from nm.
5137 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5138 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5139 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142
5143 # These are sane defaults that work on at least a few old systems.
5144 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5145
5146 # Character class describing NM global symbol codes.
5147 symcode='[BCDEGRST]'
5148
5149 # Regexp to match symbols that can be accessed directly from C.
5150 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5151
5152 # Transform an extracted symbol line into a proper C declaration
5153 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5154
5155 # Transform an extracted symbol line into symbol name and symbol address
5156 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5157
5158 # Define system-specific variables.
5159 case $host_os in
5160 aix*)
5161 symcode='[BCDT]'
5162 ;;
5163 cygwin* | mingw* | pw32*)
5164 symcode='[ABCDGISTW]'
5165 ;;
5166 hpux*) # Its linker distinguishes data from code symbols
5167 if test "$host_cpu" = ia64; then
5168 symcode='[ABCDEGRST]'
5169 fi
5170 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5171 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5172 ;;
5173 linux*)
5174 if test "$host_cpu" = ia64; then
5175 symcode='[ABCDGIRSTW]'
5176 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5177 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5178 fi
5179 ;;
5180 irix* | nonstopux*)
5181 symcode='[BCDEGRST]'
5182 ;;
5183 osf*)
5184 symcode='[BCDEGQRST]'
5185 ;;
5186 solaris*)
5187 symcode='[BDRT]'
5188 ;;
5189 sco3.2v5*)
5190 symcode='[DT]'
5191 ;;
5192 sysv4.2uw2*)
5193 symcode='[DT]'
5194 ;;
5195 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5196 symcode='[ABDT]'
5197 ;;
5198 sysv4)
5199 symcode='[DFNSTU]'
5200 ;;
5201 esac
5202
5203 # Handle CRLF in mingw tool chain
5204 opt_cr=
5205 case $build_os in
5206 mingw*)
5207 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5208 ;;
5209 esac
5210
5211 # If we're using GNU nm, then use its standard symbol codes.
5212 case `$NM -V 2>&1` in
5213 *GNU* | *'with BFD'*)
5214 symcode='[ABCDGIRSTW]' ;;
5215 esac
5216
5217 # Try without a prefix undercore, then with it.
5218 for ac_symprfx in "" "_"; do
5219
5220 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5221 symxfrm="\\1 $ac_symprfx\\2 \\2"
5222
5223 # Write the raw and C identifiers.
5224 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5225
5226 # Check to see that the pipe works correctly.
5227 pipe_works=no
5228
5229 rm -f conftest*
5230 cat > conftest.$ac_ext <<EOF
5231 #ifdef __cplusplus
5232 extern "C" {
5233 #endif
5234 char nm_test_var;
5235 void nm_test_func(){}
5236 #ifdef __cplusplus
5237 }
5238 #endif
5239 int main(){nm_test_var='a';nm_test_func();return(0);}
5240 EOF
5241
5242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5243 (eval $ac_compile) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; then
5247 # Now try to grab the symbols.
5248 nlist=conftest.nm
5249 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5250 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); } && test -s "$nlist"; then
5254 # Try sorting and uniquifying the output.
5255 if sort "$nlist" | uniq > "$nlist"T; then
5256 mv -f "$nlist"T "$nlist"
5257 else
5258 rm -f "$nlist"T
5259 fi
5260
5261 # Make sure that we snagged all the symbols we need.
5262 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5263 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5264 cat <<EOF > conftest.$ac_ext
5265 #ifdef __cplusplus
5266 extern "C" {
5267 #endif
5268
5269 EOF
5270 # Now generate the symbol file.
5271 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5272
5273 cat <<EOF >> conftest.$ac_ext
5274 #if defined (__STDC__) && __STDC__
5275 # define lt_ptr_t void *
5276 #else
5277 # define lt_ptr_t char *
5278 # define const
5279 #endif
5280
5281 /* The mapping between symbol names and symbols. */
5282 const struct {
5283 const char *name;
5284 lt_ptr_t address;
5285 }
5286 lt_preloaded_symbols[] =
5287 {
5288 EOF
5289 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5290 cat <<\EOF >> conftest.$ac_ext
5291 {0, (lt_ptr_t) 0}
5292 };
5293
5294 #ifdef __cplusplus
5295 }
5296 #endif
5297 EOF
5298 # Now try linking the two files.
5299 mv conftest.$ac_objext conftstm.$ac_objext
5300 lt_save_LIBS="$LIBS"
5301 lt_save_CFLAGS="$CFLAGS"
5302 LIBS="conftstm.$ac_objext"
5303 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5305 (eval $ac_link) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5309 pipe_works=yes
5310 fi
5311 LIBS="$lt_save_LIBS"
5312 CFLAGS="$lt_save_CFLAGS"
5313 else
5314 echo "cannot find nm_test_func in $nlist" >&5
5315 fi
5316 else
5317 echo "cannot find nm_test_var in $nlist" >&5
5318 fi
5319 else
5320 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5321 fi
5322 else
5323 echo "$progname: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5325 fi
5326 rm -f conftest* conftst*
5327
5328 # Do not use the global_symbol_pipe unless it works.
5329 if test "$pipe_works" = yes; then
5330 break
5331 else
5332 lt_cv_sys_global_symbol_pipe=
5333 fi
5334 done
5335
5336 fi
5337
5338 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5339 lt_cv_sys_global_symbol_to_cdecl=
5340 fi
5341 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5342 { echo "$as_me:$LINENO: result: failed" >&5
5343 echo "${ECHO_T}failed" >&6; }
5344 else
5345 { echo "$as_me:$LINENO: result: ok" >&5
5346 echo "${ECHO_T}ok" >&6; }
5347 fi
5348
5349 { echo "$as_me:$LINENO: checking for objdir" >&5
5350 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5351 if test "${lt_cv_objdir+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354 rm -f .libs 2>/dev/null
5355 mkdir .libs 2>/dev/null
5356 if test -d .libs; then
5357 lt_cv_objdir=.libs
5358 else
5359 # MS-DOS does not allow filenames that begin with a dot.
5360 lt_cv_objdir=_libs
5361 fi
5362 rmdir .libs 2>/dev/null
5363 fi
5364 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5365 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5366 objdir=$lt_cv_objdir
5367
5368
5369
5370
5371
5372 case $host_os in
5373 aix3*)
5374 # AIX sometimes has problems with the GCC collect2 program. For some
5375 # reason, if we set the COLLECT_NAMES environment variable, the problems
5376 # vanish in a puff of smoke.
5377 if test "X${COLLECT_NAMES+set}" != Xset; then
5378 COLLECT_NAMES=
5379 export COLLECT_NAMES
5380 fi
5381 ;;
5382 esac
5383
5384 # Sed substitution that helps us do robust quoting. It backslashifies
5385 # metacharacters that are still active within double-quoted strings.
5386 Xsed='sed -e 1s/^X//'
5387 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5388
5389 # Same as above, but do not quote variable references.
5390 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5391
5392 # Sed substitution to delay expansion of an escaped shell variable in a
5393 # double_quote_subst'ed string.
5394 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5395
5396 # Sed substitution to avoid accidental globbing in evaled expressions
5397 no_glob_subst='s/\*/\\\*/g'
5398
5399 # Constants:
5400 rm="rm -f"
5401
5402 # Global variables:
5403 default_ofile=libtool
5404 can_build_shared=yes
5405
5406 # All known linkers require a `.a' archive for static linking (except MSVC,
5407 # which needs '.lib').
5408 libext=a
5409 ltmain="$ac_aux_dir/ltmain.sh"
5410 ofile="$default_ofile"
5411 with_gnu_ld="$lt_cv_prog_gnu_ld"
5412
5413 if test -n "$ac_tool_prefix"; then
5414 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5415 set dummy ${ac_tool_prefix}ar; ac_word=$2
5416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5418 if test "${ac_cv_prog_AR+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421 if test -n "$AR"; then
5422 ac_cv_prog_AR="$AR" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431 ac_cv_prog_AR="${ac_tool_prefix}ar"
5432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5434 fi
5435 done
5436 done
5437 IFS=$as_save_IFS
5438
5439 fi
5440 fi
5441 AR=$ac_cv_prog_AR
5442 if test -n "$AR"; then
5443 { echo "$as_me:$LINENO: result: $AR" >&5
5444 echo "${ECHO_T}$AR" >&6; }
5445 else
5446 { echo "$as_me:$LINENO: result: no" >&5
5447 echo "${ECHO_T}no" >&6; }
5448 fi
5449
5450
5451 fi
5452 if test -z "$ac_cv_prog_AR"; then
5453 ac_ct_AR=$AR
5454 # Extract the first word of "ar", so it can be a program name with args.
5455 set dummy ar; ac_word=$2
5456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5458 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461 if test -n "$ac_ct_AR"; then
5462 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_ac_ct_AR="ar"
5472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5482 if test -n "$ac_ct_AR"; then
5483 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5484 echo "${ECHO_T}$ac_ct_AR" >&6; }
5485 else
5486 { echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6; }
5488 fi
5489
5490 if test "x$ac_ct_AR" = x; then
5491 AR="false"
5492 else
5493 case $cross_compiling:$ac_tool_warned in
5494 yes:)
5495 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5496 whose name does not start with the host triplet. If you think this
5497 configuration is useful to you, please write to [email protected]." >&5
5498 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5499 whose name does not start with the host triplet. If you think this
5500 configuration is useful to you, please write to [email protected]." >&2;}
5501 ac_tool_warned=yes ;;
5502 esac
5503 AR=$ac_ct_AR
5504 fi
5505 else
5506 AR="$ac_cv_prog_AR"
5507 fi
5508
5509 if test -n "$ac_tool_prefix"; then
5510 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5511 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5514 if test "${ac_cv_prog_RANLIB+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 if test -n "$RANLIB"; then
5518 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531 done
5532 done
5533 IFS=$as_save_IFS
5534
5535 fi
5536 fi
5537 RANLIB=$ac_cv_prog_RANLIB
5538 if test -n "$RANLIB"; then
5539 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5540 echo "${ECHO_T}$RANLIB" >&6; }
5541 else
5542 { echo "$as_me:$LINENO: result: no" >&5
5543 echo "${ECHO_T}no" >&6; }
5544 fi
5545
5546
5547 fi
5548 if test -z "$ac_cv_prog_RANLIB"; then
5549 ac_ct_RANLIB=$RANLIB
5550 # Extract the first word of "ranlib", so it can be a program name with args.
5551 set dummy ranlib; ac_word=$2
5552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5554 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557 if test -n "$ac_ct_RANLIB"; then
5558 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5559 else
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5562 do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567 ac_cv_prog_ac_ct_RANLIB="ranlib"
5568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 break 2
5570 fi
5571 done
5572 done
5573 IFS=$as_save_IFS
5574
5575 fi
5576 fi
5577 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5578 if test -n "$ac_ct_RANLIB"; then
5579 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5580 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5581 else
5582 { echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6; }
5584 fi
5585
5586 if test "x$ac_ct_RANLIB" = x; then
5587 RANLIB=":"
5588 else
5589 case $cross_compiling:$ac_tool_warned in
5590 yes:)
5591 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5592 whose name does not start with the host triplet. If you think this
5593 configuration is useful to you, please write to [email protected]." >&5
5594 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5595 whose name does not start with the host triplet. If you think this
5596 configuration is useful to you, please write to [email protected]." >&2;}
5597 ac_tool_warned=yes ;;
5598 esac
5599 RANLIB=$ac_ct_RANLIB
5600 fi
5601 else
5602 RANLIB="$ac_cv_prog_RANLIB"
5603 fi
5604
5605 if test -n "$ac_tool_prefix"; then
5606 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5607 set dummy ${ac_tool_prefix}strip; ac_word=$2
5608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5610 if test "${ac_cv_prog_STRIP+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613 if test -n "$STRIP"; then
5614 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5615 else
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5618 do
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5626 fi
5627 done
5628 done
5629 IFS=$as_save_IFS
5630
5631 fi
5632 fi
5633 STRIP=$ac_cv_prog_STRIP
5634 if test -n "$STRIP"; then
5635 { echo "$as_me:$LINENO: result: $STRIP" >&5
5636 echo "${ECHO_T}$STRIP" >&6; }
5637 else
5638 { echo "$as_me:$LINENO: result: no" >&5
5639 echo "${ECHO_T}no" >&6; }
5640 fi
5641
5642
5643 fi
5644 if test -z "$ac_cv_prog_STRIP"; then
5645 ac_ct_STRIP=$STRIP
5646 # Extract the first word of "strip", so it can be a program name with args.
5647 set dummy strip; ac_word=$2
5648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5650 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653 if test -n "$ac_ct_STRIP"; then
5654 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5655 else
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_prog_ac_ct_STRIP="strip"
5664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5666 fi
5667 done
5668 done
5669 IFS=$as_save_IFS
5670
5671 fi
5672 fi
5673 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5674 if test -n "$ac_ct_STRIP"; then
5675 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5676 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5677 else
5678 { echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6; }
5680 fi
5681
5682 if test "x$ac_ct_STRIP" = x; then
5683 STRIP=":"
5684 else
5685 case $cross_compiling:$ac_tool_warned in
5686 yes:)
5687 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5688 whose name does not start with the host triplet. If you think this
5689 configuration is useful to you, please write to [email protected]." >&5
5690 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5691 whose name does not start with the host triplet. If you think this
5692 configuration is useful to you, please write to [email protected]." >&2;}
5693 ac_tool_warned=yes ;;
5694 esac
5695 STRIP=$ac_ct_STRIP
5696 fi
5697 else
5698 STRIP="$ac_cv_prog_STRIP"
5699 fi
5700
5701
5702 old_CC="$CC"
5703 old_CFLAGS="$CFLAGS"
5704
5705 # Set sane defaults for various variables
5706 test -z "$AR" && AR=ar
5707 test -z "$AR_FLAGS" && AR_FLAGS=cru
5708 test -z "$AS" && AS=as
5709 test -z "$CC" && CC=cc
5710 test -z "$LTCC" && LTCC=$CC
5711 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5712 test -z "$DLLTOOL" && DLLTOOL=dlltool
5713 test -z "$LD" && LD=ld
5714 test -z "$LN_S" && LN_S="ln -s"
5715 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5716 test -z "$NM" && NM=nm
5717 test -z "$SED" && SED=sed
5718 test -z "$OBJDUMP" && OBJDUMP=objdump
5719 test -z "$RANLIB" && RANLIB=:
5720 test -z "$STRIP" && STRIP=:
5721 test -z "$ac_objext" && ac_objext=o
5722
5723 # Determine commands to create old-style static archives.
5724 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5725 old_postinstall_cmds='chmod 644 $oldlib'
5726 old_postuninstall_cmds=
5727
5728 if test -n "$RANLIB"; then
5729 case $host_os in
5730 openbsd*)
5731 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5732 ;;
5733 *)
5734 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5735 ;;
5736 esac
5737 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5738 fi
5739
5740 for cc_temp in $compiler""; do
5741 case $cc_temp in
5742 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5743 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5744 \-*) ;;
5745 *) break;;
5746 esac
5747 done
5748 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5749
5750
5751 # Only perform the check for file, if the check method requires it
5752 case $deplibs_check_method in
5753 file_magic*)
5754 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5755 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5756 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
5757 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760 case $MAGIC_CMD in
5761 [\\/*] | ?:[\\/]*)
5762 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5763 ;;
5764 *)
5765 lt_save_MAGIC_CMD="$MAGIC_CMD"
5766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5767 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5768 for ac_dir in $ac_dummy; do
5769 IFS="$lt_save_ifs"
5770 test -z "$ac_dir" && ac_dir=.
5771 if test -f $ac_dir/${ac_tool_prefix}file; then
5772 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5773 if test -n "$file_magic_test_file"; then
5774 case $deplibs_check_method in
5775 "file_magic "*)
5776 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5777 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5778 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5779 $EGREP "$file_magic_regex" > /dev/null; then
5780 :
5781 else
5782 cat <<EOF 1>&2
5783
5784 *** Warning: the command libtool uses to detect shared libraries,
5785 *** $file_magic_cmd, produces output that libtool cannot recognize.
5786 *** The result is that libtool may fail to recognize shared libraries
5787 *** as such. This will affect the creation of libtool libraries that
5788 *** depend on shared libraries, but programs linked with such libtool
5789 *** libraries will work regardless of this problem. Nevertheless, you
5790 *** may want to report the problem to your system manager and/or to
5791 *** [email protected]
5792
5793 EOF
5794 fi ;;
5795 esac
5796 fi
5797 break
5798 fi
5799 done
5800 IFS="$lt_save_ifs"
5801 MAGIC_CMD="$lt_save_MAGIC_CMD"
5802 ;;
5803 esac
5804 fi
5805
5806 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5807 if test -n "$MAGIC_CMD"; then
5808 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5809 echo "${ECHO_T}$MAGIC_CMD" >&6; }
5810 else
5811 { echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6; }
5813 fi
5814
5815 if test -z "$lt_cv_path_MAGIC_CMD"; then
5816 if test -n "$ac_tool_prefix"; then
5817 { echo "$as_me:$LINENO: checking for file" >&5
5818 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
5819 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822 case $MAGIC_CMD in
5823 [\\/*] | ?:[\\/]*)
5824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5825 ;;
5826 *)
5827 lt_save_MAGIC_CMD="$MAGIC_CMD"
5828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5830 for ac_dir in $ac_dummy; do
5831 IFS="$lt_save_ifs"
5832 test -z "$ac_dir" && ac_dir=.
5833 if test -f $ac_dir/file; then
5834 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5835 if test -n "$file_magic_test_file"; then
5836 case $deplibs_check_method in
5837 "file_magic "*)
5838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5841 $EGREP "$file_magic_regex" > /dev/null; then
5842 :
5843 else
5844 cat <<EOF 1>&2
5845
5846 *** Warning: the command libtool uses to detect shared libraries,
5847 *** $file_magic_cmd, produces output that libtool cannot recognize.
5848 *** The result is that libtool may fail to recognize shared libraries
5849 *** as such. This will affect the creation of libtool libraries that
5850 *** depend on shared libraries, but programs linked with such libtool
5851 *** libraries will work regardless of this problem. Nevertheless, you
5852 *** may want to report the problem to your system manager and/or to
5853 *** [email protected]
5854
5855 EOF
5856 fi ;;
5857 esac
5858 fi
5859 break
5860 fi
5861 done
5862 IFS="$lt_save_ifs"
5863 MAGIC_CMD="$lt_save_MAGIC_CMD"
5864 ;;
5865 esac
5866 fi
5867
5868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5869 if test -n "$MAGIC_CMD"; then
5870 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5871 echo "${ECHO_T}$MAGIC_CMD" >&6; }
5872 else
5873 { echo "$as_me:$LINENO: result: no" >&5
5874 echo "${ECHO_T}no" >&6; }
5875 fi
5876
5877 else
5878 MAGIC_CMD=:
5879 fi
5880 fi
5881
5882 fi
5883 ;;
5884 esac
5885
5886 enable_dlopen=no
5887 enable_win32_dll=no
5888
5889 # Check whether --enable-libtool-lock was given.
5890 if test "${enable_libtool_lock+set}" = set; then
5891 enableval=$enable_libtool_lock;
5892 fi
5893
5894 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5895
5896
5897 # Check whether --with-pic was given.
5898 if test "${with_pic+set}" = set; then
5899 withval=$with_pic; pic_mode="$withval"
5900 else
5901 pic_mode=default
5902 fi
5903
5904 test -z "$pic_mode" && pic_mode=default
5905
5906 # Use C for the default configuration in the libtool script
5907 tagname=
5908 lt_save_CC="$CC"
5909 ac_ext=c
5910 ac_cpp='$CPP $CPPFLAGS'
5911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5914
5915
5916 # Source file extension for C test sources.
5917 ac_ext=c
5918
5919 # Object file extension for compiled C test sources.
5920 objext=o
5921 objext=$objext
5922
5923 # Code to be used in simple compile tests
5924 lt_simple_compile_test_code="int some_variable = 0;\n"
5925
5926 # Code to be used in simple link tests
5927 lt_simple_link_test_code='int main(){return(0);}\n'
5928
5929
5930 # If no C compiler was specified, use CC.
5931 LTCC=${LTCC-"$CC"}
5932
5933 # If no C compiler flags were specified, use CFLAGS.
5934 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5935
5936 # Allow CC to be a program name with arguments.
5937 compiler=$CC
5938
5939
5940 # save warnings/boilerplate of simple test code
5941 ac_outfile=conftest.$ac_objext
5942 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5944 _lt_compiler_boilerplate=`cat conftest.err`
5945 $rm conftest*
5946
5947 ac_outfile=conftest.$ac_objext
5948 printf "$lt_simple_link_test_code" >conftest.$ac_ext
5949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5950 _lt_linker_boilerplate=`cat conftest.err`
5951 $rm conftest*
5952
5953
5954
5955 lt_prog_compiler_no_builtin_flag=
5956
5957 if test "$GCC" = yes; then
5958 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5959
5960
5961 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5962 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
5963 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 lt_cv_prog_compiler_rtti_exceptions=no
5967 ac_outfile=conftest.$ac_objext
5968 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5969 lt_compiler_flag="-fno-rtti -fno-exceptions"
5970 # Insert the option either (1) after the last *FLAGS variable, or
5971 # (2) before a word containing "conftest.", or (3) at the end.
5972 # Note that $ac_compile itself does not contain backslashes and begins
5973 # with a dollar sign (not a hyphen), so the echo should work correctly.
5974 # The option is referenced via a variable to avoid confusing sed.
5975 lt_compile=`echo "$ac_compile" | $SED \
5976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5978 -e 's:$: $lt_compiler_flag:'`
5979 (eval echo "\"\$as_me:5979: $lt_compile\"" >&5)
5980 (eval "$lt_compile" 2>conftest.err)
5981 ac_status=$?
5982 cat conftest.err >&5
5983 echo "$as_me:5983: \$? = $ac_status" >&5
5984 if (exit $ac_status) && test -s "$ac_outfile"; then
5985 # The compiler can only warn and ignore the option if not recognized
5986 # So say no if there are warnings other than the usual output.
5987 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5990 lt_cv_prog_compiler_rtti_exceptions=yes
5991 fi
5992 fi
5993 $rm conftest*
5994
5995 fi
5996 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5997 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
5998
5999 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6000 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6001 else
6002 :
6003 fi
6004
6005 fi
6006
6007 lt_prog_compiler_wl=
6008 lt_prog_compiler_pic=
6009 lt_prog_compiler_static=
6010
6011 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6012 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6013
6014 if test "$GCC" = yes; then
6015 lt_prog_compiler_wl='-Wl,'
6016 lt_prog_compiler_static='-static'
6017
6018 case $host_os in
6019 aix*)
6020 # All AIX code is PIC.
6021 if test "$host_cpu" = ia64; then
6022 # AIX 5 now supports IA64 processor
6023 lt_prog_compiler_static='-Bstatic'
6024 fi
6025 ;;
6026
6027 amigaos*)
6028 # FIXME: we need at least 68020 code to build shared libraries, but
6029 # adding the `-m68020' flag to GCC prevents building anything better,
6030 # like `-m68040'.
6031 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6032 ;;
6033
6034 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6035 # PIC is the default for these OSes.
6036 ;;
6037
6038 mingw* | pw32* | os2*)
6039 # This hack is so that the source file can tell whether it is being
6040 # built for inclusion in a dll (and should export symbols for example).
6041 lt_prog_compiler_pic='-DDLL_EXPORT'
6042 ;;
6043
6044 darwin* | rhapsody*)
6045 # PIC is the default on this platform
6046 # Common symbols not allowed in MH_DYLIB files
6047 lt_prog_compiler_pic='-fno-common'
6048 ;;
6049
6050 interix3*)
6051 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6052 # Instead, we relocate shared libraries at runtime.
6053 ;;
6054
6055 msdosdjgpp*)
6056 # Just because we use GCC doesn't mean we suddenly get shared libraries
6057 # on systems that don't support them.
6058 lt_prog_compiler_can_build_shared=no
6059 enable_shared=no
6060 ;;
6061
6062 sysv4*MP*)
6063 if test -d /usr/nec; then
6064 lt_prog_compiler_pic=-Kconform_pic
6065 fi
6066 ;;
6067
6068 hpux*)
6069 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6070 # not for PA HP-UX.
6071 case $host_cpu in
6072 hppa*64*|ia64*)
6073 # +Z the default
6074 ;;
6075 *)
6076 lt_prog_compiler_pic='-fPIC'
6077 ;;
6078 esac
6079 ;;
6080
6081 *)
6082 lt_prog_compiler_pic='-fPIC'
6083 ;;
6084 esac
6085 else
6086 # PORTME Check for flag to pass linker flags through the system compiler.
6087 case $host_os in
6088 aix*)
6089 lt_prog_compiler_wl='-Wl,'
6090 if test "$host_cpu" = ia64; then
6091 # AIX 5 now supports IA64 processor
6092 lt_prog_compiler_static='-Bstatic'
6093 else
6094 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6095 fi
6096 ;;
6097 darwin*)
6098 # PIC is the default on this platform
6099 # Common symbols not allowed in MH_DYLIB files
6100 case $cc_basename in
6101 xlc*)
6102 lt_prog_compiler_pic='-qnocommon'
6103 lt_prog_compiler_wl='-Wl,'
6104 ;;
6105 esac
6106 ;;
6107
6108 mingw* | pw32* | os2*)
6109 # This hack is so that the source file can tell whether it is being
6110 # built for inclusion in a dll (and should export symbols for example).
6111 lt_prog_compiler_pic='-DDLL_EXPORT'
6112 ;;
6113
6114 hpux9* | hpux10* | hpux11*)
6115 lt_prog_compiler_wl='-Wl,'
6116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6117 # not for PA HP-UX.
6118 case $host_cpu in
6119 hppa*64*|ia64*)
6120 # +Z the default
6121 ;;
6122 *)
6123 lt_prog_compiler_pic='+Z'
6124 ;;
6125 esac
6126 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6127 lt_prog_compiler_static='${wl}-a ${wl}archive'
6128 ;;
6129
6130 irix5* | irix6* | nonstopux*)
6131 lt_prog_compiler_wl='-Wl,'
6132 # PIC (with -KPIC) is the default.
6133 lt_prog_compiler_static='-non_shared'
6134 ;;
6135
6136 newsos6)
6137 lt_prog_compiler_pic='-KPIC'
6138 lt_prog_compiler_static='-Bstatic'
6139 ;;
6140
6141 linux*)
6142 case $cc_basename in
6143 icc* | ecc*)
6144 lt_prog_compiler_wl='-Wl,'
6145 lt_prog_compiler_pic='-KPIC'
6146 lt_prog_compiler_static='-static'
6147 ;;
6148 pgcc* | pgf77* | pgf90* | pgf95*)
6149 # Portland Group compilers (*not* the Pentium gcc compiler,
6150 # which looks to be a dead project)
6151 lt_prog_compiler_wl='-Wl,'
6152 lt_prog_compiler_pic='-fpic'
6153 lt_prog_compiler_static='-Bstatic'
6154 ;;
6155 ccc*)
6156 lt_prog_compiler_wl='-Wl,'
6157 # All Alpha code is PIC.
6158 lt_prog_compiler_static='-non_shared'
6159 ;;
6160 esac
6161 ;;
6162
6163 osf3* | osf4* | osf5*)
6164 lt_prog_compiler_wl='-Wl,'
6165 # All OSF/1 code is PIC.
6166 lt_prog_compiler_static='-non_shared'
6167 ;;
6168
6169 solaris*)
6170 lt_prog_compiler_pic='-KPIC'
6171 lt_prog_compiler_static='-Bstatic'
6172 case $cc_basename in
6173 f77* | f90* | f95*)
6174 lt_prog_compiler_wl='-Qoption ld ';;
6175 *)
6176 lt_prog_compiler_wl='-Wl,';;
6177 esac
6178 ;;
6179
6180 sunos4*)
6181 lt_prog_compiler_wl='-Qoption ld '
6182 lt_prog_compiler_pic='-PIC'
6183 lt_prog_compiler_static='-Bstatic'
6184 ;;
6185
6186 sysv4 | sysv4.2uw2* | sysv4.3*)
6187 lt_prog_compiler_wl='-Wl,'
6188 lt_prog_compiler_pic='-KPIC'
6189 lt_prog_compiler_static='-Bstatic'
6190 ;;
6191
6192 sysv4*MP*)
6193 if test -d /usr/nec ;then
6194 lt_prog_compiler_pic='-Kconform_pic'
6195 lt_prog_compiler_static='-Bstatic'
6196 fi
6197 ;;
6198
6199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6200 lt_prog_compiler_wl='-Wl,'
6201 lt_prog_compiler_pic='-KPIC'
6202 lt_prog_compiler_static='-Bstatic'
6203 ;;
6204
6205 unicos*)
6206 lt_prog_compiler_wl='-Wl,'
6207 lt_prog_compiler_can_build_shared=no
6208 ;;
6209
6210 uts4*)
6211 lt_prog_compiler_pic='-pic'
6212 lt_prog_compiler_static='-Bstatic'
6213 ;;
6214
6215 *)
6216 lt_prog_compiler_can_build_shared=no
6217 ;;
6218 esac
6219 fi
6220
6221 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6222 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6223
6224 #
6225 # Check to make sure the PIC flag actually works.
6226 #
6227 if test -n "$lt_prog_compiler_pic"; then
6228
6229 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6230 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6231 if test "${lt_prog_compiler_pic_works+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 lt_prog_compiler_pic_works=no
6235 ac_outfile=conftest.$ac_objext
6236 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6237 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6238 # Insert the option either (1) after the last *FLAGS variable, or
6239 # (2) before a word containing "conftest.", or (3) at the end.
6240 # Note that $ac_compile itself does not contain backslashes and begins
6241 # with a dollar sign (not a hyphen), so the echo should work correctly.
6242 # The option is referenced via a variable to avoid confusing sed.
6243 lt_compile=`echo "$ac_compile" | $SED \
6244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6246 -e 's:$: $lt_compiler_flag:'`
6247 (eval echo "\"\$as_me:6247: $lt_compile\"" >&5)
6248 (eval "$lt_compile" 2>conftest.err)
6249 ac_status=$?
6250 cat conftest.err >&5
6251 echo "$as_me:6251: \$? = $ac_status" >&5
6252 if (exit $ac_status) && test -s "$ac_outfile"; then
6253 # The compiler can only warn and ignore the option if not recognized
6254 # So say no if there are warnings other than the usual output.
6255 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6257 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6258 lt_prog_compiler_pic_works=yes
6259 fi
6260 fi
6261 $rm conftest*
6262
6263 fi
6264 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6265 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6266
6267 if test x"$lt_prog_compiler_pic_works" = xyes; then
6268 case $lt_prog_compiler_pic in
6269 "" | " "*) ;;
6270 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6271 esac
6272 else
6273 lt_prog_compiler_pic=
6274 lt_prog_compiler_can_build_shared=no
6275 fi
6276
6277 fi
6278 case $host_os in
6279 # For platforms which do not support PIC, -DPIC is meaningless:
6280 *djgpp*)
6281 lt_prog_compiler_pic=
6282 ;;
6283 *)
6284 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6285 ;;
6286 esac
6287
6288 #
6289 # Check to make sure the static flag actually works.
6290 #
6291 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6292 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6293 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6294 if test "${lt_prog_compiler_static_works+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 lt_prog_compiler_static_works=no
6298 save_LDFLAGS="$LDFLAGS"
6299 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6300 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6302 # The linker can only warn and ignore the option if not recognized
6303 # So say no if there are warnings
6304 if test -s conftest.err; then
6305 # Append any errors to the config.log.
6306 cat conftest.err 1>&5
6307 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6309 if diff conftest.exp conftest.er2 >/dev/null; then
6310 lt_prog_compiler_static_works=yes
6311 fi
6312 else
6313 lt_prog_compiler_static_works=yes
6314 fi
6315 fi
6316 $rm conftest*
6317 LDFLAGS="$save_LDFLAGS"
6318
6319 fi
6320 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6321 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6322
6323 if test x"$lt_prog_compiler_static_works" = xyes; then
6324 :
6325 else
6326 lt_prog_compiler_static=
6327 fi
6328
6329
6330 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6331 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6332 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 lt_cv_prog_compiler_c_o=no
6336 $rm -r conftest 2>/dev/null
6337 mkdir conftest
6338 cd conftest
6339 mkdir out
6340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6341
6342 lt_compiler_flag="-o out/conftest2.$ac_objext"
6343 # Insert the option either (1) after the last *FLAGS variable, or
6344 # (2) before a word containing "conftest.", or (3) at the end.
6345 # Note that $ac_compile itself does not contain backslashes and begins
6346 # with a dollar sign (not a hyphen), so the echo should work correctly.
6347 lt_compile=`echo "$ac_compile" | $SED \
6348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6350 -e 's:$: $lt_compiler_flag:'`
6351 (eval echo "\"\$as_me:6351: $lt_compile\"" >&5)
6352 (eval "$lt_compile" 2>out/conftest.err)
6353 ac_status=$?
6354 cat out/conftest.err >&5
6355 echo "$as_me:6355: \$? = $ac_status" >&5
6356 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6357 then
6358 # The compiler can only warn and ignore the option if not recognized
6359 # So say no if there are warnings
6360 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6361 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6362 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6363 lt_cv_prog_compiler_c_o=yes
6364 fi
6365 fi
6366 chmod u+w . 2>&5
6367 $rm conftest*
6368 # SGI C++ compiler will create directory out/ii_files/ for
6369 # template instantiation
6370 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6371 $rm out/* && rmdir out
6372 cd ..
6373 rmdir conftest
6374 $rm conftest*
6375
6376 fi
6377 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6378 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6379
6380
6381 hard_links="nottested"
6382 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6383 # do not overwrite the value of need_locks provided by the user
6384 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6385 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6386 hard_links=yes
6387 $rm conftest*
6388 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6389 touch conftest.a
6390 ln conftest.a conftest.b 2>&5 || hard_links=no
6391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6392 { echo "$as_me:$LINENO: result: $hard_links" >&5
6393 echo "${ECHO_T}$hard_links" >&6; }
6394 if test "$hard_links" = no; then
6395 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6396 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6397 need_locks=warn
6398 fi
6399 else
6400 need_locks=no
6401 fi
6402
6403 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6404 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6405
6406 runpath_var=
6407 allow_undefined_flag=
6408 enable_shared_with_static_runtimes=no
6409 archive_cmds=
6410 archive_expsym_cmds=
6411 old_archive_From_new_cmds=
6412 old_archive_from_expsyms_cmds=
6413 export_dynamic_flag_spec=
6414 whole_archive_flag_spec=
6415 thread_safe_flag_spec=
6416 hardcode_libdir_flag_spec=
6417 hardcode_libdir_flag_spec_ld=
6418 hardcode_libdir_separator=
6419 hardcode_direct=no
6420 hardcode_minus_L=no
6421 hardcode_shlibpath_var=unsupported
6422 link_all_deplibs=unknown
6423 hardcode_automatic=no
6424 module_cmds=
6425 module_expsym_cmds=
6426 always_export_symbols=no
6427 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6428 # include_expsyms should be a list of space-separated symbols to be *always*
6429 # included in the symbol list
6430 include_expsyms=
6431 # exclude_expsyms can be an extended regexp of symbols to exclude
6432 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6433 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6434 # as well as any symbol that contains `d'.
6435 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6436 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6437 # platforms (ab)use it in PIC code, but their linkers get confused if
6438 # the symbol is explicitly referenced. Since portable code cannot
6439 # rely on this symbol name, it's probably fine to never include it in
6440 # preloaded symbol tables.
6441 extract_expsyms_cmds=
6442 # Just being paranoid about ensuring that cc_basename is set.
6443 for cc_temp in $compiler""; do
6444 case $cc_temp in
6445 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6446 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6447 \-*) ;;
6448 *) break;;
6449 esac
6450 done
6451 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6452
6453 case $host_os in
6454 cygwin* | mingw* | pw32*)
6455 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6456 # When not using gcc, we currently assume that we are using
6457 # Microsoft Visual C++.
6458 if test "$GCC" != yes; then
6459 with_gnu_ld=no
6460 fi
6461 ;;
6462 interix*)
6463 # we just hope/assume this is gcc and not c89 (= MSVC++)
6464 with_gnu_ld=yes
6465 ;;
6466 openbsd*)
6467 with_gnu_ld=no
6468 ;;
6469 esac
6470
6471 ld_shlibs=yes
6472 if test "$with_gnu_ld" = yes; then
6473 # If archive_cmds runs LD, not CC, wlarc should be empty
6474 wlarc='${wl}'
6475
6476 # Set some defaults for GNU ld with shared library support. These
6477 # are reset later if shared libraries are not supported. Putting them
6478 # here allows them to be overridden if necessary.
6479 runpath_var=LD_RUN_PATH
6480 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6481 export_dynamic_flag_spec='${wl}--export-dynamic'
6482 # ancient GNU ld didn't support --whole-archive et. al.
6483 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6484 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6485 else
6486 whole_archive_flag_spec=
6487 fi
6488 supports_anon_versioning=no
6489 case `$LD -v 2>/dev/null` in
6490 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6491 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6492 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6493 *\ 2.11.*) ;; # other 2.11 versions
6494 *) supports_anon_versioning=yes ;;
6495 esac
6496
6497 # See if GNU ld supports shared libraries.
6498 case $host_os in
6499 aix3* | aix4* | aix5*)
6500 # On AIX/PPC, the GNU linker is very broken
6501 if test "$host_cpu" != ia64; then
6502 ld_shlibs=no
6503 cat <<EOF 1>&2
6504
6505 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6506 *** to be unable to reliably create shared libraries on AIX.
6507 *** Therefore, libtool is disabling shared libraries support. If you
6508 *** really care for shared libraries, you may want to modify your PATH
6509 *** so that a non-GNU linker is found, and then restart.
6510
6511 EOF
6512 fi
6513 ;;
6514
6515 amigaos*)
6516 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)'
6517 hardcode_libdir_flag_spec='-L$libdir'
6518 hardcode_minus_L=yes
6519
6520 # Samuel A. Falvo II <[email protected]> reports
6521 # that the semantics of dynamic libraries on AmigaOS, at least up
6522 # to version 4, is to share data among multiple programs linked
6523 # with the same dynamic library. Since this doesn't match the
6524 # behavior of shared libraries on other platforms, we can't use
6525 # them.
6526 ld_shlibs=no
6527 ;;
6528
6529 beos*)
6530 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6531 allow_undefined_flag=unsupported
6532 # Joseph Beckenbach <[email protected]> says some releases of gcc
6533 # support --undefined. This deserves some investigation. FIXME
6534 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6535 else
6536 ld_shlibs=no
6537 fi
6538 ;;
6539
6540 cygwin* | mingw* | pw32*)
6541 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6542 # as there is no search path for DLLs.
6543 hardcode_libdir_flag_spec='-L$libdir'
6544 allow_undefined_flag=unsupported
6545 always_export_symbols=no
6546 enable_shared_with_static_runtimes=yes
6547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6548
6549 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6551 # If the export-symbols file already is a .def file (1st line
6552 # is EXPORTS), use it as is; otherwise, prepend...
6553 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6554 cp $export_symbols $output_objdir/$soname.def;
6555 else
6556 echo EXPORTS > $output_objdir/$soname.def;
6557 cat $export_symbols >> $output_objdir/$soname.def;
6558 fi~
6559 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6560 else
6561 ld_shlibs=no
6562 fi
6563 ;;
6564
6565 interix3*)
6566 hardcode_direct=no
6567 hardcode_shlibpath_var=no
6568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6569 export_dynamic_flag_spec='${wl}-E'
6570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6571 # Instead, shared libraries are loaded at an image base (0x10000000 by
6572 # default) and relocated if they conflict, which is a slow very memory
6573 # consuming and fragmenting process. To avoid this, we pick a random,
6574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6577 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'
6578 ;;
6579
6580 linux*)
6581 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6582 tmp_addflag=
6583 case $cc_basename,$host_cpu in
6584 pgcc*) # Portland Group C compiler
6585 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'
6586 tmp_addflag=' $pic_flag'
6587 ;;
6588 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6589 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'
6590 tmp_addflag=' $pic_flag -Mnomain' ;;
6591 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6592 tmp_addflag=' -i_dynamic' ;;
6593 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6594 tmp_addflag=' -i_dynamic -nofor_main' ;;
6595 ifc* | ifort*) # Intel Fortran compiler
6596 tmp_addflag=' -nofor_main' ;;
6597 esac
6598 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6599
6600 if test $supports_anon_versioning = yes; then
6601 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6603 $echo "local: *; };" >> $output_objdir/$libname.ver~
6604 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6605 fi
6606 else
6607 ld_shlibs=no
6608 fi
6609 ;;
6610
6611 netbsd*)
6612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6613 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6614 wlarc=
6615 else
6616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6618 fi
6619 ;;
6620
6621 solaris*)
6622 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6623 ld_shlibs=no
6624 cat <<EOF 1>&2
6625
6626 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6627 *** create shared libraries on Solaris systems. Therefore, libtool
6628 *** is disabling shared libraries support. We urge you to upgrade GNU
6629 *** binutils to release 2.9.1 or newer. Another option is to modify
6630 *** your PATH or compiler configuration so that the native linker is
6631 *** used, and then restart.
6632
6633 EOF
6634 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6637 else
6638 ld_shlibs=no
6639 fi
6640 ;;
6641
6642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6643 case `$LD -v 2>&1` in
6644 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6645 ld_shlibs=no
6646 cat <<_LT_EOF 1>&2
6647
6648 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6649 *** reliably create shared libraries on SCO systems. Therefore, libtool
6650 *** is disabling shared libraries support. We urge you to upgrade GNU
6651 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6652 *** your PATH or compiler configuration so that the native linker is
6653 *** used, and then restart.
6654
6655 _LT_EOF
6656 ;;
6657 *)
6658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6659 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6662 else
6663 ld_shlibs=no
6664 fi
6665 ;;
6666 esac
6667 ;;
6668
6669 sunos4*)
6670 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6671 wlarc=
6672 hardcode_direct=yes
6673 hardcode_shlibpath_var=no
6674 ;;
6675
6676 *)
6677 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6680 else
6681 ld_shlibs=no
6682 fi
6683 ;;
6684 esac
6685
6686 if test "$ld_shlibs" = no; then
6687 runpath_var=
6688 hardcode_libdir_flag_spec=
6689 export_dynamic_flag_spec=
6690 whole_archive_flag_spec=
6691 fi
6692 else
6693 # PORTME fill in a description of your system's linker (not GNU ld)
6694 case $host_os in
6695 aix3*)
6696 allow_undefined_flag=unsupported
6697 always_export_symbols=yes
6698 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'
6699 # Note: this linker hardcodes the directories in LIBPATH if there
6700 # are no directories specified by -L.
6701 hardcode_minus_L=yes
6702 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6703 # Neither direct hardcoding nor static linking is supported with a
6704 # broken collect2.
6705 hardcode_direct=unsupported
6706 fi
6707 ;;
6708
6709 aix4* | aix5*)
6710 if test "$host_cpu" = ia64; then
6711 # On IA64, the linker does run time linking by default, so we don't
6712 # have to do anything special.
6713 aix_use_runtimelinking=no
6714 exp_sym_flag='-Bexport'
6715 no_entry_flag=""
6716 else
6717 # If we're using GNU nm, then we don't want the "-C" option.
6718 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6719 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6720 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'
6721 else
6722 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'
6723 fi
6724 aix_use_runtimelinking=no
6725
6726 # Test if we are trying to use run time linking or normal
6727 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6728 # need to do runtime linking.
6729 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6730 for ld_flag in $LDFLAGS; do
6731 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6732 aix_use_runtimelinking=yes
6733 break
6734 fi
6735 done
6736 ;;
6737 esac
6738
6739 exp_sym_flag='-bexport'
6740 no_entry_flag='-bnoentry'
6741 fi
6742
6743 # When large executables or shared objects are built, AIX ld can
6744 # have problems creating the table of contents. If linking a library
6745 # or program results in "error TOC overflow" add -mminimal-toc to
6746 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6747 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6748
6749 archive_cmds=''
6750 hardcode_direct=yes
6751 hardcode_libdir_separator=':'
6752 link_all_deplibs=yes
6753
6754 if test "$GCC" = yes; then
6755 case $host_os in aix4.[012]|aix4.[012].*)
6756 # We only want to do this on AIX 4.2 and lower, the check
6757 # below for broken collect2 doesn't work under 4.3+
6758 collect2name=`${CC} -print-prog-name=collect2`
6759 if test -f "$collect2name" && \
6760 strings "$collect2name" | grep resolve_lib_name >/dev/null
6761 then
6762 # We have reworked collect2
6763 hardcode_direct=yes
6764 else
6765 # We have old collect2
6766 hardcode_direct=unsupported
6767 # It fails to find uninstalled libraries when the uninstalled
6768 # path is not listed in the libpath. Setting hardcode_minus_L
6769 # to unsupported forces relinking
6770 hardcode_minus_L=yes
6771 hardcode_libdir_flag_spec='-L$libdir'
6772 hardcode_libdir_separator=
6773 fi
6774 ;;
6775 esac
6776 shared_flag='-shared'
6777 if test "$aix_use_runtimelinking" = yes; then
6778 shared_flag="$shared_flag "'${wl}-G'
6779 fi
6780 else
6781 # not using gcc
6782 if test "$host_cpu" = ia64; then
6783 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6784 # chokes on -Wl,-G. The following line is correct:
6785 shared_flag='-G'
6786 else
6787 if test "$aix_use_runtimelinking" = yes; then
6788 shared_flag='${wl}-G'
6789 else
6790 shared_flag='${wl}-bM:SRE'
6791 fi
6792 fi
6793 fi
6794
6795 # It seems that -bexpall does not export symbols beginning with
6796 # underscore (_), so it is better to generate a list of symbols to export.
6797 always_export_symbols=yes
6798 if test "$aix_use_runtimelinking" = yes; then
6799 # Warning - without using the other runtime loading flags (-brtl),
6800 # -berok will link without error, but may produce a broken library.
6801 allow_undefined_flag='-berok'
6802 # Determine the default libpath from the value encoded in an empty executable.
6803 cat >conftest.$ac_ext <<_ACEOF
6804 /* confdefs.h. */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809
6810 int
6811 main ()
6812 {
6813
6814 ;
6815 return 0;
6816 }
6817 _ACEOF
6818 rm -f conftest.$ac_objext conftest$ac_exeext
6819 if { (ac_try="$ac_link"
6820 case "(($ac_try" in
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6823 esac
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825 (eval "$ac_link") 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && {
6832 test -z "$ac_c_werror_flag" ||
6833 test ! -s conftest.err
6834 } && test -s conftest$ac_exeext &&
6835 $as_test_x conftest$ac_exeext; then
6836
6837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6838 }'`
6839 # Check for a 64-bit object if we didn't find anything.
6840 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6841 }'`; fi
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6845
6846
6847 fi
6848
6849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6850 conftest$ac_exeext conftest.$ac_ext
6851 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6852
6853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6854 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6855 else
6856 if test "$host_cpu" = ia64; then
6857 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6858 allow_undefined_flag="-z nodefs"
6859 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"
6860 else
6861 # Determine the default libpath from the value encoded in an empty executable.
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868
6869 int
6870 main ()
6871 {
6872
6873 ;
6874 return 0;
6875 }
6876 _ACEOF
6877 rm -f conftest.$ac_objext conftest$ac_exeext
6878 if { (ac_try="$ac_link"
6879 case "(($ac_try" in
6880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6881 *) ac_try_echo=$ac_try;;
6882 esac
6883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6884 (eval "$ac_link") 2>conftest.er1
6885 ac_status=$?
6886 grep -v '^ *+' conftest.er1 >conftest.err
6887 rm -f conftest.er1
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } && {
6891 test -z "$ac_c_werror_flag" ||
6892 test ! -s conftest.err
6893 } && test -s conftest$ac_exeext &&
6894 $as_test_x conftest$ac_exeext; then
6895
6896 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6897 }'`
6898 # Check for a 64-bit object if we didn't find anything.
6899 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6900 }'`; fi
6901 else
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6904
6905
6906 fi
6907
6908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6909 conftest$ac_exeext conftest.$ac_ext
6910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6911
6912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6913 # Warning - without using the other run time loading flags,
6914 # -berok will link without error, but may produce a broken library.
6915 no_undefined_flag=' ${wl}-bernotok'
6916 allow_undefined_flag=' ${wl}-berok'
6917 # Exported symbols can be pulled into shared objects from archives
6918 whole_archive_flag_spec='$convenience'
6919 archive_cmds_need_lc=yes
6920 # This is similar to how AIX traditionally builds its shared libraries.
6921 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'
6922 fi
6923 fi
6924 ;;
6925
6926 amigaos*)
6927 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)'
6928 hardcode_libdir_flag_spec='-L$libdir'
6929 hardcode_minus_L=yes
6930 # see comment about different semantics on the GNU ld section
6931 ld_shlibs=no
6932 ;;
6933
6934 bsdi[45]*)
6935 export_dynamic_flag_spec=-rdynamic
6936 ;;
6937
6938 cygwin* | mingw* | pw32*)
6939 # When not using gcc, we currently assume that we are using
6940 # Microsoft Visual C++.
6941 # hardcode_libdir_flag_spec is actually meaningless, as there is
6942 # no search path for DLLs.
6943 hardcode_libdir_flag_spec=' '
6944 allow_undefined_flag=unsupported
6945 # Tell ltmain to make .lib files, not .a files.
6946 libext=lib
6947 # Tell ltmain to make .dll files, not .so files.
6948 shrext_cmds=".dll"
6949 # FIXME: Setting linknames here is a bad hack.
6950 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6951 # The linker will automatically build a .lib file if we build a DLL.
6952 old_archive_From_new_cmds='true'
6953 # FIXME: Should let the user specify the lib program.
6954 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6955 fix_srcfile_path='`cygpath -w "$srcfile"`'
6956 enable_shared_with_static_runtimes=yes
6957 ;;
6958
6959 darwin* | rhapsody*)
6960 case $host_os in
6961 rhapsody* | darwin1.[012])
6962 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6963 ;;
6964 *) # Darwin 1.3 on
6965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6966 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6967 else
6968 case ${MACOSX_DEPLOYMENT_TARGET} in
6969 10.[012])
6970 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6971 ;;
6972 10.*)
6973 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6974 ;;
6975 esac
6976 fi
6977 ;;
6978 esac
6979 archive_cmds_need_lc=no
6980 hardcode_direct=no
6981 hardcode_automatic=yes
6982 hardcode_shlibpath_var=unsupported
6983 whole_archive_flag_spec=''
6984 link_all_deplibs=yes
6985 if test "$GCC" = yes ; then
6986 output_verbose_link_cmd='echo'
6987 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6988 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6989 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6990 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6991 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6992 else
6993 case $cc_basename in
6994 xlc*)
6995 output_verbose_link_cmd='echo'
6996 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6997 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6998 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6999 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7000 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7001 ;;
7002 *)
7003 ld_shlibs=no
7004 ;;
7005 esac
7006 fi
7007 ;;
7008
7009 dgux*)
7010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7011 hardcode_libdir_flag_spec='-L$libdir'
7012 hardcode_shlibpath_var=no
7013 ;;
7014
7015 freebsd1*)
7016 ld_shlibs=no
7017 ;;
7018
7019 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7020 # support. Future versions do this automatically, but an explicit c++rt0.o
7021 # does not break anything, and helps significantly (at the cost of a little
7022 # extra space).
7023 freebsd2.2*)
7024 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7025 hardcode_libdir_flag_spec='-R$libdir'
7026 hardcode_direct=yes
7027 hardcode_shlibpath_var=no
7028 ;;
7029
7030 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7031 freebsd2*)
7032 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7033 hardcode_direct=yes
7034 hardcode_minus_L=yes
7035 hardcode_shlibpath_var=no
7036 ;;
7037
7038 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7039 freebsd* | kfreebsd*-gnu | dragonfly*)
7040 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7041 hardcode_libdir_flag_spec='-R$libdir'
7042 hardcode_direct=yes
7043 hardcode_shlibpath_var=no
7044 ;;
7045
7046 hpux9*)
7047 if test "$GCC" = yes; then
7048 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'
7049 else
7050 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'
7051 fi
7052 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7053 hardcode_libdir_separator=:
7054 hardcode_direct=yes
7055
7056 # hardcode_minus_L: Not really in the search PATH,
7057 # but as the default location of the library.
7058 hardcode_minus_L=yes
7059 export_dynamic_flag_spec='${wl}-E'
7060 ;;
7061
7062 hpux10*)
7063 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7064 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7065 else
7066 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7067 fi
7068 if test "$with_gnu_ld" = no; then
7069 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7070 hardcode_libdir_separator=:
7071
7072 hardcode_direct=yes
7073 export_dynamic_flag_spec='${wl}-E'
7074
7075 # hardcode_minus_L: Not really in the search PATH,
7076 # but as the default location of the library.
7077 hardcode_minus_L=yes
7078 fi
7079 ;;
7080
7081 hpux11*)
7082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7083 case $host_cpu in
7084 hppa*64*)
7085 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7086 ;;
7087 ia64*)
7088 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7089 ;;
7090 *)
7091 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7092 ;;
7093 esac
7094 else
7095 case $host_cpu in
7096 hppa*64*)
7097 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7098 ;;
7099 ia64*)
7100 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7101 ;;
7102 *)
7103 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7104 ;;
7105 esac
7106 fi
7107 if test "$with_gnu_ld" = no; then
7108 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7109 hardcode_libdir_separator=:
7110
7111 case $host_cpu in
7112 hppa*64*|ia64*)
7113 hardcode_libdir_flag_spec_ld='+b $libdir'
7114 hardcode_direct=no
7115 hardcode_shlibpath_var=no
7116 ;;
7117 *)
7118 hardcode_direct=yes
7119 export_dynamic_flag_spec='${wl}-E'
7120
7121 # hardcode_minus_L: Not really in the search PATH,
7122 # but as the default location of the library.
7123 hardcode_minus_L=yes
7124 ;;
7125 esac
7126 fi
7127 ;;
7128
7129 irix5* | irix6* | nonstopux*)
7130 if test "$GCC" = yes; then
7131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7132 else
7133 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7134 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7135 fi
7136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7137 hardcode_libdir_separator=:
7138 link_all_deplibs=yes
7139 ;;
7140
7141 netbsd*)
7142 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7144 else
7145 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7146 fi
7147 hardcode_libdir_flag_spec='-R$libdir'
7148 hardcode_direct=yes
7149 hardcode_shlibpath_var=no
7150 ;;
7151
7152 newsos6)
7153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7154 hardcode_direct=yes
7155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7156 hardcode_libdir_separator=:
7157 hardcode_shlibpath_var=no
7158 ;;
7159
7160 openbsd*)
7161 hardcode_direct=yes
7162 hardcode_shlibpath_var=no
7163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7165 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7166 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7167 export_dynamic_flag_spec='${wl}-E'
7168 else
7169 case $host_os in
7170 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7172 hardcode_libdir_flag_spec='-R$libdir'
7173 ;;
7174 *)
7175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7176 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7177 ;;
7178 esac
7179 fi
7180 ;;
7181
7182 os2*)
7183 hardcode_libdir_flag_spec='-L$libdir'
7184 hardcode_minus_L=yes
7185 allow_undefined_flag=unsupported
7186 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'
7187 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7188 ;;
7189
7190 osf3*)
7191 if test "$GCC" = yes; then
7192 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7193 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7194 else
7195 allow_undefined_flag=' -expect_unresolved \*'
7196 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7197 fi
7198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7199 hardcode_libdir_separator=:
7200 ;;
7201
7202 osf4* | osf5*) # as osf3* with the addition of -msym flag
7203 if test "$GCC" = yes; then
7204 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7205 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7207 else
7208 allow_undefined_flag=' -expect_unresolved \*'
7209 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7210 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7211 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7212
7213 # Both c and cxx compiler support -rpath directly
7214 hardcode_libdir_flag_spec='-rpath $libdir'
7215 fi
7216 hardcode_libdir_separator=:
7217 ;;
7218
7219 solaris*)
7220 no_undefined_flag=' -z text'
7221 if test "$GCC" = yes; then
7222 wlarc='${wl}'
7223 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7224 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7225 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7226 else
7227 wlarc=''
7228 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7229 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7230 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7231 fi
7232 hardcode_libdir_flag_spec='-R$libdir'
7233 hardcode_shlibpath_var=no
7234 case $host_os in
7235 solaris2.[0-5] | solaris2.[0-5].*) ;;
7236 *)
7237 # The compiler driver will combine linker options so we
7238 # cannot just pass the convience library names through
7239 # without $wl, iff we do not link with $LD.
7240 # Luckily, gcc supports the same syntax we need for Sun Studio.
7241 # Supported since Solaris 2.6 (maybe 2.5.1?)
7242 case $wlarc in
7243 '')
7244 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7245 *)
7246 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7247 esac ;;
7248 esac
7249 link_all_deplibs=yes
7250 ;;
7251
7252 sunos4*)
7253 if test "x$host_vendor" = xsequent; then
7254 # Use $CC to link under sequent, because it throws in some extra .o
7255 # files that make .init and .fini sections work.
7256 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7257 else
7258 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7259 fi
7260 hardcode_libdir_flag_spec='-L$libdir'
7261 hardcode_direct=yes
7262 hardcode_minus_L=yes
7263 hardcode_shlibpath_var=no
7264 ;;
7265
7266 sysv4)
7267 case $host_vendor in
7268 sni)
7269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7270 hardcode_direct=yes # is this really true???
7271 ;;
7272 siemens)
7273 ## LD is ld it makes a PLAMLIB
7274 ## CC just makes a GrossModule.
7275 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7276 reload_cmds='$CC -r -o $output$reload_objs'
7277 hardcode_direct=no
7278 ;;
7279 motorola)
7280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7281 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7282 ;;
7283 esac
7284 runpath_var='LD_RUN_PATH'
7285 hardcode_shlibpath_var=no
7286 ;;
7287
7288 sysv4.3*)
7289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7290 hardcode_shlibpath_var=no
7291 export_dynamic_flag_spec='-Bexport'
7292 ;;
7293
7294 sysv4*MP*)
7295 if test -d /usr/nec; then
7296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7297 hardcode_shlibpath_var=no
7298 runpath_var=LD_RUN_PATH
7299 hardcode_runpath_var=yes
7300 ld_shlibs=yes
7301 fi
7302 ;;
7303
7304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7305 no_undefined_flag='${wl}-z,text'
7306 archive_cmds_need_lc=no
7307 hardcode_shlibpath_var=no
7308 runpath_var='LD_RUN_PATH'
7309
7310 if test "$GCC" = yes; then
7311 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7312 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7313 else
7314 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7315 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7316 fi
7317 ;;
7318
7319 sysv5* | sco3.2v5* | sco5v6*)
7320 # Note: We can NOT use -z defs as we might desire, because we do not
7321 # link with -lc, and that would cause any symbols used from libc to
7322 # always be unresolved, which means just about no library would
7323 # ever link correctly. If we're not using GNU ld we use -z text
7324 # though, which does catch some bad symbols but isn't as heavy-handed
7325 # as -z defs.
7326 no_undefined_flag='${wl}-z,text'
7327 allow_undefined_flag='${wl}-z,nodefs'
7328 archive_cmds_need_lc=no
7329 hardcode_shlibpath_var=no
7330 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7331 hardcode_libdir_separator=':'
7332 link_all_deplibs=yes
7333 export_dynamic_flag_spec='${wl}-Bexport'
7334 runpath_var='LD_RUN_PATH'
7335
7336 if test "$GCC" = yes; then
7337 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7338 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7339 else
7340 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7341 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7342 fi
7343 ;;
7344
7345 uts4*)
7346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7347 hardcode_libdir_flag_spec='-L$libdir'
7348 hardcode_shlibpath_var=no
7349 ;;
7350
7351 *)
7352 ld_shlibs=no
7353 ;;
7354 esac
7355 fi
7356
7357 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7358 echo "${ECHO_T}$ld_shlibs" >&6; }
7359 test "$ld_shlibs" = no && can_build_shared=no
7360
7361 #
7362 # Do we need to explicitly link libc?
7363 #
7364 case "x$archive_cmds_need_lc" in
7365 x|xyes)
7366 # Assume -lc should be added
7367 archive_cmds_need_lc=yes
7368
7369 if test "$enable_shared" = yes && test "$GCC" = yes; then
7370 case $archive_cmds in
7371 *'~'*)
7372 # FIXME: we may have to deal with multi-command sequences.
7373 ;;
7374 '$CC '*)
7375 # Test whether the compiler implicitly links with -lc since on some
7376 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7377 # to ld, don't add -lc before -lgcc.
7378 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7379 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7380 $rm conftest*
7381 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7382
7383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7384 (eval $ac_compile) 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } 2>conftest.err; then
7388 soname=conftest
7389 lib=conftest
7390 libobjs=conftest.$ac_objext
7391 deplibs=
7392 wl=$lt_prog_compiler_wl
7393 pic_flag=$lt_prog_compiler_pic
7394 compiler_flags=-v
7395 linker_flags=-v
7396 verstring=
7397 output_objdir=.
7398 libname=conftest
7399 lt_save_allow_undefined_flag=$allow_undefined_flag
7400 allow_undefined_flag=
7401 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7402 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7403 ac_status=$?
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }
7406 then
7407 archive_cmds_need_lc=no
7408 else
7409 archive_cmds_need_lc=yes
7410 fi
7411 allow_undefined_flag=$lt_save_allow_undefined_flag
7412 else
7413 cat conftest.err 1>&5
7414 fi
7415 $rm conftest*
7416 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7417 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7418 ;;
7419 esac
7420 fi
7421 ;;
7422 esac
7423
7424 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7425 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7426 library_names_spec=
7427 libname_spec='lib$name'
7428 soname_spec=
7429 shrext_cmds=".so"
7430 postinstall_cmds=
7431 postuninstall_cmds=
7432 finish_cmds=
7433 finish_eval=
7434 shlibpath_var=
7435 shlibpath_overrides_runpath=unknown
7436 version_type=none
7437 dynamic_linker="$host_os ld.so"
7438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7439 if test "$GCC" = yes; then
7440 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7441 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7442 # if the path contains ";" then we assume it to be the separator
7443 # otherwise default to the standard path separator (i.e. ":") - it is
7444 # assumed that no part of a normal pathname contains ";" but that should
7445 # okay in the real world where ";" in dirpaths is itself problematic.
7446 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7447 else
7448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7449 fi
7450 else
7451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7452 fi
7453 need_lib_prefix=unknown
7454 hardcode_into_libs=no
7455
7456 # when you set need_version to no, make sure it does not cause -set_version
7457 # flags to be left without arguments
7458 need_version=unknown
7459
7460 case $host_os in
7461 aix3*)
7462 version_type=linux
7463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7464 shlibpath_var=LIBPATH
7465
7466 # AIX 3 has no versioning support, so we append a major version to the name.
7467 soname_spec='${libname}${release}${shared_ext}$major'
7468 ;;
7469
7470 aix4* | aix5*)
7471 version_type=linux
7472 need_lib_prefix=no
7473 need_version=no
7474 hardcode_into_libs=yes
7475 if test "$host_cpu" = ia64; then
7476 # AIX 5 supports IA64
7477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7478 shlibpath_var=LD_LIBRARY_PATH
7479 else
7480 # With GCC up to 2.95.x, collect2 would create an import file
7481 # for dependence libraries. The import file would start with
7482 # the line `#! .'. This would cause the generated library to
7483 # depend on `.', always an invalid library. This was fixed in
7484 # development snapshots of GCC prior to 3.0.
7485 case $host_os in
7486 aix4 | aix4.[01] | aix4.[01].*)
7487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7488 echo ' yes '
7489 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7490 :
7491 else
7492 can_build_shared=no
7493 fi
7494 ;;
7495 esac
7496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7497 # soname into executable. Probably we can add versioning support to
7498 # collect2, so additional links can be useful in future.
7499 if test "$aix_use_runtimelinking" = yes; then
7500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7501 # instead of lib<name>.a to let people know that these are not
7502 # typical AIX shared libraries.
7503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7504 else
7505 # We preserve .a as extension for shared libraries through AIX4.2
7506 # and later when we are not doing run time linking.
7507 library_names_spec='${libname}${release}.a $libname.a'
7508 soname_spec='${libname}${release}${shared_ext}$major'
7509 fi
7510 shlibpath_var=LIBPATH
7511 fi
7512 ;;
7513
7514 amigaos*)
7515 library_names_spec='$libname.ixlibrary $libname.a'
7516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7517 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'
7518 ;;
7519
7520 beos*)
7521 library_names_spec='${libname}${shared_ext}'
7522 dynamic_linker="$host_os ld.so"
7523 shlibpath_var=LIBRARY_PATH
7524 ;;
7525
7526 bsdi[45]*)
7527 version_type=linux
7528 need_version=no
7529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7530 soname_spec='${libname}${release}${shared_ext}$major'
7531 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7532 shlibpath_var=LD_LIBRARY_PATH
7533 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7534 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7535 # the default ld.so.conf also contains /usr/contrib/lib and
7536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7537 # libtool to hard-code these into programs
7538 ;;
7539
7540 cygwin* | mingw* | pw32*)
7541 version_type=windows
7542 shrext_cmds=".dll"
7543 need_version=no
7544 need_lib_prefix=no
7545
7546 case $GCC,$host_os in
7547 yes,cygwin* | yes,mingw* | yes,pw32*)
7548 library_names_spec='$libname.dll.a'
7549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7550 postinstall_cmds='base_file=`basename \${file}`~
7551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7552 dldir=$destdir/`dirname \$dlpath`~
7553 test -d \$dldir || mkdir -p \$dldir~
7554 $install_prog $dir/$dlname \$dldir/$dlname~
7555 chmod a+x \$dldir/$dlname'
7556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7557 dlpath=$dir/\$dldll~
7558 $rm \$dlpath'
7559 shlibpath_overrides_runpath=yes
7560
7561 case $host_os in
7562 cygwin*)
7563 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7564 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7565 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7566 ;;
7567 mingw*)
7568 # MinGW DLLs use traditional 'lib' prefix
7569 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7571 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7572 # It is most probably a Windows format PATH printed by
7573 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7574 # path with ; separators, and with drive letters. We can handle the
7575 # drive letters (cygwin fileutils understands them), so leave them,
7576 # especially as we might pass files found there to a mingw objdump,
7577 # which wouldn't understand a cygwinified path. Ahh.
7578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7579 else
7580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7581 fi
7582 ;;
7583 pw32*)
7584 # pw32 DLLs use 'pw' prefix rather than 'lib'
7585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7586 ;;
7587 esac
7588 ;;
7589
7590 *)
7591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7592 ;;
7593 esac
7594 dynamic_linker='Win32 ld.exe'
7595 # FIXME: first we should search . and the directory the executable is in
7596 shlibpath_var=PATH
7597 ;;
7598
7599 darwin* | rhapsody*)
7600 dynamic_linker="$host_os dyld"
7601 version_type=darwin
7602 need_lib_prefix=no
7603 need_version=no
7604 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
7605 soname_spec='${libname}${release}${major}$shared_ext'
7606 shlibpath_overrides_runpath=yes
7607 shlibpath_var=DYLD_LIBRARY_PATH
7608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7609 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7610 if test "$GCC" = yes; then
7611 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7612 else
7613 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7614 fi
7615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7616 ;;
7617
7618 dgux*)
7619 version_type=linux
7620 need_lib_prefix=no
7621 need_version=no
7622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7623 soname_spec='${libname}${release}${shared_ext}$major'
7624 shlibpath_var=LD_LIBRARY_PATH
7625 ;;
7626
7627 freebsd1*)
7628 dynamic_linker=no
7629 ;;
7630
7631 kfreebsd*-gnu)
7632 version_type=linux
7633 need_lib_prefix=no
7634 need_version=no
7635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7636 soname_spec='${libname}${release}${shared_ext}$major'
7637 shlibpath_var=LD_LIBRARY_PATH
7638 shlibpath_overrides_runpath=no
7639 hardcode_into_libs=yes
7640 dynamic_linker='GNU ld.so'
7641 ;;
7642
7643 freebsd* | dragonfly*)
7644 # DragonFly does not have aout. When/if they implement a new
7645 # versioning mechanism, adjust this.
7646 if test -x /usr/bin/objformat; then
7647 objformat=`/usr/bin/objformat`
7648 else
7649 case $host_os in
7650 freebsd[123]*) objformat=aout ;;
7651 *) objformat=elf ;;
7652 esac
7653 fi
7654 version_type=freebsd-$objformat
7655 case $version_type in
7656 freebsd-elf*)
7657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7658 need_version=no
7659 need_lib_prefix=no
7660 ;;
7661 freebsd-*)
7662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7663 need_version=yes
7664 ;;
7665 esac
7666 shlibpath_var=LD_LIBRARY_PATH
7667 case $host_os in
7668 freebsd2*)
7669 shlibpath_overrides_runpath=yes
7670 ;;
7671 freebsd3.[01]* | freebsdelf3.[01]*)
7672 shlibpath_overrides_runpath=yes
7673 hardcode_into_libs=yes
7674 ;;
7675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7677 shlibpath_overrides_runpath=no
7678 hardcode_into_libs=yes
7679 ;;
7680 freebsd*) # from 4.6 on
7681 shlibpath_overrides_runpath=yes
7682 hardcode_into_libs=yes
7683 ;;
7684 esac
7685 ;;
7686
7687 gnu*)
7688 version_type=linux
7689 need_lib_prefix=no
7690 need_version=no
7691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7692 soname_spec='${libname}${release}${shared_ext}$major'
7693 shlibpath_var=LD_LIBRARY_PATH
7694 hardcode_into_libs=yes
7695 ;;
7696
7697 hpux9* | hpux10* | hpux11*)
7698 # Give a soname corresponding to the major version so that dld.sl refuses to
7699 # link against other versions.
7700 version_type=sunos
7701 need_lib_prefix=no
7702 need_version=no
7703 case $host_cpu in
7704 ia64*)
7705 shrext_cmds='.so'
7706 hardcode_into_libs=yes
7707 dynamic_linker="$host_os dld.so"
7708 shlibpath_var=LD_LIBRARY_PATH
7709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7711 soname_spec='${libname}${release}${shared_ext}$major'
7712 if test "X$HPUX_IA64_MODE" = X32; then
7713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7714 else
7715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7716 fi
7717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7718 ;;
7719 hppa*64*)
7720 shrext_cmds='.sl'
7721 hardcode_into_libs=yes
7722 dynamic_linker="$host_os dld.sl"
7723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7726 soname_spec='${libname}${release}${shared_ext}$major'
7727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7729 ;;
7730 *)
7731 shrext_cmds='.sl'
7732 dynamic_linker="$host_os dld.sl"
7733 shlibpath_var=SHLIB_PATH
7734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7736 soname_spec='${libname}${release}${shared_ext}$major'
7737 ;;
7738 esac
7739 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7740 postinstall_cmds='chmod 555 $lib'
7741 ;;
7742
7743 interix3*)
7744 version_type=linux
7745 need_lib_prefix=no
7746 need_version=no
7747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7748 soname_spec='${libname}${release}${shared_ext}$major'
7749 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7750 shlibpath_var=LD_LIBRARY_PATH
7751 shlibpath_overrides_runpath=no
7752 hardcode_into_libs=yes
7753 ;;
7754
7755 irix5* | irix6* | nonstopux*)
7756 case $host_os in
7757 nonstopux*) version_type=nonstopux ;;
7758 *)
7759 if test "$lt_cv_prog_gnu_ld" = yes; then
7760 version_type=linux
7761 else
7762 version_type=irix
7763 fi ;;
7764 esac
7765 need_lib_prefix=no
7766 need_version=no
7767 soname_spec='${libname}${release}${shared_ext}$major'
7768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7769 case $host_os in
7770 irix5* | nonstopux*)
7771 libsuff= shlibsuff=
7772 ;;
7773 *)
7774 case $LD in # libtool.m4 will add one of these switches to LD
7775 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7776 libsuff= shlibsuff= libmagic=32-bit;;
7777 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7778 libsuff=32 shlibsuff=N32 libmagic=N32;;
7779 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7780 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7781 *) libsuff= shlibsuff= libmagic=never-match;;
7782 esac
7783 ;;
7784 esac
7785 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7786 shlibpath_overrides_runpath=no
7787 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7788 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7789 hardcode_into_libs=yes
7790 ;;
7791
7792 # No shared lib support for Linux oldld, aout, or coff.
7793 linux*oldld* | linux*aout* | linux*coff*)
7794 dynamic_linker=no
7795 ;;
7796
7797 # This must be Linux ELF.
7798 linux*)
7799 version_type=linux
7800 need_lib_prefix=no
7801 need_version=no
7802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7803 soname_spec='${libname}${release}${shared_ext}$major'
7804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7805 shlibpath_var=LD_LIBRARY_PATH
7806 shlibpath_overrides_runpath=no
7807 # This implies no fast_install, which is unacceptable.
7808 # Some rework will be needed to allow for fast_install
7809 # before this can be enabled.
7810 hardcode_into_libs=yes
7811
7812 # Append ld.so.conf contents to the search path
7813 if test -f /etc/ld.so.conf; then
7814 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7815 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7816 fi
7817
7818 # We used to test for /lib/ld.so.1 and disable shared libraries on
7819 # powerpc, because MkLinux only supported shared libraries with the
7820 # GNU dynamic linker. Since this was broken with cross compilers,
7821 # most powerpc-linux boxes support dynamic linking these days and
7822 # people can always --disable-shared, the test was removed, and we
7823 # assume the GNU/Linux dynamic linker is in use.
7824 dynamic_linker='GNU/Linux ld.so'
7825 ;;
7826
7827 knetbsd*-gnu)
7828 version_type=linux
7829 need_lib_prefix=no
7830 need_version=no
7831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7832 soname_spec='${libname}${release}${shared_ext}$major'
7833 shlibpath_var=LD_LIBRARY_PATH
7834 shlibpath_overrides_runpath=no
7835 hardcode_into_libs=yes
7836 dynamic_linker='GNU ld.so'
7837 ;;
7838
7839 netbsd*)
7840 version_type=sunos
7841 need_lib_prefix=no
7842 need_version=no
7843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7846 dynamic_linker='NetBSD (a.out) ld.so'
7847 else
7848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7849 soname_spec='${libname}${release}${shared_ext}$major'
7850 dynamic_linker='NetBSD ld.elf_so'
7851 fi
7852 shlibpath_var=LD_LIBRARY_PATH
7853 shlibpath_overrides_runpath=yes
7854 hardcode_into_libs=yes
7855 ;;
7856
7857 newsos6)
7858 version_type=linux
7859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7860 shlibpath_var=LD_LIBRARY_PATH
7861 shlibpath_overrides_runpath=yes
7862 ;;
7863
7864 nto-qnx*)
7865 version_type=linux
7866 need_lib_prefix=no
7867 need_version=no
7868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7869 soname_spec='${libname}${release}${shared_ext}$major'
7870 shlibpath_var=LD_LIBRARY_PATH
7871 shlibpath_overrides_runpath=yes
7872 ;;
7873
7874 openbsd*)
7875 version_type=sunos
7876 sys_lib_dlsearch_path_spec="/usr/lib"
7877 need_lib_prefix=no
7878 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7879 case $host_os in
7880 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7881 *) need_version=no ;;
7882 esac
7883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7885 shlibpath_var=LD_LIBRARY_PATH
7886 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7887 case $host_os in
7888 openbsd2.[89] | openbsd2.[89].*)
7889 shlibpath_overrides_runpath=no
7890 ;;
7891 *)
7892 shlibpath_overrides_runpath=yes
7893 ;;
7894 esac
7895 else
7896 shlibpath_overrides_runpath=yes
7897 fi
7898 ;;
7899
7900 os2*)
7901 libname_spec='$name'
7902 shrext_cmds=".dll"
7903 need_lib_prefix=no
7904 library_names_spec='$libname${shared_ext} $libname.a'
7905 dynamic_linker='OS/2 ld.exe'
7906 shlibpath_var=LIBPATH
7907 ;;
7908
7909 osf3* | osf4* | osf5*)
7910 version_type=osf
7911 need_lib_prefix=no
7912 need_version=no
7913 soname_spec='${libname}${release}${shared_ext}$major'
7914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7915 shlibpath_var=LD_LIBRARY_PATH
7916 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7917 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7918 ;;
7919
7920 solaris*)
7921 version_type=linux
7922 need_lib_prefix=no
7923 need_version=no
7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925 soname_spec='${libname}${release}${shared_ext}$major'
7926 shlibpath_var=LD_LIBRARY_PATH
7927 shlibpath_overrides_runpath=yes
7928 hardcode_into_libs=yes
7929 # ldd complains unless libraries are executable
7930 postinstall_cmds='chmod +x $lib'
7931 ;;
7932
7933 sunos4*)
7934 version_type=sunos
7935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7937 shlibpath_var=LD_LIBRARY_PATH
7938 shlibpath_overrides_runpath=yes
7939 if test "$with_gnu_ld" = yes; then
7940 need_lib_prefix=no
7941 fi
7942 need_version=yes
7943 ;;
7944
7945 sysv4 | sysv4.3*)
7946 version_type=linux
7947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7948 soname_spec='${libname}${release}${shared_ext}$major'
7949 shlibpath_var=LD_LIBRARY_PATH
7950 case $host_vendor in
7951 sni)
7952 shlibpath_overrides_runpath=no
7953 need_lib_prefix=no
7954 export_dynamic_flag_spec='${wl}-Blargedynsym'
7955 runpath_var=LD_RUN_PATH
7956 ;;
7957 siemens)
7958 need_lib_prefix=no
7959 ;;
7960 motorola)
7961 need_lib_prefix=no
7962 need_version=no
7963 shlibpath_overrides_runpath=no
7964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7965 ;;
7966 esac
7967 ;;
7968
7969 sysv4*MP*)
7970 if test -d /usr/nec ;then
7971 version_type=linux
7972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7973 soname_spec='$libname${shared_ext}.$major'
7974 shlibpath_var=LD_LIBRARY_PATH
7975 fi
7976 ;;
7977
7978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7979 version_type=freebsd-elf
7980 need_lib_prefix=no
7981 need_version=no
7982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7983 soname_spec='${libname}${release}${shared_ext}$major'
7984 shlibpath_var=LD_LIBRARY_PATH
7985 hardcode_into_libs=yes
7986 if test "$with_gnu_ld" = yes; then
7987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
7988 shlibpath_overrides_runpath=no
7989 else
7990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
7991 shlibpath_overrides_runpath=yes
7992 case $host_os in
7993 sco3.2v5*)
7994 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
7995 ;;
7996 esac
7997 fi
7998 sys_lib_dlsearch_path_spec='/usr/lib'
7999 ;;
8000
8001 uts4*)
8002 version_type=linux
8003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8004 soname_spec='${libname}${release}${shared_ext}$major'
8005 shlibpath_var=LD_LIBRARY_PATH
8006 ;;
8007
8008 *)
8009 dynamic_linker=no
8010 ;;
8011 esac
8012 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8013 echo "${ECHO_T}$dynamic_linker" >&6; }
8014 test "$dynamic_linker" = no && can_build_shared=no
8015
8016 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8017 if test "$GCC" = yes; then
8018 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8019 fi
8020
8021 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8022 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8023 hardcode_action=
8024 if test -n "$hardcode_libdir_flag_spec" || \
8025 test -n "$runpath_var" || \
8026 test "X$hardcode_automatic" = "Xyes" ; then
8027
8028 # We can hardcode non-existant directories.
8029 if test "$hardcode_direct" != no &&
8030 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8031 # have to relink, otherwise we might link with an installed library
8032 # when we should be linking with a yet-to-be-installed one
8033 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8034 test "$hardcode_minus_L" != no; then
8035 # Linking always hardcodes the temporary library directory.
8036 hardcode_action=relink
8037 else
8038 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8039 hardcode_action=immediate
8040 fi
8041 else
8042 # We cannot hardcode anything, or else we can only hardcode existing
8043 # directories.
8044 hardcode_action=unsupported
8045 fi
8046 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8047 echo "${ECHO_T}$hardcode_action" >&6; }
8048
8049 if test "$hardcode_action" = relink; then
8050 # Fast installation is not supported
8051 enable_fast_install=no
8052 elif test "$shlibpath_overrides_runpath" = yes ||
8053 test "$enable_shared" = no; then
8054 # Fast installation is not necessary
8055 enable_fast_install=needless
8056 fi
8057
8058 striplib=
8059 old_striplib=
8060 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8061 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8062 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8063 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8064 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8065 { echo "$as_me:$LINENO: result: yes" >&5
8066 echo "${ECHO_T}yes" >&6; }
8067 else
8068 # FIXME - insert some real tests, host_os isn't really good enough
8069 case $host_os in
8070 darwin*)
8071 if test -n "$STRIP" ; then
8072 striplib="$STRIP -x"
8073 { echo "$as_me:$LINENO: result: yes" >&5
8074 echo "${ECHO_T}yes" >&6; }
8075 else
8076 { echo "$as_me:$LINENO: result: no" >&5
8077 echo "${ECHO_T}no" >&6; }
8078 fi
8079 ;;
8080 *)
8081 { echo "$as_me:$LINENO: result: no" >&5
8082 echo "${ECHO_T}no" >&6; }
8083 ;;
8084 esac
8085 fi
8086
8087 if test "x$enable_dlopen" != xyes; then
8088 enable_dlopen=unknown
8089 enable_dlopen_self=unknown
8090 enable_dlopen_self_static=unknown
8091 else
8092 lt_cv_dlopen=no
8093 lt_cv_dlopen_libs=
8094
8095 case $host_os in
8096 beos*)
8097 lt_cv_dlopen="load_add_on"
8098 lt_cv_dlopen_libs=
8099 lt_cv_dlopen_self=yes
8100 ;;
8101
8102 mingw* | pw32*)
8103 lt_cv_dlopen="LoadLibrary"
8104 lt_cv_dlopen_libs=
8105 ;;
8106
8107 cygwin*)
8108 lt_cv_dlopen="dlopen"
8109 lt_cv_dlopen_libs=
8110 ;;
8111
8112 darwin*)
8113 # if libdl is installed we need to link against it
8114 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8115 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8116 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 else
8119 ac_check_lib_save_LIBS=$LIBS
8120 LIBS="-ldl $LIBS"
8121 cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h. */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127
8128 /* Override any GCC internal prototype to avoid an error.
8129 Use char because int might match the return type of a GCC
8130 builtin and then its argument prototype would still apply. */
8131 #ifdef __cplusplus
8132 extern "C"
8133 #endif
8134 char dlopen ();
8135 int
8136 main ()
8137 {
8138 return dlopen ();
8139 ;
8140 return 0;
8141 }
8142 _ACEOF
8143 rm -f conftest.$ac_objext conftest$ac_exeext
8144 if { (ac_try="$ac_link"
8145 case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_link") 2>conftest.er1
8151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest$ac_exeext &&
8160 $as_test_x conftest$ac_exeext; then
8161 ac_cv_lib_dl_dlopen=yes
8162 else
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8165
8166 ac_cv_lib_dl_dlopen=no
8167 fi
8168
8169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8170 conftest$ac_exeext conftest.$ac_ext
8171 LIBS=$ac_check_lib_save_LIBS
8172 fi
8173 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8174 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8175 if test $ac_cv_lib_dl_dlopen = yes; then
8176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8177 else
8178
8179 lt_cv_dlopen="dyld"
8180 lt_cv_dlopen_libs=
8181 lt_cv_dlopen_self=yes
8182
8183 fi
8184
8185 ;;
8186
8187 *)
8188 { echo "$as_me:$LINENO: checking for shl_load" >&5
8189 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8190 if test "${ac_cv_func_shl_load+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h. */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8201 #define shl_load innocuous_shl_load
8202
8203 /* System header to define __stub macros and hopefully few prototypes,
8204 which can conflict with char shl_load (); below.
8205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8206 <limits.h> exists even on freestanding compilers. */
8207
8208 #ifdef __STDC__
8209 # include <limits.h>
8210 #else
8211 # include <assert.h>
8212 #endif
8213
8214 #undef shl_load
8215
8216 /* Override any GCC internal prototype to avoid an error.
8217 Use char because int might match the return type of a GCC
8218 builtin and then its argument prototype would still apply. */
8219 #ifdef __cplusplus
8220 extern "C"
8221 #endif
8222 char shl_load ();
8223 /* The GNU C library defines this for functions which it implements
8224 to always fail with ENOSYS. Some functions are actually named
8225 something starting with __ and the normal name is an alias. */
8226 #if defined __stub_shl_load || defined __stub___shl_load
8227 choke me
8228 #endif
8229
8230 int
8231 main ()
8232 {
8233 return shl_load ();
8234 ;
8235 return 0;
8236 }
8237 _ACEOF
8238 rm -f conftest.$ac_objext conftest$ac_exeext
8239 if { (ac_try="$ac_link"
8240 case "(($ac_try" in
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8243 esac
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245 (eval "$ac_link") 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } && {
8252 test -z "$ac_c_werror_flag" ||
8253 test ! -s conftest.err
8254 } && test -s conftest$ac_exeext &&
8255 $as_test_x conftest$ac_exeext; then
8256 ac_cv_func_shl_load=yes
8257 else
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8260
8261 ac_cv_func_shl_load=no
8262 fi
8263
8264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8265 conftest$ac_exeext conftest.$ac_ext
8266 fi
8267 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8268 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8269 if test $ac_cv_func_shl_load = yes; then
8270 lt_cv_dlopen="shl_load"
8271 else
8272 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8273 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8274 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277 ac_check_lib_save_LIBS=$LIBS
8278 LIBS="-ldld $LIBS"
8279 cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h. */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8285
8286 /* Override any GCC internal prototype to avoid an error.
8287 Use char because int might match the return type of a GCC
8288 builtin and then its argument prototype would still apply. */
8289 #ifdef __cplusplus
8290 extern "C"
8291 #endif
8292 char shl_load ();
8293 int
8294 main ()
8295 {
8296 return shl_load ();
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest.$ac_objext conftest$ac_exeext
8302 if { (ac_try="$ac_link"
8303 case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_link") 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest$ac_exeext &&
8318 $as_test_x conftest$ac_exeext; then
8319 ac_cv_lib_dld_shl_load=yes
8320 else
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8323
8324 ac_cv_lib_dld_shl_load=no
8325 fi
8326
8327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8328 conftest$ac_exeext conftest.$ac_ext
8329 LIBS=$ac_check_lib_save_LIBS
8330 fi
8331 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8332 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8333 if test $ac_cv_lib_dld_shl_load = yes; then
8334 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8335 else
8336 { echo "$as_me:$LINENO: checking for dlopen" >&5
8337 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8338 if test "${ac_cv_func_dlopen+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 else
8341 cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h. */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8349 #define dlopen innocuous_dlopen
8350
8351 /* System header to define __stub macros and hopefully few prototypes,
8352 which can conflict with char dlopen (); below.
8353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8354 <limits.h> exists even on freestanding compilers. */
8355
8356 #ifdef __STDC__
8357 # include <limits.h>
8358 #else
8359 # include <assert.h>
8360 #endif
8361
8362 #undef dlopen
8363
8364 /* Override any GCC internal prototype to avoid an error.
8365 Use char because int might match the return type of a GCC
8366 builtin and then its argument prototype would still apply. */
8367 #ifdef __cplusplus
8368 extern "C"
8369 #endif
8370 char dlopen ();
8371 /* The GNU C library defines this for functions which it implements
8372 to always fail with ENOSYS. Some functions are actually named
8373 something starting with __ and the normal name is an alias. */
8374 #if defined __stub_dlopen || defined __stub___dlopen
8375 choke me
8376 #endif
8377
8378 int
8379 main ()
8380 {
8381 return dlopen ();
8382 ;
8383 return 0;
8384 }
8385 _ACEOF
8386 rm -f conftest.$ac_objext conftest$ac_exeext
8387 if { (ac_try="$ac_link"
8388 case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391 esac
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_link") 2>conftest.er1
8394 ac_status=$?
8395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } && {
8400 test -z "$ac_c_werror_flag" ||
8401 test ! -s conftest.err
8402 } && test -s conftest$ac_exeext &&
8403 $as_test_x conftest$ac_exeext; then
8404 ac_cv_func_dlopen=yes
8405 else
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8408
8409 ac_cv_func_dlopen=no
8410 fi
8411
8412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8413 conftest$ac_exeext conftest.$ac_ext
8414 fi
8415 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8416 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8417 if test $ac_cv_func_dlopen = yes; then
8418 lt_cv_dlopen="dlopen"
8419 else
8420 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8421 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8422 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425 ac_check_lib_save_LIBS=$LIBS
8426 LIBS="-ldl $LIBS"
8427 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h. */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433
8434 /* Override any GCC internal prototype to avoid an error.
8435 Use char because int might match the return type of a GCC
8436 builtin and then its argument prototype would still apply. */
8437 #ifdef __cplusplus
8438 extern "C"
8439 #endif
8440 char dlopen ();
8441 int
8442 main ()
8443 {
8444 return dlopen ();
8445 ;
8446 return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (ac_try="$ac_link"
8451 case "(($ac_try" in
8452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453 *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456 (eval "$ac_link") 2>conftest.er1
8457 ac_status=$?
8458 grep -v '^ *+' conftest.er1 >conftest.err
8459 rm -f conftest.er1
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } && {
8463 test -z "$ac_c_werror_flag" ||
8464 test ! -s conftest.err
8465 } && test -s conftest$ac_exeext &&
8466 $as_test_x conftest$ac_exeext; then
8467 ac_cv_lib_dl_dlopen=yes
8468 else
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 ac_cv_lib_dl_dlopen=no
8473 fi
8474
8475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8476 conftest$ac_exeext conftest.$ac_ext
8477 LIBS=$ac_check_lib_save_LIBS
8478 fi
8479 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8480 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8481 if test $ac_cv_lib_dl_dlopen = yes; then
8482 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8483 else
8484 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8485 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8486 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489 ac_check_lib_save_LIBS=$LIBS
8490 LIBS="-lsvld $LIBS"
8491 cat >conftest.$ac_ext <<_ACEOF
8492 /* confdefs.h. */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8497
8498 /* Override any GCC internal prototype to avoid an error.
8499 Use char because int might match the return type of a GCC
8500 builtin and then its argument prototype would still apply. */
8501 #ifdef __cplusplus
8502 extern "C"
8503 #endif
8504 char dlopen ();
8505 int
8506 main ()
8507 {
8508 return dlopen ();
8509 ;
8510 return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (ac_try="$ac_link"
8515 case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_link") 2>conftest.er1
8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_c_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest$ac_exeext &&
8530 $as_test_x conftest$ac_exeext; then
8531 ac_cv_lib_svld_dlopen=yes
8532 else
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536 ac_cv_lib_svld_dlopen=no
8537 fi
8538
8539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8540 conftest$ac_exeext conftest.$ac_ext
8541 LIBS=$ac_check_lib_save_LIBS
8542 fi
8543 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8544 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8545 if test $ac_cv_lib_svld_dlopen = yes; then
8546 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8547 else
8548 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8549 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8550 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553 ac_check_lib_save_LIBS=$LIBS
8554 LIBS="-ldld $LIBS"
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h. */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8561
8562 /* Override any GCC internal prototype to avoid an error.
8563 Use char because int might match the return type of a GCC
8564 builtin and then its argument prototype would still apply. */
8565 #ifdef __cplusplus
8566 extern "C"
8567 #endif
8568 char dld_link ();
8569 int
8570 main ()
8571 {
8572 return dld_link ();
8573 ;
8574 return 0;
8575 }
8576 _ACEOF
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (ac_try="$ac_link"
8579 case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_link") 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest$ac_exeext &&
8594 $as_test_x conftest$ac_exeext; then
8595 ac_cv_lib_dld_dld_link=yes
8596 else
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8599
8600 ac_cv_lib_dld_dld_link=no
8601 fi
8602
8603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8604 conftest$ac_exeext conftest.$ac_ext
8605 LIBS=$ac_check_lib_save_LIBS
8606 fi
8607 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8608 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8609 if test $ac_cv_lib_dld_dld_link = yes; then
8610 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8611 fi
8612
8613
8614 fi
8615
8616
8617 fi
8618
8619
8620 fi
8621
8622
8623 fi
8624
8625
8626 fi
8627
8628 ;;
8629 esac
8630
8631 if test "x$lt_cv_dlopen" != xno; then
8632 enable_dlopen=yes
8633 else
8634 enable_dlopen=no
8635 fi
8636
8637 case $lt_cv_dlopen in
8638 dlopen)
8639 save_CPPFLAGS="$CPPFLAGS"
8640 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8641
8642 save_LDFLAGS="$LDFLAGS"
8643 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8644
8645 save_LIBS="$LIBS"
8646 LIBS="$lt_cv_dlopen_libs $LIBS"
8647
8648 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8649 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8650 if test "${lt_cv_dlopen_self+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652 else
8653 if test "$cross_compiling" = yes; then :
8654 lt_cv_dlopen_self=cross
8655 else
8656 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8657 lt_status=$lt_dlunknown
8658 cat > conftest.$ac_ext <<EOF
8659 #line 8659 "configure"
8660 #include "confdefs.h"
8661
8662 #if HAVE_DLFCN_H
8663 #include <dlfcn.h>
8664 #endif
8665
8666 #include <stdio.h>
8667
8668 #ifdef RTLD_GLOBAL
8669 # define LT_DLGLOBAL RTLD_GLOBAL
8670 #else
8671 # ifdef DL_GLOBAL
8672 # define LT_DLGLOBAL DL_GLOBAL
8673 # else
8674 # define LT_DLGLOBAL 0
8675 # endif
8676 #endif
8677
8678 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8679 find out it does not work in some platform. */
8680 #ifndef LT_DLLAZY_OR_NOW
8681 # ifdef RTLD_LAZY
8682 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8683 # else
8684 # ifdef DL_LAZY
8685 # define LT_DLLAZY_OR_NOW DL_LAZY
8686 # else
8687 # ifdef RTLD_NOW
8688 # define LT_DLLAZY_OR_NOW RTLD_NOW
8689 # else
8690 # ifdef DL_NOW
8691 # define LT_DLLAZY_OR_NOW DL_NOW
8692 # else
8693 # define LT_DLLAZY_OR_NOW 0
8694 # endif
8695 # endif
8696 # endif
8697 # endif
8698 #endif
8699
8700 #ifdef __cplusplus
8701 extern "C" void exit (int);
8702 #endif
8703
8704 void fnord() { int i=42;}
8705 int main ()
8706 {
8707 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8708 int status = $lt_dlunknown;
8709
8710 if (self)
8711 {
8712 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8713 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8714 /* dlclose (self); */
8715 }
8716 else
8717 puts (dlerror ());
8718
8719 exit (status);
8720 }
8721 EOF
8722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8723 (eval $ac_link) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8727 (./conftest; exit; ) >&5 2>/dev/null
8728 lt_status=$?
8729 case x$lt_status in
8730 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8731 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8732 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8733 esac
8734 else :
8735 # compilation failed
8736 lt_cv_dlopen_self=no
8737 fi
8738 fi
8739 rm -fr conftest*
8740
8741
8742 fi
8743 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8744 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
8745
8746 if test "x$lt_cv_dlopen_self" = xyes; then
8747 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8748 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8749 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
8750 if test "${lt_cv_dlopen_self_static+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753 if test "$cross_compiling" = yes; then :
8754 lt_cv_dlopen_self_static=cross
8755 else
8756 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8757 lt_status=$lt_dlunknown
8758 cat > conftest.$ac_ext <<EOF
8759 #line 8759 "configure"
8760 #include "confdefs.h"
8761
8762 #if HAVE_DLFCN_H
8763 #include <dlfcn.h>
8764 #endif
8765
8766 #include <stdio.h>
8767
8768 #ifdef RTLD_GLOBAL
8769 # define LT_DLGLOBAL RTLD_GLOBAL
8770 #else
8771 # ifdef DL_GLOBAL
8772 # define LT_DLGLOBAL DL_GLOBAL
8773 # else
8774 # define LT_DLGLOBAL 0
8775 # endif
8776 #endif
8777
8778 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8779 find out it does not work in some platform. */
8780 #ifndef LT_DLLAZY_OR_NOW
8781 # ifdef RTLD_LAZY
8782 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8783 # else
8784 # ifdef DL_LAZY
8785 # define LT_DLLAZY_OR_NOW DL_LAZY
8786 # else
8787 # ifdef RTLD_NOW
8788 # define LT_DLLAZY_OR_NOW RTLD_NOW
8789 # else
8790 # ifdef DL_NOW
8791 # define LT_DLLAZY_OR_NOW DL_NOW
8792 # else
8793 # define LT_DLLAZY_OR_NOW 0
8794 # endif
8795 # endif
8796 # endif
8797 # endif
8798 #endif
8799
8800 #ifdef __cplusplus
8801 extern "C" void exit (int);
8802 #endif
8803
8804 void fnord() { int i=42;}
8805 int main ()
8806 {
8807 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8808 int status = $lt_dlunknown;
8809
8810 if (self)
8811 {
8812 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8813 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8814 /* dlclose (self); */
8815 }
8816 else
8817 puts (dlerror ());
8818
8819 exit (status);
8820 }
8821 EOF
8822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823 (eval $ac_link) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8827 (./conftest; exit; ) >&5 2>/dev/null
8828 lt_status=$?
8829 case x$lt_status in
8830 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8831 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8832 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8833 esac
8834 else :
8835 # compilation failed
8836 lt_cv_dlopen_self_static=no
8837 fi
8838 fi
8839 rm -fr conftest*
8840
8841
8842 fi
8843 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8844 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
8845 fi
8846
8847 CPPFLAGS="$save_CPPFLAGS"
8848 LDFLAGS="$save_LDFLAGS"
8849 LIBS="$save_LIBS"
8850 ;;
8851 esac
8852
8853 case $lt_cv_dlopen_self in
8854 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8855 *) enable_dlopen_self=unknown ;;
8856 esac
8857
8858 case $lt_cv_dlopen_self_static in
8859 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8860 *) enable_dlopen_self_static=unknown ;;
8861 esac
8862 fi
8863
8864
8865 # Report which library types will actually be built
8866 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8867 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
8868 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
8869 echo "${ECHO_T}$can_build_shared" >&6; }
8870
8871 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8872 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
8873 test "$can_build_shared" = "no" && enable_shared=no
8874
8875 # On AIX, shared libraries and static libraries use the same namespace, and
8876 # are all built from PIC.
8877 case $host_os in
8878 aix3*)
8879 test "$enable_shared" = yes && enable_static=no
8880 if test -n "$RANLIB"; then
8881 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8882 postinstall_cmds='$RANLIB $lib'
8883 fi
8884 ;;
8885
8886 aix4* | aix5*)
8887 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8888 test "$enable_shared" = yes && enable_static=no
8889 fi
8890 ;;
8891 esac
8892 { echo "$as_me:$LINENO: result: $enable_shared" >&5
8893 echo "${ECHO_T}$enable_shared" >&6; }
8894
8895 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8896 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
8897 # Make sure either enable_shared or enable_static is yes.
8898 test "$enable_shared" = yes || enable_static=yes
8899 { echo "$as_me:$LINENO: result: $enable_static" >&5
8900 echo "${ECHO_T}$enable_static" >&6; }
8901
8902 # The else clause should only fire when bootstrapping the
8903 # libtool distribution, otherwise you forgot to ship ltmain.sh
8904 # with your package, and you will get complaints that there are
8905 # no rules to generate ltmain.sh.
8906 if test -f "$ltmain"; then
8907 # See if we are running on zsh, and set the options which allow our commands through
8908 # without removal of \ escapes.
8909 if test -n "${ZSH_VERSION+set}" ; then
8910 setopt NO_GLOB_SUBST
8911 fi
8912 # Now quote all the things that may contain metacharacters while being
8913 # careful not to overquote the AC_SUBSTed values. We take copies of the
8914 # variables and quote the copies for generation of the libtool script.
8915 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
8916 SED SHELL STRIP \
8917 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8918 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8919 deplibs_check_method reload_flag reload_cmds need_locks \
8920 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8921 lt_cv_sys_global_symbol_to_c_name_address \
8922 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8923 old_postinstall_cmds old_postuninstall_cmds \
8924 compiler \
8925 CC \
8926 LD \
8927 lt_prog_compiler_wl \
8928 lt_prog_compiler_pic \
8929 lt_prog_compiler_static \
8930 lt_prog_compiler_no_builtin_flag \
8931 export_dynamic_flag_spec \
8932 thread_safe_flag_spec \
8933 whole_archive_flag_spec \
8934 enable_shared_with_static_runtimes \
8935 old_archive_cmds \
8936 old_archive_from_new_cmds \
8937 predep_objects \
8938 postdep_objects \
8939 predeps \
8940 postdeps \
8941 compiler_lib_search_path \
8942 archive_cmds \
8943 archive_expsym_cmds \
8944 postinstall_cmds \
8945 postuninstall_cmds \
8946 old_archive_from_expsyms_cmds \
8947 allow_undefined_flag \
8948 no_undefined_flag \
8949 export_symbols_cmds \
8950 hardcode_libdir_flag_spec \
8951 hardcode_libdir_flag_spec_ld \
8952 hardcode_libdir_separator \
8953 hardcode_automatic \
8954 module_cmds \
8955 module_expsym_cmds \
8956 lt_cv_prog_compiler_c_o \
8957 exclude_expsyms \
8958 include_expsyms; do
8959
8960 case $var in
8961 old_archive_cmds | \
8962 old_archive_from_new_cmds | \
8963 archive_cmds | \
8964 archive_expsym_cmds | \
8965 module_cmds | \
8966 module_expsym_cmds | \
8967 old_archive_from_expsyms_cmds | \
8968 export_symbols_cmds | \
8969 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8970 postinstall_cmds | postuninstall_cmds | \
8971 old_postinstall_cmds | old_postuninstall_cmds | \
8972 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8973 # Double-quote double-evaled strings.
8974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8975 ;;
8976 *)
8977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8978 ;;
8979 esac
8980 done
8981
8982 case $lt_echo in
8983 *'\$0 --fallback-echo"')
8984 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8985 ;;
8986 esac
8987
8988 cfgfile="${ofile}T"
8989 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8990 $rm -f "$cfgfile"
8991 { echo "$as_me:$LINENO: creating $ofile" >&5
8992 echo "$as_me: creating $ofile" >&6;}
8993
8994 cat <<__EOF__ >> "$cfgfile"
8995 #! $SHELL
8996
8997 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8998 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8999 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9000 #
9001 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9002 # Free Software Foundation, Inc.
9003 #
9004 # This file is part of GNU Libtool:
9005 # Originally by Gordon Matzigkeit <[email protected]>, 1996
9006 #
9007 # This program is free software; you can redistribute it and/or modify
9008 # it under the terms of the GNU General Public License as published by
9009 # the Free Software Foundation; either version 2 of the License, or
9010 # (at your option) any later version.
9011 #
9012 # This program is distributed in the hope that it will be useful, but
9013 # WITHOUT ANY WARRANTY; without even the implied warranty of
9014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9015 # General Public License for more details.
9016 #
9017 # You should have received a copy of the GNU General Public License
9018 # along with this program; if not, write to the Free Software
9019 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9020 #
9021 # As a special exception to the GNU General Public License, if you
9022 # distribute this file as part of a program that contains a
9023 # configuration script generated by Autoconf, you may include it under
9024 # the same distribution terms that you use for the rest of that program.
9025
9026 # A sed program that does not truncate output.
9027 SED=$lt_SED
9028
9029 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9030 Xsed="$SED -e 1s/^X//"
9031
9032 # The HP-UX ksh and POSIX shell print the target directory to stdout
9033 # if CDPATH is set.
9034 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9035
9036 # The names of the tagged configurations supported by this script.
9037 available_tags=
9038
9039 # ### BEGIN LIBTOOL CONFIG
9040
9041 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9042
9043 # Shell to use when invoking shell scripts.
9044 SHELL=$lt_SHELL
9045
9046 # Whether or not to build shared libraries.
9047 build_libtool_libs=$enable_shared
9048
9049 # Whether or not to build static libraries.
9050 build_old_libs=$enable_static
9051
9052 # Whether or not to add -lc for building shared libraries.
9053 build_libtool_need_lc=$archive_cmds_need_lc
9054
9055 # Whether or not to disallow shared libs when runtime libs are static
9056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9057
9058 # Whether or not to optimize for fast installation.
9059 fast_install=$enable_fast_install
9060
9061 # The host system.
9062 host_alias=$host_alias
9063 host=$host
9064 host_os=$host_os
9065
9066 # The build system.
9067 build_alias=$build_alias
9068 build=$build
9069 build_os=$build_os
9070
9071 # An echo program that does not interpret backslashes.
9072 echo=$lt_echo
9073
9074 # The archiver.
9075 AR=$lt_AR
9076 AR_FLAGS=$lt_AR_FLAGS
9077
9078 # A C compiler.
9079 LTCC=$lt_LTCC
9080
9081 # LTCC compiler flags.
9082 LTCFLAGS=$lt_LTCFLAGS
9083
9084 # A language-specific compiler.
9085 CC=$lt_compiler
9086
9087 # Is the compiler the GNU C compiler?
9088 with_gcc=$GCC
9089
9090 # An ERE matcher.
9091 EGREP=$lt_EGREP
9092
9093 # The linker used to build libraries.
9094 LD=$lt_LD
9095
9096 # Whether we need hard or soft links.
9097 LN_S=$lt_LN_S
9098
9099 # A BSD-compatible nm program.
9100 NM=$lt_NM
9101
9102 # A symbol stripping program
9103 STRIP=$lt_STRIP
9104
9105 # Used to examine libraries when file_magic_cmd begins "file"
9106 MAGIC_CMD=$MAGIC_CMD
9107
9108 # Used on cygwin: DLL creation program.
9109 DLLTOOL="$DLLTOOL"
9110
9111 # Used on cygwin: object dumper.
9112 OBJDUMP="$OBJDUMP"
9113
9114 # Used on cygwin: assembler.
9115 AS="$AS"
9116
9117 # The name of the directory that contains temporary libtool files.
9118 objdir=$objdir
9119
9120 # How to create reloadable object files.
9121 reload_flag=$lt_reload_flag
9122 reload_cmds=$lt_reload_cmds
9123
9124 # How to pass a linker flag through the compiler.
9125 wl=$lt_lt_prog_compiler_wl
9126
9127 # Object file suffix (normally "o").
9128 objext="$ac_objext"
9129
9130 # Old archive suffix (normally "a").
9131 libext="$libext"
9132
9133 # Shared library suffix (normally ".so").
9134 shrext_cmds='$shrext_cmds'
9135
9136 # Executable file suffix (normally "").
9137 exeext="$exeext"
9138
9139 # Additional compiler flags for building library objects.
9140 pic_flag=$lt_lt_prog_compiler_pic
9141 pic_mode=$pic_mode
9142
9143 # What is the maximum length of a command?
9144 max_cmd_len=$lt_cv_sys_max_cmd_len
9145
9146 # Does compiler simultaneously support -c and -o options?
9147 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9148
9149 # Must we lock files when doing compilation?
9150 need_locks=$lt_need_locks
9151
9152 # Do we need the lib prefix for modules?
9153 need_lib_prefix=$need_lib_prefix
9154
9155 # Do we need a version for libraries?
9156 need_version=$need_version
9157
9158 # Whether dlopen is supported.
9159 dlopen_support=$enable_dlopen
9160
9161 # Whether dlopen of programs is supported.
9162 dlopen_self=$enable_dlopen_self
9163
9164 # Whether dlopen of statically linked programs is supported.
9165 dlopen_self_static=$enable_dlopen_self_static
9166
9167 # Compiler flag to prevent dynamic linking.
9168 link_static_flag=$lt_lt_prog_compiler_static
9169
9170 # Compiler flag to turn off builtin functions.
9171 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9172
9173 # Compiler flag to allow reflexive dlopens.
9174 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9175
9176 # Compiler flag to generate shared objects directly from archives.
9177 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9178
9179 # Compiler flag to generate thread-safe objects.
9180 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9181
9182 # Library versioning type.
9183 version_type=$version_type
9184
9185 # Format of library name prefix.
9186 libname_spec=$lt_libname_spec
9187
9188 # List of archive names. First name is the real one, the rest are links.
9189 # The last name is the one that the linker finds with -lNAME.
9190 library_names_spec=$lt_library_names_spec
9191
9192 # The coded name of the library, if different from the real name.
9193 soname_spec=$lt_soname_spec
9194
9195 # Commands used to build and install an old-style archive.
9196 RANLIB=$lt_RANLIB
9197 old_archive_cmds=$lt_old_archive_cmds
9198 old_postinstall_cmds=$lt_old_postinstall_cmds
9199 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9200
9201 # Create an old-style archive from a shared archive.
9202 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9203
9204 # Create a temporary old-style archive to link instead of a shared archive.
9205 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9206
9207 # Commands used to build and install a shared archive.
9208 archive_cmds=$lt_archive_cmds
9209 archive_expsym_cmds=$lt_archive_expsym_cmds
9210 postinstall_cmds=$lt_postinstall_cmds
9211 postuninstall_cmds=$lt_postuninstall_cmds
9212
9213 # Commands used to build a loadable module (assumed same as above if empty)
9214 module_cmds=$lt_module_cmds
9215 module_expsym_cmds=$lt_module_expsym_cmds
9216
9217 # Commands to strip libraries.
9218 old_striplib=$lt_old_striplib
9219 striplib=$lt_striplib
9220
9221 # Dependencies to place before the objects being linked to create a
9222 # shared library.
9223 predep_objects=$lt_predep_objects
9224
9225 # Dependencies to place after the objects being linked to create a
9226 # shared library.
9227 postdep_objects=$lt_postdep_objects
9228
9229 # Dependencies to place before the objects being linked to create a
9230 # shared library.
9231 predeps=$lt_predeps
9232
9233 # Dependencies to place after the objects being linked to create a
9234 # shared library.
9235 postdeps=$lt_postdeps
9236
9237 # The library search path used internally by the compiler when linking
9238 # a shared library.
9239 compiler_lib_search_path=$lt_compiler_lib_search_path
9240
9241 # Method to check whether dependent libraries are shared objects.
9242 deplibs_check_method=$lt_deplibs_check_method
9243
9244 # Command to use when deplibs_check_method == file_magic.
9245 file_magic_cmd=$lt_file_magic_cmd
9246
9247 # Flag that allows shared libraries with undefined symbols to be built.
9248 allow_undefined_flag=$lt_allow_undefined_flag
9249
9250 # Flag that forces no undefined symbols.
9251 no_undefined_flag=$lt_no_undefined_flag
9252
9253 # Commands used to finish a libtool library installation in a directory.
9254 finish_cmds=$lt_finish_cmds
9255
9256 # Same as above, but a single script fragment to be evaled but not shown.
9257 finish_eval=$lt_finish_eval
9258
9259 # Take the output of nm and produce a listing of raw symbols and C names.
9260 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9261
9262 # Transform the output of nm in a proper C declaration
9263 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9264
9265 # Transform the output of nm in a C name address pair
9266 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9267
9268 # This is the shared library runtime path variable.
9269 runpath_var=$runpath_var
9270
9271 # This is the shared library path variable.
9272 shlibpath_var=$shlibpath_var
9273
9274 # Is shlibpath searched before the hard-coded library search path?
9275 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9276
9277 # How to hardcode a shared library path into an executable.
9278 hardcode_action=$hardcode_action
9279
9280 # Whether we should hardcode library paths into libraries.
9281 hardcode_into_libs=$hardcode_into_libs
9282
9283 # Flag to hardcode \$libdir into a binary during linking.
9284 # This must work even if \$libdir does not exist.
9285 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9286
9287 # If ld is used when linking, flag to hardcode \$libdir into
9288 # a binary during linking. This must work even if \$libdir does
9289 # not exist.
9290 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9291
9292 # Whether we need a single -rpath flag with a separated argument.
9293 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9294
9295 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9296 # resulting binary.
9297 hardcode_direct=$hardcode_direct
9298
9299 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9300 # resulting binary.
9301 hardcode_minus_L=$hardcode_minus_L
9302
9303 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9304 # the resulting binary.
9305 hardcode_shlibpath_var=$hardcode_shlibpath_var
9306
9307 # Set to yes if building a shared library automatically hardcodes DIR into the library
9308 # and all subsequent libraries and executables linked against it.
9309 hardcode_automatic=$hardcode_automatic
9310
9311 # Variables whose values should be saved in libtool wrapper scripts and
9312 # restored at relink time.
9313 variables_saved_for_relink="$variables_saved_for_relink"
9314
9315 # Whether libtool must link a program against all its dependency libraries.
9316 link_all_deplibs=$link_all_deplibs
9317
9318 # Compile-time system search path for libraries
9319 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9320
9321 # Run-time system search path for libraries
9322 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9323
9324 # Fix the shell variable \$srcfile for the compiler.
9325 fix_srcfile_path="$fix_srcfile_path"
9326
9327 # Set to yes if exported symbols are required.
9328 always_export_symbols=$always_export_symbols
9329
9330 # The commands to list exported symbols.
9331 export_symbols_cmds=$lt_export_symbols_cmds
9332
9333 # The commands to extract the exported symbol list from a shared archive.
9334 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9335
9336 # Symbols that should not be listed in the preloaded symbols.
9337 exclude_expsyms=$lt_exclude_expsyms
9338
9339 # Symbols that must always be exported.
9340 include_expsyms=$lt_include_expsyms
9341
9342 # ### END LIBTOOL CONFIG
9343
9344 __EOF__
9345
9346
9347 case $host_os in
9348 aix3*)
9349 cat <<\EOF >> "$cfgfile"
9350
9351 # AIX sometimes has problems with the GCC collect2 program. For some
9352 # reason, if we set the COLLECT_NAMES environment variable, the problems
9353 # vanish in a puff of smoke.
9354 if test "X${COLLECT_NAMES+set}" != Xset; then
9355 COLLECT_NAMES=
9356 export COLLECT_NAMES
9357 fi
9358 EOF
9359 ;;
9360 esac
9361
9362 # We use sed instead of cat because bash on DJGPP gets confused if
9363 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9364 # text mode, it properly converts lines to CR/LF. This bash problem
9365 # is reportedly fixed, but why not run on old versions too?
9366 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9367
9368 mv -f "$cfgfile" "$ofile" || \
9369 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9370 chmod +x "$ofile"
9371
9372 else
9373 # If there is no Makefile yet, we rely on a make rule to execute
9374 # `config.status --recheck' to rerun these tests and create the
9375 # libtool script then.
9376 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9377 if test -f "$ltmain_in"; then
9378 test -f Makefile && make "$ltmain"
9379 fi
9380 fi
9381
9382
9383 ac_ext=c
9384 ac_cpp='$CPP $CPPFLAGS'
9385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9388
9389 CC="$lt_save_CC"
9390
9391
9392
9393
9394 # This can be used to rebuild libtool when needed
9395 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
9396
9397 # Always use our own libtool.
9398 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9399
9400 # Prevent multiple expansion
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411 SED="$lt_cv_path_SED"
9412
9413 if test x$SED != x; then
9414 HAVE_SED_TRUE=
9415 HAVE_SED_FALSE='#'
9416 else
9417 HAVE_SED_TRUE='#'
9418 HAVE_SED_FALSE=
9419 fi
9420
9421
9422 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
9423 LDFLAGS="$LDFLAGS -L/usr/local/lib"
9424
9425 case ${target_os} in
9426 linux*)
9427 SYS=linux
9428 REENTRANT_FLAG="-D_REENTRANT"
9429 ;;
9430 darwin*)
9431 SYS=darwin
9432 REENTRANT_FLAG="-D_REENTRANT"
9433 ;;
9434 solaris*)
9435 SYS=solaris
9436 REENTRANT_FLAG="-D_POSIX_PTHREAD_SEMANTICS"
9437 ;;
9438 *bsd*)
9439 SYS=${target_os}
9440 REENTRANT_FLAG="-D_REENTRANT"
9441 ;;
9442 *)
9443 { { echo "$as_me:$LINENO: error: Unsupported target OS ${target_os}" >&5
9444 echo "$as_me: error: Unsupported target OS ${target_os}" >&2;}
9445 { (exit 1); exit 1; }; }
9446 ;;
9447 esac
9448
9449 if test "$SYS" = "darwin"
9450 then
9451
9452 cat >>confdefs.h <<\_ACEOF
9453 #define USE_SEM_OPEN
9454 _ACEOF
9455
9456 else
9457 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
9458 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
9459 if test "${ac_cv_search_sem_init+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 ac_func_search_save_LIBS=$LIBS
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469
9470 /* Override any GCC internal prototype to avoid an error.
9471 Use char because int might match the return type of a GCC
9472 builtin and then its argument prototype would still apply. */
9473 #ifdef __cplusplus
9474 extern "C"
9475 #endif
9476 char sem_init ();
9477 int
9478 main ()
9479 {
9480 return sem_init ();
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 for ac_lib in '' rt pthread; do
9486 if test -z "$ac_lib"; then
9487 ac_res="none required"
9488 else
9489 ac_res=-l$ac_lib
9490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9491 fi
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (ac_try="$ac_link"
9494 case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9497 esac
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_link") 2>conftest.er1
9500 ac_status=$?
9501 grep -v '^ *+' conftest.er1 >conftest.err
9502 rm -f conftest.er1
9503 cat conftest.err >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest$ac_exeext &&
9509 $as_test_x conftest$ac_exeext; then
9510 ac_cv_search_sem_init=$ac_res
9511 else
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9514
9515
9516 fi
9517
9518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9519 conftest$ac_exeext
9520 if test "${ac_cv_search_sem_init+set}" = set; then
9521 break
9522 fi
9523 done
9524 if test "${ac_cv_search_sem_init+set}" = set; then
9525 :
9526 else
9527 ac_cv_search_sem_init=no
9528 fi
9529 rm conftest.$ac_ext
9530 LIBS=$ac_func_search_save_LIBS
9531 fi
9532 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
9533 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
9534 ac_res=$ac_cv_search_sem_init
9535 if test "$ac_res" != no; then
9536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9537
9538 else
9539 { { echo "$as_me:$LINENO: error: Can't compile without semaphores." >&5
9540 echo "$as_me: error: Can't compile without semaphores." >&2;}
9541 { (exit 1); exit 1; }; }
9542
9543 fi
9544
9545 fi
9546
9547 { echo "$as_me:$LINENO: checking for library containing bind" >&5
9548 echo $ECHO_N "checking for library containing bind... $ECHO_C" >&6; }
9549 if test "${ac_cv_search_bind+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552 ac_func_search_save_LIBS=$LIBS
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h. */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559
9560 /* Override any GCC internal prototype to avoid an error.
9561 Use char because int might match the return type of a GCC
9562 builtin and then its argument prototype would still apply. */
9563 #ifdef __cplusplus
9564 extern "C"
9565 #endif
9566 char bind ();
9567 int
9568 main ()
9569 {
9570 return bind ();
9571 ;
9572 return 0;
9573 }
9574 _ACEOF
9575 for ac_lib in '' socket; do
9576 if test -z "$ac_lib"; then
9577 ac_res="none required"
9578 else
9579 ac_res=-l$ac_lib
9580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9581 fi
9582 rm -f conftest.$ac_objext conftest$ac_exeext
9583 if { (ac_try="$ac_link"
9584 case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_link") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest$ac_exeext &&
9599 $as_test_x conftest$ac_exeext; then
9600 ac_cv_search_bind=$ac_res
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605
9606 fi
9607
9608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9609 conftest$ac_exeext
9610 if test "${ac_cv_search_bind+set}" = set; then
9611 break
9612 fi
9613 done
9614 if test "${ac_cv_search_bind+set}" = set; then
9615 :
9616 else
9617 ac_cv_search_bind=no
9618 fi
9619 rm conftest.$ac_ext
9620 LIBS=$ac_func_search_save_LIBS
9621 fi
9622 { echo "$as_me:$LINENO: result: $ac_cv_search_bind" >&5
9623 echo "${ECHO_T}$ac_cv_search_bind" >&6; }
9624 ac_res=$ac_cv_search_bind
9625 if test "$ac_res" != no; then
9626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9627
9628 else
9629 { { echo "$as_me:$LINENO: error: Can't compile without BSD sockets." >&5
9630 echo "$as_me: error: Can't compile without BSD sockets." >&2;}
9631 { (exit 1); exit 1; }; }
9632
9633 fi
9634
9635
9636 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
9637 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
9638 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641 ac_check_lib_save_LIBS=$LIBS
9642 LIBS="-lpthread $LIBS"
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h. */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649
9650 /* Override any GCC internal prototype to avoid an error.
9651 Use char because int might match the return type of a GCC
9652 builtin and then its argument prototype would still apply. */
9653 #ifdef __cplusplus
9654 extern "C"
9655 #endif
9656 char pthread_create ();
9657 int
9658 main ()
9659 {
9660 return pthread_create ();
9661 ;
9662 return 0;
9663 }
9664 _ACEOF
9665 rm -f conftest.$ac_objext conftest$ac_exeext
9666 if { (ac_try="$ac_link"
9667 case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_link") 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest$ac_exeext &&
9682 $as_test_x conftest$ac_exeext; then
9683 ac_cv_lib_pthread_pthread_create=yes
9684 else
9685 echo "$as_me: failed program was:" >&5
9686 sed 's/^/| /' conftest.$ac_ext >&5
9687
9688 ac_cv_lib_pthread_pthread_create=no
9689 fi
9690
9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9692 conftest$ac_exeext conftest.$ac_ext
9693 LIBS=$ac_check_lib_save_LIBS
9694 fi
9695 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
9696 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
9697 if test $ac_cv_lib_pthread_pthread_create = yes; then
9698 LIBS="$LIBS -lpthread"
9699 else
9700 { { echo "$as_me:$LINENO: error: Can't compile without pthreads." >&5
9701 echo "$as_me: error: Can't compile without pthreads." >&2;}
9702 { (exit 1); exit 1; }; }
9703
9704 fi
9705
9706
9707
9708 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
9709 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
9710 if test "${ac_cv_lib_m_pow+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713 ac_check_lib_save_LIBS=$LIBS
9714 LIBS="-lm $LIBS"
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h. */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char pow ();
9729 int
9730 main ()
9731 {
9732 return pow ();
9733 ;
9734 return 0;
9735 }
9736 _ACEOF
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9739 case "(($ac_try" in
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744 (eval "$ac_link") 2>conftest.er1
9745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } && {
9751 test -z "$ac_c_werror_flag" ||
9752 test ! -s conftest.err
9753 } && test -s conftest$ac_exeext &&
9754 $as_test_x conftest$ac_exeext; then
9755 ac_cv_lib_m_pow=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760 ac_cv_lib_m_pow=no
9761 fi
9762
9763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9764 conftest$ac_exeext conftest.$ac_ext
9765 LIBS=$ac_check_lib_save_LIBS
9766 fi
9767 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
9768 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
9769 if test $ac_cv_lib_m_pow = yes; then
9770 cat >>confdefs.h <<_ACEOF
9771 #define HAVE_LIBM 1
9772 _ACEOF
9773
9774 LIBS="-lm $LIBS"
9775
9776 fi
9777
9778
9779 { echo "$as_me:$LINENO: checking for inet_pton in -lnsl" >&5
9780 echo $ECHO_N "checking for inet_pton in -lnsl... $ECHO_C" >&6; }
9781 if test "${ac_cv_lib_nsl_inet_pton+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784 ac_check_lib_save_LIBS=$LIBS
9785 LIBS="-lnsl $LIBS"
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792
9793 /* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
9796 #ifdef __cplusplus
9797 extern "C"
9798 #endif
9799 char inet_pton ();
9800 int
9801 main ()
9802 {
9803 return inet_pton ();
9804 ;
9805 return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9810 case "(($ac_try" in
9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9813 esac
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_link") 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && {
9822 test -z "$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9824 } && test -s conftest$ac_exeext &&
9825 $as_test_x conftest$ac_exeext; then
9826 ac_cv_lib_nsl_inet_pton=yes
9827 else
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9830
9831 ac_cv_lib_nsl_inet_pton=no
9832 fi
9833
9834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9835 conftest$ac_exeext conftest.$ac_ext
9836 LIBS=$ac_check_lib_save_LIBS
9837 fi
9838 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_pton" >&5
9839 echo "${ECHO_T}$ac_cv_lib_nsl_inet_pton" >&6; }
9840 if test $ac_cv_lib_nsl_inet_pton = yes; then
9841 cat >>confdefs.h <<_ACEOF
9842 #define HAVE_LIBNSL 1
9843 _ACEOF
9844
9845 LIBS="-lnsl $LIBS"
9846
9847 fi
9848
9849
9850 for ac_header in netinet/in.h
9851 do
9852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 fi
9859 ac_res=`eval echo '${'$as_ac_Header'}'`
9860 { echo "$as_me:$LINENO: result: $ac_res" >&5
9861 echo "${ECHO_T}$ac_res" >&6; }
9862 else
9863 # Is the header compilable?
9864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h. */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 $ac_includes_default
9873 #include <$ac_header>
9874 _ACEOF
9875 rm -f conftest.$ac_objext
9876 if { (ac_try="$ac_compile"
9877 case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_compile") 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest.$ac_objext; then
9892 ac_header_compiler=yes
9893 else
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 ac_header_compiler=no
9898 fi
9899
9900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9902 echo "${ECHO_T}$ac_header_compiler" >&6; }
9903
9904 # Is the header present?
9905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9907 cat >conftest.$ac_ext <<_ACEOF
9908 /* confdefs.h. */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 #include <$ac_header>
9914 _ACEOF
9915 if { (ac_try="$ac_cpp conftest.$ac_ext"
9916 case "(($ac_try" in
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9919 esac
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } >/dev/null && {
9928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9929 test ! -s conftest.err
9930 }; then
9931 ac_header_preproc=yes
9932 else
9933 echo "$as_me: failed program was:" >&5
9934 sed 's/^/| /' conftest.$ac_ext >&5
9935
9936 ac_header_preproc=no
9937 fi
9938
9939 rm -f conftest.err conftest.$ac_ext
9940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9941 echo "${ECHO_T}$ac_header_preproc" >&6; }
9942
9943 # So? What about this header?
9944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9945 yes:no: )
9946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9950 ac_header_preproc=yes
9951 ;;
9952 no:yes:* )
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9965
9966 ;;
9967 esac
9968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973 eval "$as_ac_Header=\$ac_header_preproc"
9974 fi
9975 ac_res=`eval echo '${'$as_ac_Header'}'`
9976 { echo "$as_me:$LINENO: result: $ac_res" >&5
9977 echo "${ECHO_T}$ac_res" >&6; }
9978
9979 fi
9980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9981 cat >>confdefs.h <<_ACEOF
9982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9983 _ACEOF
9984
9985 fi
9986
9987 done
9988
9989
9990 { echo "$as_me:$LINENO: checking for bool" >&5
9991 echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
9992 if test "${ac_cv_type_bool+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h. */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 $ac_includes_default
10002 typedef bool ac__type_new_;
10003 int
10004 main ()
10005 {
10006 if ((ac__type_new_ *) 0)
10007 return 0;
10008 if (sizeof (ac__type_new_))
10009 return 0;
10010 ;
10011 return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext
10015 if { (ac_try="$ac_compile"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_compile") 2>conftest.er1
10022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } && {
10028 test -z "$ac_c_werror_flag" ||
10029 test ! -s conftest.err
10030 } && test -s conftest.$ac_objext; then
10031 ac_cv_type_bool=yes
10032 else
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10035
10036 ac_cv_type_bool=no
10037 fi
10038
10039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040 fi
10041 { echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10042 echo "${ECHO_T}$ac_cv_type_bool" >&6; }
10043 if test $ac_cv_type_bool = yes; then
10044
10045 cat >>confdefs.h <<_ACEOF
10046 #define HAVE_BOOL 1
10047 _ACEOF
10048
10049
10050 fi
10051
10052
10053 if test "x$USE_GETTIMEOFDAY" = "x"
10054 then
10055
10056 for ac_func in clock_gettime
10057 do
10058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h. */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10072 #define $ac_func innocuous_$ac_func
10073
10074 /* System header to define __stub macros and hopefully few prototypes,
10075 which can conflict with char $ac_func (); below.
10076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077 <limits.h> exists even on freestanding compilers. */
10078
10079 #ifdef __STDC__
10080 # include <limits.h>
10081 #else
10082 # include <assert.h>
10083 #endif
10084
10085 #undef $ac_func
10086
10087 /* Override any GCC internal prototype to avoid an error.
10088 Use char because int might match the return type of a GCC
10089 builtin and then its argument prototype would still apply. */
10090 #ifdef __cplusplus
10091 extern "C"
10092 #endif
10093 char $ac_func ();
10094 /* The GNU C library defines this for functions which it implements
10095 to always fail with ENOSYS. Some functions are actually named
10096 something starting with __ and the normal name is an alias. */
10097 #if defined __stub_$ac_func || defined __stub___$ac_func
10098 choke me
10099 #endif
10100
10101 int
10102 main ()
10103 {
10104 return $ac_func ();
10105 ;
10106 return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (ac_try="$ac_link"
10111 case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_link") 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && {
10123 test -z "$ac_c_werror_flag" ||
10124 test ! -s conftest.err
10125 } && test -s conftest$ac_exeext &&
10126 $as_test_x conftest$ac_exeext; then
10127 eval "$as_ac_var=yes"
10128 else
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10131
10132 eval "$as_ac_var=no"
10133 fi
10134
10135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10136 conftest$ac_exeext conftest.$ac_ext
10137 fi
10138 ac_res=`eval echo '${'$as_ac_var'}'`
10139 { echo "$as_me:$LINENO: result: $ac_res" >&5
10140 echo "${ECHO_T}$ac_res" >&6; }
10141 if test `eval echo '${'$as_ac_var'}'` = yes; then
10142 cat >>confdefs.h <<_ACEOF
10143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10144 _ACEOF
10145 { echo "$as_me:$LINENO: checking whether CLOCK_MONOTONIC is declared" >&5
10146 echo $ECHO_N "checking whether CLOCK_MONOTONIC is declared... $ECHO_C" >&6; }
10147 if test "${ac_cv_have_decl_CLOCK_MONOTONIC+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156 #include <time.h>
10157
10158 int
10159 main ()
10160 {
10161 #ifndef CLOCK_MONOTONIC
10162 (void) CLOCK_MONOTONIC;
10163 #endif
10164
10165 ;
10166 return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext
10170 if { (ac_try="$ac_compile"
10171 case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
10186 ac_cv_have_decl_CLOCK_MONOTONIC=yes
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191 ac_cv_have_decl_CLOCK_MONOTONIC=no
10192 fi
10193
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 fi
10196 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_CLOCK_MONOTONIC" >&5
10197 echo "${ECHO_T}$ac_cv_have_decl_CLOCK_MONOTONIC" >&6; }
10198 if test $ac_cv_have_decl_CLOCK_MONOTONIC = yes; then
10199
10200 cat >>confdefs.h <<_ACEOF
10201 #define HAVE_DECL_CLOCK_MONOTONIC 1
10202 _ACEOF
10203
10204
10205 cat >>confdefs.h <<\_ACEOF
10206 #define USE_CLOCK_MONOTONIC
10207 _ACEOF
10208
10209 else
10210 cat >>confdefs.h <<_ACEOF
10211 #define HAVE_DECL_CLOCK_MONOTONIC 0
10212 _ACEOF
10213
10214 { echo "$as_me:$LINENO: checking whether CLOCK_HIGHRES is declared" >&5
10215 echo $ECHO_N "checking whether CLOCK_HIGHRES is declared... $ECHO_C" >&6; }
10216 if test "${ac_cv_have_decl_CLOCK_HIGHRES+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 #include <time.h>
10226
10227 int
10228 main ()
10229 {
10230 #ifndef CLOCK_HIGHRES
10231 (void) CLOCK_HIGHRES;
10232 #endif
10233
10234 ;
10235 return 0;
10236 }
10237 _ACEOF
10238 rm -f conftest.$ac_objext
10239 if { (ac_try="$ac_compile"
10240 case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10243 esac
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_compile") 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } && {
10252 test -z "$ac_c_werror_flag" ||
10253 test ! -s conftest.err
10254 } && test -s conftest.$ac_objext; then
10255 ac_cv_have_decl_CLOCK_HIGHRES=yes
10256 else
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 ac_cv_have_decl_CLOCK_HIGHRES=no
10261 fi
10262
10263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10264 fi
10265 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_CLOCK_HIGHRES" >&5
10266 echo "${ECHO_T}$ac_cv_have_decl_CLOCK_HIGHRES" >&6; }
10267 if test $ac_cv_have_decl_CLOCK_HIGHRES = yes; then
10268
10269 cat >>confdefs.h <<_ACEOF
10270 #define HAVE_DECL_CLOCK_HIGHRES 1
10271 _ACEOF
10272
10273
10274 cat >>confdefs.h <<\_ACEOF
10275 #define USE_CLOCK_HIGHRES
10276 _ACEOF
10277
10278 else
10279 cat >>confdefs.h <<_ACEOF
10280 #define HAVE_DECL_CLOCK_HIGHRES 0
10281 _ACEOF
10282
10283 { echo "$as_me:$LINENO: checking whether CLOCK_HIGHRES is declared" >&5
10284 echo $ECHO_N "checking whether CLOCK_HIGHRES is declared... $ECHO_C" >&6; }
10285 if test "${ac_cv_have_decl_CLOCK_HIGHRES+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h. */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294 $ac_includes_default
10295 int
10296 main ()
10297 {
10298 #ifndef CLOCK_HIGHRES
10299 (void) CLOCK_HIGHRES;
10300 #endif
10301
10302 ;
10303 return 0;
10304 }
10305 _ACEOF
10306 rm -f conftest.$ac_objext
10307 if { (ac_try="$ac_compile"
10308 case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311 esac
10312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_compile") 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } && {
10320 test -z "$ac_c_werror_flag" ||
10321 test ! -s conftest.err
10322 } && test -s conftest.$ac_objext; then
10323 ac_cv_have_decl_CLOCK_HIGHRES=yes
10324 else
10325 echo "$as_me: failed program was:" >&5
10326 sed 's/^/| /' conftest.$ac_ext >&5
10327
10328 ac_cv_have_decl_CLOCK_HIGHRES=no
10329 fi
10330
10331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10332 fi
10333 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_CLOCK_HIGHRES" >&5
10334 echo "${ECHO_T}$ac_cv_have_decl_CLOCK_HIGHRES" >&6; }
10335 if test $ac_cv_have_decl_CLOCK_HIGHRES = yes; then
10336
10337 cat >>confdefs.h <<_ACEOF
10338 #define HAVE_DECL_CLOCK_HIGHRES 1
10339 _ACEOF
10340
10341
10342 cat >>confdefs.h <<\_ACEOF
10343 #define USE_CLOCK_REALTIME
10344 _ACEOF
10345
10346 else
10347 cat >>confdefs.h <<_ACEOF
10348 #define HAVE_DECL_CLOCK_HIGHRES 0
10349 _ACEOF
10350
10351
10352 for ac_func in gettimeofday
10353 do
10354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360 cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h. */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10368 #define $ac_func innocuous_$ac_func
10369
10370 /* System header to define __stub macros and hopefully few prototypes,
10371 which can conflict with char $ac_func (); below.
10372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10373 <limits.h> exists even on freestanding compilers. */
10374
10375 #ifdef __STDC__
10376 # include <limits.h>
10377 #else
10378 # include <assert.h>
10379 #endif
10380
10381 #undef $ac_func
10382
10383 /* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
10386 #ifdef __cplusplus
10387 extern "C"
10388 #endif
10389 char $ac_func ();
10390 /* The GNU C library defines this for functions which it implements
10391 to always fail with ENOSYS. Some functions are actually named
10392 something starting with __ and the normal name is an alias. */
10393 #if defined __stub_$ac_func || defined __stub___$ac_func
10394 choke me
10395 #endif
10396
10397 int
10398 main ()
10399 {
10400 return $ac_func ();
10401 ;
10402 return 0;
10403 }
10404 _ACEOF
10405 rm -f conftest.$ac_objext conftest$ac_exeext
10406 if { (ac_try="$ac_link"
10407 case "(($ac_try" in
10408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409 *) ac_try_echo=$ac_try;;
10410 esac
10411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10412 (eval "$ac_link") 2>conftest.er1
10413 ac_status=$?
10414 grep -v '^ *+' conftest.er1 >conftest.err
10415 rm -f conftest.er1
10416 cat conftest.err >&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } && {
10419 test -z "$ac_c_werror_flag" ||
10420 test ! -s conftest.err
10421 } && test -s conftest$ac_exeext &&
10422 $as_test_x conftest$ac_exeext; then
10423 eval "$as_ac_var=yes"
10424 else
10425 echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10427
10428 eval "$as_ac_var=no"
10429 fi
10430
10431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10432 conftest$ac_exeext conftest.$ac_ext
10433 fi
10434 ac_res=`eval echo '${'$as_ac_var'}'`
10435 { echo "$as_me:$LINENO: result: $ac_res" >&5
10436 echo "${ECHO_T}$ac_res" >&6; }
10437 if test `eval echo '${'$as_ac_var'}'` = yes; then
10438 cat >>confdefs.h <<_ACEOF
10439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10440 _ACEOF
10441
10442 cat >>confdefs.h <<\_ACEOF
10443 #define USE_GETTIMEOFDAY
10444 _ACEOF
10445
10446 else
10447 { { echo "$as_me:$LINENO: error: No suitable clock found" >&5
10448 echo "$as_me: error: No suitable clock found" >&2;}
10449 { (exit 1); exit 1; }; }
10450 fi
10451 done
10452
10453 #include <time.h>
10454 fi
10455
10456
10457 fi
10458
10459
10460 fi
10461
10462
10463 else
10464
10465 for ac_func in gettimeofday
10466 do
10467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h. */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10481 #define $ac_func innocuous_$ac_func
10482
10483 /* System header to define __stub macros and hopefully few prototypes,
10484 which can conflict with char $ac_func (); below.
10485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10486 <limits.h> exists even on freestanding compilers. */
10487
10488 #ifdef __STDC__
10489 # include <limits.h>
10490 #else
10491 # include <assert.h>
10492 #endif
10493
10494 #undef $ac_func
10495
10496 /* Override any GCC internal prototype to avoid an error.
10497 Use char because int might match the return type of a GCC
10498 builtin and then its argument prototype would still apply. */
10499 #ifdef __cplusplus
10500 extern "C"
10501 #endif
10502 char $ac_func ();
10503 /* The GNU C library defines this for functions which it implements
10504 to always fail with ENOSYS. Some functions are actually named
10505 something starting with __ and the normal name is an alias. */
10506 #if defined __stub_$ac_func || defined __stub___$ac_func
10507 choke me
10508 #endif
10509
10510 int
10511 main ()
10512 {
10513 return $ac_func ();
10514 ;
10515 return 0;
10516 }
10517 _ACEOF
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (ac_try="$ac_link"
10520 case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_link") 2>conftest.er1
10526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && {
10532 test -z "$ac_c_werror_flag" ||
10533 test ! -s conftest.err
10534 } && test -s conftest$ac_exeext &&
10535 $as_test_x conftest$ac_exeext; then
10536 eval "$as_ac_var=yes"
10537 else
10538 echo "$as_me: failed program was:" >&5
10539 sed 's/^/| /' conftest.$ac_ext >&5
10540
10541 eval "$as_ac_var=no"
10542 fi
10543
10544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10545 conftest$ac_exeext conftest.$ac_ext
10546 fi
10547 ac_res=`eval echo '${'$as_ac_var'}'`
10548 { echo "$as_me:$LINENO: result: $ac_res" >&5
10549 echo "${ECHO_T}$ac_res" >&6; }
10550 if test `eval echo '${'$as_ac_var'}'` = yes; then
10551 cat >>confdefs.h <<_ACEOF
10552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10553 _ACEOF
10554
10555 cat >>confdefs.h <<\_ACEOF
10556 #define USE_GETTIMEOFDAY
10557 _ACEOF
10558
10559 else
10560 { { echo "$as_me:$LINENO: error: No suitable clock found" >&5
10561 echo "$as_me: error: No suitable clock found" >&2;}
10562 { (exit 1); exit 1; }; }
10563 fi
10564 done
10565
10566
10567 fi
10568 done
10569
10570 else
10571 { echo "$as_me:$LINENO: Forced to use gettimeofday()" >&5
10572 echo "$as_me: Forced to use gettimeofday()" >&6;}
10573
10574 for ac_func in gettimeofday
10575 do
10576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 else
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10590 #define $ac_func innocuous_$ac_func
10591
10592 /* System header to define __stub macros and hopefully few prototypes,
10593 which can conflict with char $ac_func (); below.
10594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10595 <limits.h> exists even on freestanding compilers. */
10596
10597 #ifdef __STDC__
10598 # include <limits.h>
10599 #else
10600 # include <assert.h>
10601 #endif
10602
10603 #undef $ac_func
10604
10605 /* Override any GCC internal prototype to avoid an error.
10606 Use char because int might match the return type of a GCC
10607 builtin and then its argument prototype would still apply. */
10608 #ifdef __cplusplus
10609 extern "C"
10610 #endif
10611 char $ac_func ();
10612 /* The GNU C library defines this for functions which it implements
10613 to always fail with ENOSYS. Some functions are actually named
10614 something starting with __ and the normal name is an alias. */
10615 #if defined __stub_$ac_func || defined __stub___$ac_func
10616 choke me
10617 #endif
10618
10619 int
10620 main ()
10621 {
10622 return $ac_func ();
10623 ;
10624 return 0;
10625 }
10626 _ACEOF
10627 rm -f conftest.$ac_objext conftest$ac_exeext
10628 if { (ac_try="$ac_link"
10629 case "(($ac_try" in
10630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631 *) ac_try_echo=$ac_try;;
10632 esac
10633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634 (eval "$ac_link") 2>conftest.er1
10635 ac_status=$?
10636 grep -v '^ *+' conftest.er1 >conftest.err
10637 rm -f conftest.er1
10638 cat conftest.err >&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } && {
10641 test -z "$ac_c_werror_flag" ||
10642 test ! -s conftest.err
10643 } && test -s conftest$ac_exeext &&
10644 $as_test_x conftest$ac_exeext; then
10645 eval "$as_ac_var=yes"
10646 else
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650 eval "$as_ac_var=no"
10651 fi
10652
10653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10654 conftest$ac_exeext conftest.$ac_ext
10655 fi
10656 ac_res=`eval echo '${'$as_ac_var'}'`
10657 { echo "$as_me:$LINENO: result: $ac_res" >&5
10658 echo "${ECHO_T}$ac_res" >&6; }
10659 if test `eval echo '${'$as_ac_var'}'` = yes; then
10660 cat >>confdefs.h <<_ACEOF
10661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10662 _ACEOF
10663
10664 cat >>confdefs.h <<\_ACEOF
10665 #define USE_GETTIMEOFDAY
10666 _ACEOF
10667
10668 else
10669 { { echo "$as_me:$LINENO: error: No suitable clock found" >&5
10670 echo "$as_me: error: No suitable clock found" >&2;}
10671 { (exit 1); exit 1; }; }
10672 fi
10673 done
10674
10675
10676 for ac_func in clock_gettime
10677 do
10678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10692 #define $ac_func innocuous_$ac_func
10693
10694 /* System header to define __stub macros and hopefully few prototypes,
10695 which can conflict with char $ac_func (); below.
10696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10697 <limits.h> exists even on freestanding compilers. */
10698
10699 #ifdef __STDC__
10700 # include <limits.h>
10701 #else
10702 # include <assert.h>
10703 #endif
10704
10705 #undef $ac_func
10706
10707 /* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
10710 #ifdef __cplusplus
10711 extern "C"
10712 #endif
10713 char $ac_func ();
10714 /* The GNU C library defines this for functions which it implements
10715 to always fail with ENOSYS. Some functions are actually named
10716 something starting with __ and the normal name is an alias. */
10717 #if defined __stub_$ac_func || defined __stub___$ac_func
10718 choke me
10719 #endif
10720
10721 int
10722 main ()
10723 {
10724 return $ac_func ();
10725 ;
10726 return 0;
10727 }
10728 _ACEOF
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (ac_try="$ac_link"
10731 case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734 esac
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_link") 2>conftest.er1
10737 ac_status=$?
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } && {
10743 test -z "$ac_c_werror_flag" ||
10744 test ! -s conftest.err
10745 } && test -s conftest$ac_exeext &&
10746 $as_test_x conftest$ac_exeext; then
10747 eval "$as_ac_var=yes"
10748 else
10749 echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10751
10752 eval "$as_ac_var=no"
10753 fi
10754
10755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10756 conftest$ac_exeext conftest.$ac_ext
10757 fi
10758 ac_res=`eval echo '${'$as_ac_var'}'`
10759 { echo "$as_me:$LINENO: result: $ac_res" >&5
10760 echo "${ECHO_T}$ac_res" >&6; }
10761 if test `eval echo '${'$as_ac_var'}'` = yes; then
10762 cat >>confdefs.h <<_ACEOF
10763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10764 _ACEOF
10765
10766 fi
10767 done
10768
10769 { echo "$as_me:$LINENO: checking for clockid_t" >&5
10770 echo $ECHO_N "checking for clockid_t... $ECHO_C" >&6; }
10771 if test "${ac_cv_type_clockid_t+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 else
10774 cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h. */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 $ac_includes_default
10781 typedef clockid_t ac__type_new_;
10782 int
10783 main ()
10784 {
10785 if ((ac__type_new_ *) 0)
10786 return 0;
10787 if (sizeof (ac__type_new_))
10788 return 0;
10789 ;
10790 return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (ac_try="$ac_compile"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798 esac
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_compile") 2>conftest.er1
10801 ac_status=$?
10802 grep -v '^ *+' conftest.er1 >conftest.err
10803 rm -f conftest.er1
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest.$ac_objext; then
10810 ac_cv_type_clockid_t=yes
10811 else
10812 echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815 ac_cv_type_clockid_t=no
10816 fi
10817
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 fi
10820 { echo "$as_me:$LINENO: result: $ac_cv_type_clockid_t" >&5
10821 echo "${ECHO_T}$ac_cv_type_clockid_t" >&6; }
10822 if test $ac_cv_type_clockid_t = yes; then
10823
10824 cat >>confdefs.h <<_ACEOF
10825 #define HAVE_CLOCKID_T 1
10826 _ACEOF
10827
10828
10829 fi
10830
10831 fi
10832
10833 { echo "$as_me:$LINENO: checking whether to disable dnsbl checking" >&5
10834 echo $ECHO_N "checking whether to disable dnsbl checking... $ECHO_C" >&6; }
10835 # Check whether --enable-dnsbl was given.
10836 if test "${enable_dnsbl+set}" = set; then
10837 enableval=$enable_dnsbl; if test "x$enableval" = "xyes"; then
10838 { echo "$as_me:$LINENO: result: no" >&5
10839 echo "${ECHO_T}no" >&6; }
10840 dnsbl="yes"
10841 else
10842 { echo "$as_me:$LINENO: result: yes" >&5
10843 echo "${ECHO_T}yes" >&6; }
10844 dnsbl="no"
10845 fi
10846
10847 else
10848 { echo "$as_me:$LINENO: result: no" >&5
10849 echo "${ECHO_T}no" >&6; } ; dnsbl="yes"
10850
10851 fi
10852
10853
10854 if test "x$dnsbl" = "xyes"
10855 then
10856
10857 for ac_header in ares.h
10858 do
10859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 fi
10866 ac_res=`eval echo '${'$as_ac_Header'}'`
10867 { echo "$as_me:$LINENO: result: $ac_res" >&5
10868 echo "${ECHO_T}$ac_res" >&6; }
10869 else
10870 # Is the header compilable?
10871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10873 cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h. */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 $ac_includes_default
10880 #include <$ac_header>
10881 _ACEOF
10882 rm -f conftest.$ac_objext
10883 if { (ac_try="$ac_compile"
10884 case "(($ac_try" in
10885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10887 esac
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_compile") 2>conftest.er1
10890 ac_status=$?
10891 grep -v '^ *+' conftest.er1 >conftest.err
10892 rm -f conftest.er1
10893 cat conftest.err >&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } && {
10896 test -z "$ac_c_werror_flag" ||
10897 test ! -s conftest.err
10898 } && test -s conftest.$ac_objext; then
10899 ac_header_compiler=yes
10900 else
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10903
10904 ac_header_compiler=no
10905 fi
10906
10907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10909 echo "${ECHO_T}$ac_header_compiler" >&6; }
10910
10911 # Is the header present?
10912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10914 cat >conftest.$ac_ext <<_ACEOF
10915 /* confdefs.h. */
10916 _ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h. */
10920 #include <$ac_header>
10921 _ACEOF
10922 if { (ac_try="$ac_cpp conftest.$ac_ext"
10923 case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926 esac
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } >/dev/null && {
10935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10936 test ! -s conftest.err
10937 }; then
10938 ac_header_preproc=yes
10939 else
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 ac_header_preproc=no
10944 fi
10945
10946 rm -f conftest.err conftest.$ac_ext
10947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10948 echo "${ECHO_T}$ac_header_preproc" >&6; }
10949
10950 # So? What about this header?
10951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10952 yes:no: )
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10957 ac_header_preproc=yes
10958 ;;
10959 no:yes:* )
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10972
10973 ;;
10974 esac
10975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 else
10980 eval "$as_ac_Header=\$ac_header_preproc"
10981 fi
10982 ac_res=`eval echo '${'$as_ac_Header'}'`
10983 { echo "$as_me:$LINENO: result: $ac_res" >&5
10984 echo "${ECHO_T}$ac_res" >&6; }
10985
10986 fi
10987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10988 cat >>confdefs.h <<_ACEOF
10989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10990 _ACEOF
10991 DNSBLSOURCES='check_dnsbl.o'
10992 else
10993 { { echo "$as_me:$LINENO: error: ares.h needed for dnsbl checking." >&5
10994 echo "$as_me: error: ares.h needed for dnsbl checking." >&2;}
10995 { (exit 1); exit 1; }; }
10996
10997 fi
10998
10999 done
11000
11001
11002
11003 { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
11004 echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
11005 if test "${ac_cv_lib_cares_ares_init+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008 ac_check_lib_save_LIBS=$LIBS
11009 LIBS="-lcares $LIBS"
11010 cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h. */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016
11017 /* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11020 #ifdef __cplusplus
11021 extern "C"
11022 #endif
11023 char ares_init ();
11024 int
11025 main ()
11026 {
11027 return ares_init ();
11028 ;
11029 return 0;
11030 }
11031 _ACEOF
11032 rm -f conftest.$ac_objext conftest$ac_exeext
11033 if { (ac_try="$ac_link"
11034 case "(($ac_try" in
11035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036 *) ac_try_echo=$ac_try;;
11037 esac
11038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11039 (eval "$ac_link") 2>conftest.er1
11040 ac_status=$?
11041 grep -v '^ *+' conftest.er1 >conftest.err
11042 rm -f conftest.er1
11043 cat conftest.err >&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } && {
11046 test -z "$ac_c_werror_flag" ||
11047 test ! -s conftest.err
11048 } && test -s conftest$ac_exeext &&
11049 $as_test_x conftest$ac_exeext; then
11050 ac_cv_lib_cares_ares_init=yes
11051 else
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 ac_cv_lib_cares_ares_init=no
11056 fi
11057
11058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11059 conftest$ac_exeext conftest.$ac_ext
11060 LIBS=$ac_check_lib_save_LIBS
11061 fi
11062 { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
11063 echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
11064 if test $ac_cv_lib_cares_ares_init = yes; then
11065 cat >>confdefs.h <<_ACEOF
11066 #define HAVE_LIBCARES 1
11067 _ACEOF
11068
11069 LIBS="-lcares $LIBS"
11070
11071 else
11072 { { echo "$as_me:$LINENO: error: c-ares library needed for dnsbl checking." >&5
11073 echo "$as_me: error: c-ares library needed for dnsbl checking." >&2;}
11074 { (exit 1); exit 1; }; }
11075
11076 fi
11077
11078 fi
11079
11080 { echo "$as_me:$LINENO: checking whether to enable milter" >&5
11081 echo $ECHO_N "checking whether to enable milter... $ECHO_C" >&6; }
11082 # Check whether --enable-milter was given.
11083 if test "${enable_milter+set}" = set; then
11084 enableval=$enable_milter; { echo "$as_me:$LINENO: result: $enableval" >&5
11085 echo "${ECHO_T}$enableval" >&6; } ; milter="$enableval"
11086 else
11087 { echo "$as_me:$LINENO: result: no" >&5
11088 echo "${ECHO_T}no" >&6; } ; milter="no"
11089
11090 fi
11091
11092
11093 if test "$milter" = "yes"
11094 then
11095
11096 for ac_header in libmilter/mfapi.h
11097 do
11098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 fi
11105 ac_res=`eval echo '${'$as_ac_Header'}'`
11106 { echo "$as_me:$LINENO: result: $ac_res" >&5
11107 echo "${ECHO_T}$ac_res" >&6; }
11108 else
11109 # Is the header compilable?
11110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h. */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 $ac_includes_default
11119 #include <$ac_header>
11120 _ACEOF
11121 rm -f conftest.$ac_objext
11122 if { (ac_try="$ac_compile"
11123 case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11126 esac
11127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest.$ac_objext; then
11138 ac_header_compiler=yes
11139 else
11140 echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11142
11143 ac_header_compiler=no
11144 fi
11145
11146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 echo "${ECHO_T}$ac_header_compiler" >&6; }
11149
11150 # Is the header present?
11151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11153 cat >conftest.$ac_ext <<_ACEOF
11154 /* confdefs.h. */
11155 _ACEOF
11156 cat confdefs.h >>conftest.$ac_ext
11157 cat >>conftest.$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #include <$ac_header>
11160 _ACEOF
11161 if { (ac_try="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11165 esac
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11168 ac_status=$?
11169 grep -v '^ *+' conftest.er1 >conftest.err
11170 rm -f conftest.er1
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } >/dev/null && {
11174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11175 test ! -s conftest.err
11176 }; then
11177 ac_header_preproc=yes
11178 else
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11181
11182 ac_header_preproc=no
11183 fi
11184
11185 rm -f conftest.err conftest.$ac_ext
11186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11187 echo "${ECHO_T}$ac_header_preproc" >&6; }
11188
11189 # So? What about this header?
11190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11191 yes:no: )
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11196 ac_header_preproc=yes
11197 ;;
11198 no:yes:* )
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11211
11212 ;;
11213 esac
11214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 else
11219 eval "$as_ac_Header=\$ac_header_preproc"
11220 fi
11221 ac_res=`eval echo '${'$as_ac_Header'}'`
11222 { echo "$as_me:$LINENO: result: $ac_res" >&5
11223 echo "${ECHO_T}$ac_res" >&6; }
11224
11225 fi
11226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11227 cat >>confdefs.h <<_ACEOF
11228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11229 _ACEOF
11230 MILTERSOURCES='worker_milter.o'
11231
11232 fi
11233
11234 done
11235
11236
11237
11238 { echo "$as_me:$LINENO: checking for smfi_main in -lmilter" >&5
11239 echo $ECHO_N "checking for smfi_main in -lmilter... $ECHO_C" >&6; }
11240 if test "${ac_cv_lib_milter_smfi_main+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 else
11243 ac_check_lib_save_LIBS=$LIBS
11244 LIBS="-lmilter $LIBS"
11245 cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h. */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11251
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11255 #ifdef __cplusplus
11256 extern "C"
11257 #endif
11258 char smfi_main ();
11259 int
11260 main ()
11261 {
11262 return smfi_main ();
11263 ;
11264 return 0;
11265 }
11266 _ACEOF
11267 rm -f conftest.$ac_objext conftest$ac_exeext
11268 if { (ac_try="$ac_link"
11269 case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_link") 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } && {
11281 test -z "$ac_c_werror_flag" ||
11282 test ! -s conftest.err
11283 } && test -s conftest$ac_exeext &&
11284 $as_test_x conftest$ac_exeext; then
11285 ac_cv_lib_milter_smfi_main=yes
11286 else
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 ac_cv_lib_milter_smfi_main=no
11291 fi
11292
11293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11294 conftest$ac_exeext conftest.$ac_ext
11295 LIBS=$ac_check_lib_save_LIBS
11296 fi
11297 { echo "$as_me:$LINENO: result: $ac_cv_lib_milter_smfi_main" >&5
11298 echo "${ECHO_T}$ac_cv_lib_milter_smfi_main" >&6; }
11299 if test $ac_cv_lib_milter_smfi_main = yes; then
11300 cat >>confdefs.h <<_ACEOF
11301 #define HAVE_LIBMILTER 1
11302 _ACEOF
11303
11304 LIBS="-lmilter $LIBS"
11305
11306 else
11307 { { echo "$as_me:$LINENO: error: libmilter library needed for milter support" >&5
11308 echo "$as_me: error: libmilter library needed for milter support" >&2;}
11309 { (exit 1); exit 1; }; }
11310
11311 fi
11312
11313 fi
11314
11315 { echo "$as_me:$LINENO: checking for useconds_t" >&5
11316 echo $ECHO_N "checking for useconds_t... $ECHO_C" >&6; }
11317 if test "${ac_cv_type_useconds_t+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 $ac_includes_default
11327 typedef useconds_t ac__type_new_;
11328 int
11329 main ()
11330 {
11331 if ((ac__type_new_ *) 0)
11332 return 0;
11333 if (sizeof (ac__type_new_))
11334 return 0;
11335 ;
11336 return 0;
11337 }
11338 _ACEOF
11339 rm -f conftest.$ac_objext
11340 if { (ac_try="$ac_compile"
11341 case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11344 esac
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_compile") 2>conftest.er1
11347 ac_status=$?
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && {
11353 test -z "$ac_c_werror_flag" ||
11354 test ! -s conftest.err
11355 } && test -s conftest.$ac_objext; then
11356 ac_cv_type_useconds_t=yes
11357 else
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361 ac_cv_type_useconds_t=no
11362 fi
11363
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365 fi
11366 { echo "$as_me:$LINENO: result: $ac_cv_type_useconds_t" >&5
11367 echo "${ECHO_T}$ac_cv_type_useconds_t" >&6; }
11368 if test $ac_cv_type_useconds_t = yes; then
11369
11370 cat >>confdefs.h <<_ACEOF
11371 #define HAVE_USECONDS_T 1
11372 _ACEOF
11373
11374
11375 fi
11376
11377
11378 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11379 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11380 if test "${ac_cv_c_const+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 else
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389
11390 int
11391 main ()
11392 {
11393 /* FIXME: Include the comments suggested by Paul. */
11394 #ifndef __cplusplus
11395 /* Ultrix mips cc rejects this. */
11396 typedef int charset[2];
11397 const charset cs;
11398 /* SunOS 4.1.1 cc rejects this. */
11399 char const *const *pcpcc;
11400 char **ppc;
11401 /* NEC SVR4.0.2 mips cc rejects this. */
11402 struct point {int x, y;};
11403 static struct point const zero = {0,0};
11404 /* AIX XL C 1.02.0.0 rejects this.
11405 It does not let you subtract one const X* pointer from another in
11406 an arm of an if-expression whose if-part is not a constant
11407 expression */
11408 const char *g = "string";
11409 pcpcc = &g + (g ? g-g : 0);
11410 /* HPUX 7.0 cc rejects these. */
11411 ++pcpcc;
11412 ppc = (char**) pcpcc;
11413 pcpcc = (char const *const *) ppc;
11414 { /* SCO 3.2v4 cc rejects this. */
11415 char *t;
11416 char const *s = 0 ? (char *) 0 : (char const *) 0;
11417
11418 *t++ = 0;
11419 if (s) return 0;
11420 }
11421 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11422 int x[] = {25, 17};
11423 const int *foo = &x[0];
11424 ++foo;
11425 }
11426 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11427 typedef const int *iptr;
11428 iptr p = 0;
11429 ++p;
11430 }
11431 { /* AIX XL C 1.02.0.0 rejects this saying
11432 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11433 struct s { int j; const int *ap[3]; };
11434 struct s *b; b->j = 5;
11435 }
11436 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11437 const int foo = 10;
11438 if (!foo) return 0;
11439 }
11440 return !cs[0] && !zero.x;
11441 #endif
11442
11443 ;
11444 return 0;
11445 }
11446 _ACEOF
11447 rm -f conftest.$ac_objext
11448 if { (ac_try="$ac_compile"
11449 case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_compile") 2>conftest.er1
11455 ac_status=$?
11456 grep -v '^ *+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } && {
11461 test -z "$ac_c_werror_flag" ||
11462 test ! -s conftest.err
11463 } && test -s conftest.$ac_objext; then
11464 ac_cv_c_const=yes
11465 else
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11468
11469 ac_cv_c_const=no
11470 fi
11471
11472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11473 fi
11474 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11475 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11476 if test $ac_cv_c_const = no; then
11477
11478 cat >>confdefs.h <<\_ACEOF
11479 #define const
11480 _ACEOF
11481
11482 fi
11483
11484 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11485 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
11486 if test "${ac_cv_type_signal+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h. */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 #include <sys/types.h>
11496 #include <signal.h>
11497
11498 int
11499 main ()
11500 {
11501 return *(signal (0, 0)) (0) == 1;
11502 ;
11503 return 0;
11504 }
11505 _ACEOF
11506 rm -f conftest.$ac_objext
11507 if { (ac_try="$ac_compile"
11508 case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11511 esac
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_compile") 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } && {
11520 test -z "$ac_c_werror_flag" ||
11521 test ! -s conftest.err
11522 } && test -s conftest.$ac_objext; then
11523 ac_cv_type_signal=int
11524 else
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11527
11528 ac_cv_type_signal=void
11529 fi
11530
11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 fi
11533 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11534 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
11535
11536 cat >>confdefs.h <<_ACEOF
11537 #define RETSIGTYPE $ac_cv_type_signal
11538 _ACEOF
11539
11540
11541
11542
11543
11544 if test "x$GCC" = "xyes"
11545 then
11546 STATIC_GLIBC_FLAG="-XCClinker -static-libgcc"
11547 else
11548 STATIC_GLIBC_FLAG=""
11549 fi
11550
11551
11552 if test "x$prefix" = xNONE; then
11553 prefix=$ac_default_prefix
11554 fi
11555
11556 cat >>confdefs.h <<_ACEOF
11557 #define CONFIGFILE "`eval echo $sysconfdir/grossd.conf`"
11558 _ACEOF
11559
11560
11561 cat >>confdefs.h <<_ACEOF
11562 #define CONFIGURE_LINE "${CONFIGURE_LINE}"
11563 _ACEOF
11564
11565
11566 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11567
11568 cat >confcache <<\_ACEOF
11569 # This file is a shell script that caches the results of configure
11570 # tests run on this system so they can be shared between configure
11571 # scripts and configure runs, see configure's option --config-cache.
11572 # It is not useful on other systems. If it contains results you don't
11573 # want to keep, you may remove or edit it.
11574 #
11575 # config.status only pays attention to the cache file if you give it
11576 # the --recheck option to rerun configure.
11577 #
11578 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11579 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11580 # following values.
11581
11582 _ACEOF
11583
11584 # The following way of writing the cache mishandles newlines in values,
11585 # but we know of no workaround that is simple, portable, and efficient.
11586 # So, we kill variables containing newlines.
11587 # Ultrix sh set writes to stderr and can't be redirected directly,
11588 # and sets the high bit in the cache file unless we assign to the vars.
11589 (
11590 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11591 eval ac_val=\$$ac_var
11592 case $ac_val in #(
11593 *${as_nl}*)
11594 case $ac_var in #(
11595 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11596 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11597 esac
11598 case $ac_var in #(
11599 _ | IFS | as_nl) ;; #(
11600 *) $as_unset $ac_var ;;
11601 esac ;;
11602 esac
11603 done
11604
11605 (set) 2>&1 |
11606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11607 *${as_nl}ac_space=\ *)
11608 # `set' does not quote correctly, so add quotes (double-quote
11609 # substitution turns \\\\ into \\, and sed turns \\ into \).
11610 sed -n \
11611 "s/'/'\\\\''/g;
11612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11613 ;; #(
11614 *)
11615 # `set' quotes correctly as required by POSIX, so do not add quotes.
11616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11617 ;;
11618 esac |
11619 sort
11620 ) |
11621 sed '
11622 /^ac_cv_env_/b end
11623 t clear
11624 :clear
11625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11626 t end
11627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11628 :end' >>confcache
11629 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11630 if test -w "$cache_file"; then
11631 test "x$cache_file" != "x/dev/null" &&
11632 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11633 echo "$as_me: updating cache $cache_file" >&6;}
11634 cat confcache >$cache_file
11635 else
11636 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11637 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11638 fi
11639 fi
11640 rm -f confcache
11641
11642 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11643 # Let make expand exec_prefix.
11644 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11645
11646 DEFS=-DHAVE_CONFIG_H
11647
11648 ac_libobjs=
11649 ac_ltlibobjs=
11650 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11651 # 1. Remove the extension, and $U if already installed.
11652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11653 ac_i=`echo "$ac_i" | sed "$ac_script"`
11654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11655 # will be set to the directory where LIBOBJS objects are built.
11656 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11657 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11658 done
11659 LIBOBJS=$ac_libobjs
11660
11661 LTLIBOBJS=$ac_ltlibobjs
11662
11663
11664 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11665 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11666 Usually this means the macro was only invoked conditionally." >&5
11667 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11668 Usually this means the macro was only invoked conditionally." >&2;}
11669 { (exit 1); exit 1; }; }
11670 fi
11671 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11672 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11673 Usually this means the macro was only invoked conditionally." >&5
11674 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11675 Usually this means the macro was only invoked conditionally." >&2;}
11676 { (exit 1); exit 1; }; }
11677 fi
11678 if test -z "${HAVE_SED_TRUE}" && test -z "${HAVE_SED_FALSE}"; then
11679 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SED\" was never defined.
11680 Usually this means the macro was only invoked conditionally." >&5
11681 echo "$as_me: error: conditional \"HAVE_SED\" was never defined.
11682 Usually this means the macro was only invoked conditionally." >&2;}
11683 { (exit 1); exit 1; }; }
11684 fi
11685
11686 : ${CONFIG_STATUS=./config.status}
11687 ac_clean_files_save=$ac_clean_files
11688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11689 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11690 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11691 cat >$CONFIG_STATUS <<_ACEOF
11692 #! $SHELL
11693 # Generated by $as_me.
11694 # Run this file to recreate the current configuration.
11695 # Compiler output produced by configure, useful for debugging
11696 # configure, is in config.log if it exists.
11697
11698 debug=false
11699 ac_cs_recheck=false
11700 ac_cs_silent=false
11701 SHELL=\${CONFIG_SHELL-$SHELL}
11702 _ACEOF
11703
11704 cat >>$CONFIG_STATUS <<\_ACEOF
11705 ## --------------------- ##
11706 ## M4sh Initialization. ##
11707 ## --------------------- ##
11708
11709 # Be more Bourne compatible
11710 DUALCASE=1; export DUALCASE # for MKS sh
11711 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11712 emulate sh
11713 NULLCMD=:
11714 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11715 # is contrary to our usage. Disable this feature.
11716 alias -g '${1+"$@"}'='"$@"'
11717 setopt NO_GLOB_SUBST
11718 else
11719 case `(set -o) 2>/dev/null` in
11720 *posix*) set -o posix ;;
11721 esac
11722
11723 fi
11724
11725
11726
11727
11728 # PATH needs CR
11729 # Avoid depending upon Character Ranges.
11730 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11731 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11732 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11733 as_cr_digits='0123456789'
11734 as_cr_alnum=$as_cr_Letters$as_cr_digits
11735
11736 # The user is always right.
11737 if test "${PATH_SEPARATOR+set}" != set; then
11738 echo "#! /bin/sh" >conf$$.sh
11739 echo "exit 0" >>conf$$.sh
11740 chmod +x conf$$.sh
11741 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11742 PATH_SEPARATOR=';'
11743 else
11744 PATH_SEPARATOR=:
11745 fi
11746 rm -f conf$$.sh
11747 fi
11748
11749 # Support unset when possible.
11750 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11751 as_unset=unset
11752 else
11753 as_unset=false
11754 fi
11755
11756
11757 # IFS
11758 # We need space, tab and new line, in precisely that order. Quoting is
11759 # there to prevent editors from complaining about space-tab.
11760 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11761 # splitting by setting IFS to empty value.)
11762 as_nl='
11763 '
11764 IFS=" "" $as_nl"
11765
11766 # Find who we are. Look in the path if we contain no directory separator.
11767 case $0 in
11768 *[\\/]* ) as_myself=$0 ;;
11769 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770 for as_dir in $PATH
11771 do
11772 IFS=$as_save_IFS
11773 test -z "$as_dir" && as_dir=.
11774 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11775 done
11776 IFS=$as_save_IFS
11777
11778 ;;
11779 esac
11780 # We did not find ourselves, most probably we were run as `sh COMMAND'
11781 # in which case we are not to be found in the path.
11782 if test "x$as_myself" = x; then
11783 as_myself=$0
11784 fi
11785 if test ! -f "$as_myself"; then
11786 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11787 { (exit 1); exit 1; }
11788 fi
11789
11790 # Work around bugs in pre-3.0 UWIN ksh.
11791 for as_var in ENV MAIL MAILPATH
11792 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11793 done
11794 PS1='$ '
11795 PS2='> '
11796 PS4='+ '
11797
11798 # NLS nuisances.
11799 for as_var in \
11800 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11801 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11802 LC_TELEPHONE LC_TIME
11803 do
11804 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11805 eval $as_var=C; export $as_var
11806 else
11807 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11808 fi
11809 done
11810
11811 # Required to use basename.
11812 if expr a : '\(a\)' >/dev/null 2>&1 &&
11813 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11814 as_expr=expr
11815 else
11816 as_expr=false
11817 fi
11818
11819 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11820 as_basename=basename
11821 else
11822 as_basename=false
11823 fi
11824
11825
11826 # Name of the executable.
11827 as_me=`$as_basename -- "$0" ||
11828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11829 X"$0" : 'X\(//\)$' \| \
11830 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11831 echo X/"$0" |
11832 sed '/^.*\/\([^/][^/]*\)\/*$/{
11833 s//\1/
11834 q
11835 }
11836 /^X\/\(\/\/\)$/{
11837 s//\1/
11838 q
11839 }
11840 /^X\/\(\/\).*/{
11841 s//\1/
11842 q
11843 }
11844 s/.*/./; q'`
11845
11846 # CDPATH.
11847 $as_unset CDPATH
11848
11849
11850
11851 as_lineno_1=$LINENO
11852 as_lineno_2=$LINENO
11853 test "x$as_lineno_1" != "x$as_lineno_2" &&
11854 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11855
11856 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11857 # uniformly replaced by the line number. The first 'sed' inserts a
11858 # line-number line after each line using $LINENO; the second 'sed'
11859 # does the real work. The second script uses 'N' to pair each
11860 # line-number line with the line containing $LINENO, and appends
11861 # trailing '-' during substitution so that $LINENO is not a special
11862 # case at line end.
11863 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11864 # scripts with optimization help from Paolo Bonzini. Blame Lee
11865 # E. McMahon (1931-1989) for sed's syntax. :-)
11866 sed -n '
11867 p
11868 /[$]LINENO/=
11869 ' <$as_myself |
11870 sed '
11871 s/[$]LINENO.*/&-/
11872 t lineno
11873 b
11874 :lineno
11875 N
11876 :loop
11877 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11878 t loop
11879 s/-\n.*//
11880 ' >$as_me.lineno &&
11881 chmod +x "$as_me.lineno" ||
11882 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11883 { (exit 1); exit 1; }; }
11884
11885 # Don't try to exec as it changes $[0], causing all sort of problems
11886 # (the dirname of $[0] is not the place where we might find the
11887 # original and so on. Autoconf is especially sensitive to this).
11888 . "./$as_me.lineno"
11889 # Exit status is that of the last command.
11890 exit
11891 }
11892
11893
11894 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11895 as_dirname=dirname
11896 else
11897 as_dirname=false
11898 fi
11899
11900 ECHO_C= ECHO_N= ECHO_T=
11901 case `echo -n x` in
11902 -n*)
11903 case `echo 'x\c'` in
11904 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11905 *) ECHO_C='\c';;
11906 esac;;
11907 *)
11908 ECHO_N='-n';;
11909 esac
11910
11911 if expr a : '\(a\)' >/dev/null 2>&1 &&
11912 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11913 as_expr=expr
11914 else
11915 as_expr=false
11916 fi
11917
11918 rm -f conf$$ conf$$.exe conf$$.file
11919 if test -d conf$$.dir; then
11920 rm -f conf$$.dir/conf$$.file
11921 else
11922 rm -f conf$$.dir
11923 mkdir conf$$.dir
11924 fi
11925 echo >conf$$.file
11926 if ln -s conf$$.file conf$$ 2>/dev/null; then
11927 as_ln_s='ln -s'
11928 # ... but there are two gotchas:
11929 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11930 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11931 # In both cases, we have to default to `cp -p'.
11932 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11933 as_ln_s='cp -p'
11934 elif ln conf$$.file conf$$ 2>/dev/null; then
11935 as_ln_s=ln
11936 else
11937 as_ln_s='cp -p'
11938 fi
11939 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11940 rmdir conf$$.dir 2>/dev/null
11941
11942 if mkdir -p . 2>/dev/null; then
11943 as_mkdir_p=:
11944 else
11945 test -d ./-p && rmdir ./-p
11946 as_mkdir_p=false
11947 fi
11948
11949 if test -x / >/dev/null 2>&1; then
11950 as_test_x='test -x'
11951 else
11952 if ls -dL / >/dev/null 2>&1; then
11953 as_ls_L_option=L
11954 else
11955 as_ls_L_option=
11956 fi
11957 as_test_x='
11958 eval sh -c '\''
11959 if test -d "$1"; then
11960 test -d "$1/.";
11961 else
11962 case $1 in
11963 -*)set "./$1";;
11964 esac;
11965 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11966 ???[sx]*):;;*)false;;esac;fi
11967 '\'' sh
11968 '
11969 fi
11970 as_executable_p=$as_test_x
11971
11972 # Sed expression to map a string onto a valid CPP name.
11973 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11974
11975 # Sed expression to map a string onto a valid variable name.
11976 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11977
11978
11979 exec 6>&1
11980
11981 # Save the log message, to keep $[0] and so on meaningful, and to
11982 # report actual input values of CONFIG_FILES etc. instead of their
11983 # values after options handling.
11984 ac_log="
11985 This file was extended by gross $as_me 1.0-svn, which was
11986 generated by GNU Autoconf 2.61. Invocation command line was
11987
11988 CONFIG_FILES = $CONFIG_FILES
11989 CONFIG_HEADERS = $CONFIG_HEADERS
11990 CONFIG_LINKS = $CONFIG_LINKS
11991 CONFIG_COMMANDS = $CONFIG_COMMANDS
11992 $ $0 $@
11993
11994 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11995 "
11996
11997 _ACEOF
11998
11999 cat >>$CONFIG_STATUS <<_ACEOF
12000 # Files that config.status was made for.
12001 config_files="$ac_config_files"
12002 config_headers="$ac_config_headers"
12003 config_commands="$ac_config_commands"
12004
12005 _ACEOF
12006
12007 cat >>$CONFIG_STATUS <<\_ACEOF
12008 ac_cs_usage="\
12009 \`$as_me' instantiates files from templates according to the
12010 current configuration.
12011
12012 Usage: $0 [OPTIONS] [FILE]...
12013
12014 -h, --help print this help, then exit
12015 -V, --version print version number and configuration settings, then exit
12016 -q, --quiet do not print progress messages
12017 -d, --debug don't remove temporary files
12018 --recheck update $as_me by reconfiguring in the same conditions
12019 --file=FILE[:TEMPLATE]
12020 instantiate the configuration file FILE
12021 --header=FILE[:TEMPLATE]
12022 instantiate the configuration header FILE
12023
12024 Configuration files:
12025 $config_files
12026
12027 Configuration headers:
12028 $config_headers
12029
12030 Configuration commands:
12031 $config_commands
12032
12033 Report bugs to <[email protected]>."
12034
12035 _ACEOF
12036 cat >>$CONFIG_STATUS <<_ACEOF
12037 ac_cs_version="\\
12038 gross config.status 1.0-svn
12039 configured by $0, generated by GNU Autoconf 2.61,
12040 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12041
12042 Copyright (C) 2006 Free Software Foundation, Inc.
12043 This config.status script is free software; the Free Software Foundation
12044 gives unlimited permission to copy, distribute and modify it."
12045
12046 ac_pwd='$ac_pwd'
12047 srcdir='$srcdir'
12048 INSTALL='$INSTALL'
12049 MKDIR_P='$MKDIR_P'
12050 _ACEOF
12051
12052 cat >>$CONFIG_STATUS <<\_ACEOF
12053 # If no file are specified by the user, then we need to provide default
12054 # value. By we need to know if files were specified by the user.
12055 ac_need_defaults=:
12056 while test $# != 0
12057 do
12058 case $1 in
12059 --*=*)
12060 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12061 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12062 ac_shift=:
12063 ;;
12064 *)
12065 ac_option=$1
12066 ac_optarg=$2
12067 ac_shift=shift
12068 ;;
12069 esac
12070
12071 case $ac_option in
12072 # Handling of the options.
12073 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12074 ac_cs_recheck=: ;;
12075 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12076 echo "$ac_cs_version"; exit ;;
12077 --debug | --debu | --deb | --de | --d | -d )
12078 debug=: ;;
12079 --file | --fil | --fi | --f )
12080 $ac_shift
12081 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12082 ac_need_defaults=false;;
12083 --header | --heade | --head | --hea )
12084 $ac_shift
12085 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12086 ac_need_defaults=false;;
12087 --he | --h)
12088 # Conflict between --help and --header
12089 { echo "$as_me: error: ambiguous option: $1
12090 Try \`$0 --help' for more information." >&2
12091 { (exit 1); exit 1; }; };;
12092 --help | --hel | -h )
12093 echo "$ac_cs_usage"; exit ;;
12094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12095 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12096 ac_cs_silent=: ;;
12097
12098 # This is an error.
12099 -*) { echo "$as_me: error: unrecognized option: $1
12100 Try \`$0 --help' for more information." >&2
12101 { (exit 1); exit 1; }; } ;;
12102
12103 *) ac_config_targets="$ac_config_targets $1"
12104 ac_need_defaults=false ;;
12105
12106 esac
12107 shift
12108 done
12109
12110 ac_configure_extra_args=
12111
12112 if $ac_cs_silent; then
12113 exec 6>/dev/null
12114 ac_configure_extra_args="$ac_configure_extra_args --silent"
12115 fi
12116
12117 _ACEOF
12118 cat >>$CONFIG_STATUS <<_ACEOF
12119 if \$ac_cs_recheck; then
12120 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12121 CONFIG_SHELL=$SHELL
12122 export CONFIG_SHELL
12123 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12124 fi
12125
12126 _ACEOF
12127 cat >>$CONFIG_STATUS <<\_ACEOF
12128 exec 5>>config.log
12129 {
12130 echo
12131 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12132 ## Running $as_me. ##
12133 _ASBOX
12134 echo "$ac_log"
12135 } >&5
12136
12137 _ACEOF
12138 cat >>$CONFIG_STATUS <<_ACEOF
12139 #
12140 # INIT-COMMANDS
12141 #
12142 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12143
12144 _ACEOF
12145
12146 cat >>$CONFIG_STATUS <<\_ACEOF
12147
12148 # Handling of arguments.
12149 for ac_config_target in $ac_config_targets
12150 do
12151 case $ac_config_target in
12152 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12153 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12154 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12155 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12156 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12157
12158 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12159 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12160 { (exit 1); exit 1; }; };;
12161 esac
12162 done
12163
12164
12165 # If the user did not use the arguments to specify the items to instantiate,
12166 # then the envvar interface is used. Set only those that are not.
12167 # We use the long form for the default assignment because of an extremely
12168 # bizarre bug on SunOS 4.1.3.
12169 if $ac_need_defaults; then
12170 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12171 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12172 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12173 fi
12174
12175 # Have a temporary directory for convenience. Make it in the build tree
12176 # simply because there is no reason against having it here, and in addition,
12177 # creating and moving files from /tmp can sometimes cause problems.
12178 # Hook for its removal unless debugging.
12179 # Note that there is a small window in which the directory will not be cleaned:
12180 # after its creation but before its name has been assigned to `$tmp'.
12181 $debug ||
12182 {
12183 tmp=
12184 trap 'exit_status=$?
12185 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12186 ' 0
12187 trap '{ (exit 1); exit 1; }' 1 2 13 15
12188 }
12189 # Create a (secure) tmp directory for tmp files.
12190
12191 {
12192 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12193 test -n "$tmp" && test -d "$tmp"
12194 } ||
12195 {
12196 tmp=./conf$$-$RANDOM
12197 (umask 077 && mkdir "$tmp")
12198 } ||
12199 {
12200 echo "$me: cannot create a temporary directory in ." >&2
12201 { (exit 1); exit 1; }
12202 }
12203
12204 #
12205 # Set up the sed scripts for CONFIG_FILES section.
12206 #
12207
12208 # No need to generate the scripts if there are no CONFIG_FILES.
12209 # This happens for instance when ./config.status config.h
12210 if test -n "$CONFIG_FILES"; then
12211
12212 _ACEOF
12213
12214
12215
12216 ac_delim='%!_!# '
12217 for ac_last_try in false false false false false :; do
12218 cat >conf$$subs.sed <<_ACEOF
12219 SHELL!$SHELL$ac_delim
12220 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12221 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12222 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12223 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12224 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12225 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12226 exec_prefix!$exec_prefix$ac_delim
12227 prefix!$prefix$ac_delim
12228 program_transform_name!$program_transform_name$ac_delim
12229 bindir!$bindir$ac_delim
12230 sbindir!$sbindir$ac_delim
12231 libexecdir!$libexecdir$ac_delim
12232 datarootdir!$datarootdir$ac_delim
12233 datadir!$datadir$ac_delim
12234 sysconfdir!$sysconfdir$ac_delim
12235 sharedstatedir!$sharedstatedir$ac_delim
12236 localstatedir!$localstatedir$ac_delim
12237 includedir!$includedir$ac_delim
12238 oldincludedir!$oldincludedir$ac_delim
12239 docdir!$docdir$ac_delim
12240 infodir!$infodir$ac_delim
12241 htmldir!$htmldir$ac_delim
12242 dvidir!$dvidir$ac_delim
12243 pdfdir!$pdfdir$ac_delim
12244 psdir!$psdir$ac_delim
12245 libdir!$libdir$ac_delim
12246 localedir!$localedir$ac_delim
12247 mandir!$mandir$ac_delim
12248 DEFS!$DEFS$ac_delim
12249 ECHO_C!$ECHO_C$ac_delim
12250 ECHO_N!$ECHO_N$ac_delim
12251 ECHO_T!$ECHO_T$ac_delim
12252 LIBS!$LIBS$ac_delim
12253 build_alias!$build_alias$ac_delim
12254 host_alias!$host_alias$ac_delim
12255 target_alias!$target_alias$ac_delim
12256 build!$build$ac_delim
12257 build_cpu!$build_cpu$ac_delim
12258 build_vendor!$build_vendor$ac_delim
12259 build_os!$build_os$ac_delim
12260 host!$host$ac_delim
12261 host_cpu!$host_cpu$ac_delim
12262 host_vendor!$host_vendor$ac_delim
12263 host_os!$host_os$ac_delim
12264 target!$target$ac_delim
12265 target_cpu!$target_cpu$ac_delim
12266 target_vendor!$target_vendor$ac_delim
12267 target_os!$target_os$ac_delim
12268 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12269 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12270 INSTALL_DATA!$INSTALL_DATA$ac_delim
12271 am__isrc!$am__isrc$ac_delim
12272 CYGPATH_W!$CYGPATH_W$ac_delim
12273 PACKAGE!$PACKAGE$ac_delim
12274 VERSION!$VERSION$ac_delim
12275 ACLOCAL!$ACLOCAL$ac_delim
12276 AUTOCONF!$AUTOCONF$ac_delim
12277 AUTOMAKE!$AUTOMAKE$ac_delim
12278 AUTOHEADER!$AUTOHEADER$ac_delim
12279 MAKEINFO!$MAKEINFO$ac_delim
12280 install_sh!$install_sh$ac_delim
12281 STRIP!$STRIP$ac_delim
12282 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12283 mkdir_p!$mkdir_p$ac_delim
12284 AWK!$AWK$ac_delim
12285 SET_MAKE!$SET_MAKE$ac_delim
12286 am__leading_dot!$am__leading_dot$ac_delim
12287 AMTAR!$AMTAR$ac_delim
12288 am__tar!$am__tar$ac_delim
12289 am__untar!$am__untar$ac_delim
12290 CC!$CC$ac_delim
12291 CFLAGS!$CFLAGS$ac_delim
12292 LDFLAGS!$LDFLAGS$ac_delim
12293 CPPFLAGS!$CPPFLAGS$ac_delim
12294 ac_ct_CC!$ac_ct_CC$ac_delim
12295 EXEEXT!$EXEEXT$ac_delim
12296 OBJEXT!$OBJEXT$ac_delim
12297 DEPDIR!$DEPDIR$ac_delim
12298 am__include!$am__include$ac_delim
12299 am__quote!$am__quote$ac_delim
12300 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12301 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12302 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12303 CCDEPMODE!$CCDEPMODE$ac_delim
12304 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12305 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12306 GREP!$GREP$ac_delim
12307 EGREP!$EGREP$ac_delim
12308 LN_S!$LN_S$ac_delim
12309 ECHO!$ECHO$ac_delim
12310 AR!$AR$ac_delim
12311 RANLIB!$RANLIB$ac_delim
12312 CPP!$CPP$ac_delim
12313 LIBTOOL!$LIBTOOL$ac_delim
12314 SED!$SED$ac_delim
12315 HAVE_SED_TRUE!$HAVE_SED_TRUE$ac_delim
12316 _ACEOF
12317
12318 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12319 break
12320 elif $ac_last_try; then
12321 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12322 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12323 { (exit 1); exit 1; }; }
12324 else
12325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12326 fi
12327 done
12328
12329 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12330 if test -n "$ac_eof"; then
12331 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12332 ac_eof=`expr $ac_eof + 1`
12333 fi
12334
12335 cat >>$CONFIG_STATUS <<_ACEOF
12336 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12338 _ACEOF
12339 sed '
12340 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12341 s/^/s,@/; s/!/@,|#_!!_#|/
12342 :n
12343 t n
12344 s/'"$ac_delim"'$/,g/; t
12345 s/$/\\/; p
12346 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12347 ' >>$CONFIG_STATUS <conf$$subs.sed
12348 rm -f conf$$subs.sed
12349 cat >>$CONFIG_STATUS <<_ACEOF
12350 CEOF$ac_eof
12351 _ACEOF
12352
12353
12354 ac_delim='%!_!# '
12355 for ac_last_try in false false false false false :; do
12356 cat >conf$$subs.sed <<_ACEOF
12357 HAVE_SED_FALSE!$HAVE_SED_FALSE$ac_delim
12358 DNSBLSOURCES!$DNSBLSOURCES$ac_delim
12359 MILTERSOURCES!$MILTERSOURCES$ac_delim
12360 REENTRANT_FLAG!$REENTRANT_FLAG$ac_delim
12361 STATIC_GLIBC_FLAG!$STATIC_GLIBC_FLAG$ac_delim
12362 LIBOBJS!$LIBOBJS$ac_delim
12363 LTLIBOBJS!$LTLIBOBJS$ac_delim
12364 _ACEOF
12365
12366 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
12367 break
12368 elif $ac_last_try; then
12369 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12370 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12371 { (exit 1); exit 1; }; }
12372 else
12373 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12374 fi
12375 done
12376
12377 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12378 if test -n "$ac_eof"; then
12379 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12380 ac_eof=`expr $ac_eof + 1`
12381 fi
12382
12383 cat >>$CONFIG_STATUS <<_ACEOF
12384 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12385 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12386 _ACEOF
12387 sed '
12388 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12389 s/^/s,@/; s/!/@,|#_!!_#|/
12390 :n
12391 t n
12392 s/'"$ac_delim"'$/,g/; t
12393 s/$/\\/; p
12394 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12395 ' >>$CONFIG_STATUS <conf$$subs.sed
12396 rm -f conf$$subs.sed
12397 cat >>$CONFIG_STATUS <<_ACEOF
12398 :end
12399 s/|#_!!_#|//g
12400 CEOF$ac_eof
12401 _ACEOF
12402
12403
12404 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12405 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12406 # trailing colons and then remove the whole line if VPATH becomes empty
12407 # (actually we leave an empty line to preserve line numbers).
12408 if test "x$srcdir" = x.; then
12409 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12410 s/:*\$(srcdir):*/:/
12411 s/:*\${srcdir}:*/:/
12412 s/:*@srcdir@:*/:/
12413 s/^\([^=]*=[ ]*\):*/\1/
12414 s/:*$//
12415 s/^[^=]*=[ ]*$//
12416 }'
12417 fi
12418
12419 cat >>$CONFIG_STATUS <<\_ACEOF
12420 fi # test -n "$CONFIG_FILES"
12421
12422
12423 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12424 do
12425 case $ac_tag in
12426 :[FHLC]) ac_mode=$ac_tag; continue;;
12427 esac
12428 case $ac_mode$ac_tag in
12429 :[FHL]*:*);;
12430 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12431 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12432 { (exit 1); exit 1; }; };;
12433 :[FH]-) ac_tag=-:-;;
12434 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12435 esac
12436 ac_save_IFS=$IFS
12437 IFS=:
12438 set x $ac_tag
12439 IFS=$ac_save_IFS
12440 shift
12441 ac_file=$1
12442 shift
12443
12444 case $ac_mode in
12445 :L) ac_source=$1;;
12446 :[FH])
12447 ac_file_inputs=
12448 for ac_f
12449 do
12450 case $ac_f in
12451 -) ac_f="$tmp/stdin";;
12452 *) # Look for the file first in the build tree, then in the source tree
12453 # (if the path is not absolute). The absolute path cannot be DOS-style,
12454 # because $ac_f cannot contain `:'.
12455 test -f "$ac_f" ||
12456 case $ac_f in
12457 [\\/$]*) false;;
12458 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12459 esac ||
12460 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12461 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12462 { (exit 1); exit 1; }; };;
12463 esac
12464 ac_file_inputs="$ac_file_inputs $ac_f"
12465 done
12466
12467 # Let's still pretend it is `configure' which instantiates (i.e., don't
12468 # use $as_me), people would be surprised to read:
12469 # /* config.h. Generated by config.status. */
12470 configure_input="Generated from "`IFS=:
12471 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12472 if test x"$ac_file" != x-; then
12473 configure_input="$ac_file. $configure_input"
12474 { echo "$as_me:$LINENO: creating $ac_file" >&5
12475 echo "$as_me: creating $ac_file" >&6;}
12476 fi
12477
12478 case $ac_tag in
12479 *:-:* | *:-) cat >"$tmp/stdin";;
12480 esac
12481 ;;
12482 esac
12483
12484 ac_dir=`$as_dirname -- "$ac_file" ||
12485 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12486 X"$ac_file" : 'X\(//\)[^/]' \| \
12487 X"$ac_file" : 'X\(//\)$' \| \
12488 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12489 echo X"$ac_file" |
12490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12491 s//\1/
12492 q
12493 }
12494 /^X\(\/\/\)[^/].*/{
12495 s//\1/
12496 q
12497 }
12498 /^X\(\/\/\)$/{
12499 s//\1/
12500 q
12501 }
12502 /^X\(\/\).*/{
12503 s//\1/
12504 q
12505 }
12506 s/.*/./; q'`
12507 { as_dir="$ac_dir"
12508 case $as_dir in #(
12509 -*) as_dir=./$as_dir;;
12510 esac
12511 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12512 as_dirs=
12513 while :; do
12514 case $as_dir in #(
12515 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12516 *) as_qdir=$as_dir;;
12517 esac
12518 as_dirs="'$as_qdir' $as_dirs"
12519 as_dir=`$as_dirname -- "$as_dir" ||
12520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12521 X"$as_dir" : 'X\(//\)[^/]' \| \
12522 X"$as_dir" : 'X\(//\)$' \| \
12523 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12524 echo X"$as_dir" |
12525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12526 s//\1/
12527 q
12528 }
12529 /^X\(\/\/\)[^/].*/{
12530 s//\1/
12531 q
12532 }
12533 /^X\(\/\/\)$/{
12534 s//\1/
12535 q
12536 }
12537 /^X\(\/\).*/{
12538 s//\1/
12539 q
12540 }
12541 s/.*/./; q'`
12542 test -d "$as_dir" && break
12543 done
12544 test -z "$as_dirs" || eval "mkdir $as_dirs"
12545 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12546 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12547 { (exit 1); exit 1; }; }; }
12548 ac_builddir=.
12549
12550 case "$ac_dir" in
12551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12552 *)
12553 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12554 # A ".." for each directory in $ac_dir_suffix.
12555 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12556 case $ac_top_builddir_sub in
12557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12559 esac ;;
12560 esac
12561 ac_abs_top_builddir=$ac_pwd
12562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12563 # for backward compatibility:
12564 ac_top_builddir=$ac_top_build_prefix
12565
12566 case $srcdir in
12567 .) # We are building in place.
12568 ac_srcdir=.
12569 ac_top_srcdir=$ac_top_builddir_sub
12570 ac_abs_top_srcdir=$ac_pwd ;;
12571 [\\/]* | ?:[\\/]* ) # Absolute name.
12572 ac_srcdir=$srcdir$ac_dir_suffix;
12573 ac_top_srcdir=$srcdir
12574 ac_abs_top_srcdir=$srcdir ;;
12575 *) # Relative name.
12576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12577 ac_top_srcdir=$ac_top_build_prefix$srcdir
12578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12579 esac
12580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12581
12582
12583 case $ac_mode in
12584 :F)
12585 #
12586 # CONFIG_FILE
12587 #
12588
12589 case $INSTALL in
12590 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12591 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12592 esac
12593 ac_MKDIR_P=$MKDIR_P
12594 case $MKDIR_P in
12595 [\\/$]* | ?:[\\/]* ) ;;
12596 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12597 esac
12598 _ACEOF
12599
12600 cat >>$CONFIG_STATUS <<\_ACEOF
12601 # If the template does not know about datarootdir, expand it.
12602 # FIXME: This hack should be removed a few years after 2.60.
12603 ac_datarootdir_hack=; ac_datarootdir_seen=
12604
12605 case `sed -n '/datarootdir/ {
12606 p
12607 q
12608 }
12609 /@datadir@/p
12610 /@docdir@/p
12611 /@infodir@/p
12612 /@localedir@/p
12613 /@mandir@/p
12614 ' $ac_file_inputs` in
12615 *datarootdir*) ac_datarootdir_seen=yes;;
12616 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12617 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12618 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12619 _ACEOF
12620 cat >>$CONFIG_STATUS <<_ACEOF
12621 ac_datarootdir_hack='
12622 s&@datadir@&$datadir&g
12623 s&@docdir@&$docdir&g
12624 s&@infodir@&$infodir&g
12625 s&@localedir@&$localedir&g
12626 s&@mandir@&$mandir&g
12627 s&\\\${datarootdir}&$datarootdir&g' ;;
12628 esac
12629 _ACEOF
12630
12631 # Neutralize VPATH when `$srcdir' = `.'.
12632 # Shell code in configure.ac might set extrasub.
12633 # FIXME: do we really want to maintain this feature?
12634 cat >>$CONFIG_STATUS <<_ACEOF
12635 sed "$ac_vpsub
12636 $extrasub
12637 _ACEOF
12638 cat >>$CONFIG_STATUS <<\_ACEOF
12639 :t
12640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12641 s&@configure_input@&$configure_input&;t t
12642 s&@top_builddir@&$ac_top_builddir_sub&;t t
12643 s&@srcdir@&$ac_srcdir&;t t
12644 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12645 s&@top_srcdir@&$ac_top_srcdir&;t t
12646 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12647 s&@builddir@&$ac_builddir&;t t
12648 s&@abs_builddir@&$ac_abs_builddir&;t t
12649 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12650 s&@INSTALL@&$ac_INSTALL&;t t
12651 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12652 $ac_datarootdir_hack
12653 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12654
12655 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12656 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12658 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12659 which seems to be undefined. Please make sure it is defined." >&5
12660 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12661 which seems to be undefined. Please make sure it is defined." >&2;}
12662
12663 rm -f "$tmp/stdin"
12664 case $ac_file in
12665 -) cat "$tmp/out"; rm -f "$tmp/out";;
12666 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12667 esac
12668 ;;
12669 :H)
12670 #
12671 # CONFIG_HEADER
12672 #
12673 _ACEOF
12674
12675 # Transform confdefs.h into a sed script `conftest.defines', that
12676 # substitutes the proper values into config.h.in to produce config.h.
12677 rm -f conftest.defines conftest.tail
12678 # First, append a space to every undef/define line, to ease matching.
12679 echo 's/$/ /' >conftest.defines
12680 # Then, protect against being on the right side of a sed subst, or in
12681 # an unquoted here document, in config.status. If some macros were
12682 # called several times there might be several #defines for the same
12683 # symbol, which is useless. But do not sort them, since the last
12684 # AC_DEFINE must be honored.
12685 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12686 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12687 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12688 # PARAMS is the parameter list in the macro definition--in most cases, it's
12689 # just an empty string.
12690 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12691 ac_dB='\\)[ (].*,\\1define\\2'
12692 ac_dC=' '
12693 ac_dD=' ,'
12694
12695 uniq confdefs.h |
12696 sed -n '
12697 t rset
12698 :rset
12699 s/^[ ]*#[ ]*define[ ][ ]*//
12700 t ok
12701 d
12702 :ok
12703 s/[\\&,]/\\&/g
12704 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12705 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12706 ' >>conftest.defines
12707
12708 # Remove the space that was appended to ease matching.
12709 # Then replace #undef with comments. This is necessary, for
12710 # example, in the case of _POSIX_SOURCE, which is predefined and required
12711 # on some systems where configure will not decide to define it.
12712 # (The regexp can be short, since the line contains either #define or #undef.)
12713 echo 's/ $//
12714 s,^[ #]*u.*,/* & */,' >>conftest.defines
12715
12716 # Break up conftest.defines:
12717 ac_max_sed_lines=50
12718
12719 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12720 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12721 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12722 # et cetera.
12723 ac_in='$ac_file_inputs'
12724 ac_out='"$tmp/out1"'
12725 ac_nxt='"$tmp/out2"'
12726
12727 while :
12728 do
12729 # Write a here document:
12730 cat >>$CONFIG_STATUS <<_ACEOF
12731 # First, check the format of the line:
12732 cat >"\$tmp/defines.sed" <<\\CEOF
12733 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12734 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12735 b
12736 :def
12737 _ACEOF
12738 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12739 echo 'CEOF
12740 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12741 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12742 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12743 grep . conftest.tail >/dev/null || break
12744 rm -f conftest.defines
12745 mv conftest.tail conftest.defines
12746 done
12747 rm -f conftest.defines conftest.tail
12748
12749 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12750 cat >>$CONFIG_STATUS <<\_ACEOF
12751 if test x"$ac_file" != x-; then
12752 echo "/* $configure_input */" >"$tmp/config.h"
12753 cat "$ac_result" >>"$tmp/config.h"
12754 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12755 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12756 echo "$as_me: $ac_file is unchanged" >&6;}
12757 else
12758 rm -f $ac_file
12759 mv "$tmp/config.h" $ac_file
12760 fi
12761 else
12762 echo "/* $configure_input */"
12763 cat "$ac_result"
12764 fi
12765 rm -f "$tmp/out12"
12766 # Compute $ac_file's index in $config_headers.
12767 _am_stamp_count=1
12768 for _am_header in $config_headers :; do
12769 case $_am_header in
12770 $ac_file | $ac_file:* )
12771 break ;;
12772 * )
12773 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12774 esac
12775 done
12776 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
12777 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12778 X$ac_file : 'X\(//\)[^/]' \| \
12779 X$ac_file : 'X\(//\)$' \| \
12780 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
12781 echo X$ac_file |
12782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12783 s//\1/
12784 q
12785 }
12786 /^X\(\/\/\)[^/].*/{
12787 s//\1/
12788 q
12789 }
12790 /^X\(\/\/\)$/{
12791 s//\1/
12792 q
12793 }
12794 /^X\(\/\).*/{
12795 s//\1/
12796 q
12797 }
12798 s/.*/./; q'`/stamp-h$_am_stamp_count
12799 ;;
12800
12801 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12802 echo "$as_me: executing $ac_file commands" >&6;}
12803 ;;
12804 esac
12805
12806
12807 case $ac_file$ac_mode in
12808 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12809 # Strip MF so we end up with the name of the file.
12810 mf=`echo "$mf" | sed -e 's/:.*$//'`
12811 # Check whether this is an Automake generated Makefile or not.
12812 # We used to match only the files named `Makefile.in', but
12813 # some people rename them; so instead we look at the file content.
12814 # Grep'ing the first line is not enough: some people post-process
12815 # each Makefile.in and add a new line on top of each file to say so.
12816 # Grep'ing the whole file is not good either: AIX grep has a line
12817 # limit of 2048, but all sed's we know have understand at least 4000.
12818 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
12819 dirpart=`$as_dirname -- "$mf" ||
12820 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12821 X"$mf" : 'X\(//\)[^/]' \| \
12822 X"$mf" : 'X\(//\)$' \| \
12823 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12824 echo X"$mf" |
12825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12826 s//\1/
12827 q
12828 }
12829 /^X\(\/\/\)[^/].*/{
12830 s//\1/
12831 q
12832 }
12833 /^X\(\/\/\)$/{
12834 s//\1/
12835 q
12836 }
12837 /^X\(\/\).*/{
12838 s//\1/
12839 q
12840 }
12841 s/.*/./; q'`
12842 else
12843 continue
12844 fi
12845 # Extract the definition of DEPDIR, am__include, and am__quote
12846 # from the Makefile without running `make'.
12847 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12848 test -z "$DEPDIR" && continue
12849 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12850 test -z "am__include" && continue
12851 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12852 # When using ansi2knr, U may be empty or an underscore; expand it
12853 U=`sed -n 's/^U = //p' < "$mf"`
12854 # Find all dependency output files, they are included files with
12855 # $(DEPDIR) in their names. We invoke sed twice because it is the
12856 # simplest approach to changing $(DEPDIR) to its actual value in the
12857 # expansion.
12858 for file in `sed -n "
12859 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12860 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12861 # Make sure the directory exists.
12862 test -f "$dirpart/$file" && continue
12863 fdir=`$as_dirname -- "$file" ||
12864 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12865 X"$file" : 'X\(//\)[^/]' \| \
12866 X"$file" : 'X\(//\)$' \| \
12867 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12868 echo X"$file" |
12869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12870 s//\1/
12871 q
12872 }
12873 /^X\(\/\/\)[^/].*/{
12874 s//\1/
12875 q
12876 }
12877 /^X\(\/\/\)$/{
12878 s//\1/
12879 q
12880 }
12881 /^X\(\/\).*/{
12882 s//\1/
12883 q
12884 }
12885 s/.*/./; q'`
12886 { as_dir=$dirpart/$fdir
12887 case $as_dir in #(
12888 -*) as_dir=./$as_dir;;
12889 esac
12890 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12891 as_dirs=
12892 while :; do
12893 case $as_dir in #(
12894 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12895 *) as_qdir=$as_dir;;
12896 esac
12897 as_dirs="'$as_qdir' $as_dirs"
12898 as_dir=`$as_dirname -- "$as_dir" ||
12899 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12900 X"$as_dir" : 'X\(//\)[^/]' \| \
12901 X"$as_dir" : 'X\(//\)$' \| \
12902 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12903 echo X"$as_dir" |
12904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12905 s//\1/
12906 q
12907 }
12908 /^X\(\/\/\)[^/].*/{
12909 s//\1/
12910 q
12911 }
12912 /^X\(\/\/\)$/{
12913 s//\1/
12914 q
12915 }
12916 /^X\(\/\).*/{
12917 s//\1/
12918 q
12919 }
12920 s/.*/./; q'`
12921 test -d "$as_dir" && break
12922 done
12923 test -z "$as_dirs" || eval "mkdir $as_dirs"
12924 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12925 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12926 { (exit 1); exit 1; }; }; }
12927 # echo "creating $dirpart/$file"
12928 echo '# dummy' > "$dirpart/$file"
12929 done
12930 done
12931 ;;
12932
12933 esac
12934 done # for ac_tag
12935
12936
12937 { (exit 0); exit 0; }
12938 _ACEOF
12939 chmod +x $CONFIG_STATUS
12940 ac_clean_files=$ac_clean_files_save
12941
12942
12943 # configure is writing to config.log, and then calls config.status.
12944 # config.status does its own redirection, appending to config.log.
12945 # Unfortunately, on DOS this fails, as config.log is still kept open
12946 # by configure, so config.status won't be able to write to it; its
12947 # output is simply discarded. So we exec the FD to /dev/null,
12948 # effectively closing config.log, so it can be properly (re)opened and
12949 # appended to by config.status. When coming back to configure, we
12950 # need to make the FD available again.
12951 if test "$no_create" != yes; then
12952 ac_cs_success=:
12953 ac_config_status_args=
12954 test "$silent" = yes &&
12955 ac_config_status_args="$ac_config_status_args --quiet"
12956 exec 5>/dev/null
12957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12958 exec 5>>config.log
12959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12960 # would make configure fail if this is the last instruction.
12961 $ac_cs_success || { (exit 1); exit 1; }
12962 fi
12963