Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / liblock / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8d138742 3# Generated by GNU Autoconf 2.63 for liblock 0.60.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
dd184caf 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
dd184caf 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
8d138742 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
d9898ee8 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
dd184caf 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
8d138742
CE
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
dd184caf 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
8d138742
CE
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
d9898ee8 81fi
d9898ee8 82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
dd184caf 91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
dd184caf 96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
8d138742 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
dd184caf 119 { (exit 1); exit 1; }
120fi
121
d9898ee8 122# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
d9898ee8 126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
8d138742
CE
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
d9898ee8 135
136# Required to use basename.
dd184caf 137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 139 as_expr=expr
140else
141 as_expr=false
142fi
143
dd184caf 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
dd184caf 152as_me=`$as_basename -- "$0" ||
d9898ee8 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
dd184caf 155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8d138742 156$as_echo X/"$0" |
dd184caf 157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
d9898ee8 170
dd184caf 171# CDPATH.
172$as_unset CDPATH
d9898ee8 173
d9898ee8 174
dd184caf 175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
d9898ee8 180fi
181
8d138742 182 if test $as_have_required = yes && (eval ":
dd184caf 183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
d9898ee8 198
dd184caf 199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
d9898ee8 206
dd184caf 207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
d9898ee8 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
dd184caf 247 case $as_dir in
d9898ee8 248 /*)
dd184caf 249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
8d138742 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
8d138742 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
d9898ee8 349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
d9898ee8 351 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
8d138742
CE
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
dd184caf 369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
8d138742
CE
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
dd184caf 441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
d9898ee8 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
d9898ee8 464 sed '
dd184caf 465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
d9898ee8 469 N
dd184caf 470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 472 t loop
dd184caf 473 s/-\n.*//
d9898ee8 474 ' >$as_me.lineno &&
dd184caf 475 chmod +x "$as_me.lineno" ||
8d138742 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
dd184caf 481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
d9898ee8 483 # Exit status is that of the last command.
484 exit
485}
486
487
dd184caf 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
d9898ee8 503esac
dd184caf 504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
dd184caf 512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
8d138742
CE
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
d9898ee8 530 as_ln_s='cp -p'
8d138742 531 fi
d9898ee8 532else
533 as_ln_s='cp -p'
534fi
dd184caf 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
d9898ee8 537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
dd184caf 545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
8d138742 556 test -d "$1/.";
dd184caf 557 else
558 case $1 in
8d138742 559 -*)set "./$1";;
dd184caf 560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
d9898ee8 567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
d9898ee8 575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
8d138742 580case X$lt_ECHO in
d9898ee8 581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
8d138742 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
d9898ee8 584 ;;
585esac
586
8d138742 587ECHO=${lt_ECHO-echo}
d9898ee8 588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
8d138742
CE
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
d9898ee8 596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
8d138742 605 cat <<_LT_EOF
d9898ee8 606$*
8d138742 607_LT_EOF
d9898ee8 608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
8d138742
CE
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
d9898ee8 627
8d138742
CE
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
d9898ee8 638
8d138742
CE
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
d9898ee8 650 IFS="$lt_save_ifs"
d9898ee8 651
8d138742
CE
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
d9898ee8 667 else
8d138742
CE
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
d9898ee8 692
8d138742
CE
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
d9898ee8 700
8d138742
CE
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
d9898ee8 710 fi
711 fi
712 fi
713fi
d9898ee8 714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
8d138742
CE
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
d9898ee8 720fi
721
722
723
724
dd184caf 725exec 7<&0 </dev/null 6>&1
726
d9898ee8 727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
d9898ee8 732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
dd184caf 736ac_clean_files=
d9898ee8 737ac_config_libobj_dir=.
dd184caf 738LIBOBJS=
d9898ee8 739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
d9898ee8 745# Identity of this package.
746PACKAGE_NAME='liblock'
747PACKAGE_TARNAME='liblock'
748PACKAGE_VERSION='0.60'
749PACKAGE_STRING='liblock 0.60'
750PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752ac_unique_file="liblock.h"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
dd184caf 756#ifdef HAVE_SYS_TYPES_H
d9898ee8 757# include <sys/types.h>
758#endif
dd184caf 759#ifdef HAVE_SYS_STAT_H
d9898ee8 760# include <sys/stat.h>
761#endif
dd184caf 762#ifdef STDC_HEADERS
d9898ee8 763# include <stdlib.h>
764# include <stddef.h>
765#else
dd184caf 766# ifdef HAVE_STDLIB_H
d9898ee8 767# include <stdlib.h>
768# endif
769#endif
dd184caf 770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 772# include <memory.h>
773# endif
774# include <string.h>
775#endif
dd184caf 776#ifdef HAVE_STRINGS_H
d9898ee8 777# include <strings.h>
778#endif
dd184caf 779#ifdef HAVE_INTTYPES_H
d9898ee8 780# include <inttypes.h>
d9898ee8 781#endif
dd184caf 782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
d9898ee8 786# include <unistd.h>
787#endif"
788
8d138742
CE
789ac_subst_vars='am__EXEEXT_FALSE
790am__EXEEXT_TRUE
791LTLIBOBJS
792LIBOBJS
793HAVE_SGML_FALSE
794HAVE_SGML_TRUE
795USE_LOCKF_FALSE
796USE_LOCKF_TRUE
797USE_FLOCK_FALSE
798USE_FLOCK_TRUE
799USE_FCNTL_FALSE
800USE_FCNTL_TRUE
801CPP
802OTOOL64
803OTOOL
804LIPO
805NMEDIT
806DSYMUTIL
807lt_ECHO
808RANLIB
809AR
810OBJDUMP
811NM
812ac_ct_DUMPBIN
813DUMPBIN
814LD
815FGREP
816EGREP
817GREP
818SED
819host_os
820host_vendor
821host_cpu
822host
823build_os
824build_vendor
825build_cpu
826build
827LIBTOOL
828LN_S
829am__fastdepCC_FALSE
830am__fastdepCC_TRUE
831CCDEPMODE
832AMDEPBACKSLASH
833AMDEP_FALSE
834AMDEP_TRUE
835am__quote
836am__include
837DEPDIR
838OBJEXT
839EXEEXT
840ac_ct_CC
841CPPFLAGS
842LDFLAGS
843CFLAGS
844CC
845am__untar
846am__tar
847AMTAR
848am__leading_dot
849SET_MAKE
850AWK
851mkdir_p
852MKDIR_P
853INSTALL_STRIP_PROGRAM
854STRIP
855install_sh
856MAKEINFO
857AUTOHEADER
858AUTOMAKE
859AUTOCONF
860ACLOCAL
861VERSION
862PACKAGE
863CYGPATH_W
864am__isrc
865INSTALL_DATA
866INSTALL_SCRIPT
867INSTALL_PROGRAM
868target_alias
869host_alias
dd184caf 870build_alias
8d138742
CE
871LIBS
872ECHO_T
873ECHO_N
874ECHO_C
875DEFS
876mandir
877localedir
878libdir
879psdir
880pdfdir
881dvidir
882htmldir
883infodir
884docdir
885oldincludedir
886includedir
887localstatedir
888sharedstatedir
889sysconfdir
890datadir
891datarootdir
892libexecdir
893sbindir
894bindir
895program_transform_name
896prefix
897exec_prefix
898PACKAGE_BUGREPORT
899PACKAGE_STRING
900PACKAGE_VERSION
901PACKAGE_TARNAME
902PACKAGE_NAME
903PATH_SEPARATOR
904SHELL'
905ac_subst_files=''
906ac_user_opts='
907enable_option_checking
908enable_dependency_tracking
909enable_shared
910enable_static
911with_pic
912enable_fast_install
913with_gnu_ld
914enable_libtool_lock
915with_locking_method
916'
917 ac_precious_vars='build_alias
dd184caf 918host_alias
919target_alias
dd184caf 920CC
921CFLAGS
922LDFLAGS
8d138742 923LIBS
dd184caf 924CPPFLAGS
8d138742 925CPP'
dd184caf 926
d9898ee8 927
928# Initialize some variables set by options.
929ac_init_help=
930ac_init_version=false
8d138742
CE
931ac_unrecognized_opts=
932ac_unrecognized_sep=
d9898ee8 933# The variables have the same names as the options, with
934# dashes changed to underlines.
935cache_file=/dev/null
936exec_prefix=NONE
937no_create=
938no_recursion=
939prefix=NONE
940program_prefix=NONE
941program_suffix=NONE
942program_transform_name=s,x,x,
943silent=
944site=
945srcdir=
946verbose=
947x_includes=NONE
948x_libraries=NONE
949
950# Installation directory options.
951# These are left unexpanded so users can "make install exec_prefix=/foo"
952# and all the variables that are supposed to be based on exec_prefix
953# by default will actually change.
954# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 955# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 956bindir='${exec_prefix}/bin'
957sbindir='${exec_prefix}/sbin'
958libexecdir='${exec_prefix}/libexec'
dd184caf 959datarootdir='${prefix}/share'
960datadir='${datarootdir}'
d9898ee8 961sysconfdir='${prefix}/etc'
962sharedstatedir='${prefix}/com'
963localstatedir='${prefix}/var'
d9898ee8 964includedir='${prefix}/include'
965oldincludedir='/usr/include'
dd184caf 966docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967infodir='${datarootdir}/info'
968htmldir='${docdir}'
969dvidir='${docdir}'
970pdfdir='${docdir}'
971psdir='${docdir}'
972libdir='${exec_prefix}/lib'
973localedir='${datarootdir}/locale'
974mandir='${datarootdir}/man'
d9898ee8 975
976ac_prev=
dd184caf 977ac_dashdash=
d9898ee8 978for ac_option
979do
980 # If the previous option needs an argument, assign it.
981 if test -n "$ac_prev"; then
dd184caf 982 eval $ac_prev=\$ac_option
d9898ee8 983 ac_prev=
984 continue
985 fi
986
dd184caf 987 case $ac_option in
988 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989 *) ac_optarg=yes ;;
990 esac
d9898ee8 991
992 # Accept the important Cygnus configure options, so we can diagnose typos.
993
dd184caf 994 case $ac_dashdash$ac_option in
995 --)
996 ac_dashdash=yes ;;
d9898ee8 997
998 -bindir | --bindir | --bindi | --bind | --bin | --bi)
999 ac_prev=bindir ;;
1000 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1001 bindir=$ac_optarg ;;
1002
1003 -build | --build | --buil | --bui | --bu)
1004 ac_prev=build_alias ;;
1005 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1006 build_alias=$ac_optarg ;;
1007
1008 -cache-file | --cache-file | --cache-fil | --cache-fi \
1009 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1010 ac_prev=cache_file ;;
1011 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1012 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1013 cache_file=$ac_optarg ;;
1014
1015 --config-cache | -C)
1016 cache_file=config.cache ;;
1017
dd184caf 1018 -datadir | --datadir | --datadi | --datad)
d9898ee8 1019 ac_prev=datadir ;;
dd184caf 1020 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 1021 datadir=$ac_optarg ;;
1022
dd184caf 1023 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1024 | --dataroo | --dataro | --datar)
1025 ac_prev=datarootdir ;;
1026 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1027 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1028 datarootdir=$ac_optarg ;;
1029
d9898ee8 1030 -disable-* | --disable-*)
8d138742 1031 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 1032 # Reject names that are not valid shell variable names.
8d138742
CE
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1035 { (exit 1); exit 1; }; }
8d138742
CE
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1039 *"
1040"enable_$ac_useropt"
1041"*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval enable_$ac_useropt=no ;;
dd184caf 1046
1047 -docdir | --docdir | --docdi | --doc | --do)
1048 ac_prev=docdir ;;
1049 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1050 docdir=$ac_optarg ;;
1051
1052 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053 ac_prev=dvidir ;;
1054 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1055 dvidir=$ac_optarg ;;
d9898ee8 1056
1057 -enable-* | --enable-*)
8d138742 1058 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 1059 # Reject names that are not valid shell variable names.
8d138742
CE
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1062 { (exit 1); exit 1; }; }
8d138742
CE
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067"enable_$ac_useropt"
1068"*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 1073
1074 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1075 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1076 | --exec | --exe | --ex)
1077 ac_prev=exec_prefix ;;
1078 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1079 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1080 | --exec=* | --exe=* | --ex=*)
1081 exec_prefix=$ac_optarg ;;
1082
1083 -gas | --gas | --ga | --g)
1084 # Obsolete; use --with-gas.
1085 with_gas=yes ;;
1086
1087 -help | --help | --hel | --he | -h)
1088 ac_init_help=long ;;
1089 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1090 ac_init_help=recursive ;;
1091 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1092 ac_init_help=short ;;
1093
1094 -host | --host | --hos | --ho)
1095 ac_prev=host_alias ;;
1096 -host=* | --host=* | --hos=* | --ho=*)
1097 host_alias=$ac_optarg ;;
1098
dd184caf 1099 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100 ac_prev=htmldir ;;
1101 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102 | --ht=*)
1103 htmldir=$ac_optarg ;;
1104
d9898ee8 1105 -includedir | --includedir | --includedi | --included | --include \
1106 | --includ | --inclu | --incl | --inc)
1107 ac_prev=includedir ;;
1108 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1109 | --includ=* | --inclu=* | --incl=* | --inc=*)
1110 includedir=$ac_optarg ;;
1111
1112 -infodir | --infodir | --infodi | --infod | --info | --inf)
1113 ac_prev=infodir ;;
1114 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1115 infodir=$ac_optarg ;;
1116
1117 -libdir | --libdir | --libdi | --libd)
1118 ac_prev=libdir ;;
1119 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1120 libdir=$ac_optarg ;;
1121
1122 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1123 | --libexe | --libex | --libe)
1124 ac_prev=libexecdir ;;
1125 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1126 | --libexe=* | --libex=* | --libe=*)
1127 libexecdir=$ac_optarg ;;
1128
dd184caf 1129 -localedir | --localedir | --localedi | --localed | --locale)
1130 ac_prev=localedir ;;
1131 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132 localedir=$ac_optarg ;;
1133
d9898ee8 1134 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1135 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1136 ac_prev=localstatedir ;;
1137 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1138 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1139 localstatedir=$ac_optarg ;;
1140
1141 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142 ac_prev=mandir ;;
1143 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1144 mandir=$ac_optarg ;;
1145
1146 -nfp | --nfp | --nf)
1147 # Obsolete; use --without-fp.
1148 with_fp=no ;;
1149
1150 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1151 | --no-cr | --no-c | -n)
1152 no_create=yes ;;
1153
1154 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1155 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1156 no_recursion=yes ;;
1157
1158 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1159 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1160 | --oldin | --oldi | --old | --ol | --o)
1161 ac_prev=oldincludedir ;;
1162 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1163 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1164 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1165 oldincludedir=$ac_optarg ;;
1166
1167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168 ac_prev=prefix ;;
1169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1170 prefix=$ac_optarg ;;
1171
1172 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1173 | --program-pre | --program-pr | --program-p)
1174 ac_prev=program_prefix ;;
1175 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1176 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1177 program_prefix=$ac_optarg ;;
1178
1179 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1180 | --program-suf | --program-su | --program-s)
1181 ac_prev=program_suffix ;;
1182 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1183 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1184 program_suffix=$ac_optarg ;;
1185
1186 -program-transform-name | --program-transform-name \
1187 | --program-transform-nam | --program-transform-na \
1188 | --program-transform-n | --program-transform- \
1189 | --program-transform | --program-transfor \
1190 | --program-transfo | --program-transf \
1191 | --program-trans | --program-tran \
1192 | --progr-tra | --program-tr | --program-t)
1193 ac_prev=program_transform_name ;;
1194 -program-transform-name=* | --program-transform-name=* \
1195 | --program-transform-nam=* | --program-transform-na=* \
1196 | --program-transform-n=* | --program-transform-=* \
1197 | --program-transform=* | --program-transfor=* \
1198 | --program-transfo=* | --program-transf=* \
1199 | --program-trans=* | --program-tran=* \
1200 | --progr-tra=* | --program-tr=* | --program-t=*)
1201 program_transform_name=$ac_optarg ;;
1202
dd184caf 1203 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204 ac_prev=pdfdir ;;
1205 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1206 pdfdir=$ac_optarg ;;
1207
1208 -psdir | --psdir | --psdi | --psd | --ps)
1209 ac_prev=psdir ;;
1210 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1211 psdir=$ac_optarg ;;
1212
d9898ee8 1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1214 | -silent | --silent | --silen | --sile | --sil)
1215 silent=yes ;;
1216
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 ac_prev=sbindir ;;
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 | --sbi=* | --sb=*)
1221 sbindir=$ac_optarg ;;
1222
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1226 | --sha | --sh)
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 | --sha=* | --sh=*)
1232 sharedstatedir=$ac_optarg ;;
1233
1234 -site | --site | --sit)
1235 ac_prev=site ;;
1236 -site=* | --site=* | --sit=*)
1237 site=$ac_optarg ;;
1238
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 ac_prev=srcdir ;;
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242 srcdir=$ac_optarg ;;
1243
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249 sysconfdir=$ac_optarg ;;
1250
1251 -target | --target | --targe | --targ | --tar | --ta | --t)
1252 ac_prev=target_alias ;;
1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254 target_alias=$ac_optarg ;;
1255
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257 verbose=yes ;;
1258
1259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
1261
1262 -with-* | --with-*)
8d138742 1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1264 # Reject names that are not valid shell variable names.
8d138742
CE
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1267 { (exit 1); exit 1; }; }
8d138742
CE
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272"with_$ac_useropt"
1273"*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1278
1279 -without-* | --without-*)
8d138742 1280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1281 # Reject names that are not valid shell variable names.
8d138742
CE
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1284 { (exit 1); exit 1; }; }
8d138742
CE
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289"with_$ac_useropt"
1290"*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=no ;;
d9898ee8 1295
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1299
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1306
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1313
8d138742 1314 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
d9898ee8 1315Try \`$0 --help' for more information." >&2
1316 { (exit 1); exit 1; }; }
1317 ;;
1318
1319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8d138742 1323 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
d9898ee8 1324 { (exit 1); exit 1; }; }
dd184caf 1325 eval $ac_envvar=\$ac_optarg
d9898ee8 1326 export $ac_envvar ;;
1327
1328 *)
1329 # FIXME: should be removed in autoconf 3.0.
8d138742 1330 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1332 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d9898ee8 1333 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1334 ;;
1335
1336 esac
1337done
1338
1339if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8d138742 1341 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
d9898ee8 1342 { (exit 1); exit 1; }; }
1343fi
1344
8d138742
CE
1345if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1347 no) ;;
1348 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1349 { (exit 1); exit 1; }; } ;;
1350 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351 esac
1352fi
1353
1354# Check all directory arguments for consistency.
dd184caf 1355for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358 libdir localedir mandir
d9898ee8 1359do
dd184caf 1360 eval ac_val=\$$ac_var
8d138742
CE
1361 # Remove trailing slashes.
1362 case $ac_val in
1363 */ )
1364 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365 eval $ac_var=\$ac_val;;
1366 esac
1367 # Be sure to have absolute directory names.
d9898ee8 1368 case $ac_val in
dd184caf 1369 [\\/$]* | ?:[\\/]* ) continue;;
1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1371 esac
8d138742 1372 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
dd184caf 1373 { (exit 1); exit 1; }; }
d9898ee8 1374done
1375
1376# There might be people who depend on the old broken behavior: `$host'
1377# used to hold the argument of --host etc.
1378# FIXME: To remove some day.
1379build=$build_alias
1380host=$host_alias
1381target=$target_alias
1382
1383# FIXME: To remove some day.
1384if test "x$host_alias" != x; then
1385 if test "x$build_alias" = x; then
1386 cross_compiling=maybe
8d138742 1387 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
d9898ee8 1388 If a cross compiler is detected then cross compile mode will be used." >&2
1389 elif test "x$build_alias" != "x$host_alias"; then
1390 cross_compiling=yes
1391 fi
1392fi
1393
1394ac_tool_prefix=
1395test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396
1397test "$silent" = yes && exec 6>/dev/null
1398
1399
dd184caf 1400ac_pwd=`pwd` && test -n "$ac_pwd" &&
1401ac_ls_di=`ls -di .` &&
1402ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
8d138742 1403 { $as_echo "$as_me: error: working directory cannot be determined" >&2
dd184caf 1404 { (exit 1); exit 1; }; }
1405test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
8d138742 1406 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
dd184caf 1407 { (exit 1); exit 1; }; }
1408
1409
d9898ee8 1410# Find the source files, if location was not specified.
1411if test -z "$srcdir"; then
1412 ac_srcdir_defaulted=yes
dd184caf 1413 # Try the directory containing this script, then the parent directory.
8d138742
CE
1414 ac_confdir=`$as_dirname -- "$as_myself" ||
1415$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416 X"$as_myself" : 'X\(//\)[^/]' \| \
1417 X"$as_myself" : 'X\(//\)$' \| \
1418 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419$as_echo X"$as_myself" |
dd184caf 1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 s//\1/
1422 q
1423 }
1424 /^X\(\/\/\)[^/].*/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\/\)$/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\).*/{
1433 s//\1/
1434 q
1435 }
1436 s/.*/./; q'`
d9898ee8 1437 srcdir=$ac_confdir
dd184caf 1438 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1439 srcdir=..
1440 fi
1441else
1442 ac_srcdir_defaulted=no
1443fi
dd184caf 1444if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
8d138742 1446 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1447 { (exit 1); exit 1; }; }
d9898ee8 1448fi
dd184caf 1449ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450ac_abs_confdir=`(
8d138742 1451 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
d9898ee8 1452 { (exit 1); exit 1; }; }
dd184caf 1453 pwd)`
1454# When building in place, set srcdir=.
1455if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 srcdir=.
1457fi
1458# Remove unnecessary trailing slashes from srcdir.
1459# Double slashes in file names in object file debugging info
1460# mess up M-x gdb in Emacs.
1461case $srcdir in
1462*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463esac
1464for ac_var in $ac_precious_vars; do
1465 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_env_${ac_var}_value=\$${ac_var}
1467 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469done
d9898ee8 1470
1471#
1472# Report the --help message.
1473#
1474if test "$ac_init_help" = "long"; then
1475 # Omit some internal or obsolete options to make the list less imposing.
1476 # This message is too long to be a string in the A/UX 3.1 sh.
1477 cat <<_ACEOF
1478\`configure' configures liblock 0.60 to adapt to many kinds of systems.
1479
1480Usage: $0 [OPTION]... [VAR=VALUE]...
1481
1482To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483VAR=VALUE. See below for descriptions of some of the useful variables.
1484
1485Defaults for the options are specified in brackets.
1486
1487Configuration:
1488 -h, --help display this help and exit
1489 --help=short display options specific to this package
1490 --help=recursive display the short help of all the included packages
1491 -V, --version display version information and exit
1492 -q, --quiet, --silent do not print \`checking...' messages
1493 --cache-file=FILE cache test results in FILE [disabled]
1494 -C, --config-cache alias for \`--cache-file=config.cache'
1495 -n, --no-create do not create output files
1496 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1497
d9898ee8 1498Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1500 [$ac_default_prefix]
d9898ee8 1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1502 [PREFIX]
d9898ee8 1503
1504By default, \`make install' will install all the files in
1505\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507for instance \`--prefix=\$HOME'.
1508
1509For better control, use the options below.
1510
1511Fine tuning of the installation directories:
8d138742
CE
1512 --bindir=DIR user executables [EPREFIX/bin]
1513 --sbindir=DIR system admin executables [EPREFIX/sbin]
1514 --libexecdir=DIR program executables [EPREFIX/libexec]
1515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/liblock]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1531_ACEOF
1532
1533 cat <<\_ACEOF
1534
1535Program names:
1536 --program-prefix=PREFIX prepend PREFIX to installed program names
1537 --program-suffix=SUFFIX append SUFFIX to installed program names
1538 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1539
1540System types:
1541 --build=BUILD configure for building on BUILD [guessed]
1542 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1543_ACEOF
1544fi
1545
1546if test -n "$ac_init_help"; then
1547 case $ac_init_help in
1548 short | recursive ) echo "Configuration of liblock 0.60:";;
1549 esac
1550 cat <<\_ACEOF
1551
1552Optional Features:
8d138742 1553 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1554 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1555 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1556 --disable-dependency-tracking speeds up one-time build
1557 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1558 --enable-shared[=PKGS] build shared libraries [default=yes]
1559 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1560 --enable-fast-install[=PKGS]
1561 optimize for fast installation [default=yes]
1562 --disable-libtool-lock avoid locking (might break parallel builds)
1563
1564Optional Packages:
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d9898ee8 1567 --with-pic try to use only PIC/non-PIC objects [default=use
1568 both]
8d138742 1569 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
d9898ee8 1570
1571
1572Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
dd184caf 1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
d9898ee8 1580 CPP C preprocessor
d9898ee8 1581
1582Use these variables to override the choices made by `configure' or to help
1583it to find libraries and programs with nonstandard names/locations.
1584
1585Report bugs to <courier-users@lists.sourceforge.net>.
1586_ACEOF
dd184caf 1587ac_status=$?
d9898ee8 1588fi
1589
1590if test "$ac_init_help" = "recursive"; then
1591 # If there are subdirs, report their specific --help.
d9898ee8 1592 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1593 test -d "$ac_dir" ||
1594 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1595 continue
d9898ee8 1596 ac_builddir=.
1597
dd184caf 1598case "$ac_dir" in
1599.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600*)
8d138742 1601 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1602 # A ".." for each directory in $ac_dir_suffix.
8d138742 1603 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1604 case $ac_top_builddir_sub in
1605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1607 esac ;;
1608esac
1609ac_abs_top_builddir=$ac_pwd
1610ac_abs_builddir=$ac_pwd$ac_dir_suffix
1611# for backward compatibility:
1612ac_top_builddir=$ac_top_build_prefix
d9898ee8 1613
1614case $srcdir in
dd184caf 1615 .) # We are building in place.
d9898ee8 1616 ac_srcdir=.
dd184caf 1617 ac_top_srcdir=$ac_top_builddir_sub
1618 ac_abs_top_srcdir=$ac_pwd ;;
1619 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1620 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1621 ac_top_srcdir=$srcdir
1622 ac_abs_top_srcdir=$srcdir ;;
1623 *) # Relative name.
1624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1625 ac_top_srcdir=$ac_top_build_prefix$srcdir
1626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1627esac
dd184caf 1628ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1629
1630 cd "$ac_dir" || { ac_status=$?; continue; }
1631 # Check for guested configure.
1632 if test -f "$ac_srcdir/configure.gnu"; then
1633 echo &&
1634 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1635 elif test -f "$ac_srcdir/configure"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1638 else
8d138742 1639 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1640 fi || ac_status=$?
1641 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1642 done
1643fi
1644
dd184caf 1645test -n "$ac_init_help" && exit $ac_status
d9898ee8 1646if $ac_init_version; then
1647 cat <<\_ACEOF
1648liblock configure 0.60
8d138742 1649generated by GNU Autoconf 2.63
d9898ee8 1650
dd184caf 1651Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 16522002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 1653This configure script is free software; the Free Software Foundation
1654gives unlimited permission to copy, distribute and modify it.
1655_ACEOF
dd184caf 1656 exit
d9898ee8 1657fi
dd184caf 1658cat >config.log <<_ACEOF
d9898ee8 1659This file contains any messages produced by compilers while
1660running configure, to aid debugging if configure makes a mistake.
1661
1662It was created by liblock $as_me 0.60, which was
8d138742 1663generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 1664
1665 $ $0 $@
1666
1667_ACEOF
dd184caf 1668exec 5>>config.log
d9898ee8 1669{
1670cat <<_ASUNAME
1671## --------- ##
1672## Platform. ##
1673## --------- ##
1674
1675hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1676uname -m = `(uname -m) 2>/dev/null || echo unknown`
1677uname -r = `(uname -r) 2>/dev/null || echo unknown`
1678uname -s = `(uname -s) 2>/dev/null || echo unknown`
1679uname -v = `(uname -v) 2>/dev/null || echo unknown`
1680
1681/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1682/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1683
1684/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1685/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1686/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1687/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1688/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1689/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1690/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1691
1692_ASUNAME
1693
1694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695for as_dir in $PATH
1696do
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
8d138742 1699 $as_echo "PATH: $as_dir"
d9898ee8 1700done
dd184caf 1701IFS=$as_save_IFS
d9898ee8 1702
1703} >&5
1704
1705cat >&5 <<_ACEOF
1706
1707
1708## ----------- ##
1709## Core tests. ##
1710## ----------- ##
1711
1712_ACEOF
1713
1714
1715# Keep a trace of the command line.
1716# Strip out --no-create and --no-recursion so they do not pile up.
1717# Strip out --silent because we don't want to record it for future runs.
1718# Also quote any args containing shell meta-characters.
1719# Make two passes to allow for proper duplicate-argument suppression.
1720ac_configure_args=
1721ac_configure_args0=
1722ac_configure_args1=
d9898ee8 1723ac_must_keep_next=false
1724for ac_pass in 1 2
1725do
1726 for ac_arg
1727 do
1728 case $ac_arg in
1729 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1730 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1731 | -silent | --silent | --silen | --sile | --sil)
1732 continue ;;
dd184caf 1733 *\'*)
8d138742 1734 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1735 esac
1736 case $ac_pass in
1737 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1738 2)
1739 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1740 if test $ac_must_keep_next = true; then
1741 ac_must_keep_next=false # Got value, back to normal.
1742 else
1743 case $ac_arg in
1744 *=* | --config-cache | -C | -disable-* | --disable-* \
1745 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1746 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1747 | -with-* | --with-* | -without-* | --without-* | --x)
1748 case "$ac_configure_args0 " in
1749 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1750 esac
1751 ;;
1752 -* ) ac_must_keep_next=true ;;
1753 esac
1754 fi
dd184caf 1755 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1756 ;;
1757 esac
1758 done
1759done
1760$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1761$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1762
1763# When interrupted or exit'd, cleanup temporary files, and complete
1764# config.log. We remove comments because anyway the quotes in there
1765# would cause problems or look ugly.
dd184caf 1766# WARNING: Use '\'' to represent an apostrophe within the trap.
1767# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1768trap 'exit_status=$?
1769 # Save into config.log some information that might help in debugging.
1770 {
1771 echo
1772
1773 cat <<\_ASBOX
1774## ---------------- ##
1775## Cache variables. ##
1776## ---------------- ##
1777_ASBOX
1778 echo
1779 # The following way of writing the cache mishandles newlines in values,
dd184caf 1780(
1781 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1782 eval ac_val=\$$ac_var
1783 case $ac_val in #(
1784 *${as_nl}*)
1785 case $ac_var in #(
8d138742
CE
1786 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1787$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 1788 esac
1789 case $ac_var in #(
1790 _ | IFS | as_nl) ;; #(
8d138742 1791 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
dd184caf 1792 *) $as_unset $ac_var ;;
1793 esac ;;
1794 esac
1795 done
d9898ee8 1796 (set) 2>&1 |
dd184caf 1797 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1798 *${as_nl}ac_space=\ *)
d9898ee8 1799 sed -n \
dd184caf 1800 "s/'\''/'\''\\\\'\'''\''/g;
1801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1802 ;; #(
d9898ee8 1803 *)
dd184caf 1804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1805 ;;
dd184caf 1806 esac |
1807 sort
1808)
d9898ee8 1809 echo
1810
1811 cat <<\_ASBOX
1812## ----------------- ##
1813## Output variables. ##
1814## ----------------- ##
1815_ASBOX
1816 echo
1817 for ac_var in $ac_subst_vars
1818 do
dd184caf 1819 eval ac_val=\$$ac_var
1820 case $ac_val in
8d138742 1821 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1822 esac
8d138742 1823 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1824 done | sort
1825 echo
1826
1827 if test -n "$ac_subst_files"; then
1828 cat <<\_ASBOX
dd184caf 1829## ------------------- ##
1830## File substitutions. ##
1831## ------------------- ##
d9898ee8 1832_ASBOX
1833 echo
1834 for ac_var in $ac_subst_files
1835 do
dd184caf 1836 eval ac_val=\$$ac_var
1837 case $ac_val in
8d138742 1838 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1839 esac
8d138742 1840 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1841 done | sort
1842 echo
1843 fi
1844
1845 if test -s confdefs.h; then
1846 cat <<\_ASBOX
1847## ----------- ##
1848## confdefs.h. ##
1849## ----------- ##
1850_ASBOX
1851 echo
dd184caf 1852 cat confdefs.h
d9898ee8 1853 echo
1854 fi
1855 test "$ac_signal" != 0 &&
8d138742
CE
1856 $as_echo "$as_me: caught signal $ac_signal"
1857 $as_echo "$as_me: exit $exit_status"
d9898ee8 1858 } >&5
dd184caf 1859 rm -f core *.core core.conftest.* &&
1860 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1861 exit $exit_status
dd184caf 1862' 0
d9898ee8 1863for ac_signal in 1 2 13 15; do
1864 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1865done
1866ac_signal=0
1867
1868# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1869rm -f -r conftest* confdefs.h
d9898ee8 1870
1871# Predefined preprocessor variables.
1872
1873cat >>confdefs.h <<_ACEOF
1874#define PACKAGE_NAME "$PACKAGE_NAME"
1875_ACEOF
1876
1877
1878cat >>confdefs.h <<_ACEOF
1879#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1880_ACEOF
1881
1882
1883cat >>confdefs.h <<_ACEOF
1884#define PACKAGE_VERSION "$PACKAGE_VERSION"
1885_ACEOF
1886
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_STRING "$PACKAGE_STRING"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1895_ACEOF
1896
1897
1898# Let the site file select an alternate cache file if it wants to.
8d138742
CE
1899# Prefer an explicitly selected file to automatically selected ones.
1900ac_site_file1=NONE
1901ac_site_file2=NONE
dd184caf 1902if test -n "$CONFIG_SITE"; then
8d138742 1903 ac_site_file1=$CONFIG_SITE
dd184caf 1904elif test "x$prefix" != xNONE; then
8d138742
CE
1905 ac_site_file1=$prefix/share/config.site
1906 ac_site_file2=$prefix/etc/config.site
dd184caf 1907else
8d138742
CE
1908 ac_site_file1=$ac_default_prefix/share/config.site
1909 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 1910fi
8d138742 1911for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 1912do
8d138742 1913 test "x$ac_site_file" = xNONE && continue
d9898ee8 1914 if test -r "$ac_site_file"; then
8d138742
CE
1915 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1916$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 1917 sed 's/^/| /' "$ac_site_file" >&5
1918 . "$ac_site_file"
1919 fi
1920done
1921
1922if test -r "$cache_file"; then
1923 # Some versions of bash will fail to source /dev/null (special
1924 # files actually), so we avoid doing that.
1925 if test -f "$cache_file"; then
8d138742
CE
1926 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1927$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 1928 case $cache_file in
dd184caf 1929 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1930 *) . "./$cache_file";;
d9898ee8 1931 esac
1932 fi
1933else
8d138742
CE
1934 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1935$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 1936 >$cache_file
1937fi
1938
1939# Check that the precious variables saved in the cache have kept the same
1940# value.
1941ac_cache_corrupted=false
dd184caf 1942for ac_var in $ac_precious_vars; do
d9898ee8 1943 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1944 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1945 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1946 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1947 case $ac_old_set,$ac_new_set in
1948 set,)
8d138742
CE
1949 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1950$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 1951 ac_cache_corrupted=: ;;
1952 ,set)
8d138742
CE
1953 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1954$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 1955 ac_cache_corrupted=: ;;
1956 ,);;
1957 *)
1958 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
1959 # differences in whitespace do not lead to failure.
1960 ac_old_val_w=`echo x $ac_old_val`
1961 ac_new_val_w=`echo x $ac_new_val`
1962 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1964$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1965 ac_cache_corrupted=:
1966 else
1967 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1968$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1969 eval $ac_var=\$ac_old_val
1970 fi
1971 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1972$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1973 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1974$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 1975 fi;;
1976 esac
1977 # Pass precious variables to config.status.
1978 if test "$ac_new_set" = set; then
1979 case $ac_new_val in
8d138742 1980 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1981 *) ac_arg=$ac_var=$ac_new_val ;;
1982 esac
1983 case " $ac_configure_args " in
1984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1985 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1986 esac
1987 fi
1988done
1989if $ac_cache_corrupted; then
8d138742
CE
1990 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1992 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1993$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1994 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1995$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
d9898ee8 1996 { (exit 1); exit 1; }; }
1997fi
1998
d9898ee8 1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
dd184caf 2023ac_ext=c
2024ac_cpp='$CPP $CPPFLAGS'
2025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2028
2029
2030
2031>confdefs.h # Kill PACKAGE_ macros
2032
2033
dd184caf 2034ac_config_headers="$ac_config_headers config.h"
2035
8d138742 2036am__api_version='1.11'
d9898ee8 2037
d9898ee8 2038ac_aux_dir=
dd184caf 2039for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2040 if test -f "$ac_dir/install-sh"; then
d9898ee8 2041 ac_aux_dir=$ac_dir
2042 ac_install_sh="$ac_aux_dir/install-sh -c"
2043 break
dd184caf 2044 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2045 ac_aux_dir=$ac_dir
2046 ac_install_sh="$ac_aux_dir/install.sh -c"
2047 break
dd184caf 2048 elif test -f "$ac_dir/shtool"; then
d9898ee8 2049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/shtool install -c"
2051 break
2052 fi
2053done
2054if test -z "$ac_aux_dir"; then
8d138742
CE
2055 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2056$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 2057 { (exit 1); exit 1; }; }
2058fi
dd184caf 2059
2060# These three variables are undocumented and unsupported,
2061# and are intended to be withdrawn in a future Autoconf release.
2062# They can cause serious problems if a builder's source tree is in a directory
2063# whose full name contains unusual characters.
2064ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2065ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2066ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2067
d9898ee8 2068
2069# Find a good install program. We prefer a C program (faster),
2070# so one script is as good as another. But avoid the broken or
2071# incompatible versions:
2072# SysV /etc/install, /usr/sbin/install
2073# SunOS /usr/etc/install
2074# IRIX /sbin/install
2075# AIX /bin/install
2076# AmigaOS /C/install, which installs bootblocks on floppy discs
2077# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2078# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2079# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2080# OS/2's system install, which has a completely different semantic
2081# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
2082# Reject install programs that cannot install multiple files.
2083{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2084$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2085if test -z "$INSTALL"; then
2086if test "${ac_cv_path_install+set}" = set; then
8d138742 2087 $as_echo_n "(cached) " >&6
d9898ee8 2088else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 # Account for people who put trailing slashes in PATH elements.
2095case $as_dir/ in
2096 ./ | .// | /cC/* | \
2097 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2098 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2099 /usr/ucb/* ) ;;
2100 *)
2101 # OSF1 and SCO ODT 3.0 have their own names for install.
2102 # Don't use installbsd from OSF since it installs stuff as root
2103 # by default.
2104 for ac_prog in ginstall scoinst install; do
2105 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2106 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2107 if test $ac_prog = install &&
2108 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2109 # AIX install. It has an incompatible calling convention.
2110 :
2111 elif test $ac_prog = install &&
2112 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2113 # program-specific install script used by HP pwplus--don't use.
2114 :
2115 else
8d138742
CE
2116 rm -rf conftest.one conftest.two conftest.dir
2117 echo one > conftest.one
2118 echo two > conftest.two
2119 mkdir conftest.dir
2120 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2121 test -s conftest.one && test -s conftest.two &&
2122 test -s conftest.dir/conftest.one &&
2123 test -s conftest.dir/conftest.two
2124 then
2125 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2126 break 3
2127 fi
d9898ee8 2128 fi
2129 fi
2130 done
2131 done
2132 ;;
2133esac
8d138742 2134
d9898ee8 2135done
dd184caf 2136IFS=$as_save_IFS
d9898ee8 2137
8d138742 2138rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2139
2140fi
2141 if test "${ac_cv_path_install+set}" = set; then
2142 INSTALL=$ac_cv_path_install
2143 else
dd184caf 2144 # As a last resort, use the slow shell script. Don't cache a
2145 # value for INSTALL within a source directory, because that will
d9898ee8 2146 # break other packages using the cache if that directory is
dd184caf 2147 # removed, or if the value is a relative name.
d9898ee8 2148 INSTALL=$ac_install_sh
2149 fi
2150fi
8d138742
CE
2151{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2152$as_echo "$INSTALL" >&6; }
d9898ee8 2153
2154# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2155# It thinks the first close brace ends the variable substitution.
2156test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2157
2158test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2159
2160test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2161
8d138742
CE
2162{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2163$as_echo_n "checking whether build environment is sane... " >&6; }
d9898ee8 2164# Just in case
2165sleep 1
2166echo timestamp > conftest.file
8d138742
CE
2167# Reject unsafe characters in $srcdir or the absolute working directory
2168# name. Accept space and tab only in the latter.
2169am_lf='
2170'
2171case `pwd` in
2172 *[\\\"\#\$\&\'\`$am_lf]*)
2173 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2174$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2175 { (exit 1); exit 1; }; };;
2176esac
2177case $srcdir in
2178 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2179 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2180$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2181 { (exit 1); exit 1; }; };;
2182esac
2183
d9898ee8 2184# Do `set' in a subshell so we don't clobber the current shell's
2185# arguments. Must try -L first in case configure is actually a
2186# symlink; some systems play weird games with the mod time of symlinks
2187# (eg FreeBSD returns the mod time of the symlink's containing
2188# directory).
2189if (
8d138742 2190 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
d9898ee8 2191 if test "$*" = "X"; then
2192 # -L didn't work.
8d138742 2193 set X `ls -t "$srcdir/configure" conftest.file`
d9898ee8 2194 fi
2195 rm -f conftest.file
2196 if test "$*" != "X $srcdir/configure conftest.file" \
2197 && test "$*" != "X conftest.file $srcdir/configure"; then
2198
2199 # If neither matched, then we have a broken ls. This can happen
2200 # if, for instance, CONFIG_SHELL is bash and it inherits a
2201 # broken ls alias from the environment. This has actually
2202 # happened. Such a system could not be considered "sane".
8d138742 2203 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2204alias in your environment" >&5
8d138742 2205$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2206alias in your environment" >&2;}
2207 { (exit 1); exit 1; }; }
2208 fi
2209
2210 test "$2" = conftest.file
2211 )
2212then
2213 # Ok.
2214 :
2215else
8d138742 2216 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
d9898ee8 2217Check your system clock" >&5
8d138742 2218$as_echo "$as_me: error: newly created file is older than distributed files!
d9898ee8 2219Check your system clock" >&2;}
2220 { (exit 1); exit 1; }; }
2221fi
8d138742
CE
2222{ $as_echo "$as_me:$LINENO: result: yes" >&5
2223$as_echo "yes" >&6; }
d9898ee8 2224test "$program_prefix" != NONE &&
dd184caf 2225 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2226# Use a double $ so make ignores it.
2227test "$program_suffix" != NONE &&
dd184caf 2228 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2229# Double any \ or $.
d9898ee8 2230# By default was `s,x,x', remove it if useless.
8d138742
CE
2231ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2232program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2233
2234# expand $ac_aux_dir to an absolute path
2235am_aux_dir=`cd $ac_aux_dir && pwd`
2236
8d138742
CE
2237if test x"${MISSING+set}" != xset; then
2238 case $am_aux_dir in
2239 *\ * | *\ *)
2240 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2241 *)
2242 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2243 esac
2244fi
d9898ee8 2245# Use eval to expand $SHELL
2246if eval "$MISSING --run true"; then
2247 am_missing_run="$MISSING --run "
2248else
2249 am_missing_run=
8d138742
CE
2250 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2251$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2252fi
2253
2254if test x"${install_sh}" != xset; then
2255 case $am_aux_dir in
2256 *\ * | *\ *)
2257 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2258 *)
2259 install_sh="\${SHELL} $am_aux_dir/install-sh"
2260 esac
2261fi
2262
2263# Installed binaries are usually stripped using `strip' when the user
2264# run `make install-strip'. However `strip' might not be the right
2265# tool to use in cross-compilation environments, therefore Automake
2266# will honor the `STRIP' environment variable to overrule this program.
2267if test "$cross_compiling" != no; then
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2270set dummy ${ac_tool_prefix}strip; ac_word=$2
2271{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2272$as_echo_n "checking for $ac_word... " >&6; }
2273if test "${ac_cv_prog_STRIP+set}" = set; then
2274 $as_echo_n "(cached) " >&6
2275else
2276 if test -n "$STRIP"; then
2277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2278else
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
2289 fi
2290done
2291done
2292IFS=$as_save_IFS
2293
2294fi
2295fi
2296STRIP=$ac_cv_prog_STRIP
2297if test -n "$STRIP"; then
2298 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2299$as_echo "$STRIP" >&6; }
2300else
2301 { $as_echo "$as_me:$LINENO: result: no" >&5
2302$as_echo "no" >&6; }
2303fi
2304
2305
2306fi
2307if test -z "$ac_cv_prog_STRIP"; then
2308 ac_ct_STRIP=$STRIP
2309 # Extract the first word of "strip", so it can be a program name with args.
2310set dummy strip; ac_word=$2
2311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2312$as_echo_n "checking for $ac_word... " >&6; }
2313if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2314 $as_echo_n "(cached) " >&6
2315else
2316 if test -n "$ac_ct_STRIP"; then
2317 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2318else
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_ac_ct_STRIP="strip"
2327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330done
2331done
2332IFS=$as_save_IFS
2333
2334fi
2335fi
2336ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2337if test -n "$ac_ct_STRIP"; then
2338 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2339$as_echo "$ac_ct_STRIP" >&6; }
2340else
2341 { $as_echo "$as_me:$LINENO: result: no" >&5
2342$as_echo "no" >&6; }
2343fi
2344
2345 if test "x$ac_ct_STRIP" = x; then
2346 STRIP=":"
2347 else
2348 case $cross_compiling:$ac_tool_warned in
2349yes:)
2350{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2352ac_tool_warned=yes ;;
2353esac
2354 STRIP=$ac_ct_STRIP
2355 fi
2356else
2357 STRIP="$ac_cv_prog_STRIP"
2358fi
2359
d9898ee8 2360fi
8d138742 2361INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2362
8d138742
CE
2363{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2364$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2365if test -z "$MKDIR_P"; then
2366 if test "${ac_cv_path_mkdir+set}" = set; then
8d138742 2367 $as_echo_n "(cached) " >&6
dd184caf 2368else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2371do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_prog in mkdir gmkdir; do
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2377 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2378 'mkdir (GNU coreutils) '* | \
2379 'mkdir (coreutils) '* | \
2380 'mkdir (fileutils) '4.1*)
2381 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2382 break 3;;
2383 esac
2384 done
2385 done
2386done
2387IFS=$as_save_IFS
2388
2389fi
2390
2391 if test "${ac_cv_path_mkdir+set}" = set; then
2392 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2393 else
dd184caf 2394 # As a last resort, use the slow shell script. Don't cache a
2395 # value for MKDIR_P within a source directory, because that will
2396 # break other packages using the cache if that directory is
2397 # removed, or if the value is a relative name.
2398 test -d ./--version && rmdir ./--version
2399 MKDIR_P="$ac_install_sh -d"
d9898ee8 2400 fi
2401fi
8d138742
CE
2402{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2403$as_echo "$MKDIR_P" >&6; }
dd184caf 2404
2405mkdir_p="$MKDIR_P"
2406case $mkdir_p in
2407 [\\/$]* | ?:[\\/]*) ;;
2408 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2409esac
d9898ee8 2410
2411for ac_prog in gawk mawk nawk awk
2412do
2413 # Extract the first word of "$ac_prog", so it can be a program name with args.
2414set dummy $ac_prog; ac_word=$2
8d138742
CE
2415{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2416$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2417if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2418 $as_echo_n "(cached) " >&6
d9898ee8 2419else
2420 if test -n "$AWK"; then
2421 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2430 ac_cv_prog_AWK="$ac_prog"
8d138742 2431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2432 break 2
2433 fi
2434done
2435done
dd184caf 2436IFS=$as_save_IFS
d9898ee8 2437
2438fi
2439fi
2440AWK=$ac_cv_prog_AWK
2441if test -n "$AWK"; then
8d138742
CE
2442 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2443$as_echo "$AWK" >&6; }
d9898ee8 2444else
8d138742
CE
2445 { $as_echo "$as_me:$LINENO: result: no" >&5
2446$as_echo "no" >&6; }
d9898ee8 2447fi
2448
dd184caf 2449
d9898ee8 2450 test -n "$AWK" && break
2451done
2452
8d138742
CE
2453{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2454$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2455set x ${MAKE-make}
2456ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
dd184caf 2457if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 2458 $as_echo_n "(cached) " >&6
d9898ee8 2459else
2460 cat >conftest.make <<\_ACEOF
dd184caf 2461SHELL = /bin/sh
d9898ee8 2462all:
dd184caf 2463 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2464_ACEOF
2465# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2466case `${MAKE-make} -f conftest.make 2>/dev/null` in
2467 *@@@%%%=?*=@@@%%%*)
2468 eval ac_cv_prog_make_${ac_make}_set=yes;;
2469 *)
2470 eval ac_cv_prog_make_${ac_make}_set=no;;
2471esac
d9898ee8 2472rm -f conftest.make
2473fi
dd184caf 2474if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8d138742
CE
2475 { $as_echo "$as_me:$LINENO: result: yes" >&5
2476$as_echo "yes" >&6; }
d9898ee8 2477 SET_MAKE=
2478else
8d138742
CE
2479 { $as_echo "$as_me:$LINENO: result: no" >&5
2480$as_echo "no" >&6; }
d9898ee8 2481 SET_MAKE="MAKE=${MAKE-make}"
2482fi
2483
2484rm -rf .tst 2>/dev/null
2485mkdir .tst 2>/dev/null
2486if test -d .tst; then
2487 am__leading_dot=.
2488else
2489 am__leading_dot=_
2490fi
2491rmdir .tst 2>/dev/null
2492
dd184caf 2493if test "`cd $srcdir && pwd`" != "`pwd`"; then
2494 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2495 # is not polluted with repeated "-I."
2496 am__isrc=' -I$(srcdir)'
2497 # test to see if srcdir already configured
2498 if test -f $srcdir/config.status; then
8d138742
CE
2499 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2500$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
d9898ee8 2501 { (exit 1); exit 1; }; }
dd184caf 2502 fi
d9898ee8 2503fi
2504
2505# test whether we have cygpath
2506if test -z "$CYGPATH_W"; then
2507 if (cygpath --version) >/dev/null 2>/dev/null; then
2508 CYGPATH_W='cygpath -w'
2509 else
2510 CYGPATH_W=echo
2511 fi
2512fi
2513
2514
2515# Define the identity of the package.
2516 PACKAGE='liblock'
2517 VERSION='0.60'
2518
2519
2520# Some tools Automake needs.
2521
2522ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2523
2524
2525AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2526
2527
2528AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2529
2530
2531AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2532
2533
2534MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2535
d9898ee8 2536# We need awk for the "check" target. The system "awk" is bad on
2537# some platforms.
2538# Always define AMTAR for backward compatibility.
2539
2540AMTAR=${AMTAR-"${am_missing_run}tar"}
2541
2542am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2543
2544
2545
2546
2547
2548
2549for ac_prog in gawk mawk nawk awk
2550do
2551 # Extract the first word of "$ac_prog", so it can be a program name with args.
2552set dummy $ac_prog; ac_word=$2
8d138742
CE
2553{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2555if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2556 $as_echo_n "(cached) " >&6
d9898ee8 2557else
2558 if test -n "$AWK"; then
2559 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2560else
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2568 ac_cv_prog_AWK="$ac_prog"
8d138742 2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2570 break 2
2571 fi
2572done
2573done
dd184caf 2574IFS=$as_save_IFS
d9898ee8 2575
2576fi
2577fi
2578AWK=$ac_cv_prog_AWK
2579if test -n "$AWK"; then
8d138742
CE
2580 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2581$as_echo "$AWK" >&6; }
d9898ee8 2582else
8d138742
CE
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584$as_echo "no" >&6; }
d9898ee8 2585fi
2586
dd184caf 2587
d9898ee8 2588 test -n "$AWK" && break
2589done
2590
2591ac_ext=c
2592ac_cpp='$CPP $CPPFLAGS'
2593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596if test -n "$ac_tool_prefix"; then
2597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2598set dummy ${ac_tool_prefix}gcc; ac_word=$2
8d138742
CE
2599{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2600$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2601if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2602 $as_echo_n "(cached) " >&6
d9898ee8 2603else
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8d138742 2615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2616 break 2
2617 fi
2618done
2619done
dd184caf 2620IFS=$as_save_IFS
d9898ee8 2621
2622fi
2623fi
2624CC=$ac_cv_prog_CC
2625if test -n "$CC"; then
8d138742
CE
2626 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2627$as_echo "$CC" >&6; }
d9898ee8 2628else
8d138742
CE
2629 { $as_echo "$as_me:$LINENO: result: no" >&5
2630$as_echo "no" >&6; }
d9898ee8 2631fi
2632
dd184caf 2633
d9898ee8 2634fi
2635if test -z "$ac_cv_prog_CC"; then
2636 ac_ct_CC=$CC
2637 # Extract the first word of "gcc", so it can be a program name with args.
2638set dummy gcc; ac_word=$2
8d138742
CE
2639{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2640$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2642 $as_echo_n "(cached) " >&6
d9898ee8 2643else
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2654 ac_cv_prog_ac_ct_CC="gcc"
8d138742 2655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2656 break 2
2657 fi
2658done
2659done
dd184caf 2660IFS=$as_save_IFS
d9898ee8 2661
2662fi
2663fi
2664ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665if test -n "$ac_ct_CC"; then
8d138742
CE
2666 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2668else
8d138742
CE
2669 { $as_echo "$as_me:$LINENO: result: no" >&5
2670$as_echo "no" >&6; }
d9898ee8 2671fi
2672
dd184caf 2673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677yes:)
8d138742
CE
2678{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2680ac_tool_warned=yes ;;
2681esac
2682 CC=$ac_ct_CC
2683 fi
d9898ee8 2684else
2685 CC="$ac_cv_prog_CC"
2686fi
2687
2688if test -z "$CC"; then
dd184caf 2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2691set dummy ${ac_tool_prefix}cc; ac_word=$2
8d138742
CE
2692{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2694if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2695 $as_echo_n "(cached) " >&6
d9898ee8 2696else
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2699else
2700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701for as_dir in $PATH
2702do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2707 ac_cv_prog_CC="${ac_tool_prefix}cc"
8d138742 2708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2709 break 2
2710 fi
2711done
2712done
dd184caf 2713IFS=$as_save_IFS
d9898ee8 2714
2715fi
2716fi
2717CC=$ac_cv_prog_CC
2718if test -n "$CC"; then
8d138742
CE
2719 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2720$as_echo "$CC" >&6; }
d9898ee8 2721else
8d138742
CE
2722 { $as_echo "$as_me:$LINENO: result: no" >&5
2723$as_echo "no" >&6; }
d9898ee8 2724fi
2725
d9898ee8 2726
dd184caf 2727 fi
d9898ee8 2728fi
2729if test -z "$CC"; then
2730 # Extract the first word of "cc", so it can be a program name with args.
2731set dummy cc; ac_word=$2
8d138742
CE
2732{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2733$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2734if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2735 $as_echo_n "(cached) " >&6
d9898ee8 2736else
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2739else
2740 ac_prog_rejected=no
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2749 ac_prog_rejected=yes
2750 continue
2751 fi
2752 ac_cv_prog_CC="cc"
8d138742 2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2754 break 2
2755 fi
2756done
2757done
dd184caf 2758IFS=$as_save_IFS
d9898ee8 2759
2760if test $ac_prog_rejected = yes; then
2761 # We found a bogon in the path, so make sure we never use it.
2762 set dummy $ac_cv_prog_CC
2763 shift
2764 if test $# != 0; then
2765 # We chose a different compiler from the bogus one.
2766 # However, it has the same basename, so the bogon will be chosen
2767 # first if we set CC to just the basename; use the full file name.
2768 shift
2769 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2770 fi
2771fi
2772fi
2773fi
2774CC=$ac_cv_prog_CC
2775if test -n "$CC"; then
8d138742
CE
2776 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2777$as_echo "$CC" >&6; }
d9898ee8 2778else
8d138742
CE
2779 { $as_echo "$as_me:$LINENO: result: no" >&5
2780$as_echo "no" >&6; }
d9898ee8 2781fi
2782
dd184caf 2783
d9898ee8 2784fi
2785if test -z "$CC"; then
2786 if test -n "$ac_tool_prefix"; then
dd184caf 2787 for ac_prog in cl.exe
d9898ee8 2788 do
2789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8d138742
CE
2791{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2792$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2793if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2794 $as_echo_n "(cached) " >&6
d9898ee8 2795else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798else
2799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800for as_dir in $PATH
2801do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2806 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8d138742 2807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2808 break 2
2809 fi
2810done
2811done
dd184caf 2812IFS=$as_save_IFS
d9898ee8 2813
2814fi
2815fi
2816CC=$ac_cv_prog_CC
2817if test -n "$CC"; then
8d138742
CE
2818 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2819$as_echo "$CC" >&6; }
d9898ee8 2820else
8d138742
CE
2821 { $as_echo "$as_me:$LINENO: result: no" >&5
2822$as_echo "no" >&6; }
d9898ee8 2823fi
2824
dd184caf 2825
d9898ee8 2826 test -n "$CC" && break
2827 done
2828fi
2829if test -z "$CC"; then
2830 ac_ct_CC=$CC
dd184caf 2831 for ac_prog in cl.exe
d9898ee8 2832do
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834set dummy $ac_prog; ac_word=$2
8d138742
CE
2835{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2836$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2837if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2838 $as_echo_n "(cached) " >&6
d9898ee8 2839else
2840 if test -n "$ac_ct_CC"; then
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842else
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2850 ac_cv_prog_ac_ct_CC="$ac_prog"
8d138742 2851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2852 break 2
2853 fi
2854done
2855done
dd184caf 2856IFS=$as_save_IFS
d9898ee8 2857
2858fi
2859fi
2860ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861if test -n "$ac_ct_CC"; then
8d138742
CE
2862 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2863$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2864else
8d138742
CE
2865 { $as_echo "$as_me:$LINENO: result: no" >&5
2866$as_echo "no" >&6; }
d9898ee8 2867fi
2868
dd184caf 2869
d9898ee8 2870 test -n "$ac_ct_CC" && break
2871done
2872
dd184caf 2873 if test "x$ac_ct_CC" = x; then
2874 CC=""
2875 else
2876 case $cross_compiling:$ac_tool_warned in
2877yes:)
8d138742
CE
2878{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2880ac_tool_warned=yes ;;
2881esac
2882 CC=$ac_ct_CC
2883 fi
d9898ee8 2884fi
2885
2886fi
2887
2888
8d138742
CE
2889test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d9898ee8 2892See \`config.log' for more details." >&5
8d138742 2893$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
d9898ee8 2894See \`config.log' for more details." >&2;}
8d138742 2895 { (exit 1); exit 1; }; }; }
d9898ee8 2896
2897# Provide some information about the compiler.
8d138742
CE
2898$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2899set X $ac_compile
2900ac_compiler=$2
dd184caf 2901{ (ac_try="$ac_compiler --version >&5"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
8d138742
CE
2906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2907$as_echo "$ac_try_echo") >&5
dd184caf 2908 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2909 ac_status=$?
8d138742 2910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2911 (exit $ac_status); }
dd184caf 2912{ (ac_try="$ac_compiler -v >&5"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
8d138742
CE
2917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2918$as_echo "$ac_try_echo") >&5
dd184caf 2919 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2920 ac_status=$?
8d138742 2921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2922 (exit $ac_status); }
dd184caf 2923{ (ac_try="$ac_compiler -V >&5"
2924case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927esac
8d138742
CE
2928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2929$as_echo "$ac_try_echo") >&5
dd184caf 2930 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2931 ac_status=$?
8d138742 2932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2933 (exit $ac_status); }
2934
2935cat >conftest.$ac_ext <<_ACEOF
2936/* confdefs.h. */
2937_ACEOF
2938cat confdefs.h >>conftest.$ac_ext
2939cat >>conftest.$ac_ext <<_ACEOF
2940/* end confdefs.h. */
2941
2942int
2943main ()
2944{
2945
2946 ;
2947 return 0;
2948}
2949_ACEOF
2950ac_clean_files_save=$ac_clean_files
8d138742 2951ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 2952# Try to create an executable without -o first, disregard a.out.
2953# It will help us diagnose broken compilers, and finding out an intuition
2954# of exeext.
8d138742
CE
2955{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2956$as_echo_n "checking for C compiler default output file name... " >&6; }
2957ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2958
2959# The possible output files:
2960ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2961
dd184caf 2962ac_rmfiles=
2963for ac_file in $ac_files
2964do
2965 case $ac_file in
8d138742 2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 2967 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2968 esac
2969done
2970rm -f $ac_rmfiles
2971
2972if { (ac_try="$ac_link_default"
2973case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976esac
8d138742
CE
2977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2978$as_echo "$ac_try_echo") >&5
dd184caf 2979 (eval "$ac_link_default") 2>&5
d9898ee8 2980 ac_status=$?
8d138742 2981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 2982 (exit $ac_status); }; then
dd184caf 2983 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2984# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2985# in a Makefile. We should not override ac_cv_exeext if it was cached,
2986# so that the user can short-circuit this test for compilers unknown to
2987# Autoconf.
2988for ac_file in $ac_files ''
d9898ee8 2989do
2990 test -f "$ac_file" || continue
2991 case $ac_file in
8d138742 2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 2993 ;;
2994 [ab].out )
2995 # We found the default executable, but exeext='' is most
2996 # certainly right.
2997 break;;
2998 *.* )
dd184caf 2999 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3000 then :; else
3001 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3002 fi
3003 # We set ac_cv_exeext here because the later test for it is not
3004 # safe: cross compilers may not add the suffix if given an `-o'
3005 # argument, so we may need to know it at that point already.
3006 # Even if this section looks crufty: it has the advantage of
3007 # actually working.
d9898ee8 3008 break;;
3009 * )
3010 break;;
3011 esac
3012done
dd184caf 3013test "$ac_cv_exeext" = no && ac_cv_exeext=
3014
d9898ee8 3015else
dd184caf 3016 ac_file=''
3017fi
3018
8d138742
CE
3019{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3020$as_echo "$ac_file" >&6; }
dd184caf 3021if test -z "$ac_file"; then
8d138742 3022 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3023sed 's/^/| /' conftest.$ac_ext >&5
3024
8d138742
CE
3025{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
d9898ee8 3028See \`config.log' for more details." >&5
8d138742 3029$as_echo "$as_me: error: C compiler cannot create executables
d9898ee8 3030See \`config.log' for more details." >&2;}
8d138742 3031 { (exit 77); exit 77; }; }; }
d9898ee8 3032fi
3033
3034ac_exeext=$ac_cv_exeext
d9898ee8 3035
dd184caf 3036# Check that the compiler produces executables we can run. If not, either
d9898ee8 3037# the compiler is broken, or we cross compile.
8d138742
CE
3038{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3039$as_echo_n "checking whether the C compiler works... " >&6; }
d9898ee8 3040# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3041# If not cross compiling, check that we can run a simple program.
3042if test "$cross_compiling" != yes; then
3043 if { ac_try='./$ac_file'
dd184caf 3044 { (case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047esac
8d138742
CE
3048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049$as_echo "$ac_try_echo") >&5
dd184caf 3050 (eval "$ac_try") 2>&5
d9898ee8 3051 ac_status=$?
8d138742 3052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3053 (exit $ac_status); }; }; then
3054 cross_compiling=no
3055 else
3056 if test "$cross_compiling" = maybe; then
3057 cross_compiling=yes
3058 else
8d138742
CE
3059 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3061{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
d9898ee8 3062If you meant to cross compile, use \`--host'.
3063See \`config.log' for more details." >&5
8d138742 3064$as_echo "$as_me: error: cannot run C compiled programs.
d9898ee8 3065If you meant to cross compile, use \`--host'.
3066See \`config.log' for more details." >&2;}
8d138742 3067 { (exit 1); exit 1; }; }; }
d9898ee8 3068 fi
3069 fi
3070fi
8d138742
CE
3071{ $as_echo "$as_me:$LINENO: result: yes" >&5
3072$as_echo "yes" >&6; }
d9898ee8 3073
8d138742 3074rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3075ac_clean_files=$ac_clean_files_save
dd184caf 3076# Check that the compiler produces executables we can run. If not, either
d9898ee8 3077# the compiler is broken, or we cross compile.
8d138742
CE
3078{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3079$as_echo_n "checking whether we are cross compiling... " >&6; }
3080{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3081$as_echo "$cross_compiling" >&6; }
dd184caf 3082
8d138742
CE
3083{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3084$as_echo_n "checking for suffix of executables... " >&6; }
dd184caf 3085if { (ac_try="$ac_link"
3086case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089esac
8d138742
CE
3090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3091$as_echo "$ac_try_echo") >&5
dd184caf 3092 (eval "$ac_link") 2>&5
d9898ee8 3093 ac_status=$?
8d138742 3094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3095 (exit $ac_status); }; then
3096 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3097# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3098# work properly (i.e., refer to `conftest.exe'), while it won't with
3099# `rm'.
3100for ac_file in conftest.exe conftest conftest.*; do
3101 test -f "$ac_file" || continue
3102 case $ac_file in
8d138742 3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3104 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3105 break;;
3106 * ) break;;
3107 esac
3108done
3109else
8d138742
CE
3110 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3112{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3113See \`config.log' for more details." >&5
8d138742 3114$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3115See \`config.log' for more details." >&2;}
8d138742 3116 { (exit 1); exit 1; }; }; }
d9898ee8 3117fi
3118
3119rm -f conftest$ac_cv_exeext
8d138742
CE
3120{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3121$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3122
3123rm -f conftest.$ac_ext
3124EXEEXT=$ac_cv_exeext
3125ac_exeext=$EXEEXT
8d138742
CE
3126{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3127$as_echo_n "checking for suffix of object files... " >&6; }
d9898ee8 3128if test "${ac_cv_objext+set}" = set; then
8d138742 3129 $as_echo_n "(cached) " >&6
d9898ee8 3130else
3131 cat >conftest.$ac_ext <<_ACEOF
3132/* confdefs.h. */
3133_ACEOF
3134cat confdefs.h >>conftest.$ac_ext
3135cat >>conftest.$ac_ext <<_ACEOF
3136/* end confdefs.h. */
3137
3138int
3139main ()
3140{
3141
3142 ;
3143 return 0;
3144}
3145_ACEOF
3146rm -f conftest.o conftest.obj
dd184caf 3147if { (ac_try="$ac_compile"
3148case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
8d138742
CE
3152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3153$as_echo "$ac_try_echo") >&5
dd184caf 3154 (eval "$ac_compile") 2>&5
d9898ee8 3155 ac_status=$?
8d138742 3156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3157 (exit $ac_status); }; then
dd184caf 3158 for ac_file in conftest.o conftest.obj conftest.*; do
3159 test -f "$ac_file" || continue;
d9898ee8 3160 case $ac_file in
8d138742 3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3162 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3163 break;;
3164 esac
3165done
3166else
8d138742 3167 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3168sed 's/^/| /' conftest.$ac_ext >&5
3169
8d138742
CE
3170{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
d9898ee8 3173See \`config.log' for more details." >&5
8d138742 3174$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
d9898ee8 3175See \`config.log' for more details." >&2;}
8d138742 3176 { (exit 1); exit 1; }; }; }
d9898ee8 3177fi
3178
3179rm -f conftest.$ac_cv_objext conftest.$ac_ext
3180fi
8d138742
CE
3181{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3182$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3183OBJEXT=$ac_cv_objext
3184ac_objext=$OBJEXT
8d138742
CE
3185{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3186$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d9898ee8 3187if test "${ac_cv_c_compiler_gnu+set}" = set; then
8d138742 3188 $as_echo_n "(cached) " >&6
d9898ee8 3189else
3190 cat >conftest.$ac_ext <<_ACEOF
3191/* confdefs.h. */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h. */
3196
3197int
3198main ()
3199{
3200#ifndef __GNUC__
3201 choke me
3202#endif
3203
3204 ;
3205 return 0;
3206}
3207_ACEOF
3208rm -f conftest.$ac_objext
dd184caf 3209if { (ac_try="$ac_compile"
3210case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
8d138742
CE
3214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3215$as_echo "$ac_try_echo") >&5
dd184caf 3216 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3217 ac_status=$?
3218 grep -v '^ *+' conftest.er1 >conftest.err
3219 rm -f conftest.er1
3220 cat conftest.err >&5
8d138742 3221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3222 (exit $ac_status); } && {
3223 test -z "$ac_c_werror_flag" ||
3224 test ! -s conftest.err
3225 } && test -s conftest.$ac_objext; then
d9898ee8 3226 ac_compiler_gnu=yes
3227else
8d138742 3228 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3229sed 's/^/| /' conftest.$ac_ext >&5
3230
dd184caf 3231 ac_compiler_gnu=no
d9898ee8 3232fi
dd184caf 3233
3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3235ac_cv_c_compiler_gnu=$ac_compiler_gnu
3236
3237fi
8d138742
CE
3238{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3239$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3240if test $ac_compiler_gnu = yes; then
3241 GCC=yes
3242else
3243 GCC=
3244fi
d9898ee8 3245ac_test_CFLAGS=${CFLAGS+set}
3246ac_save_CFLAGS=$CFLAGS
8d138742
CE
3247{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3248$as_echo_n "checking whether $CC accepts -g... " >&6; }
d9898ee8 3249if test "${ac_cv_prog_cc_g+set}" = set; then
8d138742 3250 $as_echo_n "(cached) " >&6
d9898ee8 3251else
dd184caf 3252 ac_save_c_werror_flag=$ac_c_werror_flag
3253 ac_c_werror_flag=yes
3254 ac_cv_prog_cc_g=no
3255 CFLAGS="-g"
3256 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3257/* confdefs.h. */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
3261/* end confdefs.h. */
3262
3263int
3264main ()
3265{
3266
3267 ;
3268 return 0;
3269}
3270_ACEOF
3271rm -f conftest.$ac_objext
dd184caf 3272if { (ac_try="$ac_compile"
3273case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276esac
8d138742
CE
3277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278$as_echo "$ac_try_echo") >&5
dd184caf 3279 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
8d138742 3284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3285 (exit $ac_status); } && {
3286 test -z "$ac_c_werror_flag" ||
3287 test ! -s conftest.err
3288 } && test -s conftest.$ac_objext; then
3289 ac_cv_prog_cc_g=yes
3290else
8d138742 3291 $as_echo "$as_me: failed program was:" >&5
dd184caf 3292sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 CFLAGS=""
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */
3301
3302int
3303main ()
3304{
3305
3306 ;
3307 return 0;
3308}
3309_ACEOF
3310rm -f conftest.$ac_objext
3311if { (ac_try="$ac_compile"
3312case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315esac
8d138742
CE
3316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3317$as_echo "$ac_try_echo") >&5
dd184caf 3318 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3319 ac_status=$?
dd184caf 3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
8d138742 3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3324 (exit $ac_status); } && {
3325 test -z "$ac_c_werror_flag" ||
3326 test ! -s conftest.err
3327 } && test -s conftest.$ac_objext; then
3328 :
3329else
8d138742 3330 $as_echo "$as_me: failed program was:" >&5
dd184caf 3331sed 's/^/| /' conftest.$ac_ext >&5
3332
3333 ac_c_werror_flag=$ac_save_c_werror_flag
3334 CFLAGS="-g"
3335 cat >conftest.$ac_ext <<_ACEOF
3336/* confdefs.h. */
3337_ACEOF
3338cat confdefs.h >>conftest.$ac_ext
3339cat >>conftest.$ac_ext <<_ACEOF
3340/* end confdefs.h. */
3341
3342int
3343main ()
3344{
3345
3346 ;
3347 return 0;
3348}
3349_ACEOF
3350rm -f conftest.$ac_objext
3351if { (ac_try="$ac_compile"
3352case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355esac
8d138742
CE
3356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357$as_echo "$ac_try_echo") >&5
dd184caf 3358 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3359 ac_status=$?
dd184caf 3360 grep -v '^ *+' conftest.er1 >conftest.err
3361 rm -f conftest.er1
3362 cat conftest.err >&5
8d138742 3363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3364 (exit $ac_status); } && {
3365 test -z "$ac_c_werror_flag" ||
3366 test ! -s conftest.err
3367 } && test -s conftest.$ac_objext; then
d9898ee8 3368 ac_cv_prog_cc_g=yes
3369else
8d138742 3370 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3371sed 's/^/| /' conftest.$ac_ext >&5
3372
dd184caf 3373
3374fi
3375
3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377fi
3378
3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3380fi
dd184caf 3381
3382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3384fi
8d138742
CE
3385{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3386$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3387if test "$ac_test_CFLAGS" = set; then
3388 CFLAGS=$ac_save_CFLAGS
3389elif test $ac_cv_prog_cc_g = yes; then
3390 if test "$GCC" = yes; then
3391 CFLAGS="-g -O2"
3392 else
3393 CFLAGS="-g"
3394 fi
3395else
3396 if test "$GCC" = yes; then
3397 CFLAGS="-O2"
3398 else
3399 CFLAGS=
3400 fi
3401fi
8d138742
CE
3402{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3403$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
dd184caf 3404if test "${ac_cv_prog_cc_c89+set}" = set; then
8d138742 3405 $as_echo_n "(cached) " >&6
d9898ee8 3406else
dd184caf 3407 ac_cv_prog_cc_c89=no
d9898ee8 3408ac_save_CC=$CC
3409cat >conftest.$ac_ext <<_ACEOF
3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415#include <stdarg.h>
3416#include <stdio.h>
3417#include <sys/types.h>
3418#include <sys/stat.h>
3419/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3420struct buf { int x; };
3421FILE * (*rcsopen) (struct buf *, struct stat *, int);
3422static char *e (p, i)
3423 char **p;
3424 int i;
3425{
3426 return p[i];
3427}
3428static char *f (char * (*g) (char **, int), char **p, ...)
3429{
3430 char *s;
3431 va_list v;
3432 va_start (v,p);
3433 s = g (p, va_arg (v,int));
3434 va_end (v);
3435 return s;
3436}
3437
3438/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3439 function prototypes and stuff, but not '\xHH' hex character constants.
3440 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3441 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3443 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3444 that's true only with -std. */
d9898ee8 3445int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3446
dd184caf 3447/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3448 inside strings and character constants. */
3449#define FOO(x) 'x'
3450int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3451
d9898ee8 3452int test (int i, double x);
3453struct s1 {int (*f) (int a);};
3454struct s2 {int (*f) (double a);};
3455int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3456int argc;
3457char **argv;
3458int
3459main ()
3460{
3461return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3462 ;
3463 return 0;
3464}
3465_ACEOF
dd184caf 3466for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3467 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3468do
3469 CC="$ac_save_CC $ac_arg"
3470 rm -f conftest.$ac_objext
dd184caf 3471if { (ac_try="$ac_compile"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
8d138742
CE
3476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3477$as_echo "$ac_try_echo") >&5
dd184caf 3478 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
8d138742 3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3484 (exit $ac_status); } && {
3485 test -z "$ac_c_werror_flag" ||
3486 test ! -s conftest.err
3487 } && test -s conftest.$ac_objext; then
3488 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3489else
8d138742 3490 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3491sed 's/^/| /' conftest.$ac_ext >&5
3492
dd184caf 3493
d9898ee8 3494fi
dd184caf 3495
3496rm -f core conftest.err conftest.$ac_objext
3497 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3498done
dd184caf 3499rm -f conftest.$ac_ext
d9898ee8 3500CC=$ac_save_CC
3501
3502fi
dd184caf 3503# AC_CACHE_VAL
3504case "x$ac_cv_prog_cc_c89" in
3505 x)
8d138742
CE
3506 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3507$as_echo "none needed" >&6; } ;;
dd184caf 3508 xno)
8d138742
CE
3509 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3510$as_echo "unsupported" >&6; } ;;
d9898ee8 3511 *)
dd184caf 3512 CC="$CC $ac_cv_prog_cc_c89"
8d138742
CE
3513 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3514$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3515esac
3516
d9898ee8 3517
d9898ee8 3518ac_ext=c
3519ac_cpp='$CPP $CPPFLAGS'
3520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523DEPDIR="${am__leading_dot}deps"
3524
dd184caf 3525ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3526
3527
3528am_make=${MAKE-make}
3529cat > confinc << 'END'
3530am__doit:
8d138742 3531 @echo this is the am__doit target
d9898ee8 3532.PHONY: am__doit
3533END
3534# If we don't find an include directive, just comment out the code.
8d138742
CE
3535{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3536$as_echo_n "checking for style of include used by $am_make... " >&6; }
d9898ee8 3537am__include="#"
3538am__quote=
3539_am_result=none
3540# First try GNU make style include.
3541echo "include confinc" > confmf
8d138742
CE
3542# Ignore all kinds of additional output from `make'.
3543case `$am_make -s -f confmf 2> /dev/null` in #(
3544*the\ am__doit\ target*)
3545 am__include=include
3546 am__quote=
3547 _am_result=GNU
3548 ;;
3549esac
d9898ee8 3550# Now try BSD make style include.
3551if test "$am__include" = "#"; then
3552 echo '.include "confinc"' > confmf
8d138742
CE
3553 case `$am_make -s -f confmf 2> /dev/null` in #(
3554 *the\ am__doit\ target*)
3555 am__include=.include
3556 am__quote="\""
3557 _am_result=BSD
3558 ;;
3559 esac
d9898ee8 3560fi
3561
3562
8d138742
CE
3563{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3564$as_echo "$_am_result" >&6; }
d9898ee8 3565rm -f confinc confmf
3566
dd184caf 3567# Check whether --enable-dependency-tracking was given.
d9898ee8 3568if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3569 enableval=$enable_dependency_tracking;
3570fi
d9898ee8 3571
d9898ee8 3572if test "x$enable_dependency_tracking" != xno; then
3573 am_depcomp="$ac_aux_dir/depcomp"
3574 AMDEPBACKSLASH='\'
3575fi
dd184caf 3576 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3577 AMDEP_TRUE=
3578 AMDEP_FALSE='#'
3579else
3580 AMDEP_TRUE='#'
3581 AMDEP_FALSE=
3582fi
3583
3584
3585
d9898ee8 3586depcc="$CC" am_compiler_list=
3587
8d138742
CE
3588{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3589$as_echo_n "checking dependency style of $depcc... " >&6; }
d9898ee8 3590if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8d138742 3591 $as_echo_n "(cached) " >&6
d9898ee8 3592else
3593 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3594 # We make a subdir and do the tests there. Otherwise we can end up
3595 # making bogus files that we don't know about and never remove. For
3596 # instance it was reported that on HP-UX the gcc test will end up
3597 # making a dummy file named `D' -- because `-MD' means `put the output
3598 # in D'.
3599 mkdir conftest.dir
3600 # Copy depcomp to subdir because otherwise we won't find it if we're
3601 # using a relative directory.
3602 cp "$am_depcomp" conftest.dir
3603 cd conftest.dir
3604 # We will build objects and dependencies in a subdirectory because
3605 # it helps to detect inapplicable dependency modes. For instance
3606 # both Tru64's cc and ICC support -MD to output dependencies as a
3607 # side effect of compilation, but ICC will put the dependencies in
3608 # the current directory while Tru64 will put them in the object
3609 # directory.
3610 mkdir sub
3611
3612 am_cv_CC_dependencies_compiler_type=none
3613 if test "$am_compiler_list" = ""; then
3614 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3615 fi
8d138742
CE
3616 am__universal=false
3617 case " $depcc " in #(
3618 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3619 esac
3620
d9898ee8 3621 for depmode in $am_compiler_list; do
3622 # Setup a source with many dependencies, because some compilers
3623 # like to wrap large dependency lists on column 80 (with \), and
3624 # we should not choose a depcomp mode which is confused by this.
3625 #
3626 # We need to recreate these files for each test, as the compiler may
3627 # overwrite some of them when testing with obscure command lines.
3628 # This happens at least with the AIX C compiler.
3629 : > sub/conftest.c
3630 for i in 1 2 3 4 5 6; do
3631 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3632 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3633 # Solaris 8's {/usr,}/bin/sh.
3634 touch sub/conftst$i.h
3635 done
3636 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3637
8d138742
CE
3638 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3639 # mode. It turns out that the SunPro C++ compiler does not properly
3640 # handle `-M -o', and we need to detect this. Also, some Intel
3641 # versions had trouble with output in subdirs
3642 am__obj=sub/conftest.${OBJEXT-o}
3643 am__minus_obj="-o $am__obj"
d9898ee8 3644 case $depmode in
8d138742
CE
3645 gcc)
3646 # This depmode causes a compiler race in universal mode.
3647 test "$am__universal" = false || continue
3648 ;;
d9898ee8 3649 nosideeffect)
3650 # after this tag, mechanisms are not by side-effect, so they'll
3651 # only be used when explicitly requested
3652 if test "x$enable_dependency_tracking" = xyes; then
3653 continue
3654 else
3655 break
3656 fi
3657 ;;
8d138742
CE
3658 msvisualcpp | msvcmsys)
3659 # This compiler won't grok `-c -o', but also, the minuso test has
3660 # not run yet. These depmodes are late enough in the game, and
3661 # so weak that their functioning should not be impacted.
3662 am__obj=conftest.${OBJEXT-o}
3663 am__minus_obj=
3664 ;;
d9898ee8 3665 none) break ;;
3666 esac
d9898ee8 3667 if depmode=$depmode \
8d138742 3668 source=sub/conftest.c object=$am__obj \
d9898ee8 3669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3670 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3671 >/dev/null 2>conftest.err &&
dd184caf 3672 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3673 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3674 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3675 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3676 # icc doesn't choke on unknown options, it will just issue warnings
3677 # or remarks (even with -Werror). So we grep stderr for any message
3678 # that says an option was ignored or not supported.
3679 # When given -MP, icc 7.0 and 7.1 complain thusly:
3680 # icc: Command line warning: ignoring option '-M'; no argument required
3681 # The diagnosis changed in icc 8.0:
3682 # icc: Command line remark: option '-MP' not supported
3683 if (grep 'ignoring option' conftest.err ||
3684 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3685 am_cv_CC_dependencies_compiler_type=$depmode
3686 break
3687 fi
3688 fi
3689 done
3690
3691 cd ..
3692 rm -rf conftest.dir
3693else
3694 am_cv_CC_dependencies_compiler_type=none
3695fi
3696
3697fi
8d138742
CE
3698{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3699$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3700CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3701
dd184caf 3702 if
d9898ee8 3703 test "x$enable_dependency_tracking" != xno \
3704 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3705 am__fastdepCC_TRUE=
3706 am__fastdepCC_FALSE='#'
3707else
3708 am__fastdepCC_TRUE='#'
3709 am__fastdepCC_FALSE=
3710fi
3711
3712
3713# Find a good install program. We prefer a C program (faster),
3714# so one script is as good as another. But avoid the broken or
3715# incompatible versions:
3716# SysV /etc/install, /usr/sbin/install
3717# SunOS /usr/etc/install
3718# IRIX /sbin/install
3719# AIX /bin/install
3720# AmigaOS /C/install, which installs bootblocks on floppy discs
3721# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3722# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3723# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3724# OS/2's system install, which has a completely different semantic
3725# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
3726# Reject install programs that cannot install multiple files.
3727{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3728$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 3729if test -z "$INSTALL"; then
3730if test "${ac_cv_path_install+set}" = set; then
8d138742 3731 $as_echo_n "(cached) " >&6
d9898ee8 3732else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734for as_dir in $PATH
3735do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 # Account for people who put trailing slashes in PATH elements.
3739case $as_dir/ in
3740 ./ | .// | /cC/* | \
3741 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3742 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3743 /usr/ucb/* ) ;;
3744 *)
3745 # OSF1 and SCO ODT 3.0 have their own names for install.
3746 # Don't use installbsd from OSF since it installs stuff as root
3747 # by default.
3748 for ac_prog in ginstall scoinst install; do
3749 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 3750 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3751 if test $ac_prog = install &&
3752 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3753 # AIX install. It has an incompatible calling convention.
3754 :
3755 elif test $ac_prog = install &&
3756 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3757 # program-specific install script used by HP pwplus--don't use.
3758 :
3759 else
8d138742
CE
3760 rm -rf conftest.one conftest.two conftest.dir
3761 echo one > conftest.one
3762 echo two > conftest.two
3763 mkdir conftest.dir
3764 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3765 test -s conftest.one && test -s conftest.two &&
3766 test -s conftest.dir/conftest.one &&
3767 test -s conftest.dir/conftest.two
3768 then
3769 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3770 break 3
3771 fi
d9898ee8 3772 fi
3773 fi
3774 done
3775 done
3776 ;;
3777esac
8d138742 3778
d9898ee8 3779done
dd184caf 3780IFS=$as_save_IFS
d9898ee8 3781
8d138742 3782rm -rf conftest.one conftest.two conftest.dir
d9898ee8 3783
3784fi
3785 if test "${ac_cv_path_install+set}" = set; then
3786 INSTALL=$ac_cv_path_install
3787 else
dd184caf 3788 # As a last resort, use the slow shell script. Don't cache a
3789 # value for INSTALL within a source directory, because that will
d9898ee8 3790 # break other packages using the cache if that directory is
dd184caf 3791 # removed, or if the value is a relative name.
d9898ee8 3792 INSTALL=$ac_install_sh
3793 fi
3794fi
8d138742
CE
3795{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3796$as_echo "$INSTALL" >&6; }
d9898ee8 3797
3798# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3799# It thinks the first close brace ends the variable substitution.
3800test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3801
3802test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3803
3804test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3805
8d138742
CE
3806{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3807$as_echo_n "checking whether ln -s works... " >&6; }
d9898ee8 3808LN_S=$as_ln_s
3809if test "$LN_S" = "ln -s"; then
8d138742
CE
3810 { $as_echo "$as_me:$LINENO: result: yes" >&5
3811$as_echo "yes" >&6; }
d9898ee8 3812else
8d138742
CE
3813 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3814$as_echo "no, using $LN_S" >&6; }
d9898ee8 3815fi
3816
8d138742
CE
3817case `pwd` in
3818 *\ * | *\ *)
3819 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3820$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3821esac
3822
3823
3824
3825macro_version='2.2.6'
3826macro_revision='1.3012'
3827
3828
3829
3830
3831
3832
3833
3834
dd184caf 3835
d9898ee8 3836
dd184caf 3837
d9898ee8 3838
dd184caf 3839
8d138742 3840ltmain="$ac_aux_dir/ltmain.sh"
d9898ee8 3841
3842# Make sure we can run config.sub.
dd184caf 3843$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
8d138742
CE
3844 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3845$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3846 { (exit 1); exit 1; }; }
3847
8d138742
CE
3848{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3849$as_echo_n "checking build system type... " >&6; }
d9898ee8 3850if test "${ac_cv_build+set}" = set; then
8d138742 3851 $as_echo_n "(cached) " >&6
d9898ee8 3852else
dd184caf 3853 ac_build_alias=$build_alias
3854test "x$ac_build_alias" = x &&
3855 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3856test "x$ac_build_alias" = x &&
8d138742
CE
3857 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3858$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
d9898ee8 3859 { (exit 1); exit 1; }; }
dd184caf 3860ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8d138742
CE
3861 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3862$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3863 { (exit 1); exit 1; }; }
3864
3865fi
8d138742
CE
3866{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3867$as_echo "$ac_cv_build" >&6; }
dd184caf 3868case $ac_cv_build in
3869*-*-*) ;;
8d138742
CE
3870*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3871$as_echo "$as_me: error: invalid value of canonical build" >&2;}
dd184caf 3872 { (exit 1); exit 1; }; };;
3873esac
d9898ee8 3874build=$ac_cv_build
dd184caf 3875ac_save_IFS=$IFS; IFS='-'
3876set x $ac_cv_build
3877shift
3878build_cpu=$1
3879build_vendor=$2
3880shift; shift
3881# Remember, the first character of IFS is used to create $*,
3882# except with old shells:
3883build_os=$*
3884IFS=$ac_save_IFS
3885case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3886
3887
8d138742
CE
3888{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3889$as_echo_n "checking host system type... " >&6; }
d9898ee8 3890if test "${ac_cv_host+set}" = set; then
8d138742 3891 $as_echo_n "(cached) " >&6
d9898ee8 3892else
dd184caf 3893 if test "x$host_alias" = x; then
3894 ac_cv_host=$ac_cv_build
3895else
3896 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8d138742
CE
3897 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3898$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3899 { (exit 1); exit 1; }; }
dd184caf 3900fi
d9898ee8 3901
3902fi
8d138742
CE
3903{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3904$as_echo "$ac_cv_host" >&6; }
dd184caf 3905case $ac_cv_host in
3906*-*-*) ;;
8d138742
CE
3907*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3908$as_echo "$as_me: error: invalid value of canonical host" >&2;}
dd184caf 3909 { (exit 1); exit 1; }; };;
3910esac
d9898ee8 3911host=$ac_cv_host
dd184caf 3912ac_save_IFS=$IFS; IFS='-'
3913set x $ac_cv_host
3914shift
3915host_cpu=$1
3916host_vendor=$2
3917shift; shift
3918# Remember, the first character of IFS is used to create $*,
3919# except with old shells:
3920host_os=$*
3921IFS=$ac_save_IFS
3922case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3923
3924
8d138742
CE
3925{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3926$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3927if test "${ac_cv_path_SED+set}" = set; then
3928 $as_echo_n "(cached) " >&6
3929else
3930 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3931 for ac_i in 1 2 3 4 5 6 7; do
3932 ac_script="$ac_script$as_nl$ac_script"
3933 done
3934 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3935 $as_unset ac_script || ac_script=
3936 if test -z "$SED"; then
3937 ac_path_SED_found=false
3938 # Loop through the user's path and test for each of PROGNAME-LIST
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
8d138742 3944 for ac_prog in sed gsed; do
d9898ee8 3945 for ac_exec_ext in '' $ac_executable_extensions; do
8d138742
CE
3946 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3947 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3948# Check for GNU ac_path_SED and select it if it is found.
3949 # Check for GNU $ac_path_SED
3950case `"$ac_path_SED" --version 2>&1` in
3951*GNU*)
3952 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3953*)
3954 ac_count=0
3955 $as_echo_n 0123456789 >"conftest.in"
3956 while :
3957 do
3958 cat "conftest.in" "conftest.in" >"conftest.tmp"
3959 mv "conftest.tmp" "conftest.in"
3960 cp "conftest.in" "conftest.nl"
3961 $as_echo '' >> "conftest.nl"
3962 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3963 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3964 ac_count=`expr $ac_count + 1`
3965 if test $ac_count -gt ${ac_path_SED_max-0}; then
3966 # Best one so far, save it but keep looking for a better one
3967 ac_cv_path_SED="$ac_path_SED"
3968 ac_path_SED_max=$ac_count
3969 fi
3970 # 10*(2^10) chars as input seems more than enough
3971 test $ac_count -gt 10 && break
3972 done
3973 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3974esac
3975
3976 $ac_path_SED_found && break 3
d9898ee8 3977 done
3978 done
3979done
3980IFS=$as_save_IFS
8d138742
CE
3981 if test -z "$ac_cv_path_SED"; then
3982 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3983$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3984 { (exit 1); exit 1; }; }
d9898ee8 3985 fi
8d138742
CE
3986else
3987 ac_cv_path_SED=$SED
3988fi
d9898ee8 3989
3990fi
8d138742
CE
3991{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3992$as_echo "$ac_cv_path_SED" >&6; }
3993 SED="$ac_cv_path_SED"
3994 rm -f conftest.sed
3995
3996test -z "$SED" && SED=sed
3997Xsed="$SED -e 1s/^X//"
d9898ee8 3998
d9898ee8 3999
dd184caf 4000
8d138742
CE
4001
4002
4003
4004
4005
4006
4007
4008
4009{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4010$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
dd184caf 4011if test "${ac_cv_path_GREP+set}" = set; then
8d138742 4012 $as_echo_n "(cached) " >&6
dd184caf 4013else
8d138742 4014 if test -z "$GREP"; then
dd184caf 4015 ac_path_GREP_found=false
8d138742
CE
4016 # Loop through the user's path and test for each of PROGNAME-LIST
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4019do
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_prog in grep ggrep; do
8d138742
CE
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4025 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4026# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 4027 # Check for GNU $ac_path_GREP
4028case `"$ac_path_GREP" --version 2>&1` in
4029*GNU*)
4030 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4031*)
4032 ac_count=0
8d138742 4033 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4034 while :
4035 do
4036 cat "conftest.in" "conftest.in" >"conftest.tmp"
4037 mv "conftest.tmp" "conftest.in"
4038 cp "conftest.in" "conftest.nl"
8d138742 4039 $as_echo 'GREP' >> "conftest.nl"
dd184caf 4040 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4042 ac_count=`expr $ac_count + 1`
4043 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4044 # Best one so far, save it but keep looking for a better one
4045 ac_cv_path_GREP="$ac_path_GREP"
4046 ac_path_GREP_max=$ac_count
4047 fi
4048 # 10*(2^10) chars as input seems more than enough
4049 test $ac_count -gt 10 && break
4050 done
4051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4052esac
4053
8d138742
CE
4054 $ac_path_GREP_found && break 3
4055 done
dd184caf 4056 done
4057done
dd184caf 4058IFS=$as_save_IFS
8d138742
CE
4059 if test -z "$ac_cv_path_GREP"; then
4060 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4061$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
dd184caf 4062 { (exit 1); exit 1; }; }
8d138742 4063 fi
dd184caf 4064else
4065 ac_cv_path_GREP=$GREP
4066fi
4067
dd184caf 4068fi
8d138742
CE
4069{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4070$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 4071 GREP="$ac_cv_path_GREP"
4072
4073
8d138742
CE
4074{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4075$as_echo_n "checking for egrep... " >&6; }
dd184caf 4076if test "${ac_cv_path_EGREP+set}" = set; then
8d138742 4077 $as_echo_n "(cached) " >&6
dd184caf 4078else
4079 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4080 then ac_cv_path_EGREP="$GREP -E"
4081 else
8d138742 4082 if test -z "$EGREP"; then
dd184caf 4083 ac_path_EGREP_found=false
8d138742
CE
4084 # Loop through the user's path and test for each of PROGNAME-LIST
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 4086for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087do
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_prog in egrep; do
8d138742
CE
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4093 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4094# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 4095 # Check for GNU $ac_path_EGREP
4096case `"$ac_path_EGREP" --version 2>&1` in
4097*GNU*)
4098 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4099*)
4100 ac_count=0
8d138742 4101 $as_echo_n 0123456789 >"conftest.in"
dd184caf 4102 while :
4103 do
4104 cat "conftest.in" "conftest.in" >"conftest.tmp"
4105 mv "conftest.tmp" "conftest.in"
4106 cp "conftest.in" "conftest.nl"
8d138742 4107 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 4108 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4110 ac_count=`expr $ac_count + 1`
4111 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4112 # Best one so far, save it but keep looking for a better one
4113 ac_cv_path_EGREP="$ac_path_EGREP"
4114 ac_path_EGREP_max=$ac_count
d9898ee8 4115 fi
dd184caf 4116 # 10*(2^10) chars as input seems more than enough
4117 test $ac_count -gt 10 && break
4118 done
4119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120esac
4121
8d138742
CE
4122 $ac_path_EGREP_found && break 3
4123 done
dd184caf 4124 done
4125done
dd184caf 4126IFS=$as_save_IFS
8d138742
CE
4127 if test -z "$ac_cv_path_EGREP"; then
4128 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4129$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4130 { (exit 1); exit 1; }; }
4131 fi
4132else
4133 ac_cv_path_EGREP=$EGREP
dd184caf 4134fi
4135
8d138742 4136 fi
dd184caf 4137fi
8d138742
CE
4138{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4139$as_echo "$ac_cv_path_EGREP" >&6; }
4140 EGREP="$ac_cv_path_EGREP"
dd184caf 4141
8d138742
CE
4142
4143{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4144$as_echo_n "checking for fgrep... " >&6; }
4145if test "${ac_cv_path_FGREP+set}" = set; then
4146 $as_echo_n "(cached) " >&6
dd184caf 4147else
8d138742
CE
4148 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4149 then ac_cv_path_FGREP="$GREP -F"
4150 else
4151 if test -z "$FGREP"; then
4152 ac_path_FGREP_found=false
4153 # Loop through the user's path and test for each of PROGNAME-LIST
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156do
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_prog in fgrep; do
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4162 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4163# Check for GNU ac_path_FGREP and select it if it is found.
4164 # Check for GNU $ac_path_FGREP
4165case `"$ac_path_FGREP" --version 2>&1` in
4166*GNU*)
4167 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4168*)
4169 ac_count=0
4170 $as_echo_n 0123456789 >"conftest.in"
4171 while :
4172 do
4173 cat "conftest.in" "conftest.in" >"conftest.tmp"
4174 mv "conftest.tmp" "conftest.in"
4175 cp "conftest.in" "conftest.nl"
4176 $as_echo 'FGREP' >> "conftest.nl"
4177 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179 ac_count=`expr $ac_count + 1`
4180 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4181 # Best one so far, save it but keep looking for a better one
4182 ac_cv_path_FGREP="$ac_path_FGREP"
4183 ac_path_FGREP_max=$ac_count
4184 fi
4185 # 10*(2^10) chars as input seems more than enough
4186 test $ac_count -gt 10 && break
4187 done
4188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189esac
dd184caf 4190
8d138742
CE
4191 $ac_path_FGREP_found && break 3
4192 done
4193 done
4194done
4195IFS=$as_save_IFS
4196 if test -z "$ac_cv_path_FGREP"; then
4197 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4198$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4199 { (exit 1); exit 1; }; }
4200 fi
4201else
4202 ac_cv_path_FGREP=$FGREP
4203fi
dd184caf 4204
4205 fi
d9898ee8 4206fi
8d138742
CE
4207{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4208$as_echo "$ac_cv_path_FGREP" >&6; }
4209 FGREP="$ac_cv_path_FGREP"
4210
4211
4212test -z "$GREP" && GREP=grep
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
d9898ee8 4229
4230
4231
dd184caf 4232# Check whether --with-gnu-ld was given.
d9898ee8 4233if test "${with_gnu_ld+set}" = set; then
dd184caf 4234 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4235else
4236 with_gnu_ld=no
dd184caf 4237fi
4238
d9898ee8 4239ac_prog=ld
4240if test "$GCC" = yes; then
4241 # Check if gcc -print-prog-name=ld gives a path.
8d138742
CE
4242 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4243$as_echo_n "checking for ld used by $CC... " >&6; }
d9898ee8 4244 case $host in
4245 *-*-mingw*)
4246 # gcc leaves a trailing carriage return which upsets mingw
4247 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4248 *)
4249 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4250 esac
4251 case $ac_prog in
4252 # Accept absolute paths.
4253 [\\/]* | ?:[\\/]*)
4254 re_direlt='/[^/][^/]*/\.\./'
4255 # Canonicalize the pathname of ld
8d138742
CE
4256 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4257 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4258 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d9898ee8 4259 done
4260 test -z "$LD" && LD="$ac_prog"
4261 ;;
4262 "")
4263 # If it fails, then pretend we aren't using GCC.
4264 ac_prog=ld
4265 ;;
4266 *)
4267 # If it is relative, then search for the first ld in PATH.
4268 with_gnu_ld=unknown
4269 ;;
4270 esac
4271elif test "$with_gnu_ld" = yes; then
8d138742
CE
4272 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4273$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4274else
8d138742
CE
4275 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4276$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4277fi
4278if test "${lt_cv_path_LD+set}" = set; then
8d138742 4279 $as_echo_n "(cached) " >&6
d9898ee8 4280else
4281 if test -z "$LD"; then
4282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4283 for ac_dir in $PATH; do
4284 IFS="$lt_save_ifs"
4285 test -z "$ac_dir" && ac_dir=.
4286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4287 lt_cv_path_LD="$ac_dir/$ac_prog"
4288 # Check to see if the program is GNU ld. I'd rather use --version,
4289 # but apparently some variants of GNU ld only accept -v.
4290 # Break only if it was the GNU/non-GNU ld that we prefer.
4291 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4292 *GNU* | *'with BFD'*)
4293 test "$with_gnu_ld" != no && break
4294 ;;
4295 *)
4296 test "$with_gnu_ld" != yes && break
4297 ;;
4298 esac
4299 fi
4300 done
4301 IFS="$lt_save_ifs"
4302else
4303 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4304fi
4305fi
4306
4307LD="$lt_cv_path_LD"
4308if test -n "$LD"; then
8d138742
CE
4309 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4310$as_echo "$LD" >&6; }
d9898ee8 4311else
8d138742
CE
4312 { $as_echo "$as_me:$LINENO: result: no" >&5
4313$as_echo "no" >&6; }
d9898ee8 4314fi
8d138742
CE
4315test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4316$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
d9898ee8 4317 { (exit 1); exit 1; }; }
8d138742
CE
4318{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4319$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d9898ee8 4320if test "${lt_cv_prog_gnu_ld+set}" = set; then
8d138742 4321 $as_echo_n "(cached) " >&6
d9898ee8 4322else
4323 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4324case `$LD -v 2>&1 </dev/null` in
4325*GNU* | *'with BFD'*)
4326 lt_cv_prog_gnu_ld=yes
4327 ;;
4328*)
4329 lt_cv_prog_gnu_ld=no
4330 ;;
4331esac
4332fi
8d138742
CE
4333{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4334$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4335with_gnu_ld=$lt_cv_prog_gnu_ld
4336
4337
d9898ee8 4338
8d138742
CE
4339
4340
4341
4342
4343
4344
4345{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4346$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d9898ee8 4347if test "${lt_cv_path_NM+set}" = set; then
8d138742 4348 $as_echo_n "(cached) " >&6
d9898ee8 4349else
4350 if test -n "$NM"; then
4351 # Let the user override the test.
4352 lt_cv_path_NM="$NM"
4353else
4354 lt_nm_to_check="${ac_tool_prefix}nm"
4355 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4356 lt_nm_to_check="$lt_nm_to_check nm"
4357 fi
4358 for lt_tmp_nm in $lt_nm_to_check; do
4359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4360 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4361 IFS="$lt_save_ifs"
4362 test -z "$ac_dir" && ac_dir=.
4363 tmp_nm="$ac_dir/$lt_tmp_nm"
4364 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4365 # Check to see if the nm accepts a BSD-compat flag.
4366 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4367 # nm: unknown option "B" ignored
4368 # Tru64's nm complains that /dev/null is an invalid object file
4369 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4370 */dev/null* | *'Invalid file or object type'*)
4371 lt_cv_path_NM="$tmp_nm -B"
4372 break
4373 ;;
4374 *)
4375 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4376 */dev/null*)
4377 lt_cv_path_NM="$tmp_nm -p"
4378 break
4379 ;;
4380 *)
4381 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4382 continue # so that we can try to find one that supports BSD flags
4383 ;;
4384 esac
4385 ;;
4386 esac
4387 fi
4388 done
4389 IFS="$lt_save_ifs"
4390 done
8d138742 4391 : ${lt_cv_path_NM=no}
d9898ee8 4392fi
4393fi
8d138742
CE
4394{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4395$as_echo "$lt_cv_path_NM" >&6; }
4396if test "$lt_cv_path_NM" != "no"; then
4397 NM="$lt_cv_path_NM"
d9898ee8 4398else
8d138742
CE
4399 # Didn't find any BSD compatible name lister, look for dumpbin.
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4402 do
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4405{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4406$as_echo_n "checking for $ac_word... " >&6; }
4407if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4408 $as_echo_n "(cached) " >&6
4409else
4410 if test -n "$DUMPBIN"; then
4411 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4412else
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424done
4425done
4426IFS=$as_save_IFS
d9898ee8 4427
8d138742
CE
4428fi
4429fi
4430DUMPBIN=$ac_cv_prog_DUMPBIN
4431if test -n "$DUMPBIN"; then
4432 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4433$as_echo "$DUMPBIN" >&6; }
4434else
4435 { $as_echo "$as_me:$LINENO: result: no" >&5
4436$as_echo "no" >&6; }
4437fi
d9898ee8 4438
d9898ee8 4439
8d138742
CE
4440 test -n "$DUMPBIN" && break
4441 done
4442fi
4443if test -z "$DUMPBIN"; then
4444 ac_ct_DUMPBIN=$DUMPBIN
4445 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4446do
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448set dummy $ac_prog; ac_word=$2
4449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4450$as_echo_n "checking for $ac_word... " >&6; }
4451if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4452 $as_echo_n "(cached) " >&6
4453else
4454 if test -n "$ac_ct_DUMPBIN"; then
4455 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4456else
4457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468done
4469done
4470IFS=$as_save_IFS
d9898ee8 4471
8d138742
CE
4472fi
4473fi
4474ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4475if test -n "$ac_ct_DUMPBIN"; then
4476 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4477$as_echo "$ac_ct_DUMPBIN" >&6; }
4478else
4479 { $as_echo "$as_me:$LINENO: result: no" >&5
4480$as_echo "no" >&6; }
4481fi
d9898ee8 4482
8d138742
CE
4483
4484 test -n "$ac_ct_DUMPBIN" && break
4485done
4486
4487 if test "x$ac_ct_DUMPBIN" = x; then
4488 DUMPBIN=":"
ac40fd9e 4489 else
8d138742
CE
4490 case $cross_compiling:$ac_tool_warned in
4491yes:)
4492{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494ac_tool_warned=yes ;;
4495esac
4496 DUMPBIN=$ac_ct_DUMPBIN
ac40fd9e 4497 fi
8d138742 4498fi
d9898ee8 4499
d9898ee8 4500
8d138742
CE
4501 if test "$DUMPBIN" != ":"; then
4502 NM="$DUMPBIN"
d9898ee8 4503 fi
8d138742
CE
4504fi
4505test -z "$NM" && NM=nm
d9898ee8 4506
d9898ee8 4507
d9898ee8 4508
d9898ee8 4509
d9898ee8 4510
d9898ee8 4511
8d138742
CE
4512{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4513$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4514if test "${lt_cv_nm_interface+set}" = set; then
4515 $as_echo_n "(cached) " >&6
4516else
4517 lt_cv_nm_interface="BSD nm"
4518 echo "int some_variable = 0;" > conftest.$ac_ext
4519 (eval echo "\"\$as_me:4519: $ac_compile\"" >&5)
4520 (eval "$ac_compile" 2>conftest.err)
4521 cat conftest.err >&5
4522 (eval echo "\"\$as_me:4522: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4523 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4524 cat conftest.err >&5
4525 (eval echo "\"\$as_me:4525: output\"" >&5)
4526 cat conftest.out >&5
4527 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4528 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4529 fi
8d138742
CE
4530 rm -f conftest*
4531fi
4532{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4533$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4534
8d138742
CE
4535# find the maximum length of command line arguments
4536{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4537$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4538if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4539 $as_echo_n "(cached) " >&6
4540else
4541 i=0
4542 teststring="ABCD"
d9898ee8 4543
8d138742
CE
4544 case $build_os in
4545 msdosdjgpp*)
4546 # On DJGPP, this test can blow up pretty badly due to problems in libc
4547 # (any single argument exceeding 2000 bytes causes a buffer overrun
4548 # during glob expansion). Even if it were fixed, the result of this
4549 # check would be larger than it should be.
4550 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4551 ;;
d9898ee8 4552
8d138742
CE
4553 gnu*)
4554 # Under GNU Hurd, this test is not required because there is
4555 # no limit to the length of command line arguments.
4556 # Libtool will interpret -1 as no limit whatsoever
4557 lt_cv_sys_max_cmd_len=-1;
4558 ;;
d9898ee8 4559
8d138742
CE
4560 cygwin* | mingw* | cegcc*)
4561 # On Win9x/ME, this test blows up -- it succeeds, but takes
4562 # about 5 minutes as the teststring grows exponentially.
4563 # Worse, since 9x/ME are not pre-emptively multitasking,
4564 # you end up with a "frozen" computer, even though with patience
4565 # the test eventually succeeds (with a max line length of 256k).
4566 # Instead, let's just punt: use the minimum linelength reported by
4567 # all of the supported platforms: 8192 (on NT/2K/XP).
4568 lt_cv_sys_max_cmd_len=8192;
4569 ;;
ac40fd9e 4570
8d138742
CE
4571 amigaos*)
4572 # On AmigaOS with pdksh, this test takes hours, literally.
4573 # So we just punt and use a minimum line length of 8192.
4574 lt_cv_sys_max_cmd_len=8192;
4575 ;;
d9898ee8 4576
8d138742
CE
4577 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4578 # This has been around since 386BSD, at least. Likely further.
4579 if test -x /sbin/sysctl; then
4580 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4581 elif test -x /usr/sbin/sysctl; then
4582 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4583 else
4584 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4585 fi
4586 # And add a safety zone
4587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 4589 ;;
8d138742
CE
4590
4591 interix*)
4592 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4593 lt_cv_sys_max_cmd_len=196608
d9898ee8 4594 ;;
8d138742
CE
4595
4596 osf*)
4597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4599 # nice to cause kernel panics so lets avoid the loop below.
4600 # First set a reasonable default.
4601 lt_cv_sys_max_cmd_len=16384
4602 #
4603 if test -x /sbin/sysconfig; then
4604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4606 esac
4607 fi
d9898ee8 4608 ;;
8d138742
CE
4609 sco3.2v5*)
4610 lt_cv_sys_max_cmd_len=102400
d9898ee8 4611 ;;
8d138742
CE
4612 sysv5* | sco5v6* | sysv4.2uw2*)
4613 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4614 if test -n "$kargmax"; then
4615 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4616 else
4617 lt_cv_sys_max_cmd_len=32768
4618 fi
d9898ee8 4619 ;;
8d138742
CE
4620 *)
4621 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4622 if test -n "$lt_cv_sys_max_cmd_len"; then
4623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4625 else
4626 # Make teststring a little bigger before we do anything with it.
4627 # a 1K string should be a reasonable start.
4628 for i in 1 2 3 4 5 6 7 8 ; do
4629 teststring=$teststring$teststring
4630 done
4631 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4632 # If test is not a shell built-in, we'll probably end up computing a
4633 # maximum length that is only half of the actual maximum length, but
4634 # we can't tell.
4635 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4636 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4637 test $i != 17 # 1/2 MB should be enough
4638 do
4639 i=`expr $i + 1`
4640 teststring=$teststring$teststring
4641 done
4642 # Only check the string length outside the loop.
4643 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4644 teststring=
4645 # Add a significant safety factor because C++ compilers can tack on
4646 # massive amounts of additional arguments before passing them to the
4647 # linker. It appears as though 1/2 is a usable value.
4648 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4649 fi
d9898ee8 4650 ;;
4651 esac
d9898ee8 4652
8d138742 4653fi
d9898ee8 4654
8d138742
CE
4655if test -n $lt_cv_sys_max_cmd_len ; then
4656 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4657$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4658else
4659 { $as_echo "$as_me:$LINENO: result: none" >&5
4660$as_echo "none" >&6; }
d9898ee8 4661fi
8d138742 4662max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4663
4664
4665
4666
d9898ee8 4667
d9898ee8 4668
8d138742
CE
4669: ${CP="cp -f"}
4670: ${MV="mv -f"}
4671: ${RM="rm -f"}
d9898ee8 4672
8d138742
CE
4673{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4674$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4675# Try some XSI features
4676xsi_shell=no
4677( _lt_dummy="a/b/c"
4678 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4679 = c,a/b,, \
4680 && eval 'test $(( 1 + 1 )) -eq 2 \
4681 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4682 && xsi_shell=yes
4683{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4684$as_echo "$xsi_shell" >&6; }
d9898ee8 4685
8d138742
CE
4686
4687{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4688$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4689lt_shell_append=no
4690( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4691 >/dev/null 2>&1 \
4692 && lt_shell_append=yes
4693{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4694$as_echo "$lt_shell_append" >&6; }
4695
4696
4697if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4698 lt_unset=unset
4699else
4700 lt_unset=false
dd184caf 4701fi
d9898ee8 4702
d9898ee8 4703
8d138742
CE
4704
4705
4706
4707# test EBCDIC or ASCII
4708case `echo X|tr X '\101'` in
4709 A) # ASCII based system
4710 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4711 lt_SP2NL='tr \040 \012'
4712 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 4713 ;;
8d138742
CE
4714 *) # EBCDIC based system
4715 lt_SP2NL='tr \100 \n'
4716 lt_NL2SP='tr \r\n \100\100'
d9898ee8 4717 ;;
8d138742
CE
4718esac
4719
d9898ee8 4720
d9898ee8 4721
d9898ee8 4722
d9898ee8 4723
d9898ee8 4724
d9898ee8 4725
dd184caf 4726
d9898ee8 4727
8d138742
CE
4728{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4729$as_echo_n "checking for $LD option to reload object files... " >&6; }
4730if test "${lt_cv_ld_reload_flag+set}" = set; then
4731 $as_echo_n "(cached) " >&6
4732else
4733 lt_cv_ld_reload_flag='-r'
d9898ee8 4734fi
8d138742
CE
4735{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4736$as_echo "$lt_cv_ld_reload_flag" >&6; }
4737reload_flag=$lt_cv_ld_reload_flag
4738case $reload_flag in
4739"" | " "*) ;;
4740*) reload_flag=" $reload_flag" ;;
4741esac
4742reload_cmds='$LD$reload_flag -o $output$reload_objs'
4743case $host_os in
4744 darwin*)
4745 if test "$GCC" = yes; then
4746 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4747 else
4748 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4749 fi
4750 ;;
4751esac
d9898ee8 4752
4753
d9898ee8 4754
d9898ee8 4755
4756
8d138742
CE
4757
4758
4759
4760
4761if test -n "$ac_tool_prefix"; then
4762 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4763set dummy ${ac_tool_prefix}objdump; ac_word=$2
4764{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4765$as_echo_n "checking for $ac_word... " >&6; }
4766if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4767 $as_echo_n "(cached) " >&6
d9898ee8 4768else
8d138742
CE
4769 if test -n "$OBJDUMP"; then
4770 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
d9898ee8 4771else
8d138742
CE
4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4782 fi
4783done
4784done
4785IFS=$as_save_IFS
d9898ee8 4786
8d138742
CE
4787fi
4788fi
4789OBJDUMP=$ac_cv_prog_OBJDUMP
4790if test -n "$OBJDUMP"; then
4791 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4792$as_echo "$OBJDUMP" >&6; }
4793else
4794 { $as_echo "$as_me:$LINENO: result: no" >&5
4795$as_echo "no" >&6; }
d9898ee8 4796fi
dd184caf 4797
d9898ee8 4798
d9898ee8 4799fi
8d138742
CE
4800if test -z "$ac_cv_prog_OBJDUMP"; then
4801 ac_ct_OBJDUMP=$OBJDUMP
4802 # Extract the first word of "objdump", so it can be a program name with args.
4803set dummy objdump; ac_word=$2
4804{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4805$as_echo_n "checking for $ac_word... " >&6; }
4806if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4807 $as_echo_n "(cached) " >&6
4808else
4809 if test -n "$ac_ct_OBJDUMP"; then
4810 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4811else
4812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4822 fi
d9898ee8 4823done
8d138742
CE
4824done
4825IFS=$as_save_IFS
d9898ee8 4826
4827fi
d9898ee8 4828fi
8d138742
CE
4829ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4830if test -n "$ac_ct_OBJDUMP"; then
4831 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4832$as_echo "$ac_ct_OBJDUMP" >&6; }
d9898ee8 4833else
8d138742
CE
4834 { $as_echo "$as_me:$LINENO: result: no" >&5
4835$as_echo "no" >&6; }
d9898ee8 4836fi
dd184caf 4837
8d138742
CE
4838 if test "x$ac_ct_OBJDUMP" = x; then
4839 OBJDUMP="false"
4840 else
4841 case $cross_compiling:$ac_tool_warned in
4842yes:)
4843{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4845ac_tool_warned=yes ;;
dd184caf 4846esac
8d138742
CE
4847 OBJDUMP=$ac_ct_OBJDUMP
4848 fi
d9898ee8 4849else
8d138742 4850 OBJDUMP="$ac_cv_prog_OBJDUMP"
d9898ee8 4851fi
dd184caf 4852
8d138742 4853test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 4854
d9898ee8 4855
4856
d9898ee8 4857
d9898ee8 4858
d9898ee8 4859
dd184caf 4860
d9898ee8 4861
d9898ee8 4862
8d138742
CE
4863{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4864$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4865if test "${lt_cv_deplibs_check_method+set}" = set; then
4866 $as_echo_n "(cached) " >&6
d9898ee8 4867else
8d138742
CE
4868 lt_cv_file_magic_cmd='$MAGIC_CMD'
4869lt_cv_file_magic_test_file=
4870lt_cv_deplibs_check_method='unknown'
4871# Need to set the preceding variable on all platforms that support
4872# interlibrary dependencies.
4873# 'none' -- dependencies not supported.
4874# `unknown' -- same as none, but documents that we really don't know.
4875# 'pass_all' -- all dependencies passed with no checks.
4876# 'test_compile' -- check by making test program.
4877# 'file_magic [[regex]]' -- check by looking for files in library path
4878# which responds to the $file_magic_cmd with a given extended regex.
4879# If you have `file' or equivalent on your system and you're not sure
4880# whether `pass_all' will *always* work, you probably want this one.
d9898ee8 4881
8d138742
CE
4882case $host_os in
4883aix[4-9]*)
4884 lt_cv_deplibs_check_method=pass_all
4885 ;;
d9898ee8 4886
8d138742
CE
4887beos*)
4888 lt_cv_deplibs_check_method=pass_all
4889 ;;
d9898ee8 4890
8d138742
CE
4891bsdi[45]*)
4892 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4893 lt_cv_file_magic_cmd='/usr/bin/file -L'
4894 lt_cv_file_magic_test_file=/shlib/libc.so
4895 ;;
d9898ee8 4896
8d138742
CE
4897cygwin*)
4898 # func_win32_libid is a shell function defined in ltmain.sh
4899 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4900 lt_cv_file_magic_cmd='func_win32_libid'
4901 ;;
d9898ee8 4902
8d138742
CE
4903mingw* | pw32*)
4904 # Base MSYS/MinGW do not provide the 'file' command needed by
4905 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4906 # unless we find 'file', for example because we are cross-compiling.
4907 if ( file / ) >/dev/null 2>&1; then
4908 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4909 lt_cv_file_magic_cmd='func_win32_libid'
4910 else
4911 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4912 lt_cv_file_magic_cmd='$OBJDUMP -f'
4913 fi
4914 ;;
d9898ee8 4915
8d138742
CE
4916cegcc)
4917 # use the weaker test based on 'objdump'. See mingw*.
4918 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4919 lt_cv_file_magic_cmd='$OBJDUMP -f'
4920 ;;
d9898ee8 4921
8d138742
CE
4922darwin* | rhapsody*)
4923 lt_cv_deplibs_check_method=pass_all
4924 ;;
dd184caf 4925
8d138742
CE
4926freebsd* | dragonfly*)
4927 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4928 case $host_cpu in
4929 i*86 )
4930 # Not sure whether the presence of OpenBSD here was a mistake.
4931 # Let's accept both of them until this is cleared up.
4932 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4933 lt_cv_file_magic_cmd=/usr/bin/file
4934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4935 ;;
4936 esac
4937 else
4938 lt_cv_deplibs_check_method=pass_all
4939 fi
4940 ;;
dd184caf 4941
8d138742
CE
4942gnu*)
4943 lt_cv_deplibs_check_method=pass_all
4944 ;;
d9898ee8 4945
8d138742
CE
4946hpux10.20* | hpux11*)
4947 lt_cv_file_magic_cmd=/usr/bin/file
4948 case $host_cpu in
4949 ia64*)
4950 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4951 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4952 ;;
4953 hppa*64*)
4954 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]'
4955 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4956 ;;
4957 *)
4958 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4959 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4960 ;;
4961 esac
4962 ;;
d9898ee8 4963
8d138742
CE
4964interix[3-9]*)
4965 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4967 ;;
d9898ee8 4968
8d138742
CE
4969irix5* | irix6* | nonstopux*)
4970 case $LD in
4971 *-32|*"-32 ") libmagic=32-bit;;
4972 *-n32|*"-n32 ") libmagic=N32;;
4973 *-64|*"-64 ") libmagic=64-bit;;
4974 *) libmagic=never-match;;
4975 esac
4976 lt_cv_deplibs_check_method=pass_all
4977 ;;
d9898ee8 4978
8d138742
CE
4979# This must be Linux ELF.
4980linux* | k*bsd*-gnu)
4981 lt_cv_deplibs_check_method=pass_all
4982 ;;
d9898ee8 4983
8d138742
CE
4984netbsd*)
4985 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4987 else
4988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4989 fi
4990 ;;
d9898ee8 4991
8d138742
CE
4992newos6*)
4993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4994 lt_cv_file_magic_cmd=/usr/bin/file
4995 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4996 ;;
d9898ee8 4997
8d138742
CE
4998*nto* | *qnx*)
4999 lt_cv_deplibs_check_method=pass_all
5000 ;;
d9898ee8 5001
8d138742
CE
5002openbsd*)
5003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5005 else
5006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5007 fi
5008 ;;
d9898ee8 5009
8d138742
CE
5010osf3* | osf4* | osf5*)
5011 lt_cv_deplibs_check_method=pass_all
5012 ;;
d9898ee8 5013
8d138742
CE
5014rdos*)
5015 lt_cv_deplibs_check_method=pass_all
5016 ;;
d9898ee8 5017
8d138742
CE
5018solaris*)
5019 lt_cv_deplibs_check_method=pass_all
5020 ;;
d9898ee8 5021
8d138742
CE
5022sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5023 lt_cv_deplibs_check_method=pass_all
5024 ;;
d9898ee8 5025
8d138742
CE
5026sysv4 | sysv4.3*)
5027 case $host_vendor in
5028 motorola)
5029 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]'
5030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5031 ;;
5032 ncr)
5033 lt_cv_deplibs_check_method=pass_all
5034 ;;
5035 sequent)
5036 lt_cv_file_magic_cmd='/bin/file'
5037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5038 ;;
5039 sni)
5040 lt_cv_file_magic_cmd='/bin/file'
5041 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5042 lt_cv_file_magic_test_file=/lib/libc.so
5043 ;;
5044 siemens)
5045 lt_cv_deplibs_check_method=pass_all
5046 ;;
5047 pc)
5048 lt_cv_deplibs_check_method=pass_all
5049 ;;
5050 esac
5051 ;;
5052
5053tpf*)
5054 lt_cv_deplibs_check_method=pass_all
5055 ;;
dd184caf 5056esac
d9898ee8 5057
d9898ee8 5058fi
8d138742
CE
5059{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5060$as_echo "$lt_cv_deplibs_check_method" >&6; }
5061file_magic_cmd=$lt_cv_file_magic_cmd
5062deplibs_check_method=$lt_cv_deplibs_check_method
5063test -z "$deplibs_check_method" && deplibs_check_method=unknown
dd184caf 5064
d9898ee8 5065
d9898ee8 5066
d9898ee8 5067
5068
5069
8d138742
CE
5070
5071
5072
5073
5074
5075
5076if test -n "$ac_tool_prefix"; then
5077 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5078set dummy ${ac_tool_prefix}ar; ac_word=$2
5079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5080$as_echo_n "checking for $ac_word... " >&6; }
5081if test "${ac_cv_prog_AR+set}" = set; then
5082 $as_echo_n "(cached) " >&6
d9898ee8 5083else
8d138742
CE
5084 if test -n "$AR"; then
5085 ac_cv_prog_AR="$AR" # Let the user override the test.
d9898ee8 5086else
8d138742
CE
5087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088for as_dir in $PATH
5089do
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094 ac_cv_prog_AR="${ac_tool_prefix}ar"
5095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5097 fi
5098done
5099done
5100IFS=$as_save_IFS
d9898ee8 5101
8d138742
CE
5102fi
5103fi
5104AR=$ac_cv_prog_AR
5105if test -n "$AR"; then
5106 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5107$as_echo "$AR" >&6; }
5108else
5109 { $as_echo "$as_me:$LINENO: result: no" >&5
5110$as_echo "no" >&6; }
d9898ee8 5111fi
dd184caf 5112
d9898ee8 5113
8d138742
CE
5114fi
5115if test -z "$ac_cv_prog_AR"; then
5116 ac_ct_AR=$AR
5117 # Extract the first word of "ar", so it can be a program name with args.
5118set dummy ar; ac_word=$2
5119{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5120$as_echo_n "checking for $ac_word... " >&6; }
5121if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5122 $as_echo_n "(cached) " >&6
d9898ee8 5123else
8d138742
CE
5124 if test -n "$ac_ct_AR"; then
5125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5126else
5127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_ac_ct_AR="ar"
5135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5137 fi
5138done
5139done
5140IFS=$as_save_IFS
d9898ee8 5141
8d138742
CE
5142fi
5143fi
5144ac_ct_AR=$ac_cv_prog_ac_ct_AR
5145if test -n "$ac_ct_AR"; then
5146 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5147$as_echo "$ac_ct_AR" >&6; }
5148else
5149 { $as_echo "$as_me:$LINENO: result: no" >&5
5150$as_echo "no" >&6; }
d9898ee8 5151fi
dd184caf 5152
8d138742
CE
5153 if test "x$ac_ct_AR" = x; then
5154 AR="false"
5155 else
5156 case $cross_compiling:$ac_tool_warned in
5157yes:)
5158{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160ac_tool_warned=yes ;;
d9898ee8 5161esac
8d138742
CE
5162 AR=$ac_ct_AR
5163 fi
d9898ee8 5164else
8d138742 5165 AR="$ac_cv_prog_AR"
d9898ee8 5166fi
d9898ee8 5167
8d138742
CE
5168test -z "$AR" && AR=ar
5169test -z "$AR_FLAGS" && AR_FLAGS=cru
d9898ee8 5170
d9898ee8 5171
d9898ee8 5172
8d138742
CE
5173
5174
5175
5176
5177
5178
5179
5180
5181if test -n "$ac_tool_prefix"; then
5182 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5183set dummy ${ac_tool_prefix}strip; ac_word=$2
5184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5185$as_echo_n "checking for $ac_word... " >&6; }
5186if test "${ac_cv_prog_STRIP+set}" = set; then
5187 $as_echo_n "(cached) " >&6
d9898ee8 5188else
8d138742
CE
5189 if test -n "$STRIP"; then
5190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9898ee8 5191else
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5201 break 2
5202 fi
5203done
5204done
dd184caf 5205IFS=$as_save_IFS
d9898ee8 5206
5207fi
5208fi
8d138742
CE
5209STRIP=$ac_cv_prog_STRIP
5210if test -n "$STRIP"; then
5211 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5212$as_echo "$STRIP" >&6; }
d9898ee8 5213else
8d138742
CE
5214 { $as_echo "$as_me:$LINENO: result: no" >&5
5215$as_echo "no" >&6; }
d9898ee8 5216fi
5217
dd184caf 5218
d9898ee8 5219fi
8d138742
CE
5220if test -z "$ac_cv_prog_STRIP"; then
5221 ac_ct_STRIP=$STRIP
5222 # Extract the first word of "strip", so it can be a program name with args.
5223set dummy strip; ac_word=$2
5224{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5225$as_echo_n "checking for $ac_word... " >&6; }
5226if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5227 $as_echo_n "(cached) " >&6
d9898ee8 5228else
8d138742
CE
5229 if test -n "$ac_ct_STRIP"; then
5230 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d9898ee8 5231else
5232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH
5234do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5239 ac_cv_prog_ac_ct_STRIP="strip"
5240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5241 break 2
5242 fi
5243done
5244done
dd184caf 5245IFS=$as_save_IFS
d9898ee8 5246
5247fi
5248fi
8d138742
CE
5249ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5250if test -n "$ac_ct_STRIP"; then
5251 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5252$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 5253else
8d138742
CE
5254 { $as_echo "$as_me:$LINENO: result: no" >&5
5255$as_echo "no" >&6; }
d9898ee8 5256fi
5257
8d138742
CE
5258 if test "x$ac_ct_STRIP" = x; then
5259 STRIP=":"
dd184caf 5260 else
5261 case $cross_compiling:$ac_tool_warned in
5262yes:)
8d138742
CE
5263{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5265ac_tool_warned=yes ;;
5266esac
8d138742 5267 STRIP=$ac_ct_STRIP
dd184caf 5268 fi
8d138742
CE
5269else
5270 STRIP="$ac_cv_prog_STRIP"
dd184caf 5271fi
d9898ee8 5272
8d138742 5273test -z "$STRIP" && STRIP=:
d9898ee8 5274
d9898ee8 5275
d9898ee8 5276
dd184caf 5277
d9898ee8 5278
d9898ee8 5279
8d138742
CE
5280if test -n "$ac_tool_prefix"; then
5281 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5282set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5283{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5284$as_echo_n "checking for $ac_word... " >&6; }
5285if test "${ac_cv_prog_RANLIB+set}" = set; then
5286 $as_echo_n "(cached) " >&6
d9898ee8 5287else
8d138742
CE
5288 if test -n "$RANLIB"; then
5289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
d9898ee8 5290else
8d138742
CE
5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5301 fi
5302done
5303done
5304IFS=$as_save_IFS
dd184caf 5305
8d138742
CE
5306fi
5307fi
5308RANLIB=$ac_cv_prog_RANLIB
5309if test -n "$RANLIB"; then
5310 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5311$as_echo "$RANLIB" >&6; }
d9898ee8 5312else
8d138742
CE
5313 { $as_echo "$as_me:$LINENO: result: no" >&5
5314$as_echo "no" >&6; }
5315fi
d9898ee8 5316
dd184caf 5317
d9898ee8 5318fi
8d138742
CE
5319if test -z "$ac_cv_prog_RANLIB"; then
5320 ac_ct_RANLIB=$RANLIB
5321 # Extract the first word of "ranlib", so it can be a program name with args.
5322set dummy ranlib; ac_word=$2
5323{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5324$as_echo_n "checking for $ac_word... " >&6; }
5325if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5326 $as_echo_n "(cached) " >&6
5327else
5328 if test -n "$ac_ct_RANLIB"; then
5329 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5330else
5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338 ac_cv_prog_ac_ct_RANLIB="ranlib"
5339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5341 fi
5342done
5343done
5344IFS=$as_save_IFS
dd184caf 5345
dd184caf 5346fi
8d138742
CE
5347fi
5348ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5349if test -n "$ac_ct_RANLIB"; then
5350 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5351$as_echo "$ac_ct_RANLIB" >&6; }
5352else
5353 { $as_echo "$as_me:$LINENO: result: no" >&5
5354$as_echo "no" >&6; }
d9898ee8 5355fi
5356
8d138742
CE
5357 if test "x$ac_ct_RANLIB" = x; then
5358 RANLIB=":"
dd184caf 5359 else
8d138742
CE
5360 case $cross_compiling:$ac_tool_warned in
5361yes:)
5362{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5364ac_tool_warned=yes ;;
5365esac
5366 RANLIB=$ac_ct_RANLIB
dd184caf 5367 fi
5368else
8d138742 5369 RANLIB="$ac_cv_prog_RANLIB"
dd184caf 5370fi
d9898ee8 5371
8d138742 5372test -z "$RANLIB" && RANLIB=:
d9898ee8 5373
d9898ee8 5374
d9898ee8 5375
d9898ee8 5376
d9898ee8 5377
d9898ee8 5378
8d138742
CE
5379# Determine commands to create old-style static archives.
5380old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5381old_postinstall_cmds='chmod 644 $oldlib'
5382old_postuninstall_cmds=
5383
5384if test -n "$RANLIB"; then
5385 case $host_os in
5386 openbsd*)
5387 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5388 ;;
5389 *)
5390 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5391 ;;
5392 esac
5393 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d9898ee8 5394fi
5395
5396
5397
5398
dd184caf 5399
d9898ee8 5400
d9898ee8 5401
dd184caf 5402
d9898ee8 5403
d9898ee8 5404
d9898ee8 5405
d9898ee8 5406
dd184caf 5407
d9898ee8 5408
d9898ee8 5409
dd184caf 5410
d9898ee8 5411
d9898ee8 5412
d9898ee8 5413
d9898ee8 5414
5415
d9898ee8 5416
d9898ee8 5417
dd184caf 5418
d9898ee8 5419
d9898ee8 5420
dd184caf 5421
d9898ee8 5422
d9898ee8 5423
5424
d9898ee8 5425
d9898ee8 5426
d9898ee8 5427
d9898ee8 5428
8d138742
CE
5429# If no C compiler was specified, use CC.
5430LTCC=${LTCC-"$CC"}
d9898ee8 5431
8d138742
CE
5432# If no C compiler flags were specified, use CFLAGS.
5433LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5434
8d138742
CE
5435# Allow CC to be a program name with arguments.
5436compiler=$CC
d9898ee8 5437
ac40fd9e 5438
d9898ee8 5439# Check for command to grab the raw symbol name followed by C symbol from nm.
8d138742
CE
5440{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5441$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d9898ee8 5442if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8d138742 5443 $as_echo_n "(cached) " >&6
d9898ee8 5444else
5445
5446# These are sane defaults that work on at least a few old systems.
5447# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5448
5449# Character class describing NM global symbol codes.
5450symcode='[BCDEGRST]'
5451
5452# Regexp to match symbols that can be accessed directly from C.
5453sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5454
d9898ee8 5455# Define system-specific variables.
5456case $host_os in
5457aix*)
5458 symcode='[BCDT]'
5459 ;;
8d138742 5460cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 5461 symcode='[ABCDGISTW]'
5462 ;;
8d138742 5463hpux*)
d9898ee8 5464 if test "$host_cpu" = ia64; then
5465 symcode='[ABCDEGRST]'
5466 fi
d9898ee8 5467 ;;
5468irix* | nonstopux*)
5469 symcode='[BCDEGRST]'
5470 ;;
5471osf*)
5472 symcode='[BCDEGQRST]'
5473 ;;
5474solaris*)
5475 symcode='[BDRT]'
5476 ;;
5477sco3.2v5*)
5478 symcode='[DT]'
5479 ;;
5480sysv4.2uw2*)
5481 symcode='[DT]'
5482 ;;
5483sysv5* | sco5v6* | unixware* | OpenUNIX*)
5484 symcode='[ABDT]'
5485 ;;
5486sysv4)
5487 symcode='[DFNSTU]'
5488 ;;
5489esac
5490
8d138742
CE
5491# If we're using GNU nm, then use its standard symbol codes.
5492case `$NM -V 2>&1` in
5493*GNU* | *'with BFD'*)
5494 symcode='[ABCDGIRSTW]' ;;
5495esac
5496
5497# Transform an extracted symbol line into a proper C declaration.
5498# Some systems (esp. on ia64) link data and code symbols differently,
5499# so use this general approach.
5500lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5501
5502# Transform an extracted symbol line into symbol name and symbol address
5503lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5504lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5505
d9898ee8 5506# Handle CRLF in mingw tool chain
5507opt_cr=
5508case $build_os in
5509mingw*)
8d138742 5510 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
d9898ee8 5511 ;;
5512esac
5513
8d138742 5514# Try without a prefix underscore, then with it.
d9898ee8 5515for ac_symprfx in "" "_"; do
5516
5517 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5518 symxfrm="\\1 $ac_symprfx\\2 \\2"
5519
5520 # Write the raw and C identifiers.
8d138742
CE
5521 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5522 # Fake it for dumpbin and say T for any non-static function
5523 # and D for any global variable.
5524 # Also find C++ and __fastcall symbols from MSVC++,
5525 # which start with @ or ?.
5526 lt_cv_sys_global_symbol_pipe="$AWK '"\
5527" {last_section=section; section=\$ 3};"\
5528" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5529" \$ 0!~/External *\|/{next};"\
5530" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5531" {if(hide[section]) next};"\
5532" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5533" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5534" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5535" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5536" ' prfx=^$ac_symprfx"
5537 else
5538 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5539 fi
d9898ee8 5540
5541 # Check to see that the pipe works correctly.
5542 pipe_works=no
5543
5544 rm -f conftest*
8d138742 5545 cat > conftest.$ac_ext <<_LT_EOF
d9898ee8 5546#ifdef __cplusplus
5547extern "C" {
5548#endif
5549char nm_test_var;
8d138742
CE
5550void nm_test_func(void);
5551void nm_test_func(void){}
d9898ee8 5552#ifdef __cplusplus
5553}
5554#endif
5555int main(){nm_test_var='a';nm_test_func();return(0);}
8d138742 5556_LT_EOF
d9898ee8 5557
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>&5
5560 ac_status=$?
8d138742 5561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 5562 (exit $ac_status); }; then
5563 # Now try to grab the symbols.
5564 nlist=conftest.nm
5565 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5566 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5567 ac_status=$?
8d138742 5568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 5569 (exit $ac_status); } && test -s "$nlist"; then
5570 # Try sorting and uniquifying the output.
5571 if sort "$nlist" | uniq > "$nlist"T; then
5572 mv -f "$nlist"T "$nlist"
5573 else
5574 rm -f "$nlist"T
5575 fi
5576
5577 # Make sure that we snagged all the symbols we need.
8d138742
CE
5578 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5579 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5580 cat <<_LT_EOF > conftest.$ac_ext
d9898ee8 5581#ifdef __cplusplus
5582extern "C" {
5583#endif
5584
8d138742 5585_LT_EOF
d9898ee8 5586 # Now generate the symbol file.
8d138742 5587 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 5588
8d138742 5589 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 5590
8d138742 5591/* The mapping between symbol names and symbols. */
d9898ee8 5592const struct {
5593 const char *name;
8d138742 5594 void *address;
d9898ee8 5595}
8d138742 5596lt__PROGRAM__LTX_preloaded_symbols[] =
d9898ee8 5597{
8d138742
CE
5598 { "@PROGRAM@", (void *) 0 },
5599_LT_EOF
5600 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5601 cat <<\_LT_EOF >> conftest.$ac_ext
5602 {0, (void *) 0}
d9898ee8 5603};
5604
8d138742
CE
5605/* This works around a problem in FreeBSD linker */
5606#ifdef FREEBSD_WORKAROUND
5607static const void *lt_preloaded_setup() {
5608 return lt__PROGRAM__LTX_preloaded_symbols;
5609}
5610#endif
5611
d9898ee8 5612#ifdef __cplusplus
5613}
5614#endif
8d138742 5615_LT_EOF
d9898ee8 5616 # Now try linking the two files.
5617 mv conftest.$ac_objext conftstm.$ac_objext
5618 lt_save_LIBS="$LIBS"
5619 lt_save_CFLAGS="$CFLAGS"
5620 LIBS="conftstm.$ac_objext"
5621 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5623 (eval $ac_link) 2>&5
5624 ac_status=$?
8d138742 5625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 5626 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5627 pipe_works=yes
5628 fi
5629 LIBS="$lt_save_LIBS"
5630 CFLAGS="$lt_save_CFLAGS"
5631 else
5632 echo "cannot find nm_test_func in $nlist" >&5
5633 fi
5634 else
5635 echo "cannot find nm_test_var in $nlist" >&5
5636 fi
5637 else
5638 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5639 fi
5640 else
5641 echo "$progname: failed program was:" >&5
5642 cat conftest.$ac_ext >&5
5643 fi
8d138742 5644 rm -rf conftest* conftst*
d9898ee8 5645
5646 # Do not use the global_symbol_pipe unless it works.
5647 if test "$pipe_works" = yes; then
5648 break
5649 else
5650 lt_cv_sys_global_symbol_pipe=
5651 fi
5652done
5653
5654fi
5655
5656if test -z "$lt_cv_sys_global_symbol_pipe"; then
5657 lt_cv_sys_global_symbol_to_cdecl=
5658fi
5659if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8d138742
CE
5660 { $as_echo "$as_me:$LINENO: result: failed" >&5
5661$as_echo "failed" >&6; }
d9898ee8 5662else
8d138742
CE
5663 { $as_echo "$as_me:$LINENO: result: ok" >&5
5664$as_echo "ok" >&6; }
d9898ee8 5665fi
5666
d9898ee8 5667
5668
5669
5670
5671
d9898ee8 5672
d9898ee8 5673
d9898ee8 5674
d9898ee8 5675
d9898ee8 5676
d9898ee8 5677
d9898ee8 5678
d9898ee8 5679
d9898ee8 5680
d9898ee8 5681
dd184caf 5682
8d138742
CE
5683
5684
5685
5686
5687
5688
5689# Check whether --enable-libtool-lock was given.
5690if test "${enable_libtool_lock+set}" = set; then
5691 enableval=$enable_libtool_lock;
d9898ee8 5692fi
8d138742
CE
5693
5694test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5695
5696# Some flags need to be propagated to the compiler or linker for good
5697# libtool support.
5698case $host in
5699ia64-*-hpux*)
5700 # Find out which ABI we are using.
5701 echo 'int i;' > conftest.$ac_ext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>&5
5704 ac_status=$?
5705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; then
5707 case `/usr/bin/file conftest.$ac_objext` in
5708 *ELF-32*)
5709 HPUX_IA64_MODE="32"
5710 ;;
5711 *ELF-64*)
5712 HPUX_IA64_MODE="64"
5713 ;;
5714 esac
5715 fi
5716 rm -rf conftest*
5717 ;;
5718*-*-irix6*)
5719 # Find out which ABI we are using.
5720 echo '#line 5720 "configure"' > conftest.$ac_ext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722 (eval $ac_compile) 2>&5
5723 ac_status=$?
5724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; then
5726 if test "$lt_cv_prog_gnu_ld" = yes; then
5727 case `/usr/bin/file conftest.$ac_objext` in
5728 *32-bit*)
5729 LD="${LD-ld} -melf32bsmip"
5730 ;;
5731 *N32*)
5732 LD="${LD-ld} -melf32bmipn32"
5733 ;;
5734 *64-bit*)
5735 LD="${LD-ld} -melf64bmip"
5736 ;;
5737 esac
5738 else
5739 case `/usr/bin/file conftest.$ac_objext` in
5740 *32-bit*)
5741 LD="${LD-ld} -32"
5742 ;;
5743 *N32*)
5744 LD="${LD-ld} -n32"
5745 ;;
5746 *64-bit*)
5747 LD="${LD-ld} -64"
5748 ;;
5749 esac
5750 fi
5751 fi
5752 rm -rf conftest*
5753 ;;
5754
5755x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5756s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5757 # Find out which ABI we are using.
5758 echo 'int i;' > conftest.$ac_ext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>&5
5761 ac_status=$?
5762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; then
5764 case `/usr/bin/file conftest.o` in
5765 *32-bit*)
5766 case $host in
5767 x86_64-*kfreebsd*-gnu)
5768 LD="${LD-ld} -m elf_i386_fbsd"
5769 ;;
5770 x86_64-*linux*)
5771 LD="${LD-ld} -m elf_i386"
5772 ;;
5773 ppc64-*linux*|powerpc64-*linux*)
5774 LD="${LD-ld} -m elf32ppclinux"
5775 ;;
5776 s390x-*linux*)
5777 LD="${LD-ld} -m elf_s390"
5778 ;;
5779 sparc64-*linux*)
5780 LD="${LD-ld} -m elf32_sparc"
5781 ;;
5782 esac
5783 ;;
5784 *64-bit*)
5785 case $host in
5786 x86_64-*kfreebsd*-gnu)
5787 LD="${LD-ld} -m elf_x86_64_fbsd"
5788 ;;
5789 x86_64-*linux*)
5790 LD="${LD-ld} -m elf_x86_64"
5791 ;;
5792 ppc*-*linux*|powerpc*-*linux*)
5793 LD="${LD-ld} -m elf64ppc"
5794 ;;
5795 s390*-*linux*|s390*-*tpf*)
5796 LD="${LD-ld} -m elf64_s390"
5797 ;;
5798 sparc*-*linux*)
5799 LD="${LD-ld} -m elf64_sparc"
5800 ;;
5801 esac
5802 ;;
5803 esac
5804 fi
5805 rm -rf conftest*
5806 ;;
5807
5808*-*-sco3.2v5*)
5809 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5810 SAVE_CFLAGS="$CFLAGS"
5811 CFLAGS="$CFLAGS -belf"
5812 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5813$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5814if test "${lt_cv_cc_needs_belf+set}" = set; then
5815 $as_echo_n "(cached) " >&6
d9898ee8 5816else
8d138742
CE
5817 ac_ext=c
5818ac_cpp='$CPP $CPPFLAGS'
5819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821ac_compiler_gnu=$ac_cv_c_compiler_gnu
5822
5823 cat >conftest.$ac_ext <<_ACEOF
5824/* confdefs.h. */
5825_ACEOF
5826cat confdefs.h >>conftest.$ac_ext
5827cat >>conftest.$ac_ext <<_ACEOF
5828/* end confdefs.h. */
5829
5830int
5831main ()
5832{
5833
5834 ;
5835 return 0;
5836}
5837_ACEOF
5838rm -f conftest.$ac_objext conftest$ac_exeext
5839if { (ac_try="$ac_link"
5840case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843esac
5844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5845$as_echo "$ac_try_echo") >&5
5846 (eval "$ac_link") 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } && {
5853 test -z "$ac_c_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest$ac_exeext && {
5856 test "$cross_compiling" = yes ||
5857 $as_test_x conftest$ac_exeext
5858 }; then
5859 lt_cv_cc_needs_belf=yes
5860else
5861 $as_echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 lt_cv_cc_needs_belf=no
5865fi
5866
5867rm -rf conftest.dSYM
5868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5869 conftest$ac_exeext conftest.$ac_ext
5870 ac_ext=c
5871ac_cpp='$CPP $CPPFLAGS'
5872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874ac_compiler_gnu=$ac_cv_c_compiler_gnu
5875
5876fi
5877{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5878$as_echo "$lt_cv_cc_needs_belf" >&6; }
5879 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5880 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5881 CFLAGS="$SAVE_CFLAGS"
5882 fi
5883 ;;
5884sparc*-*solaris*)
5885 # Find out which ABI we are using.
5886 echo 'int i;' > conftest.$ac_ext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888 (eval $ac_compile) 2>&5
5889 ac_status=$?
5890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; then
5892 case `/usr/bin/file conftest.o` in
5893 *64-bit*)
5894 case $lt_cv_prog_gnu_ld in
5895 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5896 *)
5897 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5898 LD="${LD-ld} -64"
5899 fi
5900 ;;
5901 esac
5902 ;;
5903 esac
5904 fi
5905 rm -rf conftest*
5906 ;;
5907esac
5908
5909need_locks="$enable_libtool_lock"
5910
5911
5912 case $host_os in
5913 rhapsody* | darwin*)
5914 if test -n "$ac_tool_prefix"; then
5915 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5916set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5917{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5918$as_echo_n "checking for $ac_word... " >&6; }
5919if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5920 $as_echo_n "(cached) " >&6
5921else
5922 if test -n "$DSYMUTIL"; then
5923 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
d9898ee8 5924else
5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5932 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5934 break 2
5935 fi
5936done
5937done
dd184caf 5938IFS=$as_save_IFS
d9898ee8 5939
d9898ee8 5940fi
5941fi
8d138742
CE
5942DSYMUTIL=$ac_cv_prog_DSYMUTIL
5943if test -n "$DSYMUTIL"; then
5944 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5945$as_echo "$DSYMUTIL" >&6; }
d9898ee8 5946else
8d138742
CE
5947 { $as_echo "$as_me:$LINENO: result: no" >&5
5948$as_echo "no" >&6; }
d9898ee8 5949fi
5950
8d138742
CE
5951
5952fi
5953if test -z "$ac_cv_prog_DSYMUTIL"; then
5954 ac_ct_DSYMUTIL=$DSYMUTIL
5955 # Extract the first word of "dsymutil", so it can be a program name with args.
5956set dummy dsymutil; ac_word=$2
5957{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5958$as_echo_n "checking for $ac_word... " >&6; }
5959if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5960 $as_echo_n "(cached) " >&6
5961else
5962 if test -n "$ac_ct_DSYMUTIL"; then
5963 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5973 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976done
5977done
5978IFS=$as_save_IFS
5979
5980fi
5981fi
5982ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5983if test -n "$ac_ct_DSYMUTIL"; then
5984 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5985$as_echo "$ac_ct_DSYMUTIL" >&6; }
5986else
5987 { $as_echo "$as_me:$LINENO: result: no" >&5
5988$as_echo "no" >&6; }
5989fi
5990
5991 if test "x$ac_ct_DSYMUTIL" = x; then
5992 DSYMUTIL=":"
dd184caf 5993 else
5994 case $cross_compiling:$ac_tool_warned in
5995yes:)
8d138742
CE
5996{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5998ac_tool_warned=yes ;;
5999esac
8d138742 6000 DSYMUTIL=$ac_ct_DSYMUTIL
dd184caf 6001 fi
d9898ee8 6002else
8d138742 6003 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 6004fi
6005
8d138742
CE
6006 if test -n "$ac_tool_prefix"; then
6007 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6008set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6009{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6010$as_echo_n "checking for $ac_word... " >&6; }
6011if test "${ac_cv_prog_NMEDIT+set}" = set; then
6012 $as_echo_n "(cached) " >&6
d9898ee8 6013else
8d138742
CE
6014 if test -n "$NMEDIT"; then
6015 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d9898ee8 6016else
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6024 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6026 break 2
6027 fi
6028done
6029done
dd184caf 6030IFS=$as_save_IFS
d9898ee8 6031
6032fi
6033fi
8d138742
CE
6034NMEDIT=$ac_cv_prog_NMEDIT
6035if test -n "$NMEDIT"; then
6036 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6037$as_echo "$NMEDIT" >&6; }
d9898ee8 6038else
8d138742
CE
6039 { $as_echo "$as_me:$LINENO: result: no" >&5
6040$as_echo "no" >&6; }
d9898ee8 6041fi
6042
dd184caf 6043
d9898ee8 6044fi
8d138742
CE
6045if test -z "$ac_cv_prog_NMEDIT"; then
6046 ac_ct_NMEDIT=$NMEDIT
6047 # Extract the first word of "nmedit", so it can be a program name with args.
6048set dummy nmedit; ac_word=$2
6049{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6050$as_echo_n "checking for $ac_word... " >&6; }
6051if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6052 $as_echo_n "(cached) " >&6
d9898ee8 6053else
8d138742
CE
6054 if test -n "$ac_ct_NMEDIT"; then
6055 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d9898ee8 6056else
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6064 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6066 break 2
6067 fi
6068done
6069done
dd184caf 6070IFS=$as_save_IFS
d9898ee8 6071
d9898ee8 6072fi
6073fi
8d138742
CE
6074ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6075if test -n "$ac_ct_NMEDIT"; then
6076 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6077$as_echo "$ac_ct_NMEDIT" >&6; }
d9898ee8 6078else
8d138742
CE
6079 { $as_echo "$as_me:$LINENO: result: no" >&5
6080$as_echo "no" >&6; }
d9898ee8 6081fi
6082
8d138742
CE
6083 if test "x$ac_ct_NMEDIT" = x; then
6084 NMEDIT=":"
dd184caf 6085 else
6086 case $cross_compiling:$ac_tool_warned in
6087yes:)
8d138742
CE
6088{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6090ac_tool_warned=yes ;;
6091esac
8d138742 6092 NMEDIT=$ac_ct_NMEDIT
dd184caf 6093 fi
d9898ee8 6094else
8d138742 6095 NMEDIT="$ac_cv_prog_NMEDIT"
d9898ee8 6096fi
6097
8d138742
CE
6098 if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6100set dummy ${ac_tool_prefix}lipo; ac_word=$2
6101{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6102$as_echo_n "checking for $ac_word... " >&6; }
6103if test "${ac_cv_prog_LIPO+set}" = set; then
6104 $as_echo_n "(cached) " >&6
d9898ee8 6105else
8d138742
CE
6106 if test -n "$LIPO"; then
6107 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d9898ee8 6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6116 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6117 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6118 break 2
6119 fi
6120done
6121done
dd184caf 6122IFS=$as_save_IFS
d9898ee8 6123
6124fi
6125fi
8d138742
CE
6126LIPO=$ac_cv_prog_LIPO
6127if test -n "$LIPO"; then
6128 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6129$as_echo "$LIPO" >&6; }
d9898ee8 6130else
8d138742
CE
6131 { $as_echo "$as_me:$LINENO: result: no" >&5
6132$as_echo "no" >&6; }
d9898ee8 6133fi
6134
dd184caf 6135
d9898ee8 6136fi
8d138742
CE
6137if test -z "$ac_cv_prog_LIPO"; then
6138 ac_ct_LIPO=$LIPO
6139 # Extract the first word of "lipo", so it can be a program name with args.
6140set dummy lipo; ac_word=$2
6141{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6142$as_echo_n "checking for $ac_word... " >&6; }
6143if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6144 $as_echo_n "(cached) " >&6
d9898ee8 6145else
8d138742
CE
6146 if test -n "$ac_ct_LIPO"; then
6147 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d9898ee8 6148else
6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150for as_dir in $PATH
6151do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6156 ac_cv_prog_ac_ct_LIPO="lipo"
6157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6158 break 2
6159 fi
6160done
6161done
dd184caf 6162IFS=$as_save_IFS
d9898ee8 6163
d9898ee8 6164fi
6165fi
8d138742
CE
6166ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6167if test -n "$ac_ct_LIPO"; then
6168 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6169$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 6170else
8d138742
CE
6171 { $as_echo "$as_me:$LINENO: result: no" >&5
6172$as_echo "no" >&6; }
d9898ee8 6173fi
6174
8d138742
CE
6175 if test "x$ac_ct_LIPO" = x; then
6176 LIPO=":"
dd184caf 6177 else
6178 case $cross_compiling:$ac_tool_warned in
6179yes:)
8d138742
CE
6180{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6182ac_tool_warned=yes ;;
6183esac
8d138742 6184 LIPO=$ac_ct_LIPO
dd184caf 6185 fi
d9898ee8 6186else
8d138742 6187 LIPO="$ac_cv_prog_LIPO"
d9898ee8 6188fi
6189
8d138742
CE
6190 if test -n "$ac_tool_prefix"; then
6191 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6192set dummy ${ac_tool_prefix}otool; ac_word=$2
6193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6194$as_echo_n "checking for $ac_word... " >&6; }
6195if test "${ac_cv_prog_OTOOL+set}" = set; then
6196 $as_echo_n "(cached) " >&6
6197else
6198 if test -n "$OTOOL"; then
6199 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212done
6213done
6214IFS=$as_save_IFS
d9898ee8 6215
8d138742
CE
6216fi
6217fi
6218OTOOL=$ac_cv_prog_OTOOL
6219if test -n "$OTOOL"; then
6220 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6221$as_echo "$OTOOL" >&6; }
6222else
6223 { $as_echo "$as_me:$LINENO: result: no" >&5
6224$as_echo "no" >&6; }
6225fi
d9898ee8 6226
d9898ee8 6227
d9898ee8 6228fi
8d138742
CE
6229if test -z "$ac_cv_prog_OTOOL"; then
6230 ac_ct_OTOOL=$OTOOL
6231 # Extract the first word of "otool", so it can be a program name with args.
6232set dummy otool; ac_word=$2
6233{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6234$as_echo_n "checking for $ac_word... " >&6; }
6235if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6236 $as_echo_n "(cached) " >&6
6237else
6238 if test -n "$ac_ct_OTOOL"; then
6239 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_prog_ac_ct_OTOOL="otool"
6249 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
d9898ee8 6252done
8d138742
CE
6253done
6254IFS=$as_save_IFS
d9898ee8 6255
8d138742
CE
6256fi
6257fi
6258ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6259if test -n "$ac_ct_OTOOL"; then
6260 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6261$as_echo "$ac_ct_OTOOL" >&6; }
d9898ee8 6262else
8d138742
CE
6263 { $as_echo "$as_me:$LINENO: result: no" >&5
6264$as_echo "no" >&6; }
6265fi
d9898ee8 6266
8d138742
CE
6267 if test "x$ac_ct_OTOOL" = x; then
6268 OTOOL=":"
6269 else
6270 case $cross_compiling:$ac_tool_warned in
6271yes:)
6272{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274ac_tool_warned=yes ;;
d9898ee8 6275esac
8d138742
CE
6276 OTOOL=$ac_ct_OTOOL
6277 fi
6278else
6279 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 6280fi
6281
8d138742
CE
6282 if test -n "$ac_tool_prefix"; then
6283 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6284set dummy ${ac_tool_prefix}otool64; ac_word=$2
6285{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6286$as_echo_n "checking for $ac_word... " >&6; }
6287if test "${ac_cv_prog_OTOOL64+set}" = set; then
6288 $as_echo_n "(cached) " >&6
d9898ee8 6289else
8d138742
CE
6290 if test -n "$OTOOL64"; then
6291 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304done
6305done
6306IFS=$as_save_IFS
d9898ee8 6307
8d138742
CE
6308fi
6309fi
6310OTOOL64=$ac_cv_prog_OTOOL64
6311if test -n "$OTOOL64"; then
6312 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6313$as_echo "$OTOOL64" >&6; }
d9898ee8 6314else
8d138742
CE
6315 { $as_echo "$as_me:$LINENO: result: no" >&5
6316$as_echo "no" >&6; }
6317fi
d9898ee8 6318
d9898ee8 6319
d9898ee8 6320fi
8d138742
CE
6321if test -z "$ac_cv_prog_OTOOL64"; then
6322 ac_ct_OTOOL64=$OTOOL64
6323 # Extract the first word of "otool64", so it can be a program name with args.
6324set dummy otool64; ac_word=$2
6325{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6326$as_echo_n "checking for $ac_word... " >&6; }
6327if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6328 $as_echo_n "(cached) " >&6
6329else
6330 if test -n "$ac_ct_OTOOL64"; then
6331 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_prog_ac_ct_OTOOL64="otool64"
6341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344done
6345done
6346IFS=$as_save_IFS
d9898ee8 6347
8d138742
CE
6348fi
6349fi
6350ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6351if test -n "$ac_ct_OTOOL64"; then
6352 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6353$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 6354else
8d138742
CE
6355 { $as_echo "$as_me:$LINENO: result: no" >&5
6356$as_echo "no" >&6; }
d9898ee8 6357fi
6358
8d138742
CE
6359 if test "x$ac_ct_OTOOL64" = x; then
6360 OTOOL64=":"
d9898ee8 6361 else
8d138742
CE
6362 case $cross_compiling:$ac_tool_warned in
6363yes:)
6364{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366ac_tool_warned=yes ;;
6367esac
6368 OTOOL64=$ac_ct_OTOOL64
d9898ee8 6369 fi
8d138742
CE
6370else
6371 OTOOL64="$ac_cv_prog_OTOOL64"
d9898ee8 6372fi
6373
d9898ee8 6374
d9898ee8 6375
d9898ee8 6376
d9898ee8 6377
6378
dd184caf 6379
d9898ee8 6380
d9898ee8 6381
6382
d9898ee8 6383
d9898ee8 6384
d9898ee8 6385
d9898ee8 6386
6387
d9898ee8 6388
d9898ee8 6389
d9898ee8 6390
6391
d9898ee8 6392
d9898ee8 6393
6394
6395
d9898ee8 6396
d9898ee8 6397
6398
8d138742
CE
6399
6400 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6401$as_echo_n "checking for -single_module linker flag... " >&6; }
6402if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6403 $as_echo_n "(cached) " >&6
d9898ee8 6404else
8d138742
CE
6405 lt_cv_apple_cc_single_mod=no
6406 if test -z "${LT_MULTI_MODULE}"; then
6407 # By default we will add the -single_module flag. You can override
6408 # by either setting the environment variable LT_MULTI_MODULE
6409 # non-empty at configure time, or by adding -multi_module to the
6410 # link flags.
6411 rm -rf libconftest.dylib*
6412 echo "int foo(void){return 1;}" > conftest.c
6413 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6414-dynamiclib -Wl,-single_module conftest.c" >&5
6415 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6416 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6417 _lt_result=$?
6418 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6419 lt_cv_apple_cc_single_mod=yes
6420 else
6421 cat conftest.err >&5
6422 fi
6423 rm -rf libconftest.dylib*
6424 rm -f conftest.*
6425 fi
d9898ee8 6426fi
8d138742
CE
6427{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6428$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6429 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6430$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6431if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6432 $as_echo_n "(cached) " >&6
6433else
6434 lt_cv_ld_exported_symbols_list=no
6435 save_LDFLAGS=$LDFLAGS
6436 echo "_main" > conftest.sym
6437 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6438 cat >conftest.$ac_ext <<_ACEOF
6439/* confdefs.h. */
6440_ACEOF
6441cat confdefs.h >>conftest.$ac_ext
6442cat >>conftest.$ac_ext <<_ACEOF
6443/* end confdefs.h. */
d9898ee8 6444
8d138742
CE
6445int
6446main ()
6447{
6448
6449 ;
6450 return 0;
6451}
6452_ACEOF
6453rm -f conftest.$ac_objext conftest$ac_exeext
6454if { (ac_try="$ac_link"
6455case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458esac
6459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6460$as_echo "$ac_try_echo") >&5
6461 (eval "$ac_link") 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && {
6468 test -z "$ac_c_werror_flag" ||
6469 test ! -s conftest.err
6470 } && test -s conftest$ac_exeext && {
6471 test "$cross_compiling" = yes ||
6472 $as_test_x conftest$ac_exeext
6473 }; then
6474 lt_cv_ld_exported_symbols_list=yes
d9898ee8 6475else
8d138742
CE
6476 $as_echo "$as_me: failed program was:" >&5
6477sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6478
8d138742 6479 lt_cv_ld_exported_symbols_list=no
d9898ee8 6480fi
6481
8d138742
CE
6482rm -rf conftest.dSYM
6483rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6484 conftest$ac_exeext conftest.$ac_ext
6485 LDFLAGS="$save_LDFLAGS"
d9898ee8 6486
8d138742
CE
6487fi
6488{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6489$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
d9898ee8 6490 case $host_os in
8d138742
CE
6491 rhapsody* | darwin1.[012])
6492 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6493 darwin1.*)
6494 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6495 darwin*) # darwin 5.x on
6496 # if running on 10.5 or later, the deployment target defaults
6497 # to the OS version, if on x86, and 10.4, the deployment
6498 # target defaults to 10.4. Don't you love it?
6499 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6500 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6501 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6502 10.[012]*)
6503 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6504 10.*)
6505 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6506 esac
6507 ;;
6508 esac
6509 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6510 _lt_dar_single_mod='$single_module'
6511 fi
6512 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6513 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6514 else
6515 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6516 fi
6517 if test "$DSYMUTIL" != ":"; then
6518 _lt_dsymutil='~$DSYMUTIL $lib || :'
6519 else
6520 _lt_dsymutil=
6521 fi
6522 ;;
6523 esac
d9898ee8 6524
8d138742
CE
6525ac_ext=c
6526ac_cpp='$CPP $CPPFLAGS'
6527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529ac_compiler_gnu=$ac_cv_c_compiler_gnu
6530{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6531$as_echo_n "checking how to run the C preprocessor... " >&6; }
6532# On Suns, sometimes $CPP names a directory.
6533if test -n "$CPP" && test -d "$CPP"; then
6534 CPP=
6535fi
6536if test -z "$CPP"; then
6537 if test "${ac_cv_prog_CPP+set}" = set; then
6538 $as_echo_n "(cached) " >&6
6539else
6540 # Double quotes because CPP needs to be expanded
6541 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6542 do
6543 ac_preproc_ok=false
6544for ac_c_preproc_warn_flag in '' yes
6545do
6546 # Use a header file that comes with gcc, so configuring glibc
6547 # with a fresh cross-compiler works.
6548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6549 # <limits.h> exists even on freestanding compilers.
6550 # On the NeXT, cc -E runs the code through the compiler's parser,
6551 # not just through cpp. "Syntax error" is here to catch this case.
6552 cat >conftest.$ac_ext <<_ACEOF
6553/* confdefs.h. */
6554_ACEOF
6555cat confdefs.h >>conftest.$ac_ext
6556cat >>conftest.$ac_ext <<_ACEOF
6557/* end confdefs.h. */
6558#ifdef __STDC__
6559# include <limits.h>
6560#else
6561# include <assert.h>
6562#endif
6563 Syntax error
6564_ACEOF
6565if { (ac_try="$ac_cpp conftest.$ac_ext"
6566case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569esac
6570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6571$as_echo "$ac_try_echo") >&5
6572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
6577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } >/dev/null && {
6579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6580 test ! -s conftest.err
6581 }; then
6582 :
6583else
6584 $as_echo "$as_me: failed program was:" >&5
6585sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6586
8d138742
CE
6587 # Broken: fails on valid input.
6588continue
6589fi
d9898ee8 6590
8d138742 6591rm -f conftest.err conftest.$ac_ext
d9898ee8 6592
8d138742
CE
6593 # OK, works on sane cases. Now check whether nonexistent headers
6594 # can be detected and how.
6595 cat >conftest.$ac_ext <<_ACEOF
6596/* confdefs.h. */
6597_ACEOF
6598cat confdefs.h >>conftest.$ac_ext
6599cat >>conftest.$ac_ext <<_ACEOF
6600/* end confdefs.h. */
6601#include <ac_nonexistent.h>
6602_ACEOF
6603if { (ac_try="$ac_cpp conftest.$ac_ext"
6604case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6609$as_echo "$ac_try_echo") >&5
6610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6611 ac_status=$?
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } >/dev/null && {
6617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6618 test ! -s conftest.err
6619 }; then
6620 # Broken: success on invalid input.
6621continue
6622else
6623 $as_echo "$as_me: failed program was:" >&5
6624sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6625
8d138742
CE
6626 # Passes both tests.
6627ac_preproc_ok=:
6628break
6629fi
d9898ee8 6630
8d138742 6631rm -f conftest.err conftest.$ac_ext
d9898ee8 6632
8d138742
CE
6633done
6634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6635rm -f conftest.err conftest.$ac_ext
6636if $ac_preproc_ok; then
6637 break
6638fi
d9898ee8 6639
8d138742
CE
6640 done
6641 ac_cv_prog_CPP=$CPP
d9898ee8 6642
8d138742
CE
6643fi
6644 CPP=$ac_cv_prog_CPP
6645else
6646 ac_cv_prog_CPP=$CPP
6647fi
6648{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6649$as_echo "$CPP" >&6; }
6650ac_preproc_ok=false
6651for ac_c_preproc_warn_flag in '' yes
6652do
6653 # Use a header file that comes with gcc, so configuring glibc
6654 # with a fresh cross-compiler works.
6655 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6656 # <limits.h> exists even on freestanding compilers.
6657 # On the NeXT, cc -E runs the code through the compiler's parser,
6658 # not just through cpp. "Syntax error" is here to catch this case.
6659 cat >conftest.$ac_ext <<_ACEOF
6660/* confdefs.h. */
6661_ACEOF
6662cat confdefs.h >>conftest.$ac_ext
6663cat >>conftest.$ac_ext <<_ACEOF
6664/* end confdefs.h. */
6665#ifdef __STDC__
6666# include <limits.h>
6667#else
6668# include <assert.h>
6669#endif
6670 Syntax error
6671_ACEOF
6672if { (ac_try="$ac_cpp conftest.$ac_ext"
6673case "(($ac_try" in
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6676esac
6677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6678$as_echo "$ac_try_echo") >&5
6679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6680 ac_status=$?
6681 grep -v '^ *+' conftest.er1 >conftest.err
6682 rm -f conftest.er1
6683 cat conftest.err >&5
6684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } >/dev/null && {
6686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6687 test ! -s conftest.err
6688 }; then
6689 :
6690else
6691 $as_echo "$as_me: failed program was:" >&5
6692sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6693
8d138742
CE
6694 # Broken: fails on valid input.
6695continue
6696fi
d9898ee8 6697
8d138742 6698rm -f conftest.err conftest.$ac_ext
d9898ee8 6699
8d138742
CE
6700 # OK, works on sane cases. Now check whether nonexistent headers
6701 # can be detected and how.
6702 cat >conftest.$ac_ext <<_ACEOF
6703/* confdefs.h. */
6704_ACEOF
6705cat confdefs.h >>conftest.$ac_ext
6706cat >>conftest.$ac_ext <<_ACEOF
6707/* end confdefs.h. */
6708#include <ac_nonexistent.h>
6709_ACEOF
6710if { (ac_try="$ac_cpp conftest.$ac_ext"
6711case "(($ac_try" in
6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 *) ac_try_echo=$ac_try;;
6714esac
6715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6716$as_echo "$ac_try_echo") >&5
6717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } >/dev/null && {
6724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6725 test ! -s conftest.err
6726 }; then
6727 # Broken: success on invalid input.
6728continue
6729else
6730 $as_echo "$as_me: failed program was:" >&5
6731sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6732
8d138742
CE
6733 # Passes both tests.
6734ac_preproc_ok=:
6735break
6736fi
ac40fd9e 6737
8d138742 6738rm -f conftest.err conftest.$ac_ext
d9898ee8 6739
8d138742
CE
6740done
6741# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6742rm -f conftest.err conftest.$ac_ext
6743if $ac_preproc_ok; then
6744 :
6745else
6746 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6748{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6749See \`config.log' for more details." >&5
6750$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6751See \`config.log' for more details." >&2;}
6752 { (exit 1); exit 1; }; }; }
6753fi
d9898ee8 6754
8d138742
CE
6755ac_ext=c
6756ac_cpp='$CPP $CPPFLAGS'
6757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6759ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6760
d9898ee8 6761
8d138742
CE
6762{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6763$as_echo_n "checking for ANSI C header files... " >&6; }
6764if test "${ac_cv_header_stdc+set}" = set; then
6765 $as_echo_n "(cached) " >&6
6766else
6767 cat >conftest.$ac_ext <<_ACEOF
6768/* confdefs.h. */
6769_ACEOF
6770cat confdefs.h >>conftest.$ac_ext
6771cat >>conftest.$ac_ext <<_ACEOF
6772/* end confdefs.h. */
6773#include <stdlib.h>
6774#include <stdarg.h>
6775#include <string.h>
6776#include <float.h>
d9898ee8 6777
8d138742
CE
6778int
6779main ()
6780{
d9898ee8 6781
8d138742
CE
6782 ;
6783 return 0;
6784}
6785_ACEOF
6786rm -f conftest.$ac_objext
6787if { (ac_try="$ac_compile"
6788case "(($ac_try" in
6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6791esac
6792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6793$as_echo "$ac_try_echo") >&5
6794 (eval "$ac_compile") 2>conftest.er1
6795 ac_status=$?
6796 grep -v '^ *+' conftest.er1 >conftest.err
6797 rm -f conftest.er1
6798 cat conftest.err >&5
6799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } && {
6801 test -z "$ac_c_werror_flag" ||
6802 test ! -s conftest.err
6803 } && test -s conftest.$ac_objext; then
6804 ac_cv_header_stdc=yes
6805else
6806 $as_echo "$as_me: failed program was:" >&5
6807sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6808
8d138742
CE
6809 ac_cv_header_stdc=no
6810fi
d9898ee8 6811
8d138742 6812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6813
8d138742
CE
6814if test $ac_cv_header_stdc = yes; then
6815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6816 cat >conftest.$ac_ext <<_ACEOF
6817/* confdefs.h. */
6818_ACEOF
6819cat confdefs.h >>conftest.$ac_ext
6820cat >>conftest.$ac_ext <<_ACEOF
6821/* end confdefs.h. */
6822#include <string.h>
d9898ee8 6823
8d138742
CE
6824_ACEOF
6825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6826 $EGREP "memchr" >/dev/null 2>&1; then
6827 :
d9898ee8 6828else
8d138742
CE
6829 ac_cv_header_stdc=no
6830fi
6831rm -f conftest*
d9898ee8 6832
6833fi
d9898ee8 6834
8d138742
CE
6835if test $ac_cv_header_stdc = yes; then
6836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6837 cat >conftest.$ac_ext <<_ACEOF
6838/* confdefs.h. */
6839_ACEOF
6840cat confdefs.h >>conftest.$ac_ext
6841cat >>conftest.$ac_ext <<_ACEOF
6842/* end confdefs.h. */
6843#include <stdlib.h>
6844
6845_ACEOF
6846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6847 $EGREP "free" >/dev/null 2>&1; then
6848 :
d9898ee8 6849else
8d138742 6850 ac_cv_header_stdc=no
d9898ee8 6851fi
8d138742 6852rm -f conftest*
d9898ee8 6853
6854fi
d9898ee8 6855
8d138742
CE
6856if test $ac_cv_header_stdc = yes; then
6857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6858 if test "$cross_compiling" = yes; then
6859 :
d9898ee8 6860else
8d138742
CE
6861 cat >conftest.$ac_ext <<_ACEOF
6862/* confdefs.h. */
6863_ACEOF
6864cat confdefs.h >>conftest.$ac_ext
6865cat >>conftest.$ac_ext <<_ACEOF
6866/* end confdefs.h. */
6867#include <ctype.h>
6868#include <stdlib.h>
6869#if ((' ' & 0x0FF) == 0x020)
6870# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6871# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6872#else
6873# define ISLOWER(c) \
6874 (('a' <= (c) && (c) <= 'i') \
6875 || ('j' <= (c) && (c) <= 'r') \
6876 || ('s' <= (c) && (c) <= 'z'))
6877# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6878#endif
d9898ee8 6879
8d138742
CE
6880#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6881int
6882main ()
6883{
6884 int i;
6885 for (i = 0; i < 256; i++)
6886 if (XOR (islower (i), ISLOWER (i))
6887 || toupper (i) != TOUPPER (i))
6888 return 2;
6889 return 0;
6890}
6891_ACEOF
6892rm -f conftest$ac_exeext
6893if { (ac_try="$ac_link"
6894case "(($ac_try" in
6895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896 *) ac_try_echo=$ac_try;;
6897esac
6898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6899$as_echo "$ac_try_echo") >&5
6900 (eval "$ac_link") 2>&5
6901 ac_status=$?
6902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6904 { (case "(($ac_try" in
6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906 *) ac_try_echo=$ac_try;;
6907esac
6908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6909$as_echo "$ac_try_echo") >&5
6910 (eval "$ac_try") 2>&5
6911 ac_status=$?
6912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); }; }; then
6914 :
d9898ee8 6915else
8d138742
CE
6916 $as_echo "$as_me: program exited with status $ac_status" >&5
6917$as_echo "$as_me: failed program was:" >&5
6918sed 's/^/| /' conftest.$ac_ext >&5
6919
6920( exit $ac_status )
6921ac_cv_header_stdc=no
6922fi
6923rm -rf conftest.dSYM
6924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 6925fi
6926
6927
8d138742
CE
6928fi
6929fi
6930{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6931$as_echo "$ac_cv_header_stdc" >&6; }
6932if test $ac_cv_header_stdc = yes; then
d9898ee8 6933
8d138742
CE
6934cat >>confdefs.h <<\_ACEOF
6935#define STDC_HEADERS 1
6936_ACEOF
d9898ee8 6937
6938fi
d9898ee8 6939
8d138742 6940# On IRIX 5.3, sys/types and inttypes.h are conflicting.
d9898ee8 6941
d9898ee8 6942
d9898ee8 6943
d9898ee8 6944
d9898ee8 6945
d9898ee8 6946
d9898ee8 6947
d9898ee8 6948
d9898ee8 6949
8d138742
CE
6950for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6951 inttypes.h stdint.h unistd.h
6952do
6953as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6954{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6955$as_echo_n "checking for $ac_header... " >&6; }
6956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6957 $as_echo_n "(cached) " >&6
6958else
6959 cat >conftest.$ac_ext <<_ACEOF
6960/* confdefs.h. */
6961_ACEOF
6962cat confdefs.h >>conftest.$ac_ext
6963cat >>conftest.$ac_ext <<_ACEOF
6964/* end confdefs.h. */
6965$ac_includes_default
d9898ee8 6966
8d138742
CE
6967#include <$ac_header>
6968_ACEOF
6969rm -f conftest.$ac_objext
6970if { (ac_try="$ac_compile"
6971case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974esac
6975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6976$as_echo "$ac_try_echo") >&5
6977 (eval "$ac_compile") 2>conftest.er1
6978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } && {
6984 test -z "$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 } && test -s conftest.$ac_objext; then
6987 eval "$as_ac_Header=yes"
6988else
6989 $as_echo "$as_me: failed program was:" >&5
6990sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6991
8d138742
CE
6992 eval "$as_ac_Header=no"
6993fi
d9898ee8 6994
8d138742
CE
6995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996fi
6997ac_res=`eval 'as_val=${'$as_ac_Header'}
6998 $as_echo "$as_val"'`
6999 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7000$as_echo "$ac_res" >&6; }
7001as_val=`eval 'as_val=${'$as_ac_Header'}
7002 $as_echo "$as_val"'`
7003 if test "x$as_val" = x""yes; then
7004 cat >>confdefs.h <<_ACEOF
7005#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7006_ACEOF
d9898ee8 7007
8d138742 7008fi
d9898ee8 7009
8d138742 7010done
d9898ee8 7011
d9898ee8 7012
d9898ee8 7013
8d138742
CE
7014for ac_header in dlfcn.h
7015do
7016as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7017{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7018$as_echo_n "checking for $ac_header... " >&6; }
7019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7020 $as_echo_n "(cached) " >&6
7021else
7022 cat >conftest.$ac_ext <<_ACEOF
7023/* confdefs.h. */
7024_ACEOF
7025cat confdefs.h >>conftest.$ac_ext
7026cat >>conftest.$ac_ext <<_ACEOF
7027/* end confdefs.h. */
7028$ac_includes_default
d9898ee8 7029
8d138742
CE
7030#include <$ac_header>
7031_ACEOF
7032rm -f conftest.$ac_objext
7033if { (ac_try="$ac_compile"
7034case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037esac
7038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7039$as_echo "$ac_try_echo") >&5
7040 (eval "$ac_compile") 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && {
7047 test -z "$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 } && test -s conftest.$ac_objext; then
7050 eval "$as_ac_Header=yes"
7051else
7052 $as_echo "$as_me: failed program was:" >&5
7053sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 7054
8d138742
CE
7055 eval "$as_ac_Header=no"
7056fi
d9898ee8 7057
8d138742
CE
7058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059fi
7060ac_res=`eval 'as_val=${'$as_ac_Header'}
7061 $as_echo "$as_val"'`
7062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7063$as_echo "$ac_res" >&6; }
7064as_val=`eval 'as_val=${'$as_ac_Header'}
7065 $as_echo "$as_val"'`
7066 if test "x$as_val" = x""yes; then
7067 cat >>confdefs.h <<_ACEOF
7068#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7069_ACEOF
d9898ee8 7070
8d138742 7071fi
d9898ee8 7072
8d138742 7073done
d9898ee8 7074
d9898ee8 7075
d9898ee8 7076
8d138742
CE
7077# Set options
7078
7079
7080
7081 enable_dlopen=no
7082
7083
7084 enable_win32_dll=no
d9898ee8 7085
8d138742
CE
7086
7087 # Check whether --enable-shared was given.
7088if test "${enable_shared+set}" = set; then
7089 enableval=$enable_shared; p=${PACKAGE-default}
7090 case $enableval in
7091 yes) enable_shared=yes ;;
7092 no) enable_shared=no ;;
d9898ee8 7093 *)
8d138742
CE
7094 enable_shared=no
7095 # Look at the argument we got. We use all the common list separators.
7096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7097 for pkg in $enableval; do
7098 IFS="$lt_save_ifs"
7099 if test "X$pkg" = "X$p"; then
7100 enable_shared=yes
7101 fi
7102 done
7103 IFS="$lt_save_ifs"
d9898ee8 7104 ;;
7105 esac
8d138742
CE
7106else
7107 enable_shared=yes
7108fi
d9898ee8 7109
d9898ee8 7110
d9898ee8 7111
d9898ee8 7112
d9898ee8 7113
d9898ee8 7114
d9898ee8 7115
d9898ee8 7116
d9898ee8 7117
8d138742
CE
7118 # Check whether --enable-static was given.
7119if test "${enable_static+set}" = set; then
7120 enableval=$enable_static; p=${PACKAGE-default}
7121 case $enableval in
7122 yes) enable_static=yes ;;
7123 no) enable_static=no ;;
7124 *)
7125 enable_static=no
7126 # Look at the argument we got. We use all the common list separators.
7127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7128 for pkg in $enableval; do
7129 IFS="$lt_save_ifs"
7130 if test "X$pkg" = "X$p"; then
7131 enable_static=yes
7132 fi
7133 done
7134 IFS="$lt_save_ifs"
7135 ;;
7136 esac
d9898ee8 7137else
8d138742
CE
7138 enable_static=yes
7139fi
7140
d9898ee8 7141
dd184caf 7142
dd184caf 7143
d9898ee8 7144
d9898ee8 7145
d9898ee8 7146
d9898ee8 7147
d9898ee8 7148
dd184caf 7149
8d138742
CE
7150# Check whether --with-pic was given.
7151if test "${with_pic+set}" = set; then
7152 withval=$with_pic; pic_mode="$withval"
7153else
7154 pic_mode=default
d9898ee8 7155fi
dd184caf 7156
d9898ee8 7157
8d138742 7158test -z "$pic_mode" && pic_mode=default
d9898ee8 7159
d9898ee8 7160
d9898ee8 7161
d9898ee8 7162
d9898ee8 7163
d9898ee8 7164
d9898ee8 7165
8d138742
CE
7166 # Check whether --enable-fast-install was given.
7167if test "${enable_fast_install+set}" = set; then
7168 enableval=$enable_fast_install; p=${PACKAGE-default}
7169 case $enableval in
7170 yes) enable_fast_install=yes ;;
7171 no) enable_fast_install=no ;;
7172 *)
7173 enable_fast_install=no
7174 # Look at the argument we got. We use all the common list separators.
7175 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7176 for pkg in $enableval; do
7177 IFS="$lt_save_ifs"
7178 if test "X$pkg" = "X$p"; then
7179 enable_fast_install=yes
7180 fi
7181 done
7182 IFS="$lt_save_ifs"
d9898ee8 7183 ;;
8d138742
CE
7184 esac
7185else
7186 enable_fast_install=yes
7187fi
d9898ee8 7188
d9898ee8 7189
d9898ee8 7190
d9898ee8 7191
d9898ee8 7192
d9898ee8 7193
d9898ee8 7194
d9898ee8 7195
d9898ee8 7196
d9898ee8 7197
d9898ee8 7198
8d138742
CE
7199# This can be used to rebuild libtool when needed
7200LIBTOOL_DEPS="$ltmain"
d9898ee8 7201
8d138742
CE
7202# Always use our own libtool.
7203LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 7204
d9898ee8 7205
d9898ee8 7206
d9898ee8 7207
d9898ee8 7208
d9898ee8 7209
d9898ee8 7210
d9898ee8 7211
d9898ee8 7212
d9898ee8 7213
d9898ee8 7214
d9898ee8 7215
d9898ee8 7216
d9898ee8 7217
d9898ee8 7218
d9898ee8 7219
d9898ee8 7220
d9898ee8 7221
d9898ee8 7222
d9898ee8 7223
d9898ee8 7224
d9898ee8 7225
ac40fd9e 7226
d9898ee8 7227
d9898ee8 7228
8d138742 7229test -z "$LN_S" && LN_S="ln -s"
d9898ee8 7230
d9898ee8 7231
d9898ee8 7232
d9898ee8 7233
d9898ee8 7234
d9898ee8 7235
d9898ee8 7236
d9898ee8 7237
d9898ee8 7238
d9898ee8 7239
ac40fd9e 7240
d9898ee8 7241
d9898ee8 7242
d9898ee8 7243
8d138742
CE
7244if test -n "${ZSH_VERSION+set}" ; then
7245 setopt NO_GLOB_SUBST
7246fi
d9898ee8 7247
8d138742
CE
7248{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7249$as_echo_n "checking for objdir... " >&6; }
7250if test "${lt_cv_objdir+set}" = set; then
7251 $as_echo_n "(cached) " >&6
7252else
7253 rm -f .libs 2>/dev/null
7254mkdir .libs 2>/dev/null
7255if test -d .libs; then
7256 lt_cv_objdir=.libs
7257else
7258 # MS-DOS does not allow filenames that begin with a dot.
7259 lt_cv_objdir=_libs
7260fi
7261rmdir .libs 2>/dev/null
7262fi
7263{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7264$as_echo "$lt_cv_objdir" >&6; }
7265objdir=$lt_cv_objdir
d9898ee8 7266
d9898ee8 7267
d9898ee8 7268
d9898ee8 7269
d9898ee8 7270
8d138742
CE
7271cat >>confdefs.h <<_ACEOF
7272#define LT_OBJDIR "$lt_cv_objdir/"
7273_ACEOF
d9898ee8 7274
d9898ee8 7275
d9898ee8 7276
d9898ee8 7277
d9898ee8 7278
d9898ee8 7279
d9898ee8 7280
d9898ee8 7281
d9898ee8 7282
ac40fd9e 7283
d9898ee8 7284
d9898ee8 7285
d9898ee8 7286
d9898ee8 7287
d9898ee8 7288
d9898ee8 7289
8d138742
CE
7290
7291case $host_os in
7292aix3*)
7293 # AIX sometimes has problems with the GCC collect2 program. For some
7294 # reason, if we set the COLLECT_NAMES environment variable, the problems
7295 # vanish in a puff of smoke.
7296 if test "X${COLLECT_NAMES+set}" != Xset; then
7297 COLLECT_NAMES=
7298 export COLLECT_NAMES
7299 fi
d9898ee8 7300 ;;
7301esac
d9898ee8 7302
8d138742
CE
7303# Sed substitution that helps us do robust quoting. It backslashifies
7304# metacharacters that are still active within double-quoted strings.
7305sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d9898ee8 7306
8d138742
CE
7307# Same as above, but do not quote variable references.
7308double_quote_subst='s/\(["`\\]\)/\\\1/g'
d9898ee8 7309
8d138742
CE
7310# Sed substitution to delay expansion of an escaped shell variable in a
7311# double_quote_subst'ed string.
7312delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d9898ee8 7313
8d138742
CE
7314# Sed substitution to delay expansion of an escaped single quote.
7315delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d9898ee8 7316
8d138742
CE
7317# Sed substitution to avoid accidental globbing in evaled expressions
7318no_glob_subst='s/\*/\\\*/g'
d9898ee8 7319
8d138742
CE
7320# Global variables:
7321ofile=libtool
7322can_build_shared=yes
d9898ee8 7323
8d138742
CE
7324# All known linkers require a `.a' archive for static linking (except MSVC,
7325# which needs '.lib').
7326libext=a
d9898ee8 7327
8d138742 7328with_gnu_ld="$lt_cv_prog_gnu_ld"
d9898ee8 7329
8d138742
CE
7330old_CC="$CC"
7331old_CFLAGS="$CFLAGS"
d9898ee8 7332
8d138742
CE
7333# Set sane defaults for various variables
7334test -z "$CC" && CC=cc
7335test -z "$LTCC" && LTCC=$CC
7336test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7337test -z "$LD" && LD=ld
7338test -z "$ac_objext" && ac_objext=o
d9898ee8 7339
8d138742
CE
7340for cc_temp in $compiler""; do
7341 case $cc_temp in
7342 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7343 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7344 \-*) ;;
7345 *) break;;
7346 esac
7347done
7348cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d9898ee8 7349
dd184caf 7350
8d138742
CE
7351# Only perform the check for file, if the check method requires it
7352test -z "$MAGIC_CMD" && MAGIC_CMD=file
7353case $deplibs_check_method in
7354file_magic*)
7355 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7356 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7357$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7358if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7359 $as_echo_n "(cached) " >&6
d9898ee8 7360else
8d138742
CE
7361 case $MAGIC_CMD in
7362[\\/*] | ?:[\\/]*)
7363 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7364 ;;
7365*)
7366 lt_save_MAGIC_CMD="$MAGIC_CMD"
7367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7368 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7369 for ac_dir in $ac_dummy; do
7370 IFS="$lt_save_ifs"
7371 test -z "$ac_dir" && ac_dir=.
7372 if test -f $ac_dir/${ac_tool_prefix}file; then
7373 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7374 if test -n "$file_magic_test_file"; then
7375 case $deplibs_check_method in
7376 "file_magic "*)
7377 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7378 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7379 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7380 $EGREP "$file_magic_regex" > /dev/null; then
7381 :
7382 else
7383 cat <<_LT_EOF 1>&2
d9898ee8 7384
8d138742
CE
7385*** Warning: the command libtool uses to detect shared libraries,
7386*** $file_magic_cmd, produces output that libtool cannot recognize.
7387*** The result is that libtool may fail to recognize shared libraries
7388*** as such. This will affect the creation of libtool libraries that
7389*** depend on shared libraries, but programs linked with such libtool
7390*** libraries will work regardless of this problem. Nevertheless, you
7391*** may want to report the problem to your system manager and/or to
7392*** bug-libtool@gnu.org
d9898ee8 7393
8d138742
CE
7394_LT_EOF
7395 fi ;;
7396 esac
7397 fi
7398 break
7399 fi
7400 done
7401 IFS="$lt_save_ifs"
7402 MAGIC_CMD="$lt_save_MAGIC_CMD"
7403 ;;
7404esac
d9898ee8 7405fi
7406
8d138742
CE
7407MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7408if test -n "$MAGIC_CMD"; then
7409 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7410$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7411else
8d138742
CE
7412 { $as_echo "$as_me:$LINENO: result: no" >&5
7413$as_echo "no" >&6; }
7414fi
d9898ee8 7415
d9898ee8 7416
d9898ee8 7417
d9898ee8 7418
d9898ee8 7419
8d138742
CE
7420if test -z "$lt_cv_path_MAGIC_CMD"; then
7421 if test -n "$ac_tool_prefix"; then
7422 { $as_echo "$as_me:$LINENO: checking for file" >&5
7423$as_echo_n "checking for file... " >&6; }
7424if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7425 $as_echo_n "(cached) " >&6
d9898ee8 7426else
8d138742
CE
7427 case $MAGIC_CMD in
7428[\\/*] | ?:[\\/]*)
7429 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7430 ;;
7431*)
7432 lt_save_MAGIC_CMD="$MAGIC_CMD"
7433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7434 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7435 for ac_dir in $ac_dummy; do
7436 IFS="$lt_save_ifs"
7437 test -z "$ac_dir" && ac_dir=.
7438 if test -f $ac_dir/file; then
7439 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7440 if test -n "$file_magic_test_file"; then
7441 case $deplibs_check_method in
7442 "file_magic "*)
7443 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7445 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7446 $EGREP "$file_magic_regex" > /dev/null; then
7447 :
7448 else
7449 cat <<_LT_EOF 1>&2
d9898ee8 7450
8d138742
CE
7451*** Warning: the command libtool uses to detect shared libraries,
7452*** $file_magic_cmd, produces output that libtool cannot recognize.
7453*** The result is that libtool may fail to recognize shared libraries
7454*** as such. This will affect the creation of libtool libraries that
7455*** depend on shared libraries, but programs linked with such libtool
7456*** libraries will work regardless of this problem. Nevertheless, you
7457*** may want to report the problem to your system manager and/or to
7458*** bug-libtool@gnu.org
dd184caf 7459
8d138742
CE
7460_LT_EOF
7461 fi ;;
7462 esac
7463 fi
7464 break
7465 fi
7466 done
7467 IFS="$lt_save_ifs"
7468 MAGIC_CMD="$lt_save_MAGIC_CMD"
7469 ;;
7470esac
d9898ee8 7471fi
d9898ee8 7472
8d138742
CE
7473MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7474if test -n "$MAGIC_CMD"; then
7475 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7476$as_echo "$MAGIC_CMD" >&6; }
d9898ee8 7477else
8d138742
CE
7478 { $as_echo "$as_me:$LINENO: result: no" >&5
7479$as_echo "no" >&6; }
d9898ee8 7480fi
dd184caf 7481
8d138742
CE
7482
7483 else
7484 MAGIC_CMD=:
7485 fi
d9898ee8 7486fi
d9898ee8 7487
8d138742
CE
7488 fi
7489 ;;
7490esac
d9898ee8 7491
8d138742 7492# Use C for the default configuration in the libtool script
d9898ee8 7493
8d138742
CE
7494lt_save_CC="$CC"
7495ac_ext=c
7496ac_cpp='$CPP $CPPFLAGS'
7497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 7500
d9898ee8 7501
8d138742
CE
7502# Source file extension for C test sources.
7503ac_ext=c
d9898ee8 7504
8d138742
CE
7505# Object file extension for compiled C test sources.
7506objext=o
7507objext=$objext
dd184caf 7508
8d138742
CE
7509# Code to be used in simple compile tests
7510lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7511
8d138742
CE
7512# Code to be used in simple link tests
7513lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7514
dd184caf 7515
d9898ee8 7516
d9898ee8 7517
dd184caf 7518
d9898ee8 7519
d9898ee8 7520
8d138742
CE
7521# If no C compiler was specified, use CC.
7522LTCC=${LTCC-"$CC"}
dd184caf 7523
8d138742
CE
7524# If no C compiler flags were specified, use CFLAGS.
7525LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 7526
8d138742
CE
7527# Allow CC to be a program name with arguments.
7528compiler=$CC
d9898ee8 7529
8d138742
CE
7530# Save the default compiler, since it gets overwritten when the other
7531# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7532compiler_DEFAULT=$CC
d9898ee8 7533
8d138742
CE
7534# save warnings/boilerplate of simple test code
7535ac_outfile=conftest.$ac_objext
7536echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7537eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7538_lt_compiler_boilerplate=`cat conftest.err`
7539$RM conftest*
d9898ee8 7540
8d138742
CE
7541ac_outfile=conftest.$ac_objext
7542echo "$lt_simple_link_test_code" >conftest.$ac_ext
7543eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7544_lt_linker_boilerplate=`cat conftest.err`
7545$RM -r conftest*
d9898ee8 7546
7547
8d138742 7548if test -n "$compiler"; then
d9898ee8 7549
8d138742 7550lt_prog_compiler_no_builtin_flag=
d9898ee8 7551
8d138742
CE
7552if test "$GCC" = yes; then
7553 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d9898ee8 7554
8d138742
CE
7555 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7556$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7557if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7558 $as_echo_n "(cached) " >&6
7559else
7560 lt_cv_prog_compiler_rtti_exceptions=no
7561 ac_outfile=conftest.$ac_objext
7562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7563 lt_compiler_flag="-fno-rtti -fno-exceptions"
7564 # Insert the option either (1) after the last *FLAGS variable, or
7565 # (2) before a word containing "conftest.", or (3) at the end.
7566 # Note that $ac_compile itself does not contain backslashes and begins
7567 # with a dollar sign (not a hyphen), so the echo should work correctly.
7568 # The option is referenced via a variable to avoid confusing sed.
7569 lt_compile=`echo "$ac_compile" | $SED \
7570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7572 -e 's:$: $lt_compiler_flag:'`
7573 (eval echo "\"\$as_me:7573: $lt_compile\"" >&5)
7574 (eval "$lt_compile" 2>conftest.err)
7575 ac_status=$?
7576 cat conftest.err >&5
7577 echo "$as_me:7577: \$? = $ac_status" >&5
7578 if (exit $ac_status) && test -s "$ac_outfile"; then
7579 # The compiler can only warn and ignore the option if not recognized
7580 # So say no if there are warnings other than the usual output.
7581 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7584 lt_cv_prog_compiler_rtti_exceptions=yes
7585 fi
7586 fi
7587 $RM conftest*
d9898ee8 7588
7589fi
8d138742
CE
7590{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7591$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7592
8d138742
CE
7593if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7594 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7595else
7596 :
7597fi
d9898ee8 7598
8d138742 7599fi
d9898ee8 7600
d9898ee8 7601
d9898ee8 7602
d9898ee8 7603
d9898ee8 7604
d9898ee8 7605
8d138742
CE
7606 lt_prog_compiler_wl=
7607lt_prog_compiler_pic=
7608lt_prog_compiler_static=
d9898ee8 7609
8d138742
CE
7610{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7611$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d9898ee8 7612
8d138742
CE
7613 if test "$GCC" = yes; then
7614 lt_prog_compiler_wl='-Wl,'
7615 lt_prog_compiler_static='-static'
d9898ee8 7616
8d138742
CE
7617 case $host_os in
7618 aix*)
7619 # All AIX code is PIC.
7620 if test "$host_cpu" = ia64; then
7621 # AIX 5 now supports IA64 processor
7622 lt_prog_compiler_static='-Bstatic'
7623 fi
7624 ;;
d9898ee8 7625
8d138742
CE
7626 amigaos*)
7627 case $host_cpu in
7628 powerpc)
7629 # see comment about AmigaOS4 .so support
7630 lt_prog_compiler_pic='-fPIC'
7631 ;;
7632 m68k)
7633 # FIXME: we need at least 68020 code to build shared libraries, but
7634 # adding the `-m68020' flag to GCC prevents building anything better,
7635 # like `-m68040'.
7636 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7637 ;;
7638 esac
7639 ;;
d9898ee8 7640
8d138742
CE
7641 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7642 # PIC is the default for these OSes.
7643 ;;
d9898ee8 7644
8d138742
CE
7645 mingw* | cygwin* | pw32* | os2* | cegcc*)
7646 # This hack is so that the source file can tell whether it is being
7647 # built for inclusion in a dll (and should export symbols for example).
7648 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7649 # (--disable-auto-import) libraries
7650 lt_prog_compiler_pic='-DDLL_EXPORT'
7651 ;;
d9898ee8 7652
8d138742
CE
7653 darwin* | rhapsody*)
7654 # PIC is the default on this platform
7655 # Common symbols not allowed in MH_DYLIB files
7656 lt_prog_compiler_pic='-fno-common'
7657 ;;
d9898ee8 7658
8d138742
CE
7659 hpux*)
7660 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7661 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7662 # sets the default TLS model and affects inlining.
7663 case $host_cpu in
7664 hppa*64*)
7665 # +Z the default
7666 ;;
7667 *)
7668 lt_prog_compiler_pic='-fPIC'
7669 ;;
7670 esac
7671 ;;
d9898ee8 7672
8d138742
CE
7673 interix[3-9]*)
7674 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7675 # Instead, we relocate shared libraries at runtime.
7676 ;;
d9898ee8 7677
8d138742
CE
7678 msdosdjgpp*)
7679 # Just because we use GCC doesn't mean we suddenly get shared libraries
7680 # on systems that don't support them.
7681 lt_prog_compiler_can_build_shared=no
7682 enable_shared=no
7683 ;;
d9898ee8 7684
8d138742
CE
7685 *nto* | *qnx*)
7686 # QNX uses GNU C++, but need to define -shared option too, otherwise
7687 # it will coredump.
7688 lt_prog_compiler_pic='-fPIC -shared'
7689 ;;
d9898ee8 7690
8d138742
CE
7691 sysv4*MP*)
7692 if test -d /usr/nec; then
7693 lt_prog_compiler_pic=-Kconform_pic
7694 fi
7695 ;;
d9898ee8 7696
8d138742
CE
7697 *)
7698 lt_prog_compiler_pic='-fPIC'
7699 ;;
7700 esac
7701 else
7702 # PORTME Check for flag to pass linker flags through the system compiler.
7703 case $host_os in
7704 aix*)
7705 lt_prog_compiler_wl='-Wl,'
7706 if test "$host_cpu" = ia64; then
7707 # AIX 5 now supports IA64 processor
7708 lt_prog_compiler_static='-Bstatic'
7709 else
7710 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7711 fi
7712 ;;
d9898ee8 7713
8d138742
CE
7714 mingw* | cygwin* | pw32* | os2* | cegcc*)
7715 # This hack is so that the source file can tell whether it is being
7716 # built for inclusion in a dll (and should export symbols for example).
7717 lt_prog_compiler_pic='-DDLL_EXPORT'
7718 ;;
d9898ee8 7719
8d138742
CE
7720 hpux9* | hpux10* | hpux11*)
7721 lt_prog_compiler_wl='-Wl,'
7722 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7723 # not for PA HP-UX.
7724 case $host_cpu in
7725 hppa*64*|ia64*)
7726 # +Z the default
7727 ;;
7728 *)
7729 lt_prog_compiler_pic='+Z'
7730 ;;
7731 esac
7732 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7733 lt_prog_compiler_static='${wl}-a ${wl}archive'
7734 ;;
d9898ee8 7735
8d138742
CE
7736 irix5* | irix6* | nonstopux*)
7737 lt_prog_compiler_wl='-Wl,'
7738 # PIC (with -KPIC) is the default.
7739 lt_prog_compiler_static='-non_shared'
7740 ;;
d9898ee8 7741
8d138742
CE
7742 linux* | k*bsd*-gnu)
7743 case $cc_basename in
7744 # old Intel for x86_64 which still supported -KPIC.
7745 ecc*)
7746 lt_prog_compiler_wl='-Wl,'
7747 lt_prog_compiler_pic='-KPIC'
7748 lt_prog_compiler_static='-static'
7749 ;;
7750 # icc used to be incompatible with GCC.
7751 # ICC 10 doesn't accept -KPIC any more.
7752 icc* | ifort*)
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_pic='-fPIC'
7755 lt_prog_compiler_static='-static'
7756 ;;
7757 # Lahey Fortran 8.1.
7758 lf95*)
7759 lt_prog_compiler_wl='-Wl,'
7760 lt_prog_compiler_pic='--shared'
7761 lt_prog_compiler_static='--static'
7762 ;;
7763 pgcc* | pgf77* | pgf90* | pgf95*)
7764 # Portland Group compilers (*not* the Pentium gcc compiler,
7765 # which looks to be a dead project)
7766 lt_prog_compiler_wl='-Wl,'
7767 lt_prog_compiler_pic='-fpic'
7768 lt_prog_compiler_static='-Bstatic'
7769 ;;
7770 ccc*)
7771 lt_prog_compiler_wl='-Wl,'
7772 # All Alpha code is PIC.
7773 lt_prog_compiler_static='-non_shared'
7774 ;;
7775 xl*)
7776 # IBM XL C 8.0/Fortran 10.1 on PPC
7777 lt_prog_compiler_wl='-Wl,'
7778 lt_prog_compiler_pic='-qpic'
7779 lt_prog_compiler_static='-qstaticlink'
7780 ;;
7781 *)
7782 case `$CC -V 2>&1 | sed 5q` in
7783 *Sun\ C*)
7784 # Sun C 5.9
7785 lt_prog_compiler_pic='-KPIC'
7786 lt_prog_compiler_static='-Bstatic'
7787 lt_prog_compiler_wl='-Wl,'
7788 ;;
7789 *Sun\ F*)
7790 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7791 lt_prog_compiler_pic='-KPIC'
7792 lt_prog_compiler_static='-Bstatic'
7793 lt_prog_compiler_wl=''
7794 ;;
7795 esac
7796 ;;
7797 esac
7798 ;;
d9898ee8 7799
8d138742
CE
7800 newsos6)
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-Bstatic'
7803 ;;
d9898ee8 7804
8d138742
CE
7805 *nto* | *qnx*)
7806 # QNX uses GNU C++, but need to define -shared option too, otherwise
7807 # it will coredump.
7808 lt_prog_compiler_pic='-fPIC -shared'
7809 ;;
d9898ee8 7810
8d138742
CE
7811 osf3* | osf4* | osf5*)
7812 lt_prog_compiler_wl='-Wl,'
7813 # All OSF/1 code is PIC.
7814 lt_prog_compiler_static='-non_shared'
7815 ;;
d9898ee8 7816
8d138742
CE
7817 rdos*)
7818 lt_prog_compiler_static='-non_shared'
7819 ;;
d9898ee8 7820
8d138742
CE
7821 solaris*)
7822 lt_prog_compiler_pic='-KPIC'
7823 lt_prog_compiler_static='-Bstatic'
7824 case $cc_basename in
7825 f77* | f90* | f95*)
7826 lt_prog_compiler_wl='-Qoption ld ';;
7827 *)
7828 lt_prog_compiler_wl='-Wl,';;
7829 esac
7830 ;;
d9898ee8 7831
8d138742
CE
7832 sunos4*)
7833 lt_prog_compiler_wl='-Qoption ld '
7834 lt_prog_compiler_pic='-PIC'
7835 lt_prog_compiler_static='-Bstatic'
7836 ;;
d9898ee8 7837
8d138742
CE
7838 sysv4 | sysv4.2uw2* | sysv4.3*)
7839 lt_prog_compiler_wl='-Wl,'
7840 lt_prog_compiler_pic='-KPIC'
7841 lt_prog_compiler_static='-Bstatic'
7842 ;;
d9898ee8 7843
8d138742
CE
7844 sysv4*MP*)
7845 if test -d /usr/nec ;then
7846 lt_prog_compiler_pic='-Kconform_pic'
7847 lt_prog_compiler_static='-Bstatic'
7848 fi
7849 ;;
d9898ee8 7850
8d138742
CE
7851 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7852 lt_prog_compiler_wl='-Wl,'
7853 lt_prog_compiler_pic='-KPIC'
7854 lt_prog_compiler_static='-Bstatic'
7855 ;;
d9898ee8 7856
8d138742
CE
7857 unicos*)
7858 lt_prog_compiler_wl='-Wl,'
7859 lt_prog_compiler_can_build_shared=no
7860 ;;
7861
7862 uts4*)
7863 lt_prog_compiler_pic='-pic'
7864 lt_prog_compiler_static='-Bstatic'
d9898ee8 7865 ;;
8d138742 7866
d9898ee8 7867 *)
8d138742 7868 lt_prog_compiler_can_build_shared=no
d9898ee8 7869 ;;
7870 esac
8d138742 7871 fi
d9898ee8 7872
8d138742
CE
7873case $host_os in
7874 # For platforms which do not support PIC, -DPIC is meaningless:
7875 *djgpp*)
7876 lt_prog_compiler_pic=
d9898ee8 7877 ;;
8d138742
CE
7878 *)
7879 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7880 ;;
7881esac
7882{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7883$as_echo "$lt_prog_compiler_pic" >&6; }
7884
7885
7886
d9898ee8 7887
d9898ee8 7888
d9898ee8 7889
d9898ee8 7890#
8d138742 7891# Check to make sure the PIC flag actually works.
d9898ee8 7892#
8d138742
CE
7893if test -n "$lt_prog_compiler_pic"; then
7894 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7895$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7896if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7897 $as_echo_n "(cached) " >&6
7898else
7899 lt_cv_prog_compiler_pic_works=no
7900 ac_outfile=conftest.$ac_objext
7901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7902 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7903 # Insert the option either (1) after the last *FLAGS variable, or
7904 # (2) before a word containing "conftest.", or (3) at the end.
7905 # Note that $ac_compile itself does not contain backslashes and begins
7906 # with a dollar sign (not a hyphen), so the echo should work correctly.
7907 # The option is referenced via a variable to avoid confusing sed.
7908 lt_compile=`echo "$ac_compile" | $SED \
7909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7911 -e 's:$: $lt_compiler_flag:'`
7912 (eval echo "\"\$as_me:7912: $lt_compile\"" >&5)
7913 (eval "$lt_compile" 2>conftest.err)
7914 ac_status=$?
7915 cat conftest.err >&5
7916 echo "$as_me:7916: \$? = $ac_status" >&5
7917 if (exit $ac_status) && test -s "$ac_outfile"; then
7918 # The compiler can only warn and ignore the option if not recognized
7919 # So say no if there are warnings other than the usual output.
7920 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7922 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7923 lt_cv_prog_compiler_pic_works=yes
7924 fi
7925 fi
7926 $RM conftest*
d9898ee8 7927
8d138742
CE
7928fi
7929{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7930$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 7931
8d138742
CE
7932if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7933 case $lt_prog_compiler_pic in
7934 "" | " "*) ;;
7935 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7936 esac
7937else
7938 lt_prog_compiler_pic=
7939 lt_prog_compiler_can_build_shared=no
7940fi
d9898ee8 7941
8d138742 7942fi
d9898ee8 7943
d9898ee8 7944
d9898ee8 7945
d9898ee8 7946
d9898ee8 7947
d9898ee8 7948
8d138742
CE
7949#
7950# Check to make sure the static flag actually works.
7951#
7952wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7953{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7954$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7955if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7956 $as_echo_n "(cached) " >&6
7957else
7958 lt_cv_prog_compiler_static_works=no
7959 save_LDFLAGS="$LDFLAGS"
7960 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7961 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7963 # The linker can only warn and ignore the option if not recognized
7964 # So say no if there are warnings
7965 if test -s conftest.err; then
7966 # Append any errors to the config.log.
7967 cat conftest.err 1>&5
7968 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7970 if diff conftest.exp conftest.er2 >/dev/null; then
7971 lt_cv_prog_compiler_static_works=yes
7972 fi
7973 else
7974 lt_cv_prog_compiler_static_works=yes
7975 fi
7976 fi
7977 $RM -r conftest*
7978 LDFLAGS="$save_LDFLAGS"
d9898ee8 7979
8d138742
CE
7980fi
7981{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7982$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 7983
8d138742
CE
7984if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7985 :
7986else
7987 lt_prog_compiler_static=
7988fi
d9898ee8 7989
d9898ee8 7990
d9898ee8 7991
d9898ee8 7992
d9898ee8 7993
d9898ee8 7994
d9898ee8 7995
8d138742
CE
7996 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7997$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7998if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7999 $as_echo_n "(cached) " >&6
8000else
8001 lt_cv_prog_compiler_c_o=no
8002 $RM -r conftest 2>/dev/null
8003 mkdir conftest
8004 cd conftest
8005 mkdir out
8006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8007
8d138742
CE
8008 lt_compiler_flag="-o out/conftest2.$ac_objext"
8009 # Insert the option either (1) after the last *FLAGS variable, or
8010 # (2) before a word containing "conftest.", or (3) at the end.
8011 # Note that $ac_compile itself does not contain backslashes and begins
8012 # with a dollar sign (not a hyphen), so the echo should work correctly.
8013 lt_compile=`echo "$ac_compile" | $SED \
8014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8016 -e 's:$: $lt_compiler_flag:'`
8017 (eval echo "\"\$as_me:8017: $lt_compile\"" >&5)
8018 (eval "$lt_compile" 2>out/conftest.err)
8019 ac_status=$?
8020 cat out/conftest.err >&5
8021 echo "$as_me:8021: \$? = $ac_status" >&5
8022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8023 then
8024 # The compiler can only warn and ignore the option if not recognized
8025 # So say no if there are warnings
8026 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8029 lt_cv_prog_compiler_c_o=yes
8030 fi
8031 fi
8032 chmod u+w . 2>&5
8033 $RM conftest*
8034 # SGI C++ compiler will create directory out/ii_files/ for
8035 # template instantiation
8036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8037 $RM out/* && rmdir out
8038 cd ..
8039 $RM -r conftest
8040 $RM conftest*
d9898ee8 8041
8d138742
CE
8042fi
8043{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8044$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8045
d9898ee8 8046
d9898ee8 8047
d9898ee8 8048
d9898ee8 8049
d9898ee8 8050
8d138742
CE
8051 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8052$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8053if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8054 $as_echo_n "(cached) " >&6
8055else
8056 lt_cv_prog_compiler_c_o=no
8057 $RM -r conftest 2>/dev/null
8058 mkdir conftest
8059 cd conftest
8060 mkdir out
8061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8062
8d138742
CE
8063 lt_compiler_flag="-o out/conftest2.$ac_objext"
8064 # Insert the option either (1) after the last *FLAGS variable, or
8065 # (2) before a word containing "conftest.", or (3) at the end.
8066 # Note that $ac_compile itself does not contain backslashes and begins
8067 # with a dollar sign (not a hyphen), so the echo should work correctly.
8068 lt_compile=`echo "$ac_compile" | $SED \
8069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8071 -e 's:$: $lt_compiler_flag:'`
8072 (eval echo "\"\$as_me:8072: $lt_compile\"" >&5)
8073 (eval "$lt_compile" 2>out/conftest.err)
8074 ac_status=$?
8075 cat out/conftest.err >&5
8076 echo "$as_me:8076: \$? = $ac_status" >&5
8077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8078 then
8079 # The compiler can only warn and ignore the option if not recognized
8080 # So say no if there are warnings
8081 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8082 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8083 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8084 lt_cv_prog_compiler_c_o=yes
8085 fi
8086 fi
8087 chmod u+w . 2>&5
8088 $RM conftest*
8089 # SGI C++ compiler will create directory out/ii_files/ for
8090 # template instantiation
8091 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8092 $RM out/* && rmdir out
8093 cd ..
8094 $RM -r conftest
8095 $RM conftest*
d9898ee8 8096
8d138742
CE
8097fi
8098{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8099$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 8100
d9898ee8 8101
d9898ee8 8102
d9898ee8 8103
8d138742
CE
8104hard_links="nottested"
8105if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8106 # do not overwrite the value of need_locks provided by the user
8107 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8108$as_echo_n "checking if we can lock with hard links... " >&6; }
8109 hard_links=yes
8110 $RM conftest*
8111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8112 touch conftest.a
8113 ln conftest.a conftest.b 2>&5 || hard_links=no
8114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8115 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8116$as_echo "$hard_links" >&6; }
8117 if test "$hard_links" = no; then
8118 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8119$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8120 need_locks=warn
8121 fi
8122else
8123 need_locks=no
8124fi
d9898ee8 8125
d9898ee8 8126
d9898ee8 8127
d9898ee8 8128
d9898ee8 8129
d9898ee8 8130
8d138742
CE
8131 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8132$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8133
8d138742
CE
8134 runpath_var=
8135 allow_undefined_flag=
8136 always_export_symbols=no
8137 archive_cmds=
8138 archive_expsym_cmds=
8139 compiler_needs_object=no
8140 enable_shared_with_static_runtimes=no
8141 export_dynamic_flag_spec=
8142 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8143 hardcode_automatic=no
8144 hardcode_direct=no
8145 hardcode_direct_absolute=no
8146 hardcode_libdir_flag_spec=
8147 hardcode_libdir_flag_spec_ld=
8148 hardcode_libdir_separator=
8149 hardcode_minus_L=no
8150 hardcode_shlibpath_var=unsupported
8151 inherit_rpath=no
8152 link_all_deplibs=unknown
8153 module_cmds=
8154 module_expsym_cmds=
8155 old_archive_from_new_cmds=
8156 old_archive_from_expsyms_cmds=
8157 thread_safe_flag_spec=
8158 whole_archive_flag_spec=
8159 # include_expsyms should be a list of space-separated symbols to be *always*
8160 # included in the symbol list
8161 include_expsyms=
8162 # exclude_expsyms can be an extended regexp of symbols to exclude
8163 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8164 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8165 # as well as any symbol that contains `d'.
8166 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8167 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8168 # platforms (ab)use it in PIC code, but their linkers get confused if
8169 # the symbol is explicitly referenced. Since portable code cannot
8170 # rely on this symbol name, it's probably fine to never include it in
8171 # preloaded symbol tables.
8172 # Exclude shared library initialization/finalization symbols.
8173 extract_expsyms_cmds=
d9898ee8 8174
8d138742
CE
8175 case $host_os in
8176 cygwin* | mingw* | pw32* | cegcc*)
8177 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8178 # When not using gcc, we currently assume that we are using
8179 # Microsoft Visual C++.
8180 if test "$GCC" != yes; then
8181 with_gnu_ld=no
8182 fi
8183 ;;
8184 interix*)
8185 # we just hope/assume this is gcc and not c89 (= MSVC++)
8186 with_gnu_ld=yes
8187 ;;
8188 openbsd*)
8189 with_gnu_ld=no
8190 ;;
8191 esac
d9898ee8 8192
8d138742
CE
8193 ld_shlibs=yes
8194 if test "$with_gnu_ld" = yes; then
8195 # If archive_cmds runs LD, not CC, wlarc should be empty
8196 wlarc='${wl}'
d9898ee8 8197
8d138742
CE
8198 # Set some defaults for GNU ld with shared library support. These
8199 # are reset later if shared libraries are not supported. Putting them
8200 # here allows them to be overridden if necessary.
8201 runpath_var=LD_RUN_PATH
8202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8203 export_dynamic_flag_spec='${wl}--export-dynamic'
8204 # ancient GNU ld didn't support --whole-archive et. al.
8205 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8206 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8207 else
8208 whole_archive_flag_spec=
8209 fi
8210 supports_anon_versioning=no
8211 case `$LD -v 2>&1` in
8212 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8213 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8214 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8215 *\ 2.11.*) ;; # other 2.11 versions
8216 *) supports_anon_versioning=yes ;;
8217 esac
d9898ee8 8218
8d138742
CE
8219 # See if GNU ld supports shared libraries.
8220 case $host_os in
8221 aix[3-9]*)
8222 # On AIX/PPC, the GNU linker is very broken
8223 if test "$host_cpu" != ia64; then
8224 ld_shlibs=no
8225 cat <<_LT_EOF 1>&2
d9898ee8 8226
8d138742
CE
8227*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8228*** to be unable to reliably create shared libraries on AIX.
8229*** Therefore, libtool is disabling shared libraries support. If you
8230*** really care for shared libraries, you may want to modify your PATH
8231*** so that a non-GNU linker is found, and then restart.
d9898ee8 8232
8d138742
CE
8233_LT_EOF
8234 fi
8235 ;;
d9898ee8 8236
8d138742
CE
8237 amigaos*)
8238 case $host_cpu in
8239 powerpc)
8240 # see comment about AmigaOS4 .so support
8241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8242 archive_expsym_cmds=''
8243 ;;
8244 m68k)
8245 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)'
8246 hardcode_libdir_flag_spec='-L$libdir'
8247 hardcode_minus_L=yes
8248 ;;
8249 esac
8250 ;;
d9898ee8 8251
8d138742
CE
8252 beos*)
8253 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8254 allow_undefined_flag=unsupported
8255 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8256 # support --undefined. This deserves some investigation. FIXME
8257 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8258 else
8259 ld_shlibs=no
8260 fi
8261 ;;
d9898ee8 8262
8d138742
CE
8263 cygwin* | mingw* | pw32* | cegcc*)
8264 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8265 # as there is no search path for DLLs.
8266 hardcode_libdir_flag_spec='-L$libdir'
8267 allow_undefined_flag=unsupported
8268 always_export_symbols=no
8269 enable_shared_with_static_runtimes=yes
8270 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 8271
8d138742
CE
8272 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8274 # If the export-symbols file already is a .def file (1st line
8275 # is EXPORTS), use it as is; otherwise, prepend...
8276 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8277 cp $export_symbols $output_objdir/$soname.def;
8278 else
8279 echo EXPORTS > $output_objdir/$soname.def;
8280 cat $export_symbols >> $output_objdir/$soname.def;
8281 fi~
8282 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8283 else
8284 ld_shlibs=no
8285 fi
8286 ;;
d9898ee8 8287
8d138742
CE
8288 interix[3-9]*)
8289 hardcode_direct=no
8290 hardcode_shlibpath_var=no
8291 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8292 export_dynamic_flag_spec='${wl}-E'
8293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8294 # Instead, shared libraries are loaded at an image base (0x10000000 by
8295 # default) and relocated if they conflict, which is a slow very memory
8296 # consuming and fragmenting process. To avoid this, we pick a random,
8297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8298 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8300 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'
8301 ;;
d9898ee8 8302
8d138742
CE
8303 gnu* | linux* | tpf* | k*bsd*-gnu)
8304 tmp_diet=no
8305 if test "$host_os" = linux-dietlibc; then
8306 case $cc_basename in
8307 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8308 esac
8309 fi
8310 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8311 && test "$tmp_diet" = no
8312 then
8313 tmp_addflag=
8314 tmp_sharedflag='-shared'
8315 case $cc_basename,$host_cpu in
8316 pgcc*) # Portland Group C compiler
8317 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'
8318 tmp_addflag=' $pic_flag'
8319 ;;
8320 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8321 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'
8322 tmp_addflag=' $pic_flag -Mnomain' ;;
8323 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8324 tmp_addflag=' -i_dynamic' ;;
8325 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8326 tmp_addflag=' -i_dynamic -nofor_main' ;;
8327 ifc* | ifort*) # Intel Fortran compiler
8328 tmp_addflag=' -nofor_main' ;;
8329 lf95*) # Lahey Fortran 8.1
8330 whole_archive_flag_spec=
8331 tmp_sharedflag='--shared' ;;
8332 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8333 tmp_sharedflag='-qmkshrobj'
8334 tmp_addflag= ;;
8335 esac
8336 case `$CC -V 2>&1 | sed 5q` in
8337 *Sun\ C*) # Sun C 5.9
8338 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8339 compiler_needs_object=yes
8340 tmp_sharedflag='-G' ;;
8341 *Sun\ F*) # Sun Fortran 8.3
8342 tmp_sharedflag='-G' ;;
8343 esac
8344 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8345
8d138742
CE
8346 if test "x$supports_anon_versioning" = xyes; then
8347 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8349 echo "local: *; };" >> $output_objdir/$libname.ver~
8350 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8351 fi
d9898ee8 8352
8d138742
CE
8353 case $cc_basename in
8354 xlf*)
8355 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8356 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8357 hardcode_libdir_flag_spec=
8358 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8359 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8360 if test "x$supports_anon_versioning" = xyes; then
8361 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8362 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8363 echo "local: *; };" >> $output_objdir/$libname.ver~
8364 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8365 fi
8366 ;;
8367 esac
8368 else
8369 ld_shlibs=no
8370 fi
8371 ;;
d9898ee8 8372
8d138742
CE
8373 netbsd*)
8374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8375 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8376 wlarc=
8377 else
8378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8380 fi
8381 ;;
d9898ee8 8382
8d138742
CE
8383 solaris*)
8384 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8385 ld_shlibs=no
8386 cat <<_LT_EOF 1>&2
d9898ee8 8387
8d138742
CE
8388*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8389*** create shared libraries on Solaris systems. Therefore, libtool
8390*** is disabling shared libraries support. We urge you to upgrade GNU
8391*** binutils to release 2.9.1 or newer. Another option is to modify
8392*** your PATH or compiler configuration so that the native linker is
8393*** used, and then restart.
d9898ee8 8394
8d138742
CE
8395_LT_EOF
8396 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8399 else
8400 ld_shlibs=no
8401 fi
8402 ;;
d9898ee8 8403
8d138742
CE
8404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8405 case `$LD -v 2>&1` in
8406 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8407 ld_shlibs=no
8408 cat <<_LT_EOF 1>&2
d9898ee8 8409
8d138742
CE
8410*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8411*** reliably create shared libraries on SCO systems. Therefore, libtool
8412*** is disabling shared libraries support. We urge you to upgrade GNU
8413*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8414*** your PATH or compiler configuration so that the native linker is
8415*** used, and then restart.
d9898ee8 8416
8d138742
CE
8417_LT_EOF
8418 ;;
8419 *)
8420 # For security reasons, it is highly recommended that you always
8421 # use absolute paths for naming shared libraries, and exclude the
8422 # DT_RUNPATH tag from executables and libraries. But doing so
8423 # requires that you compile everything twice, which is a pain.
8424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8428 else
8429 ld_shlibs=no
8430 fi
8431 ;;
8432 esac
8433 ;;
d9898ee8 8434
8d138742
CE
8435 sunos4*)
8436 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8437 wlarc=
8438 hardcode_direct=yes
8439 hardcode_shlibpath_var=no
8440 ;;
d9898ee8 8441
8d138742
CE
8442 *)
8443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8445 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8446 else
8447 ld_shlibs=no
8448 fi
8449 ;;
8450 esac
d9898ee8 8451
8d138742
CE
8452 if test "$ld_shlibs" = no; then
8453 runpath_var=
8454 hardcode_libdir_flag_spec=
8455 export_dynamic_flag_spec=
8456 whole_archive_flag_spec=
8457 fi
8458 else
8459 # PORTME fill in a description of your system's linker (not GNU ld)
8460 case $host_os in
8461 aix3*)
8462 allow_undefined_flag=unsupported
8463 always_export_symbols=yes
8464 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'
8465 # Note: this linker hardcodes the directories in LIBPATH if there
8466 # are no directories specified by -L.
8467 hardcode_minus_L=yes
8468 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8469 # Neither direct hardcoding nor static linking is supported with a
8470 # broken collect2.
8471 hardcode_direct=unsupported
8472 fi
8473 ;;
d9898ee8 8474
8d138742
CE
8475 aix[4-9]*)
8476 if test "$host_cpu" = ia64; then
8477 # On IA64, the linker does run time linking by default, so we don't
8478 # have to do anything special.
8479 aix_use_runtimelinking=no
8480 exp_sym_flag='-Bexport'
8481 no_entry_flag=""
8482 else
8483 # If we're using GNU nm, then we don't want the "-C" option.
8484 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8485 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8486 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'
8487 else
8488 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'
8489 fi
8490 aix_use_runtimelinking=no
d9898ee8 8491
8d138742
CE
8492 # Test if we are trying to use run time linking or normal
8493 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8494 # need to do runtime linking.
8495 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8496 for ld_flag in $LDFLAGS; do
8497 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8498 aix_use_runtimelinking=yes
8499 break
8500 fi
8501 done
8502 ;;
8503 esac
d9898ee8 8504
8d138742
CE
8505 exp_sym_flag='-bexport'
8506 no_entry_flag='-bnoentry'
8507 fi
d9898ee8 8508
8d138742
CE
8509 # When large executables or shared objects are built, AIX ld can
8510 # have problems creating the table of contents. If linking a library
8511 # or program results in "error TOC overflow" add -mminimal-toc to
8512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d9898ee8 8514
8d138742
CE
8515 archive_cmds=''
8516 hardcode_direct=yes
8517 hardcode_direct_absolute=yes
8518 hardcode_libdir_separator=':'
8519 link_all_deplibs=yes
8520 file_list_spec='${wl}-f,'
d9898ee8 8521
8d138742
CE
8522 if test "$GCC" = yes; then
8523 case $host_os in aix4.[012]|aix4.[012].*)
8524 # We only want to do this on AIX 4.2 and lower, the check
8525 # below for broken collect2 doesn't work under 4.3+
8526 collect2name=`${CC} -print-prog-name=collect2`
8527 if test -f "$collect2name" &&
8528 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8529 then
8530 # We have reworked collect2
8531 :
8532 else
8533 # We have old collect2
8534 hardcode_direct=unsupported
8535 # It fails to find uninstalled libraries when the uninstalled
8536 # path is not listed in the libpath. Setting hardcode_minus_L
8537 # to unsupported forces relinking
8538 hardcode_minus_L=yes
8539 hardcode_libdir_flag_spec='-L$libdir'
8540 hardcode_libdir_separator=
8541 fi
8542 ;;
8543 esac
8544 shared_flag='-shared'
8545 if test "$aix_use_runtimelinking" = yes; then
8546 shared_flag="$shared_flag "'${wl}-G'
8547 fi
8548 else
8549 # not using gcc
8550 if test "$host_cpu" = ia64; then
8551 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8552 # chokes on -Wl,-G. The following line is correct:
8553 shared_flag='-G'
8554 else
8555 if test "$aix_use_runtimelinking" = yes; then
8556 shared_flag='${wl}-G'
8557 else
8558 shared_flag='${wl}-bM:SRE'
8559 fi
8560 fi
8561 fi
d9898ee8 8562
8d138742
CE
8563 export_dynamic_flag_spec='${wl}-bexpall'
8564 # It seems that -bexpall does not export symbols beginning with
8565 # underscore (_), so it is better to generate a list of symbols to export.
8566 always_export_symbols=yes
8567 if test "$aix_use_runtimelinking" = yes; then
8568 # Warning - without using the other runtime loading flags (-brtl),
8569 # -berok will link without error, but may produce a broken library.
8570 allow_undefined_flag='-berok'
8571 # Determine the default libpath from the value encoded in an
8572 # empty executable.
8573 cat >conftest.$ac_ext <<_ACEOF
8574/* confdefs.h. */
8575_ACEOF
8576cat confdefs.h >>conftest.$ac_ext
8577cat >>conftest.$ac_ext <<_ACEOF
8578/* end confdefs.h. */
d9898ee8 8579
8d138742
CE
8580int
8581main ()
8582{
d9898ee8 8583
8d138742
CE
8584 ;
8585 return 0;
8586}
8587_ACEOF
8588rm -f conftest.$ac_objext conftest$ac_exeext
8589if { (ac_try="$ac_link"
8590case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593esac
8594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8595$as_echo "$ac_try_echo") >&5
8596 (eval "$ac_link") 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && {
8603 test -z "$ac_c_werror_flag" ||
8604 test ! -s conftest.err
8605 } && test -s conftest$ac_exeext && {
8606 test "$cross_compiling" = yes ||
8607 $as_test_x conftest$ac_exeext
8608 }; then
d9898ee8 8609
8d138742
CE
8610lt_aix_libpath_sed='
8611 /Import File Strings/,/^$/ {
8612 /^0/ {
8613 s/^0 *\(.*\)$/\1/
8614 p
8615 }
8616 }'
8617aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8618# Check for a 64-bit object if we didn't find anything.
8619if test -z "$aix_libpath"; then
8620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8621fi
8622else
8623 $as_echo "$as_me: failed program was:" >&5
8624sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8625
d9898ee8 8626
8d138742 8627fi
d9898ee8 8628
8d138742
CE
8629rm -rf conftest.dSYM
8630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8631 conftest$ac_exeext conftest.$ac_ext
8632if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d9898ee8 8633
8d138742
CE
8634 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8635 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8636 else
8637 if test "$host_cpu" = ia64; then
8638 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8639 allow_undefined_flag="-z nodefs"
8640 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"
8641 else
8642 # Determine the default libpath from the value encoded in an
8643 # empty executable.
8644 cat >conftest.$ac_ext <<_ACEOF
8645/* confdefs.h. */
8646_ACEOF
8647cat confdefs.h >>conftest.$ac_ext
8648cat >>conftest.$ac_ext <<_ACEOF
8649/* end confdefs.h. */
d9898ee8 8650
8d138742
CE
8651int
8652main ()
8653{
d9898ee8 8654
8d138742
CE
8655 ;
8656 return 0;
8657}
8658_ACEOF
8659rm -f conftest.$ac_objext conftest$ac_exeext
8660if { (ac_try="$ac_link"
8661case "(($ac_try" in
8662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663 *) ac_try_echo=$ac_try;;
8664esac
8665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8666$as_echo "$ac_try_echo") >&5
8667 (eval "$ac_link") 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && {
8674 test -z "$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 } && test -s conftest$ac_exeext && {
8677 test "$cross_compiling" = yes ||
8678 $as_test_x conftest$ac_exeext
8679 }; then
d9898ee8 8680
8d138742
CE
8681lt_aix_libpath_sed='
8682 /Import File Strings/,/^$/ {
8683 /^0/ {
8684 s/^0 *\(.*\)$/\1/
8685 p
8686 }
8687 }'
8688aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8689# Check for a 64-bit object if we didn't find anything.
8690if test -z "$aix_libpath"; then
8691 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8692fi
8693else
8694 $as_echo "$as_me: failed program was:" >&5
8695sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 8696
d9898ee8 8697
8d138742 8698fi
d9898ee8 8699
8d138742
CE
8700rm -rf conftest.dSYM
8701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8702 conftest$ac_exeext conftest.$ac_ext
8703if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d9898ee8 8704
8d138742
CE
8705 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8706 # Warning - without using the other run time loading flags,
8707 # -berok will link without error, but may produce a broken library.
8708 no_undefined_flag=' ${wl}-bernotok'
8709 allow_undefined_flag=' ${wl}-berok'
8710 # Exported symbols can be pulled into shared objects from archives
8711 whole_archive_flag_spec='$convenience'
8712 archive_cmds_need_lc=yes
8713 # This is similar to how AIX traditionally builds its shared libraries.
8714 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'
8715 fi
8716 fi
8717 ;;
d9898ee8 8718
8d138742
CE
8719 amigaos*)
8720 case $host_cpu in
8721 powerpc)
8722 # see comment about AmigaOS4 .so support
8723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8724 archive_expsym_cmds=''
8725 ;;
8726 m68k)
8727 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)'
8728 hardcode_libdir_flag_spec='-L$libdir'
8729 hardcode_minus_L=yes
8730 ;;
8731 esac
8732 ;;
d9898ee8 8733
8d138742
CE
8734 bsdi[45]*)
8735 export_dynamic_flag_spec=-rdynamic
8736 ;;
d9898ee8 8737
8d138742
CE
8738 cygwin* | mingw* | pw32* | cegcc*)
8739 # When not using gcc, we currently assume that we are using
8740 # Microsoft Visual C++.
8741 # hardcode_libdir_flag_spec is actually meaningless, as there is
8742 # no search path for DLLs.
8743 hardcode_libdir_flag_spec=' '
8744 allow_undefined_flag=unsupported
8745 # Tell ltmain to make .lib files, not .a files.
8746 libext=lib
8747 # Tell ltmain to make .dll files, not .so files.
8748 shrext_cmds=".dll"
8749 # FIXME: Setting linknames here is a bad hack.
8750 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8751 # The linker will automatically build a .lib file if we build a DLL.
8752 old_archive_from_new_cmds='true'
8753 # FIXME: Should let the user specify the lib program.
8754 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8755 fix_srcfile_path='`cygpath -w "$srcfile"`'
8756 enable_shared_with_static_runtimes=yes
8757 ;;
d9898ee8 8758
8d138742 8759 darwin* | rhapsody*)
d9898ee8 8760
d9898ee8 8761
8d138742
CE
8762 archive_cmds_need_lc=no
8763 hardcode_direct=no
8764 hardcode_automatic=yes
8765 hardcode_shlibpath_var=unsupported
8766 whole_archive_flag_spec=''
8767 link_all_deplibs=yes
8768 allow_undefined_flag="$_lt_dar_allow_undefined"
8769 case $cc_basename in
8770 ifort*) _lt_dar_can_shared=yes ;;
8771 *) _lt_dar_can_shared=$GCC ;;
d9898ee8 8772 esac
8d138742
CE
8773 if test "$_lt_dar_can_shared" = "yes"; then
8774 output_verbose_link_cmd=echo
8775 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8776 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8777 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8778 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
d9898ee8 8779
8d138742
CE
8780 else
8781 ld_shlibs=no
d9898ee8 8782 fi
d9898ee8 8783
8d138742 8784 ;;
d9898ee8 8785
8d138742
CE
8786 dgux*)
8787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8788 hardcode_libdir_flag_spec='-L$libdir'
8789 hardcode_shlibpath_var=no
8790 ;;
d9898ee8 8791
8d138742
CE
8792 freebsd1*)
8793 ld_shlibs=no
8794 ;;
d9898ee8 8795
8d138742
CE
8796 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8797 # support. Future versions do this automatically, but an explicit c++rt0.o
8798 # does not break anything, and helps significantly (at the cost of a little
8799 # extra space).
8800 freebsd2.2*)
8801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8802 hardcode_libdir_flag_spec='-R$libdir'
8803 hardcode_direct=yes
8804 hardcode_shlibpath_var=no
8805 ;;
dd184caf 8806
8d138742
CE
8807 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8808 freebsd2*)
8809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8810 hardcode_direct=yes
8811 hardcode_minus_L=yes
8812 hardcode_shlibpath_var=no
8813 ;;
d9898ee8 8814
8d138742
CE
8815 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8816 freebsd* | dragonfly*)
8817 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8818 hardcode_libdir_flag_spec='-R$libdir'
8819 hardcode_direct=yes
8820 hardcode_shlibpath_var=no
8821 ;;
d9898ee8 8822
8d138742
CE
8823 hpux9*)
8824 if test "$GCC" = yes; then
8825 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'
8826 else
8827 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'
8828 fi
8829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8830 hardcode_libdir_separator=:
8831 hardcode_direct=yes
d9898ee8 8832
8d138742
CE
8833 # hardcode_minus_L: Not really in the search PATH,
8834 # but as the default location of the library.
8835 hardcode_minus_L=yes
8836 export_dynamic_flag_spec='${wl}-E'
8837 ;;
d9898ee8 8838
8d138742
CE
8839 hpux10*)
8840 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8841 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8842 else
8843 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8844 fi
8845 if test "$with_gnu_ld" = no; then
8846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8847 hardcode_libdir_flag_spec_ld='+b $libdir'
8848 hardcode_libdir_separator=:
8849 hardcode_direct=yes
8850 hardcode_direct_absolute=yes
8851 export_dynamic_flag_spec='${wl}-E'
8852 # hardcode_minus_L: Not really in the search PATH,
8853 # but as the default location of the library.
8854 hardcode_minus_L=yes
8855 fi
8856 ;;
d9898ee8 8857
8d138742
CE
8858 hpux11*)
8859 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8860 case $host_cpu in
8861 hppa*64*)
8862 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8863 ;;
8864 ia64*)
8865 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8866 ;;
8867 *)
8868 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8869 ;;
8870 esac
d9898ee8 8871 else
8d138742
CE
8872 case $host_cpu in
8873 hppa*64*)
8874 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8875 ;;
8876 ia64*)
8877 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8878 ;;
8879 *)
8880 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8881 ;;
8882 esac
d9898ee8 8883 fi
8d138742
CE
8884 if test "$with_gnu_ld" = no; then
8885 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8886 hardcode_libdir_separator=:
d9898ee8 8887
8d138742
CE
8888 case $host_cpu in
8889 hppa*64*|ia64*)
8890 hardcode_direct=no
8891 hardcode_shlibpath_var=no
8892 ;;
8893 *)
8894 hardcode_direct=yes
8895 hardcode_direct_absolute=yes
8896 export_dynamic_flag_spec='${wl}-E'
d9898ee8 8897
8d138742
CE
8898 # hardcode_minus_L: Not really in the search PATH,
8899 # but as the default location of the library.
8900 hardcode_minus_L=yes
8901 ;;
8902 esac
8903 fi
8904 ;;
d9898ee8 8905
8d138742
CE
8906 irix5* | irix6* | nonstopux*)
8907 if test "$GCC" = yes; then
8908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8909 # Try to use the -exported_symbol ld option, if it does not
8910 # work, assume that -exports_file does not work either and
8911 # implicitly export all symbols.
8912 save_LDFLAGS="$LDFLAGS"
8913 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8914 cat >conftest.$ac_ext <<_ACEOF
8915int foo(void) {}
d9898ee8 8916_ACEOF
8917rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8918if { (ac_try="$ac_link"
8919case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922esac
8d138742
CE
8923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8924$as_echo "$ac_try_echo") >&5
dd184caf 8925 (eval "$ac_link") 2>conftest.er1
d9898ee8 8926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8d138742 8930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8931 (exit $ac_status); } && {
8d138742 8932 test -z "$ac_c_werror_flag" ||
dd184caf 8933 test ! -s conftest.err
8d138742
CE
8934 } && test -s conftest$ac_exeext && {
8935 test "$cross_compiling" = yes ||
8936 $as_test_x conftest$ac_exeext
8937 }; then
8938 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d9898ee8 8939
d9898ee8 8940else
8d138742 8941 $as_echo "$as_me: failed program was:" >&5
d9898ee8 8942sed 's/^/| /' conftest.$ac_ext >&5
8943
dd184caf 8944
d9898ee8 8945fi
dd184caf 8946
8d138742 8947rm -rf conftest.dSYM
dd184caf 8948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8949 conftest$ac_exeext conftest.$ac_ext
8d138742 8950 LDFLAGS="$save_LDFLAGS"
d9898ee8 8951 else
8d138742
CE
8952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8954 fi
8955 archive_cmds_need_lc='no'
8956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8957 hardcode_libdir_separator=:
8958 inherit_rpath=yes
8959 link_all_deplibs=yes
8960 ;;
d9898ee8 8961
8d138742
CE
8962 netbsd*)
8963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8965 else
8966 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
d9898ee8 8967 fi
8d138742
CE
8968 hardcode_libdir_flag_spec='-R$libdir'
8969 hardcode_direct=yes
8970 hardcode_shlibpath_var=no
8971 ;;
d9898ee8 8972
8d138742
CE
8973 newsos6)
8974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8975 hardcode_direct=yes
8976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8977 hardcode_libdir_separator=:
8978 hardcode_shlibpath_var=no
8979 ;;
d9898ee8 8980
8d138742
CE
8981 *nto* | *qnx*)
8982 ;;
d9898ee8 8983
8d138742
CE
8984 openbsd*)
8985 if test -f /usr/libexec/ld.so; then
8986 hardcode_direct=yes
8987 hardcode_shlibpath_var=no
8988 hardcode_direct_absolute=yes
8989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8991 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8993 export_dynamic_flag_spec='${wl}-E'
8994 else
8995 case $host_os in
8996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8998 hardcode_libdir_flag_spec='-R$libdir'
8999 ;;
9000 *)
9001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9002 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9003 ;;
9004 esac
9005 fi
d9898ee8 9006 else
8d138742 9007 ld_shlibs=no
d9898ee8 9008 fi
d9898ee8 9009 ;;
8d138742
CE
9010
9011 os2*)
9012 hardcode_libdir_flag_spec='-L$libdir'
9013 hardcode_minus_L=yes
9014 allow_undefined_flag=unsupported
9015 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'
9016 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
d9898ee8 9017 ;;
8d138742
CE
9018
9019 osf3*)
9020 if test "$GCC" = yes; then
9021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9022 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d9898ee8 9023 else
8d138742
CE
9024 allow_undefined_flag=' -expect_unresolved \*'
9025 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
d9898ee8 9026 fi
8d138742
CE
9027 archive_cmds_need_lc='no'
9028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029 hardcode_libdir_separator=:
d9898ee8 9030 ;;
d9898ee8 9031
8d138742
CE
9032 osf4* | osf5*) # as osf3* with the addition of -msym flag
9033 if test "$GCC" = yes; then
9034 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9035 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9037 else
9038 allow_undefined_flag=' -expect_unresolved \*'
9039 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9040 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9041 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9042
9043 # Both c and cxx compiler support -rpath directly
9044 hardcode_libdir_flag_spec='-rpath $libdir'
9045 fi
9046 archive_cmds_need_lc='no'
9047 hardcode_libdir_separator=:
d9898ee8 9048 ;;
d9898ee8 9049
8d138742
CE
9050 solaris*)
9051 no_undefined_flag=' -z defs'
9052 if test "$GCC" = yes; then
9053 wlarc='${wl}'
9054 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9056 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9057 else
9058 case `$CC -V 2>&1` in
9059 *"Compilers 5.0"*)
9060 wlarc=''
9061 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9062 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9063 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
d9898ee8 9064 ;;
9065 *)
8d138742
CE
9066 wlarc='${wl}'
9067 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9068 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9069 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d9898ee8 9070 ;;
9071 esac
8d138742
CE
9072 fi
9073 hardcode_libdir_flag_spec='-R$libdir'
9074 hardcode_shlibpath_var=no
9075 case $host_os in
9076 solaris2.[0-5] | solaris2.[0-5].*) ;;
d9898ee8 9077 *)
8d138742
CE
9078 # The compiler driver will combine and reorder linker options,
9079 # but understands `-z linker_flag'. GCC discards it without `$wl',
9080 # but is careful enough not to reorder.
9081 # Supported since Solaris 2.6 (maybe 2.5.1?)
9082 if test "$GCC" = yes; then
9083 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
d9898ee8 9084 else
8d138742 9085 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
d9898ee8 9086 fi
d9898ee8 9087 ;;
8d138742
CE
9088 esac
9089 link_all_deplibs=yes
9090 ;;
9091
9092 sunos4*)
9093 if test "x$host_vendor" = xsequent; then
9094 # Use $CC to link under sequent, because it throws in some extra .o
9095 # files that make .init and .fini sections work.
9096 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9097 else
9098 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9099 fi
9100 hardcode_libdir_flag_spec='-L$libdir'
9101 hardcode_direct=yes
9102 hardcode_minus_L=yes
9103 hardcode_shlibpath_var=no
9104 ;;
9105
9106 sysv4)
9107 case $host_vendor in
9108 sni)
9109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9110 hardcode_direct=yes # is this really true???
d9898ee8 9111 ;;
8d138742
CE
9112 siemens)
9113 ## LD is ld it makes a PLAMLIB
9114 ## CC just makes a GrossModule.
9115 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9116 reload_cmds='$CC -r -o $output$reload_objs'
9117 hardcode_direct=no
d9898ee8 9118 ;;
8d138742
CE
9119 motorola)
9120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9121 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9122 ;;
9123 esac
9124 runpath_var='LD_RUN_PATH'
9125 hardcode_shlibpath_var=no
9126 ;;
9127
9128 sysv4.3*)
9129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9130 hardcode_shlibpath_var=no
9131 export_dynamic_flag_spec='-Bexport'
9132 ;;
d9898ee8 9133
8d138742
CE
9134 sysv4*MP*)
9135 if test -d /usr/nec; then
9136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9137 hardcode_shlibpath_var=no
d9898ee8 9138 runpath_var=LD_RUN_PATH
8d138742
CE
9139 hardcode_runpath_var=yes
9140 ld_shlibs=yes
ac40fd9e 9141 fi
8d138742 9142 ;;
d9898ee8 9143
8d138742
CE
9144 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9145 no_undefined_flag='${wl}-z,text'
9146 archive_cmds_need_lc=no
9147 hardcode_shlibpath_var=no
9148 runpath_var='LD_RUN_PATH'
d9898ee8 9149
8d138742
CE
9150 if test "$GCC" = yes; then
9151 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9153 else
9154 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9156 fi
9157 ;;
d9898ee8 9158
8d138742
CE
9159 sysv5* | sco3.2v5* | sco5v6*)
9160 # Note: We can NOT use -z defs as we might desire, because we do not
9161 # link with -lc, and that would cause any symbols used from libc to
9162 # always be unresolved, which means just about no library would
9163 # ever link correctly. If we're not using GNU ld we use -z text
9164 # though, which does catch some bad symbols but isn't as heavy-handed
9165 # as -z defs.
9166 no_undefined_flag='${wl}-z,text'
9167 allow_undefined_flag='${wl}-z,nodefs'
9168 archive_cmds_need_lc=no
9169 hardcode_shlibpath_var=no
9170 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9171 hardcode_libdir_separator=':'
9172 link_all_deplibs=yes
9173 export_dynamic_flag_spec='${wl}-Bexport'
9174 runpath_var='LD_RUN_PATH'
d9898ee8 9175
8d138742
CE
9176 if test "$GCC" = yes; then
9177 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9178 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9179 else
9180 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9181 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9182 fi
9183 ;;
d9898ee8 9184
8d138742
CE
9185 uts4*)
9186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187 hardcode_libdir_flag_spec='-L$libdir'
9188 hardcode_shlibpath_var=no
9189 ;;
d9898ee8 9190
8d138742
CE
9191 *)
9192 ld_shlibs=no
9193 ;;
d9898ee8 9194 esac
d9898ee8 9195
8d138742
CE
9196 if test x$host_vendor = xsni; then
9197 case $host in
9198 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9199 export_dynamic_flag_spec='${wl}-Blargedynsym'
9200 ;;
9201 esac
9202 fi
9203 fi
d9898ee8 9204
8d138742
CE
9205{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9206$as_echo "$ld_shlibs" >&6; }
9207test "$ld_shlibs" = no && can_build_shared=no
d9898ee8 9208
8d138742 9209with_gnu_ld=$with_gnu_ld
d9898ee8 9210
d9898ee8 9211
d9898ee8 9212
d9898ee8 9213
d9898ee8 9214
d9898ee8 9215
9216
d9898ee8 9217
d9898ee8 9218
d9898ee8 9219
d9898ee8 9220
d9898ee8 9221
d9898ee8 9222
d9898ee8 9223
d9898ee8 9224
8d138742
CE
9225#
9226# Do we need to explicitly link libc?
9227#
9228case "x$archive_cmds_need_lc" in
9229x|xyes)
9230 # Assume -lc should be added
9231 archive_cmds_need_lc=yes
d9898ee8 9232
8d138742
CE
9233 if test "$enable_shared" = yes && test "$GCC" = yes; then
9234 case $archive_cmds in
9235 *'~'*)
9236 # FIXME: we may have to deal with multi-command sequences.
ac40fd9e 9237 ;;
8d138742
CE
9238 '$CC '*)
9239 # Test whether the compiler implicitly links with -lc since on some
9240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9241 # to ld, don't add -lc before -lgcc.
9242 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9243$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9244 $RM conftest*
9245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ac40fd9e 9246
8d138742
CE
9247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9248 (eval $ac_compile) 2>&5
9249 ac_status=$?
9250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } 2>conftest.err; then
9252 soname=conftest
9253 lib=conftest
9254 libobjs=conftest.$ac_objext
9255 deplibs=
9256 wl=$lt_prog_compiler_wl
9257 pic_flag=$lt_prog_compiler_pic
9258 compiler_flags=-v
9259 linker_flags=-v
9260 verstring=
9261 output_objdir=.
9262 libname=conftest
9263 lt_save_allow_undefined_flag=$allow_undefined_flag
9264 allow_undefined_flag=
9265 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9266 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9267 ac_status=$?
9268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }
9270 then
9271 archive_cmds_need_lc=no
9272 else
9273 archive_cmds_need_lc=yes
9274 fi
9275 allow_undefined_flag=$lt_save_allow_undefined_flag
9276 else
9277 cat conftest.err 1>&5
9278 fi
9279 $RM conftest*
9280 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9281$as_echo "$archive_cmds_need_lc" >&6; }
ac40fd9e 9282 ;;
9283 esac
8d138742 9284 fi
d9898ee8 9285 ;;
9286esac
9287
9288
d9898ee8 9289
d9898ee8 9290
d9898ee8 9291
d9898ee8 9292
d9898ee8 9293
d9898ee8 9294
d9898ee8 9295
d9898ee8 9296
d9898ee8 9297
d9898ee8 9298
d9898ee8 9299
d9898ee8 9300
d9898ee8 9301
d9898ee8 9302
9303
d9898ee8 9304
d9898ee8 9305
d9898ee8 9306
9307
d9898ee8 9308
d9898ee8 9309
d9898ee8 9310
d9898ee8 9311
d9898ee8 9312
d9898ee8 9313
d9898ee8 9314
ac40fd9e 9315
8d138742
CE
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9445$as_echo_n "checking dynamic linker characteristics... " >&6; }
9446
9447if test "$GCC" = yes; then
9448 case $host_os in
9449 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9450 *) lt_awk_arg="/^libraries:/" ;;
9451 esac
9452 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9453 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9454 # if the path contains ";" then we assume it to be the separator
9455 # otherwise default to the standard path separator (i.e. ":") - it is
9456 # assumed that no part of a normal pathname contains ";" but that should
9457 # okay in the real world where ";" in dirpaths is itself problematic.
9458 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9459 else
9460 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9461 fi
9462 # Ok, now we have the path, separated by spaces, we can step through it
9463 # and add multilib dir if necessary.
9464 lt_tmp_lt_search_path_spec=
9465 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9466 for lt_sys_path in $lt_search_path_spec; do
9467 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9468 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9469 else
9470 test -d "$lt_sys_path" && \
9471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9472 fi
9473 done
9474 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9475BEGIN {RS=" "; FS="/|\n";} {
9476 lt_foo="";
9477 lt_count=0;
9478 for (lt_i = NF; lt_i > 0; lt_i--) {
9479 if ($lt_i != "" && $lt_i != ".") {
9480 if ($lt_i == "..") {
9481 lt_count++;
9482 } else {
9483 if (lt_count == 0) {
9484 lt_foo="/" $lt_i lt_foo;
9485 } else {
9486 lt_count--;
9487 }
9488 }
9489 }
9490 }
9491 if (lt_foo != "") { lt_freq[lt_foo]++; }
9492 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9493}'`
9494 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9495else
9496 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9497fi
9498library_names_spec=
9499libname_spec='lib$name'
9500soname_spec=
9501shrext_cmds=".so"
9502postinstall_cmds=
9503postuninstall_cmds=
9504finish_cmds=
9505finish_eval=
9506shlibpath_var=
9507shlibpath_overrides_runpath=unknown
9508version_type=none
9509dynamic_linker="$host_os ld.so"
9510sys_lib_dlsearch_path_spec="/lib /usr/lib"
9511need_lib_prefix=unknown
d9898ee8 9512hardcode_into_libs=no
9513
9514# when you set need_version to no, make sure it does not cause -set_version
9515# flags to be left without arguments
9516need_version=unknown
9517
9518case $host_os in
9519aix3*)
9520 version_type=linux
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9522 shlibpath_var=LIBPATH
9523
9524 # AIX 3 has no versioning support, so we append a major version to the name.
9525 soname_spec='${libname}${release}${shared_ext}$major'
9526 ;;
9527
8d138742 9528aix[4-9]*)
d9898ee8 9529 version_type=linux
9530 need_lib_prefix=no
9531 need_version=no
9532 hardcode_into_libs=yes
9533 if test "$host_cpu" = ia64; then
9534 # AIX 5 supports IA64
9535 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9536 shlibpath_var=LD_LIBRARY_PATH
9537 else
9538 # With GCC up to 2.95.x, collect2 would create an import file
9539 # for dependence libraries. The import file would start with
9540 # the line `#! .'. This would cause the generated library to
9541 # depend on `.', always an invalid library. This was fixed in
9542 # development snapshots of GCC prior to 3.0.
9543 case $host_os in
9544 aix4 | aix4.[01] | aix4.[01].*)
9545 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9546 echo ' yes '
8d138742 9547 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 9548 :
9549 else
9550 can_build_shared=no
9551 fi
9552 ;;
9553 esac
9554 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9555 # soname into executable. Probably we can add versioning support to
9556 # collect2, so additional links can be useful in future.
9557 if test "$aix_use_runtimelinking" = yes; then
9558 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9559 # instead of lib<name>.a to let people know that these are not
9560 # typical AIX shared libraries.
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562 else
9563 # We preserve .a as extension for shared libraries through AIX4.2
9564 # and later when we are not doing run time linking.
9565 library_names_spec='${libname}${release}.a $libname.a'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 fi
9568 shlibpath_var=LIBPATH
9569 fi
9570 ;;
9571
9572amigaos*)
8d138742
CE
9573 case $host_cpu in
9574 powerpc)
9575 # Since July 2007 AmigaOS4 officially supports .so libraries.
9576 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 ;;
9579 m68k)
9580 library_names_spec='$libname.ixlibrary $libname.a'
9581 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9582 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'
9583 ;;
9584 esac
d9898ee8 9585 ;;
9586
9587beos*)
9588 library_names_spec='${libname}${shared_ext}'
9589 dynamic_linker="$host_os ld.so"
9590 shlibpath_var=LIBRARY_PATH
9591 ;;
9592
9593bsdi[45]*)
9594 version_type=linux
9595 need_version=no
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597 soname_spec='${libname}${release}${shared_ext}$major'
9598 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9599 shlibpath_var=LD_LIBRARY_PATH
9600 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9601 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9602 # the default ld.so.conf also contains /usr/contrib/lib and
9603 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9604 # libtool to hard-code these into programs
9605 ;;
9606
8d138742 9607cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 9608 version_type=windows
9609 shrext_cmds=".dll"
9610 need_version=no
9611 need_lib_prefix=no
9612
9613 case $GCC,$host_os in
8d138742 9614 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d9898ee8 9615 library_names_spec='$libname.dll.a'
9616 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9617 postinstall_cmds='base_file=`basename \${file}`~
8d138742 9618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 9619 dldir=$destdir/`dirname \$dlpath`~
9620 test -d \$dldir || mkdir -p \$dldir~
9621 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
9622 chmod a+x \$dldir/$dlname~
9623 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9624 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9625 fi'
d9898ee8 9626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9627 dlpath=$dir/\$dldll~
8d138742 9628 $RM \$dlpath'
d9898ee8 9629 shlibpath_overrides_runpath=yes
9630
9631 case $host_os in
9632 cygwin*)
9633 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9634 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9635 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9636 ;;
8d138742 9637 mingw* | cegcc*)
d9898ee8 9638 # MinGW DLLs use traditional 'lib' prefix
9639 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8d138742
CE
9640 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9641 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
d9898ee8 9642 # It is most probably a Windows format PATH printed by
9643 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9644 # path with ; separators, and with drive letters. We can handle the
9645 # drive letters (cygwin fileutils understands them), so leave them,
9646 # especially as we might pass files found there to a mingw objdump,
9647 # which wouldn't understand a cygwinified path. Ahh.
8d138742 9648 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 9649 else
8d138742 9650 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 9651 fi
9652 ;;
9653 pw32*)
9654 # pw32 DLLs use 'pw' prefix rather than 'lib'
9655 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9656 ;;
9657 esac
9658 ;;
9659
9660 *)
9661 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9662 ;;
9663 esac
9664 dynamic_linker='Win32 ld.exe'
9665 # FIXME: first we should search . and the directory the executable is in
9666 shlibpath_var=PATH
9667 ;;
9668
9669darwin* | rhapsody*)
9670 dynamic_linker="$host_os dyld"
9671 version_type=darwin
9672 need_lib_prefix=no
9673 need_version=no
8d138742 9674 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 9675 soname_spec='${libname}${release}${major}$shared_ext'
9676 shlibpath_overrides_runpath=yes
9677 shlibpath_var=DYLD_LIBRARY_PATH
9678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 9679
8d138742 9680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 9681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9682 ;;
9683
9684dgux*)
9685 version_type=linux
9686 need_lib_prefix=no
9687 need_version=no
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 ;;
9692
9693freebsd1*)
9694 dynamic_linker=no
9695 ;;
9696
d9898ee8 9697freebsd* | dragonfly*)
9698 # DragonFly does not have aout. When/if they implement a new
9699 # versioning mechanism, adjust this.
9700 if test -x /usr/bin/objformat; then
9701 objformat=`/usr/bin/objformat`
9702 else
9703 case $host_os in
9704 freebsd[123]*) objformat=aout ;;
9705 *) objformat=elf ;;
9706 esac
9707 fi
9708 version_type=freebsd-$objformat
9709 case $version_type in
9710 freebsd-elf*)
9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9712 need_version=no
9713 need_lib_prefix=no
9714 ;;
9715 freebsd-*)
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9717 need_version=yes
9718 ;;
9719 esac
9720 shlibpath_var=LD_LIBRARY_PATH
9721 case $host_os in
9722 freebsd2*)
9723 shlibpath_overrides_runpath=yes
9724 ;;
9725 freebsd3.[01]* | freebsdelf3.[01]*)
9726 shlibpath_overrides_runpath=yes
9727 hardcode_into_libs=yes
9728 ;;
9729 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9730 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9731 shlibpath_overrides_runpath=no
9732 hardcode_into_libs=yes
9733 ;;
ac40fd9e 9734 *) # from 4.6 on, and DragonFly
d9898ee8 9735 shlibpath_overrides_runpath=yes
9736 hardcode_into_libs=yes
9737 ;;
9738 esac
9739 ;;
9740
9741gnu*)
9742 version_type=linux
9743 need_lib_prefix=no
9744 need_version=no
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9746 soname_spec='${libname}${release}${shared_ext}$major'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 hardcode_into_libs=yes
9749 ;;
9750
9751hpux9* | hpux10* | hpux11*)
9752 # Give a soname corresponding to the major version so that dld.sl refuses to
9753 # link against other versions.
9754 version_type=sunos
9755 need_lib_prefix=no
9756 need_version=no
9757 case $host_cpu in
9758 ia64*)
9759 shrext_cmds='.so'
9760 hardcode_into_libs=yes
9761 dynamic_linker="$host_os dld.so"
9762 shlibpath_var=LD_LIBRARY_PATH
9763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 if test "X$HPUX_IA64_MODE" = X32; then
9767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9768 else
9769 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9770 fi
9771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9772 ;;
8d138742
CE
9773 hppa*64*)
9774 shrext_cmds='.sl'
9775 hardcode_into_libs=yes
9776 dynamic_linker="$host_os dld.sl"
9777 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9783 ;;
9784 *)
d9898ee8 9785 shrext_cmds='.sl'
9786 dynamic_linker="$host_os dld.sl"
9787 shlibpath_var=SHLIB_PATH
9788 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 ;;
9792 esac
9793 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9794 postinstall_cmds='chmod 555 $lib'
9795 ;;
9796
ac40fd9e 9797interix[3-9]*)
d9898ee8 9798 version_type=linux
9799 need_lib_prefix=no
9800 need_version=no
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9803 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9804 shlibpath_var=LD_LIBRARY_PATH
9805 shlibpath_overrides_runpath=no
9806 hardcode_into_libs=yes
9807 ;;
9808
9809irix5* | irix6* | nonstopux*)
9810 case $host_os in
9811 nonstopux*) version_type=nonstopux ;;
9812 *)
9813 if test "$lt_cv_prog_gnu_ld" = yes; then
9814 version_type=linux
9815 else
9816 version_type=irix
9817 fi ;;
9818 esac
9819 need_lib_prefix=no
9820 need_version=no
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9823 case $host_os in
9824 irix5* | nonstopux*)
9825 libsuff= shlibsuff=
9826 ;;
9827 *)
9828 case $LD in # libtool.m4 will add one of these switches to LD
9829 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9830 libsuff= shlibsuff= libmagic=32-bit;;
9831 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9832 libsuff=32 shlibsuff=N32 libmagic=N32;;
9833 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9834 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9835 *) libsuff= shlibsuff= libmagic=never-match;;
9836 esac
9837 ;;
9838 esac
9839 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9840 shlibpath_overrides_runpath=no
9841 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9842 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9843 hardcode_into_libs=yes
9844 ;;
9845
9846# No shared lib support for Linux oldld, aout, or coff.
9847linux*oldld* | linux*aout* | linux*coff*)
9848 dynamic_linker=no
9849 ;;
9850
9851# This must be Linux ELF.
ac40fd9e 9852linux* | k*bsd*-gnu)
d9898ee8 9853 version_type=linux
9854 need_lib_prefix=no
9855 need_version=no
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857 soname_spec='${libname}${release}${shared_ext}$major'
9858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9859 shlibpath_var=LD_LIBRARY_PATH
9860 shlibpath_overrides_runpath=no
8d138742
CE
9861 # Some binutils ld are patched to set DT_RUNPATH
9862 save_LDFLAGS=$LDFLAGS
9863 save_libdir=$libdir
9864 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9865 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9866 cat >conftest.$ac_ext <<_ACEOF
9867/* confdefs.h. */
9868_ACEOF
9869cat confdefs.h >>conftest.$ac_ext
9870cat >>conftest.$ac_ext <<_ACEOF
9871/* end confdefs.h. */
9872
9873int
9874main ()
9875{
9876
9877 ;
9878 return 0;
9879}
9880_ACEOF
9881rm -f conftest.$ac_objext conftest$ac_exeext
9882if { (ac_try="$ac_link"
9883case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9886esac
9887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9888$as_echo "$ac_try_echo") >&5
9889 (eval "$ac_link") 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 } && test -s conftest$ac_exeext && {
9899 test "$cross_compiling" = yes ||
9900 $as_test_x conftest$ac_exeext
9901 }; then
9902 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9903 shlibpath_overrides_runpath=yes
9904fi
9905
9906else
9907 $as_echo "$as_me: failed program was:" >&5
9908sed 's/^/| /' conftest.$ac_ext >&5
9909
9910
9911fi
9912
9913rm -rf conftest.dSYM
9914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9915 conftest$ac_exeext conftest.$ac_ext
9916 LDFLAGS=$save_LDFLAGS
9917 libdir=$save_libdir
9918
d9898ee8 9919 # This implies no fast_install, which is unacceptable.
9920 # Some rework will be needed to allow for fast_install
9921 # before this can be enabled.
9922 hardcode_into_libs=yes
8d138742
CE
9923
9924 # Add ABI-specific directories to the system library path.
9925 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 9926
9927 # Append ld.so.conf contents to the search path
9928 if test -f /etc/ld.so.conf; then
8d138742 9929 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
ac40fd9e 9930 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 9931 fi
9932
9933 # We used to test for /lib/ld.so.1 and disable shared libraries on
9934 # powerpc, because MkLinux only supported shared libraries with the
9935 # GNU dynamic linker. Since this was broken with cross compilers,
9936 # most powerpc-linux boxes support dynamic linking these days and
9937 # people can always --disable-shared, the test was removed, and we
9938 # assume the GNU/Linux dynamic linker is in use.
9939 dynamic_linker='GNU/Linux ld.so'
9940 ;;
9941
d9898ee8 9942netbsd*)
9943 version_type=sunos
9944 need_lib_prefix=no
9945 need_version=no
8d138742 9946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9949 dynamic_linker='NetBSD (a.out) ld.so'
9950 else
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 dynamic_linker='NetBSD ld.elf_so'
9954 fi
9955 shlibpath_var=LD_LIBRARY_PATH
9956 shlibpath_overrides_runpath=yes
9957 hardcode_into_libs=yes
9958 ;;
9959
9960newsos6)
9961 version_type=linux
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963 shlibpath_var=LD_LIBRARY_PATH
9964 shlibpath_overrides_runpath=yes
9965 ;;
9966
8d138742
CE
9967*nto* | *qnx*)
9968 version_type=qnx
d9898ee8 9969 need_lib_prefix=no
9970 need_version=no
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972 soname_spec='${libname}${release}${shared_ext}$major'
9973 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
9974 shlibpath_overrides_runpath=no
9975 hardcode_into_libs=yes
9976 dynamic_linker='ldqnx.so'
d9898ee8 9977 ;;
9978
9979openbsd*)
9980 version_type=sunos
9981 sys_lib_dlsearch_path_spec="/usr/lib"
9982 need_lib_prefix=no
9983 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9984 case $host_os in
8d138742
CE
9985 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9986 *) need_version=no ;;
d9898ee8 9987 esac
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9990 shlibpath_var=LD_LIBRARY_PATH
8d138742 9991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 9992 case $host_os in
9993 openbsd2.[89] | openbsd2.[89].*)
9994 shlibpath_overrides_runpath=no
9995 ;;
9996 *)
9997 shlibpath_overrides_runpath=yes
9998 ;;
9999 esac
10000 else
10001 shlibpath_overrides_runpath=yes
10002 fi
10003 ;;
10004
10005os2*)
10006 libname_spec='$name'
10007 shrext_cmds=".dll"
10008 need_lib_prefix=no
10009 library_names_spec='$libname${shared_ext} $libname.a'
10010 dynamic_linker='OS/2 ld.exe'
10011 shlibpath_var=LIBPATH
10012 ;;
10013
10014osf3* | osf4* | osf5*)
10015 version_type=osf
10016 need_lib_prefix=no
10017 need_version=no
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10022 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10023 ;;
10024
ac40fd9e 10025rdos*)
10026 dynamic_linker=no
10027 ;;
10028
d9898ee8 10029solaris*)
10030 version_type=linux
10031 need_lib_prefix=no
10032 need_version=no
10033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10034 soname_spec='${libname}${release}${shared_ext}$major'
10035 shlibpath_var=LD_LIBRARY_PATH
10036 shlibpath_overrides_runpath=yes
10037 hardcode_into_libs=yes
10038 # ldd complains unless libraries are executable
10039 postinstall_cmds='chmod +x $lib'
10040 ;;
10041
10042sunos4*)
10043 version_type=sunos
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10045 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=yes
10048 if test "$with_gnu_ld" = yes; then
10049 need_lib_prefix=no
10050 fi
10051 need_version=yes
10052 ;;
10053
10054sysv4 | sysv4.3*)
10055 version_type=linux
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 case $host_vendor in
10060 sni)
10061 shlibpath_overrides_runpath=no
10062 need_lib_prefix=no
d9898ee8 10063 runpath_var=LD_RUN_PATH
10064 ;;
10065 siemens)
10066 need_lib_prefix=no
10067 ;;
10068 motorola)
10069 need_lib_prefix=no
10070 need_version=no
10071 shlibpath_overrides_runpath=no
10072 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10073 ;;
10074 esac
10075 ;;
10076
10077sysv4*MP*)
10078 if test -d /usr/nec ;then
10079 version_type=linux
10080 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10081 soname_spec='$libname${shared_ext}.$major'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 fi
10084 ;;
10085
10086sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10087 version_type=freebsd-elf
10088 need_lib_prefix=no
10089 need_version=no
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 shlibpath_var=LD_LIBRARY_PATH
8d138742 10093 shlibpath_overrides_runpath=yes
d9898ee8 10094 hardcode_into_libs=yes
10095 if test "$with_gnu_ld" = yes; then
10096 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 10097 else
10098 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 10099 case $host_os in
10100 sco3.2v5*)
10101 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10102 ;;
10103 esac
10104 fi
10105 sys_lib_dlsearch_path_spec='/usr/lib'
10106 ;;
10107
8d138742
CE
10108tpf*)
10109 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10110 version_type=linux
10111 need_lib_prefix=no
10112 need_version=no
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 shlibpath_var=LD_LIBRARY_PATH
10115 shlibpath_overrides_runpath=no
10116 hardcode_into_libs=yes
10117 ;;
10118
d9898ee8 10119uts4*)
10120 version_type=linux
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 ;;
10125
10126*)
10127 dynamic_linker=no
10128 ;;
10129esac
8d138742
CE
10130{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10131$as_echo "$dynamic_linker" >&6; }
d9898ee8 10132test "$dynamic_linker" = no && can_build_shared=no
10133
10134variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10135if test "$GCC" = yes; then
10136 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10137fi
10138
8d138742
CE
10139if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10140 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 10141fi
8d138742
CE
10142if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10143 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 10144fi
10145
10146
d9898ee8 10147
d9898ee8 10148
d9898ee8 10149
d9898ee8 10150
d9898ee8 10151
d9898ee8 10152
d9898ee8 10153
d9898ee8 10154
d9898ee8 10155
d9898ee8 10156
d9898ee8 10157
d9898ee8 10158
d9898ee8 10159
d9898ee8 10160
d9898ee8 10161
d9898ee8 10162
d9898ee8 10163
d9898ee8 10164
d9898ee8 10165
d9898ee8 10166
d9898ee8 10167
d9898ee8 10168
d9898ee8 10169
d9898ee8 10170
d9898ee8 10171
d9898ee8 10172
d9898ee8 10173
d9898ee8 10174
d9898ee8 10175
d9898ee8 10176
d9898ee8 10177
d9898ee8 10178
d9898ee8 10179
d9898ee8 10180
d9898ee8 10181
d9898ee8 10182
d9898ee8 10183
d9898ee8 10184
d9898ee8 10185
d9898ee8 10186
d9898ee8 10187
d9898ee8 10188
d9898ee8 10189
d9898ee8 10190
d9898ee8 10191
d9898ee8 10192
d9898ee8 10193
d9898ee8 10194
d9898ee8 10195
d9898ee8 10196
d9898ee8 10197
d9898ee8 10198
d9898ee8 10199
d9898ee8 10200
d9898ee8 10201
d9898ee8 10202
d9898ee8 10203
d9898ee8 10204
d9898ee8 10205
d9898ee8 10206
d9898ee8 10207
d9898ee8 10208
d9898ee8 10209
d9898ee8 10210
d9898ee8 10211
d9898ee8 10212
d9898ee8 10213
d9898ee8 10214
d9898ee8 10215
d9898ee8 10216
d9898ee8 10217
d9898ee8 10218
d9898ee8 10219
d9898ee8 10220
d9898ee8 10221
d9898ee8 10222
d9898ee8 10223
d9898ee8 10224
d9898ee8 10225
d9898ee8 10226
d9898ee8 10227
d9898ee8 10228
d9898ee8 10229
d9898ee8 10230
d9898ee8 10231
8d138742
CE
10232 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10233$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10234hardcode_action=
10235if test -n "$hardcode_libdir_flag_spec" ||
10236 test -n "$runpath_var" ||
10237 test "X$hardcode_automatic" = "Xyes" ; then
d9898ee8 10238
8d138742
CE
10239 # We can hardcode non-existent directories.
10240 if test "$hardcode_direct" != no &&
10241 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10242 # have to relink, otherwise we might link with an installed library
10243 # when we should be linking with a yet-to-be-installed one
10244 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10245 test "$hardcode_minus_L" != no; then
10246 # Linking always hardcodes the temporary library directory.
10247 hardcode_action=relink
10248 else
10249 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10250 hardcode_action=immediate
10251 fi
10252else
10253 # We cannot hardcode anything, or else we can only hardcode existing
10254 # directories.
10255 hardcode_action=unsupported
10256fi
10257{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10258$as_echo "$hardcode_action" >&6; }
d9898ee8 10259
8d138742
CE
10260if test "$hardcode_action" = relink ||
10261 test "$inherit_rpath" = yes; then
10262 # Fast installation is not supported
10263 enable_fast_install=no
10264elif test "$shlibpath_overrides_runpath" = yes ||
10265 test "$enable_shared" = no; then
10266 # Fast installation is not necessary
10267 enable_fast_install=needless
10268fi
d9898ee8 10269
d9898ee8 10270
d9898ee8 10271
d9898ee8 10272
d9898ee8 10273
d9898ee8 10274
8d138742
CE
10275 if test "x$enable_dlopen" != xyes; then
10276 enable_dlopen=unknown
10277 enable_dlopen_self=unknown
10278 enable_dlopen_self_static=unknown
10279else
10280 lt_cv_dlopen=no
10281 lt_cv_dlopen_libs=
d9898ee8 10282
8d138742
CE
10283 case $host_os in
10284 beos*)
10285 lt_cv_dlopen="load_add_on"
10286 lt_cv_dlopen_libs=
10287 lt_cv_dlopen_self=yes
10288 ;;
d9898ee8 10289
8d138742
CE
10290 mingw* | pw32* | cegcc*)
10291 lt_cv_dlopen="LoadLibrary"
10292 lt_cv_dlopen_libs=
10293 ;;
d9898ee8 10294
8d138742
CE
10295 cygwin*)
10296 lt_cv_dlopen="dlopen"
10297 lt_cv_dlopen_libs=
10298 ;;
d9898ee8 10299
8d138742
CE
10300 darwin*)
10301 # if libdl is installed we need to link against it
10302 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10303$as_echo_n "checking for dlopen in -ldl... " >&6; }
10304if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10305 $as_echo_n "(cached) " >&6
10306else
10307 ac_check_lib_save_LIBS=$LIBS
10308LIBS="-ldl $LIBS"
10309cat >conftest.$ac_ext <<_ACEOF
10310/* confdefs.h. */
10311_ACEOF
10312cat confdefs.h >>conftest.$ac_ext
10313cat >>conftest.$ac_ext <<_ACEOF
10314/* end confdefs.h. */
d9898ee8 10315
8d138742
CE
10316/* Override any GCC internal prototype to avoid an error.
10317 Use char because int might match the return type of a GCC
10318 builtin and then its argument prototype would still apply. */
10319#ifdef __cplusplus
10320extern "C"
10321#endif
10322char dlopen ();
10323int
10324main ()
10325{
10326return dlopen ();
10327 ;
10328 return 0;
10329}
10330_ACEOF
10331rm -f conftest.$ac_objext conftest$ac_exeext
10332if { (ac_try="$ac_link"
10333case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10336esac
10337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10338$as_echo "$ac_try_echo") >&5
10339 (eval "$ac_link") 2>conftest.er1
10340 ac_status=$?
10341 grep -v '^ *+' conftest.er1 >conftest.err
10342 rm -f conftest.er1
10343 cat conftest.err >&5
10344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest$ac_exeext && {
10349 test "$cross_compiling" = yes ||
10350 $as_test_x conftest$ac_exeext
10351 }; then
10352 ac_cv_lib_dl_dlopen=yes
d9898ee8 10353else
8d138742
CE
10354 $as_echo "$as_me: failed program was:" >&5
10355sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 ac_cv_lib_dl_dlopen=no
d9898ee8 10358fi
10359
8d138742
CE
10360rm -rf conftest.dSYM
10361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10362 conftest$ac_exeext conftest.$ac_ext
10363LIBS=$ac_check_lib_save_LIBS
10364fi
10365{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10366$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10367if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10369else
d9898ee8 10370
8d138742
CE
10371 lt_cv_dlopen="dyld"
10372 lt_cv_dlopen_libs=
10373 lt_cv_dlopen_self=yes
d9898ee8 10374
8d138742 10375fi
d9898ee8 10376
8d138742 10377 ;;
d9898ee8 10378
8d138742
CE
10379 *)
10380 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10381$as_echo_n "checking for shl_load... " >&6; }
10382if test "${ac_cv_func_shl_load+set}" = set; then
10383 $as_echo_n "(cached) " >&6
10384else
10385 cat >conftest.$ac_ext <<_ACEOF
10386/* confdefs.h. */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h. */
10391/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10393#define shl_load innocuous_shl_load
d9898ee8 10394
8d138742
CE
10395/* System header to define __stub macros and hopefully few prototypes,
10396 which can conflict with char shl_load (); below.
10397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10398 <limits.h> exists even on freestanding compilers. */
d9898ee8 10399
8d138742
CE
10400#ifdef __STDC__
10401# include <limits.h>
10402#else
10403# include <assert.h>
10404#endif
d9898ee8 10405
8d138742 10406#undef shl_load
d9898ee8 10407
8d138742
CE
10408/* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10411#ifdef __cplusplus
10412extern "C"
10413#endif
10414char shl_load ();
10415/* The GNU C library defines this for functions which it implements
10416 to always fail with ENOSYS. Some functions are actually named
10417 something starting with __ and the normal name is an alias. */
10418#if defined __stub_shl_load || defined __stub___shl_load
10419choke me
10420#endif
d9898ee8 10421
8d138742
CE
10422int
10423main ()
10424{
10425return shl_load ();
10426 ;
10427 return 0;
10428}
10429_ACEOF
10430rm -f conftest.$ac_objext conftest$ac_exeext
10431if { (ac_try="$ac_link"
10432case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435esac
10436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10437$as_echo "$ac_try_echo") >&5
10438 (eval "$ac_link") 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && {
10445 test -z "$ac_c_werror_flag" ||
10446 test ! -s conftest.err
10447 } && test -s conftest$ac_exeext && {
10448 test "$cross_compiling" = yes ||
10449 $as_test_x conftest$ac_exeext
10450 }; then
10451 ac_cv_func_shl_load=yes
10452else
10453 $as_echo "$as_me: failed program was:" >&5
10454sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10455
8d138742
CE
10456 ac_cv_func_shl_load=no
10457fi
d9898ee8 10458
8d138742
CE
10459rm -rf conftest.dSYM
10460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10461 conftest$ac_exeext conftest.$ac_ext
10462fi
10463{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10464$as_echo "$ac_cv_func_shl_load" >&6; }
10465if test "x$ac_cv_func_shl_load" = x""yes; then
10466 lt_cv_dlopen="shl_load"
10467else
10468 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10469$as_echo_n "checking for shl_load in -ldld... " >&6; }
10470if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10471 $as_echo_n "(cached) " >&6
10472else
10473 ac_check_lib_save_LIBS=$LIBS
10474LIBS="-ldld $LIBS"
10475cat >conftest.$ac_ext <<_ACEOF
10476/* confdefs.h. */
10477_ACEOF
10478cat confdefs.h >>conftest.$ac_ext
10479cat >>conftest.$ac_ext <<_ACEOF
10480/* end confdefs.h. */
d9898ee8 10481
8d138742
CE
10482/* Override any GCC internal prototype to avoid an error.
10483 Use char because int might match the return type of a GCC
10484 builtin and then its argument prototype would still apply. */
10485#ifdef __cplusplus
10486extern "C"
10487#endif
10488char shl_load ();
10489int
10490main ()
10491{
10492return shl_load ();
10493 ;
10494 return 0;
10495}
10496_ACEOF
10497rm -f conftest.$ac_objext conftest$ac_exeext
10498if { (ac_try="$ac_link"
10499case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502esac
10503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10504$as_echo "$ac_try_echo") >&5
10505 (eval "$ac_link") 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest$ac_exeext && {
10515 test "$cross_compiling" = yes ||
10516 $as_test_x conftest$ac_exeext
10517 }; then
10518 ac_cv_lib_dld_shl_load=yes
10519else
10520 $as_echo "$as_me: failed program was:" >&5
10521sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10522
8d138742
CE
10523 ac_cv_lib_dld_shl_load=no
10524fi
d9898ee8 10525
8d138742
CE
10526rm -rf conftest.dSYM
10527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10528 conftest$ac_exeext conftest.$ac_ext
10529LIBS=$ac_check_lib_save_LIBS
10530fi
10531{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10532$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10533if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10534 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10535else
10536 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10537$as_echo_n "checking for dlopen... " >&6; }
10538if test "${ac_cv_func_dlopen+set}" = set; then
10539 $as_echo_n "(cached) " >&6
10540else
10541 cat >conftest.$ac_ext <<_ACEOF
10542/* confdefs.h. */
10543_ACEOF
10544cat confdefs.h >>conftest.$ac_ext
10545cat >>conftest.$ac_ext <<_ACEOF
10546/* end confdefs.h. */
10547/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10549#define dlopen innocuous_dlopen
d9898ee8 10550
8d138742
CE
10551/* System header to define __stub macros and hopefully few prototypes,
10552 which can conflict with char dlopen (); below.
10553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10554 <limits.h> exists even on freestanding compilers. */
d9898ee8 10555
8d138742
CE
10556#ifdef __STDC__
10557# include <limits.h>
10558#else
10559# include <assert.h>
10560#endif
d9898ee8 10561
8d138742 10562#undef dlopen
d9898ee8 10563
8d138742
CE
10564/* Override any GCC internal prototype to avoid an error.
10565 Use char because int might match the return type of a GCC
10566 builtin and then its argument prototype would still apply. */
10567#ifdef __cplusplus
10568extern "C"
10569#endif
10570char dlopen ();
10571/* The GNU C library defines this for functions which it implements
10572 to always fail with ENOSYS. Some functions are actually named
10573 something starting with __ and the normal name is an alias. */
10574#if defined __stub_dlopen || defined __stub___dlopen
10575choke me
10576#endif
d9898ee8 10577
8d138742
CE
10578int
10579main ()
10580{
10581return dlopen ();
10582 ;
10583 return 0;
10584}
10585_ACEOF
10586rm -f conftest.$ac_objext conftest$ac_exeext
10587if { (ac_try="$ac_link"
10588case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
d9898ee8 10591esac
8d138742
CE
10592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10593$as_echo "$ac_try_echo") >&5
10594 (eval "$ac_link") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && {
10601 test -z "$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 } && test -s conftest$ac_exeext && {
10604 test "$cross_compiling" = yes ||
10605 $as_test_x conftest$ac_exeext
10606 }; then
10607 ac_cv_func_dlopen=yes
10608else
10609 $as_echo "$as_me: failed program was:" >&5
10610sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10611
8d138742
CE
10612 ac_cv_func_dlopen=no
10613fi
d9898ee8 10614
8d138742
CE
10615rm -rf conftest.dSYM
10616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10617 conftest$ac_exeext conftest.$ac_ext
10618fi
10619{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10620$as_echo "$ac_cv_func_dlopen" >&6; }
10621if test "x$ac_cv_func_dlopen" = x""yes; then
10622 lt_cv_dlopen="dlopen"
10623else
10624 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10625$as_echo_n "checking for dlopen in -ldl... " >&6; }
10626if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10627 $as_echo_n "(cached) " >&6
10628else
10629 ac_check_lib_save_LIBS=$LIBS
10630LIBS="-ldl $LIBS"
10631cat >conftest.$ac_ext <<_ACEOF
10632/* confdefs.h. */
10633_ACEOF
10634cat confdefs.h >>conftest.$ac_ext
10635cat >>conftest.$ac_ext <<_ACEOF
10636/* end confdefs.h. */
d9898ee8 10637
8d138742
CE
10638/* Override any GCC internal prototype to avoid an error.
10639 Use char because int might match the return type of a GCC
10640 builtin and then its argument prototype would still apply. */
10641#ifdef __cplusplus
10642extern "C"
10643#endif
10644char dlopen ();
10645int
10646main ()
10647{
10648return dlopen ();
10649 ;
10650 return 0;
10651}
10652_ACEOF
10653rm -f conftest.$ac_objext conftest$ac_exeext
10654if { (ac_try="$ac_link"
10655case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658esac
10659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10660$as_echo "$ac_try_echo") >&5
10661 (eval "$ac_link") 2>conftest.er1
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
10666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } && {
10668 test -z "$ac_c_werror_flag" ||
10669 test ! -s conftest.err
10670 } && test -s conftest$ac_exeext && {
10671 test "$cross_compiling" = yes ||
10672 $as_test_x conftest$ac_exeext
10673 }; then
10674 ac_cv_lib_dl_dlopen=yes
10675else
10676 $as_echo "$as_me: failed program was:" >&5
10677sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10678
8d138742
CE
10679 ac_cv_lib_dl_dlopen=no
10680fi
d9898ee8 10681
8d138742
CE
10682rm -rf conftest.dSYM
10683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10684 conftest$ac_exeext conftest.$ac_ext
10685LIBS=$ac_check_lib_save_LIBS
10686fi
10687{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10688$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10689if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10691else
10692 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10693$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10694if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10695 $as_echo_n "(cached) " >&6
10696else
10697 ac_check_lib_save_LIBS=$LIBS
10698LIBS="-lsvld $LIBS"
10699cat >conftest.$ac_ext <<_ACEOF
10700/* confdefs.h. */
10701_ACEOF
10702cat confdefs.h >>conftest.$ac_ext
10703cat >>conftest.$ac_ext <<_ACEOF
10704/* end confdefs.h. */
d9898ee8 10705
8d138742
CE
10706/* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10709#ifdef __cplusplus
10710extern "C"
10711#endif
10712char dlopen ();
10713int
10714main ()
10715{
10716return dlopen ();
10717 ;
10718 return 0;
10719}
10720_ACEOF
10721rm -f conftest.$ac_objext conftest$ac_exeext
10722if { (ac_try="$ac_link"
10723case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10726esac
10727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10728$as_echo "$ac_try_echo") >&5
10729 (eval "$ac_link") 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && {
10736 test -z "$ac_c_werror_flag" ||
10737 test ! -s conftest.err
10738 } && test -s conftest$ac_exeext && {
10739 test "$cross_compiling" = yes ||
10740 $as_test_x conftest$ac_exeext
10741 }; then
10742 ac_cv_lib_svld_dlopen=yes
10743else
10744 $as_echo "$as_me: failed program was:" >&5
10745sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10746
8d138742
CE
10747 ac_cv_lib_svld_dlopen=no
10748fi
d9898ee8 10749
8d138742
CE
10750rm -rf conftest.dSYM
10751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10752 conftest$ac_exeext conftest.$ac_ext
10753LIBS=$ac_check_lib_save_LIBS
10754fi
10755{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10756$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10757if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10759else
10760 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10761$as_echo_n "checking for dld_link in -ldld... " >&6; }
10762if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10763 $as_echo_n "(cached) " >&6
10764else
10765 ac_check_lib_save_LIBS=$LIBS
10766LIBS="-ldld $LIBS"
10767cat >conftest.$ac_ext <<_ACEOF
10768/* confdefs.h. */
10769_ACEOF
10770cat confdefs.h >>conftest.$ac_ext
10771cat >>conftest.$ac_ext <<_ACEOF
10772/* end confdefs.h. */
d9898ee8 10773
8d138742
CE
10774/* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10777#ifdef __cplusplus
10778extern "C"
10779#endif
10780char dld_link ();
10781int
10782main ()
10783{
10784return dld_link ();
10785 ;
10786 return 0;
10787}
10788_ACEOF
10789rm -f conftest.$ac_objext conftest$ac_exeext
10790if { (ac_try="$ac_link"
10791case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10794esac
10795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10796$as_echo "$ac_try_echo") >&5
10797 (eval "$ac_link") 2>conftest.er1
10798 ac_status=$?
10799 grep -v '^ *+' conftest.er1 >conftest.err
10800 rm -f conftest.er1
10801 cat conftest.err >&5
10802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && {
10804 test -z "$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10806 } && test -s conftest$ac_exeext && {
10807 test "$cross_compiling" = yes ||
10808 $as_test_x conftest$ac_exeext
10809 }; then
10810 ac_cv_lib_dld_dld_link=yes
10811else
10812 $as_echo "$as_me: failed program was:" >&5
10813sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10814
8d138742
CE
10815 ac_cv_lib_dld_dld_link=no
10816fi
d9898ee8 10817
8d138742
CE
10818rm -rf conftest.dSYM
10819rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10820 conftest$ac_exeext conftest.$ac_ext
10821LIBS=$ac_check_lib_save_LIBS
10822fi
10823{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10824$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10825if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10826 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10827fi
d9898ee8 10828
d9898ee8 10829
8d138742 10830fi
d9898ee8 10831
d9898ee8 10832
8d138742 10833fi
d9898ee8 10834
ac40fd9e 10835
8d138742 10836fi
d9898ee8 10837
d9898ee8 10838
8d138742 10839fi
d9898ee8 10840
d9898ee8 10841
8d138742 10842fi
d9898ee8 10843
8d138742
CE
10844 ;;
10845 esac
d9898ee8 10846
8d138742
CE
10847 if test "x$lt_cv_dlopen" != xno; then
10848 enable_dlopen=yes
10849 else
10850 enable_dlopen=no
d9898ee8 10851 fi
10852
8d138742
CE
10853 case $lt_cv_dlopen in
10854 dlopen)
10855 save_CPPFLAGS="$CPPFLAGS"
10856 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 10857
8d138742
CE
10858 save_LDFLAGS="$LDFLAGS"
10859 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 10860
8d138742
CE
10861 save_LIBS="$LIBS"
10862 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 10863
8d138742
CE
10864 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10865$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10866if test "${lt_cv_dlopen_self+set}" = set; then
10867 $as_echo_n "(cached) " >&6
d9898ee8 10868else
8d138742
CE
10869 if test "$cross_compiling" = yes; then :
10870 lt_cv_dlopen_self=cross
d9898ee8 10871else
8d138742
CE
10872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10873 lt_status=$lt_dlunknown
10874 cat > conftest.$ac_ext <<_LT_EOF
10875#line 10875 "configure"
10876#include "confdefs.h"
d9898ee8 10877
8d138742
CE
10878#if HAVE_DLFCN_H
10879#include <dlfcn.h>
10880#endif
d9898ee8 10881
8d138742 10882#include <stdio.h>
d9898ee8 10883
8d138742
CE
10884#ifdef RTLD_GLOBAL
10885# define LT_DLGLOBAL RTLD_GLOBAL
10886#else
10887# ifdef DL_GLOBAL
10888# define LT_DLGLOBAL DL_GLOBAL
10889# else
10890# define LT_DLGLOBAL 0
10891# endif
10892#endif
d9898ee8 10893
8d138742
CE
10894/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10895 find out it does not work in some platform. */
10896#ifndef LT_DLLAZY_OR_NOW
10897# ifdef RTLD_LAZY
10898# define LT_DLLAZY_OR_NOW RTLD_LAZY
10899# else
10900# ifdef DL_LAZY
10901# define LT_DLLAZY_OR_NOW DL_LAZY
10902# else
10903# ifdef RTLD_NOW
10904# define LT_DLLAZY_OR_NOW RTLD_NOW
10905# else
10906# ifdef DL_NOW
10907# define LT_DLLAZY_OR_NOW DL_NOW
10908# else
10909# define LT_DLLAZY_OR_NOW 0
10910# endif
10911# endif
10912# endif
10913# endif
10914#endif
d9898ee8 10915
8d138742
CE
10916void fnord() { int i=42;}
10917int main ()
10918{
10919 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10920 int status = $lt_dlunknown;
10921
10922 if (self)
10923 {
10924 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10925 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10926 /* dlclose (self); */
10927 }
10928 else
10929 puts (dlerror ());
d9898ee8 10930
8d138742
CE
10931 return status;
10932}
10933_LT_EOF
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935 (eval $ac_link) 2>&5
10936 ac_status=$?
10937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10939 (./conftest; exit; ) >&5 2>/dev/null
10940 lt_status=$?
10941 case x$lt_status in
10942 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10943 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10944 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10945 esac
10946 else :
10947 # compilation failed
10948 lt_cv_dlopen_self=no
10949 fi
d9898ee8 10950fi
8d138742 10951rm -fr conftest*
d9898ee8 10952
10953
d9898ee8 10954fi
8d138742
CE
10955{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10956$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 10957
8d138742
CE
10958 if test "x$lt_cv_dlopen_self" = xyes; then
10959 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10960 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10961$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10962if test "${lt_cv_dlopen_self_static+set}" = set; then
10963 $as_echo_n "(cached) " >&6
10964else
10965 if test "$cross_compiling" = yes; then :
10966 lt_cv_dlopen_self_static=cross
10967else
10968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10969 lt_status=$lt_dlunknown
10970 cat > conftest.$ac_ext <<_LT_EOF
10971#line 10971 "configure"
10972#include "confdefs.h"
d9898ee8 10973
8d138742
CE
10974#if HAVE_DLFCN_H
10975#include <dlfcn.h>
10976#endif
d9898ee8 10977
8d138742 10978#include <stdio.h>
d9898ee8 10979
8d138742
CE
10980#ifdef RTLD_GLOBAL
10981# define LT_DLGLOBAL RTLD_GLOBAL
10982#else
10983# ifdef DL_GLOBAL
10984# define LT_DLGLOBAL DL_GLOBAL
10985# else
10986# define LT_DLGLOBAL 0
10987# endif
10988#endif
d9898ee8 10989
8d138742
CE
10990/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10991 find out it does not work in some platform. */
10992#ifndef LT_DLLAZY_OR_NOW
10993# ifdef RTLD_LAZY
10994# define LT_DLLAZY_OR_NOW RTLD_LAZY
10995# else
10996# ifdef DL_LAZY
10997# define LT_DLLAZY_OR_NOW DL_LAZY
10998# else
10999# ifdef RTLD_NOW
11000# define LT_DLLAZY_OR_NOW RTLD_NOW
11001# else
11002# ifdef DL_NOW
11003# define LT_DLLAZY_OR_NOW DL_NOW
11004# else
11005# define LT_DLLAZY_OR_NOW 0
11006# endif
11007# endif
11008# endif
11009# endif
11010#endif
11011
11012void fnord() { int i=42;}
11013int main ()
11014{
11015 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11016 int status = $lt_dlunknown;
11017
11018 if (self)
11019 {
11020 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11021 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11022 /* dlclose (self); */
11023 }
11024 else
11025 puts (dlerror ());
11026
11027 return status;
11028}
11029_LT_EOF
11030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11031 (eval $ac_link) 2>&5
11032 ac_status=$?
11033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11035 (./conftest; exit; ) >&5 2>/dev/null
11036 lt_status=$?
11037 case x$lt_status in
11038 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11039 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11040 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
d9898ee8 11041 esac
8d138742
CE
11042 else :
11043 # compilation failed
11044 lt_cv_dlopen_self_static=no
11045 fi
11046fi
11047rm -fr conftest*
d9898ee8 11048
d9898ee8 11049
8d138742
CE
11050fi
11051{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11052$as_echo "$lt_cv_dlopen_self_static" >&6; }
11053 fi
d9898ee8 11054
8d138742
CE
11055 CPPFLAGS="$save_CPPFLAGS"
11056 LDFLAGS="$save_LDFLAGS"
11057 LIBS="$save_LIBS"
11058 ;;
11059 esac
d9898ee8 11060
8d138742
CE
11061 case $lt_cv_dlopen_self in
11062 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11063 *) enable_dlopen_self=unknown ;;
11064 esac
d9898ee8 11065
8d138742
CE
11066 case $lt_cv_dlopen_self_static in
11067 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11068 *) enable_dlopen_self_static=unknown ;;
11069 esac
11070fi
d9898ee8 11071
d9898ee8 11072
d9898ee8 11073
d9898ee8 11074
d9898ee8 11075
d9898ee8 11076
d9898ee8 11077
d9898ee8 11078
d9898ee8 11079
d9898ee8 11080
d9898ee8 11081
d9898ee8 11082
d9898ee8 11083
d9898ee8 11084
8d138742
CE
11085
11086
11087
11088striplib=
11089old_striplib=
11090{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11091$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11092if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11093 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11094 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11095 { $as_echo "$as_me:$LINENO: result: yes" >&5
11096$as_echo "yes" >&6; }
11097else
11098# FIXME - insert some real tests, host_os isn't really good enough
11099 case $host_os in
11100 darwin*)
11101 if test -n "$STRIP" ; then
11102 striplib="$STRIP -x"
11103 old_striplib="$STRIP -S"
11104 { $as_echo "$as_me:$LINENO: result: yes" >&5
11105$as_echo "yes" >&6; }
11106 else
11107 { $as_echo "$as_me:$LINENO: result: no" >&5
11108$as_echo "no" >&6; }
d9898ee8 11109 fi
8d138742
CE
11110 ;;
11111 *)
11112 { $as_echo "$as_me:$LINENO: result: no" >&5
11113$as_echo "no" >&6; }
11114 ;;
11115 esac
11116fi
d9898ee8 11117
d9898ee8 11118
d9898ee8 11119
d9898ee8 11120
d9898ee8 11121
d9898ee8 11122
d9898ee8 11123
d9898ee8 11124
8d138742
CE
11125
11126
11127
11128
11129 # Report which library types will actually be built
11130 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11131$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11132 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11133$as_echo "$can_build_shared" >&6; }
11134
11135 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11136$as_echo_n "checking whether to build shared libraries... " >&6; }
11137 test "$can_build_shared" = "no" && enable_shared=no
11138
11139 # On AIX, shared libraries and static libraries use the same namespace, and
11140 # are all built from PIC.
11141 case $host_os in
11142 aix3*)
11143 test "$enable_shared" = yes && enable_static=no
11144 if test -n "$RANLIB"; then
11145 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11146 postinstall_cmds='$RANLIB $lib'
11147 fi
11148 ;;
11149
11150 aix[4-9]*)
11151 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11152 test "$enable_shared" = yes && enable_static=no
11153 fi
11154 ;;
11155 esac
11156 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11157$as_echo "$enable_shared" >&6; }
11158
11159 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11160$as_echo_n "checking whether to build static libraries... " >&6; }
11161 # Make sure either enable_shared or enable_static is yes.
11162 test "$enable_shared" = yes || enable_static=yes
11163 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11164$as_echo "$enable_static" >&6; }
11165
11166
11167
11168
11169fi
11170ac_ext=c
11171ac_cpp='$CPP $CPPFLAGS'
11172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11174ac_compiler_gnu=$ac_cv_c_compiler_gnu
11175
11176CC="$lt_save_CC"
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190 ac_config_commands="$ac_config_commands libtool"
11191
11192
11193
11194
11195# Only expand once:
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h
11208do
11209as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11211 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11212$as_echo_n "checking for $ac_header... " >&6; }
11213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11214 $as_echo_n "(cached) " >&6
11215fi
11216ac_res=`eval 'as_val=${'$as_ac_Header'}
11217 $as_echo "$as_val"'`
11218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11219$as_echo "$ac_res" >&6; }
11220else
11221 # Is the header compilable?
11222{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11223$as_echo_n "checking $ac_header usability... " >&6; }
11224cat >conftest.$ac_ext <<_ACEOF
11225/* confdefs.h. */
d9898ee8 11226_ACEOF
8d138742
CE
11227cat confdefs.h >>conftest.$ac_ext
11228cat >>conftest.$ac_ext <<_ACEOF
11229/* end confdefs.h. */
11230$ac_includes_default
11231#include <$ac_header>
11232_ACEOF
11233rm -f conftest.$ac_objext
11234if { (ac_try="$ac_compile"
dd184caf 11235case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11238esac
8d138742
CE
11239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11240$as_echo "$ac_try_echo") >&5
11241 (eval "$ac_compile") 2>conftest.er1
d9898ee8 11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
8d138742 11246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11247 (exit $ac_status); } && {
8d138742 11248 test -z "$ac_c_werror_flag" ||
dd184caf 11249 test ! -s conftest.err
8d138742
CE
11250 } && test -s conftest.$ac_objext; then
11251 ac_header_compiler=yes
d9898ee8 11252else
8d138742 11253 $as_echo "$as_me: failed program was:" >&5
d9898ee8 11254sed 's/^/| /' conftest.$ac_ext >&5
11255
8d138742 11256 ac_header_compiler=no
d9898ee8 11257fi
dd184caf 11258
8d138742
CE
11259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11261$as_echo "$ac_header_compiler" >&6; }
d9898ee8 11262
8d138742
CE
11263# Is the header present?
11264{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11265$as_echo_n "checking $ac_header presence... " >&6; }
11266cat >conftest.$ac_ext <<_ACEOF
11267/* confdefs.h. */
d9898ee8 11268_ACEOF
8d138742
CE
11269cat confdefs.h >>conftest.$ac_ext
11270cat >>conftest.$ac_ext <<_ACEOF
11271/* end confdefs.h. */
11272#include <$ac_header>
11273_ACEOF
11274if { (ac_try="$ac_cpp conftest.$ac_ext"
dd184caf 11275case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11278esac
8d138742
CE
11279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11280$as_echo "$ac_try_echo") >&5
11281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 11282 ac_status=$?
11283 grep -v '^ *+' conftest.er1 >conftest.err
11284 rm -f conftest.er1
11285 cat conftest.err >&5
8d138742
CE
11286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } >/dev/null && {
11288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dd184caf 11289 test ! -s conftest.err
8d138742
CE
11290 }; then
11291 ac_header_preproc=yes
d9898ee8 11292else
8d138742 11293 $as_echo "$as_me: failed program was:" >&5
d9898ee8 11294sed 's/^/| /' conftest.$ac_ext >&5
11295
8d138742
CE
11296 ac_header_preproc=no
11297fi
11298
11299rm -f conftest.err conftest.$ac_ext
11300{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11301$as_echo "$ac_header_preproc" >&6; }
dd184caf 11302
8d138742
CE
11303# So? What about this header?
11304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11305 yes:no: )
11306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11307$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11309$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11310 ac_header_preproc=yes
11311 ;;
11312 no:yes:* )
11313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11314$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11316$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11318$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11320$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11322$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11324$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11325 ( cat <<\_ASBOX
11326## -------------------------------------------------- ##
11327## Report this to courier-users@lists.sourceforge.net ##
11328## -------------------------------------------------- ##
11329_ASBOX
11330 ) | sed "s/^/$as_me: WARNING: /" >&2
11331 ;;
11332esac
11333{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11334$as_echo_n "checking for $ac_header... " >&6; }
11335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336 $as_echo_n "(cached) " >&6
11337else
11338 eval "$as_ac_Header=\$ac_header_preproc"
d9898ee8 11339fi
8d138742
CE
11340ac_res=`eval 'as_val=${'$as_ac_Header'}
11341 $as_echo "$as_val"'`
11342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11343$as_echo "$ac_res" >&6; }
dd184caf 11344
8d138742
CE
11345fi
11346as_val=`eval 'as_val=${'$as_ac_Header'}
11347 $as_echo "$as_val"'`
11348 if test "x$as_val" = x""yes; then
11349 cat >>confdefs.h <<_ACEOF
11350#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11351_ACEOF
d9898ee8 11352
8d138742 11353fi
d9898ee8 11354
8d138742 11355done
d9898ee8 11356
8d138742
CE
11357{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11358$as_echo_n "checking for ANSI C header files... " >&6; }
11359if test "${ac_cv_header_stdc+set}" = set; then
11360 $as_echo_n "(cached) " >&6
11361else
11362 cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
11368#include <stdlib.h>
11369#include <stdarg.h>
11370#include <string.h>
11371#include <float.h>
d9898ee8 11372
8d138742
CE
11373int
11374main ()
11375{
d9898ee8 11376
8d138742
CE
11377 ;
11378 return 0;
11379}
11380_ACEOF
11381rm -f conftest.$ac_objext
11382if { (ac_try="$ac_compile"
11383case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11386esac
11387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11388$as_echo "$ac_try_echo") >&5
11389 (eval "$ac_compile") 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest.$ac_objext; then
11399 ac_cv_header_stdc=yes
11400else
11401 $as_echo "$as_me: failed program was:" >&5
11402sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11403
8d138742
CE
11404 ac_cv_header_stdc=no
11405fi
d9898ee8 11406
8d138742 11407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 11408
8d138742
CE
11409if test $ac_cv_header_stdc = yes; then
11410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11411 cat >conftest.$ac_ext <<_ACEOF
11412/* confdefs.h. */
11413_ACEOF
11414cat confdefs.h >>conftest.$ac_ext
11415cat >>conftest.$ac_ext <<_ACEOF
11416/* end confdefs.h. */
11417#include <string.h>
d9898ee8 11418
8d138742
CE
11419_ACEOF
11420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11421 $EGREP "memchr" >/dev/null 2>&1; then
11422 :
11423else
11424 ac_cv_header_stdc=no
11425fi
11426rm -f conftest*
d9898ee8 11427
8d138742 11428fi
d9898ee8 11429
8d138742
CE
11430if test $ac_cv_header_stdc = yes; then
11431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11432 cat >conftest.$ac_ext <<_ACEOF
11433/* confdefs.h. */
11434_ACEOF
11435cat confdefs.h >>conftest.$ac_ext
11436cat >>conftest.$ac_ext <<_ACEOF
11437/* end confdefs.h. */
11438#include <stdlib.h>
d9898ee8 11439
8d138742
CE
11440_ACEOF
11441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11442 $EGREP "free" >/dev/null 2>&1; then
11443 :
11444else
11445 ac_cv_header_stdc=no
11446fi
11447rm -f conftest*
d9898ee8 11448
8d138742 11449fi
d9898ee8 11450
8d138742
CE
11451if test $ac_cv_header_stdc = yes; then
11452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11453 if test "$cross_compiling" = yes; then
11454 :
11455else
11456 cat >conftest.$ac_ext <<_ACEOF
11457/* confdefs.h. */
11458_ACEOF
11459cat confdefs.h >>conftest.$ac_ext
11460cat >>conftest.$ac_ext <<_ACEOF
11461/* end confdefs.h. */
11462#include <ctype.h>
11463#include <stdlib.h>
11464#if ((' ' & 0x0FF) == 0x020)
11465# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11466# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11467#else
11468# define ISLOWER(c) \
11469 (('a' <= (c) && (c) <= 'i') \
11470 || ('j' <= (c) && (c) <= 'r') \
11471 || ('s' <= (c) && (c) <= 'z'))
11472# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11473#endif
d9898ee8 11474
8d138742
CE
11475#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11476int
11477main ()
11478{
11479 int i;
11480 for (i = 0; i < 256; i++)
11481 if (XOR (islower (i), ISLOWER (i))
11482 || toupper (i) != TOUPPER (i))
11483 return 2;
11484 return 0;
11485}
11486_ACEOF
11487rm -f conftest$ac_exeext
11488if { (ac_try="$ac_link"
11489case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492esac
11493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11494$as_echo "$ac_try_echo") >&5
11495 (eval "$ac_link") 2>&5
11496 ac_status=$?
11497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11499 { (case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11502esac
11503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11504$as_echo "$ac_try_echo") >&5
11505 (eval "$ac_try") 2>&5
11506 ac_status=$?
11507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11509 :
11510else
11511 $as_echo "$as_me: program exited with status $ac_status" >&5
11512$as_echo "$as_me: failed program was:" >&5
11513sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11514
8d138742
CE
11515( exit $ac_status )
11516ac_cv_header_stdc=no
11517fi
11518rm -rf conftest.dSYM
11519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11520fi
d9898ee8 11521
d9898ee8 11522
8d138742
CE
11523fi
11524fi
11525{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11526$as_echo "$ac_cv_header_stdc" >&6; }
11527if test $ac_cv_header_stdc = yes; then
d9898ee8 11528
8d138742
CE
11529cat >>confdefs.h <<\_ACEOF
11530#define STDC_HEADERS 1
11531_ACEOF
d9898ee8 11532
8d138742 11533fi
d9898ee8 11534
8d138742
CE
11535{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11536$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11537if test "${ac_cv_header_sys_wait_h+set}" = set; then
11538 $as_echo_n "(cached) " >&6
11539else
11540 cat >conftest.$ac_ext <<_ACEOF
11541/* confdefs.h. */
11542_ACEOF
11543cat confdefs.h >>conftest.$ac_ext
11544cat >>conftest.$ac_ext <<_ACEOF
11545/* end confdefs.h. */
11546#include <sys/types.h>
11547#include <sys/wait.h>
11548#ifndef WEXITSTATUS
11549# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11550#endif
11551#ifndef WIFEXITED
11552# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11553#endif
d9898ee8 11554
8d138742
CE
11555int
11556main ()
11557{
11558 int s;
11559 wait (&s);
11560 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565rm -f conftest.$ac_objext
11566if { (ac_try="$ac_compile"
11567case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11570esac
11571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11572$as_echo "$ac_try_echo") >&5
11573 (eval "$ac_compile") 2>conftest.er1
11574 ac_status=$?
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } && {
11580 test -z "$ac_c_werror_flag" ||
11581 test ! -s conftest.err
11582 } && test -s conftest.$ac_objext; then
11583 ac_cv_header_sys_wait_h=yes
11584else
11585 $as_echo "$as_me: failed program was:" >&5
11586sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11587
8d138742
CE
11588 ac_cv_header_sys_wait_h=no
11589fi
d9898ee8 11590
8d138742
CE
11591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11592fi
11593{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11594$as_echo "$ac_cv_header_sys_wait_h" >&6; }
11595if test $ac_cv_header_sys_wait_h = yes; then
d9898ee8 11596
8d138742
CE
11597cat >>confdefs.h <<\_ACEOF
11598#define HAVE_SYS_WAIT_H 1
11599_ACEOF
d9898ee8 11600
8d138742 11601fi
d9898ee8 11602
d9898ee8 11603
d9898ee8 11604
8d138742
CE
11605{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11606$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11607if test "${ac_cv_c_const+set}" = set; then
11608 $as_echo_n "(cached) " >&6
11609else
11610 cat >conftest.$ac_ext <<_ACEOF
11611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
d9898ee8 11616
8d138742
CE
11617int
11618main ()
11619{
11620/* FIXME: Include the comments suggested by Paul. */
11621#ifndef __cplusplus
11622 /* Ultrix mips cc rejects this. */
11623 typedef int charset[2];
11624 const charset cs;
11625 /* SunOS 4.1.1 cc rejects this. */
11626 char const *const *pcpcc;
11627 char **ppc;
11628 /* NEC SVR4.0.2 mips cc rejects this. */
11629 struct point {int x, y;};
11630 static struct point const zero = {0,0};
11631 /* AIX XL C 1.02.0.0 rejects this.
11632 It does not let you subtract one const X* pointer from another in
11633 an arm of an if-expression whose if-part is not a constant
11634 expression */
11635 const char *g = "string";
11636 pcpcc = &g + (g ? g-g : 0);
11637 /* HPUX 7.0 cc rejects these. */
11638 ++pcpcc;
11639 ppc = (char**) pcpcc;
11640 pcpcc = (char const *const *) ppc;
11641 { /* SCO 3.2v4 cc rejects this. */
11642 char *t;
11643 char const *s = 0 ? (char *) 0 : (char const *) 0;
d9898ee8 11644
8d138742
CE
11645 *t++ = 0;
11646 if (s) return 0;
11647 }
11648 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11649 int x[] = {25, 17};
11650 const int *foo = &x[0];
11651 ++foo;
11652 }
11653 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11654 typedef const int *iptr;
11655 iptr p = 0;
11656 ++p;
11657 }
11658 { /* AIX XL C 1.02.0.0 rejects this saying
11659 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11660 struct s { int j; const int *ap[3]; };
11661 struct s *b; b->j = 5;
11662 }
11663 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11664 const int foo = 10;
11665 if (!foo) return 0;
11666 }
11667 return !cs[0] && !zero.x;
11668#endif
d9898ee8 11669
8d138742
CE
11670 ;
11671 return 0;
11672}
11673_ACEOF
11674rm -f conftest.$ac_objext
11675if { (ac_try="$ac_compile"
11676case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
d9898ee8 11679esac
8d138742
CE
11680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11681$as_echo "$ac_try_echo") >&5
11682 (eval "$ac_compile") 2>conftest.er1
11683 ac_status=$?
11684 grep -v '^ *+' conftest.er1 >conftest.err
11685 rm -f conftest.er1
11686 cat conftest.err >&5
11687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } && {
11689 test -z "$ac_c_werror_flag" ||
11690 test ! -s conftest.err
11691 } && test -s conftest.$ac_objext; then
11692 ac_cv_c_const=yes
11693else
11694 $as_echo "$as_me: failed program was:" >&5
11695sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11696
8d138742
CE
11697 ac_cv_c_const=no
11698fi
d9898ee8 11699
8d138742
CE
11700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11701fi
11702{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11703$as_echo "$ac_cv_c_const" >&6; }
11704if test $ac_cv_c_const = no; then
d9898ee8 11705
8d138742
CE
11706cat >>confdefs.h <<\_ACEOF
11707#define const /**/
11708_ACEOF
d9898ee8 11709
8d138742 11710fi
d9898ee8 11711
8d138742
CE
11712{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
11713$as_echo_n "checking for off_t... " >&6; }
11714if test "${ac_cv_type_off_t+set}" = set; then
11715 $as_echo_n "(cached) " >&6
d9898ee8 11716else
8d138742
CE
11717 ac_cv_type_off_t=no
11718cat >conftest.$ac_ext <<_ACEOF
11719/* confdefs.h. */
11720_ACEOF
11721cat confdefs.h >>conftest.$ac_ext
11722cat >>conftest.$ac_ext <<_ACEOF
11723/* end confdefs.h. */
11724$ac_includes_default
11725int
11726main ()
11727{
11728if (sizeof (off_t))
11729 return 0;
11730 ;
11731 return 0;
11732}
11733_ACEOF
11734rm -f conftest.$ac_objext
11735if { (ac_try="$ac_compile"
11736case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739esac
11740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11741$as_echo "$ac_try_echo") >&5
11742 (eval "$ac_compile") 2>conftest.er1
11743 ac_status=$?
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
11747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } && {
11749 test -z "$ac_c_werror_flag" ||
11750 test ! -s conftest.err
11751 } && test -s conftest.$ac_objext; then
11752 cat >conftest.$ac_ext <<_ACEOF
11753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758$ac_includes_default
11759int
11760main ()
11761{
11762if (sizeof ((off_t)))
11763 return 0;
11764 ;
11765 return 0;
11766}
11767_ACEOF
11768rm -f conftest.$ac_objext
11769if { (ac_try="$ac_compile"
11770case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773esac
11774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11775$as_echo "$ac_try_echo") >&5
11776 (eval "$ac_compile") 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } && {
11783 test -z "$ac_c_werror_flag" ||
11784 test ! -s conftest.err
11785 } && test -s conftest.$ac_objext; then
11786 :
11787else
11788 $as_echo "$as_me: failed program was:" >&5
11789sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11790
8d138742
CE
11791 ac_cv_type_off_t=yes
11792fi
d9898ee8 11793
8d138742
CE
11794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795else
11796 $as_echo "$as_me: failed program was:" >&5
11797sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11798
d9898ee8 11799
8d138742 11800fi
d9898ee8 11801
8d138742
CE
11802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803fi
11804{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11805$as_echo "$ac_cv_type_off_t" >&6; }
11806if test "x$ac_cv_type_off_t" = x""yes; then
11807 :
11808else
d9898ee8 11809
8d138742
CE
11810cat >>confdefs.h <<_ACEOF
11811#define off_t long int
11812_ACEOF
d9898ee8 11813
8d138742 11814fi
d9898ee8 11815
8d138742
CE
11816{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11817$as_echo_n "checking for pid_t... " >&6; }
11818if test "${ac_cv_type_pid_t+set}" = set; then
11819 $as_echo_n "(cached) " >&6
11820else
11821 ac_cv_type_pid_t=no
11822cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828$ac_includes_default
11829int
11830main ()
11831{
11832if (sizeof (pid_t))
11833 return 0;
11834 ;
11835 return 0;
11836}
11837_ACEOF
11838rm -f conftest.$ac_objext
11839if { (ac_try="$ac_compile"
11840case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843esac
11844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11845$as_echo "$ac_try_echo") >&5
11846 (eval "$ac_compile") 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } && {
11853 test -z "$ac_c_werror_flag" ||
11854 test ! -s conftest.err
11855 } && test -s conftest.$ac_objext; then
11856 cat >conftest.$ac_ext <<_ACEOF
11857/* confdefs.h. */
11858_ACEOF
11859cat confdefs.h >>conftest.$ac_ext
11860cat >>conftest.$ac_ext <<_ACEOF
11861/* end confdefs.h. */
11862$ac_includes_default
11863int
11864main ()
11865{
11866if (sizeof ((pid_t)))
11867 return 0;
11868 ;
11869 return 0;
11870}
11871_ACEOF
11872rm -f conftest.$ac_objext
11873if { (ac_try="$ac_compile"
11874case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11877esac
11878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11879$as_echo "$ac_try_echo") >&5
11880 (eval "$ac_compile") 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } && {
11887 test -z "$ac_c_werror_flag" ||
11888 test ! -s conftest.err
11889 } && test -s conftest.$ac_objext; then
11890 :
11891else
11892 $as_echo "$as_me: failed program was:" >&5
11893sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11894
8d138742
CE
11895 ac_cv_type_pid_t=yes
11896fi
d9898ee8 11897
8d138742
CE
11898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899else
11900 $as_echo "$as_me: failed program was:" >&5
11901sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11902
d9898ee8 11903
8d138742 11904fi
d9898ee8 11905
8d138742
CE
11906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11907fi
11908{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11909$as_echo "$ac_cv_type_pid_t" >&6; }
11910if test "x$ac_cv_type_pid_t" = x""yes; then
11911 :
11912else
d9898ee8 11913
8d138742
CE
11914cat >>confdefs.h <<_ACEOF
11915#define pid_t int
11916_ACEOF
d9898ee8 11917
8d138742 11918fi
d9898ee8 11919
8d138742
CE
11920{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11921$as_echo_n "checking return type of signal handlers... " >&6; }
11922if test "${ac_cv_type_signal+set}" = set; then
11923 $as_echo_n "(cached) " >&6
11924else
11925 cat >conftest.$ac_ext <<_ACEOF
11926/* confdefs.h. */
11927_ACEOF
11928cat confdefs.h >>conftest.$ac_ext
11929cat >>conftest.$ac_ext <<_ACEOF
11930/* end confdefs.h. */
11931#include <sys/types.h>
11932#include <signal.h>
d9898ee8 11933
8d138742
CE
11934int
11935main ()
11936{
11937return *(signal (0, 0)) (0) == 1;
11938 ;
11939 return 0;
11940}
11941_ACEOF
11942rm -f conftest.$ac_objext
11943if { (ac_try="$ac_compile"
11944case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947esac
11948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11949$as_echo "$ac_try_echo") >&5
11950 (eval "$ac_compile") 2>conftest.er1
11951 ac_status=$?
11952 grep -v '^ *+' conftest.er1 >conftest.err
11953 rm -f conftest.er1
11954 cat conftest.err >&5
11955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } && {
11957 test -z "$ac_c_werror_flag" ||
11958 test ! -s conftest.err
11959 } && test -s conftest.$ac_objext; then
11960 ac_cv_type_signal=int
11961else
11962 $as_echo "$as_me: failed program was:" >&5
11963sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11964
8d138742
CE
11965 ac_cv_type_signal=void
11966fi
d9898ee8 11967
8d138742
CE
11968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969fi
11970{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11971$as_echo "$ac_cv_type_signal" >&6; }
d9898ee8 11972
8d138742
CE
11973cat >>confdefs.h <<_ACEOF
11974#define RETSIGTYPE $ac_cv_type_signal
11975_ACEOF
d9898ee8 11976
d9898ee8 11977
d9898ee8 11978
8d138742
CE
11979{ $as_echo "$as_me:$LINENO: checking for off64_t" >&5
11980$as_echo_n "checking for off64_t... " >&6; }
11981if test "${liblock_cv_hasoff64t+set}" = set; then
11982 $as_echo_n "(cached) " >&6
11983else
11984 liblock_cv_hasoff64t="no"
11985cat >conftest.$ac_ext <<_ACEOF
11986/* confdefs.h. */
11987_ACEOF
11988cat confdefs.h >>conftest.$ac_ext
11989cat >>conftest.$ac_ext <<_ACEOF
11990/* end confdefs.h. */
d9898ee8 11991
8d138742 11992#include <sys/types.h>
d9898ee8 11993
8d138742
CE
11994int
11995main ()
11996{
d9898ee8 11997
8d138742 11998off64_t n;
d9898ee8 11999
8d138742 12000 n=0;
d9898ee8 12001
8d138742
CE
12002 ;
12003 return 0;
12004}
12005_ACEOF
12006rm -f conftest.$ac_objext
12007if { (ac_try="$ac_compile"
12008case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011esac
12012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12013$as_echo "$ac_try_echo") >&5
12014 (eval "$ac_compile") 2>conftest.er1
12015 ac_status=$?
12016 grep -v '^ *+' conftest.er1 >conftest.err
12017 rm -f conftest.er1
12018 cat conftest.err >&5
12019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } && {
12021 test -z "$ac_c_werror_flag" ||
12022 test ! -s conftest.err
12023 } && test -s conftest.$ac_objext; then
12024 liblock_cv_hasoff64t="yes"
12025else
12026 $as_echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12028
d9898ee8 12029
8d138742 12030fi
d9898ee8 12031
8d138742 12032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12033
d9898ee8 12034
8d138742
CE
12035fi
12036{ $as_echo "$as_me:$LINENO: result: $liblock_cv_hasoff64t" >&5
12037$as_echo "$liblock_cv_hasoff64t" >&6; }
d9898ee8 12038
8d138742
CE
12039if test "$liblock_cv_hasoff64t" = "yes"
12040then
12041 LL_OFFSET_TYPE=off64_t
12042else
12043 LL_OFFSET_TYPE=off_t
12044fi
d9898ee8 12045
8d138742
CE
12046cat >>confdefs.h <<_ACEOF
12047#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12048_ACEOF
d9898ee8 12049
12050
8d138742
CE
12051{ $as_echo "$as_me:$LINENO: checking for flock_t" >&5
12052$as_echo_n "checking for flock_t... " >&6; }
12053if test "${liblock_cv_hasflock_t+set}" = set; then
12054 $as_echo_n "(cached) " >&6
d9898ee8 12055else
8d138742
CE
12056 liblock_cv_hasflock_t="no"
12057cat >conftest.$ac_ext <<_ACEOF
12058/* confdefs.h. */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h. */
d9898ee8 12063
8d138742
CE
12064#if HAVE_CONFIG_H
12065#include "config.h"
12066#endif
12067#include <sys/types.h>
12068#if HAVE_FCNTL_H
12069#include <fcntl.h>
12070#endif
12071#if HAVE_SYS_FCNTL_H
12072#include <sys/fcntl.h>
12073#endif
d9898ee8 12074
8d138742
CE
12075int
12076main ()
12077{
d9898ee8 12078
8d138742 12079flock_t t;
d9898ee8 12080
8d138742
CE
12081 ;
12082 return 0;
12083}
12084_ACEOF
12085rm -f conftest.$ac_objext
12086if { (ac_try="$ac_compile"
12087case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12090esac
12091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12092$as_echo "$ac_try_echo") >&5
12093 (eval "$ac_compile") 2>conftest.er1
12094 ac_status=$?
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
12098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } && {
12100 test -z "$ac_c_werror_flag" ||
12101 test ! -s conftest.err
12102 } && test -s conftest.$ac_objext; then
12103 liblock_cv_hasflock_t="yes"
12104else
12105 $as_echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12107
d9898ee8 12108
8d138742 12109fi
d9898ee8 12110
8d138742 12111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12112fi
8d138742
CE
12113{ $as_echo "$as_me:$LINENO: result: $liblock_cv_hasflock_t" >&5
12114$as_echo "$liblock_cv_hasflock_t" >&6; }
d9898ee8 12115
8d138742
CE
12116if test "$liblock_cv_hasflock_t" = "yes"
12117then
12118
12119cat >>confdefs.h <<_ACEOF
12120#define HAS_FLOCK_T 1
12121_ACEOF
d9898ee8 12122
8d138742 12123fi
d9898ee8 12124
d9898ee8 12125
d9898ee8 12126
d9898ee8 12127
12128
8d138742
CE
12129for ac_func in getdtablesize setpgrp sysconf
12130do
12131as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12132{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12133$as_echo_n "checking for $ac_func... " >&6; }
12134if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12135 $as_echo_n "(cached) " >&6
12136else
12137 cat >conftest.$ac_ext <<_ACEOF
12138/* confdefs.h. */
12139_ACEOF
12140cat confdefs.h >>conftest.$ac_ext
12141cat >>conftest.$ac_ext <<_ACEOF
12142/* end confdefs.h. */
12143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12145#define $ac_func innocuous_$ac_func
d9898ee8 12146
8d138742
CE
12147/* System header to define __stub macros and hopefully few prototypes,
12148 which can conflict with char $ac_func (); below.
12149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12150 <limits.h> exists even on freestanding compilers. */
d9898ee8 12151
8d138742
CE
12152#ifdef __STDC__
12153# include <limits.h>
12154#else
12155# include <assert.h>
12156#endif
d9898ee8 12157
8d138742 12158#undef $ac_func
d9898ee8 12159
8d138742
CE
12160/* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12163#ifdef __cplusplus
12164extern "C"
12165#endif
12166char $ac_func ();
12167/* The GNU C library defines this for functions which it implements
12168 to always fail with ENOSYS. Some functions are actually named
12169 something starting with __ and the normal name is an alias. */
12170#if defined __stub_$ac_func || defined __stub___$ac_func
12171choke me
12172#endif
d9898ee8 12173
8d138742
CE
12174int
12175main ()
12176{
12177return $ac_func ();
12178 ;
12179 return 0;
12180}
12181_ACEOF
12182rm -f conftest.$ac_objext conftest$ac_exeext
12183if { (ac_try="$ac_link"
12184case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187esac
12188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12189$as_echo "$ac_try_echo") >&5
12190 (eval "$ac_link") 2>conftest.er1
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest$ac_exeext && {
12200 test "$cross_compiling" = yes ||
12201 $as_test_x conftest$ac_exeext
12202 }; then
12203 eval "$as_ac_var=yes"
12204else
12205 $as_echo "$as_me: failed program was:" >&5
12206sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12207
8d138742
CE
12208 eval "$as_ac_var=no"
12209fi
d9898ee8 12210
8d138742
CE
12211rm -rf conftest.dSYM
12212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214fi
12215ac_res=`eval 'as_val=${'$as_ac_var'}
12216 $as_echo "$as_val"'`
12217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12218$as_echo "$ac_res" >&6; }
12219as_val=`eval 'as_val=${'$as_ac_var'}
12220 $as_echo "$as_val"'`
12221 if test "x$as_val" = x""yes; then
12222 cat >>confdefs.h <<_ACEOF
12223#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12224_ACEOF
d9898ee8 12225
8d138742
CE
12226fi
12227done
d9898ee8 12228
8d138742
CE
12229{ $as_echo "$as_me:$LINENO: checking for setpgrp" >&5
12230$as_echo_n "checking for setpgrp... " >&6; }
12231if test "${ac_cv_func_setpgrp+set}" = set; then
12232 $as_echo_n "(cached) " >&6
12233else
12234 cat >conftest.$ac_ext <<_ACEOF
12235/* confdefs.h. */
12236_ACEOF
12237cat confdefs.h >>conftest.$ac_ext
12238cat >>conftest.$ac_ext <<_ACEOF
12239/* end confdefs.h. */
12240/* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
12241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12242#define setpgrp innocuous_setpgrp
d9898ee8 12243
8d138742
CE
12244/* System header to define __stub macros and hopefully few prototypes,
12245 which can conflict with char setpgrp (); below.
12246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12247 <limits.h> exists even on freestanding compilers. */
d9898ee8 12248
8d138742
CE
12249#ifdef __STDC__
12250# include <limits.h>
12251#else
12252# include <assert.h>
12253#endif
d9898ee8 12254
8d138742 12255#undef setpgrp
d9898ee8 12256
8d138742
CE
12257/* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
12260#ifdef __cplusplus
12261extern "C"
12262#endif
12263char setpgrp ();
12264/* The GNU C library defines this for functions which it implements
12265 to always fail with ENOSYS. Some functions are actually named
12266 something starting with __ and the normal name is an alias. */
12267#if defined __stub_setpgrp || defined __stub___setpgrp
12268choke me
12269#endif
d9898ee8 12270
8d138742
CE
12271int
12272main ()
12273{
12274return setpgrp ();
12275 ;
12276 return 0;
12277}
12278_ACEOF
12279rm -f conftest.$ac_objext conftest$ac_exeext
12280if { (ac_try="$ac_link"
12281case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284esac
12285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12286$as_echo "$ac_try_echo") >&5
12287 (eval "$ac_link") 2>conftest.er1
12288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } && {
12294 test -z "$ac_c_werror_flag" ||
12295 test ! -s conftest.err
12296 } && test -s conftest$ac_exeext && {
12297 test "$cross_compiling" = yes ||
12298 $as_test_x conftest$ac_exeext
12299 }; then
12300 ac_cv_func_setpgrp=yes
12301else
12302 $as_echo "$as_me: failed program was:" >&5
12303sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12304
8d138742
CE
12305 ac_cv_func_setpgrp=no
12306fi
d9898ee8 12307
8d138742
CE
12308rm -rf conftest.dSYM
12309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12310 conftest$ac_exeext conftest.$ac_ext
12311fi
12312{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
12313$as_echo "$ac_cv_func_setpgrp" >&6; }
12314if test "x$ac_cv_func_setpgrp" = x""yes; then
d9898ee8 12315
8d138742
CE
12316 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
12317$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12318if test "${ac_cv_func_setpgrp_void+set}" = set; then
12319 $as_echo_n "(cached) " >&6
12320else
12321 if test "$cross_compiling" = yes; then
12322 { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
12323$as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
12324 { (exit 1); exit 1; }; }
12325else
12326 cat >conftest.$ac_ext <<_ACEOF
12327/* confdefs.h. */
12328_ACEOF
12329cat confdefs.h >>conftest.$ac_ext
12330cat >>conftest.$ac_ext <<_ACEOF
12331/* end confdefs.h. */
12332$ac_includes_default
12333int
12334main ()
12335{
12336/* If this system has a BSD-style setpgrp which takes arguments,
12337 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12338 exit successfully. */
12339 return setpgrp (1,1) != -1;
12340 ;
12341 return 0;
12342}
12343_ACEOF
12344rm -f conftest$ac_exeext
12345if { (ac_try="$ac_link"
12346case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12349esac
12350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12351$as_echo "$ac_try_echo") >&5
12352 (eval "$ac_link") 2>&5
12353 ac_status=$?
12354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12356 { (case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12359esac
12360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12361$as_echo "$ac_try_echo") >&5
12362 (eval "$ac_try") 2>&5
12363 ac_status=$?
12364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 ac_cv_func_setpgrp_void=no
12367else
12368 $as_echo "$as_me: program exited with status $ac_status" >&5
12369$as_echo "$as_me: failed program was:" >&5
12370sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12371
8d138742
CE
12372( exit $ac_status )
12373ac_cv_func_setpgrp_void=yes
12374fi
12375rm -rf conftest.dSYM
12376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12377fi
d9898ee8 12378
12379
8d138742
CE
12380fi
12381{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
12382$as_echo "$ac_cv_func_setpgrp_void" >&6; }
12383if test $ac_cv_func_setpgrp_void = yes; then
d9898ee8 12384
8d138742
CE
12385cat >>confdefs.h <<\_ACEOF
12386#define SETPGRP_VOID 1
12387_ACEOF
d9898ee8 12388
8d138742 12389fi
d9898ee8 12390
12391
12392
8d138742 12393fi
d9898ee8 12394
12395
8d138742
CE
12396{ $as_echo "$as_me:$LINENO: checking for fcntl" >&5
12397$as_echo_n "checking for fcntl... " >&6; }
12398if test "${liblock_cv_hasfcntl+set}" = set; then
12399 $as_echo_n "(cached) " >&6
d9898ee8 12400else
8d138742 12401 liblock_cv_hasfcntl="no"
d9898ee8 12402cat >conftest.$ac_ext <<_ACEOF
12403/* confdefs.h. */
12404_ACEOF
12405cat confdefs.h >>conftest.$ac_ext
12406cat >>conftest.$ac_ext <<_ACEOF
12407/* end confdefs.h. */
8d138742
CE
12408
12409#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12410#include "${srcdir}/lockfcntl.c"
12411
12412int
12413main ()
12414{
12415
12416int n;
12417
12418 ;
12419 return 0;
12420}
d9898ee8 12421_ACEOF
8d138742
CE
12422rm -f conftest.$ac_objext conftest$ac_exeext
12423if { (ac_try="$ac_link"
dd184caf 12424case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427esac
8d138742
CE
12428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12429$as_echo "$ac_try_echo") >&5
12430 (eval "$ac_link") 2>conftest.er1
d9898ee8 12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
8d138742 12435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
8d138742
CE
12439 } && test -s conftest$ac_exeext && {
12440 test "$cross_compiling" = yes ||
12441 $as_test_x conftest$ac_exeext
12442 }; then
12443 liblock_cv_hasfcntl="yes"
d9898ee8 12444else
8d138742 12445 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12446sed 's/^/| /' conftest.$ac_ext >&5
12447
8d138742 12448
d9898ee8 12449fi
dd184caf 12450
8d138742
CE
12451rm -rf conftest.dSYM
12452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12453 conftest$ac_exeext conftest.$ac_ext
12454fi
12455{ $as_echo "$as_me:$LINENO: result: $liblock_cv_hasfcntl" >&5
12456$as_echo "$liblock_cv_hasfcntl" >&6; }
12457if test "$liblock_cv_hasfcntl" = "yes"
12458then
d9898ee8 12459
8d138742
CE
12460cat >>confdefs.h <<_ACEOF
12461#define HAS_FCNTL 1
12462_ACEOF
12463
12464fi
12465
12466{ $as_echo "$as_me:$LINENO: checking for flock" >&5
12467$as_echo_n "checking for flock... " >&6; }
12468if test "${liblock_cv_hasflock+set}" = set; then
12469 $as_echo_n "(cached) " >&6
12470else
12471 liblock_cv_hasflock="no"
d9898ee8 12472cat >conftest.$ac_ext <<_ACEOF
12473/* confdefs.h. */
12474_ACEOF
12475cat confdefs.h >>conftest.$ac_ext
12476cat >>conftest.$ac_ext <<_ACEOF
12477/* end confdefs.h. */
8d138742
CE
12478
12479#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12480#include "${srcdir}/lockflock.c"
12481
12482int
12483main ()
12484{
12485
12486int n;
12487
12488 ;
12489 return 0;
12490}
d9898ee8 12491_ACEOF
8d138742
CE
12492rm -f conftest.$ac_objext conftest$ac_exeext
12493if { (ac_try="$ac_link"
dd184caf 12494case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497esac
8d138742
CE
12498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12499$as_echo "$ac_try_echo") >&5
12500 (eval "$ac_link") 2>conftest.er1
d9898ee8 12501 ac_status=$?
12502 grep -v '^ *+' conftest.er1 >conftest.err
12503 rm -f conftest.er1
12504 cat conftest.err >&5
8d138742
CE
12505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } && {
12507 test -z "$ac_c_werror_flag" ||
dd184caf 12508 test ! -s conftest.err
8d138742
CE
12509 } && test -s conftest$ac_exeext && {
12510 test "$cross_compiling" = yes ||
12511 $as_test_x conftest$ac_exeext
dd184caf 12512 }; then
8d138742 12513 liblock_cv_hasflock="yes"
d9898ee8 12514else
8d138742 12515 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12516sed 's/^/| /' conftest.$ac_ext >&5
12517
d9898ee8 12518
d9898ee8 12519fi
d9898ee8 12520
8d138742
CE
12521rm -rf conftest.dSYM
12522rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12523 conftest$ac_exeext conftest.$ac_ext
d9898ee8 12524fi
8d138742
CE
12525{ $as_echo "$as_me:$LINENO: result: $liblock_cv_hasflock" >&5
12526$as_echo "$liblock_cv_hasflock" >&6; }
12527if test "$liblock_cv_hasflock" = "yes"
12528then
12529
12530cat >>confdefs.h <<_ACEOF
12531#define HAS_FLOCK 1
d9898ee8 12532_ACEOF
12533
12534fi
12535
8d138742
CE
12536{ $as_echo "$as_me:$LINENO: checking for lockf" >&5
12537$as_echo_n "checking for lockf... " >&6; }
12538if test "${liblock_cv_haslockf+set}" = set; then
12539 $as_echo_n "(cached) " >&6
d9898ee8 12540else
8d138742
CE
12541 liblock_cv_haslockf="no"
12542cat >conftest.$ac_ext <<_ACEOF
d9898ee8 12543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
8d138742
CE
12548
12549#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12550#include "${srcdir}/locklockf.c"
d9898ee8 12551
12552int
12553main ()
12554{
12555
8d138742
CE
12556int n;
12557
d9898ee8 12558 ;
12559 return 0;
12560}
12561_ACEOF
8d138742
CE
12562rm -f conftest.$ac_objext conftest$ac_exeext
12563if { (ac_try="$ac_link"
dd184caf 12564case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567esac
8d138742
CE
12568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12569$as_echo "$ac_try_echo") >&5
12570 (eval "$ac_link") 2>conftest.er1
d9898ee8 12571 ac_status=$?
12572 grep -v '^ *+' conftest.er1 >conftest.err
12573 rm -f conftest.er1
12574 cat conftest.err >&5
8d138742 12575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12576 (exit $ac_status); } && {
12577 test -z "$ac_c_werror_flag" ||
12578 test ! -s conftest.err
8d138742
CE
12579 } && test -s conftest$ac_exeext && {
12580 test "$cross_compiling" = yes ||
12581 $as_test_x conftest$ac_exeext
12582 }; then
12583 liblock_cv_haslockf="yes"
d9898ee8 12584else
8d138742 12585 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12586sed 's/^/| /' conftest.$ac_ext >&5
12587
8d138742 12588
d9898ee8 12589fi
dd184caf 12590
8d138742
CE
12591rm -rf conftest.dSYM
12592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12593 conftest$ac_exeext conftest.$ac_ext
12594fi
12595{ $as_echo "$as_me:$LINENO: result: $liblock_cv_haslockf" >&5
12596$as_echo "$liblock_cv_haslockf" >&6; }
12597if test "$liblock_cv_haslockf" = "yes"
12598then
d9898ee8 12599
8d138742
CE
12600cat >>confdefs.h <<_ACEOF
12601#define HAS_LOCKF 1
d9898ee8 12602_ACEOF
d9898ee8 12603
d9898ee8 12604fi
d9898ee8 12605
8d138742
CE
12606{ $as_echo "$as_me:$LINENO: checking for locking method" >&5
12607$as_echo_n "checking for locking method... " >&6; }
12608
12609# Check whether --with-locking-method was given.
12610if test "${with_locking_method+set}" = set; then
12611 withval=$with_locking_method; lockmethod="$withval"
12612else
12613 lockmethod=""
d9898ee8 12614fi
12615
8d138742
CE
12616
12617case x$lockmethod in
12618xfcntl)
12619 if test "$cross_compiling" = yes; then
12620 :
12621
12622else
d9898ee8 12623 cat >conftest.$ac_ext <<_ACEOF
12624/* confdefs.h. */
12625_ACEOF
12626cat confdefs.h >>conftest.$ac_ext
12627cat >>conftest.$ac_ext <<_ACEOF
12628/* end confdefs.h. */
8d138742
CE
12629
12630#define USE_FCNTL 1
12631#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12632#include "${srcdir}/locktest.c"
d9898ee8 12633
12634_ACEOF
8d138742
CE
12635rm -f conftest$ac_exeext
12636if { (ac_try="$ac_link"
12637case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640esac
12641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12642$as_echo "$ac_try_echo") >&5
12643 (eval "$ac_link") 2>&5
12644 ac_status=$?
12645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12647 { (case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650esac
12651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12652$as_echo "$ac_try_echo") >&5
12653 (eval "$ac_try") 2>&5
12654 ac_status=$?
12655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
d9898ee8 12657 :
12658else
8d138742
CE
12659 $as_echo "$as_me: program exited with status $ac_status" >&5
12660$as_echo "$as_me: failed program was:" >&5
12661sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12662
8d138742
CE
12663( exit $ac_status )
12664{ { $as_echo "$as_me:$LINENO: error: fcntl test failed." >&5
12665$as_echo "$as_me: error: fcntl test failed." >&2;}
12666 { (exit 1); exit 1; }; }
12667fi
12668rm -rf conftest.dSYM
12669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 12670fi
12671
8d138742
CE
12672
12673 ;;
12674x)
12675 if test "$cross_compiling" = yes; then
12676 { { $as_echo "$as_me:$LINENO: error: --with-locking-method option required" >&5
12677$as_echo "$as_me: error: --with-locking-method option required" >&2;}
12678 { (exit 1); exit 1; }; }
d9898ee8 12679else
12680 cat >conftest.$ac_ext <<_ACEOF
12681/* confdefs.h. */
12682_ACEOF
12683cat confdefs.h >>conftest.$ac_ext
12684cat >>conftest.$ac_ext <<_ACEOF
8d138742
CE
12685/* end confdefs.h. */
12686
12687#define USE_FCNTL 1
12688#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12689#include "${srcdir}/locktest.c"
12690
d9898ee8 12691_ACEOF
12692rm -f conftest$ac_exeext
dd184caf 12693if { (ac_try="$ac_link"
12694case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12697esac
8d138742
CE
12698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12699$as_echo "$ac_try_echo") >&5
dd184caf 12700 (eval "$ac_link") 2>&5
d9898ee8 12701 ac_status=$?
8d138742 12702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 12703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 12704 { (case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12707esac
8d138742
CE
12708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12709$as_echo "$ac_try_echo") >&5
dd184caf 12710 (eval "$ac_try") 2>&5
d9898ee8 12711 ac_status=$?
8d138742 12712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 12713 (exit $ac_status); }; }; then
8d138742 12714 lockmethod=fcntl
d9898ee8 12715else
8d138742
CE
12716 $as_echo "$as_me: program exited with status $ac_status" >&5
12717$as_echo "$as_me: failed program was:" >&5
d9898ee8 12718sed 's/^/| /' conftest.$ac_ext >&5
12719
d9898ee8 12720fi
8d138742 12721rm -rf conftest.dSYM
dd184caf 12722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 12723fi
dd184caf 12724
12725
8d138742
CE
12726 ;;
12727esac
d9898ee8 12728
8d138742
CE
12729case x$lockmethod in
12730xlockf)
12731 if test "$cross_compiling" = yes; then
12732 :
d9898ee8 12733
d9898ee8 12734else
12735 cat >conftest.$ac_ext <<_ACEOF
12736/* confdefs.h. */
12737_ACEOF
12738cat confdefs.h >>conftest.$ac_ext
12739cat >>conftest.$ac_ext <<_ACEOF
12740/* end confdefs.h. */
d9898ee8 12741
8d138742
CE
12742#define USE_LOCKF 1
12743#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12744#include "${srcdir}/locktest.c"
12745
d9898ee8 12746_ACEOF
8d138742
CE
12747rm -f conftest$ac_exeext
12748if { (ac_try="$ac_link"
dd184caf 12749case "(($ac_try" in
12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12752esac
8d138742
CE
12753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12754$as_echo "$ac_try_echo") >&5
12755 (eval "$ac_link") 2>&5
d9898ee8 12756 ac_status=$?
8d138742
CE
12757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12759 { (case "(($ac_try" in
12760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761 *) ac_try_echo=$ac_try;;
12762esac
12763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12764$as_echo "$ac_try_echo") >&5
12765 (eval "$ac_try") 2>&5
12766 ac_status=$?
12767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 :
d9898ee8 12770else
8d138742
CE
12771 $as_echo "$as_me: program exited with status $ac_status" >&5
12772$as_echo "$as_me: failed program was:" >&5
d9898ee8 12773sed 's/^/| /' conftest.$ac_ext >&5
12774
8d138742
CE
12775( exit $ac_status )
12776{ { $as_echo "$as_me:$LINENO: error: lockf test failed." >&5
12777$as_echo "$as_me: error: lockf test failed." >&2;}
12778 { (exit 1); exit 1; }; }
d9898ee8 12779fi
8d138742
CE
12780rm -rf conftest.dSYM
12781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 12782fi
12783
12784
8d138742
CE
12785 ;;
12786x)
12787 if test "$cross_compiling" = yes; then
12788 { { $as_echo "$as_me:$LINENO: error: --with-locking-method option required" >&5
12789$as_echo "$as_me: error: --with-locking-method option required" >&2;}
12790 { (exit 1); exit 1; }; }
d9898ee8 12791else
12792 cat >conftest.$ac_ext <<_ACEOF
12793/* confdefs.h. */
12794_ACEOF
12795cat confdefs.h >>conftest.$ac_ext
12796cat >>conftest.$ac_ext <<_ACEOF
12797/* end confdefs.h. */
12798
8d138742
CE
12799#define USE_LOCKF 1
12800#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12801#include "${srcdir}/locktest.c"
d9898ee8 12802
d9898ee8 12803_ACEOF
8d138742
CE
12804rm -f conftest$ac_exeext
12805if { (ac_try="$ac_link"
dd184caf 12806case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12809esac
8d138742
CE
12810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12811$as_echo "$ac_try_echo") >&5
12812 (eval "$ac_link") 2>&5
d9898ee8 12813 ac_status=$?
8d138742
CE
12814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12816 { (case "(($ac_try" in
dd184caf 12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819esac
8d138742
CE
12820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12821$as_echo "$ac_try_echo") >&5
12822 (eval "$ac_try") 2>&5
d9898ee8 12823 ac_status=$?
8d138742
CE
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 lockmethod=lockf
d9898ee8 12827else
8d138742
CE
12828 $as_echo "$as_me: program exited with status $ac_status" >&5
12829$as_echo "$as_me: failed program was:" >&5
d9898ee8 12830sed 's/^/| /' conftest.$ac_ext >&5
12831
d9898ee8 12832fi
8d138742
CE
12833rm -rf conftest.dSYM
12834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 12835fi
d9898ee8 12836
d9898ee8 12837
8d138742
CE
12838 ;;
12839esac
12840
12841
12842case x$lockmethod in
12843xflock)
12844 if test "$cross_compiling" = yes; then
12845 :
d9898ee8 12846
d9898ee8 12847else
12848 cat >conftest.$ac_ext <<_ACEOF
12849/* confdefs.h. */
12850_ACEOF
12851cat confdefs.h >>conftest.$ac_ext
12852cat >>conftest.$ac_ext <<_ACEOF
12853/* end confdefs.h. */
8d138742
CE
12854
12855#define USE_FLOCK 1
12856#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12857#include "${srcdir}/locktest.c"
12858
d9898ee8 12859_ACEOF
8d138742
CE
12860rm -f conftest$ac_exeext
12861if { (ac_try="$ac_link"
dd184caf 12862case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12865esac
8d138742
CE
12866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12867$as_echo "$ac_try_echo") >&5
12868 (eval "$ac_link") 2>&5
d9898ee8 12869 ac_status=$?
8d138742
CE
12870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12872 { (case "(($ac_try" in
12873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874 *) ac_try_echo=$ac_try;;
12875esac
12876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12877$as_echo "$ac_try_echo") >&5
12878 (eval "$ac_try") 2>&5
12879 ac_status=$?
12880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; }; then
12882 :
d9898ee8 12883else
8d138742
CE
12884 $as_echo "$as_me: program exited with status $ac_status" >&5
12885$as_echo "$as_me: failed program was:" >&5
d9898ee8 12886sed 's/^/| /' conftest.$ac_ext >&5
12887
8d138742
CE
12888( exit $ac_status )
12889{ { $as_echo "$as_me:$LINENO: error: flock test failed." >&5
12890$as_echo "$as_me: error: flock test failed." >&2;}
12891 { (exit 1); exit 1; }; }
d9898ee8 12892fi
8d138742
CE
12893rm -rf conftest.dSYM
12894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 12895fi
d9898ee8 12896
d9898ee8 12897
8d138742
CE
12898 ;;
12899x)
12900 if test "$cross_compiling" = yes; then
12901 { { $as_echo "$as_me:$LINENO: error: --with-locking-method option required" >&5
12902$as_echo "$as_me: error: --with-locking-method option required" >&2;}
12903 { (exit 1); exit 1; }; }
d9898ee8 12904else
12905 cat >conftest.$ac_ext <<_ACEOF
12906/* confdefs.h. */
12907_ACEOF
12908cat confdefs.h >>conftest.$ac_ext
12909cat >>conftest.$ac_ext <<_ACEOF
12910/* end confdefs.h. */
d9898ee8 12911
8d138742
CE
12912#define USE_FLOCK 1
12913#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12914#include "${srcdir}/locktest.c"
12915
d9898ee8 12916_ACEOF
8d138742
CE
12917rm -f conftest$ac_exeext
12918if { (ac_try="$ac_link"
dd184caf 12919case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12922esac
8d138742
CE
12923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12924$as_echo "$ac_try_echo") >&5
12925 (eval "$ac_link") 2>&5
d9898ee8 12926 ac_status=$?
8d138742
CE
12927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12929 { (case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932esac
12933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12934$as_echo "$ac_try_echo") >&5
12935 (eval "$ac_try") 2>&5
12936 ac_status=$?
12937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 lockmethod=flock
d9898ee8 12940else
8d138742
CE
12941 $as_echo "$as_me: program exited with status $ac_status" >&5
12942$as_echo "$as_me: failed program was:" >&5
d9898ee8 12943sed 's/^/| /' conftest.$ac_ext >&5
12944
8d138742
CE
12945fi
12946rm -rf conftest.dSYM
12947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 12948fi
dd184caf 12949
8d138742
CE
12950
12951 ;;
12952esac
12953
12954case x$lockmethod in
12955xlockf)
12956 ;;
12957xflock)
12958 ;;
12959xfcntl)
12960 ;;
12961*)
12962 { { $as_echo "$as_me:$LINENO: error: must specify --with-locking-method option" >&5
12963$as_echo "$as_me: error: must specify --with-locking-method option" >&2;}
12964 { (exit 1); exit 1; }; }
12965 ;;
12966esac
12967
12968{ $as_echo "$as_me:$LINENO: result: $lockmethod" >&5
12969$as_echo "$lockmethod" >&6; }
12970
12971 if test "$lockmethod" = "fcntl"; then
12972 USE_FCNTL_TRUE=
12973 USE_FCNTL_FALSE='#'
12974else
12975 USE_FCNTL_TRUE='#'
12976 USE_FCNTL_FALSE=
12977fi
12978
12979 if test "$lockmethod" = "flock"; then
12980 USE_FLOCK_TRUE=
12981 USE_FLOCK_FALSE='#'
12982else
12983 USE_FLOCK_TRUE='#'
12984 USE_FLOCK_FALSE=
12985fi
12986
12987 if test "$lockmethod" = "lockf"; then
12988 USE_LOCKF_TRUE=
12989 USE_LOCKF_FALSE='#'
12990else
12991 USE_LOCKF_TRUE='#'
12992 USE_LOCKF_FALSE=
12993fi
12994
12995
12996 if test -d ${srcdir}/../docbook; then
12997 HAVE_SGML_TRUE=
12998 HAVE_SGML_FALSE='#'
12999else
13000 HAVE_SGML_TRUE='#'
13001 HAVE_SGML_FALSE=
d9898ee8 13002fi
8d138742
CE
13003
13004
d9898ee8 13005
13006cat >>confdefs.h <<_ACEOF
8d138742
CE
13007#define liblock_config_h 1
13008_ACEOF
13009
13010
13011ac_config_files="$ac_config_files Makefile"
13012
13013cat >confcache <<\_ACEOF
13014# This file is a shell script that caches the results of configure
13015# tests run on this system so they can be shared between configure
13016# scripts and configure runs, see configure's option --config-cache.
13017# It is not useful on other systems. If it contains results you don't
13018# want to keep, you may remove or edit it.
13019#
13020# config.status only pays attention to the cache file if you give it
13021# the --recheck option to rerun configure.
13022#
13023# `ac_cv_env_foo' variables (set or unset) will be overridden when
13024# loading this file, other *unset* `ac_cv_foo' will be assigned the
13025# following values.
13026
d9898ee8 13027_ACEOF
13028
8d138742
CE
13029# The following way of writing the cache mishandles newlines in values,
13030# but we know of no workaround that is simple, portable, and efficient.
13031# So, we kill variables containing newlines.
13032# Ultrix sh set writes to stderr and can't be redirected directly,
13033# and sets the high bit in the cache file unless we assign to the vars.
13034(
13035 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13036 eval ac_val=\$$ac_var
13037 case $ac_val in #(
13038 *${as_nl}*)
13039 case $ac_var in #(
13040 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13041$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13042 esac
13043 case $ac_var in #(
13044 _ | IFS | as_nl) ;; #(
13045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13046 *) $as_unset $ac_var ;;
13047 esac ;;
13048 esac
13049 done
13050
13051 (set) 2>&1 |
13052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13053 *${as_nl}ac_space=\ *)
13054 # `set' does not quote correctly, so add quotes (double-quote
13055 # substitution turns \\\\ into \\, and sed turns \\ into \).
13056 sed -n \
13057 "s/'/'\\\\''/g;
13058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13059 ;; #(
13060 *)
13061 # `set' quotes correctly as required by POSIX, so do not add quotes.
13062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13063 ;;
13064 esac |
13065 sort
13066) |
13067 sed '
13068 /^ac_cv_env_/b end
13069 t clear
13070 :clear
13071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13072 t end
13073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13074 :end' >>confcache
13075if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13076 if test -w "$cache_file"; then
13077 test "x$cache_file" != "x/dev/null" &&
13078 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13079$as_echo "$as_me: updating cache $cache_file" >&6;}
13080 cat confcache >$cache_file
13081 else
13082 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13083$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13084 fi
13085fi
13086rm -f confcache
13087
13088test "x$prefix" = xNONE && prefix=$ac_default_prefix
13089# Let make expand exec_prefix.
13090test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13091
13092DEFS=-DHAVE_CONFIG_H
13093
13094ac_libobjs=
13095ac_ltlibobjs=
13096for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13097 # 1. Remove the extension, and $U if already installed.
13098 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13099 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13101 # will be set to the directory where LIBOBJS objects are built.
13102 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13103 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13104done
13105LIBOBJS=$ac_libobjs
13106
13107LTLIBOBJS=$ac_ltlibobjs
13108
13109
13110 if test -n "$EXEEXT"; then
13111 am__EXEEXT_TRUE=
13112 am__EXEEXT_FALSE='#'
13113else
13114 am__EXEEXT_TRUE='#'
13115 am__EXEEXT_FALSE=
13116fi
13117
13118if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13119 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13120Usually this means the macro was only invoked conditionally." >&5
13121$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13122Usually this means the macro was only invoked conditionally." >&2;}
13123 { (exit 1); exit 1; }; }
13124fi
13125if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13126 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13127Usually this means the macro was only invoked conditionally." >&5
13128$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13129Usually this means the macro was only invoked conditionally." >&2;}
13130 { (exit 1); exit 1; }; }
13131fi
13132if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then
13133 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_FCNTL\" was never defined.
13134Usually this means the macro was only invoked conditionally." >&5
13135$as_echo "$as_me: error: conditional \"USE_FCNTL\" was never defined.
13136Usually this means the macro was only invoked conditionally." >&2;}
13137 { (exit 1); exit 1; }; }
13138fi
13139if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then
13140 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_FLOCK\" was never defined.
13141Usually this means the macro was only invoked conditionally." >&5
13142$as_echo "$as_me: error: conditional \"USE_FLOCK\" was never defined.
13143Usually this means the macro was only invoked conditionally." >&2;}
13144 { (exit 1); exit 1; }; }
13145fi
13146if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then
13147 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LOCKF\" was never defined.
13148Usually this means the macro was only invoked conditionally." >&5
13149$as_echo "$as_me: error: conditional \"USE_LOCKF\" was never defined.
13150Usually this means the macro was only invoked conditionally." >&2;}
13151 { (exit 1); exit 1; }; }
13152fi
13153if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
13154 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
13155Usually this means the macro was only invoked conditionally." >&5
13156$as_echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
13157Usually this means the macro was only invoked conditionally." >&2;}
13158 { (exit 1); exit 1; }; }
13159fi
13160
13161: ${CONFIG_STATUS=./config.status}
13162ac_write_fail=0
13163ac_clean_files_save=$ac_clean_files
13164ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13165{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13166$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13167cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13168#! $SHELL
13169# Generated by $as_me.
13170# Run this file to recreate the current configuration.
13171# Compiler output produced by configure, useful for debugging
13172# configure, is in config.log if it exists.
13173
13174debug=false
13175ac_cs_recheck=false
13176ac_cs_silent=false
13177SHELL=\${CONFIG_SHELL-$SHELL}
13178_ACEOF
d9898ee8 13179
8d138742
CE
13180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13181## --------------------- ##
13182## M4sh Initialization. ##
13183## --------------------- ##
d9898ee8 13184
8d138742
CE
13185# Be more Bourne compatible
13186DUALCASE=1; export DUALCASE # for MKS sh
13187if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13188 emulate sh
13189 NULLCMD=:
13190 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13191 # is contrary to our usage. Disable this feature.
13192 alias -g '${1+"$@"}'='"$@"'
13193 setopt NO_GLOB_SUBST
d9898ee8 13194else
8d138742
CE
13195 case `(set -o) 2>/dev/null` in
13196 *posix*) set -o posix ;;
13197esac
d9898ee8 13198
8d138742 13199fi
d9898ee8 13200
d9898ee8 13201
d9898ee8 13202
d9898ee8 13203
8d138742
CE
13204# PATH needs CR
13205# Avoid depending upon Character Ranges.
13206as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13207as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13208as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13209as_cr_digits='0123456789'
13210as_cr_alnum=$as_cr_Letters$as_cr_digits
dd184caf 13211
8d138742
CE
13212as_nl='
13213'
13214export as_nl
13215# Printing a long string crashes Solaris 7 /usr/bin/printf.
13216as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13217as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13218as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13219if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13220 as_echo='printf %s\n'
13221 as_echo_n='printf %s'
13222else
13223 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13224 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13225 as_echo_n='/usr/ucb/echo -n'
13226 else
13227 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13228 as_echo_n_body='eval
13229 arg=$1;
13230 case $arg in
13231 *"$as_nl"*)
13232 expr "X$arg" : "X\\(.*\\)$as_nl";
13233 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13234 esac;
13235 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13236 '
13237 export as_echo_n_body
13238 as_echo_n='sh -c $as_echo_n_body as_echo'
13239 fi
13240 export as_echo_body
13241 as_echo='sh -c $as_echo_body as_echo'
d9898ee8 13242fi
dd184caf 13243
8d138742
CE
13244# The user is always right.
13245if test "${PATH_SEPARATOR+set}" != set; then
13246 PATH_SEPARATOR=:
13247 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13248 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13249 PATH_SEPARATOR=';'
13250 }
d9898ee8 13251fi
d9898ee8 13252
8d138742
CE
13253# Support unset when possible.
13254if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13255 as_unset=unset
d9898ee8 13256else
8d138742 13257 as_unset=false
d9898ee8 13258fi
13259
d9898ee8 13260
8d138742
CE
13261# IFS
13262# We need space, tab and new line, in precisely that order. Quoting is
13263# there to prevent editors from complaining about space-tab.
13264# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13265# splitting by setting IFS to empty value.)
13266IFS=" "" $as_nl"
d9898ee8 13267
8d138742
CE
13268# Find who we are. Look in the path if we contain no directory separator.
13269case $0 in
13270 *[\\/]* ) as_myself=$0 ;;
13271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272for as_dir in $PATH
13273do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13277done
13278IFS=$as_save_IFS
d9898ee8 13279
8d138742
CE
13280 ;;
13281esac
13282# We did not find ourselves, most probably we were run as `sh COMMAND'
13283# in which case we are not to be found in the path.
13284if test "x$as_myself" = x; then
13285 as_myself=$0
13286fi
13287if test ! -f "$as_myself"; then
13288 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13289 { (exit 1); exit 1; }
13290fi
d9898ee8 13291
8d138742
CE
13292# Work around bugs in pre-3.0 UWIN ksh.
13293for as_var in ENV MAIL MAILPATH
13294do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13295done
13296PS1='$ '
13297PS2='> '
13298PS4='+ '
d9898ee8 13299
8d138742
CE
13300# NLS nuisances.
13301LC_ALL=C
13302export LC_ALL
13303LANGUAGE=C
13304export LANGUAGE
d9898ee8 13305
8d138742
CE
13306# Required to use basename.
13307if expr a : '\(a\)' >/dev/null 2>&1 &&
13308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13309 as_expr=expr
d9898ee8 13310else
8d138742 13311 as_expr=false
d9898ee8 13312fi
dd184caf 13313
8d138742
CE
13314if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13315 as_basename=basename
13316else
13317 as_basename=false
d9898ee8 13318fi
d9898ee8 13319
d9898ee8 13320
8d138742
CE
13321# Name of the executable.
13322as_me=`$as_basename -- "$0" ||
13323$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13324 X"$0" : 'X\(//\)$' \| \
13325 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13326$as_echo X/"$0" |
13327 sed '/^.*\/\([^/][^/]*\)\/*$/{
13328 s//\1/
13329 q
13330 }
13331 /^X\/\(\/\/\)$/{
13332 s//\1/
13333 q
13334 }
13335 /^X\/\(\/\).*/{
13336 s//\1/
13337 q
13338 }
13339 s/.*/./; q'`
d9898ee8 13340
8d138742
CE
13341# CDPATH.
13342$as_unset CDPATH
d9898ee8 13343
dd184caf 13344
84870c69 13345
8d138742
CE
13346 as_lineno_1=$LINENO
13347 as_lineno_2=$LINENO
13348 test "x$as_lineno_1" != "x$as_lineno_2" &&
13349 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 13350
8d138742
CE
13351 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13352 # uniformly replaced by the line number. The first 'sed' inserts a
13353 # line-number line after each line using $LINENO; the second 'sed'
13354 # does the real work. The second script uses 'N' to pair each
13355 # line-number line with the line containing $LINENO, and appends
13356 # trailing '-' during substitution so that $LINENO is not a special
13357 # case at line end.
13358 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13359 # scripts with optimization help from Paolo Bonzini. Blame Lee
13360 # E. McMahon (1931-1989) for sed's syntax. :-)
13361 sed -n '
13362 p
13363 /[$]LINENO/=
13364 ' <$as_myself |
13365 sed '
13366 s/[$]LINENO.*/&-/
13367 t lineno
13368 b
13369 :lineno
13370 N
13371 :loop
13372 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13373 t loop
13374 s/-\n.*//
13375 ' >$as_me.lineno &&
13376 chmod +x "$as_me.lineno" ||
13377 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13378 { (exit 1); exit 1; }; }
d9898ee8 13379
8d138742
CE
13380 # Don't try to exec as it changes $[0], causing all sort of problems
13381 # (the dirname of $[0] is not the place where we might find the
13382 # original and so on. Autoconf is especially sensitive to this).
13383 . "./$as_me.lineno"
13384 # Exit status is that of the last command.
13385 exit
13386}
d9898ee8 13387
d9898ee8 13388
8d138742
CE
13389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13390 as_dirname=dirname
13391else
13392 as_dirname=false
13393fi
d9898ee8 13394
8d138742
CE
13395ECHO_C= ECHO_N= ECHO_T=
13396case `echo -n x` in
13397-n*)
13398 case `echo 'x\c'` in
13399 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13400 *) ECHO_C='\c';;
13401 esac;;
13402*)
13403 ECHO_N='-n';;
dd184caf 13404esac
8d138742
CE
13405if expr a : '\(a\)' >/dev/null 2>&1 &&
13406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13407 as_expr=expr
d9898ee8 13408else
8d138742 13409 as_expr=false
d9898ee8 13410fi
dd184caf 13411
8d138742
CE
13412rm -f conf$$ conf$$.exe conf$$.file
13413if test -d conf$$.dir; then
13414 rm -f conf$$.dir/conf$$.file
13415else
13416 rm -f conf$$.dir
13417 mkdir conf$$.dir 2>/dev/null
13418fi
13419if (echo >conf$$.file) 2>/dev/null; then
13420 if ln -s conf$$.file conf$$ 2>/dev/null; then
13421 as_ln_s='ln -s'
13422 # ... but there are two gotchas:
13423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13425 # In both cases, we have to default to `cp -p'.
13426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13427 as_ln_s='cp -p'
13428 elif ln conf$$.file conf$$ 2>/dev/null; then
13429 as_ln_s=ln
13430 else
13431 as_ln_s='cp -p'
13432 fi
13433else
13434 as_ln_s='cp -p'
d9898ee8 13435fi
8d138742
CE
13436rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13437rmdir conf$$.dir 2>/dev/null
d9898ee8 13438
8d138742
CE
13439if mkdir -p . 2>/dev/null; then
13440 as_mkdir_p=:
13441else
13442 test -d ./-p && rmdir ./-p
13443 as_mkdir_p=false
d9898ee8 13444fi
d9898ee8 13445
8d138742
CE
13446if test -x / >/dev/null 2>&1; then
13447 as_test_x='test -x'
d9898ee8 13448else
8d138742
CE
13449 if ls -dL / >/dev/null 2>&1; then
13450 as_ls_L_option=L
13451 else
13452 as_ls_L_option=
13453 fi
13454 as_test_x='
13455 eval sh -c '\''
13456 if test -d "$1"; then
13457 test -d "$1/.";
13458 else
13459 case $1 in
13460 -*)set "./$1";;
13461 esac;
13462 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13463 ???[sx]*):;;*)false;;esac;fi
13464 '\'' sh
13465 '
13466fi
13467as_executable_p=$as_test_x
d9898ee8 13468
8d138742
CE
13469# Sed expression to map a string onto a valid CPP name.
13470as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 13471
8d138742
CE
13472# Sed expression to map a string onto a valid variable name.
13473as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 13474
d9898ee8 13475
8d138742 13476exec 6>&1
d9898ee8 13477
8d138742
CE
13478# Save the log message, to keep $[0] and so on meaningful, and to
13479# report actual input values of CONFIG_FILES etc. instead of their
13480# values after options handling.
13481ac_log="
13482This file was extended by liblock $as_me 0.60, which was
13483generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 13484
8d138742
CE
13485 CONFIG_FILES = $CONFIG_FILES
13486 CONFIG_HEADERS = $CONFIG_HEADERS
13487 CONFIG_LINKS = $CONFIG_LINKS
13488 CONFIG_COMMANDS = $CONFIG_COMMANDS
13489 $ $0 $@
dd184caf 13490
8d138742
CE
13491on `(hostname || uname -n) 2>/dev/null | sed 1q`
13492"
d9898ee8 13493
d9898ee8 13494_ACEOF
8d138742
CE
13495
13496case $ac_config_files in *"
13497"*) set x $ac_config_files; shift; ac_config_files=$*;;
dd184caf 13498esac
d9898ee8 13499
8d138742
CE
13500case $ac_config_headers in *"
13501"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13502esac
dd184caf 13503
13504
8d138742
CE
13505cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13506# Files that config.status was made for.
13507config_files="$ac_config_files"
13508config_headers="$ac_config_headers"
13509config_commands="$ac_config_commands"
d9898ee8 13510
d9898ee8 13511_ACEOF
13512
8d138742
CE
13513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13514ac_cs_usage="\
13515\`$as_me' instantiates files from templates according to the
13516current configuration.
13517
13518Usage: $0 [OPTION]... [FILE]...
d9898ee8 13519
8d138742
CE
13520 -h, --help print this help, then exit
13521 -V, --version print version number and configuration settings, then exit
13522 -q, --quiet, --silent
13523 do not print progress messages
13524 -d, --debug don't remove temporary files
13525 --recheck update $as_me by reconfiguring in the same conditions
13526 --file=FILE[:TEMPLATE]
13527 instantiate the configuration file FILE
13528 --header=FILE[:TEMPLATE]
13529 instantiate the configuration header FILE
d9898ee8 13530
8d138742
CE
13531Configuration files:
13532$config_files
d9898ee8 13533
8d138742
CE
13534Configuration headers:
13535$config_headers
13536
13537Configuration commands:
13538$config_commands
13539
13540Report bugs to <bug-autoconf@gnu.org>."
13541
13542_ACEOF
13543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13544ac_cs_version="\\
13545liblock config.status 0.60
13546configured by $0, generated by GNU Autoconf 2.63,
13547 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 13548
8d138742
CE
13549Copyright (C) 2008 Free Software Foundation, Inc.
13550This config.status script is free software; the Free Software Foundation
13551gives unlimited permission to copy, distribute and modify it."
d9898ee8 13552
8d138742
CE
13553ac_pwd='$ac_pwd'
13554srcdir='$srcdir'
13555INSTALL='$INSTALL'
13556MKDIR_P='$MKDIR_P'
13557AWK='$AWK'
13558test -n "\$AWK" || AWK=awk
d9898ee8 13559_ACEOF
d9898ee8 13560
8d138742
CE
13561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13562# The default lists apply if the user does not specify any file.
13563ac_need_defaults=:
13564while test $# != 0
13565do
13566 case $1 in
13567 --*=*)
13568 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13569 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13570 ac_shift=:
13571 ;;
13572 *)
13573 ac_option=$1
13574 ac_optarg=$2
13575 ac_shift=shift
13576 ;;
13577 esac
d9898ee8 13578
8d138742
CE
13579 case $ac_option in
13580 # Handling of the options.
13581 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13582 ac_cs_recheck=: ;;
13583 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13584 $as_echo "$ac_cs_version"; exit ;;
13585 --debug | --debu | --deb | --de | --d | -d )
13586 debug=: ;;
13587 --file | --fil | --fi | --f )
13588 $ac_shift
13589 case $ac_optarg in
13590 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13591 esac
13592 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13593 ac_need_defaults=false;;
13594 --header | --heade | --head | --hea )
13595 $ac_shift
13596 case $ac_optarg in
13597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13598 esac
13599 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13600 ac_need_defaults=false;;
13601 --he | --h)
13602 # Conflict between --help and --header
13603 { $as_echo "$as_me: error: ambiguous option: $1
13604Try \`$0 --help' for more information." >&2
13605 { (exit 1); exit 1; }; };;
13606 --help | --hel | -h )
13607 $as_echo "$ac_cs_usage"; exit ;;
13608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13609 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13610 ac_cs_silent=: ;;
d9898ee8 13611
8d138742
CE
13612 # This is an error.
13613 -*) { $as_echo "$as_me: error: unrecognized option: $1
13614Try \`$0 --help' for more information." >&2
13615 { (exit 1); exit 1; }; } ;;
d9898ee8 13616
8d138742
CE
13617 *) ac_config_targets="$ac_config_targets $1"
13618 ac_need_defaults=false ;;
d9898ee8 13619
8d138742
CE
13620 esac
13621 shift
13622done
dd184caf 13623
8d138742 13624ac_configure_extra_args=
dd184caf 13625
8d138742
CE
13626if $ac_cs_silent; then
13627 exec 6>/dev/null
13628 ac_configure_extra_args="$ac_configure_extra_args --silent"
d9898ee8 13629fi
d9898ee8 13630
d9898ee8 13631_ACEOF
8d138742
CE
13632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13633if \$ac_cs_recheck; then
13634 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13635 shift
13636 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13637 CONFIG_SHELL='$SHELL'
13638 export CONFIG_SHELL
13639 exec "\$@"
d9898ee8 13640fi
13641
d9898ee8 13642_ACEOF
8d138742
CE
13643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13644exec 5>>config.log
13645{
13646 echo
13647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13648## Running $as_me. ##
13649_ASBOX
13650 $as_echo "$ac_log"
13651} >&5
d9898ee8 13652
8d138742
CE
13653_ACEOF
13654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13655#
13656# INIT-COMMANDS
13657#
13658AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 13659
d9898ee8 13660
8d138742
CE
13661# The HP-UX ksh and POSIX shell print the target directory to stdout
13662# if CDPATH is set.
13663(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 13664
8d138742
CE
13665sed_quote_subst='$sed_quote_subst'
13666double_quote_subst='$double_quote_subst'
13667delay_variable_subst='$delay_variable_subst'
13668macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13669macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13670enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13671enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13672pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13673enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13674host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13675host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13676host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13677build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13678build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13679build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13680SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13681Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13682GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13683EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13684FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13685LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13686NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13687LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13688max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13689ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13690exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13691lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13692lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13693lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13694reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13695reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13696OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13697deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13698file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13699AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13700AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13701STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13702RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13703old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13704old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13705old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13706CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13707CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13708compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13709GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13710lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13711lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13712lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13713lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13714objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13715SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13716ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13717MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13718lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13719lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13720lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13721lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13722lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13723need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13724DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13725NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13726LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13727OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13728OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13729libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13730shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13731extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13732archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13733enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13734export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13735whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13736compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13737old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13738old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13739archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13740archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13741module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13742module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13743with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13744allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13745no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13746hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13747hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13748hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13749hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13750hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13751hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13752hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13753hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13754inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13755link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13756fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13757always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13758export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13759exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13760include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13761prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13762file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13763variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13764need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13765need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13766version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13767runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13768shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13769shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13770libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13771library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13772soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13773postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13774postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13775finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13776finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13777hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13778sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13779sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13780hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13781enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13782enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13783enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13784old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13785striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13786
13787LTCC='$LTCC'
13788LTCFLAGS='$LTCFLAGS'
13789compiler='$compiler_DEFAULT'
13790
13791# Quote evaled strings.
13792for var in SED \
13793GREP \
13794EGREP \
13795FGREP \
13796LD \
13797NM \
13798LN_S \
13799lt_SP2NL \
13800lt_NL2SP \
13801reload_flag \
13802OBJDUMP \
13803deplibs_check_method \
13804file_magic_cmd \
13805AR \
13806AR_FLAGS \
13807STRIP \
13808RANLIB \
13809CC \
13810CFLAGS \
13811compiler \
13812lt_cv_sys_global_symbol_pipe \
13813lt_cv_sys_global_symbol_to_cdecl \
13814lt_cv_sys_global_symbol_to_c_name_address \
13815lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13816SHELL \
13817ECHO \
13818lt_prog_compiler_no_builtin_flag \
13819lt_prog_compiler_wl \
13820lt_prog_compiler_pic \
13821lt_prog_compiler_static \
13822lt_cv_prog_compiler_c_o \
13823need_locks \
13824DSYMUTIL \
13825NMEDIT \
13826LIPO \
13827OTOOL \
13828OTOOL64 \
13829shrext_cmds \
13830export_dynamic_flag_spec \
13831whole_archive_flag_spec \
13832compiler_needs_object \
13833with_gnu_ld \
13834allow_undefined_flag \
13835no_undefined_flag \
13836hardcode_libdir_flag_spec \
13837hardcode_libdir_flag_spec_ld \
13838hardcode_libdir_separator \
13839fix_srcfile_path \
13840exclude_expsyms \
13841include_expsyms \
13842file_list_spec \
13843variables_saved_for_relink \
13844libname_spec \
13845library_names_spec \
13846soname_spec \
13847finish_eval \
13848old_striplib \
13849striplib; do
13850 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13851 *[\\\\\\\`\\"\\\$]*)
13852 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13853 ;;
13854 *)
13855 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13856 ;;
13857 esac
13858done
13859
13860# Double-quote double-evaled strings.
13861for var in reload_cmds \
13862old_postinstall_cmds \
13863old_postuninstall_cmds \
13864old_archive_cmds \
13865extract_expsyms_cmds \
13866old_archive_from_new_cmds \
13867old_archive_from_expsyms_cmds \
13868archive_cmds \
13869archive_expsym_cmds \
13870module_cmds \
13871module_expsym_cmds \
13872export_symbols_cmds \
13873prelink_cmds \
13874postinstall_cmds \
13875postuninstall_cmds \
13876finish_cmds \
13877sys_lib_search_path_spec \
13878sys_lib_dlsearch_path_spec; do
13879 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13880 *[\\\\\\\`\\"\\\$]*)
13881 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13882 ;;
13883 *)
13884 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13885 ;;
13886 esac
13887done
13888
13889# Fix-up fallback echo if it was mangled by the above quoting rules.
13890case \$lt_ECHO in
13891*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13892 ;;
dd184caf 13893esac
d9898ee8 13894
8d138742
CE
13895ac_aux_dir='$ac_aux_dir'
13896xsi_shell='$xsi_shell'
13897lt_shell_append='$lt_shell_append'
dd184caf 13898
8d138742
CE
13899# See if we are running on zsh, and set the options which allow our
13900# commands through without removal of \ escapes INIT.
13901if test -n "\${ZSH_VERSION+set}" ; then
13902 setopt NO_GLOB_SUBST
d9898ee8 13903fi
dd184caf 13904
d9898ee8 13905
8d138742
CE
13906 PACKAGE='$PACKAGE'
13907 VERSION='$VERSION'
13908 TIMESTAMP='$TIMESTAMP'
13909 RM='$RM'
13910 ofile='$ofile'
d9898ee8 13911
d9898ee8 13912
d9898ee8 13913
d9898ee8 13914
8d138742 13915_ACEOF
d9898ee8 13916
8d138742 13917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d9898ee8 13918
8d138742
CE
13919# Handling of arguments.
13920for ac_config_target in $ac_config_targets
13921do
13922 case $ac_config_target in
13923 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13924 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13925 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13926 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
d9898ee8 13927
8d138742
CE
13928 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13929$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13930 { (exit 1); exit 1; }; };;
13931 esac
13932done
dd184caf 13933
dd184caf 13934
8d138742
CE
13935# If the user did not use the arguments to specify the items to instantiate,
13936# then the envvar interface is used. Set only those that are not.
13937# We use the long form for the default assignment because of an extremely
13938# bizarre bug on SunOS 4.1.3.
13939if $ac_need_defaults; then
13940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13942 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
d9898ee8 13943fi
d9898ee8 13944
8d138742
CE
13945# Have a temporary directory for convenience. Make it in the build tree
13946# simply because there is no reason against having it here, and in addition,
13947# creating and moving files from /tmp can sometimes cause problems.
13948# Hook for its removal unless debugging.
13949# Note that there is a small window in which the directory will not be cleaned:
13950# after its creation but before its name has been assigned to `$tmp'.
13951$debug ||
13952{
13953 tmp=
13954 trap 'exit_status=$?
13955 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13956' 0
13957 trap '{ (exit 1); exit 1; }' 1 2 13 15
13958}
13959# Create a (secure) tmp directory for tmp files.
13960
13961{
13962 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13963 test -n "$tmp" && test -d "$tmp"
13964} ||
13965{
13966 tmp=./conf$$-$RANDOM
13967 (umask 077 && mkdir "$tmp")
13968} ||
13969{
13970 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13971 { (exit 1); exit 1; }
13972}
d9898ee8 13973
8d138742
CE
13974# Set up the scripts for CONFIG_FILES section.
13975# No need to generate them if there are no CONFIG_FILES.
13976# This happens for instance with `./config.status config.h'.
13977if test -n "$CONFIG_FILES"; then
d9898ee8 13978
d9898ee8 13979
8d138742
CE
13980ac_cr='\r'
13981ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13982if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13983 ac_cs_awk_cr='\\r'
d9898ee8 13984else
8d138742 13985 ac_cs_awk_cr=$ac_cr
dd184caf 13986fi
13987
8d138742 13988echo 'BEGIN {' >"$tmp/subs1.awk" &&
d9898ee8 13989_ACEOF
d9898ee8 13990
d9898ee8 13991
8d138742
CE
13992{
13993 echo "cat >conf$$subs.awk <<_ACEOF" &&
13994 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13995 echo "_ACEOF"
13996} >conf$$subs.sh ||
13997 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13998$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13999 { (exit 1); exit 1; }; }
14000ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14001ac_delim='%!_!# '
14002for ac_last_try in false false false false false :; do
14003 . ./conf$$subs.sh ||
14004 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14005$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
d9898ee8 14006 { (exit 1); exit 1; }; }
dd184caf 14007
8d138742
CE
14008 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14009 if test $ac_delim_n = $ac_delim_num; then
14010 break
14011 elif $ac_last_try; then
14012 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14013$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
d9898ee8 14014 { (exit 1); exit 1; }; }
8d138742
CE
14015 else
14016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14017 fi
14018done
14019rm -f conf$$subs.sh
14020
14021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14022cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14023_ACEOF
14024sed -n '
14025h
14026s/^/S["/; s/!.*/"]=/
14027p
14028g
14029s/^[^!]*!//
14030:repl
14031t repl
14032s/'"$ac_delim"'$//
14033t delim
14034:nl
14035h
14036s/\(.\{148\}\).*/\1/
14037t more1
14038s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14039p
14040n
14041b repl
14042:more1
14043s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14044p
14045g
14046s/.\{148\}//
14047t nl
14048:delim
14049h
14050s/\(.\{148\}\).*/\1/
14051t more2
14052s/["\\]/\\&/g; s/^/"/; s/$/"/
14053p
14054b
14055:more2
14056s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14057p
14058g
14059s/.\{148\}//
14060t delim
14061' <conf$$subs.awk | sed '
14062/^[^""]/{
14063 N
14064 s/\n//
14065}
14066' >>$CONFIG_STATUS || ac_write_fail=1
14067rm -f conf$$subs.awk
14068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14069_ACAWK
14070cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14071 for (key in S) S_is_set[key] = 1
14072 FS = "\a"
d9898ee8 14073
8d138742
CE
14074}
14075{
14076 line = $ 0
14077 nfields = split(line, field, "@")
14078 substed = 0
14079 len = length(field[1])
14080 for (i = 2; i < nfields; i++) {
14081 key = field[i]
14082 keylen = length(key)
14083 if (S_is_set[key]) {
14084 value = S[key]
14085 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14086 len += length(value) + length(field[++i])
14087 substed = 1
14088 } else
14089 len += 1 + keylen
14090 }
d9898ee8 14091
8d138742
CE
14092 print line
14093}
14094
14095_ACAWK
d9898ee8 14096_ACEOF
8d138742
CE
14097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14098if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14099 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 14100else
8d138742
CE
14101 cat
14102fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14103 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14104$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14105 { (exit 1); exit 1; }; }
14106_ACEOF
d9898ee8 14107
8d138742
CE
14108# VPATH may cause trouble with some makes, so we remove $(srcdir),
14109# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14110# trailing colons and then remove the whole line if VPATH becomes empty
14111# (actually we leave an empty line to preserve line numbers).
14112if test "x$srcdir" = x.; then
14113 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14114s/:*\$(srcdir):*/:/
14115s/:*\${srcdir}:*/:/
14116s/:*@srcdir@:*/:/
14117s/^\([^=]*=[ ]*\):*/\1/
14118s/:*$//
14119s/^[^=]*=[ ]*$//
14120}'
d9898ee8 14121fi
d9898ee8 14122
8d138742
CE
14123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14124fi # test -n "$CONFIG_FILES"
d9898ee8 14125
8d138742
CE
14126# Set up the scripts for CONFIG_HEADERS section.
14127# No need to generate them if there are no CONFIG_HEADERS.
14128# This happens for instance with `./config.status Makefile'.
14129if test -n "$CONFIG_HEADERS"; then
14130cat >"$tmp/defines.awk" <<\_ACAWK ||
14131BEGIN {
d9898ee8 14132_ACEOF
dd184caf 14133
8d138742
CE
14134# Transform confdefs.h into an awk script `defines.awk', embedded as
14135# here-document in config.status, that substitutes the proper values into
14136# config.h.in to produce config.h.
dd184caf 14137
8d138742
CE
14138# Create a delimiter string that does not exist in confdefs.h, to ease
14139# handling of long lines.
14140ac_delim='%!_!# '
14141for ac_last_try in false false :; do
14142 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14143 if test -z "$ac_t"; then
14144 break
14145 elif $ac_last_try; then
14146 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14147$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
d9898ee8 14148 { (exit 1); exit 1; }; }
8d138742
CE
14149 else
14150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14151 fi
14152done
d9898ee8 14153
8d138742
CE
14154# For the awk script, D is an array of macro values keyed by name,
14155# likewise P contains macro parameters if any. Preserve backslash
14156# newline sequences.
d9898ee8 14157
8d138742
CE
14158ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14159sed -n '
14160s/.\{148\}/&'"$ac_delim"'/g
14161t rset
14162:rset
14163s/^[ ]*#[ ]*define[ ][ ]*/ /
14164t def
14165d
14166:def
14167s/\\$//
14168t bsnl
14169s/["\\]/\\&/g
14170s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14171D["\1"]=" \3"/p
14172s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14173d
14174:bsnl
14175s/["\\]/\\&/g
14176s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14177D["\1"]=" \3\\\\\\n"\\/p
14178t cont
14179s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14180t cont
14181d
14182:cont
14183n
14184s/.\{148\}/&'"$ac_delim"'/g
14185t clear
14186:clear
14187s/\\$//
14188t bsnlc
14189s/["\\]/\\&/g; s/^/"/; s/$/"/p
14190d
14191:bsnlc
14192s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14193b cont
14194' <confdefs.h | sed '
14195s/'"$ac_delim"'/"\\\
14196"/g' >>$CONFIG_STATUS || ac_write_fail=1
14197
14198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14199 for (key in D) D_is_set[key] = 1
14200 FS = "\a"
14201}
14202/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14203 line = \$ 0
14204 split(line, arg, " ")
14205 if (arg[1] == "#") {
14206 defundef = arg[2]
14207 mac1 = arg[3]
14208 } else {
14209 defundef = substr(arg[1], 2)
14210 mac1 = arg[2]
14211 }
14212 split(mac1, mac2, "(") #)
14213 macro = mac2[1]
14214 prefix = substr(line, 1, index(line, defundef) - 1)
14215 if (D_is_set[macro]) {
14216 # Preserve the white space surrounding the "#".
14217 print prefix "define", macro P[macro] D[macro]
14218 next
14219 } else {
14220 # Replace #undef with comments. This is necessary, for example,
14221 # in the case of _POSIX_SOURCE, which is predefined and required
14222 # on some systems where configure will not decide to define it.
14223 if (defundef == "undef") {
14224 print "/*", prefix defundef, macro, "*/"
14225 next
14226 }
14227 }
14228}
14229{ print }
14230_ACAWK
d9898ee8 14231_ACEOF
8d138742
CE
14232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14233 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14234$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14235 { (exit 1); exit 1; }; }
14236fi # test -n "$CONFIG_HEADERS"
dd184caf 14237
14238
8d138742
CE
14239eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14240shift
14241for ac_tag
14242do
14243 case $ac_tag in
14244 :[FHLC]) ac_mode=$ac_tag; continue;;
14245 esac
14246 case $ac_mode$ac_tag in
14247 :[FHL]*:*);;
14248 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14249$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14250 { (exit 1); exit 1; }; };;
14251 :[FH]-) ac_tag=-:-;;
14252 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14253 esac
14254 ac_save_IFS=$IFS
14255 IFS=:
14256 set x $ac_tag
14257 IFS=$ac_save_IFS
14258 shift
14259 ac_file=$1
14260 shift
d9898ee8 14261
8d138742
CE
14262 case $ac_mode in
14263 :L) ac_source=$1;;
14264 :[FH])
14265 ac_file_inputs=
14266 for ac_f
14267 do
14268 case $ac_f in
14269 -) ac_f="$tmp/stdin";;
14270 *) # Look for the file first in the build tree, then in the source tree
14271 # (if the path is not absolute). The absolute path cannot be DOS-style,
14272 # because $ac_f cannot contain `:'.
14273 test -f "$ac_f" ||
14274 case $ac_f in
14275 [\\/$]*) false;;
14276 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14277 esac ||
14278 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14279$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14280 { (exit 1); exit 1; }; };;
14281 esac
14282 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14283 ac_file_inputs="$ac_file_inputs '$ac_f'"
14284 done
d9898ee8 14285
8d138742
CE
14286 # Let's still pretend it is `configure' which instantiates (i.e., don't
14287 # use $as_me), people would be surprised to read:
14288 # /* config.h. Generated by config.status. */
14289 configure_input='Generated from '`
14290 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14291 `' by configure.'
14292 if test x"$ac_file" != x-; then
14293 configure_input="$ac_file. $configure_input"
14294 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14295$as_echo "$as_me: creating $ac_file" >&6;}
14296 fi
14297 # Neutralize special characters interpreted by sed in replacement strings.
14298 case $configure_input in #(
14299 *\&* | *\|* | *\\* )
14300 ac_sed_conf_input=`$as_echo "$configure_input" |
14301 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14302 *) ac_sed_conf_input=$configure_input;;
14303 esac
d9898ee8 14304
8d138742
CE
14305 case $ac_tag in
14306 *:-:* | *:-) cat >"$tmp/stdin" \
14307 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14308$as_echo "$as_me: error: could not create $ac_file" >&2;}
14309 { (exit 1); exit 1; }; } ;;
14310 esac
14311 ;;
14312 esac
d9898ee8 14313
8d138742
CE
14314 ac_dir=`$as_dirname -- "$ac_file" ||
14315$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14316 X"$ac_file" : 'X\(//\)[^/]' \| \
14317 X"$ac_file" : 'X\(//\)$' \| \
14318 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14319$as_echo X"$ac_file" |
14320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14321 s//\1/
14322 q
14323 }
14324 /^X\(\/\/\)[^/].*/{
14325 s//\1/
14326 q
14327 }
14328 /^X\(\/\/\)$/{
14329 s//\1/
14330 q
14331 }
14332 /^X\(\/\).*/{
14333 s//\1/
14334 q
14335 }
14336 s/.*/./; q'`
14337 { as_dir="$ac_dir"
14338 case $as_dir in #(
14339 -*) as_dir=./$as_dir;;
14340 esac
14341 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14342 as_dirs=
14343 while :; do
14344 case $as_dir in #(
14345 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14346 *) as_qdir=$as_dir;;
14347 esac
14348 as_dirs="'$as_qdir' $as_dirs"
14349 as_dir=`$as_dirname -- "$as_dir" ||
14350$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14351 X"$as_dir" : 'X\(//\)[^/]' \| \
14352 X"$as_dir" : 'X\(//\)$' \| \
14353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14354$as_echo X"$as_dir" |
14355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14356 s//\1/
14357 q
14358 }
14359 /^X\(\/\/\)[^/].*/{
14360 s//\1/
14361 q
14362 }
14363 /^X\(\/\/\)$/{
14364 s//\1/
14365 q
14366 }
14367 /^X\(\/\).*/{
14368 s//\1/
14369 q
14370 }
14371 s/.*/./; q'`
14372 test -d "$as_dir" && break
14373 done
14374 test -z "$as_dirs" || eval "mkdir $as_dirs"
14375 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14376$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14377 { (exit 1); exit 1; }; }; }
14378 ac_builddir=.
d9898ee8 14379
8d138742
CE
14380case "$ac_dir" in
14381.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14382*)
14383 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14384 # A ".." for each directory in $ac_dir_suffix.
14385 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14386 case $ac_top_builddir_sub in
14387 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14388 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14389 esac ;;
dd184caf 14390esac
8d138742
CE
14391ac_abs_top_builddir=$ac_pwd
14392ac_abs_builddir=$ac_pwd$ac_dir_suffix
14393# for backward compatibility:
14394ac_top_builddir=$ac_top_build_prefix
14395
14396case $srcdir in
14397 .) # We are building in place.
14398 ac_srcdir=.
14399 ac_top_srcdir=$ac_top_builddir_sub
14400 ac_abs_top_srcdir=$ac_pwd ;;
14401 [\\/]* | ?:[\\/]* ) # Absolute name.
14402 ac_srcdir=$srcdir$ac_dir_suffix;
14403 ac_top_srcdir=$srcdir
14404 ac_abs_top_srcdir=$srcdir ;;
14405 *) # Relative name.
14406 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14407 ac_top_srcdir=$ac_top_build_prefix$srcdir
14408 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
dd184caf 14409esac
8d138742 14410ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 14411
dd184caf 14412
8d138742
CE
14413 case $ac_mode in
14414 :F)
14415 #
14416 # CONFIG_FILE
14417 #
dd184caf 14418
8d138742
CE
14419 case $INSTALL in
14420 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14421 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14422 esac
14423 ac_MKDIR_P=$MKDIR_P
14424 case $MKDIR_P in
14425 [\\/$]* | ?:[\\/]* ) ;;
14426 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14427 esac
d9898ee8 14428_ACEOF
d9898ee8 14429
8d138742
CE
14430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14431# If the template does not know about datarootdir, expand it.
14432# FIXME: This hack should be removed a few years after 2.60.
14433ac_datarootdir_hack=; ac_datarootdir_seen=
d9898ee8 14434
8d138742
CE
14435ac_sed_dataroot='
14436/datarootdir/ {
14437 p
14438 q
14439}
14440/@datadir@/p
14441/@docdir@/p
14442/@infodir@/p
14443/@localedir@/p
14444/@mandir@/p
14445'
14446case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14447*datarootdir*) ac_datarootdir_seen=yes;;
14448*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14449 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14450$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 14451_ACEOF
8d138742
CE
14452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14453 ac_datarootdir_hack='
14454 s&@datadir@&$datadir&g
14455 s&@docdir@&$docdir&g
14456 s&@infodir@&$infodir&g
14457 s&@localedir@&$localedir&g
14458 s&@mandir@&$mandir&g
14459 s&\\\${datarootdir}&$datarootdir&g' ;;
d9898ee8 14460esac
8d138742 14461_ACEOF
d9898ee8 14462
8d138742
CE
14463# Neutralize VPATH when `$srcdir' = `.'.
14464# Shell code in configure.ac might set extrasub.
14465# FIXME: do we really want to maintain this feature?
14466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14467ac_sed_extra="$ac_vpsub
14468$extrasub
14469_ACEOF
14470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14471:t
14472/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14473s|@configure_input@|$ac_sed_conf_input|;t t
14474s&@top_builddir@&$ac_top_builddir_sub&;t t
14475s&@top_build_prefix@&$ac_top_build_prefix&;t t
14476s&@srcdir@&$ac_srcdir&;t t
14477s&@abs_srcdir@&$ac_abs_srcdir&;t t
14478s&@top_srcdir@&$ac_top_srcdir&;t t
14479s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14480s&@builddir@&$ac_builddir&;t t
14481s&@abs_builddir@&$ac_abs_builddir&;t t
14482s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14483s&@INSTALL@&$ac_INSTALL&;t t
14484s&@MKDIR_P@&$ac_MKDIR_P&;t t
14485$ac_datarootdir_hack
14486"
14487eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14488 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14489$as_echo "$as_me: error: could not create $ac_file" >&2;}
14490 { (exit 1); exit 1; }; }
d9898ee8 14491
8d138742
CE
14492test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14493 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14494 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14495 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14496which seems to be undefined. Please make sure it is defined." >&5
14497$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14498which seems to be undefined. Please make sure it is defined." >&2;}
d9898ee8 14499
8d138742
CE
14500 rm -f "$tmp/stdin"
14501 case $ac_file in
14502 -) cat "$tmp/out" && rm -f "$tmp/out";;
14503 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14504 esac \
14505 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14506$as_echo "$as_me: error: could not create $ac_file" >&2;}
14507 { (exit 1); exit 1; }; }
14508 ;;
14509 :H)
14510 #
14511 # CONFIG_HEADER
14512 #
14513 if test x"$ac_file" != x-; then
14514 {
14515 $as_echo "/* $configure_input */" \
14516 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14517 } >"$tmp/config.h" \
14518 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14519$as_echo "$as_me: error: could not create $ac_file" >&2;}
14520 { (exit 1); exit 1; }; }
14521 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14522 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14523$as_echo "$as_me: $ac_file is unchanged" >&6;}
14524 else
14525 rm -f "$ac_file"
14526 mv "$tmp/config.h" "$ac_file" \
14527 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14528$as_echo "$as_me: error: could not create $ac_file" >&2;}
14529 { (exit 1); exit 1; }; }
14530 fi
14531 else
14532 $as_echo "/* $configure_input */" \
14533 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14534 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14535$as_echo "$as_me: error: could not create -" >&2;}
14536 { (exit 1); exit 1; }; }
14537 fi
14538# Compute "$ac_file"'s index in $config_headers.
14539_am_arg="$ac_file"
14540_am_stamp_count=1
14541for _am_header in $config_headers :; do
14542 case $_am_header in
14543 $_am_arg | $_am_arg:* )
14544 break ;;
14545 * )
14546 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14547 esac
14548done
14549echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14550$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14551 X"$_am_arg" : 'X\(//\)[^/]' \| \
14552 X"$_am_arg" : 'X\(//\)$' \| \
14553 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14554$as_echo X"$_am_arg" |
14555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14556 s//\1/
14557 q
14558 }
14559 /^X\(\/\/\)[^/].*/{
14560 s//\1/
14561 q
14562 }
14563 /^X\(\/\/\)$/{
14564 s//\1/
14565 q
14566 }
14567 /^X\(\/\).*/{
14568 s//\1/
14569 q
14570 }
14571 s/.*/./; q'`/stamp-h$_am_stamp_count
14572 ;;
d9898ee8 14573
8d138742
CE
14574 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14575$as_echo "$as_me: executing $ac_file commands" >&6;}
14576 ;;
14577 esac
d9898ee8 14578
14579
8d138742
CE
14580 case $ac_file$ac_mode in
14581 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14582 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14583 # are listed without --file. Let's play safe and only enable the eval
14584 # if we detect the quoting.
14585 case $CONFIG_FILES in
14586 *\'*) eval set x "$CONFIG_FILES" ;;
14587 *) set x $CONFIG_FILES ;;
14588 esac
14589 shift
14590 for mf
14591 do
14592 # Strip MF so we end up with the name of the file.
14593 mf=`echo "$mf" | sed -e 's/:.*$//'`
14594 # Check whether this is an Automake generated Makefile or not.
14595 # We used to match only the files named `Makefile.in', but
14596 # some people rename them; so instead we look at the file content.
14597 # Grep'ing the first line is not enough: some people post-process
14598 # each Makefile.in and add a new line on top of each file to say so.
14599 # Grep'ing the whole file is not good either: AIX grep has a line
14600 # limit of 2048, but all sed's we know have understand at least 4000.
14601 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14602 dirpart=`$as_dirname -- "$mf" ||
14603$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14604 X"$mf" : 'X\(//\)[^/]' \| \
14605 X"$mf" : 'X\(//\)$' \| \
14606 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14607$as_echo X"$mf" |
14608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14609 s//\1/
14610 q
14611 }
14612 /^X\(\/\/\)[^/].*/{
14613 s//\1/
14614 q
14615 }
14616 /^X\(\/\/\)$/{
14617 s//\1/
14618 q
14619 }
14620 /^X\(\/\).*/{
14621 s//\1/
14622 q
14623 }
14624 s/.*/./; q'`
14625 else
14626 continue
14627 fi
14628 # Extract the definition of DEPDIR, am__include, and am__quote
14629 # from the Makefile without running `make'.
14630 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14631 test -z "$DEPDIR" && continue
14632 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14633 test -z "am__include" && continue
14634 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14635 # When using ansi2knr, U may be empty or an underscore; expand it
14636 U=`sed -n 's/^U = //p' < "$mf"`
14637 # Find all dependency output files, they are included files with
14638 # $(DEPDIR) in their names. We invoke sed twice because it is the
14639 # simplest approach to changing $(DEPDIR) to its actual value in the
14640 # expansion.
14641 for file in `sed -n "
14642 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14643 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14644 # Make sure the directory exists.
14645 test -f "$dirpart/$file" && continue
14646 fdir=`$as_dirname -- "$file" ||
14647$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14648 X"$file" : 'X\(//\)[^/]' \| \
14649 X"$file" : 'X\(//\)$' \| \
14650 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14651$as_echo X"$file" |
14652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14653 s//\1/
14654 q
14655 }
14656 /^X\(\/\/\)[^/].*/{
14657 s//\1/
14658 q
14659 }
14660 /^X\(\/\/\)$/{
14661 s//\1/
14662 q
14663 }
14664 /^X\(\/\).*/{
14665 s//\1/
14666 q
14667 }
14668 s/.*/./; q'`
14669 { as_dir=$dirpart/$fdir
14670 case $as_dir in #(
14671 -*) as_dir=./$as_dir;;
14672 esac
14673 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14674 as_dirs=
14675 while :; do
14676 case $as_dir in #(
14677 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14678 *) as_qdir=$as_dir;;
14679 esac
14680 as_dirs="'$as_qdir' $as_dirs"
14681 as_dir=`$as_dirname -- "$as_dir" ||
14682$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14683 X"$as_dir" : 'X\(//\)[^/]' \| \
14684 X"$as_dir" : 'X\(//\)$' \| \
14685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14686$as_echo X"$as_dir" |
14687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14688 s//\1/
14689 q
14690 }
14691 /^X\(\/\/\)[^/].*/{
14692 s//\1/
14693 q
14694 }
14695 /^X\(\/\/\)$/{
14696 s//\1/
14697 q
14698 }
14699 /^X\(\/\).*/{
14700 s//\1/
14701 q
14702 }
14703 s/.*/./; q'`
14704 test -d "$as_dir" && break
14705 done
14706 test -z "$as_dirs" || eval "mkdir $as_dirs"
14707 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14708$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14709 { (exit 1); exit 1; }; }; }
14710 # echo "creating $dirpart/$file"
14711 echo '# dummy' > "$dirpart/$file"
14712 done
14713 done
14714}
14715 ;;
14716 "libtool":C)
d9898ee8 14717
8d138742
CE
14718 # See if we are running on zsh, and set the options which allow our
14719 # commands through without removal of \ escapes.
14720 if test -n "${ZSH_VERSION+set}" ; then
14721 setopt NO_GLOB_SUBST
14722 fi
d9898ee8 14723
8d138742
CE
14724 cfgfile="${ofile}T"
14725 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14726 $RM "$cfgfile"
d9898ee8 14727
8d138742
CE
14728 cat <<_LT_EOF >> "$cfgfile"
14729#! $SHELL
dd184caf 14730
8d138742
CE
14731# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14732# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14733# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14734# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d9898ee8 14735#
8d138742
CE
14736# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14737# 2006, 2007, 2008 Free Software Foundation, Inc.
14738# Written by Gordon Matzigkeit, 1996
d9898ee8 14739#
8d138742
CE
14740# This file is part of GNU Libtool.
14741#
14742# GNU Libtool is free software; you can redistribute it and/or
14743# modify it under the terms of the GNU General Public License as
14744# published by the Free Software Foundation; either version 2 of
14745# the License, or (at your option) any later version.
14746#
14747# As a special exception to the GNU General Public License,
14748# if you distribute this file as part of a program or library that
14749# is built using GNU Libtool, you may include this file under the
14750# same distribution terms that you use for the rest of that program.
14751#
14752# GNU Libtool is distributed in the hope that it will be useful,
14753# but WITHOUT ANY WARRANTY; without even the implied warranty of
14754# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14755# GNU General Public License for more details.
14756#
14757# You should have received a copy of the GNU General Public License
14758# along with GNU Libtool; see the file COPYING. If not, a copy
14759# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14760# obtained by writing to the Free Software Foundation, Inc.,
14761# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 14762
dd184caf 14763
8d138742
CE
14764# The names of the tagged configurations supported by this script.
14765available_tags=""
d9898ee8 14766
8d138742 14767# ### BEGIN LIBTOOL CONFIG
d9898ee8 14768
8d138742
CE
14769# Which release of libtool.m4 was used?
14770macro_version=$macro_version
14771macro_revision=$macro_revision
d9898ee8 14772
8d138742
CE
14773# Whether or not to build shared libraries.
14774build_libtool_libs=$enable_shared
d9898ee8 14775
8d138742
CE
14776# Whether or not to build static libraries.
14777build_old_libs=$enable_static
d9898ee8 14778
8d138742
CE
14779# What type of objects to build.
14780pic_mode=$pic_mode
d9898ee8 14781
8d138742
CE
14782# Whether or not to optimize for fast installation.
14783fast_install=$enable_fast_install
d9898ee8 14784
8d138742
CE
14785# The host system.
14786host_alias=$host_alias
14787host=$host
14788host_os=$host_os
d9898ee8 14789
8d138742
CE
14790# The build system.
14791build_alias=$build_alias
14792build=$build
14793build_os=$build_os
d9898ee8 14794
8d138742
CE
14795# A sed program that does not truncate output.
14796SED=$lt_SED
d9898ee8 14797
8d138742
CE
14798# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14799Xsed="\$SED -e 1s/^X//"
dd184caf 14800
8d138742
CE
14801# A grep program that handles long lines.
14802GREP=$lt_GREP
dd184caf 14803
8d138742
CE
14804# An ERE matcher.
14805EGREP=$lt_EGREP
dd184caf 14806
8d138742
CE
14807# A literal string matcher.
14808FGREP=$lt_FGREP
dd184caf 14809
8d138742
CE
14810# A BSD- or MS-compatible name lister.
14811NM=$lt_NM
dd184caf 14812
8d138742
CE
14813# Whether we need soft or hard links.
14814LN_S=$lt_LN_S
dd184caf 14815
8d138742
CE
14816# What is the maximum length of a command?
14817max_cmd_len=$max_cmd_len
d9898ee8 14818
8d138742
CE
14819# Object file suffix (normally "o").
14820objext=$ac_objext
d9898ee8 14821
8d138742
CE
14822# Executable file suffix (normally "").
14823exeext=$exeext
d9898ee8 14824
8d138742
CE
14825# whether the shell understands "unset".
14826lt_unset=$lt_unset
dd184caf 14827
8d138742
CE
14828# turn spaces into newlines.
14829SP2NL=$lt_lt_SP2NL
dd184caf 14830
8d138742
CE
14831# turn newlines into spaces.
14832NL2SP=$lt_lt_NL2SP
dd184caf 14833
8d138742
CE
14834# How to create reloadable object files.
14835reload_flag=$lt_reload_flag
14836reload_cmds=$lt_reload_cmds
d9898ee8 14837
8d138742
CE
14838# An object symbol dumper.
14839OBJDUMP=$lt_OBJDUMP
d9898ee8 14840
8d138742
CE
14841# Method to check whether dependent libraries are shared objects.
14842deplibs_check_method=$lt_deplibs_check_method
d9898ee8 14843
8d138742
CE
14844# Command to use when deplibs_check_method == "file_magic".
14845file_magic_cmd=$lt_file_magic_cmd
d9898ee8 14846
8d138742
CE
14847# The archiver.
14848AR=$lt_AR
14849AR_FLAGS=$lt_AR_FLAGS
d9898ee8 14850
8d138742
CE
14851# A symbol stripping program.
14852STRIP=$lt_STRIP
d9898ee8 14853
8d138742
CE
14854# Commands used to install an old-style archive.
14855RANLIB=$lt_RANLIB
14856old_postinstall_cmds=$lt_old_postinstall_cmds
14857old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 14858
8d138742
CE
14859# A C compiler.
14860LTCC=$lt_CC
d9898ee8 14861
8d138742
CE
14862# LTCC compiler flags.
14863LTCFLAGS=$lt_CFLAGS
d9898ee8 14864
8d138742
CE
14865# Take the output of nm and produce a listing of raw symbols and C names.
14866global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 14867
8d138742
CE
14868# Transform the output of nm in a proper C declaration.
14869global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 14870
8d138742
CE
14871# Transform the output of nm in a C name address pair.
14872global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 14873
8d138742
CE
14874# Transform the output of nm in a C name address pair when lib prefix is needed.
14875global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 14876
8d138742
CE
14877# The name of the directory that contains temporary libtool files.
14878objdir=$objdir
dd184caf 14879
8d138742
CE
14880# Shell to use when invoking shell scripts.
14881SHELL=$lt_SHELL
14882
14883# An echo program that does not interpret backslashes.
14884ECHO=$lt_ECHO
d9898ee8 14885
8d138742
CE
14886# Used to examine libraries when file_magic_cmd begins with "file".
14887MAGIC_CMD=$MAGIC_CMD
d9898ee8 14888
8d138742
CE
14889# Must we lock files when doing compilation?
14890need_locks=$lt_need_locks
d9898ee8 14891
8d138742
CE
14892# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14893DSYMUTIL=$lt_DSYMUTIL
d9898ee8 14894
8d138742
CE
14895# Tool to change global to local symbols on Mac OS X.
14896NMEDIT=$lt_NMEDIT
d9898ee8 14897
8d138742
CE
14898# Tool to manipulate fat objects and archives on Mac OS X.
14899LIPO=$lt_LIPO
d9898ee8 14900
8d138742
CE
14901# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14902OTOOL=$lt_OTOOL
d9898ee8 14903
8d138742
CE
14904# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14905OTOOL64=$lt_OTOOL64
d9898ee8 14906
8d138742
CE
14907# Old archive suffix (normally "a").
14908libext=$libext
d9898ee8 14909
8d138742
CE
14910# Shared library suffix (normally ".so").
14911shrext_cmds=$lt_shrext_cmds
d9898ee8 14912
8d138742
CE
14913# The commands to extract the exported symbol list from a shared archive.
14914extract_expsyms_cmds=$lt_extract_expsyms_cmds
d9898ee8 14915
8d138742
CE
14916# Variables whose values should be saved in libtool wrapper scripts and
14917# restored at link time.
14918variables_saved_for_relink=$lt_variables_saved_for_relink
dd184caf 14919
8d138742
CE
14920# Do we need the "lib" prefix for modules?
14921need_lib_prefix=$need_lib_prefix
d9898ee8 14922
8d138742
CE
14923# Do we need a version for libraries?
14924need_version=$need_version
d9898ee8 14925
8d138742
CE
14926# Library versioning type.
14927version_type=$version_type
d9898ee8 14928
8d138742
CE
14929# Shared library runtime path variable.
14930runpath_var=$runpath_var
d9898ee8 14931
8d138742
CE
14932# Shared library path variable.
14933shlibpath_var=$shlibpath_var
d9898ee8 14934
8d138742
CE
14935# Is shlibpath searched before the hard-coded library search path?
14936shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 14937
8d138742
CE
14938# Format of library name prefix.
14939libname_spec=$lt_libname_spec
d9898ee8 14940
8d138742
CE
14941# List of archive names. First name is the real one, the rest are links.
14942# The last name is the one that the linker finds with -lNAME
14943library_names_spec=$lt_library_names_spec
d9898ee8 14944
8d138742
CE
14945# The coded name of the library, if different from the real name.
14946soname_spec=$lt_soname_spec
d9898ee8 14947
8d138742
CE
14948# Command to use after installation of a shared archive.
14949postinstall_cmds=$lt_postinstall_cmds
d9898ee8 14950
8d138742
CE
14951# Command to use after uninstallation of a shared archive.
14952postuninstall_cmds=$lt_postuninstall_cmds
d9898ee8 14953
8d138742
CE
14954# Commands used to finish a libtool library installation in a directory.
14955finish_cmds=$lt_finish_cmds
dd184caf 14956
8d138742
CE
14957# As "finish_cmds", except a single script fragment to be evaled but
14958# not shown.
14959finish_eval=$lt_finish_eval
d9898ee8 14960
8d138742
CE
14961# Whether we should hardcode library paths into libraries.
14962hardcode_into_libs=$hardcode_into_libs
d9898ee8 14963
8d138742
CE
14964# Compile-time system search path for libraries.
14965sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 14966
8d138742
CE
14967# Run-time system search path for libraries.
14968sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 14969
8d138742
CE
14970# Whether dlopen is supported.
14971dlopen_support=$enable_dlopen
d9898ee8 14972
8d138742
CE
14973# Whether dlopen of programs is supported.
14974dlopen_self=$enable_dlopen_self
d9898ee8 14975
8d138742
CE
14976# Whether dlopen of statically linked programs is supported.
14977dlopen_self_static=$enable_dlopen_self_static
d9898ee8 14978
8d138742
CE
14979# Commands to strip libraries.
14980old_striplib=$lt_old_striplib
14981striplib=$lt_striplib
d9898ee8 14982
d9898ee8 14983
8d138742
CE
14984# The linker used to build libraries.
14985LD=$lt_LD
d9898ee8 14986
8d138742
CE
14987# Commands used to build an old-style archive.
14988old_archive_cmds=$lt_old_archive_cmds
d9898ee8 14989
8d138742
CE
14990# A language specific compiler.
14991CC=$lt_compiler
d9898ee8 14992
8d138742
CE
14993# Is the compiler the GNU compiler?
14994with_gcc=$GCC
dd184caf 14995
8d138742
CE
14996# Compiler flag to turn off builtin functions.
14997no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dd184caf 14998
8d138742
CE
14999# How to pass a linker flag through the compiler.
15000wl=$lt_lt_prog_compiler_wl
d9898ee8 15001
8d138742
CE
15002# Additional compiler flags for building library objects.
15003pic_flag=$lt_lt_prog_compiler_pic
dd184caf 15004
8d138742
CE
15005# Compiler flag to prevent dynamic linking.
15006link_static_flag=$lt_lt_prog_compiler_static
d9898ee8 15007
8d138742
CE
15008# Does compiler simultaneously support -c and -o options?
15009compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15010
15011# Whether or not to add -lc for building shared libraries.
15012build_libtool_need_lc=$archive_cmds_need_lc
15013
15014# Whether or not to disallow shared libs when runtime libs are static.
15015allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15016
15017# Compiler flag to allow reflexive dlopens.
15018export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 15019
8d138742
CE
15020# Compiler flag to generate shared objects directly from archives.
15021whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 15022
8d138742
CE
15023# Whether the compiler copes with passing no objects directly.
15024compiler_needs_object=$lt_compiler_needs_object
d9898ee8 15025
8d138742
CE
15026# Create an old-style archive from a shared archive.
15027old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 15028
8d138742
CE
15029# Create a temporary old-style archive to link instead of a shared archive.
15030old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 15031
8d138742
CE
15032# Commands used to build a shared archive.
15033archive_cmds=$lt_archive_cmds
15034archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 15035
8d138742
CE
15036# Commands used to build a loadable module if different from building
15037# a shared archive.
15038module_cmds=$lt_module_cmds
15039module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 15040
8d138742
CE
15041# Whether we are building with GNU ld or not.
15042with_gnu_ld=$lt_with_gnu_ld
dd184caf 15043
8d138742
CE
15044# Flag that allows shared libraries with undefined symbols to be built.
15045allow_undefined_flag=$lt_allow_undefined_flag
dd184caf 15046
8d138742
CE
15047# Flag that enforces no undefined symbols.
15048no_undefined_flag=$lt_no_undefined_flag
dd184caf 15049
8d138742
CE
15050# Flag to hardcode \$libdir into a binary during linking.
15051# This must work even if \$libdir does not exist
15052hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
dd184caf 15053
8d138742
CE
15054# If ld is used when linking, flag to hardcode \$libdir into a binary
15055# during linking. This must work even if \$libdir does not exist.
15056hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
dd184caf 15057
8d138742
CE
15058# Whether we need a single "-rpath" flag with a separated argument.
15059hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 15060
8d138742
CE
15061# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15062# DIR into the resulting binary.
15063hardcode_direct=$hardcode_direct
dd184caf 15064
8d138742
CE
15065# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15066# DIR into the resulting binary and the resulting library dependency is
15067# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15068# library is relocated.
15069hardcode_direct_absolute=$hardcode_direct_absolute
d9898ee8 15070
8d138742
CE
15071# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15072# into the resulting binary.
15073hardcode_minus_L=$hardcode_minus_L
dd184caf 15074
8d138742
CE
15075# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15076# into the resulting binary.
15077hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 15078
8d138742
CE
15079# Set to "yes" if building a shared library automatically hardcodes DIR
15080# into the library and all subsequent libraries and executables linked
15081# against it.
15082hardcode_automatic=$hardcode_automatic
dd184caf 15083
8d138742
CE
15084# Set to yes if linker adds runtime paths of dependent libraries
15085# to runtime path list.
15086inherit_rpath=$inherit_rpath
dd184caf 15087
8d138742
CE
15088# Whether libtool must link a program against all its dependency libraries.
15089link_all_deplibs=$link_all_deplibs
dd184caf 15090
8d138742
CE
15091# Fix the shell variable \$srcfile for the compiler.
15092fix_srcfile_path=$lt_fix_srcfile_path
dd184caf 15093
8d138742
CE
15094# Set to "yes" if exported symbols are required.
15095always_export_symbols=$always_export_symbols
dd184caf 15096
8d138742
CE
15097# The commands to list exported symbols.
15098export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 15099
8d138742
CE
15100# Symbols that should not be listed in the preloaded symbols.
15101exclude_expsyms=$lt_exclude_expsyms
d9898ee8 15102
8d138742
CE
15103# Symbols that must always be exported.
15104include_expsyms=$lt_include_expsyms
d9898ee8 15105
8d138742
CE
15106# Commands necessary for linking programs (against libraries) with templates.
15107prelink_cmds=$lt_prelink_cmds
d9898ee8 15108
8d138742
CE
15109# Specify filename containing input files.
15110file_list_spec=$lt_file_list_spec
15111
15112# How to hardcode a shared library path into an executable.
15113hardcode_action=$hardcode_action
d9898ee8 15114
8d138742 15115# ### END LIBTOOL CONFIG
d9898ee8 15116
8d138742 15117_LT_EOF
d9898ee8 15118
8d138742
CE
15119 case $host_os in
15120 aix3*)
15121 cat <<\_LT_EOF >> "$cfgfile"
15122# AIX sometimes has problems with the GCC collect2 program. For some
15123# reason, if we set the COLLECT_NAMES environment variable, the problems
15124# vanish in a puff of smoke.
15125if test "X${COLLECT_NAMES+set}" != Xset; then
15126 COLLECT_NAMES=
15127 export COLLECT_NAMES
15128fi
15129_LT_EOF
15130 ;;
dd184caf 15131 esac
8d138742
CE
15132
15133
15134ltmain="$ac_aux_dir/ltmain.sh"
15135
15136
15137 # We use sed instead of cat because bash on DJGPP gets confused if
15138 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15139 # text mode, it properly converts lines to CR/LF. This bash problem
15140 # is reportedly fixed, but why not run on old versions too?
15141 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15142 || (rm -f "$cfgfile"; exit 1)
15143
15144 case $xsi_shell in
15145 yes)
15146 cat << \_LT_EOF >> "$cfgfile"
15147
15148# func_dirname file append nondir_replacement
15149# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15150# otherwise set result to NONDIR_REPLACEMENT.
15151func_dirname ()
15152{
15153 case ${1} in
15154 */*) func_dirname_result="${1%/*}${2}" ;;
15155 * ) func_dirname_result="${3}" ;;
d9898ee8 15156 esac
8d138742 15157}
d9898ee8 15158
8d138742
CE
15159# func_basename file
15160func_basename ()
15161{
15162 func_basename_result="${1##*/}"
15163}
dd184caf 15164
8d138742
CE
15165# func_dirname_and_basename file append nondir_replacement
15166# perform func_basename and func_dirname in a single function
15167# call:
15168# dirname: Compute the dirname of FILE. If nonempty,
15169# add APPEND to the result, otherwise set result
15170# to NONDIR_REPLACEMENT.
15171# value returned in "$func_dirname_result"
15172# basename: Compute filename of FILE.
15173# value retuned in "$func_basename_result"
15174# Implementation must be kept synchronized with func_dirname
15175# and func_basename. For efficiency, we do not delegate to
15176# those functions but instead duplicate the functionality here.
15177func_dirname_and_basename ()
15178{
15179 case ${1} in
15180 */*) func_dirname_result="${1%/*}${2}" ;;
15181 * ) func_dirname_result="${3}" ;;
15182 esac
15183 func_basename_result="${1##*/}"
dd184caf 15184}
dd184caf 15185
8d138742
CE
15186# func_stripname prefix suffix name
15187# strip PREFIX and SUFFIX off of NAME.
15188# PREFIX and SUFFIX must not contain globbing or regex special
15189# characters, hashes, percent signs, but SUFFIX may contain a leading
15190# dot (in which case that matches only a dot).
15191func_stripname ()
15192{
15193 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15194 # positional parameters, so assign one to ordinary parameter first.
15195 func_stripname_result=${3}
15196 func_stripname_result=${func_stripname_result#"${1}"}
15197 func_stripname_result=${func_stripname_result%"${2}"}
15198}
dd184caf 15199
8d138742
CE
15200# func_opt_split
15201func_opt_split ()
15202{
15203 func_opt_split_opt=${1%%=*}
15204 func_opt_split_arg=${1#*=}
15205}
dd184caf 15206
8d138742
CE
15207# func_lo2o object
15208func_lo2o ()
15209{
15210 case ${1} in
15211 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15212 *) func_lo2o_result=${1} ;;
d9898ee8 15213 esac
8d138742 15214}
d9898ee8 15215
8d138742
CE
15216# func_xform libobj-or-source
15217func_xform ()
15218{
15219 func_xform_result=${1%.*}.lo
15220}
d9898ee8 15221
8d138742
CE
15222# func_arith arithmetic-term...
15223func_arith ()
15224{
15225 func_arith_result=$(( $* ))
15226}
15227
15228# func_len string
15229# STRING may not start with a hyphen.
15230func_len ()
15231{
15232 func_len_result=${#1}
15233}
15234
15235_LT_EOF
15236 ;;
15237 *) # Bourne compatible functions.
15238 cat << \_LT_EOF >> "$cfgfile"
15239
15240# func_dirname file append nondir_replacement
15241# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15242# otherwise set result to NONDIR_REPLACEMENT.
15243func_dirname ()
15244{
15245 # Extract subdirectory from the argument.
15246 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15247 if test "X$func_dirname_result" = "X${1}"; then
15248 func_dirname_result="${3}"
d9898ee8 15249 else
8d138742 15250 func_dirname_result="$func_dirname_result${2}"
d9898ee8 15251 fi
8d138742 15252}
d9898ee8 15253
8d138742
CE
15254# func_basename file
15255func_basename ()
15256{
15257 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15258}
15259
15260
15261# func_stripname prefix suffix name
15262# strip PREFIX and SUFFIX off of NAME.
15263# PREFIX and SUFFIX must not contain globbing or regex special
15264# characters, hashes, percent signs, but SUFFIX may contain a leading
15265# dot (in which case that matches only a dot).
15266# func_strip_suffix prefix name
15267func_stripname ()
15268{
15269 case ${2} in
15270 .*) func_stripname_result=`$ECHO "X${3}" \
15271 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15272 *) func_stripname_result=`$ECHO "X${3}" \
15273 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
dd184caf 15274 esac
8d138742 15275}
d9898ee8 15276
8d138742
CE
15277# sed scripts:
15278my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15279my_sed_long_arg='1s/^-[^=]*=//'
d9898ee8 15280
8d138742
CE
15281# func_opt_split
15282func_opt_split ()
15283{
15284 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15285 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15286}
15287
15288# func_lo2o object
15289func_lo2o ()
15290{
15291 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15292}
15293
15294# func_xform libobj-or-source
15295func_xform ()
15296{
15297 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15298}
15299
15300# func_arith arithmetic-term...
15301func_arith ()
15302{
15303 func_arith_result=`expr "$@"`
15304}
15305
15306# func_len string
15307# STRING may not start with a hyphen.
15308func_len ()
15309{
15310 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15311}
15312
15313_LT_EOF
15314esac
15315
15316case $lt_shell_append in
15317 yes)
15318 cat << \_LT_EOF >> "$cfgfile"
15319
15320# func_append var value
15321# Append VALUE to the end of shell variable VAR.
15322func_append ()
15323{
15324 eval "$1+=\$2"
15325}
15326_LT_EOF
15327 ;;
15328 *)
15329 cat << \_LT_EOF >> "$cfgfile"
15330
15331# func_append var value
15332# Append VALUE to the end of shell variable VAR.
15333func_append ()
15334{
15335 eval "$1=\$$1\$2"
15336}
15337
15338_LT_EOF
15339 ;;
dd184caf 15340 esac
8d138742
CE
15341
15342
15343 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15344 || (rm -f "$cfgfile"; exit 1)
15345
15346 mv -f "$cfgfile" "$ofile" ||
15347 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15348 chmod +x "$ofile"
15349
d9898ee8 15350 ;;
dd184caf 15351
d9898ee8 15352 esac
dd184caf 15353done # for ac_tag
d9898ee8 15354
d9898ee8 15355
15356{ (exit 0); exit 0; }
15357_ACEOF
15358chmod +x $CONFIG_STATUS
15359ac_clean_files=$ac_clean_files_save
15360
8d138742
CE
15361test $ac_write_fail = 0 ||
15362 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15363$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15364 { (exit 1); exit 1; }; }
15365
d9898ee8 15366
15367# configure is writing to config.log, and then calls config.status.
15368# config.status does its own redirection, appending to config.log.
15369# Unfortunately, on DOS this fails, as config.log is still kept open
15370# by configure, so config.status won't be able to write to it; its
15371# output is simply discarded. So we exec the FD to /dev/null,
15372# effectively closing config.log, so it can be properly (re)opened and
15373# appended to by config.status. When coming back to configure, we
15374# need to make the FD available again.
15375if test "$no_create" != yes; then
15376 ac_cs_success=:
15377 ac_config_status_args=
15378 test "$silent" = yes &&
15379 ac_config_status_args="$ac_config_status_args --quiet"
15380 exec 5>/dev/null
15381 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15382 exec 5>>config.log
15383 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15384 # would make configure fail if this is the last instruction.
15385 $ac_cs_success || { (exit 1); exit 1; }
15386fi
8d138742
CE
15387if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15388 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15389$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15390fi
d9898ee8 15391