Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / liblock / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for liblock 0.60.
4 #
5 # Report bugs to <courier-users@lists.sourceforge.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606 $*
607 _LT_EOF
608 exit 0
609 fi
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
615 if 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
627
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.
638
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
650 IFS="$lt_save_ifs"
651
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+"$@"}
667 else
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=:
692
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
700
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
710 fi
711 fi
712 fi
713 fi
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.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='liblock'
747 PACKAGE_TARNAME='liblock'
748 PACKAGE_VERSION='0.60'
749 PACKAGE_STRING='liblock 0.60'
750 PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
751
752 ac_unique_file="liblock.h"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 LIBOBJS
793 HAVE_SGML_FALSE
794 HAVE_SGML_TRUE
795 USE_LOCKF_FALSE
796 USE_LOCKF_TRUE
797 USE_FLOCK_FALSE
798 USE_FLOCK_TRUE
799 USE_FCNTL_FALSE
800 USE_FCNTL_TRUE
801 CPP
802 OTOOL64
803 OTOOL
804 LIPO
805 NMEDIT
806 DSYMUTIL
807 lt_ECHO
808 RANLIB
809 AR
810 OBJDUMP
811 NM
812 ac_ct_DUMPBIN
813 DUMPBIN
814 LD
815 FGREP
816 EGREP
817 GREP
818 SED
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 LIBTOOL
828 LN_S
829 am__fastdepCC_FALSE
830 am__fastdepCC_TRUE
831 CCDEPMODE
832 AMDEPBACKSLASH
833 AMDEP_FALSE
834 AMDEP_TRUE
835 am__quote
836 am__include
837 DEPDIR
838 OBJEXT
839 EXEEXT
840 ac_ct_CC
841 CPPFLAGS
842 LDFLAGS
843 CFLAGS
844 CC
845 am__untar
846 am__tar
847 AMTAR
848 am__leading_dot
849 SET_MAKE
850 AWK
851 mkdir_p
852 MKDIR_P
853 INSTALL_STRIP_PROGRAM
854 STRIP
855 install_sh
856 MAKEINFO
857 AUTOHEADER
858 AUTOMAKE
859 AUTOCONF
860 ACLOCAL
861 VERSION
862 PACKAGE
863 CYGPATH_W
864 am__isrc
865 INSTALL_DATA
866 INSTALL_SCRIPT
867 INSTALL_PROGRAM
868 target_alias
869 host_alias
870 build_alias
871 LIBS
872 ECHO_T
873 ECHO_N
874 ECHO_C
875 DEFS
876 mandir
877 localedir
878 libdir
879 psdir
880 pdfdir
881 dvidir
882 htmldir
883 infodir
884 docdir
885 oldincludedir
886 includedir
887 localstatedir
888 sharedstatedir
889 sysconfdir
890 datadir
891 datarootdir
892 libexecdir
893 sbindir
894 bindir
895 program_transform_name
896 prefix
897 exec_prefix
898 PACKAGE_BUGREPORT
899 PACKAGE_STRING
900 PACKAGE_VERSION
901 PACKAGE_TARNAME
902 PACKAGE_NAME
903 PATH_SEPARATOR
904 SHELL'
905 ac_subst_files=''
906 ac_user_opts='
907 enable_option_checking
908 enable_dependency_tracking
909 enable_shared
910 enable_static
911 with_pic
912 enable_fast_install
913 with_gnu_ld
914 enable_libtool_lock
915 with_locking_method
916 '
917 ac_precious_vars='build_alias
918 host_alias
919 target_alias
920 CC
921 CFLAGS
922 LDFLAGS
923 LIBS
924 CPPFLAGS
925 CPP'
926
927
928 # Initialize some variables set by options.
929 ac_init_help=
930 ac_init_version=false
931 ac_unrecognized_opts=
932 ac_unrecognized_sep=
933 # The variables have the same names as the options, with
934 # dashes changed to underlines.
935 cache_file=/dev/null
936 exec_prefix=NONE
937 no_create=
938 no_recursion=
939 prefix=NONE
940 program_prefix=NONE
941 program_suffix=NONE
942 program_transform_name=s,x,x,
943 silent=
944 site=
945 srcdir=
946 verbose=
947 x_includes=NONE
948 x_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.
955 # (The list follows the same order as the GNU Coding Standards.)
956 bindir='${exec_prefix}/bin'
957 sbindir='${exec_prefix}/sbin'
958 libexecdir='${exec_prefix}/libexec'
959 datarootdir='${prefix}/share'
960 datadir='${datarootdir}'
961 sysconfdir='${prefix}/etc'
962 sharedstatedir='${prefix}/com'
963 localstatedir='${prefix}/var'
964 includedir='${prefix}/include'
965 oldincludedir='/usr/include'
966 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967 infodir='${datarootdir}/info'
968 htmldir='${docdir}'
969 dvidir='${docdir}'
970 pdfdir='${docdir}'
971 psdir='${docdir}'
972 libdir='${exec_prefix}/lib'
973 localedir='${datarootdir}/locale'
974 mandir='${datarootdir}/man'
975
976 ac_prev=
977 ac_dashdash=
978 for ac_option
979 do
980 # If the previous option needs an argument, assign it.
981 if test -n "$ac_prev"; then
982 eval $ac_prev=\$ac_option
983 ac_prev=
984 continue
985 fi
986
987 case $ac_option in
988 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989 *) ac_optarg=yes ;;
990 esac
991
992 # Accept the important Cygnus configure options, so we can diagnose typos.
993
994 case $ac_dashdash$ac_option in
995 --)
996 ac_dashdash=yes ;;
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
1018 -datadir | --datadir | --datadi | --datad)
1019 ac_prev=datadir ;;
1020 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1021 datadir=$ac_optarg ;;
1022
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
1030 -disable-* | --disable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1035 { (exit 1); exit 1; }; }
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 ;;
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 ;;
1056
1057 -enable-* | --enable-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1062 { (exit 1); exit 1; }; }
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 ;;
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
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
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
1129 -localedir | --localedir | --localedi | --localed | --locale)
1130 ac_prev=localedir ;;
1131 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1132 localedir=$ac_optarg ;;
1133
1134 -localstatedir | --localstatedir | --localstatedi | --localstated \
1135 | --localstate | --localstat | --localsta | --localst | --locals)
1136 ac_prev=localstatedir ;;
1137 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1138 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
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
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
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-*)
1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1267 { (exit 1); exit 1; }; }
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 ;;
1278
1279 -without-* | --without-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1284 { (exit 1); exit 1; }; }
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 ;;
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
1314 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1315 Try \`$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 &&
1323 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324 { (exit 1); exit 1; }; }
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1327
1328 *)
1329 # FIXME: should be removed in autoconf 3.0.
1330 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1334 ;;
1335
1336 esac
1337 done
1338
1339 if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1342 { (exit 1); exit 1; }; }
1343 fi
1344
1345 if 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
1352 fi
1353
1354 # Check all directory arguments for consistency.
1355 for 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
1359 do
1360 eval ac_val=\$$ac_var
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.
1368 case $ac_val in
1369 [\\/$]* | ?:[\\/]* ) continue;;
1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371 esac
1372 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1373 { (exit 1); exit 1; }; }
1374 done
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.
1379 build=$build_alias
1380 host=$host_alias
1381 target=$target_alias
1382
1383 # FIXME: To remove some day.
1384 if test "x$host_alias" != x; then
1385 if test "x$build_alias" = x; then
1386 cross_compiling=maybe
1387 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
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
1392 fi
1393
1394 ac_tool_prefix=
1395 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396
1397 test "$silent" = yes && exec 6>/dev/null
1398
1399
1400 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1401 ac_ls_di=`ls -di .` &&
1402 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1403 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1404 { (exit 1); exit 1; }; }
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1407 { (exit 1); exit 1; }; }
1408
1409
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412 ac_srcdir_defaulted=yes
1413 # Try the directory containing this script, then the parent directory.
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" |
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'`
1437 srcdir=$ac_confdir
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 srcdir=..
1440 fi
1441 else
1442 ac_srcdir_defaulted=no
1443 fi
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1447 { (exit 1); exit 1; }; }
1448 fi
1449 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 ac_abs_confdir=`(
1451 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1452 { (exit 1); exit 1; }; }
1453 pwd)`
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 srcdir=.
1457 fi
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.
1461 case $srcdir in
1462 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 esac
1464 for 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}
1469 done
1470
1471 #
1472 # Report the --help message.
1473 #
1474 if 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
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1481
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE. See below for descriptions of some of the useful variables.
1484
1485 Defaults for the options are specified in brackets.
1486
1487 Configuration:
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
1498 Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
1500 [$ac_default_prefix]
1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 [PREFIX]
1503
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1508
1509 For better control, use the options below.
1510
1511 Fine tuning of the installation directories:
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]
1531 _ACEOF
1532
1533 cat <<\_ACEOF
1534
1535 Program 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
1540 System 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
1544 fi
1545
1546 if 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
1552 Optional Features:
1553 --disable-option-checking ignore unrecognized --enable/--with options
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
1558 --enable-shared[=PKGS] build shared libraries [default=yes]
1559 --enable-static[=PKGS] build static libraries [default=yes]
1560 --enable-fast-install[=PKGS]
1561 optimize for fast installation [default=yes]
1562 --disable-libtool-lock avoid locking (might break parallel builds)
1563
1564 Optional Packages:
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1567 --with-pic try to use only PIC/non-PIC objects [default=use
1568 both]
1569 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1570
1571
1572 Some 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>
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>
1580 CPP C preprocessor
1581
1582 Use these variables to override the choices made by `configure' or to help
1583 it to find libraries and programs with nonstandard names/locations.
1584
1585 Report bugs to <courier-users@lists.sourceforge.net>.
1586 _ACEOF
1587 ac_status=$?
1588 fi
1589
1590 if test "$ac_init_help" = "recursive"; then
1591 # If there are subdirs, report their specific --help.
1592 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1593 test -d "$ac_dir" ||
1594 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1595 continue
1596 ac_builddir=.
1597
1598 case "$ac_dir" in
1599 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *)
1601 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1602 # A ".." for each directory in $ac_dir_suffix.
1603 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
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 ;;
1608 esac
1609 ac_abs_top_builddir=$ac_pwd
1610 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1611 # for backward compatibility:
1612 ac_top_builddir=$ac_top_build_prefix
1613
1614 case $srcdir in
1615 .) # We are building in place.
1616 ac_srcdir=.
1617 ac_top_srcdir=$ac_top_builddir_sub
1618 ac_abs_top_srcdir=$ac_pwd ;;
1619 [\\/]* | ?:[\\/]* ) # Absolute name.
1620 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
1627 esac
1628 ac_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
1638 else
1639 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1640 fi || ac_status=$?
1641 cd "$ac_pwd" || { ac_status=$?; break; }
1642 done
1643 fi
1644
1645 test -n "$ac_init_help" && exit $ac_status
1646 if $ac_init_version; then
1647 cat <<\_ACEOF
1648 liblock configure 0.60
1649 generated by GNU Autoconf 2.63
1650
1651 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1652 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1653 This configure script is free software; the Free Software Foundation
1654 gives unlimited permission to copy, distribute and modify it.
1655 _ACEOF
1656 exit
1657 fi
1658 cat >config.log <<_ACEOF
1659 This file contains any messages produced by compilers while
1660 running configure, to aid debugging if configure makes a mistake.
1661
1662 It was created by liblock $as_me 0.60, which was
1663 generated by GNU Autoconf 2.63. Invocation command line was
1664
1665 $ $0 $@
1666
1667 _ACEOF
1668 exec 5>>config.log
1669 {
1670 cat <<_ASUNAME
1671 ## --------- ##
1672 ## Platform. ##
1673 ## --------- ##
1674
1675 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1676 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1677 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1678 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1679 uname -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`
1687 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
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
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1696 do
1697 IFS=$as_save_IFS
1698 test -z "$as_dir" && as_dir=.
1699 $as_echo "PATH: $as_dir"
1700 done
1701 IFS=$as_save_IFS
1702
1703 } >&5
1704
1705 cat >&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.
1720 ac_configure_args=
1721 ac_configure_args0=
1722 ac_configure_args1=
1723 ac_must_keep_next=false
1724 for ac_pass in 1 2
1725 do
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 ;;
1733 *\'*)
1734 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
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
1755 ac_configure_args="$ac_configure_args '$ac_arg'"
1756 ;;
1757 esac
1758 done
1759 done
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.
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.
1768 trap '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,
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 #(
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;} ;;
1788 esac
1789 case $ac_var in #(
1790 _ | IFS | as_nl) ;; #(
1791 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1792 *) $as_unset $ac_var ;;
1793 esac ;;
1794 esac
1795 done
1796 (set) 2>&1 |
1797 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1798 *${as_nl}ac_space=\ *)
1799 sed -n \
1800 "s/'\''/'\''\\\\'\'''\''/g;
1801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1802 ;; #(
1803 *)
1804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1805 ;;
1806 esac |
1807 sort
1808 )
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
1819 eval ac_val=\$$ac_var
1820 case $ac_val in
1821 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822 esac
1823 $as_echo "$ac_var='\''$ac_val'\''"
1824 done | sort
1825 echo
1826
1827 if test -n "$ac_subst_files"; then
1828 cat <<\_ASBOX
1829 ## ------------------- ##
1830 ## File substitutions. ##
1831 ## ------------------- ##
1832 _ASBOX
1833 echo
1834 for ac_var in $ac_subst_files
1835 do
1836 eval ac_val=\$$ac_var
1837 case $ac_val in
1838 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839 esac
1840 $as_echo "$ac_var='\''$ac_val'\''"
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
1852 cat confdefs.h
1853 echo
1854 fi
1855 test "$ac_signal" != 0 &&
1856 $as_echo "$as_me: caught signal $ac_signal"
1857 $as_echo "$as_me: exit $exit_status"
1858 } >&5
1859 rm -f core *.core core.conftest.* &&
1860 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1861 exit $exit_status
1862 ' 0
1863 for ac_signal in 1 2 13 15; do
1864 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1865 done
1866 ac_signal=0
1867
1868 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1869 rm -f -r conftest* confdefs.h
1870
1871 # Predefined preprocessor variables.
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_NAME "$PACKAGE_NAME"
1875 _ACEOF
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1885 _ACEOF
1886
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_STRING "$PACKAGE_STRING"
1890 _ACEOF
1891
1892
1893 cat >>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.
1899 # Prefer an explicitly selected file to automatically selected ones.
1900 ac_site_file1=NONE
1901 ac_site_file2=NONE
1902 if test -n "$CONFIG_SITE"; then
1903 ac_site_file1=$CONFIG_SITE
1904 elif test "x$prefix" != xNONE; then
1905 ac_site_file1=$prefix/share/config.site
1906 ac_site_file2=$prefix/etc/config.site
1907 else
1908 ac_site_file1=$ac_default_prefix/share/config.site
1909 ac_site_file2=$ac_default_prefix/etc/config.site
1910 fi
1911 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1912 do
1913 test "x$ac_site_file" = xNONE && continue
1914 if test -r "$ac_site_file"; then
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;}
1917 sed 's/^/| /' "$ac_site_file" >&5
1918 . "$ac_site_file"
1919 fi
1920 done
1921
1922 if 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
1926 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1927 $as_echo "$as_me: loading cache $cache_file" >&6;}
1928 case $cache_file in
1929 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1930 *) . "./$cache_file";;
1931 esac
1932 fi
1933 else
1934 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1935 $as_echo "$as_me: creating cache $cache_file" >&6;}
1936 >$cache_file
1937 fi
1938
1939 # Check that the precious variables saved in the cache have kept the same
1940 # value.
1941 ac_cache_corrupted=false
1942 for ac_var in $ac_precious_vars; do
1943 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1944 eval ac_new_set=\$ac_env_${ac_var}_set
1945 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1946 eval ac_new_val=\$ac_env_${ac_var}_value
1947 case $ac_old_set,$ac_new_set in
1948 set,)
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;}
1951 ac_cache_corrupted=: ;;
1952 ,set)
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;}
1955 ac_cache_corrupted=: ;;
1956 ,);;
1957 *)
1958 if test "x$ac_old_val" != "x$ac_new_val"; then
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;}
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
1980 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
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
1988 done
1989 if $ac_cache_corrupted; then
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;}
1996 { (exit 1); exit 1; }; }
1997 fi
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023 ac_ext=c
2024 ac_cpp='$CPP $CPPFLAGS'
2025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028
2029
2030
2031 >confdefs.h # Kill PACKAGE_ macros
2032
2033
2034 ac_config_headers="$ac_config_headers config.h"
2035
2036 am__api_version='1.11'
2037
2038 ac_aux_dir=
2039 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2040 if test -f "$ac_dir/install-sh"; then
2041 ac_aux_dir=$ac_dir
2042 ac_install_sh="$ac_aux_dir/install-sh -c"
2043 break
2044 elif test -f "$ac_dir/install.sh"; then
2045 ac_aux_dir=$ac_dir
2046 ac_install_sh="$ac_aux_dir/install.sh -c"
2047 break
2048 elif test -f "$ac_dir/shtool"; then
2049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/shtool install -c"
2051 break
2052 fi
2053 done
2054 if test -z "$ac_aux_dir"; then
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;}
2057 { (exit 1); exit 1; }; }
2058 fi
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.
2064 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2065 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2066 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2067
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.
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; }
2085 if test -z "$INSTALL"; then
2086 if test "${ac_cv_path_install+set}" = set; then
2087 $as_echo_n "(cached) " >&6
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 # Account for people who put trailing slashes in PATH elements.
2095 case $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
2106 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
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
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
2128 fi
2129 fi
2130 done
2131 done
2132 ;;
2133 esac
2134
2135 done
2136 IFS=$as_save_IFS
2137
2138 rm -rf conftest.one conftest.two conftest.dir
2139
2140 fi
2141 if test "${ac_cv_path_install+set}" = set; then
2142 INSTALL=$ac_cv_path_install
2143 else
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
2146 # break other packages using the cache if that directory is
2147 # removed, or if the value is a relative name.
2148 INSTALL=$ac_install_sh
2149 fi
2150 fi
2151 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2152 $as_echo "$INSTALL" >&6; }
2153
2154 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2155 # It thinks the first close brace ends the variable substitution.
2156 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2157
2158 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2159
2160 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2161
2162 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2163 $as_echo_n "checking whether build environment is sane... " >&6; }
2164 # Just in case
2165 sleep 1
2166 echo timestamp > conftest.file
2167 # Reject unsafe characters in $srcdir or the absolute working directory
2168 # name. Accept space and tab only in the latter.
2169 am_lf='
2170 '
2171 case `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; }; };;
2176 esac
2177 case $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; }; };;
2182 esac
2183
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).
2189 if (
2190 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2191 if test "$*" = "X"; then
2192 # -L didn't work.
2193 set X `ls -t "$srcdir/configure" conftest.file`
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".
2203 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2204 alias in your environment" >&5
2205 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2206 alias in your environment" >&2;}
2207 { (exit 1); exit 1; }; }
2208 fi
2209
2210 test "$2" = conftest.file
2211 )
2212 then
2213 # Ok.
2214 :
2215 else
2216 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2217 Check your system clock" >&5
2218 $as_echo "$as_me: error: newly created file is older than distributed files!
2219 Check your system clock" >&2;}
2220 { (exit 1); exit 1; }; }
2221 fi
2222 { $as_echo "$as_me:$LINENO: result: yes" >&5
2223 $as_echo "yes" >&6; }
2224 test "$program_prefix" != NONE &&
2225 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2226 # Use a double $ so make ignores it.
2227 test "$program_suffix" != NONE &&
2228 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2229 # Double any \ or $.
2230 # By default was `s,x,x', remove it if useless.
2231 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2232 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2233
2234 # expand $ac_aux_dir to an absolute path
2235 am_aux_dir=`cd $ac_aux_dir && pwd`
2236
2237 if 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
2244 fi
2245 # Use eval to expand $SHELL
2246 if eval "$MISSING --run true"; then
2247 am_missing_run="$MISSING --run "
2248 else
2249 am_missing_run=
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;}
2252 fi
2253
2254 if 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
2261 fi
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.
2267 if 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.
2270 set 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; }
2273 if test "${ac_cv_prog_STRIP+set}" = set; then
2274 $as_echo_n "(cached) " >&6
2275 else
2276 if test -n "$STRIP"; then
2277 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
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
2290 done
2291 done
2292 IFS=$as_save_IFS
2293
2294 fi
2295 fi
2296 STRIP=$ac_cv_prog_STRIP
2297 if test -n "$STRIP"; then
2298 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2299 $as_echo "$STRIP" >&6; }
2300 else
2301 { $as_echo "$as_me:$LINENO: result: no" >&5
2302 $as_echo "no" >&6; }
2303 fi
2304
2305
2306 fi
2307 if 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.
2310 set 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; }
2313 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2314 $as_echo_n "(cached) " >&6
2315 else
2316 if test -n "$ac_ct_STRIP"; then
2317 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
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
2330 done
2331 done
2332 IFS=$as_save_IFS
2333
2334 fi
2335 fi
2336 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2337 if test -n "$ac_ct_STRIP"; then
2338 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2339 $as_echo "$ac_ct_STRIP" >&6; }
2340 else
2341 { $as_echo "$as_me:$LINENO: result: no" >&5
2342 $as_echo "no" >&6; }
2343 fi
2344
2345 if test "x$ac_ct_STRIP" = x; then
2346 STRIP=":"
2347 else
2348 case $cross_compiling:$ac_tool_warned in
2349 yes:)
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;}
2352 ac_tool_warned=yes ;;
2353 esac
2354 STRIP=$ac_ct_STRIP
2355 fi
2356 else
2357 STRIP="$ac_cv_prog_STRIP"
2358 fi
2359
2360 fi
2361 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2362
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; }
2365 if test -z "$MKDIR_P"; then
2366 if test "${ac_cv_path_mkdir+set}" = set; then
2367 $as_echo_n "(cached) " >&6
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2371 do
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
2386 done
2387 IFS=$as_save_IFS
2388
2389 fi
2390
2391 if test "${ac_cv_path_mkdir+set}" = set; then
2392 MKDIR_P="$ac_cv_path_mkdir -p"
2393 else
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"
2400 fi
2401 fi
2402 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2403 $as_echo "$MKDIR_P" >&6; }
2404
2405 mkdir_p="$MKDIR_P"
2406 case $mkdir_p in
2407 [\\/$]* | ?:[\\/]*) ;;
2408 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2409 esac
2410
2411 for ac_prog in gawk mawk nawk awk
2412 do
2413 # Extract the first word of "$ac_prog", so it can be a program name with args.
2414 set dummy $ac_prog; ac_word=$2
2415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 $as_echo_n "checking for $ac_word... " >&6; }
2417 if test "${ac_cv_prog_AWK+set}" = set; then
2418 $as_echo_n "(cached) " >&6
2419 else
2420 if test -n "$AWK"; then
2421 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_AWK="$ac_prog"
2431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434 done
2435 done
2436 IFS=$as_save_IFS
2437
2438 fi
2439 fi
2440 AWK=$ac_cv_prog_AWK
2441 if test -n "$AWK"; then
2442 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2443 $as_echo "$AWK" >&6; }
2444 else
2445 { $as_echo "$as_me:$LINENO: result: no" >&5
2446 $as_echo "no" >&6; }
2447 fi
2448
2449
2450 test -n "$AWK" && break
2451 done
2452
2453 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2454 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2455 set x ${MAKE-make}
2456 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2457 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2458 $as_echo_n "(cached) " >&6
2459 else
2460 cat >conftest.make <<\_ACEOF
2461 SHELL = /bin/sh
2462 all:
2463 @echo '@@@%%%=$(MAKE)=@@@%%%'
2464 _ACEOF
2465 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2466 case `${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;;
2471 esac
2472 rm -f conftest.make
2473 fi
2474 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2475 { $as_echo "$as_me:$LINENO: result: yes" >&5
2476 $as_echo "yes" >&6; }
2477 SET_MAKE=
2478 else
2479 { $as_echo "$as_me:$LINENO: result: no" >&5
2480 $as_echo "no" >&6; }
2481 SET_MAKE="MAKE=${MAKE-make}"
2482 fi
2483
2484 rm -rf .tst 2>/dev/null
2485 mkdir .tst 2>/dev/null
2486 if test -d .tst; then
2487 am__leading_dot=.
2488 else
2489 am__leading_dot=_
2490 fi
2491 rmdir .tst 2>/dev/null
2492
2493 if 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
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;}
2501 { (exit 1); exit 1; }; }
2502 fi
2503 fi
2504
2505 # test whether we have cygpath
2506 if 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
2512 fi
2513
2514
2515 # Define the identity of the package.
2516 PACKAGE='liblock'
2517 VERSION='0.60'
2518
2519
2520 # Some tools Automake needs.
2521
2522 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2523
2524
2525 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2526
2527
2528 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2529
2530
2531 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2532
2533
2534 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2535
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
2540 AMTAR=${AMTAR-"${am_missing_run}tar"}
2541
2542 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2543
2544
2545
2546
2547
2548
2549 for ac_prog in gawk mawk nawk awk
2550 do
2551 # Extract the first word of "$ac_prog", so it can be a program name with args.
2552 set dummy $ac_prog; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_AWK+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$AWK"; then
2559 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_AWK="$ac_prog"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577 fi
2578 AWK=$ac_cv_prog_AWK
2579 if test -n "$AWK"; then
2580 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2581 $as_echo "$AWK" >&6; }
2582 else
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2586
2587
2588 test -n "$AWK" && break
2589 done
2590
2591 ac_ext=c
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596 if 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.
2598 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2621
2622 fi
2623 fi
2624 CC=$ac_cv_prog_CC
2625 if test -n "$CC"; then
2626 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2627 $as_echo "$CC" >&6; }
2628 else
2629 { $as_echo "$as_me:$LINENO: result: no" >&5
2630 $as_echo "no" >&6; }
2631 fi
2632
2633
2634 fi
2635 if 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.
2638 set dummy gcc; ac_word=$2
2639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2642 $as_echo_n "(cached) " >&6
2643 else
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_ac_ct_CC="gcc"
2655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665 if test -n "$ac_ct_CC"; then
2666 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667 $as_echo "$ac_ct_CC" >&6; }
2668 else
2669 { $as_echo "$as_me:$LINENO: result: no" >&5
2670 $as_echo "no" >&6; }
2671 fi
2672
2673 if test "x$ac_ct_CC" = x; then
2674 CC=""
2675 else
2676 case $cross_compiling:$ac_tool_warned in
2677 yes:)
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;}
2680 ac_tool_warned=yes ;;
2681 esac
2682 CC=$ac_ct_CC
2683 fi
2684 else
2685 CC="$ac_cv_prog_CC"
2686 fi
2687
2688 if test -z "$CC"; then
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.
2691 set dummy ${ac_tool_prefix}cc; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_CC="${ac_tool_prefix}cc"
2708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2721 else
2722 { $as_echo "$as_me:$LINENO: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727 fi
2728 fi
2729 if test -z "$CC"; then
2730 # Extract the first word of "cc", so it can be a program name with args.
2731 set dummy cc; ac_word=$2
2732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if test "${ac_cv_prog_CC+set}" = set; then
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2739 else
2740 ac_prog_rejected=no
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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"
2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756 done
2757 done
2758 IFS=$as_save_IFS
2759
2760 if 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
2771 fi
2772 fi
2773 fi
2774 CC=$ac_cv_prog_CC
2775 if test -n "$CC"; then
2776 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2777 $as_echo "$CC" >&6; }
2778 else
2779 { $as_echo "$as_me:$LINENO: result: no" >&5
2780 $as_echo "no" >&6; }
2781 fi
2782
2783
2784 fi
2785 if test -z "$CC"; then
2786 if test -n "$ac_tool_prefix"; then
2787 for ac_prog in cl.exe
2788 do
2789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if test "${ac_cv_prog_CC+set}" = set; then
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if test -n "$CC"; then
2797 ac_cv_prog_CC="$CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 CC=$ac_cv_prog_CC
2817 if test -n "$CC"; then
2818 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2819 $as_echo "$CC" >&6; }
2820 else
2821 { $as_echo "$as_me:$LINENO: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826 test -n "$CC" && break
2827 done
2828 fi
2829 if test -z "$CC"; then
2830 ac_ct_CC=$CC
2831 for ac_prog in cl.exe
2832 do
2833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$ac_ct_CC"; then
2841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_ac_ct_CC="$ac_prog"
2851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2861 if test -n "$ac_ct_CC"; then
2862 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2863 $as_echo "$ac_ct_CC" >&6; }
2864 else
2865 { $as_echo "$as_me:$LINENO: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869
2870 test -n "$ac_ct_CC" && break
2871 done
2872
2873 if test "x$ac_ct_CC" = x; then
2874 CC=""
2875 else
2876 case $cross_compiling:$ac_tool_warned in
2877 yes:)
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;}
2880 ac_tool_warned=yes ;;
2881 esac
2882 CC=$ac_ct_CC
2883 fi
2884 fi
2885
2886 fi
2887
2888
2889 test -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
2892 See \`config.log' for more details." >&5
2893 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2894 See \`config.log' for more details." >&2;}
2895 { (exit 1); exit 1; }; }; }
2896
2897 # Provide some information about the compiler.
2898 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2899 set X $ac_compile
2900 ac_compiler=$2
2901 { (ac_try="$ac_compiler --version >&5"
2902 case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905 esac
2906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2907 $as_echo "$ac_try_echo") >&5
2908 (eval "$ac_compiler --version >&5") 2>&5
2909 ac_status=$?
2910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (ac_try="$ac_compiler -v >&5"
2913 case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916 esac
2917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2918 $as_echo "$ac_try_echo") >&5
2919 (eval "$ac_compiler -v >&5") 2>&5
2920 ac_status=$?
2921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }
2923 { (ac_try="$ac_compiler -V >&5"
2924 case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927 esac
2928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2929 $as_echo "$ac_try_echo") >&5
2930 (eval "$ac_compiler -V >&5") 2>&5
2931 ac_status=$?
2932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }
2934
2935 cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h. */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2941
2942 int
2943 main ()
2944 {
2945
2946 ;
2947 return 0;
2948 }
2949 _ACEOF
2950 ac_clean_files_save=$ac_clean_files
2951 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
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.
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; }
2957 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2958
2959 # The possible output files:
2960 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2961
2962 ac_rmfiles=
2963 for ac_file in $ac_files
2964 do
2965 case $ac_file in
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2967 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2968 esac
2969 done
2970 rm -f $ac_rmfiles
2971
2972 if { (ac_try="$ac_link_default"
2973 case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2978 $as_echo "$ac_try_echo") >&5
2979 (eval "$ac_link_default") 2>&5
2980 ac_status=$?
2981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; then
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.
2988 for ac_file in $ac_files ''
2989 do
2990 test -f "$ac_file" || continue
2991 case $ac_file in
2992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2993 ;;
2994 [ab].out )
2995 # We found the default executable, but exeext='' is most
2996 # certainly right.
2997 break;;
2998 *.* )
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.
3008 break;;
3009 * )
3010 break;;
3011 esac
3012 done
3013 test "$ac_cv_exeext" = no && ac_cv_exeext=
3014
3015 else
3016 ac_file=''
3017 fi
3018
3019 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3020 $as_echo "$ac_file" >&6; }
3021 if test -z "$ac_file"; then
3022 $as_echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3024
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
3028 See \`config.log' for more details." >&5
3029 $as_echo "$as_me: error: C compiler cannot create executables
3030 See \`config.log' for more details." >&2;}
3031 { (exit 77); exit 77; }; }; }
3032 fi
3033
3034 ac_exeext=$ac_cv_exeext
3035
3036 # Check that the compiler produces executables we can run. If not, either
3037 # the compiler is broken, or we cross compile.
3038 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3039 $as_echo_n "checking whether the C compiler works... " >&6; }
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.
3042 if test "$cross_compiling" != yes; then
3043 if { ac_try='./$ac_file'
3044 { (case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047 esac
3048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3049 $as_echo "$ac_try_echo") >&5
3050 (eval "$ac_try") 2>&5
3051 ac_status=$?
3052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; }; then
3054 cross_compiling=no
3055 else
3056 if test "$cross_compiling" = maybe; then
3057 cross_compiling=yes
3058 else
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.
3062 If you meant to cross compile, use \`--host'.
3063 See \`config.log' for more details." >&5
3064 $as_echo "$as_me: error: cannot run C compiled programs.
3065 If you meant to cross compile, use \`--host'.
3066 See \`config.log' for more details." >&2;}
3067 { (exit 1); exit 1; }; }; }
3068 fi
3069 fi
3070 fi
3071 { $as_echo "$as_me:$LINENO: result: yes" >&5
3072 $as_echo "yes" >&6; }
3073
3074 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3075 ac_clean_files=$ac_clean_files_save
3076 # Check that the compiler produces executables we can run. If not, either
3077 # the compiler is broken, or we cross compile.
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; }
3082
3083 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3084 $as_echo_n "checking for suffix of executables... " >&6; }
3085 if { (ac_try="$ac_link"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3091 $as_echo "$ac_try_echo") >&5
3092 (eval "$ac_link") 2>&5
3093 ac_status=$?
3094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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'.
3100 for ac_file in conftest.exe conftest conftest.*; do
3101 test -f "$ac_file" || continue
3102 case $ac_file in
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3104 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3105 break;;
3106 * ) break;;
3107 esac
3108 done
3109 else
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
3113 See \`config.log' for more details." >&5
3114 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3115 See \`config.log' for more details." >&2;}
3116 { (exit 1); exit 1; }; }; }
3117 fi
3118
3119 rm -f conftest$ac_cv_exeext
3120 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3121 $as_echo "$ac_cv_exeext" >&6; }
3122
3123 rm -f conftest.$ac_ext
3124 EXEEXT=$ac_cv_exeext
3125 ac_exeext=$EXEEXT
3126 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3127 $as_echo_n "checking for suffix of object files... " >&6; }
3128 if test "${ac_cv_objext+set}" = set; then
3129 $as_echo_n "(cached) " >&6
3130 else
3131 cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h. */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137
3138 int
3139 main ()
3140 {
3141
3142 ;
3143 return 0;
3144 }
3145 _ACEOF
3146 rm -f conftest.o conftest.obj
3147 if { (ac_try="$ac_compile"
3148 case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3153 $as_echo "$ac_try_echo") >&5
3154 (eval "$ac_compile") 2>&5
3155 ac_status=$?
3156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; then
3158 for ac_file in conftest.o conftest.obj conftest.*; do
3159 test -f "$ac_file" || continue;
3160 case $ac_file in
3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3162 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3163 break;;
3164 esac
3165 done
3166 else
3167 $as_echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
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
3173 See \`config.log' for more details." >&5
3174 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3175 See \`config.log' for more details." >&2;}
3176 { (exit 1); exit 1; }; }; }
3177 fi
3178
3179 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3180 fi
3181 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3182 $as_echo "$ac_cv_objext" >&6; }
3183 OBJEXT=$ac_cv_objext
3184 ac_objext=$OBJEXT
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; }
3187 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3188 $as_echo_n "(cached) " >&6
3189 else
3190 cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h. */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3196
3197 int
3198 main ()
3199 {
3200 #ifndef __GNUC__
3201 choke me
3202 #endif
3203
3204 ;
3205 return 0;
3206 }
3207 _ACEOF
3208 rm -f conftest.$ac_objext
3209 if { (ac_try="$ac_compile"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3215 $as_echo "$ac_try_echo") >&5
3216 (eval "$ac_compile") 2>conftest.er1
3217 ac_status=$?
3218 grep -v '^ *+' conftest.er1 >conftest.err
3219 rm -f conftest.er1
3220 cat conftest.err >&5
3221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } && {
3223 test -z "$ac_c_werror_flag" ||
3224 test ! -s conftest.err
3225 } && test -s conftest.$ac_objext; then
3226 ac_compiler_gnu=yes
3227 else
3228 $as_echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3230
3231 ac_compiler_gnu=no
3232 fi
3233
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3236
3237 fi
3238 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3239 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3240 if test $ac_compiler_gnu = yes; then
3241 GCC=yes
3242 else
3243 GCC=
3244 fi
3245 ac_test_CFLAGS=${CFLAGS+set}
3246 ac_save_CFLAGS=$CFLAGS
3247 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3248 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3249 if test "${ac_cv_prog_cc_g+set}" = set; then
3250 $as_echo_n "(cached) " >&6
3251 else
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
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262
3263 int
3264 main ()
3265 {
3266
3267 ;
3268 return 0;
3269 }
3270 _ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3273 case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276 esac
3277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278 $as_echo "$ac_try_echo") >&5
3279 (eval "$ac_compile") 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
3290 else
3291 $as_echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294 CFLAGS=""
3295 cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h. */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3301
3302 int
3303 main ()
3304 {
3305
3306 ;
3307 return 0;
3308 }
3309 _ACEOF
3310 rm -f conftest.$ac_objext
3311 if { (ac_try="$ac_compile"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3317 $as_echo "$ac_try_echo") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } && {
3325 test -z "$ac_c_werror_flag" ||
3326 test ! -s conftest.err
3327 } && test -s conftest.$ac_objext; then
3328 :
3329 else
3330 $as_echo "$as_me: failed program was:" >&5
3331 sed '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
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h. */
3341
3342 int
3343 main ()
3344 {
3345
3346 ;
3347 return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.$ac_objext
3351 if { (ac_try="$ac_compile"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3357 $as_echo "$ac_try_echo") >&5
3358 (eval "$ac_compile") 2>conftest.er1
3359 ac_status=$?
3360 grep -v '^ *+' conftest.er1 >conftest.err
3361 rm -f conftest.er1
3362 cat conftest.err >&5
3363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); } && {
3365 test -z "$ac_c_werror_flag" ||
3366 test ! -s conftest.err
3367 } && test -s conftest.$ac_objext; then
3368 ac_cv_prog_cc_g=yes
3369 else
3370 $as_echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3372
3373
3374 fi
3375
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 fi
3378
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 fi
3381
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3383 ac_c_werror_flag=$ac_save_c_werror_flag
3384 fi
3385 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3386 $as_echo "$ac_cv_prog_cc_g" >&6; }
3387 if test "$ac_test_CFLAGS" = set; then
3388 CFLAGS=$ac_save_CFLAGS
3389 elif 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
3395 else
3396 if test "$GCC" = yes; then
3397 CFLAGS="-O2"
3398 else
3399 CFLAGS=
3400 fi
3401 fi
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; }
3404 if test "${ac_cv_prog_cc_c89+set}" = set; then
3405 $as_echo_n "(cached) " >&6
3406 else
3407 ac_cv_prog_cc_c89=no
3408 ac_save_CC=$CC
3409 cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h. */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>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. */
3420 struct buf { int x; };
3421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3422 static char *e (p, i)
3423 char **p;
3424 int i;
3425 {
3426 return p[i];
3427 }
3428 static 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
3441 as 'x'. The following induces an error, until -std is added to get
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
3444 that's true only with -std. */
3445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3446
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'
3450 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3451
3452 int test (int i, double x);
3453 struct s1 {int (*f) (int a);};
3454 struct s2 {int (*f) (double a);};
3455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3456 int argc;
3457 char **argv;
3458 int
3459 main ()
3460 {
3461 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3467 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3468 do
3469 CC="$ac_save_CC $ac_arg"
3470 rm -f conftest.$ac_objext
3471 if { (ac_try="$ac_compile"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3477 $as_echo "$ac_try_echo") >&5
3478 (eval "$ac_compile") 2>conftest.er1
3479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
3489 else
3490 $as_echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493
3494 fi
3495
3496 rm -f core conftest.err conftest.$ac_objext
3497 test "x$ac_cv_prog_cc_c89" != "xno" && break
3498 done
3499 rm -f conftest.$ac_ext
3500 CC=$ac_save_CC
3501
3502 fi
3503 # AC_CACHE_VAL
3504 case "x$ac_cv_prog_cc_c89" in
3505 x)
3506 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3507 $as_echo "none needed" >&6; } ;;
3508 xno)
3509 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3510 $as_echo "unsupported" >&6; } ;;
3511 *)
3512 CC="$CC $ac_cv_prog_cc_c89"
3513 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3514 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3515 esac
3516
3517
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523 DEPDIR="${am__leading_dot}deps"
3524
3525 ac_config_commands="$ac_config_commands depfiles"
3526
3527
3528 am_make=${MAKE-make}
3529 cat > confinc << 'END'
3530 am__doit:
3531 @echo this is the am__doit target
3532 .PHONY: am__doit
3533 END
3534 # If we don't find an include directive, just comment out the code.
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; }
3537 am__include="#"
3538 am__quote=
3539 _am_result=none
3540 # First try GNU make style include.
3541 echo "include confinc" > confmf
3542 # Ignore all kinds of additional output from `make'.
3543 case `$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 ;;
3549 esac
3550 # Now try BSD make style include.
3551 if test "$am__include" = "#"; then
3552 echo '.include "confinc"' > confmf
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
3560 fi
3561
3562
3563 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3564 $as_echo "$_am_result" >&6; }
3565 rm -f confinc confmf
3566
3567 # Check whether --enable-dependency-tracking was given.
3568 if test "${enable_dependency_tracking+set}" = set; then
3569 enableval=$enable_dependency_tracking;
3570 fi
3571
3572 if test "x$enable_dependency_tracking" != xno; then
3573 am_depcomp="$ac_aux_dir/depcomp"
3574 AMDEPBACKSLASH='\'
3575 fi
3576 if test "x$enable_dependency_tracking" != xno; then
3577 AMDEP_TRUE=
3578 AMDEP_FALSE='#'
3579 else
3580 AMDEP_TRUE='#'
3581 AMDEP_FALSE=
3582 fi
3583
3584
3585
3586 depcc="$CC" am_compiler_list=
3587
3588 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3589 $as_echo_n "checking dependency style of $depcc... " >&6; }
3590 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3591 $as_echo_n "(cached) " >&6
3592 else
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
3616 am__universal=false
3617 case " $depcc " in #(
3618 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3619 esac
3620
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
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"
3644 case $depmode in
3645 gcc)
3646 # This depmode causes a compiler race in universal mode.
3647 test "$am__universal" = false || continue
3648 ;;
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 ;;
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 ;;
3665 none) break ;;
3666 esac
3667 if depmode=$depmode \
3668 source=sub/conftest.c object=$am__obj \
3669 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3670 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3671 >/dev/null 2>conftest.err &&
3672 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3673 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3674 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
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
3693 else
3694 am_cv_CC_dependencies_compiler_type=none
3695 fi
3696
3697 fi
3698 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3699 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3700 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3701
3702 if
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='#'
3707 else
3708 am__fastdepCC_TRUE='#'
3709 am__fastdepCC_FALSE=
3710 fi
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.
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; }
3729 if test -z "$INSTALL"; then
3730 if test "${ac_cv_path_install+set}" = set; then
3731 $as_echo_n "(cached) " >&6
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 # Account for people who put trailing slashes in PATH elements.
3739 case $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
3750 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
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
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
3772 fi
3773 fi
3774 done
3775 done
3776 ;;
3777 esac
3778
3779 done
3780 IFS=$as_save_IFS
3781
3782 rm -rf conftest.one conftest.two conftest.dir
3783
3784 fi
3785 if test "${ac_cv_path_install+set}" = set; then
3786 INSTALL=$ac_cv_path_install
3787 else
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
3790 # break other packages using the cache if that directory is
3791 # removed, or if the value is a relative name.
3792 INSTALL=$ac_install_sh
3793 fi
3794 fi
3795 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3796 $as_echo "$INSTALL" >&6; }
3797
3798 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3799 # It thinks the first close brace ends the variable substitution.
3800 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3801
3802 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3803
3804 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3805
3806 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3807 $as_echo_n "checking whether ln -s works... " >&6; }
3808 LN_S=$as_ln_s
3809 if test "$LN_S" = "ln -s"; then
3810 { $as_echo "$as_me:$LINENO: result: yes" >&5
3811 $as_echo "yes" >&6; }
3812 else
3813 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3814 $as_echo "no, using $LN_S" >&6; }
3815 fi
3816
3817 case `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;} ;;
3821 esac
3822
3823
3824
3825 macro_version='2.2.6'
3826 macro_revision='1.3012'
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840 ltmain="$ac_aux_dir/ltmain.sh"
3841
3842 # Make sure we can run config.sub.
3843 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
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;}
3846 { (exit 1); exit 1; }; }
3847
3848 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3849 $as_echo_n "checking build system type... " >&6; }
3850 if test "${ac_cv_build+set}" = set; then
3851 $as_echo_n "(cached) " >&6
3852 else
3853 ac_build_alias=$build_alias
3854 test "x$ac_build_alias" = x &&
3855 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3856 test "x$ac_build_alias" = x &&
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;}
3859 { (exit 1); exit 1; }; }
3860 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
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;}
3863 { (exit 1); exit 1; }; }
3864
3865 fi
3866 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3867 $as_echo "$ac_cv_build" >&6; }
3868 case $ac_cv_build in
3869 *-*-*) ;;
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;}
3872 { (exit 1); exit 1; }; };;
3873 esac
3874 build=$ac_cv_build
3875 ac_save_IFS=$IFS; IFS='-'
3876 set x $ac_cv_build
3877 shift
3878 build_cpu=$1
3879 build_vendor=$2
3880 shift; shift
3881 # Remember, the first character of IFS is used to create $*,
3882 # except with old shells:
3883 build_os=$*
3884 IFS=$ac_save_IFS
3885 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3886
3887
3888 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3889 $as_echo_n "checking host system type... " >&6; }
3890 if test "${ac_cv_host+set}" = set; then
3891 $as_echo_n "(cached) " >&6
3892 else
3893 if test "x$host_alias" = x; then
3894 ac_cv_host=$ac_cv_build
3895 else
3896 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
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;}
3899 { (exit 1); exit 1; }; }
3900 fi
3901
3902 fi
3903 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3904 $as_echo "$ac_cv_host" >&6; }
3905 case $ac_cv_host in
3906 *-*-*) ;;
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;}
3909 { (exit 1); exit 1; }; };;
3910 esac
3911 host=$ac_cv_host
3912 ac_save_IFS=$IFS; IFS='-'
3913 set x $ac_cv_host
3914 shift
3915 host_cpu=$1
3916 host_vendor=$2
3917 shift; shift
3918 # Remember, the first character of IFS is used to create $*,
3919 # except with old shells:
3920 host_os=$*
3921 IFS=$ac_save_IFS
3922 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3923
3924
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; }
3927 if test "${ac_cv_path_SED+set}" = set; then
3928 $as_echo_n "(cached) " >&6
3929 else
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
3940 for as_dir in $PATH
3941 do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_prog in sed gsed; do
3945 for ac_exec_ext in '' $ac_executable_extensions; do
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
3950 case `"$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;;
3974 esac
3975
3976 $ac_path_SED_found && break 3
3977 done
3978 done
3979 done
3980 IFS=$as_save_IFS
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; }; }
3985 fi
3986 else
3987 ac_cv_path_SED=$SED
3988 fi
3989
3990 fi
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
3996 test -z "$SED" && SED=sed
3997 Xsed="$SED -e 1s/^X//"
3998
3999
4000
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; }
4011 if test "${ac_cv_path_GREP+set}" = set; then
4012 $as_echo_n "(cached) " >&6
4013 else
4014 if test -z "$GREP"; then
4015 ac_path_GREP_found=false
4016 # Loop through the user's path and test for each of PROGNAME-LIST
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4019 do
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_prog in grep ggrep; do
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.
4027 # Check for GNU $ac_path_GREP
4028 case `"$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
4033 $as_echo_n 0123456789 >"conftest.in"
4034 while :
4035 do
4036 cat "conftest.in" "conftest.in" >"conftest.tmp"
4037 mv "conftest.tmp" "conftest.in"
4038 cp "conftest.in" "conftest.nl"
4039 $as_echo 'GREP' >> "conftest.nl"
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;;
4052 esac
4053
4054 $ac_path_GREP_found && break 3
4055 done
4056 done
4057 done
4058 IFS=$as_save_IFS
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;}
4062 { (exit 1); exit 1; }; }
4063 fi
4064 else
4065 ac_cv_path_GREP=$GREP
4066 fi
4067
4068 fi
4069 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4070 $as_echo "$ac_cv_path_GREP" >&6; }
4071 GREP="$ac_cv_path_GREP"
4072
4073
4074 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4075 $as_echo_n "checking for egrep... " >&6; }
4076 if test "${ac_cv_path_EGREP+set}" = set; then
4077 $as_echo_n "(cached) " >&6
4078 else
4079 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4080 then ac_cv_path_EGREP="$GREP -E"
4081 else
4082 if test -z "$EGREP"; then
4083 ac_path_EGREP_found=false
4084 # Loop through the user's path and test for each of PROGNAME-LIST
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087 do
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_prog in egrep; do
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.
4095 # Check for GNU $ac_path_EGREP
4096 case `"$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
4101 $as_echo_n 0123456789 >"conftest.in"
4102 while :
4103 do
4104 cat "conftest.in" "conftest.in" >"conftest.tmp"
4105 mv "conftest.tmp" "conftest.in"
4106 cp "conftest.in" "conftest.nl"
4107 $as_echo 'EGREP' >> "conftest.nl"
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
4115 fi
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;;
4120 esac
4121
4122 $ac_path_EGREP_found && break 3
4123 done
4124 done
4125 done
4126 IFS=$as_save_IFS
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
4132 else
4133 ac_cv_path_EGREP=$EGREP
4134 fi
4135
4136 fi
4137 fi
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"
4141
4142
4143 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4144 $as_echo_n "checking for fgrep... " >&6; }
4145 if test "${ac_cv_path_FGREP+set}" = set; then
4146 $as_echo_n "(cached) " >&6
4147 else
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
4155 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156 do
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
4165 case `"$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;;
4189 esac
4190
4191 $ac_path_FGREP_found && break 3
4192 done
4193 done
4194 done
4195 IFS=$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
4201 else
4202 ac_cv_path_FGREP=$FGREP
4203 fi
4204
4205 fi
4206 fi
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
4212 test -z "$GREP" && GREP=grep
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232 # Check whether --with-gnu-ld was given.
4233 if test "${with_gnu_ld+set}" = set; then
4234 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4235 else
4236 with_gnu_ld=no
4237 fi
4238
4239 ac_prog=ld
4240 if test "$GCC" = yes; then
4241 # Check if gcc -print-prog-name=ld gives a path.
4242 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4243 $as_echo_n "checking for ld used by $CC... " >&6; }
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
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%/%"`
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
4271 elif test "$with_gnu_ld" = yes; then
4272 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4273 $as_echo_n "checking for GNU ld... " >&6; }
4274 else
4275 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4276 $as_echo_n "checking for non-GNU ld... " >&6; }
4277 fi
4278 if test "${lt_cv_path_LD+set}" = set; then
4279 $as_echo_n "(cached) " >&6
4280 else
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"
4302 else
4303 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4304 fi
4305 fi
4306
4307 LD="$lt_cv_path_LD"
4308 if test -n "$LD"; then
4309 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4310 $as_echo "$LD" >&6; }
4311 else
4312 { $as_echo "$as_me:$LINENO: result: no" >&5
4313 $as_echo "no" >&6; }
4314 fi
4315 test -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;}
4317 { (exit 1); exit 1; }; }
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; }
4320 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4321 $as_echo_n "(cached) " >&6
4322 else
4323 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4324 case `$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 ;;
4331 esac
4332 fi
4333 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4334 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4335 with_gnu_ld=$lt_cv_prog_gnu_ld
4336
4337
4338
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; }
4347 if test "${lt_cv_path_NM+set}" = set; then
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -n "$NM"; then
4351 # Let the user override the test.
4352 lt_cv_path_NM="$NM"
4353 else
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
4391 : ${lt_cv_path_NM=no}
4392 fi
4393 fi
4394 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4395 $as_echo "$lt_cv_path_NM" >&6; }
4396 if test "$lt_cv_path_NM" != "no"; then
4397 NM="$lt_cv_path_NM"
4398 else
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.
4404 set 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; }
4407 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -n "$DUMPBIN"; then
4411 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
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
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 fi
4429 fi
4430 DUMPBIN=$ac_cv_prog_DUMPBIN
4431 if test -n "$DUMPBIN"; then
4432 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4433 $as_echo "$DUMPBIN" >&6; }
4434 else
4435 { $as_echo "$as_me:$LINENO: result: no" >&5
4436 $as_echo "no" >&6; }
4437 fi
4438
4439
4440 test -n "$DUMPBIN" && break
4441 done
4442 fi
4443 if test -z "$DUMPBIN"; then
4444 ac_ct_DUMPBIN=$DUMPBIN
4445 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4446 do
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set 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; }
4451 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$ac_ct_DUMPBIN"; then
4455 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
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
4468 done
4469 done
4470 IFS=$as_save_IFS
4471
4472 fi
4473 fi
4474 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4475 if test -n "$ac_ct_DUMPBIN"; then
4476 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4477 $as_echo "$ac_ct_DUMPBIN" >&6; }
4478 else
4479 { $as_echo "$as_me:$LINENO: result: no" >&5
4480 $as_echo "no" >&6; }
4481 fi
4482
4483
4484 test -n "$ac_ct_DUMPBIN" && break
4485 done
4486
4487 if test "x$ac_ct_DUMPBIN" = x; then
4488 DUMPBIN=":"
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
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;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 DUMPBIN=$ac_ct_DUMPBIN
4497 fi
4498 fi
4499
4500
4501 if test "$DUMPBIN" != ":"; then
4502 NM="$DUMPBIN"
4503 fi
4504 fi
4505 test -z "$NM" && NM=nm
4506
4507
4508
4509
4510
4511
4512 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4513 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4514 if test "${lt_cv_nm_interface+set}" = set; then
4515 $as_echo_n "(cached) " >&6
4516 else
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"
4529 fi
4530 rm -f conftest*
4531 fi
4532 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4533 $as_echo "$lt_cv_nm_interface" >&6; }
4534
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; }
4538 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4539 $as_echo_n "(cached) " >&6
4540 else
4541 i=0
4542 teststring="ABCD"
4543
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 ;;
4552
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 ;;
4559
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 ;;
4570
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 ;;
4576
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`
4589 ;;
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
4594 ;;
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
4608 ;;
4609 sco3.2v5*)
4610 lt_cv_sys_max_cmd_len=102400
4611 ;;
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
4619 ;;
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
4650 ;;
4651 esac
4652
4653 fi
4654
4655 if 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; }
4658 else
4659 { $as_echo "$as_me:$LINENO: result: none" >&5
4660 $as_echo "none" >&6; }
4661 fi
4662 max_cmd_len=$lt_cv_sys_max_cmd_len
4663
4664
4665
4666
4667
4668
4669 : ${CP="cp -f"}
4670 : ${MV="mv -f"}
4671 : ${RM="rm -f"}
4672
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
4676 xsi_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; }
4685
4686
4687 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4688 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4689 lt_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
4697 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4698 lt_unset=unset
4699 else
4700 lt_unset=false
4701 fi
4702
4703
4704
4705
4706
4707 # test EBCDIC or ASCII
4708 case `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'
4713 ;;
4714 *) # EBCDIC based system
4715 lt_SP2NL='tr \100 \n'
4716 lt_NL2SP='tr \r\n \100\100'
4717 ;;
4718 esac
4719
4720
4721
4722
4723
4724
4725
4726
4727
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; }
4730 if test "${lt_cv_ld_reload_flag+set}" = set; then
4731 $as_echo_n "(cached) " >&6
4732 else
4733 lt_cv_ld_reload_flag='-r'
4734 fi
4735 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4736 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4737 reload_flag=$lt_cv_ld_reload_flag
4738 case $reload_flag in
4739 "" | " "*) ;;
4740 *) reload_flag=" $reload_flag" ;;
4741 esac
4742 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4743 case $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 ;;
4751 esac
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761 if 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.
4763 set 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; }
4766 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if test -n "$OBJDUMP"; then
4770 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4771 else
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
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
4783 done
4784 done
4785 IFS=$as_save_IFS
4786
4787 fi
4788 fi
4789 OBJDUMP=$ac_cv_prog_OBJDUMP
4790 if test -n "$OBJDUMP"; then
4791 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4792 $as_echo "$OBJDUMP" >&6; }
4793 else
4794 { $as_echo "$as_me:$LINENO: result: no" >&5
4795 $as_echo "no" >&6; }
4796 fi
4797
4798
4799 fi
4800 if 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.
4803 set 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; }
4806 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$ac_ct_OBJDUMP"; then
4810 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
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
4823 done
4824 done
4825 IFS=$as_save_IFS
4826
4827 fi
4828 fi
4829 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4830 if test -n "$ac_ct_OBJDUMP"; then
4831 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4832 $as_echo "$ac_ct_OBJDUMP" >&6; }
4833 else
4834 { $as_echo "$as_me:$LINENO: result: no" >&5
4835 $as_echo "no" >&6; }
4836 fi
4837
4838 if test "x$ac_ct_OBJDUMP" = x; then
4839 OBJDUMP="false"
4840 else
4841 case $cross_compiling:$ac_tool_warned in
4842 yes:)
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;}
4845 ac_tool_warned=yes ;;
4846 esac
4847 OBJDUMP=$ac_ct_OBJDUMP
4848 fi
4849 else
4850 OBJDUMP="$ac_cv_prog_OBJDUMP"
4851 fi
4852
4853 test -z "$OBJDUMP" && OBJDUMP=objdump
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4864 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4865 if test "${lt_cv_deplibs_check_method+set}" = set; then
4866 $as_echo_n "(cached) " >&6
4867 else
4868 lt_cv_file_magic_cmd='$MAGIC_CMD'
4869 lt_cv_file_magic_test_file=
4870 lt_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.
4881
4882 case $host_os in
4883 aix[4-9]*)
4884 lt_cv_deplibs_check_method=pass_all
4885 ;;
4886
4887 beos*)
4888 lt_cv_deplibs_check_method=pass_all
4889 ;;
4890
4891 bsdi[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 ;;
4896
4897 cygwin*)
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 ;;
4902
4903 mingw* | 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 ;;
4915
4916 cegcc)
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 ;;
4921
4922 darwin* | rhapsody*)
4923 lt_cv_deplibs_check_method=pass_all
4924 ;;
4925
4926 freebsd* | 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 ;;
4941
4942 gnu*)
4943 lt_cv_deplibs_check_method=pass_all
4944 ;;
4945
4946 hpux10.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 ;;
4963
4964 interix[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 ;;
4968
4969 irix5* | 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 ;;
4978
4979 # This must be Linux ELF.
4980 linux* | k*bsd*-gnu)
4981 lt_cv_deplibs_check_method=pass_all
4982 ;;
4983
4984 netbsd*)
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 ;;
4991
4992 newos6*)
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 ;;
4997
4998 *nto* | *qnx*)
4999 lt_cv_deplibs_check_method=pass_all
5000 ;;
5001
5002 openbsd*)
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 ;;
5009
5010 osf3* | osf4* | osf5*)
5011 lt_cv_deplibs_check_method=pass_all
5012 ;;
5013
5014 rdos*)
5015 lt_cv_deplibs_check_method=pass_all
5016 ;;
5017
5018 solaris*)
5019 lt_cv_deplibs_check_method=pass_all
5020 ;;
5021
5022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5023 lt_cv_deplibs_check_method=pass_all
5024 ;;
5025
5026 sysv4 | 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
5053 tpf*)
5054 lt_cv_deplibs_check_method=pass_all
5055 ;;
5056 esac
5057
5058 fi
5059 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5060 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5061 file_magic_cmd=$lt_cv_file_magic_cmd
5062 deplibs_check_method=$lt_cv_deplibs_check_method
5063 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 if 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.
5078 set 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; }
5081 if test "${ac_cv_prog_AR+set}" = set; then
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$AR"; then
5085 ac_cv_prog_AR="$AR" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5089 do
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
5098 done
5099 done
5100 IFS=$as_save_IFS
5101
5102 fi
5103 fi
5104 AR=$ac_cv_prog_AR
5105 if test -n "$AR"; then
5106 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5107 $as_echo "$AR" >&6; }
5108 else
5109 { $as_echo "$as_me:$LINENO: result: no" >&5
5110 $as_echo "no" >&6; }
5111 fi
5112
5113
5114 fi
5115 if 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.
5118 set 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; }
5121 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test -n "$ac_ct_AR"; then
5125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
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
5138 done
5139 done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5145 if test -n "$ac_ct_AR"; then
5146 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5147 $as_echo "$ac_ct_AR" >&6; }
5148 else
5149 { $as_echo "$as_me:$LINENO: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153 if test "x$ac_ct_AR" = x; then
5154 AR="false"
5155 else
5156 case $cross_compiling:$ac_tool_warned in
5157 yes:)
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;}
5160 ac_tool_warned=yes ;;
5161 esac
5162 AR=$ac_ct_AR
5163 fi
5164 else
5165 AR="$ac_cv_prog_AR"
5166 fi
5167
5168 test -z "$AR" && AR=ar
5169 test -z "$AR_FLAGS" && AR_FLAGS=cru
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181 if 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.
5183 set 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; }
5186 if test "${ac_cv_prog_STRIP+set}" = set; then
5187 $as_echo_n "(cached) " >&6
5188 else
5189 if test -n "$STRIP"; then
5190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203 done
5204 done
5205 IFS=$as_save_IFS
5206
5207 fi
5208 fi
5209 STRIP=$ac_cv_prog_STRIP
5210 if test -n "$STRIP"; then
5211 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5212 $as_echo "$STRIP" >&6; }
5213 else
5214 { $as_echo "$as_me:$LINENO: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218
5219 fi
5220 if 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.
5223 set 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; }
5226 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5227 $as_echo_n "(cached) " >&6
5228 else
5229 if test -n "$ac_ct_STRIP"; then
5230 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_ac_ct_STRIP="strip"
5240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5242 fi
5243 done
5244 done
5245 IFS=$as_save_IFS
5246
5247 fi
5248 fi
5249 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5250 if test -n "$ac_ct_STRIP"; then
5251 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5252 $as_echo "$ac_ct_STRIP" >&6; }
5253 else
5254 { $as_echo "$as_me:$LINENO: result: no" >&5
5255 $as_echo "no" >&6; }
5256 fi
5257
5258 if test "x$ac_ct_STRIP" = x; then
5259 STRIP=":"
5260 else
5261 case $cross_compiling:$ac_tool_warned in
5262 yes:)
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;}
5265 ac_tool_warned=yes ;;
5266 esac
5267 STRIP=$ac_ct_STRIP
5268 fi
5269 else
5270 STRIP="$ac_cv_prog_STRIP"
5271 fi
5272
5273 test -z "$STRIP" && STRIP=:
5274
5275
5276
5277
5278
5279
5280 if 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.
5282 set 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; }
5285 if test "${ac_cv_prog_RANLIB+set}" = set; then
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if test -n "$RANLIB"; then
5289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
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
5302 done
5303 done
5304 IFS=$as_save_IFS
5305
5306 fi
5307 fi
5308 RANLIB=$ac_cv_prog_RANLIB
5309 if test -n "$RANLIB"; then
5310 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5311 $as_echo "$RANLIB" >&6; }
5312 else
5313 { $as_echo "$as_me:$LINENO: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5316
5317
5318 fi
5319 if 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.
5322 set 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; }
5325 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5326 $as_echo_n "(cached) " >&6
5327 else
5328 if test -n "$ac_ct_RANLIB"; then
5329 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5330 else
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5333 do
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
5342 done
5343 done
5344 IFS=$as_save_IFS
5345
5346 fi
5347 fi
5348 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5349 if test -n "$ac_ct_RANLIB"; then
5350 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5351 $as_echo "$ac_ct_RANLIB" >&6; }
5352 else
5353 { $as_echo "$as_me:$LINENO: result: no" >&5
5354 $as_echo "no" >&6; }
5355 fi
5356
5357 if test "x$ac_ct_RANLIB" = x; then
5358 RANLIB=":"
5359 else
5360 case $cross_compiling:$ac_tool_warned in
5361 yes:)
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;}
5364 ac_tool_warned=yes ;;
5365 esac
5366 RANLIB=$ac_ct_RANLIB
5367 fi
5368 else
5369 RANLIB="$ac_cv_prog_RANLIB"
5370 fi
5371
5372 test -z "$RANLIB" && RANLIB=:
5373
5374
5375
5376
5377
5378
5379 # Determine commands to create old-style static archives.
5380 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5381 old_postinstall_cmds='chmod 644 $oldlib'
5382 old_postuninstall_cmds=
5383
5384 if 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"
5394 fi
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429 # If no C compiler was specified, use CC.
5430 LTCC=${LTCC-"$CC"}
5431
5432 # If no C compiler flags were specified, use CFLAGS.
5433 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5434
5435 # Allow CC to be a program name with arguments.
5436 compiler=$CC
5437
5438
5439 # Check for command to grab the raw symbol name followed by C symbol from nm.
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; }
5442 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5443 $as_echo_n "(cached) " >&6
5444 else
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.
5450 symcode='[BCDEGRST]'
5451
5452 # Regexp to match symbols that can be accessed directly from C.
5453 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5454
5455 # Define system-specific variables.
5456 case $host_os in
5457 aix*)
5458 symcode='[BCDT]'
5459 ;;
5460 cygwin* | mingw* | pw32* | cegcc*)
5461 symcode='[ABCDGISTW]'
5462 ;;
5463 hpux*)
5464 if test "$host_cpu" = ia64; then
5465 symcode='[ABCDEGRST]'
5466 fi
5467 ;;
5468 irix* | nonstopux*)
5469 symcode='[BCDEGRST]'
5470 ;;
5471 osf*)
5472 symcode='[BCDEGQRST]'
5473 ;;
5474 solaris*)
5475 symcode='[BDRT]'
5476 ;;
5477 sco3.2v5*)
5478 symcode='[DT]'
5479 ;;
5480 sysv4.2uw2*)
5481 symcode='[DT]'
5482 ;;
5483 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5484 symcode='[ABDT]'
5485 ;;
5486 sysv4)
5487 symcode='[DFNSTU]'
5488 ;;
5489 esac
5490
5491 # If we're using GNU nm, then use its standard symbol codes.
5492 case `$NM -V 2>&1` in
5493 *GNU* | *'with BFD'*)
5494 symcode='[ABCDGIRSTW]' ;;
5495 esac
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.
5500 lt_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
5503 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5504 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5505
5506 # Handle CRLF in mingw tool chain
5507 opt_cr=
5508 case $build_os in
5509 mingw*)
5510 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5511 ;;
5512 esac
5513
5514 # Try without a prefix underscore, then with it.
5515 for 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.
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
5540
5541 # Check to see that the pipe works correctly.
5542 pipe_works=no
5543
5544 rm -f conftest*
5545 cat > conftest.$ac_ext <<_LT_EOF
5546 #ifdef __cplusplus
5547 extern "C" {
5548 #endif
5549 char nm_test_var;
5550 void nm_test_func(void);
5551 void nm_test_func(void){}
5552 #ifdef __cplusplus
5553 }
5554 #endif
5555 int main(){nm_test_var='a';nm_test_func();return(0);}
5556 _LT_EOF
5557
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>&5
5560 ac_status=$?
5561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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=$?
5568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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.
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
5581 #ifdef __cplusplus
5582 extern "C" {
5583 #endif
5584
5585 _LT_EOF
5586 # Now generate the symbol file.
5587 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5588
5589 cat <<_LT_EOF >> conftest.$ac_ext
5590
5591 /* The mapping between symbol names and symbols. */
5592 const struct {
5593 const char *name;
5594 void *address;
5595 }
5596 lt__PROGRAM__LTX_preloaded_symbols[] =
5597 {
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}
5603 };
5604
5605 /* This works around a problem in FreeBSD linker */
5606 #ifdef FREEBSD_WORKAROUND
5607 static const void *lt_preloaded_setup() {
5608 return lt__PROGRAM__LTX_preloaded_symbols;
5609 }
5610 #endif
5611
5612 #ifdef __cplusplus
5613 }
5614 #endif
5615 _LT_EOF
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=$?
5625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
5644 rm -rf conftest* conftst*
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
5652 done
5653
5654 fi
5655
5656 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5657 lt_cv_sys_global_symbol_to_cdecl=
5658 fi
5659 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5660 { $as_echo "$as_me:$LINENO: result: failed" >&5
5661 $as_echo "failed" >&6; }
5662 else
5663 { $as_echo "$as_me:$LINENO: result: ok" >&5
5664 $as_echo "ok" >&6; }
5665 fi
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689 # Check whether --enable-libtool-lock was given.
5690 if test "${enable_libtool_lock+set}" = set; then
5691 enableval=$enable_libtool_lock;
5692 fi
5693
5694 test "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.
5698 case $host in
5699 ia64-*-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
5755 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5756 s390*-*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; }
5814 if test "${lt_cv_cc_needs_belf+set}" = set; then
5815 $as_echo_n "(cached) " >&6
5816 else
5817 ac_ext=c
5818 ac_cpp='$CPP $CPPFLAGS'
5819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5822
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829
5830 int
5831 main ()
5832 {
5833
5834 ;
5835 return 0;
5836 }
5837 _ACEOF
5838 rm -f conftest.$ac_objext conftest$ac_exeext
5839 if { (ac_try="$ac_link"
5840 case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843 esac
5844 eval 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
5860 else
5861 $as_echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 lt_cv_cc_needs_belf=no
5865 fi
5866
5867 rm -rf conftest.dSYM
5868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5869 conftest$ac_exeext conftest.$ac_ext
5870 ac_ext=c
5871 ac_cpp='$CPP $CPPFLAGS'
5872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5875
5876 fi
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 ;;
5884 sparc*-*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 ;;
5907 esac
5908
5909 need_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.
5916 set 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; }
5919 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$DSYMUTIL"; then
5923 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5943 if test -n "$DSYMUTIL"; then
5944 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5945 $as_echo "$DSYMUTIL" >&6; }
5946 else
5947 { $as_echo "$as_me:$LINENO: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951
5952 fi
5953 if 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.
5956 set 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; }
5959 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5960 $as_echo_n "(cached) " >&6
5961 else
5962 if test -n "$ac_ct_DSYMUTIL"; then
5963 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
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
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5983 if test -n "$ac_ct_DSYMUTIL"; then
5984 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5985 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5986 else
5987 { $as_echo "$as_me:$LINENO: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991 if test "x$ac_ct_DSYMUTIL" = x; then
5992 DSYMUTIL=":"
5993 else
5994 case $cross_compiling:$ac_tool_warned in
5995 yes:)
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;}
5998 ac_tool_warned=yes ;;
5999 esac
6000 DSYMUTIL=$ac_ct_DSYMUTIL
6001 fi
6002 else
6003 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6004 fi
6005
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.
6008 set 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; }
6011 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6012 $as_echo_n "(cached) " >&6
6013 else
6014 if test -n "$NMEDIT"; then
6015 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6024 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6027 fi
6028 done
6029 done
6030 IFS=$as_save_IFS
6031
6032 fi
6033 fi
6034 NMEDIT=$ac_cv_prog_NMEDIT
6035 if test -n "$NMEDIT"; then
6036 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6037 $as_echo "$NMEDIT" >&6; }
6038 else
6039 { $as_echo "$as_me:$LINENO: result: no" >&5
6040 $as_echo "no" >&6; }
6041 fi
6042
6043
6044 fi
6045 if 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.
6048 set 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; }
6051 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6052 $as_echo_n "(cached) " >&6
6053 else
6054 if test -n "$ac_ct_NMEDIT"; then
6055 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6065 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6075 if test -n "$ac_ct_NMEDIT"; then
6076 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6077 $as_echo "$ac_ct_NMEDIT" >&6; }
6078 else
6079 { $as_echo "$as_me:$LINENO: result: no" >&5
6080 $as_echo "no" >&6; }
6081 fi
6082
6083 if test "x$ac_ct_NMEDIT" = x; then
6084 NMEDIT=":"
6085 else
6086 case $cross_compiling:$ac_tool_warned in
6087 yes:)
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;}
6090 ac_tool_warned=yes ;;
6091 esac
6092 NMEDIT=$ac_ct_NMEDIT
6093 fi
6094 else
6095 NMEDIT="$ac_cv_prog_NMEDIT"
6096 fi
6097
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.
6100 set 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; }
6103 if test "${ac_cv_prog_LIPO+set}" = set; then
6104 $as_echo_n "(cached) " >&6
6105 else
6106 if test -n "$LIPO"; then
6107 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6108 else
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 for as_dir in $PATH
6111 do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6116 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6117 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120 done
6121 done
6122 IFS=$as_save_IFS
6123
6124 fi
6125 fi
6126 LIPO=$ac_cv_prog_LIPO
6127 if test -n "$LIPO"; then
6128 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6129 $as_echo "$LIPO" >&6; }
6130 else
6131 { $as_echo "$as_me:$LINENO: result: no" >&5
6132 $as_echo "no" >&6; }
6133 fi
6134
6135
6136 fi
6137 if 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.
6140 set 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; }
6143 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6144 $as_echo_n "(cached) " >&6
6145 else
6146 if test -n "$ac_ct_LIPO"; then
6147 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_ac_ct_LIPO="lipo"
6157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164 fi
6165 fi
6166 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6167 if test -n "$ac_ct_LIPO"; then
6168 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6169 $as_echo "$ac_ct_LIPO" >&6; }
6170 else
6171 { $as_echo "$as_me:$LINENO: result: no" >&5
6172 $as_echo "no" >&6; }
6173 fi
6174
6175 if test "x$ac_ct_LIPO" = x; then
6176 LIPO=":"
6177 else
6178 case $cross_compiling:$ac_tool_warned in
6179 yes:)
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;}
6182 ac_tool_warned=yes ;;
6183 esac
6184 LIPO=$ac_ct_LIPO
6185 fi
6186 else
6187 LIPO="$ac_cv_prog_LIPO"
6188 fi
6189
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.
6192 set 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; }
6195 if test "${ac_cv_prog_OTOOL+set}" = set; then
6196 $as_echo_n "(cached) " >&6
6197 else
6198 if test -n "$OTOOL"; then
6199 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
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
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 OTOOL=$ac_cv_prog_OTOOL
6219 if test -n "$OTOOL"; then
6220 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6221 $as_echo "$OTOOL" >&6; }
6222 else
6223 { $as_echo "$as_me:$LINENO: result: no" >&5
6224 $as_echo "no" >&6; }
6225 fi
6226
6227
6228 fi
6229 if 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.
6232 set 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; }
6235 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test -n "$ac_ct_OTOOL"; then
6239 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
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
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6259 if test -n "$ac_ct_OTOOL"; then
6260 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6261 $as_echo "$ac_ct_OTOOL" >&6; }
6262 else
6263 { $as_echo "$as_me:$LINENO: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267 if test "x$ac_ct_OTOOL" = x; then
6268 OTOOL=":"
6269 else
6270 case $cross_compiling:$ac_tool_warned in
6271 yes:)
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;}
6274 ac_tool_warned=yes ;;
6275 esac
6276 OTOOL=$ac_ct_OTOOL
6277 fi
6278 else
6279 OTOOL="$ac_cv_prog_OTOOL"
6280 fi
6281
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.
6284 set 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; }
6287 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6288 $as_echo_n "(cached) " >&6
6289 else
6290 if test -n "$OTOOL64"; then
6291 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
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
6304 done
6305 done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 OTOOL64=$ac_cv_prog_OTOOL64
6311 if test -n "$OTOOL64"; then
6312 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6313 $as_echo "$OTOOL64" >&6; }
6314 else
6315 { $as_echo "$as_me:$LINENO: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318
6319
6320 fi
6321 if 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.
6324 set 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; }
6327 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6328 $as_echo_n "(cached) " >&6
6329 else
6330 if test -n "$ac_ct_OTOOL64"; then
6331 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
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
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6351 if test -n "$ac_ct_OTOOL64"; then
6352 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6353 $as_echo "$ac_ct_OTOOL64" >&6; }
6354 else
6355 { $as_echo "$as_me:$LINENO: result: no" >&5
6356 $as_echo "no" >&6; }
6357 fi
6358
6359 if test "x$ac_ct_OTOOL64" = x; then
6360 OTOOL64=":"
6361 else
6362 case $cross_compiling:$ac_tool_warned in
6363 yes:)
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;}
6366 ac_tool_warned=yes ;;
6367 esac
6368 OTOOL64=$ac_ct_OTOOL64
6369 fi
6370 else
6371 OTOOL64="$ac_cv_prog_OTOOL64"
6372 fi
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
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; }
6402 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6403 $as_echo_n "(cached) " >&6
6404 else
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
6426 fi
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; }
6431 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6432 $as_echo_n "(cached) " >&6
6433 else
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
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444
6445 int
6446 main ()
6447 {
6448
6449 ;
6450 return 0;
6451 }
6452 _ACEOF
6453 rm -f conftest.$ac_objext conftest$ac_exeext
6454 if { (ac_try="$ac_link"
6455 case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458 esac
6459 eval 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
6475 else
6476 $as_echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6478
6479 lt_cv_ld_exported_symbols_list=no
6480 fi
6481
6482 rm -rf conftest.dSYM
6483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6484 conftest$ac_exeext conftest.$ac_ext
6485 LDFLAGS="$save_LDFLAGS"
6486
6487 fi
6488 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6489 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6490 case $host_os in
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
6524
6525 ac_ext=c
6526 ac_cpp='$CPP $CPPFLAGS'
6527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_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.
6533 if test -n "$CPP" && test -d "$CPP"; then
6534 CPP=
6535 fi
6536 if test -z "$CPP"; then
6537 if test "${ac_cv_prog_CPP+set}" = set; then
6538 $as_echo_n "(cached) " >&6
6539 else
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
6544 for ac_c_preproc_warn_flag in '' yes
6545 do
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
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>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
6565 if { (ac_try="$ac_cpp conftest.$ac_ext"
6566 case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569 esac
6570 eval 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 :
6583 else
6584 $as_echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6586
6587 # Broken: fails on valid input.
6588 continue
6589 fi
6590
6591 rm -f conftest.err conftest.$ac_ext
6592
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
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <ac_nonexistent.h>
6602 _ACEOF
6603 if { (ac_try="$ac_cpp conftest.$ac_ext"
6604 case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607 esac
6608 eval 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.
6621 continue
6622 else
6623 $as_echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 # Passes both tests.
6627 ac_preproc_ok=:
6628 break
6629 fi
6630
6631 rm -f conftest.err conftest.$ac_ext
6632
6633 done
6634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6635 rm -f conftest.err conftest.$ac_ext
6636 if $ac_preproc_ok; then
6637 break
6638 fi
6639
6640 done
6641 ac_cv_prog_CPP=$CPP
6642
6643 fi
6644 CPP=$ac_cv_prog_CPP
6645 else
6646 ac_cv_prog_CPP=$CPP
6647 fi
6648 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6649 $as_echo "$CPP" >&6; }
6650 ac_preproc_ok=false
6651 for ac_c_preproc_warn_flag in '' yes
6652 do
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
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>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
6672 if { (ac_try="$ac_cpp conftest.$ac_ext"
6673 case "(($ac_try" in
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6676 esac
6677 eval 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 :
6690 else
6691 $as_echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6693
6694 # Broken: fails on valid input.
6695 continue
6696 fi
6697
6698 rm -f conftest.err conftest.$ac_ext
6699
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
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 #include <ac_nonexistent.h>
6709 _ACEOF
6710 if { (ac_try="$ac_cpp conftest.$ac_ext"
6711 case "(($ac_try" in
6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 *) ac_try_echo=$ac_try;;
6714 esac
6715 eval 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.
6728 continue
6729 else
6730 $as_echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 # Passes both tests.
6734 ac_preproc_ok=:
6735 break
6736 fi
6737
6738 rm -f conftest.err conftest.$ac_ext
6739
6740 done
6741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6742 rm -f conftest.err conftest.$ac_ext
6743 if $ac_preproc_ok; then
6744 :
6745 else
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
6749 See \`config.log' for more details." >&5
6750 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6751 See \`config.log' for more details." >&2;}
6752 { (exit 1); exit 1; }; }; }
6753 fi
6754
6755 ac_ext=c
6756 ac_cpp='$CPP $CPPFLAGS'
6757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6760
6761
6762 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6763 $as_echo_n "checking for ANSI C header files... " >&6; }
6764 if test "${ac_cv_header_stdc+set}" = set; then
6765 $as_echo_n "(cached) " >&6
6766 else
6767 cat >conftest.$ac_ext <<_ACEOF
6768 /* confdefs.h. */
6769 _ACEOF
6770 cat confdefs.h >>conftest.$ac_ext
6771 cat >>conftest.$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 #include <stdlib.h>
6774 #include <stdarg.h>
6775 #include <string.h>
6776 #include <float.h>
6777
6778 int
6779 main ()
6780 {
6781
6782 ;
6783 return 0;
6784 }
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (ac_try="$ac_compile"
6788 case "(($ac_try" in
6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6791 esac
6792 eval 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
6805 else
6806 $as_echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6808
6809 ac_cv_header_stdc=no
6810 fi
6811
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813
6814 if 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
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6822 #include <string.h>
6823
6824 _ACEOF
6825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6826 $EGREP "memchr" >/dev/null 2>&1; then
6827 :
6828 else
6829 ac_cv_header_stdc=no
6830 fi
6831 rm -f conftest*
6832
6833 fi
6834
6835 if 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
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 #include <stdlib.h>
6844
6845 _ACEOF
6846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6847 $EGREP "free" >/dev/null 2>&1; then
6848 :
6849 else
6850 ac_cv_header_stdc=no
6851 fi
6852 rm -f conftest*
6853
6854 fi
6855
6856 if 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 :
6860 else
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>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
6879
6880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6881 int
6882 main ()
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
6892 rm -f conftest$ac_exeext
6893 if { (ac_try="$ac_link"
6894 case "(($ac_try" in
6895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896 *) ac_try_echo=$ac_try;;
6897 esac
6898 eval 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;;
6907 esac
6908 eval 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 :
6915 else
6916 $as_echo "$as_me: program exited with status $ac_status" >&5
6917 $as_echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.$ac_ext >&5
6919
6920 ( exit $ac_status )
6921 ac_cv_header_stdc=no
6922 fi
6923 rm -rf conftest.dSYM
6924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6925 fi
6926
6927
6928 fi
6929 fi
6930 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6931 $as_echo "$ac_cv_header_stdc" >&6; }
6932 if test $ac_cv_header_stdc = yes; then
6933
6934 cat >>confdefs.h <<\_ACEOF
6935 #define STDC_HEADERS 1
6936 _ACEOF
6937
6938 fi
6939
6940 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6951 inttypes.h stdint.h unistd.h
6952 do
6953 as_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; }
6956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6957 $as_echo_n "(cached) " >&6
6958 else
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6965 $ac_includes_default
6966
6967 #include <$ac_header>
6968 _ACEOF
6969 rm -f conftest.$ac_objext
6970 if { (ac_try="$ac_compile"
6971 case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974 esac
6975 eval 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"
6988 else
6989 $as_echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 eval "$as_ac_Header=no"
6993 fi
6994
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 fi
6997 ac_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; }
7001 as_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
7007
7008 fi
7009
7010 done
7011
7012
7013
7014 for ac_header in dlfcn.h
7015 do
7016 as_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; }
7019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7020 $as_echo_n "(cached) " >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 $ac_includes_default
7029
7030 #include <$ac_header>
7031 _ACEOF
7032 rm -f conftest.$ac_objext
7033 if { (ac_try="$ac_compile"
7034 case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037 esac
7038 eval 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"
7051 else
7052 $as_echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7054
7055 eval "$as_ac_Header=no"
7056 fi
7057
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059 fi
7060 ac_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; }
7064 as_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
7070
7071 fi
7072
7073 done
7074
7075
7076
7077 # Set options
7078
7079
7080
7081 enable_dlopen=no
7082
7083
7084 enable_win32_dll=no
7085
7086
7087 # Check whether --enable-shared was given.
7088 if 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 ;;
7093 *)
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"
7104 ;;
7105 esac
7106 else
7107 enable_shared=yes
7108 fi
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118 # Check whether --enable-static was given.
7119 if 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
7137 else
7138 enable_static=yes
7139 fi
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150 # Check whether --with-pic was given.
7151 if test "${with_pic+set}" = set; then
7152 withval=$with_pic; pic_mode="$withval"
7153 else
7154 pic_mode=default
7155 fi
7156
7157
7158 test -z "$pic_mode" && pic_mode=default
7159
7160
7161
7162
7163
7164
7165
7166 # Check whether --enable-fast-install was given.
7167 if 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"
7183 ;;
7184 esac
7185 else
7186 enable_fast_install=yes
7187 fi
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199 # This can be used to rebuild libtool when needed
7200 LIBTOOL_DEPS="$ltmain"
7201
7202 # Always use our own libtool.
7203 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229 test -z "$LN_S" && LN_S="ln -s"
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244 if test -n "${ZSH_VERSION+set}" ; then
7245 setopt NO_GLOB_SUBST
7246 fi
7247
7248 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7249 $as_echo_n "checking for objdir... " >&6; }
7250 if test "${lt_cv_objdir+set}" = set; then
7251 $as_echo_n "(cached) " >&6
7252 else
7253 rm -f .libs 2>/dev/null
7254 mkdir .libs 2>/dev/null
7255 if test -d .libs; then
7256 lt_cv_objdir=.libs
7257 else
7258 # MS-DOS does not allow filenames that begin with a dot.
7259 lt_cv_objdir=_libs
7260 fi
7261 rmdir .libs 2>/dev/null
7262 fi
7263 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7264 $as_echo "$lt_cv_objdir" >&6; }
7265 objdir=$lt_cv_objdir
7266
7267
7268
7269
7270
7271 cat >>confdefs.h <<_ACEOF
7272 #define LT_OBJDIR "$lt_cv_objdir/"
7273 _ACEOF
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291 case $host_os in
7292 aix3*)
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
7300 ;;
7301 esac
7302
7303 # Sed substitution that helps us do robust quoting. It backslashifies
7304 # metacharacters that are still active within double-quoted strings.
7305 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7306
7307 # Same as above, but do not quote variable references.
7308 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7309
7310 # Sed substitution to delay expansion of an escaped shell variable in a
7311 # double_quote_subst'ed string.
7312 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7313
7314 # Sed substitution to delay expansion of an escaped single quote.
7315 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7316
7317 # Sed substitution to avoid accidental globbing in evaled expressions
7318 no_glob_subst='s/\*/\\\*/g'
7319
7320 # Global variables:
7321 ofile=libtool
7322 can_build_shared=yes
7323
7324 # All known linkers require a `.a' archive for static linking (except MSVC,
7325 # which needs '.lib').
7326 libext=a
7327
7328 with_gnu_ld="$lt_cv_prog_gnu_ld"
7329
7330 old_CC="$CC"
7331 old_CFLAGS="$CFLAGS"
7332
7333 # Set sane defaults for various variables
7334 test -z "$CC" && CC=cc
7335 test -z "$LTCC" && LTCC=$CC
7336 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7337 test -z "$LD" && LD=ld
7338 test -z "$ac_objext" && ac_objext=o
7339
7340 for 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
7347 done
7348 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7349
7350
7351 # Only perform the check for file, if the check method requires it
7352 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7353 case $deplibs_check_method in
7354 file_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; }
7358 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7359 $as_echo_n "(cached) " >&6
7360 else
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
7384
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
7393
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 ;;
7404 esac
7405 fi
7406
7407 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7408 if test -n "$MAGIC_CMD"; then
7409 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7410 $as_echo "$MAGIC_CMD" >&6; }
7411 else
7412 { $as_echo "$as_me:$LINENO: result: no" >&5
7413 $as_echo "no" >&6; }
7414 fi
7415
7416
7417
7418
7419
7420 if 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; }
7424 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7425 $as_echo_n "(cached) " >&6
7426 else
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
7450
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
7459
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 ;;
7470 esac
7471 fi
7472
7473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7474 if test -n "$MAGIC_CMD"; then
7475 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7476 $as_echo "$MAGIC_CMD" >&6; }
7477 else
7478 { $as_echo "$as_me:$LINENO: result: no" >&5
7479 $as_echo "no" >&6; }
7480 fi
7481
7482
7483 else
7484 MAGIC_CMD=:
7485 fi
7486 fi
7487
7488 fi
7489 ;;
7490 esac
7491
7492 # Use C for the default configuration in the libtool script
7493
7494 lt_save_CC="$CC"
7495 ac_ext=c
7496 ac_cpp='$CPP $CPPFLAGS'
7497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500
7501
7502 # Source file extension for C test sources.
7503 ac_ext=c
7504
7505 # Object file extension for compiled C test sources.
7506 objext=o
7507 objext=$objext
7508
7509 # Code to be used in simple compile tests
7510 lt_simple_compile_test_code="int some_variable = 0;"
7511
7512 # Code to be used in simple link tests
7513 lt_simple_link_test_code='int main(){return(0);}'
7514
7515
7516
7517
7518
7519
7520
7521 # If no C compiler was specified, use CC.
7522 LTCC=${LTCC-"$CC"}
7523
7524 # If no C compiler flags were specified, use CFLAGS.
7525 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7526
7527 # Allow CC to be a program name with arguments.
7528 compiler=$CC
7529
7530 # Save the default compiler, since it gets overwritten when the other
7531 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7532 compiler_DEFAULT=$CC
7533
7534 # save warnings/boilerplate of simple test code
7535 ac_outfile=conftest.$ac_objext
7536 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7537 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7538 _lt_compiler_boilerplate=`cat conftest.err`
7539 $RM conftest*
7540
7541 ac_outfile=conftest.$ac_objext
7542 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7543 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7544 _lt_linker_boilerplate=`cat conftest.err`
7545 $RM -r conftest*
7546
7547
7548 if test -n "$compiler"; then
7549
7550 lt_prog_compiler_no_builtin_flag=
7551
7552 if test "$GCC" = yes; then
7553 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7554
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; }
7557 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7558 $as_echo_n "(cached) " >&6
7559 else
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*
7588
7589 fi
7590 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7591 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7592
7593 if 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"
7595 else
7596 :
7597 fi
7598
7599 fi
7600
7601
7602
7603
7604
7605
7606 lt_prog_compiler_wl=
7607 lt_prog_compiler_pic=
7608 lt_prog_compiler_static=
7609
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; }
7612
7613 if test "$GCC" = yes; then
7614 lt_prog_compiler_wl='-Wl,'
7615 lt_prog_compiler_static='-static'
7616
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 ;;
7625
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 ;;
7640
7641 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7642 # PIC is the default for these OSes.
7643 ;;
7644
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 ;;
7652
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 ;;
7658
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 ;;
7672
7673 interix[3-9]*)
7674 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7675 # Instead, we relocate shared libraries at runtime.
7676 ;;
7677
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 ;;
7684
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 ;;
7690
7691 sysv4*MP*)
7692 if test -d /usr/nec; then
7693 lt_prog_compiler_pic=-Kconform_pic
7694 fi
7695 ;;
7696
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 ;;
7713
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 ;;
7719
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 ;;
7735
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 ;;
7741
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 ;;
7799
7800 newsos6)
7801 lt_prog_compiler_pic='-KPIC'
7802 lt_prog_compiler_static='-Bstatic'
7803 ;;
7804
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 ;;
7810
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 ;;
7816
7817 rdos*)
7818 lt_prog_compiler_static='-non_shared'
7819 ;;
7820
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 ;;
7831
7832 sunos4*)
7833 lt_prog_compiler_wl='-Qoption ld '
7834 lt_prog_compiler_pic='-PIC'
7835 lt_prog_compiler_static='-Bstatic'
7836 ;;
7837
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 ;;
7843
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 ;;
7850
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 ;;
7856
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'
7865 ;;
7866
7867 *)
7868 lt_prog_compiler_can_build_shared=no
7869 ;;
7870 esac
7871 fi
7872
7873 case $host_os in
7874 # For platforms which do not support PIC, -DPIC is meaningless:
7875 *djgpp*)
7876 lt_prog_compiler_pic=
7877 ;;
7878 *)
7879 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7880 ;;
7881 esac
7882 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7883 $as_echo "$lt_prog_compiler_pic" >&6; }
7884
7885
7886
7887
7888
7889
7890 #
7891 # Check to make sure the PIC flag actually works.
7892 #
7893 if 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; }
7896 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7897 $as_echo_n "(cached) " >&6
7898 else
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*
7927
7928 fi
7929 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7930 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7931
7932 if 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
7937 else
7938 lt_prog_compiler_pic=
7939 lt_prog_compiler_can_build_shared=no
7940 fi
7941
7942 fi
7943
7944
7945
7946
7947
7948
7949 #
7950 # Check to make sure the static flag actually works.
7951 #
7952 wl=$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; }
7955 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7956 $as_echo_n "(cached) " >&6
7957 else
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"
7979
7980 fi
7981 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7982 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7983
7984 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7985 :
7986 else
7987 lt_prog_compiler_static=
7988 fi
7989
7990
7991
7992
7993
7994
7995
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; }
7998 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7999 $as_echo_n "(cached) " >&6
8000 else
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
8007
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*
8041
8042 fi
8043 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8044 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8045
8046
8047
8048
8049
8050
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; }
8053 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8054 $as_echo_n "(cached) " >&6
8055 else
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
8062
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*
8096
8097 fi
8098 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8099 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8100
8101
8102
8103
8104 hard_links="nottested"
8105 if 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
8122 else
8123 need_locks=no
8124 fi
8125
8126
8127
8128
8129
8130
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; }
8133
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=
8174
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
8192
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}'
8197
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
8218
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
8226
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.
8232
8233 _LT_EOF
8234 fi
8235 ;;
8236
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 ;;
8251
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 ;;
8262
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'
8271
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 ;;
8287
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 ;;
8302
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'
8345
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
8352
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 ;;
8372
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 ;;
8382
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
8387
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.
8394
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 ;;
8403
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
8409
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.
8416
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 ;;
8434
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 ;;
8441
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
8451
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 ;;
8474
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
8491
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
8504
8505 exp_sym_flag='-bexport'
8506 no_entry_flag='-bnoentry'
8507 fi
8508
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.
8514
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,'
8521
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
8562
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
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8579
8580 int
8581 main ()
8582 {
8583
8584 ;
8585 return 0;
8586 }
8587 _ACEOF
8588 rm -f conftest.$ac_objext conftest$ac_exeext
8589 if { (ac_try="$ac_link"
8590 case "(($ac_try" in
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8593 esac
8594 eval 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
8609
8610 lt_aix_libpath_sed='
8611 /Import File Strings/,/^$/ {
8612 /^0/ {
8613 s/^0 *\(.*\)$/\1/
8614 p
8615 }
8616 }'
8617 aix_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.
8619 if test -z "$aix_libpath"; then
8620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8621 fi
8622 else
8623 $as_echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626
8627 fi
8628
8629 rm -rf conftest.dSYM
8630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8631 conftest$ac_exeext conftest.$ac_ext
8632 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8633
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
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8650
8651 int
8652 main ()
8653 {
8654
8655 ;
8656 return 0;
8657 }
8658 _ACEOF
8659 rm -f conftest.$ac_objext conftest$ac_exeext
8660 if { (ac_try="$ac_link"
8661 case "(($ac_try" in
8662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663 *) ac_try_echo=$ac_try;;
8664 esac
8665 eval 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
8680
8681 lt_aix_libpath_sed='
8682 /Import File Strings/,/^$/ {
8683 /^0/ {
8684 s/^0 *\(.*\)$/\1/
8685 p
8686 }
8687 }'
8688 aix_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.
8690 if test -z "$aix_libpath"; then
8691 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8692 fi
8693 else
8694 $as_echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8696
8697
8698 fi
8699
8700 rm -rf conftest.dSYM
8701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8702 conftest$ac_exeext conftest.$ac_ext
8703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8704
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 ;;
8718
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 ;;
8733
8734 bsdi[45]*)
8735 export_dynamic_flag_spec=-rdynamic
8736 ;;
8737
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 ;;
8758
8759 darwin* | rhapsody*)
8760
8761
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 ;;
8772 esac
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}"
8779
8780 else
8781 ld_shlibs=no
8782 fi
8783
8784 ;;
8785
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 ;;
8791
8792 freebsd1*)
8793 ld_shlibs=no
8794 ;;
8795
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 ;;
8806
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 ;;
8814
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 ;;
8822
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
8832
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 ;;
8838
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 ;;
8857
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
8871 else
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
8883 fi
8884 if test "$with_gnu_ld" = no; then
8885 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8886 hardcode_libdir_separator=:
8887
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'
8897
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 ;;
8905
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
8915 int foo(void) {}
8916 _ACEOF
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (ac_try="$ac_link"
8919 case "(($ac_try" in
8920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8922 esac
8923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8924 $as_echo "$ac_try_echo") >&5
8925 (eval "$ac_link") 2>conftest.er1
8926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && {
8932 test -z "$ac_c_werror_flag" ||
8933 test ! -s conftest.err
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'
8939
8940 else
8941 $as_echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8943
8944
8945 fi
8946
8947 rm -rf conftest.dSYM
8948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8949 conftest$ac_exeext conftest.$ac_ext
8950 LDFLAGS="$save_LDFLAGS"
8951 else
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 ;;
8961
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
8967 fi
8968 hardcode_libdir_flag_spec='-R$libdir'
8969 hardcode_direct=yes
8970 hardcode_shlibpath_var=no
8971 ;;
8972
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 ;;
8980
8981 *nto* | *qnx*)
8982 ;;
8983
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
9006 else
9007 ld_shlibs=no
9008 fi
9009 ;;
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'
9017 ;;
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'
9023 else
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'
9026 fi
9027 archive_cmds_need_lc='no'
9028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029 hardcode_libdir_separator=:
9030 ;;
9031
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=:
9048 ;;
9049
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'
9064 ;;
9065 *)
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'
9070 ;;
9071 esac
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].*) ;;
9077 *)
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'
9084 else
9085 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9086 fi
9087 ;;
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???
9111 ;;
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
9118 ;;
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 ;;
9133
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
9138 runpath_var=LD_RUN_PATH
9139 hardcode_runpath_var=yes
9140 ld_shlibs=yes
9141 fi
9142 ;;
9143
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'
9149
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 ;;
9158
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'
9175
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 ;;
9184
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 ;;
9190
9191 *)
9192 ld_shlibs=no
9193 ;;
9194 esac
9195
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
9204
9205 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9206 $as_echo "$ld_shlibs" >&6; }
9207 test "$ld_shlibs" = no && can_build_shared=no
9208
9209 with_gnu_ld=$with_gnu_ld
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225 #
9226 # Do we need to explicitly link libc?
9227 #
9228 case "x$archive_cmds_need_lc" in
9229 x|xyes)
9230 # Assume -lc should be added
9231 archive_cmds_need_lc=yes
9232
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.
9237 ;;
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
9246
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; }
9282 ;;
9283 esac
9284 fi
9285 ;;
9286 esac
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
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
9447 if 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 '
9475 BEGIN {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`
9495 else
9496 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9497 fi
9498 library_names_spec=
9499 libname_spec='lib$name'
9500 soname_spec=
9501 shrext_cmds=".so"
9502 postinstall_cmds=
9503 postuninstall_cmds=
9504 finish_cmds=
9505 finish_eval=
9506 shlibpath_var=
9507 shlibpath_overrides_runpath=unknown
9508 version_type=none
9509 dynamic_linker="$host_os ld.so"
9510 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9511 need_lib_prefix=unknown
9512 hardcode_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
9516 need_version=unknown
9517
9518 case $host_os in
9519 aix3*)
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
9528 aix[4-9]*)
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 '
9547 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
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
9572 amigaos*)
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
9585 ;;
9586
9587 beos*)
9588 library_names_spec='${libname}${shared_ext}'
9589 dynamic_linker="$host_os ld.so"
9590 shlibpath_var=LIBRARY_PATH
9591 ;;
9592
9593 bsdi[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
9607 cygwin* | mingw* | pw32* | cegcc*)
9608 version_type=windows
9609 shrext_cmds=".dll"
9610 need_version=no
9611 need_lib_prefix=no
9612
9613 case $GCC,$host_os in
9614 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9615 library_names_spec='$libname.dll.a'
9616 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9617 postinstall_cmds='base_file=`basename \${file}`~
9618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9619 dldir=$destdir/`dirname \$dlpath`~
9620 test -d \$dldir || mkdir -p \$dldir~
9621 $install_prog $dir/$dlname \$dldir/$dlname~
9622 chmod a+x \$dldir/$dlname~
9623 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9624 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9625 fi'
9626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9627 dlpath=$dir/\$dldll~
9628 $RM \$dlpath'
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 ;;
9637 mingw* | cegcc*)
9638 # MinGW DLLs use traditional 'lib' prefix
9639 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
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
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.
9648 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9649 else
9650 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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
9669 darwin* | rhapsody*)
9670 dynamic_linker="$host_os dyld"
9671 version_type=darwin
9672 need_lib_prefix=no
9673 need_version=no
9674 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
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`'
9679
9680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9682 ;;
9683
9684 dgux*)
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
9693 freebsd1*)
9694 dynamic_linker=no
9695 ;;
9696
9697 freebsd* | 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 ;;
9734 *) # from 4.6 on, and DragonFly
9735 shlibpath_overrides_runpath=yes
9736 hardcode_into_libs=yes
9737 ;;
9738 esac
9739 ;;
9740
9741 gnu*)
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
9751 hpux9* | 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 ;;
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 *)
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
9797 interix[3-9]*)
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
9809 irix5* | 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.
9847 linux*oldld* | linux*aout* | linux*coff*)
9848 dynamic_linker=no
9849 ;;
9850
9851 # This must be Linux ELF.
9852 linux* | k*bsd*-gnu)
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
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
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872
9873 int
9874 main ()
9875 {
9876
9877 ;
9878 return 0;
9879 }
9880 _ACEOF
9881 rm -f conftest.$ac_objext conftest$ac_exeext
9882 if { (ac_try="$ac_link"
9883 case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9886 esac
9887 eval 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
9904 fi
9905
9906 else
9907 $as_echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9909
9910
9911 fi
9912
9913 rm -rf conftest.dSYM
9914 rm -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
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
9923
9924 # Add ABI-specific directories to the system library path.
9925 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9926
9927 # Append ld.so.conf contents to the search path
9928 if test -f /etc/ld.so.conf; then
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' ' '`
9930 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
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
9942 netbsd*)
9943 version_type=sunos
9944 need_lib_prefix=no
9945 need_version=no
9946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
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
9960 newsos6)
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
9967 *nto* | *qnx*)
9968 version_type=qnx
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
9974 shlibpath_overrides_runpath=no
9975 hardcode_into_libs=yes
9976 dynamic_linker='ldqnx.so'
9977 ;;
9978
9979 openbsd*)
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
9985 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9986 *) need_version=no ;;
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
9991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
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
10005 os2*)
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
10014 osf3* | 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
10025 rdos*)
10026 dynamic_linker=no
10027 ;;
10028
10029 solaris*)
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
10042 sunos4*)
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
10054 sysv4 | 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
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
10077 sysv4*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
10086 sysv5* | 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
10093 shlibpath_overrides_runpath=yes
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'
10097 else
10098 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
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
10108 tpf*)
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
10119 uts4*)
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 ;;
10129 esac
10130 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10131 $as_echo "$dynamic_linker" >&6; }
10132 test "$dynamic_linker" = no && can_build_shared=no
10133
10134 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10135 if test "$GCC" = yes; then
10136 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10137 fi
10138
10139 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10140 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10141 fi
10142 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10143 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10144 fi
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
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; }
10234 hardcode_action=
10235 if test -n "$hardcode_libdir_flag_spec" ||
10236 test -n "$runpath_var" ||
10237 test "X$hardcode_automatic" = "Xyes" ; then
10238
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
10252 else
10253 # We cannot hardcode anything, or else we can only hardcode existing
10254 # directories.
10255 hardcode_action=unsupported
10256 fi
10257 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10258 $as_echo "$hardcode_action" >&6; }
10259
10260 if test "$hardcode_action" = relink ||
10261 test "$inherit_rpath" = yes; then
10262 # Fast installation is not supported
10263 enable_fast_install=no
10264 elif test "$shlibpath_overrides_runpath" = yes ||
10265 test "$enable_shared" = no; then
10266 # Fast installation is not necessary
10267 enable_fast_install=needless
10268 fi
10269
10270
10271
10272
10273
10274
10275 if test "x$enable_dlopen" != xyes; then
10276 enable_dlopen=unknown
10277 enable_dlopen_self=unknown
10278 enable_dlopen_self_static=unknown
10279 else
10280 lt_cv_dlopen=no
10281 lt_cv_dlopen_libs=
10282
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 ;;
10289
10290 mingw* | pw32* | cegcc*)
10291 lt_cv_dlopen="LoadLibrary"
10292 lt_cv_dlopen_libs=
10293 ;;
10294
10295 cygwin*)
10296 lt_cv_dlopen="dlopen"
10297 lt_cv_dlopen_libs=
10298 ;;
10299
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; }
10304 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10305 $as_echo_n "(cached) " >&6
10306 else
10307 ac_check_lib_save_LIBS=$LIBS
10308 LIBS="-ldl $LIBS"
10309 cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h. */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315
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
10320 extern "C"
10321 #endif
10322 char dlopen ();
10323 int
10324 main ()
10325 {
10326 return dlopen ();
10327 ;
10328 return 0;
10329 }
10330 _ACEOF
10331 rm -f conftest.$ac_objext conftest$ac_exeext
10332 if { (ac_try="$ac_link"
10333 case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10336 esac
10337 eval 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
10353 else
10354 $as_echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 ac_cv_lib_dl_dlopen=no
10358 fi
10359
10360 rm -rf conftest.dSYM
10361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10362 conftest$ac_exeext conftest.$ac_ext
10363 LIBS=$ac_check_lib_save_LIBS
10364 fi
10365 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10366 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10367 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10369 else
10370
10371 lt_cv_dlopen="dyld"
10372 lt_cv_dlopen_libs=
10373 lt_cv_dlopen_self=yes
10374
10375 fi
10376
10377 ;;
10378
10379 *)
10380 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10381 $as_echo_n "checking for shl_load... " >&6; }
10382 if test "${ac_cv_func_shl_load+set}" = set; then
10383 $as_echo_n "(cached) " >&6
10384 else
10385 cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h. */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>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
10394
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. */
10399
10400 #ifdef __STDC__
10401 # include <limits.h>
10402 #else
10403 # include <assert.h>
10404 #endif
10405
10406 #undef shl_load
10407
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
10412 extern "C"
10413 #endif
10414 char 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
10419 choke me
10420 #endif
10421
10422 int
10423 main ()
10424 {
10425 return shl_load ();
10426 ;
10427 return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext conftest$ac_exeext
10431 if { (ac_try="$ac_link"
10432 case "(($ac_try" in
10433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434 *) ac_try_echo=$ac_try;;
10435 esac
10436 eval 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
10452 else
10453 $as_echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10455
10456 ac_cv_func_shl_load=no
10457 fi
10458
10459 rm -rf conftest.dSYM
10460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10461 conftest$ac_exeext conftest.$ac_ext
10462 fi
10463 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10464 $as_echo "$ac_cv_func_shl_load" >&6; }
10465 if test "x$ac_cv_func_shl_load" = x""yes; then
10466 lt_cv_dlopen="shl_load"
10467 else
10468 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10469 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10470 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10471 $as_echo_n "(cached) " >&6
10472 else
10473 ac_check_lib_save_LIBS=$LIBS
10474 LIBS="-ldld $LIBS"
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h. */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481
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
10486 extern "C"
10487 #endif
10488 char shl_load ();
10489 int
10490 main ()
10491 {
10492 return shl_load ();
10493 ;
10494 return 0;
10495 }
10496 _ACEOF
10497 rm -f conftest.$ac_objext conftest$ac_exeext
10498 if { (ac_try="$ac_link"
10499 case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502 esac
10503 eval 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
10519 else
10520 $as_echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10522
10523 ac_cv_lib_dld_shl_load=no
10524 fi
10525
10526 rm -rf conftest.dSYM
10527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10528 conftest$ac_exeext conftest.$ac_ext
10529 LIBS=$ac_check_lib_save_LIBS
10530 fi
10531 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10532 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10533 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10534 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10535 else
10536 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10537 $as_echo_n "checking for dlopen... " >&6; }
10538 if test "${ac_cv_func_dlopen+set}" = set; then
10539 $as_echo_n "(cached) " >&6
10540 else
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h. */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>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
10550
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. */
10555
10556 #ifdef __STDC__
10557 # include <limits.h>
10558 #else
10559 # include <assert.h>
10560 #endif
10561
10562 #undef dlopen
10563
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
10568 extern "C"
10569 #endif
10570 char 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
10575 choke me
10576 #endif
10577
10578 int
10579 main ()
10580 {
10581 return dlopen ();
10582 ;
10583 return 0;
10584 }
10585 _ACEOF
10586 rm -f conftest.$ac_objext conftest$ac_exeext
10587 if { (ac_try="$ac_link"
10588 case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591 esac
10592 eval 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
10608 else
10609 $as_echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10611
10612 ac_cv_func_dlopen=no
10613 fi
10614
10615 rm -rf conftest.dSYM
10616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10617 conftest$ac_exeext conftest.$ac_ext
10618 fi
10619 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10620 $as_echo "$ac_cv_func_dlopen" >&6; }
10621 if test "x$ac_cv_func_dlopen" = x""yes; then
10622 lt_cv_dlopen="dlopen"
10623 else
10624 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10625 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10626 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10627 $as_echo_n "(cached) " >&6
10628 else
10629 ac_check_lib_save_LIBS=$LIBS
10630 LIBS="-ldl $LIBS"
10631 cat >conftest.$ac_ext <<_ACEOF
10632 /* confdefs.h. */
10633 _ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h. */
10637
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
10642 extern "C"
10643 #endif
10644 char dlopen ();
10645 int
10646 main ()
10647 {
10648 return dlopen ();
10649 ;
10650 return 0;
10651 }
10652 _ACEOF
10653 rm -f conftest.$ac_objext conftest$ac_exeext
10654 if { (ac_try="$ac_link"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658 esac
10659 eval 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
10675 else
10676 $as_echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 ac_cv_lib_dl_dlopen=no
10680 fi
10681
10682 rm -rf conftest.dSYM
10683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS=$ac_check_lib_save_LIBS
10686 fi
10687 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10688 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10689 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10691 else
10692 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10693 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10694 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10695 $as_echo_n "(cached) " >&6
10696 else
10697 ac_check_lib_save_LIBS=$LIBS
10698 LIBS="-lsvld $LIBS"
10699 cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h. */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705
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
10710 extern "C"
10711 #endif
10712 char dlopen ();
10713 int
10714 main ()
10715 {
10716 return dlopen ();
10717 ;
10718 return 0;
10719 }
10720 _ACEOF
10721 rm -f conftest.$ac_objext conftest$ac_exeext
10722 if { (ac_try="$ac_link"
10723 case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10726 esac
10727 eval 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
10743 else
10744 $as_echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10746
10747 ac_cv_lib_svld_dlopen=no
10748 fi
10749
10750 rm -rf conftest.dSYM
10751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10752 conftest$ac_exeext conftest.$ac_ext
10753 LIBS=$ac_check_lib_save_LIBS
10754 fi
10755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10756 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10757 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10759 else
10760 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10761 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10762 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10763 $as_echo_n "(cached) " >&6
10764 else
10765 ac_check_lib_save_LIBS=$LIBS
10766 LIBS="-ldld $LIBS"
10767 cat >conftest.$ac_ext <<_ACEOF
10768 /* confdefs.h. */
10769 _ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10773
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
10778 extern "C"
10779 #endif
10780 char dld_link ();
10781 int
10782 main ()
10783 {
10784 return dld_link ();
10785 ;
10786 return 0;
10787 }
10788 _ACEOF
10789 rm -f conftest.$ac_objext conftest$ac_exeext
10790 if { (ac_try="$ac_link"
10791 case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10794 esac
10795 eval 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
10811 else
10812 $as_echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815 ac_cv_lib_dld_dld_link=no
10816 fi
10817
10818 rm -rf conftest.dSYM
10819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10820 conftest$ac_exeext conftest.$ac_ext
10821 LIBS=$ac_check_lib_save_LIBS
10822 fi
10823 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10824 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10825 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10826 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10827 fi
10828
10829
10830 fi
10831
10832
10833 fi
10834
10835
10836 fi
10837
10838
10839 fi
10840
10841
10842 fi
10843
10844 ;;
10845 esac
10846
10847 if test "x$lt_cv_dlopen" != xno; then
10848 enable_dlopen=yes
10849 else
10850 enable_dlopen=no
10851 fi
10852
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"
10857
10858 save_LDFLAGS="$LDFLAGS"
10859 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10860
10861 save_LIBS="$LIBS"
10862 LIBS="$lt_cv_dlopen_libs $LIBS"
10863
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; }
10866 if test "${lt_cv_dlopen_self+set}" = set; then
10867 $as_echo_n "(cached) " >&6
10868 else
10869 if test "$cross_compiling" = yes; then :
10870 lt_cv_dlopen_self=cross
10871 else
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"
10877
10878 #if HAVE_DLFCN_H
10879 #include <dlfcn.h>
10880 #endif
10881
10882 #include <stdio.h>
10883
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
10893
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
10915
10916 void fnord() { int i=42;}
10917 int 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 ());
10930
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
10950 fi
10951 rm -fr conftest*
10952
10953
10954 fi
10955 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10956 $as_echo "$lt_cv_dlopen_self" >&6; }
10957
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; }
10962 if test "${lt_cv_dlopen_self_static+set}" = set; then
10963 $as_echo_n "(cached) " >&6
10964 else
10965 if test "$cross_compiling" = yes; then :
10966 lt_cv_dlopen_self_static=cross
10967 else
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"
10973
10974 #if HAVE_DLFCN_H
10975 #include <dlfcn.h>
10976 #endif
10977
10978 #include <stdio.h>
10979
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
10989
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
11012 void fnord() { int i=42;}
11013 int 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 ;;
11041 esac
11042 else :
11043 # compilation failed
11044 lt_cv_dlopen_self_static=no
11045 fi
11046 fi
11047 rm -fr conftest*
11048
11049
11050 fi
11051 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11052 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11053 fi
11054
11055 CPPFLAGS="$save_CPPFLAGS"
11056 LDFLAGS="$save_LDFLAGS"
11057 LIBS="$save_LIBS"
11058 ;;
11059 esac
11060
11061 case $lt_cv_dlopen_self in
11062 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11063 *) enable_dlopen_self=unknown ;;
11064 esac
11065
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
11070 fi
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088 striplib=
11089 old_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; }
11092 if 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; }
11097 else
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; }
11109 fi
11110 ;;
11111 *)
11112 { $as_echo "$as_me:$LINENO: result: no" >&5
11113 $as_echo "no" >&6; }
11114 ;;
11115 esac
11116 fi
11117
11118
11119
11120
11121
11122
11123
11124
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
11169 fi
11170 ac_ext=c
11171 ac_cpp='$CPP $CPPFLAGS'
11172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11175
11176 CC="$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
11207 for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h
11208 do
11209 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11210 if { 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; }
11213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11214 $as_echo_n "(cached) " >&6
11215 fi
11216 ac_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; }
11220 else
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; }
11224 cat >conftest.$ac_ext <<_ACEOF
11225 /* confdefs.h. */
11226 _ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11230 $ac_includes_default
11231 #include <$ac_header>
11232 _ACEOF
11233 rm -f conftest.$ac_objext
11234 if { (ac_try="$ac_compile"
11235 case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11238 esac
11239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11240 $as_echo "$ac_try_echo") >&5
11241 (eval "$ac_compile") 2>conftest.er1
11242 ac_status=$?
11243 grep -v '^ *+' conftest.er1 >conftest.err
11244 rm -f conftest.er1
11245 cat conftest.err >&5
11246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } && {
11248 test -z "$ac_c_werror_flag" ||
11249 test ! -s conftest.err
11250 } && test -s conftest.$ac_objext; then
11251 ac_header_compiler=yes
11252 else
11253 $as_echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11255
11256 ac_header_compiler=no
11257 fi
11258
11259 rm -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; }
11262
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; }
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 #include <$ac_header>
11273 _ACEOF
11274 if { (ac_try="$ac_cpp conftest.$ac_ext"
11275 case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11278 esac
11279 eval 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
11282 ac_status=$?
11283 grep -v '^ *+' conftest.er1 >conftest.err
11284 rm -f conftest.er1
11285 cat conftest.err >&5
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" ||
11289 test ! -s conftest.err
11290 }; then
11291 ac_header_preproc=yes
11292 else
11293 $as_echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 ac_header_preproc=no
11297 fi
11298
11299 rm -f conftest.err conftest.$ac_ext
11300 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11301 $as_echo "$ac_header_preproc" >&6; }
11302
11303 # So? What about this header?
11304 case $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 ;;
11332 esac
11333 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11334 $as_echo_n "checking for $ac_header... " >&6; }
11335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11336 $as_echo_n "(cached) " >&6
11337 else
11338 eval "$as_ac_Header=\$ac_header_preproc"
11339 fi
11340 ac_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; }
11344
11345 fi
11346 as_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
11352
11353 fi
11354
11355 done
11356
11357 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11358 $as_echo_n "checking for ANSI C header files... " >&6; }
11359 if test "${ac_cv_header_stdc+set}" = set; then
11360 $as_echo_n "(cached) " >&6
11361 else
11362 cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h. */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 #include <stdlib.h>
11369 #include <stdarg.h>
11370 #include <string.h>
11371 #include <float.h>
11372
11373 int
11374 main ()
11375 {
11376
11377 ;
11378 return 0;
11379 }
11380 _ACEOF
11381 rm -f conftest.$ac_objext
11382 if { (ac_try="$ac_compile"
11383 case "(($ac_try" in
11384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385 *) ac_try_echo=$ac_try;;
11386 esac
11387 eval 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
11400 else
11401 $as_echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11403
11404 ac_cv_header_stdc=no
11405 fi
11406
11407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408
11409 if 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
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 #include <string.h>
11418
11419 _ACEOF
11420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11421 $EGREP "memchr" >/dev/null 2>&1; then
11422 :
11423 else
11424 ac_cv_header_stdc=no
11425 fi
11426 rm -f conftest*
11427
11428 fi
11429
11430 if 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
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 #include <stdlib.h>
11439
11440 _ACEOF
11441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11442 $EGREP "free" >/dev/null 2>&1; then
11443 :
11444 else
11445 ac_cv_header_stdc=no
11446 fi
11447 rm -f conftest*
11448
11449 fi
11450
11451 if 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 :
11455 else
11456 cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h. */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>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
11474
11475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11476 int
11477 main ()
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
11487 rm -f conftest$ac_exeext
11488 if { (ac_try="$ac_link"
11489 case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492 esac
11493 eval 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;;
11502 esac
11503 eval 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 :
11510 else
11511 $as_echo "$as_me: program exited with status $ac_status" >&5
11512 $as_echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11514
11515 ( exit $ac_status )
11516 ac_cv_header_stdc=no
11517 fi
11518 rm -rf conftest.dSYM
11519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11520 fi
11521
11522
11523 fi
11524 fi
11525 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11526 $as_echo "$ac_cv_header_stdc" >&6; }
11527 if test $ac_cv_header_stdc = yes; then
11528
11529 cat >>confdefs.h <<\_ACEOF
11530 #define STDC_HEADERS 1
11531 _ACEOF
11532
11533 fi
11534
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; }
11537 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11538 $as_echo_n "(cached) " >&6
11539 else
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h. */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>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
11554
11555 int
11556 main ()
11557 {
11558 int s;
11559 wait (&s);
11560 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11561 ;
11562 return 0;
11563 }
11564 _ACEOF
11565 rm -f conftest.$ac_objext
11566 if { (ac_try="$ac_compile"
11567 case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11570 esac
11571 eval 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
11584 else
11585 $as_echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588 ac_cv_header_sys_wait_h=no
11589 fi
11590
11591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11592 fi
11593 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11594 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11595 if test $ac_cv_header_sys_wait_h = yes; then
11596
11597 cat >>confdefs.h <<\_ACEOF
11598 #define HAVE_SYS_WAIT_H 1
11599 _ACEOF
11600
11601 fi
11602
11603
11604
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; }
11607 if test "${ac_cv_c_const+set}" = set; then
11608 $as_echo_n "(cached) " >&6
11609 else
11610 cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h. */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h. */
11616
11617 int
11618 main ()
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;
11644
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
11669
11670 ;
11671 return 0;
11672 }
11673 _ACEOF
11674 rm -f conftest.$ac_objext
11675 if { (ac_try="$ac_compile"
11676 case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679 esac
11680 eval 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
11693 else
11694 $as_echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11696
11697 ac_cv_c_const=no
11698 fi
11699
11700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11701 fi
11702 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11703 $as_echo "$ac_cv_c_const" >&6; }
11704 if test $ac_cv_c_const = no; then
11705
11706 cat >>confdefs.h <<\_ACEOF
11707 #define const /**/
11708 _ACEOF
11709
11710 fi
11711
11712 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11713 $as_echo_n "checking for off_t... " >&6; }
11714 if test "${ac_cv_type_off_t+set}" = set; then
11715 $as_echo_n "(cached) " >&6
11716 else
11717 ac_cv_type_off_t=no
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h. */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 $ac_includes_default
11725 int
11726 main ()
11727 {
11728 if (sizeof (off_t))
11729 return 0;
11730 ;
11731 return 0;
11732 }
11733 _ACEOF
11734 rm -f conftest.$ac_objext
11735 if { (ac_try="$ac_compile"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739 esac
11740 eval 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
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 $ac_includes_default
11759 int
11760 main ()
11761 {
11762 if (sizeof ((off_t)))
11763 return 0;
11764 ;
11765 return 0;
11766 }
11767 _ACEOF
11768 rm -f conftest.$ac_objext
11769 if { (ac_try="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773 esac
11774 eval 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 :
11787 else
11788 $as_echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11790
11791 ac_cv_type_off_t=yes
11792 fi
11793
11794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795 else
11796 $as_echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11798
11799
11800 fi
11801
11802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803 fi
11804 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11805 $as_echo "$ac_cv_type_off_t" >&6; }
11806 if test "x$ac_cv_type_off_t" = x""yes; then
11807 :
11808 else
11809
11810 cat >>confdefs.h <<_ACEOF
11811 #define off_t long int
11812 _ACEOF
11813
11814 fi
11815
11816 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11817 $as_echo_n "checking for pid_t... " >&6; }
11818 if test "${ac_cv_type_pid_t+set}" = set; then
11819 $as_echo_n "(cached) " >&6
11820 else
11821 ac_cv_type_pid_t=no
11822 cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h. */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 $ac_includes_default
11829 int
11830 main ()
11831 {
11832 if (sizeof (pid_t))
11833 return 0;
11834 ;
11835 return 0;
11836 }
11837 _ACEOF
11838 rm -f conftest.$ac_objext
11839 if { (ac_try="$ac_compile"
11840 case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843 esac
11844 eval 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
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11862 $ac_includes_default
11863 int
11864 main ()
11865 {
11866 if (sizeof ((pid_t)))
11867 return 0;
11868 ;
11869 return 0;
11870 }
11871 _ACEOF
11872 rm -f conftest.$ac_objext
11873 if { (ac_try="$ac_compile"
11874 case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11877 esac
11878 eval 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 :
11891 else
11892 $as_echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11894
11895 ac_cv_type_pid_t=yes
11896 fi
11897
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 else
11900 $as_echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903
11904 fi
11905
11906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11907 fi
11908 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11909 $as_echo "$ac_cv_type_pid_t" >&6; }
11910 if test "x$ac_cv_type_pid_t" = x""yes; then
11911 :
11912 else
11913
11914 cat >>confdefs.h <<_ACEOF
11915 #define pid_t int
11916 _ACEOF
11917
11918 fi
11919
11920 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11921 $as_echo_n "checking return type of signal handlers... " >&6; }
11922 if test "${ac_cv_type_signal+set}" = set; then
11923 $as_echo_n "(cached) " >&6
11924 else
11925 cat >conftest.$ac_ext <<_ACEOF
11926 /* confdefs.h. */
11927 _ACEOF
11928 cat confdefs.h >>conftest.$ac_ext
11929 cat >>conftest.$ac_ext <<_ACEOF
11930 /* end confdefs.h. */
11931 #include <sys/types.h>
11932 #include <signal.h>
11933
11934 int
11935 main ()
11936 {
11937 return *(signal (0, 0)) (0) == 1;
11938 ;
11939 return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext
11943 if { (ac_try="$ac_compile"
11944 case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947 esac
11948 eval 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
11961 else
11962 $as_echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965 ac_cv_type_signal=void
11966 fi
11967
11968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969 fi
11970 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11971 $as_echo "$ac_cv_type_signal" >&6; }
11972
11973 cat >>confdefs.h <<_ACEOF
11974 #define RETSIGTYPE $ac_cv_type_signal
11975 _ACEOF
11976
11977
11978
11979 { $as_echo "$as_me:$LINENO: checking for off64_t" >&5
11980 $as_echo_n "checking for off64_t... " >&6; }
11981 if test "${liblock_cv_hasoff64t+set}" = set; then
11982 $as_echo_n "(cached) " >&6
11983 else
11984 liblock_cv_hasoff64t="no"
11985 cat >conftest.$ac_ext <<_ACEOF
11986 /* confdefs.h. */
11987 _ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h. */
11991
11992 #include <sys/types.h>
11993
11994 int
11995 main ()
11996 {
11997
11998 off64_t n;
11999
12000 n=0;
12001
12002 ;
12003 return 0;
12004 }
12005 _ACEOF
12006 rm -f conftest.$ac_objext
12007 if { (ac_try="$ac_compile"
12008 case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011 esac
12012 eval 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"
12025 else
12026 $as_echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12028
12029
12030 fi
12031
12032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033
12034
12035 fi
12036 { $as_echo "$as_me:$LINENO: result: $liblock_cv_hasoff64t" >&5
12037 $as_echo "$liblock_cv_hasoff64t" >&6; }
12038
12039 if test "$liblock_cv_hasoff64t" = "yes"
12040 then
12041 LL_OFFSET_TYPE=off64_t
12042 else
12043 LL_OFFSET_TYPE=off_t
12044 fi
12045
12046 cat >>confdefs.h <<_ACEOF
12047 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12048 _ACEOF
12049
12050
12051 { $as_echo "$as_me:$LINENO: checking for flock_t" >&5
12052 $as_echo_n "checking for flock_t... " >&6; }
12053 if test "${liblock_cv_hasflock_t+set}" = set; then
12054 $as_echo_n "(cached) " >&6
12055 else
12056 liblock_cv_hasflock_t="no"
12057 cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h. */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063
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
12074
12075 int
12076 main ()
12077 {
12078
12079 flock_t t;
12080
12081 ;
12082 return 0;
12083 }
12084 _ACEOF
12085 rm -f conftest.$ac_objext
12086 if { (ac_try="$ac_compile"
12087 case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12090 esac
12091 eval 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"
12104 else
12105 $as_echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108
12109 fi
12110
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112 fi
12113 { $as_echo "$as_me:$LINENO: result: $liblock_cv_hasflock_t" >&5
12114 $as_echo "$liblock_cv_hasflock_t" >&6; }
12115
12116 if test "$liblock_cv_hasflock_t" = "yes"
12117 then
12118
12119 cat >>confdefs.h <<_ACEOF
12120 #define HAS_FLOCK_T 1
12121 _ACEOF
12122
12123 fi
12124
12125
12126
12127
12128
12129 for ac_func in getdtablesize setpgrp sysconf
12130 do
12131 as_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; }
12134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12135 $as_echo_n "(cached) " >&6
12136 else
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h. */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>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
12146
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. */
12151
12152 #ifdef __STDC__
12153 # include <limits.h>
12154 #else
12155 # include <assert.h>
12156 #endif
12157
12158 #undef $ac_func
12159
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
12164 extern "C"
12165 #endif
12166 char $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
12171 choke me
12172 #endif
12173
12174 int
12175 main ()
12176 {
12177 return $ac_func ();
12178 ;
12179 return 0;
12180 }
12181 _ACEOF
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (ac_try="$ac_link"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187 esac
12188 eval 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"
12204 else
12205 $as_echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12207
12208 eval "$as_ac_var=no"
12209 fi
12210
12211 rm -rf conftest.dSYM
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213 conftest$ac_exeext conftest.$ac_ext
12214 fi
12215 ac_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; }
12219 as_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
12225
12226 fi
12227 done
12228
12229 { $as_echo "$as_me:$LINENO: checking for setpgrp" >&5
12230 $as_echo_n "checking for setpgrp... " >&6; }
12231 if test "${ac_cv_func_setpgrp+set}" = set; then
12232 $as_echo_n "(cached) " >&6
12233 else
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h. */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>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
12243
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. */
12248
12249 #ifdef __STDC__
12250 # include <limits.h>
12251 #else
12252 # include <assert.h>
12253 #endif
12254
12255 #undef setpgrp
12256
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
12261 extern "C"
12262 #endif
12263 char 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
12268 choke me
12269 #endif
12270
12271 int
12272 main ()
12273 {
12274 return setpgrp ();
12275 ;
12276 return 0;
12277 }
12278 _ACEOF
12279 rm -f conftest.$ac_objext conftest$ac_exeext
12280 if { (ac_try="$ac_link"
12281 case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284 esac
12285 eval 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
12301 else
12302 $as_echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 ac_cv_func_setpgrp=no
12306 fi
12307
12308 rm -rf conftest.dSYM
12309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12310 conftest$ac_exeext conftest.$ac_ext
12311 fi
12312 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
12313 $as_echo "$ac_cv_func_setpgrp" >&6; }
12314 if test "x$ac_cv_func_setpgrp" = x""yes; then
12315
12316 { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
12317 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12318 if test "${ac_cv_func_setpgrp_void+set}" = set; then
12319 $as_echo_n "(cached) " >&6
12320 else
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; }; }
12325 else
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 $ac_includes_default
12333 int
12334 main ()
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
12344 rm -f conftest$ac_exeext
12345 if { (ac_try="$ac_link"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12349 esac
12350 eval 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;;
12359 esac
12360 eval 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
12367 else
12368 $as_echo "$as_me: program exited with status $ac_status" >&5
12369 $as_echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12371
12372 ( exit $ac_status )
12373 ac_cv_func_setpgrp_void=yes
12374 fi
12375 rm -rf conftest.dSYM
12376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12377 fi
12378
12379
12380 fi
12381 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
12382 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12383 if test $ac_cv_func_setpgrp_void = yes; then
12384
12385 cat >>confdefs.h <<\_ACEOF
12386 #define SETPGRP_VOID 1
12387 _ACEOF
12388
12389 fi
12390
12391
12392
12393 fi
12394
12395
12396 { $as_echo "$as_me:$LINENO: checking for fcntl" >&5
12397 $as_echo_n "checking for fcntl... " >&6; }
12398 if test "${liblock_cv_hasfcntl+set}" = set; then
12399 $as_echo_n "(cached) " >&6
12400 else
12401 liblock_cv_hasfcntl="no"
12402 cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h. */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408
12409 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12410 #include "${srcdir}/lockfcntl.c"
12411
12412 int
12413 main ()
12414 {
12415
12416 int n;
12417
12418 ;
12419 return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427 esac
12428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12429 $as_echo "$ac_try_echo") >&5
12430 (eval "$ac_link") 2>conftest.er1
12431 ac_status=$?
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
12435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
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"
12444 else
12445 $as_echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448
12449 fi
12450
12451 rm -rf conftest.dSYM
12452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12453 conftest$ac_exeext conftest.$ac_ext
12454 fi
12455 { $as_echo "$as_me:$LINENO: result: $liblock_cv_hasfcntl" >&5
12456 $as_echo "$liblock_cv_hasfcntl" >&6; }
12457 if test "$liblock_cv_hasfcntl" = "yes"
12458 then
12459
12460 cat >>confdefs.h <<_ACEOF
12461 #define HAS_FCNTL 1
12462 _ACEOF
12463
12464 fi
12465
12466 { $as_echo "$as_me:$LINENO: checking for flock" >&5
12467 $as_echo_n "checking for flock... " >&6; }
12468 if test "${liblock_cv_hasflock+set}" = set; then
12469 $as_echo_n "(cached) " >&6
12470 else
12471 liblock_cv_hasflock="no"
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478
12479 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12480 #include "${srcdir}/lockflock.c"
12481
12482 int
12483 main ()
12484 {
12485
12486 int n;
12487
12488 ;
12489 return 0;
12490 }
12491 _ACEOF
12492 rm -f conftest.$ac_objext conftest$ac_exeext
12493 if { (ac_try="$ac_link"
12494 case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12497 esac
12498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12499 $as_echo "$ac_try_echo") >&5
12500 (eval "$ac_link") 2>conftest.er1
12501 ac_status=$?
12502 grep -v '^ *+' conftest.er1 >conftest.err
12503 rm -f conftest.er1
12504 cat conftest.err >&5
12505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } && {
12507 test -z "$ac_c_werror_flag" ||
12508 test ! -s conftest.err
12509 } && test -s conftest$ac_exeext && {
12510 test "$cross_compiling" = yes ||
12511 $as_test_x conftest$ac_exeext
12512 }; then
12513 liblock_cv_hasflock="yes"
12514 else
12515 $as_echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12517
12518
12519 fi
12520
12521 rm -rf conftest.dSYM
12522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12523 conftest$ac_exeext conftest.$ac_ext
12524 fi
12525 { $as_echo "$as_me:$LINENO: result: $liblock_cv_hasflock" >&5
12526 $as_echo "$liblock_cv_hasflock" >&6; }
12527 if test "$liblock_cv_hasflock" = "yes"
12528 then
12529
12530 cat >>confdefs.h <<_ACEOF
12531 #define HAS_FLOCK 1
12532 _ACEOF
12533
12534 fi
12535
12536 { $as_echo "$as_me:$LINENO: checking for lockf" >&5
12537 $as_echo_n "checking for lockf... " >&6; }
12538 if test "${liblock_cv_haslockf+set}" = set; then
12539 $as_echo_n "(cached) " >&6
12540 else
12541 liblock_cv_haslockf="no"
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h. */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548
12549 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12550 #include "${srcdir}/locklockf.c"
12551
12552 int
12553 main ()
12554 {
12555
12556 int n;
12557
12558 ;
12559 return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563 if { (ac_try="$ac_link"
12564 case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567 esac
12568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12569 $as_echo "$ac_try_echo") >&5
12570 (eval "$ac_link") 2>conftest.er1
12571 ac_status=$?
12572 grep -v '^ *+' conftest.er1 >conftest.err
12573 rm -f conftest.er1
12574 cat conftest.err >&5
12575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } && {
12577 test -z "$ac_c_werror_flag" ||
12578 test ! -s conftest.err
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"
12584 else
12585 $as_echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12587
12588
12589 fi
12590
12591 rm -rf conftest.dSYM
12592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12593 conftest$ac_exeext conftest.$ac_ext
12594 fi
12595 { $as_echo "$as_me:$LINENO: result: $liblock_cv_haslockf" >&5
12596 $as_echo "$liblock_cv_haslockf" >&6; }
12597 if test "$liblock_cv_haslockf" = "yes"
12598 then
12599
12600 cat >>confdefs.h <<_ACEOF
12601 #define HAS_LOCKF 1
12602 _ACEOF
12603
12604 fi
12605
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.
12610 if test "${with_locking_method+set}" = set; then
12611 withval=$with_locking_method; lockmethod="$withval"
12612 else
12613 lockmethod=""
12614 fi
12615
12616
12617 case x$lockmethod in
12618 xfcntl)
12619 if test "$cross_compiling" = yes; then
12620 :
12621
12622 else
12623 cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h. */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12629
12630 #define USE_FCNTL 1
12631 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12632 #include "${srcdir}/locktest.c"
12633
12634 _ACEOF
12635 rm -f conftest$ac_exeext
12636 if { (ac_try="$ac_link"
12637 case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640 esac
12641 eval 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;;
12650 esac
12651 eval 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
12657 :
12658 else
12659 $as_echo "$as_me: program exited with status $ac_status" >&5
12660 $as_echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
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; }; }
12667 fi
12668 rm -rf conftest.dSYM
12669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12670 fi
12671
12672
12673 ;;
12674 x)
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; }; }
12679 else
12680 cat >conftest.$ac_ext <<_ACEOF
12681 /* confdefs.h. */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12686
12687 #define USE_FCNTL 1
12688 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12689 #include "${srcdir}/locktest.c"
12690
12691 _ACEOF
12692 rm -f conftest$ac_exeext
12693 if { (ac_try="$ac_link"
12694 case "(($ac_try" in
12695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12697 esac
12698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12699 $as_echo "$ac_try_echo") >&5
12700 (eval "$ac_link") 2>&5
12701 ac_status=$?
12702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12704 { (case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12707 esac
12708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12709 $as_echo "$ac_try_echo") >&5
12710 (eval "$ac_try") 2>&5
12711 ac_status=$?
12712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 lockmethod=fcntl
12715 else
12716 $as_echo "$as_me: program exited with status $ac_status" >&5
12717 $as_echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720 fi
12721 rm -rf conftest.dSYM
12722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12723 fi
12724
12725
12726 ;;
12727 esac
12728
12729 case x$lockmethod in
12730 xlockf)
12731 if test "$cross_compiling" = yes; then
12732 :
12733
12734 else
12735 cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h. */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12741
12742 #define USE_LOCKF 1
12743 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12744 #include "${srcdir}/locktest.c"
12745
12746 _ACEOF
12747 rm -f conftest$ac_exeext
12748 if { (ac_try="$ac_link"
12749 case "(($ac_try" in
12750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12751 *) ac_try_echo=$ac_try;;
12752 esac
12753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12754 $as_echo "$ac_try_echo") >&5
12755 (eval "$ac_link") 2>&5
12756 ac_status=$?
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;;
12762 esac
12763 eval 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 :
12770 else
12771 $as_echo "$as_me: program exited with status $ac_status" >&5
12772 $as_echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12774
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; }; }
12779 fi
12780 rm -rf conftest.dSYM
12781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12782 fi
12783
12784
12785 ;;
12786 x)
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; }; }
12791 else
12792 cat >conftest.$ac_ext <<_ACEOF
12793 /* confdefs.h. */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798
12799 #define USE_LOCKF 1
12800 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12801 #include "${srcdir}/locktest.c"
12802
12803 _ACEOF
12804 rm -f conftest$ac_exeext
12805 if { (ac_try="$ac_link"
12806 case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12809 esac
12810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12811 $as_echo "$ac_try_echo") >&5
12812 (eval "$ac_link") 2>&5
12813 ac_status=$?
12814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12816 { (case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819 esac
12820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12821 $as_echo "$ac_try_echo") >&5
12822 (eval "$ac_try") 2>&5
12823 ac_status=$?
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 lockmethod=lockf
12827 else
12828 $as_echo "$as_me: program exited with status $ac_status" >&5
12829 $as_echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12831
12832 fi
12833 rm -rf conftest.dSYM
12834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12835 fi
12836
12837
12838 ;;
12839 esac
12840
12841
12842 case x$lockmethod in
12843 xflock)
12844 if test "$cross_compiling" = yes; then
12845 :
12846
12847 else
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h. */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854
12855 #define USE_FLOCK 1
12856 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12857 #include "${srcdir}/locktest.c"
12858
12859 _ACEOF
12860 rm -f conftest$ac_exeext
12861 if { (ac_try="$ac_link"
12862 case "(($ac_try" in
12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864 *) ac_try_echo=$ac_try;;
12865 esac
12866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12867 $as_echo "$ac_try_echo") >&5
12868 (eval "$ac_link") 2>&5
12869 ac_status=$?
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;;
12875 esac
12876 eval 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 :
12883 else
12884 $as_echo "$as_me: program exited with status $ac_status" >&5
12885 $as_echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12887
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; }; }
12892 fi
12893 rm -rf conftest.dSYM
12894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12895 fi
12896
12897
12898 ;;
12899 x)
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; }; }
12904 else
12905 cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h. */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12911
12912 #define USE_FLOCK 1
12913 #define LL_OFFSET_TYPE $LL_OFFSET_TYPE
12914 #include "${srcdir}/locktest.c"
12915
12916 _ACEOF
12917 rm -f conftest$ac_exeext
12918 if { (ac_try="$ac_link"
12919 case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12922 esac
12923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12924 $as_echo "$ac_try_echo") >&5
12925 (eval "$ac_link") 2>&5
12926 ac_status=$?
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;;
12932 esac
12933 eval 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
12940 else
12941 $as_echo "$as_me: program exited with status $ac_status" >&5
12942 $as_echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12944
12945 fi
12946 rm -rf conftest.dSYM
12947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12948 fi
12949
12950
12951 ;;
12952 esac
12953
12954 case x$lockmethod in
12955 xlockf)
12956 ;;
12957 xflock)
12958 ;;
12959 xfcntl)
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 ;;
12966 esac
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='#'
12974 else
12975 USE_FCNTL_TRUE='#'
12976 USE_FCNTL_FALSE=
12977 fi
12978
12979 if test "$lockmethod" = "flock"; then
12980 USE_FLOCK_TRUE=
12981 USE_FLOCK_FALSE='#'
12982 else
12983 USE_FLOCK_TRUE='#'
12984 USE_FLOCK_FALSE=
12985 fi
12986
12987 if test "$lockmethod" = "lockf"; then
12988 USE_LOCKF_TRUE=
12989 USE_LOCKF_FALSE='#'
12990 else
12991 USE_LOCKF_TRUE='#'
12992 USE_LOCKF_FALSE=
12993 fi
12994
12995
12996 if test -d ${srcdir}/../docbook; then
12997 HAVE_SGML_TRUE=
12998 HAVE_SGML_FALSE='#'
12999 else
13000 HAVE_SGML_TRUE='#'
13001 HAVE_SGML_FALSE=
13002 fi
13003
13004
13005
13006 cat >>confdefs.h <<_ACEOF
13007 #define liblock_config_h 1
13008 _ACEOF
13009
13010
13011 ac_config_files="$ac_config_files Makefile"
13012
13013 cat >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
13027 _ACEOF
13028
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
13075 if 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
13085 fi
13086 rm -f confcache
13087
13088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13089 # Let make expand exec_prefix.
13090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13091
13092 DEFS=-DHAVE_CONFIG_H
13093
13094 ac_libobjs=
13095 ac_ltlibobjs=
13096 for 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'
13104 done
13105 LIBOBJS=$ac_libobjs
13106
13107 LTLIBOBJS=$ac_ltlibobjs
13108
13109
13110 if test -n "$EXEEXT"; then
13111 am__EXEEXT_TRUE=
13112 am__EXEEXT_FALSE='#'
13113 else
13114 am__EXEEXT_TRUE='#'
13115 am__EXEEXT_FALSE=
13116 fi
13117
13118 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13119 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13120 Usually this means the macro was only invoked conditionally." >&5
13121 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13122 Usually this means the macro was only invoked conditionally." >&2;}
13123 { (exit 1); exit 1; }; }
13124 fi
13125 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13126 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13127 Usually this means the macro was only invoked conditionally." >&5
13128 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13129 Usually this means the macro was only invoked conditionally." >&2;}
13130 { (exit 1); exit 1; }; }
13131 fi
13132 if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then
13133 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_FCNTL\" was never defined.
13134 Usually this means the macro was only invoked conditionally." >&5
13135 $as_echo "$as_me: error: conditional \"USE_FCNTL\" was never defined.
13136 Usually this means the macro was only invoked conditionally." >&2;}
13137 { (exit 1); exit 1; }; }
13138 fi
13139 if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then
13140 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_FLOCK\" was never defined.
13141 Usually this means the macro was only invoked conditionally." >&5
13142 $as_echo "$as_me: error: conditional \"USE_FLOCK\" was never defined.
13143 Usually this means the macro was only invoked conditionally." >&2;}
13144 { (exit 1); exit 1; }; }
13145 fi
13146 if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then
13147 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LOCKF\" was never defined.
13148 Usually this means the macro was only invoked conditionally." >&5
13149 $as_echo "$as_me: error: conditional \"USE_LOCKF\" was never defined.
13150 Usually this means the macro was only invoked conditionally." >&2;}
13151 { (exit 1); exit 1; }; }
13152 fi
13153 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
13154 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
13155 Usually this means the macro was only invoked conditionally." >&5
13156 $as_echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
13157 Usually this means the macro was only invoked conditionally." >&2;}
13158 { (exit 1); exit 1; }; }
13159 fi
13160
13161 : ${CONFIG_STATUS=./config.status}
13162 ac_write_fail=0
13163 ac_clean_files_save=$ac_clean_files
13164 ac_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;}
13167 cat >$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
13174 debug=false
13175 ac_cs_recheck=false
13176 ac_cs_silent=false
13177 SHELL=\${CONFIG_SHELL-$SHELL}
13178 _ACEOF
13179
13180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13181 ## --------------------- ##
13182 ## M4sh Initialization. ##
13183 ## --------------------- ##
13184
13185 # Be more Bourne compatible
13186 DUALCASE=1; export DUALCASE # for MKS sh
13187 if 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
13194 else
13195 case `(set -o) 2>/dev/null` in
13196 *posix*) set -o posix ;;
13197 esac
13198
13199 fi
13200
13201
13202
13203
13204 # PATH needs CR
13205 # Avoid depending upon Character Ranges.
13206 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13207 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13208 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13209 as_cr_digits='0123456789'
13210 as_cr_alnum=$as_cr_Letters$as_cr_digits
13211
13212 as_nl='
13213 '
13214 export as_nl
13215 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13216 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13217 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13219 if (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'
13222 else
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'
13242 fi
13243
13244 # The user is always right.
13245 if 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 }
13251 fi
13252
13253 # Support unset when possible.
13254 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13255 as_unset=unset
13256 else
13257 as_unset=false
13258 fi
13259
13260
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.)
13266 IFS=" "" $as_nl"
13267
13268 # Find who we are. Look in the path if we contain no directory separator.
13269 case $0 in
13270 *[\\/]* ) as_myself=$0 ;;
13271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13273 do
13274 IFS=$as_save_IFS
13275 test -z "$as_dir" && as_dir=.
13276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13277 done
13278 IFS=$as_save_IFS
13279
13280 ;;
13281 esac
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.
13284 if test "x$as_myself" = x; then
13285 as_myself=$0
13286 fi
13287 if 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; }
13290 fi
13291
13292 # Work around bugs in pre-3.0 UWIN ksh.
13293 for as_var in ENV MAIL MAILPATH
13294 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13295 done
13296 PS1='$ '
13297 PS2='> '
13298 PS4='+ '
13299
13300 # NLS nuisances.
13301 LC_ALL=C
13302 export LC_ALL
13303 LANGUAGE=C
13304 export LANGUAGE
13305
13306 # Required to use basename.
13307 if expr a : '\(a\)' >/dev/null 2>&1 &&
13308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13309 as_expr=expr
13310 else
13311 as_expr=false
13312 fi
13313
13314 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13315 as_basename=basename
13316 else
13317 as_basename=false
13318 fi
13319
13320
13321 # Name of the executable.
13322 as_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'`
13340
13341 # CDPATH.
13342 $as_unset CDPATH
13343
13344
13345
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" || {
13350
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; }; }
13379
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 }
13387
13388
13389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13390 as_dirname=dirname
13391 else
13392 as_dirname=false
13393 fi
13394
13395 ECHO_C= ECHO_N= ECHO_T=
13396 case `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';;
13404 esac
13405 if expr a : '\(a\)' >/dev/null 2>&1 &&
13406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13407 as_expr=expr
13408 else
13409 as_expr=false
13410 fi
13411
13412 rm -f conf$$ conf$$.exe conf$$.file
13413 if test -d conf$$.dir; then
13414 rm -f conf$$.dir/conf$$.file
13415 else
13416 rm -f conf$$.dir
13417 mkdir conf$$.dir 2>/dev/null
13418 fi
13419 if (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
13433 else
13434 as_ln_s='cp -p'
13435 fi
13436 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13437 rmdir conf$$.dir 2>/dev/null
13438
13439 if mkdir -p . 2>/dev/null; then
13440 as_mkdir_p=:
13441 else
13442 test -d ./-p && rmdir ./-p
13443 as_mkdir_p=false
13444 fi
13445
13446 if test -x / >/dev/null 2>&1; then
13447 as_test_x='test -x'
13448 else
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 '
13466 fi
13467 as_executable_p=$as_test_x
13468
13469 # Sed expression to map a string onto a valid CPP name.
13470 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13471
13472 # Sed expression to map a string onto a valid variable name.
13473 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13474
13475
13476 exec 6>&1
13477
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.
13481 ac_log="
13482 This file was extended by liblock $as_me 0.60, which was
13483 generated by GNU Autoconf 2.63. Invocation command line was
13484
13485 CONFIG_FILES = $CONFIG_FILES
13486 CONFIG_HEADERS = $CONFIG_HEADERS
13487 CONFIG_LINKS = $CONFIG_LINKS
13488 CONFIG_COMMANDS = $CONFIG_COMMANDS
13489 $ $0 $@
13490
13491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13492 "
13493
13494 _ACEOF
13495
13496 case $ac_config_files in *"
13497 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13498 esac
13499
13500 case $ac_config_headers in *"
13501 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13502 esac
13503
13504
13505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13506 # Files that config.status was made for.
13507 config_files="$ac_config_files"
13508 config_headers="$ac_config_headers"
13509 config_commands="$ac_config_commands"
13510
13511 _ACEOF
13512
13513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13514 ac_cs_usage="\
13515 \`$as_me' instantiates files from templates according to the
13516 current configuration.
13517
13518 Usage: $0 [OPTION]... [FILE]...
13519
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
13530
13531 Configuration files:
13532 $config_files
13533
13534 Configuration headers:
13535 $config_headers
13536
13537 Configuration commands:
13538 $config_commands
13539
13540 Report bugs to <bug-autoconf@gnu.org>."
13541
13542 _ACEOF
13543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13544 ac_cs_version="\\
13545 liblock config.status 0.60
13546 configured by $0, generated by GNU Autoconf 2.63,
13547 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13548
13549 Copyright (C) 2008 Free Software Foundation, Inc.
13550 This config.status script is free software; the Free Software Foundation
13551 gives unlimited permission to copy, distribute and modify it."
13552
13553 ac_pwd='$ac_pwd'
13554 srcdir='$srcdir'
13555 INSTALL='$INSTALL'
13556 MKDIR_P='$MKDIR_P'
13557 AWK='$AWK'
13558 test -n "\$AWK" || AWK=awk
13559 _ACEOF
13560
13561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13562 # The default lists apply if the user does not specify any file.
13563 ac_need_defaults=:
13564 while test $# != 0
13565 do
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
13578
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
13604 Try \`$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=: ;;
13611
13612 # This is an error.
13613 -*) { $as_echo "$as_me: error: unrecognized option: $1
13614 Try \`$0 --help' for more information." >&2
13615 { (exit 1); exit 1; }; } ;;
13616
13617 *) ac_config_targets="$ac_config_targets $1"
13618 ac_need_defaults=false ;;
13619
13620 esac
13621 shift
13622 done
13623
13624 ac_configure_extra_args=
13625
13626 if $ac_cs_silent; then
13627 exec 6>/dev/null
13628 ac_configure_extra_args="$ac_configure_extra_args --silent"
13629 fi
13630
13631 _ACEOF
13632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13633 if \$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 "\$@"
13640 fi
13641
13642 _ACEOF
13643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13644 exec 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
13652
13653 _ACEOF
13654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13655 #
13656 # INIT-COMMANDS
13657 #
13658 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13659
13660
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
13664
13665 sed_quote_subst='$sed_quote_subst'
13666 double_quote_subst='$double_quote_subst'
13667 delay_variable_subst='$delay_variable_subst'
13668 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13669 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13670 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13671 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13672 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13673 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13674 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13675 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13676 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13677 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13678 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13679 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13680 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13681 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13682 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13683 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13684 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13685 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13686 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13687 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13688 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13689 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13690 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13691 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13692 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13693 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13694 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13695 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13696 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13697 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13698 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13699 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13700 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13701 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13702 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13703 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13704 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13705 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13706 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13707 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13708 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13709 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13710 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13711 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13712 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13713 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13714 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13715 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13716 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13717 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13718 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13719 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13720 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13721 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13722 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13723 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13724 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13725 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13726 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13727 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13728 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13729 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13730 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13731 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13732 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13733 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13734 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13735 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13736 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13737 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13738 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13739 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13740 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13741 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13742 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13743 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13744 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13745 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13746 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13747 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13748 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13749 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13750 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13751 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13752 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13753 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13754 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13755 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13756 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13757 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13758 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13759 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13760 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13761 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13762 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13763 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13764 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13765 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13766 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13767 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13768 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13769 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13770 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13771 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13772 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13773 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13774 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13775 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13776 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13777 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13778 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13779 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13780 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13781 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13782 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13783 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13784 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13785 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13786
13787 LTCC='$LTCC'
13788 LTCFLAGS='$LTCFLAGS'
13789 compiler='$compiler_DEFAULT'
13790
13791 # Quote evaled strings.
13792 for var in SED \
13793 GREP \
13794 EGREP \
13795 FGREP \
13796 LD \
13797 NM \
13798 LN_S \
13799 lt_SP2NL \
13800 lt_NL2SP \
13801 reload_flag \
13802 OBJDUMP \
13803 deplibs_check_method \
13804 file_magic_cmd \
13805 AR \
13806 AR_FLAGS \
13807 STRIP \
13808 RANLIB \
13809 CC \
13810 CFLAGS \
13811 compiler \
13812 lt_cv_sys_global_symbol_pipe \
13813 lt_cv_sys_global_symbol_to_cdecl \
13814 lt_cv_sys_global_symbol_to_c_name_address \
13815 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13816 SHELL \
13817 ECHO \
13818 lt_prog_compiler_no_builtin_flag \
13819 lt_prog_compiler_wl \
13820 lt_prog_compiler_pic \
13821 lt_prog_compiler_static \
13822 lt_cv_prog_compiler_c_o \
13823 need_locks \
13824 DSYMUTIL \
13825 NMEDIT \
13826 LIPO \
13827 OTOOL \
13828 OTOOL64 \
13829 shrext_cmds \
13830 export_dynamic_flag_spec \
13831 whole_archive_flag_spec \
13832 compiler_needs_object \
13833 with_gnu_ld \
13834 allow_undefined_flag \
13835 no_undefined_flag \
13836 hardcode_libdir_flag_spec \
13837 hardcode_libdir_flag_spec_ld \
13838 hardcode_libdir_separator \
13839 fix_srcfile_path \
13840 exclude_expsyms \
13841 include_expsyms \
13842 file_list_spec \
13843 variables_saved_for_relink \
13844 libname_spec \
13845 library_names_spec \
13846 soname_spec \
13847 finish_eval \
13848 old_striplib \
13849 striplib; 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
13858 done
13859
13860 # Double-quote double-evaled strings.
13861 for var in reload_cmds \
13862 old_postinstall_cmds \
13863 old_postuninstall_cmds \
13864 old_archive_cmds \
13865 extract_expsyms_cmds \
13866 old_archive_from_new_cmds \
13867 old_archive_from_expsyms_cmds \
13868 archive_cmds \
13869 archive_expsym_cmds \
13870 module_cmds \
13871 module_expsym_cmds \
13872 export_symbols_cmds \
13873 prelink_cmds \
13874 postinstall_cmds \
13875 postuninstall_cmds \
13876 finish_cmds \
13877 sys_lib_search_path_spec \
13878 sys_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
13887 done
13888
13889 # Fix-up fallback echo if it was mangled by the above quoting rules.
13890 case \$lt_ECHO in
13891 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13892 ;;
13893 esac
13894
13895 ac_aux_dir='$ac_aux_dir'
13896 xsi_shell='$xsi_shell'
13897 lt_shell_append='$lt_shell_append'
13898
13899 # See if we are running on zsh, and set the options which allow our
13900 # commands through without removal of \ escapes INIT.
13901 if test -n "\${ZSH_VERSION+set}" ; then
13902 setopt NO_GLOB_SUBST
13903 fi
13904
13905
13906 PACKAGE='$PACKAGE'
13907 VERSION='$VERSION'
13908 TIMESTAMP='$TIMESTAMP'
13909 RM='$RM'
13910 ofile='$ofile'
13911
13912
13913
13914
13915 _ACEOF
13916
13917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13918
13919 # Handling of arguments.
13920 for ac_config_target in $ac_config_targets
13921 do
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" ;;
13927
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
13932 done
13933
13934
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.
13939 if $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
13943 fi
13944
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 }
13973
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'.
13977 if test -n "$CONFIG_FILES"; then
13978
13979
13980 ac_cr=' '
13981 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13982 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13983 ac_cs_awk_cr='\\r'
13984 else
13985 ac_cs_awk_cr=$ac_cr
13986 fi
13987
13988 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13989 _ACEOF
13990
13991
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; }; }
14000 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14001 ac_delim='%!_!# '
14002 for 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;}
14006 { (exit 1); exit 1; }; }
14007
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;}
14014 { (exit 1); exit 1; }; }
14015 else
14016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14017 fi
14018 done
14019 rm -f conf$$subs.sh
14020
14021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14022 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14023 _ACEOF
14024 sed -n '
14025 h
14026 s/^/S["/; s/!.*/"]=/
14027 p
14028 g
14029 s/^[^!]*!//
14030 :repl
14031 t repl
14032 s/'"$ac_delim"'$//
14033 t delim
14034 :nl
14035 h
14036 s/\(.\{148\}\).*/\1/
14037 t more1
14038 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14039 p
14040 n
14041 b repl
14042 :more1
14043 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14044 p
14045 g
14046 s/.\{148\}//
14047 t nl
14048 :delim
14049 h
14050 s/\(.\{148\}\).*/\1/
14051 t more2
14052 s/["\\]/\\&/g; s/^/"/; s/$/"/
14053 p
14054 b
14055 :more2
14056 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14057 p
14058 g
14059 s/.\{148\}//
14060 t delim
14061 ' <conf$$subs.awk | sed '
14062 /^[^""]/{
14063 N
14064 s/\n//
14065 }
14066 ' >>$CONFIG_STATUS || ac_write_fail=1
14067 rm -f conf$$subs.awk
14068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14069 _ACAWK
14070 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14071 for (key in S) S_is_set[key] = 1
14072 FS = "\a"
14073
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 }
14091
14092 print line
14093 }
14094
14095 _ACAWK
14096 _ACEOF
14097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14098 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14099 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14100 else
14101 cat
14102 fi < "$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
14107
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).
14112 if test "x$srcdir" = x.; then
14113 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14114 s/:*\$(srcdir):*/:/
14115 s/:*\${srcdir}:*/:/
14116 s/:*@srcdir@:*/:/
14117 s/^\([^=]*=[ ]*\):*/\1/
14118 s/:*$//
14119 s/^[^=]*=[ ]*$//
14120 }'
14121 fi
14122
14123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14124 fi # test -n "$CONFIG_FILES"
14125
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'.
14129 if test -n "$CONFIG_HEADERS"; then
14130 cat >"$tmp/defines.awk" <<\_ACAWK ||
14131 BEGIN {
14132 _ACEOF
14133
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.
14137
14138 # Create a delimiter string that does not exist in confdefs.h, to ease
14139 # handling of long lines.
14140 ac_delim='%!_!# '
14141 for 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;}
14148 { (exit 1); exit 1; }; }
14149 else
14150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14151 fi
14152 done
14153
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.
14157
14158 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14159 sed -n '
14160 s/.\{148\}/&'"$ac_delim"'/g
14161 t rset
14162 :rset
14163 s/^[ ]*#[ ]*define[ ][ ]*/ /
14164 t def
14165 d
14166 :def
14167 s/\\$//
14168 t bsnl
14169 s/["\\]/\\&/g
14170 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14171 D["\1"]=" \3"/p
14172 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14173 d
14174 :bsnl
14175 s/["\\]/\\&/g
14176 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14177 D["\1"]=" \3\\\\\\n"\\/p
14178 t cont
14179 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14180 t cont
14181 d
14182 :cont
14183 n
14184 s/.\{148\}/&'"$ac_delim"'/g
14185 t clear
14186 :clear
14187 s/\\$//
14188 t bsnlc
14189 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14190 d
14191 :bsnlc
14192 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14193 b cont
14194 ' <confdefs.h | sed '
14195 s/'"$ac_delim"'/"\\\
14196 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14197
14198 cat >>$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
14231 _ACEOF
14232 cat >>$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; }; }
14236 fi # test -n "$CONFIG_HEADERS"
14237
14238
14239 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14240 shift
14241 for ac_tag
14242 do
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
14261
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
14285
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
14304
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
14313
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=.
14379
14380 case "$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 ;;
14390 esac
14391 ac_abs_top_builddir=$ac_pwd
14392 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14393 # for backward compatibility:
14394 ac_top_builddir=$ac_top_build_prefix
14395
14396 case $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 ;;
14409 esac
14410 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14411
14412
14413 case $ac_mode in
14414 :F)
14415 #
14416 # CONFIG_FILE
14417 #
14418
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
14428 _ACEOF
14429
14430 cat >>$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.
14433 ac_datarootdir_hack=; ac_datarootdir_seen=
14434
14435 ac_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 '
14446 case `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;}
14451 _ACEOF
14452 cat >>$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' ;;
14460 esac
14461 _ACEOF
14462
14463 # Neutralize VPATH when `$srcdir' = `.'.
14464 # Shell code in configure.ac might set extrasub.
14465 # FIXME: do we really want to maintain this feature?
14466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14467 ac_sed_extra="$ac_vpsub
14468 $extrasub
14469 _ACEOF
14470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14471 :t
14472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14473 s|@configure_input@|$ac_sed_conf_input|;t t
14474 s&@top_builddir@&$ac_top_builddir_sub&;t t
14475 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14476 s&@srcdir@&$ac_srcdir&;t t
14477 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14478 s&@top_srcdir@&$ac_top_srcdir&;t t
14479 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14480 s&@builddir@&$ac_builddir&;t t
14481 s&@abs_builddir@&$ac_abs_builddir&;t t
14482 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14483 s&@INSTALL@&$ac_INSTALL&;t t
14484 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14485 $ac_datarootdir_hack
14486 "
14487 eval 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; }; }
14491
14492 test -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'
14496 which 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'
14498 which seems to be undefined. Please make sure it is defined." >&2;}
14499
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
14541 for _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
14548 done
14549 echo "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 ;;
14573
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
14578
14579
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)
14717
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
14723
14724 cfgfile="${ofile}T"
14725 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14726 $RM "$cfgfile"
14727
14728 cat <<_LT_EOF >> "$cfgfile"
14729 #! $SHELL
14730
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.
14735 #
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
14739 #
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.
14762
14763
14764 # The names of the tagged configurations supported by this script.
14765 available_tags=""
14766
14767 # ### BEGIN LIBTOOL CONFIG
14768
14769 # Which release of libtool.m4 was used?
14770 macro_version=$macro_version
14771 macro_revision=$macro_revision
14772
14773 # Whether or not to build shared libraries.
14774 build_libtool_libs=$enable_shared
14775
14776 # Whether or not to build static libraries.
14777 build_old_libs=$enable_static
14778
14779 # What type of objects to build.
14780 pic_mode=$pic_mode
14781
14782 # Whether or not to optimize for fast installation.
14783 fast_install=$enable_fast_install
14784
14785 # The host system.
14786 host_alias=$host_alias
14787 host=$host
14788 host_os=$host_os
14789
14790 # The build system.
14791 build_alias=$build_alias
14792 build=$build
14793 build_os=$build_os
14794
14795 # A sed program that does not truncate output.
14796 SED=$lt_SED
14797
14798 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14799 Xsed="\$SED -e 1s/^X//"
14800
14801 # A grep program that handles long lines.
14802 GREP=$lt_GREP
14803
14804 # An ERE matcher.
14805 EGREP=$lt_EGREP
14806
14807 # A literal string matcher.
14808 FGREP=$lt_FGREP
14809
14810 # A BSD- or MS-compatible name lister.
14811 NM=$lt_NM
14812
14813 # Whether we need soft or hard links.
14814 LN_S=$lt_LN_S
14815
14816 # What is the maximum length of a command?
14817 max_cmd_len=$max_cmd_len
14818
14819 # Object file suffix (normally "o").
14820 objext=$ac_objext
14821
14822 # Executable file suffix (normally "").
14823 exeext=$exeext
14824
14825 # whether the shell understands "unset".
14826 lt_unset=$lt_unset
14827
14828 # turn spaces into newlines.
14829 SP2NL=$lt_lt_SP2NL
14830
14831 # turn newlines into spaces.
14832 NL2SP=$lt_lt_NL2SP
14833
14834 # How to create reloadable object files.
14835 reload_flag=$lt_reload_flag
14836 reload_cmds=$lt_reload_cmds
14837
14838 # An object symbol dumper.
14839 OBJDUMP=$lt_OBJDUMP
14840
14841 # Method to check whether dependent libraries are shared objects.
14842 deplibs_check_method=$lt_deplibs_check_method
14843
14844 # Command to use when deplibs_check_method == "file_magic".
14845 file_magic_cmd=$lt_file_magic_cmd
14846
14847 # The archiver.
14848 AR=$lt_AR
14849 AR_FLAGS=$lt_AR_FLAGS
14850
14851 # A symbol stripping program.
14852 STRIP=$lt_STRIP
14853
14854 # Commands used to install an old-style archive.
14855 RANLIB=$lt_RANLIB
14856 old_postinstall_cmds=$lt_old_postinstall_cmds
14857 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14858
14859 # A C compiler.
14860 LTCC=$lt_CC
14861
14862 # LTCC compiler flags.
14863 LTCFLAGS=$lt_CFLAGS
14864
14865 # Take the output of nm and produce a listing of raw symbols and C names.
14866 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14867
14868 # Transform the output of nm in a proper C declaration.
14869 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14870
14871 # Transform the output of nm in a C name address pair.
14872 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14873
14874 # Transform the output of nm in a C name address pair when lib prefix is needed.
14875 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14876
14877 # The name of the directory that contains temporary libtool files.
14878 objdir=$objdir
14879
14880 # Shell to use when invoking shell scripts.
14881 SHELL=$lt_SHELL
14882
14883 # An echo program that does not interpret backslashes.
14884 ECHO=$lt_ECHO
14885
14886 # Used to examine libraries when file_magic_cmd begins with "file".
14887 MAGIC_CMD=$MAGIC_CMD
14888
14889 # Must we lock files when doing compilation?
14890 need_locks=$lt_need_locks
14891
14892 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14893 DSYMUTIL=$lt_DSYMUTIL
14894
14895 # Tool to change global to local symbols on Mac OS X.
14896 NMEDIT=$lt_NMEDIT
14897
14898 # Tool to manipulate fat objects and archives on Mac OS X.
14899 LIPO=$lt_LIPO
14900
14901 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14902 OTOOL=$lt_OTOOL
14903
14904 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14905 OTOOL64=$lt_OTOOL64
14906
14907 # Old archive suffix (normally "a").
14908 libext=$libext
14909
14910 # Shared library suffix (normally ".so").
14911 shrext_cmds=$lt_shrext_cmds
14912
14913 # The commands to extract the exported symbol list from a shared archive.
14914 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14915
14916 # Variables whose values should be saved in libtool wrapper scripts and
14917 # restored at link time.
14918 variables_saved_for_relink=$lt_variables_saved_for_relink
14919
14920 # Do we need the "lib" prefix for modules?
14921 need_lib_prefix=$need_lib_prefix
14922
14923 # Do we need a version for libraries?
14924 need_version=$need_version
14925
14926 # Library versioning type.
14927 version_type=$version_type
14928
14929 # Shared library runtime path variable.
14930 runpath_var=$runpath_var
14931
14932 # Shared library path variable.
14933 shlibpath_var=$shlibpath_var
14934
14935 # Is shlibpath searched before the hard-coded library search path?
14936 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14937
14938 # Format of library name prefix.
14939 libname_spec=$lt_libname_spec
14940
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
14943 library_names_spec=$lt_library_names_spec
14944
14945 # The coded name of the library, if different from the real name.
14946 soname_spec=$lt_soname_spec
14947
14948 # Command to use after installation of a shared archive.
14949 postinstall_cmds=$lt_postinstall_cmds
14950
14951 # Command to use after uninstallation of a shared archive.
14952 postuninstall_cmds=$lt_postuninstall_cmds
14953
14954 # Commands used to finish a libtool library installation in a directory.
14955 finish_cmds=$lt_finish_cmds
14956
14957 # As "finish_cmds", except a single script fragment to be evaled but
14958 # not shown.
14959 finish_eval=$lt_finish_eval
14960
14961 # Whether we should hardcode library paths into libraries.
14962 hardcode_into_libs=$hardcode_into_libs
14963
14964 # Compile-time system search path for libraries.
14965 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14966
14967 # Run-time system search path for libraries.
14968 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14969
14970 # Whether dlopen is supported.
14971 dlopen_support=$enable_dlopen
14972
14973 # Whether dlopen of programs is supported.
14974 dlopen_self=$enable_dlopen_self
14975
14976 # Whether dlopen of statically linked programs is supported.
14977 dlopen_self_static=$enable_dlopen_self_static
14978
14979 # Commands to strip libraries.
14980 old_striplib=$lt_old_striplib
14981 striplib=$lt_striplib
14982
14983
14984 # The linker used to build libraries.
14985 LD=$lt_LD
14986
14987 # Commands used to build an old-style archive.
14988 old_archive_cmds=$lt_old_archive_cmds
14989
14990 # A language specific compiler.
14991 CC=$lt_compiler
14992
14993 # Is the compiler the GNU compiler?
14994 with_gcc=$GCC
14995
14996 # Compiler flag to turn off builtin functions.
14997 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14998
14999 # How to pass a linker flag through the compiler.
15000 wl=$lt_lt_prog_compiler_wl
15001
15002 # Additional compiler flags for building library objects.
15003 pic_flag=$lt_lt_prog_compiler_pic
15004
15005 # Compiler flag to prevent dynamic linking.
15006 link_static_flag=$lt_lt_prog_compiler_static
15007
15008 # Does compiler simultaneously support -c and -o options?
15009 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15010
15011 # Whether or not to add -lc for building shared libraries.
15012 build_libtool_need_lc=$archive_cmds_need_lc
15013
15014 # Whether or not to disallow shared libs when runtime libs are static.
15015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15016
15017 # Compiler flag to allow reflexive dlopens.
15018 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15019
15020 # Compiler flag to generate shared objects directly from archives.
15021 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15022
15023 # Whether the compiler copes with passing no objects directly.
15024 compiler_needs_object=$lt_compiler_needs_object
15025
15026 # Create an old-style archive from a shared archive.
15027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15028
15029 # Create a temporary old-style archive to link instead of a shared archive.
15030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15031
15032 # Commands used to build a shared archive.
15033 archive_cmds=$lt_archive_cmds
15034 archive_expsym_cmds=$lt_archive_expsym_cmds
15035
15036 # Commands used to build a loadable module if different from building
15037 # a shared archive.
15038 module_cmds=$lt_module_cmds
15039 module_expsym_cmds=$lt_module_expsym_cmds
15040
15041 # Whether we are building with GNU ld or not.
15042 with_gnu_ld=$lt_with_gnu_ld
15043
15044 # Flag that allows shared libraries with undefined symbols to be built.
15045 allow_undefined_flag=$lt_allow_undefined_flag
15046
15047 # Flag that enforces no undefined symbols.
15048 no_undefined_flag=$lt_no_undefined_flag
15049
15050 # Flag to hardcode \$libdir into a binary during linking.
15051 # This must work even if \$libdir does not exist
15052 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15053
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.
15056 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15057
15058 # Whether we need a single "-rpath" flag with a separated argument.
15059 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15060
15061 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15062 # DIR into the resulting binary.
15063 hardcode_direct=$hardcode_direct
15064
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.
15069 hardcode_direct_absolute=$hardcode_direct_absolute
15070
15071 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15072 # into the resulting binary.
15073 hardcode_minus_L=$hardcode_minus_L
15074
15075 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15076 # into the resulting binary.
15077 hardcode_shlibpath_var=$hardcode_shlibpath_var
15078
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.
15082 hardcode_automatic=$hardcode_automatic
15083
15084 # Set to yes if linker adds runtime paths of dependent libraries
15085 # to runtime path list.
15086 inherit_rpath=$inherit_rpath
15087
15088 # Whether libtool must link a program against all its dependency libraries.
15089 link_all_deplibs=$link_all_deplibs
15090
15091 # Fix the shell variable \$srcfile for the compiler.
15092 fix_srcfile_path=$lt_fix_srcfile_path
15093
15094 # Set to "yes" if exported symbols are required.
15095 always_export_symbols=$always_export_symbols
15096
15097 # The commands to list exported symbols.
15098 export_symbols_cmds=$lt_export_symbols_cmds
15099
15100 # Symbols that should not be listed in the preloaded symbols.
15101 exclude_expsyms=$lt_exclude_expsyms
15102
15103 # Symbols that must always be exported.
15104 include_expsyms=$lt_include_expsyms
15105
15106 # Commands necessary for linking programs (against libraries) with templates.
15107 prelink_cmds=$lt_prelink_cmds
15108
15109 # Specify filename containing input files.
15110 file_list_spec=$lt_file_list_spec
15111
15112 # How to hardcode a shared library path into an executable.
15113 hardcode_action=$hardcode_action
15114
15115 # ### END LIBTOOL CONFIG
15116
15117 _LT_EOF
15118
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.
15125 if test "X${COLLECT_NAMES+set}" != Xset; then
15126 COLLECT_NAMES=
15127 export COLLECT_NAMES
15128 fi
15129 _LT_EOF
15130 ;;
15131 esac
15132
15133
15134 ltmain="$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.
15151 func_dirname ()
15152 {
15153 case ${1} in
15154 */*) func_dirname_result="${1%/*}${2}" ;;
15155 * ) func_dirname_result="${3}" ;;
15156 esac
15157 }
15158
15159 # func_basename file
15160 func_basename ()
15161 {
15162 func_basename_result="${1##*/}"
15163 }
15164
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.
15177 func_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##*/}"
15184 }
15185
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).
15191 func_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 }
15199
15200 # func_opt_split
15201 func_opt_split ()
15202 {
15203 func_opt_split_opt=${1%%=*}
15204 func_opt_split_arg=${1#*=}
15205 }
15206
15207 # func_lo2o object
15208 func_lo2o ()
15209 {
15210 case ${1} in
15211 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15212 *) func_lo2o_result=${1} ;;
15213 esac
15214 }
15215
15216 # func_xform libobj-or-source
15217 func_xform ()
15218 {
15219 func_xform_result=${1%.*}.lo
15220 }
15221
15222 # func_arith arithmetic-term...
15223 func_arith ()
15224 {
15225 func_arith_result=$(( $* ))
15226 }
15227
15228 # func_len string
15229 # STRING may not start with a hyphen.
15230 func_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.
15243 func_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}"
15249 else
15250 func_dirname_result="$func_dirname_result${2}"
15251 fi
15252 }
15253
15254 # func_basename file
15255 func_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
15267 func_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}\$%%"`;;
15274 esac
15275 }
15276
15277 # sed scripts:
15278 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15279 my_sed_long_arg='1s/^-[^=]*=//'
15280
15281 # func_opt_split
15282 func_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
15289 func_lo2o ()
15290 {
15291 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15292 }
15293
15294 # func_xform libobj-or-source
15295 func_xform ()
15296 {
15297 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15298 }
15299
15300 # func_arith arithmetic-term...
15301 func_arith ()
15302 {
15303 func_arith_result=`expr "$@"`
15304 }
15305
15306 # func_len string
15307 # STRING may not start with a hyphen.
15308 func_len ()
15309 {
15310 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15311 }
15312
15313 _LT_EOF
15314 esac
15315
15316 case $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.
15322 func_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.
15333 func_append ()
15334 {
15335 eval "$1=\$$1\$2"
15336 }
15337
15338 _LT_EOF
15339 ;;
15340 esac
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
15350 ;;
15351
15352 esac
15353 done # for ac_tag
15354
15355
15356 { (exit 0); exit 0; }
15357 _ACEOF
15358 chmod +x $CONFIG_STATUS
15359 ac_clean_files=$ac_clean_files_save
15360
15361 test $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
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.
15375 if 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; }
15386 fi
15387 if 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;}
15390 fi
15391