blob: 02e6d317da13c6a2d371e2f2067ad8b1a2c6c6c3 [file] [log] [blame]
Lucas Eckelsf869a6f2012-08-06 15:15:24 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$lt_ECHO in
557X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561esac
562
563ECHO=${lt_ECHO-echo}
564if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
572 :
573else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<_LT_EOF
582$*
583_LT_EOF
584 exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598 then
599 break
600 fi
601 done
602 fi
603
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 :
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
612 #
613 # So, first we look for a working echo in the user's PATH.
614
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 ECHO="$dir/echo"
623 break
624 fi
625 done
626 IFS="$lt_save_ifs"
627
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 ECHO='print -r'
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 ECHO='printf %s\n'
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
650 :
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
668
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671 then
672 break
673 fi
674 prev="$cmd"
675 done
676
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 ECHO=echo
684 fi
685 fi
686 fi
687 fi
688 fi
689fi
690
691# Copy echo and quote the copy suitably for passing to libtool from
692# the Makefile, instead of quoting the original, which is used later.
693lt_ECHO=$ECHO
694if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696fi
697
698
699
700
701exec 7<&0 </dev/null 6>&1
702
703# Name of the host.
704# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705# so uname gets run too.
706ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708#
709# Initializations.
710#
711ac_default_prefix=/usr/local
712ac_clean_files=
713ac_config_libobj_dir=.
714LIBOBJS=
715cross_compiling=no
716subdirs=
717MFLAGS=
718MAKEFLAGS=
719SHELL=${CONFIG_SHELL-/bin/sh}
720
721# Identity of this package.
722PACKAGE_NAME=
723PACKAGE_TARNAME=
724PACKAGE_VERSION=
725PACKAGE_STRING=
726PACKAGE_BUGREPORT=
727
728ac_unique_file="src/framing.c"
729# Factoring default headers for most tests.
730ac_includes_default="\
731#include <stdio.h>
732#ifdef HAVE_SYS_TYPES_H
733# include <sys/types.h>
734#endif
735#ifdef HAVE_SYS_STAT_H
736# include <sys/stat.h>
737#endif
738#ifdef STDC_HEADERS
739# include <stdlib.h>
740# include <stddef.h>
741#else
742# ifdef HAVE_STDLIB_H
743# include <stdlib.h>
744# endif
745#endif
746#ifdef HAVE_STRING_H
747# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748# include <memory.h>
749# endif
750# include <string.h>
751#endif
752#ifdef HAVE_STRINGS_H
753# include <strings.h>
754#endif
755#ifdef HAVE_INTTYPES_H
756# include <inttypes.h>
757#endif
758#ifdef HAVE_STDINT_H
759# include <stdint.h>
760#endif
761#ifdef HAVE_UNISTD_H
762# include <unistd.h>
763#endif"
764
765ac_subst_vars='SHELL
766PATH_SEPARATOR
767PACKAGE_NAME
768PACKAGE_TARNAME
769PACKAGE_VERSION
770PACKAGE_STRING
771PACKAGE_BUGREPORT
772exec_prefix
773prefix
774program_transform_name
775bindir
776sbindir
777libexecdir
778datarootdir
779datadir
780sysconfdir
781sharedstatedir
782localstatedir
783includedir
784oldincludedir
785docdir
786infodir
787htmldir
788dvidir
789pdfdir
790psdir
791libdir
792localedir
793mandir
794DEFS
795ECHO_C
796ECHO_N
797ECHO_T
798LIBS
799build_alias
800host_alias
801target_alias
802INSTALL_PROGRAM
803INSTALL_SCRIPT
804INSTALL_DATA
805CYGPATH_W
806PACKAGE
807VERSION
808ACLOCAL
809AUTOCONF
810AUTOMAKE
811AUTOHEADER
812MAKEINFO
813install_sh
814STRIP
815INSTALL_STRIP_PROGRAM
816mkdir_p
817AWK
818SET_MAKE
819am__leading_dot
820AMTAR
821am__tar
822am__untar
823MAINTAINER_MODE_TRUE
824MAINTAINER_MODE_FALSE
825MAINT
826LIB_CURRENT
827LIB_REVISION
828LIB_AGE
829CC
830CFLAGS
831LDFLAGS
832CPPFLAGS
833ac_ct_CC
834EXEEXT
835OBJEXT
836DEPDIR
837am__include
838am__quote
839AMDEP_TRUE
840AMDEP_FALSE
841AMDEPBACKSLASH
842CCDEPMODE
843am__fastdepCC_TRUE
844am__fastdepCC_FALSE
845LIBTOOL
846build
847build_cpu
848build_vendor
849build_os
850host
851host_cpu
852host_vendor
853host_os
854SED
855GREP
856EGREP
857FGREP
858LD
859DUMPBIN
860ac_ct_DUMPBIN
861NM
862LN_S
863OBJDUMP
864AR
865RANLIB
866lt_ECHO
867DSYMUTIL
868NMEDIT
869LIPO
870OTOOL
871OTOOL64
872CPP
873LIBOBJS
874LIBTOOL_DEPS
875SIZE16
876USIZE16
877SIZE32
878USIZE32
879SIZE64
880OPT
881DEBUG
882PROFILE
883LTLIBOBJS'
884ac_subst_files=''
885 ac_precious_vars='build_alias
886host_alias
887target_alias
888CC
889CFLAGS
890LDFLAGS
891LIBS
892CPPFLAGS
893CPP'
894
895
896# Initialize some variables set by options.
897ac_init_help=
898ac_init_version=false
899# The variables have the same names as the options, with
900# dashes changed to underlines.
901cache_file=/dev/null
902exec_prefix=NONE
903no_create=
904no_recursion=
905prefix=NONE
906program_prefix=NONE
907program_suffix=NONE
908program_transform_name=s,x,x,
909silent=
910site=
911srcdir=
912verbose=
913x_includes=NONE
914x_libraries=NONE
915
916# Installation directory options.
917# These are left unexpanded so users can "make install exec_prefix=/foo"
918# and all the variables that are supposed to be based on exec_prefix
919# by default will actually change.
920# Use braces instead of parens because sh, perl, etc. also accept them.
921# (The list follows the same order as the GNU Coding Standards.)
922bindir='${exec_prefix}/bin'
923sbindir='${exec_prefix}/sbin'
924libexecdir='${exec_prefix}/libexec'
925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
930includedir='${prefix}/include'
931oldincludedir='/usr/include'
932docdir='${datarootdir}/doc/${PACKAGE}'
933infodir='${datarootdir}/info'
934htmldir='${docdir}'
935dvidir='${docdir}'
936pdfdir='${docdir}'
937psdir='${docdir}'
938libdir='${exec_prefix}/lib'
939localedir='${datarootdir}/locale'
940mandir='${datarootdir}/man'
941
942ac_prev=
943ac_dashdash=
944for ac_option
945do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
949 ac_prev=
950 continue
951 fi
952
953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 bindir=$ac_optarg ;;
968
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
983
984 -datadir | --datadir | --datadi | --datad)
985 ac_prev=datadir ;;
986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
987 datadir=$ac_optarg ;;
988
989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
996 -disable-* | --disable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003 eval enable_$ac_feature=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=\$ac_optarg ;;
1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
1218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=\$ac_optarg ;;
1220
1221 -without-* | --without-*)
1222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
1227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=no ;;
1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1251 ;;
1252
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 ;;
1269
1270 esac
1271done
1272
1273if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1277fi
1278
1279# Be sure to have absolute directory names.
1280for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
1284do
1285 eval ac_val=\$$ac_var
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
1292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1326
1327
1328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
1333$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
1336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1337echo X"$0" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359else
1360 ac_srcdir_defaulted=no
1361fi
1362if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365 { (exit 1); exit 1; }; }
1366fi
1367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1370 { (exit 1); exit 1; }; }
1371 pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396\`configure' configures this package to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
1416Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449_ACEOF
1450
1451 cat <<\_ACEOF
1452
1453Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465
1466 cat <<\_ACEOF
1467
1468Optional Features:
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --enable-maintainer-mode enable make rules and dependencies not useful
1472 (and sometimes confusing) to the casual installer
1473 --disable-dependency-tracking speeds up one-time build
1474 --enable-dependency-tracking do not reject slow dependency extractors
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480
1481Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-pic try to use only PIC/non-PIC objects [default=use
1485 both]
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487
1488Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CPP C preprocessor
1497
1498Use these variables to override the choices made by `configure' or to help
1499it to find libraries and programs with nonstandard names/locations.
1500
1501_ACEOF
1502ac_status=$?
1503fi
1504
1505if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" || continue
1509 ac_builddir=.
1510
1511case "$ac_dir" in
1512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513*)
1514 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 esac ;;
1521esac
1522ac_abs_top_builddir=$ac_pwd
1523ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524# for backward compatibility:
1525ac_top_builddir=$ac_top_build_prefix
1526
1527case $srcdir in
1528 .) # We are building in place.
1529 ac_srcdir=.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1536 *) # Relative name.
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540esac
1541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for guested configure.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1551 else
1552 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 fi || ac_status=$?
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1555 done
1556fi
1557
1558test -n "$ac_init_help" && exit $ac_status
1559if $ac_init_version; then
1560 cat <<\_ACEOF
1561configure
1562generated by GNU Autoconf 2.61
1563
1564Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15652002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1566This configure script is free software; the Free Software Foundation
1567gives unlimited permission to copy, distribute and modify it.
1568_ACEOF
1569 exit
1570fi
1571cat >config.log <<_ACEOF
1572This file contains any messages produced by compilers while
1573running configure, to aid debugging if configure makes a mistake.
1574
1575It was created by $as_me, which was
1576generated by GNU Autoconf 2.61. Invocation command line was
1577
1578 $ $0 $@
1579
1580_ACEOF
1581exec 5>>config.log
1582{
1583cat <<_ASUNAME
1584## --------- ##
1585## Platform. ##
1586## --------- ##
1587
1588hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1589uname -m = `(uname -m) 2>/dev/null || echo unknown`
1590uname -r = `(uname -r) 2>/dev/null || echo unknown`
1591uname -s = `(uname -s) 2>/dev/null || echo unknown`
1592uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593
1594/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1595/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1596
1597/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1598/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1599/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1600/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1601/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1602/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1603/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604
1605_ASUNAME
1606
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 echo "PATH: $as_dir"
1613done
1614IFS=$as_save_IFS
1615
1616} >&5
1617
1618cat >&5 <<_ACEOF
1619
1620
1621## ----------- ##
1622## Core tests. ##
1623## ----------- ##
1624
1625_ACEOF
1626
1627
1628# Keep a trace of the command line.
1629# Strip out --no-create and --no-recursion so they do not pile up.
1630# Strip out --silent because we don't want to record it for future runs.
1631# Also quote any args containing shell meta-characters.
1632# Make two passes to allow for proper duplicate-argument suppression.
1633ac_configure_args=
1634ac_configure_args0=
1635ac_configure_args1=
1636ac_must_keep_next=false
1637for ac_pass in 1 2
1638do
1639 for ac_arg
1640 do
1641 case $ac_arg in
1642 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1644 | -silent | --silent | --silen | --sile | --sil)
1645 continue ;;
1646 *\'*)
1647 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1648 esac
1649 case $ac_pass in
1650 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651 2)
1652 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1653 if test $ac_must_keep_next = true; then
1654 ac_must_keep_next=false # Got value, back to normal.
1655 else
1656 case $ac_arg in
1657 *=* | --config-cache | -C | -disable-* | --disable-* \
1658 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1659 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1660 | -with-* | --with-* | -without-* | --without-* | --x)
1661 case "$ac_configure_args0 " in
1662 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1663 esac
1664 ;;
1665 -* ) ac_must_keep_next=true ;;
1666 esac
1667 fi
1668 ac_configure_args="$ac_configure_args '$ac_arg'"
1669 ;;
1670 esac
1671 done
1672done
1673$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1674$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1675
1676# When interrupted or exit'd, cleanup temporary files, and complete
1677# config.log. We remove comments because anyway the quotes in there
1678# would cause problems or look ugly.
1679# WARNING: Use '\'' to represent an apostrophe within the trap.
1680# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1681trap 'exit_status=$?
1682 # Save into config.log some information that might help in debugging.
1683 {
1684 echo
1685
1686 cat <<\_ASBOX
1687## ---------------- ##
1688## Cache variables. ##
1689## ---------------- ##
1690_ASBOX
1691 echo
1692 # The following way of writing the cache mishandles newlines in values,
1693(
1694 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1695 eval ac_val=\$$ac_var
1696 case $ac_val in #(
1697 *${as_nl}*)
1698 case $ac_var in #(
1699 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1700echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1701 esac
1702 case $ac_var in #(
1703 _ | IFS | as_nl) ;; #(
1704 *) $as_unset $ac_var ;;
1705 esac ;;
1706 esac
1707 done
1708 (set) 2>&1 |
1709 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1710 *${as_nl}ac_space=\ *)
1711 sed -n \
1712 "s/'\''/'\''\\\\'\'''\''/g;
1713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1714 ;; #(
1715 *)
1716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1717 ;;
1718 esac |
1719 sort
1720)
1721 echo
1722
1723 cat <<\_ASBOX
1724## ----------------- ##
1725## Output variables. ##
1726## ----------------- ##
1727_ASBOX
1728 echo
1729 for ac_var in $ac_subst_vars
1730 do
1731 eval ac_val=\$$ac_var
1732 case $ac_val in
1733 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 esac
1735 echo "$ac_var='\''$ac_val'\''"
1736 done | sort
1737 echo
1738
1739 if test -n "$ac_subst_files"; then
1740 cat <<\_ASBOX
1741## ------------------- ##
1742## File substitutions. ##
1743## ------------------- ##
1744_ASBOX
1745 echo
1746 for ac_var in $ac_subst_files
1747 do
1748 eval ac_val=\$$ac_var
1749 case $ac_val in
1750 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1751 esac
1752 echo "$ac_var='\''$ac_val'\''"
1753 done | sort
1754 echo
1755 fi
1756
1757 if test -s confdefs.h; then
1758 cat <<\_ASBOX
1759## ----------- ##
1760## confdefs.h. ##
1761## ----------- ##
1762_ASBOX
1763 echo
1764 cat confdefs.h
1765 echo
1766 fi
1767 test "$ac_signal" != 0 &&
1768 echo "$as_me: caught signal $ac_signal"
1769 echo "$as_me: exit $exit_status"
1770 } >&5
1771 rm -f core *.core core.conftest.* &&
1772 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1773 exit $exit_status
1774' 0
1775for ac_signal in 1 2 13 15; do
1776 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777done
1778ac_signal=0
1779
1780# confdefs.h avoids OS command line length limits that DEFS can exceed.
1781rm -f -r conftest* confdefs.h
1782
1783# Predefined preprocessor variables.
1784
1785cat >>confdefs.h <<_ACEOF
1786#define PACKAGE_NAME "$PACKAGE_NAME"
1787_ACEOF
1788
1789
1790cat >>confdefs.h <<_ACEOF
1791#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792_ACEOF
1793
1794
1795cat >>confdefs.h <<_ACEOF
1796#define PACKAGE_VERSION "$PACKAGE_VERSION"
1797_ACEOF
1798
1799
1800cat >>confdefs.h <<_ACEOF
1801#define PACKAGE_STRING "$PACKAGE_STRING"
1802_ACEOF
1803
1804
1805cat >>confdefs.h <<_ACEOF
1806#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807_ACEOF
1808
1809
1810# Let the site file select an alternate cache file if it wants to.
1811# Prefer explicitly selected file to automatically selected ones.
1812if test -n "$CONFIG_SITE"; then
1813 set x "$CONFIG_SITE"
1814elif test "x$prefix" != xNONE; then
1815 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1816else
1817 set x "$ac_default_prefix/share/config.site" \
1818 "$ac_default_prefix/etc/config.site"
1819fi
1820shift
1821for ac_site_file
1822do
1823 if test -r "$ac_site_file"; then
1824 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1825echo "$as_me: loading site script $ac_site_file" >&6;}
1826 sed 's/^/| /' "$ac_site_file" >&5
1827 . "$ac_site_file"
1828 fi
1829done
1830
1831if test -r "$cache_file"; then
1832 # Some versions of bash will fail to source /dev/null (special
1833 # files actually), so we avoid doing that.
1834 if test -f "$cache_file"; then
1835 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1836echo "$as_me: loading cache $cache_file" >&6;}
1837 case $cache_file in
1838 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1839 *) . "./$cache_file";;
1840 esac
1841 fi
1842else
1843 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1844echo "$as_me: creating cache $cache_file" >&6;}
1845 >$cache_file
1846fi
1847
1848# Check that the precious variables saved in the cache have kept the same
1849# value.
1850ac_cache_corrupted=false
1851for ac_var in $ac_precious_vars; do
1852 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1853 eval ac_new_set=\$ac_env_${ac_var}_set
1854 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1855 eval ac_new_val=\$ac_env_${ac_var}_value
1856 case $ac_old_set,$ac_new_set in
1857 set,)
1858 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1859echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1860 ac_cache_corrupted=: ;;
1861 ,set)
1862 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1863echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1864 ac_cache_corrupted=: ;;
1865 ,);;
1866 *)
1867 if test "x$ac_old_val" != "x$ac_new_val"; then
1868 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1869echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1870 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1871echo "$as_me: former value: $ac_old_val" >&2;}
1872 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1873echo "$as_me: current value: $ac_new_val" >&2;}
1874 ac_cache_corrupted=:
1875 fi;;
1876 esac
1877 # Pass precious variables to config.status.
1878 if test "$ac_new_set" = set; then
1879 case $ac_new_val in
1880 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1881 *) ac_arg=$ac_var=$ac_new_val ;;
1882 esac
1883 case " $ac_configure_args " in
1884 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1885 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886 esac
1887 fi
1888done
1889if $ac_cache_corrupted; then
1890 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1891echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1892 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1893echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1894 { (exit 1); exit 1; }; }
1895fi
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913ac_ext=c
1914ac_cpp='$CPP $CPPFLAGS'
1915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1917ac_compiler_gnu=$ac_cv_c_compiler_gnu
1918
1919
1920
1921am__api_version="1.9"
1922ac_aux_dir=
1923for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1924 if test -f "$ac_dir/install-sh"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/install-sh -c"
1927 break
1928 elif test -f "$ac_dir/install.sh"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/install.sh -c"
1931 break
1932 elif test -f "$ac_dir/shtool"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/shtool install -c"
1935 break
1936 fi
1937done
1938if test -z "$ac_aux_dir"; then
1939 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1940echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1941 { (exit 1); exit 1; }; }
1942fi
1943
1944# These three variables are undocumented and unsupported,
1945# and are intended to be withdrawn in a future Autoconf release.
1946# They can cause serious problems if a builder's source tree is in a directory
1947# whose full name contains unusual characters.
1948ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1949ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1950ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1951
1952
1953# Find a good install program. We prefer a C program (faster),
1954# so one script is as good as another. But avoid the broken or
1955# incompatible versions:
1956# SysV /etc/install, /usr/sbin/install
1957# SunOS /usr/etc/install
1958# IRIX /sbin/install
1959# AIX /bin/install
1960# AmigaOS /C/install, which installs bootblocks on floppy discs
1961# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1962# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1963# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1964# OS/2's system install, which has a completely different semantic
1965# ./install, which can be erroneously created by make from ./install.sh.
1966{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1967echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1968if test -z "$INSTALL"; then
1969if test "${ac_cv_path_install+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973for as_dir in $PATH
1974do
1975 IFS=$as_save_IFS
1976 test -z "$as_dir" && as_dir=.
1977 # Account for people who put trailing slashes in PATH elements.
1978case $as_dir/ in
1979 ./ | .// | /cC/* | \
1980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1982 /usr/ucb/* ) ;;
1983 *)
1984 # OSF1 and SCO ODT 3.0 have their own names for install.
1985 # Don't use installbsd from OSF since it installs stuff as root
1986 # by default.
1987 for ac_prog in ginstall scoinst install; do
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1990 if test $ac_prog = install &&
1991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1992 # AIX install. It has an incompatible calling convention.
1993 :
1994 elif test $ac_prog = install &&
1995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1996 # program-specific install script used by HP pwplus--don't use.
1997 :
1998 else
1999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2000 break 3
2001 fi
2002 fi
2003 done
2004 done
2005 ;;
2006esac
2007done
2008IFS=$as_save_IFS
2009
2010
2011fi
2012 if test "${ac_cv_path_install+set}" = set; then
2013 INSTALL=$ac_cv_path_install
2014 else
2015 # As a last resort, use the slow shell script. Don't cache a
2016 # value for INSTALL within a source directory, because that will
2017 # break other packages using the cache if that directory is
2018 # removed, or if the value is a relative name.
2019 INSTALL=$ac_install_sh
2020 fi
2021fi
2022{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2023echo "${ECHO_T}$INSTALL" >&6; }
2024
2025# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2026# It thinks the first close brace ends the variable substitution.
2027test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2028
2029test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2030
2031test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2032
2033{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2034echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2035# Just in case
2036sleep 1
2037echo timestamp > conftest.file
2038# Do `set' in a subshell so we don't clobber the current shell's
2039# arguments. Must try -L first in case configure is actually a
2040# symlink; some systems play weird games with the mod time of symlinks
2041# (eg FreeBSD returns the mod time of the symlink's containing
2042# directory).
2043if (
2044 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2045 if test "$*" = "X"; then
2046 # -L didn't work.
2047 set X `ls -t $srcdir/configure conftest.file`
2048 fi
2049 rm -f conftest.file
2050 if test "$*" != "X $srcdir/configure conftest.file" \
2051 && test "$*" != "X conftest.file $srcdir/configure"; then
2052
2053 # If neither matched, then we have a broken ls. This can happen
2054 # if, for instance, CONFIG_SHELL is bash and it inherits a
2055 # broken ls alias from the environment. This has actually
2056 # happened. Such a system could not be considered "sane".
2057 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2058alias in your environment" >&5
2059echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2060alias in your environment" >&2;}
2061 { (exit 1); exit 1; }; }
2062 fi
2063
2064 test "$2" = conftest.file
2065 )
2066then
2067 # Ok.
2068 :
2069else
2070 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2071Check your system clock" >&5
2072echo "$as_me: error: newly created file is older than distributed files!
2073Check your system clock" >&2;}
2074 { (exit 1); exit 1; }; }
2075fi
2076{ echo "$as_me:$LINENO: result: yes" >&5
2077echo "${ECHO_T}yes" >&6; }
2078test "$program_prefix" != NONE &&
2079 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2080# Use a double $ so make ignores it.
2081test "$program_suffix" != NONE &&
2082 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2083# Double any \ or $. echo might interpret backslashes.
2084# By default was `s,x,x', remove it if useless.
2085cat <<\_ACEOF >conftest.sed
2086s/[\\$]/&&/g;s/;s,x,x,$//
2087_ACEOF
2088program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2089rm -f conftest.sed
2090
2091# expand $ac_aux_dir to an absolute path
2092am_aux_dir=`cd $ac_aux_dir && pwd`
2093
2094test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2095# Use eval to expand $SHELL
2096if eval "$MISSING --run true"; then
2097 am_missing_run="$MISSING --run "
2098else
2099 am_missing_run=
2100 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2101echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2102fi
2103
2104if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2105 # We used to keeping the `.' as first argument, in order to
2106 # allow $(mkdir_p) to be used without argument. As in
2107 # $(mkdir_p) $(somedir)
2108 # where $(somedir) is conditionally defined. However this is wrong
2109 # for two reasons:
2110 # 1. if the package is installed by a user who cannot write `.'
2111 # make install will fail,
2112 # 2. the above comment should most certainly read
2113 # $(mkdir_p) $(DESTDIR)$(somedir)
2114 # so it does not work when $(somedir) is undefined and
2115 # $(DESTDIR) is not.
2116 # To support the latter case, we have to write
2117 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2118 # so the `.' trick is pointless.
2119 mkdir_p='mkdir -p --'
2120else
2121 # On NextStep and OpenStep, the `mkdir' command does not
2122 # recognize any option. It will interpret all options as
2123 # directories to create, and then abort because `.' already
2124 # exists.
2125 for d in ./-p ./--version;
2126 do
2127 test -d $d && rmdir $d
2128 done
2129 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2130 if test -f "$ac_aux_dir/mkinstalldirs"; then
2131 mkdir_p='$(mkinstalldirs)'
2132 else
2133 mkdir_p='$(install_sh) -d'
2134 fi
2135fi
2136
2137for ac_prog in gawk mawk nawk awk
2138do
2139 # Extract the first word of "$ac_prog", so it can be a program name with args.
2140set dummy $ac_prog; ac_word=$2
2141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2143if test "${ac_cv_prog_AWK+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
2146 if test -n "$AWK"; then
2147 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2148else
2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150for as_dir in $PATH
2151do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2156 ac_cv_prog_AWK="$ac_prog"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 break 2
2159 fi
2160done
2161done
2162IFS=$as_save_IFS
2163
2164fi
2165fi
2166AWK=$ac_cv_prog_AWK
2167if test -n "$AWK"; then
2168 { echo "$as_me:$LINENO: result: $AWK" >&5
2169echo "${ECHO_T}$AWK" >&6; }
2170else
2171 { echo "$as_me:$LINENO: result: no" >&5
2172echo "${ECHO_T}no" >&6; }
2173fi
2174
2175
2176 test -n "$AWK" && break
2177done
2178
2179{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2180echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2181set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2182if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185 cat >conftest.make <<\_ACEOF
2186SHELL = /bin/sh
2187all:
2188 @echo '@@@%%%=$(MAKE)=@@@%%%'
2189_ACEOF
2190# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2191case `${MAKE-make} -f conftest.make 2>/dev/null` in
2192 *@@@%%%=?*=@@@%%%*)
2193 eval ac_cv_prog_make_${ac_make}_set=yes;;
2194 *)
2195 eval ac_cv_prog_make_${ac_make}_set=no;;
2196esac
2197rm -f conftest.make
2198fi
2199if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2200 { echo "$as_me:$LINENO: result: yes" >&5
2201echo "${ECHO_T}yes" >&6; }
2202 SET_MAKE=
2203else
2204 { echo "$as_me:$LINENO: result: no" >&5
2205echo "${ECHO_T}no" >&6; }
2206 SET_MAKE="MAKE=${MAKE-make}"
2207fi
2208
2209rm -rf .tst 2>/dev/null
2210mkdir .tst 2>/dev/null
2211if test -d .tst; then
2212 am__leading_dot=.
2213else
2214 am__leading_dot=_
2215fi
2216rmdir .tst 2>/dev/null
2217
2218# test to see if srcdir already configured
2219if test "`cd $srcdir && pwd`" != "`pwd`" &&
2220 test -f $srcdir/config.status; then
2221 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2222echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2223 { (exit 1); exit 1; }; }
2224fi
2225
2226# test whether we have cygpath
2227if test -z "$CYGPATH_W"; then
2228 if (cygpath --version) >/dev/null 2>/dev/null; then
2229 CYGPATH_W='cygpath -w'
2230 else
2231 CYGPATH_W=echo
2232 fi
2233fi
2234
2235
2236# Define the identity of the package.
2237 PACKAGE=libogg
2238 VERSION=1.2.0
2239
2240
2241cat >>confdefs.h <<_ACEOF
2242#define PACKAGE "$PACKAGE"
2243_ACEOF
2244
2245
2246cat >>confdefs.h <<_ACEOF
2247#define VERSION "$VERSION"
2248_ACEOF
2249
2250# Some tools Automake needs.
2251
2252ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2253
2254
2255AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2256
2257
2258AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2259
2260
2261AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2262
2263
2264MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2265
2266install_sh=${install_sh-"$am_aux_dir/install-sh"}
2267
2268# Installed binaries are usually stripped using `strip' when the user
2269# run `make install-strip'. However `strip' might not be the right
2270# tool to use in cross-compilation environments, therefore Automake
2271# will honor the `STRIP' environment variable to overrule this program.
2272if test "$cross_compiling" != no; then
2273 if test -n "$ac_tool_prefix"; then
2274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2275set dummy ${ac_tool_prefix}strip; ac_word=$2
2276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2278if test "${ac_cv_prog_STRIP+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 if test -n "$STRIP"; then
2282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2283else
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2294 fi
2295done
2296done
2297IFS=$as_save_IFS
2298
2299fi
2300fi
2301STRIP=$ac_cv_prog_STRIP
2302if test -n "$STRIP"; then
2303 { echo "$as_me:$LINENO: result: $STRIP" >&5
2304echo "${ECHO_T}$STRIP" >&6; }
2305else
2306 { echo "$as_me:$LINENO: result: no" >&5
2307echo "${ECHO_T}no" >&6; }
2308fi
2309
2310
2311fi
2312if test -z "$ac_cv_prog_STRIP"; then
2313 ac_ct_STRIP=$STRIP
2314 # Extract the first word of "strip", so it can be a program name with args.
2315set dummy strip; ac_word=$2
2316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2318if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321 if test -n "$ac_ct_STRIP"; then
2322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2323else
2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_ac_ct_STRIP="strip"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 break 2
2334 fi
2335done
2336done
2337IFS=$as_save_IFS
2338
2339fi
2340fi
2341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2342if test -n "$ac_ct_STRIP"; then
2343 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2344echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2345else
2346 { echo "$as_me:$LINENO: result: no" >&5
2347echo "${ECHO_T}no" >&6; }
2348fi
2349
2350 if test "x$ac_ct_STRIP" = x; then
2351 STRIP=":"
2352 else
2353 case $cross_compiling:$ac_tool_warned in
2354yes:)
2355{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2356whose name does not start with the host triplet. If you think this
2357configuration is useful to you, please write to autoconf@gnu.org." >&5
2358echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2359whose name does not start with the host triplet. If you think this
2360configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2361ac_tool_warned=yes ;;
2362esac
2363 STRIP=$ac_ct_STRIP
2364 fi
2365else
2366 STRIP="$ac_cv_prog_STRIP"
2367fi
2368
2369fi
2370INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2371
2372# We need awk for the "check" target. The system "awk" is bad on
2373# some platforms.
2374# Always define AMTAR for backward compatibility.
2375
2376AMTAR=${AMTAR-"${am_missing_run}tar"}
2377
2378am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2379
2380
2381
2382
2383
2384{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2385echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2386 # Check whether --enable-maintainer-mode was given.
2387if test "${enable_maintainer_mode+set}" = set; then
2388 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2389else
2390 USE_MAINTAINER_MODE=no
2391fi
2392
2393 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2394echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2395
2396
2397if test $USE_MAINTAINER_MODE = yes; then
2398 MAINTAINER_MODE_TRUE=
2399 MAINTAINER_MODE_FALSE='#'
2400else
2401 MAINTAINER_MODE_TRUE='#'
2402 MAINTAINER_MODE_FALSE=
2403fi
2404
2405 MAINT=$MAINTAINER_MODE_TRUE
2406
2407
2408
2409
2410LIB_CURRENT=7
2411LIB_REVISION=0
2412LIB_AGE=7
2413
2414
2415
2416
2417ac_ext=c
2418ac_cpp='$CPP $CPPFLAGS'
2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424set dummy ${ac_tool_prefix}gcc; ac_word=$2
2425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432else
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2443 fi
2444done
2445done
2446IFS=$as_save_IFS
2447
2448fi
2449fi
2450CC=$ac_cv_prog_CC
2451if test -n "$CC"; then
2452 { echo "$as_me:$LINENO: result: $CC" >&5
2453echo "${ECHO_T}$CC" >&6; }
2454else
2455 { echo "$as_me:$LINENO: result: no" >&5
2456echo "${ECHO_T}no" >&6; }
2457fi
2458
2459
2460fi
2461if test -z "$ac_cv_prog_CC"; then
2462 ac_ct_CC=$CC
2463 # Extract the first word of "gcc", so it can be a program name with args.
2464set dummy gcc; ac_word=$2
2465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_ac_ct_CC="gcc"
2481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484done
2485done
2486IFS=$as_save_IFS
2487
2488fi
2489fi
2490ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491if test -n "$ac_ct_CC"; then
2492 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493echo "${ECHO_T}$ac_ct_CC" >&6; }
2494else
2495 { echo "$as_me:$LINENO: result: no" >&5
2496echo "${ECHO_T}no" >&6; }
2497fi
2498
2499 if test "x$ac_ct_CC" = x; then
2500 CC=""
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503yes:)
2504{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505whose name does not start with the host triplet. If you think this
2506configuration is useful to you, please write to autoconf@gnu.org." >&5
2507echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508whose name does not start with the host triplet. If you think this
2509configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510ac_tool_warned=yes ;;
2511esac
2512 CC=$ac_ct_CC
2513 fi
2514else
2515 CC="$ac_cv_prog_CC"
2516fi
2517
2518if test -z "$CC"; then
2519 if test -n "$ac_tool_prefix"; then
2520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2521set dummy ${ac_tool_prefix}cc; ac_word=$2
2522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="${ac_tool_prefix}cc"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541done
2542done
2543IFS=$as_save_IFS
2544
2545fi
2546fi
2547CC=$ac_cv_prog_CC
2548if test -n "$CC"; then
2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550echo "${ECHO_T}$CC" >&6; }
2551else
2552 { echo "$as_me:$LINENO: result: no" >&5
2553echo "${ECHO_T}no" >&6; }
2554fi
2555
2556
2557 fi
2558fi
2559if test -z "$CC"; then
2560 # Extract the first word of "cc", so it can be a program name with args.
2561set dummy cc; ac_word=$2
2562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564if test "${ac_cv_prog_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567 if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569else
2570 ac_prog_rejected=no
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579 ac_prog_rejected=yes
2580 continue
2581 fi
2582 ac_cv_prog_CC="cc"
2583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586done
2587done
2588IFS=$as_save_IFS
2589
2590if test $ac_prog_rejected = yes; then
2591 # We found a bogon in the path, so make sure we never use it.
2592 set dummy $ac_cv_prog_CC
2593 shift
2594 if test $# != 0; then
2595 # We chose a different compiler from the bogus one.
2596 # However, it has the same basename, so the bogon will be chosen
2597 # first if we set CC to just the basename; use the full file name.
2598 shift
2599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2600 fi
2601fi
2602fi
2603fi
2604CC=$ac_cv_prog_CC
2605if test -n "$CC"; then
2606 { echo "$as_me:$LINENO: result: $CC" >&5
2607echo "${ECHO_T}$CC" >&6; }
2608else
2609 { echo "$as_me:$LINENO: result: no" >&5
2610echo "${ECHO_T}no" >&6; }
2611fi
2612
2613
2614fi
2615if test -z "$CC"; then
2616 if test -n "$ac_tool_prefix"; then
2617 for ac_prog in cl.exe
2618 do
2619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640done
2641done
2642IFS=$as_save_IFS
2643
2644fi
2645fi
2646CC=$ac_cv_prog_CC
2647if test -n "$CC"; then
2648 { echo "$as_me:$LINENO: result: $CC" >&5
2649echo "${ECHO_T}$CC" >&6; }
2650else
2651 { echo "$as_me:$LINENO: result: no" >&5
2652echo "${ECHO_T}no" >&6; }
2653fi
2654
2655
2656 test -n "$CC" && break
2657 done
2658fi
2659if test -z "$CC"; then
2660 ac_ct_CC=$CC
2661 for ac_prog in cl.exe
2662do
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664set dummy $ac_prog; ac_word=$2
2665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669else
2670 if test -n "$ac_ct_CC"; then
2671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_ac_ct_CC="$ac_prog"
2681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684done
2685done
2686IFS=$as_save_IFS
2687
2688fi
2689fi
2690ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691if test -n "$ac_ct_CC"; then
2692 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693echo "${ECHO_T}$ac_ct_CC" >&6; }
2694else
2695 { echo "$as_me:$LINENO: result: no" >&5
2696echo "${ECHO_T}no" >&6; }
2697fi
2698
2699
2700 test -n "$ac_ct_CC" && break
2701done
2702
2703 if test "x$ac_ct_CC" = x; then
2704 CC=""
2705 else
2706 case $cross_compiling:$ac_tool_warned in
2707yes:)
2708{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709whose name does not start with the host triplet. If you think this
2710configuration is useful to you, please write to autoconf@gnu.org." >&5
2711echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712whose name does not start with the host triplet. If you think this
2713configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714ac_tool_warned=yes ;;
2715esac
2716 CC=$ac_ct_CC
2717 fi
2718fi
2719
2720fi
2721
2722
2723test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2724See \`config.log' for more details." >&5
2725echo "$as_me: error: no acceptable C compiler found in \$PATH
2726See \`config.log' for more details." >&2;}
2727 { (exit 1); exit 1; }; }
2728
2729# Provide some information about the compiler.
2730echo "$as_me:$LINENO: checking for C compiler version" >&5
2731ac_compiler=`set X $ac_compile; echo $2`
2732{ (ac_try="$ac_compiler --version >&5"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler --version >&5") 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742{ (ac_try="$ac_compiler -v >&5"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -v >&5") 2>&5
2749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2752{ (ac_try="$ac_compiler -V >&5"
2753case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756esac
2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compiler -V >&5") 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2762
2763cat >conftest.$ac_ext <<_ACEOF
2764/* confdefs.h. */
2765_ACEOF
2766cat confdefs.h >>conftest.$ac_ext
2767cat >>conftest.$ac_ext <<_ACEOF
2768/* end confdefs.h. */
2769
2770int
2771main ()
2772{
2773
2774 ;
2775 return 0;
2776}
2777_ACEOF
2778ac_clean_files_save=$ac_clean_files
2779ac_clean_files="$ac_clean_files a.out a.exe b.out"
2780# Try to create an executable without -o first, disregard a.out.
2781# It will help us diagnose broken compilers, and finding out an intuition
2782# of exeext.
2783{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2784echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2785ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2786#
2787# List of possible output files, starting from the most likely.
2788# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2789# only as a last resort. b.out is created by i960 compilers.
2790ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2791#
2792# The IRIX 6 linker writes into existing files which may not be
2793# executable, retaining their permissions. Remove them first so a
2794# subsequent execution test works.
2795ac_rmfiles=
2796for ac_file in $ac_files
2797do
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2801 esac
2802done
2803rm -f $ac_rmfiles
2804
2805if { (ac_try="$ac_link_default"
2806case "(($ac_try" in
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2809esac
2810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_link_default") 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; then
2815 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2816# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2817# in a Makefile. We should not override ac_cv_exeext if it was cached,
2818# so that the user can short-circuit this test for compilers unknown to
2819# Autoconf.
2820for ac_file in $ac_files ''
2821do
2822 test -f "$ac_file" || continue
2823 case $ac_file in
2824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2825 ;;
2826 [ab].out )
2827 # We found the default executable, but exeext='' is most
2828 # certainly right.
2829 break;;
2830 *.* )
2831 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2832 then :; else
2833 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2834 fi
2835 # We set ac_cv_exeext here because the later test for it is not
2836 # safe: cross compilers may not add the suffix if given an `-o'
2837 # argument, so we may need to know it at that point already.
2838 # Even if this section looks crufty: it has the advantage of
2839 # actually working.
2840 break;;
2841 * )
2842 break;;
2843 esac
2844done
2845test "$ac_cv_exeext" = no && ac_cv_exeext=
2846
2847else
2848 ac_file=''
2849fi
2850
2851{ echo "$as_me:$LINENO: result: $ac_file" >&5
2852echo "${ECHO_T}$ac_file" >&6; }
2853if test -z "$ac_file"; then
2854 echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858See \`config.log' for more details." >&5
2859echo "$as_me: error: C compiler cannot create executables
2860See \`config.log' for more details." >&2;}
2861 { (exit 77); exit 77; }; }
2862fi
2863
2864ac_exeext=$ac_cv_exeext
2865
2866# Check that the compiler produces executables we can run. If not, either
2867# the compiler is broken, or we cross compile.
2868{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2870# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871# If not cross compiling, check that we can run a simple program.
2872if test "$cross_compiling" != yes; then
2873 if { ac_try='./$ac_file'
2874 { (case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
2878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_try") 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 cross_compiling=no
2884 else
2885 if test "$cross_compiling" = maybe; then
2886 cross_compiling=yes
2887 else
2888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2889If you meant to cross compile, use \`--host'.
2890See \`config.log' for more details." >&5
2891echo "$as_me: error: cannot run C compiled programs.
2892If you meant to cross compile, use \`--host'.
2893See \`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }
2895 fi
2896 fi
2897fi
2898{ echo "$as_me:$LINENO: result: yes" >&5
2899echo "${ECHO_T}yes" >&6; }
2900
2901rm -f a.out a.exe conftest$ac_cv_exeext b.out
2902ac_clean_files=$ac_clean_files_save
2903# Check that the compiler produces executables we can run. If not, either
2904# the compiler is broken, or we cross compile.
2905{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2906echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2907{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2908echo "${ECHO_T}$cross_compiling" >&6; }
2909
2910{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2911echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2912if { (ac_try="$ac_link"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_link") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; then
2922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2923# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2924# work properly (i.e., refer to `conftest.exe'), while it won't with
2925# `rm'.
2926for ac_file in conftest.exe conftest conftest.*; do
2927 test -f "$ac_file" || continue
2928 case $ac_file in
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931 break;;
2932 * ) break;;
2933 esac
2934done
2935else
2936 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2937See \`config.log' for more details." >&5
2938echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2939See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }
2941fi
2942
2943rm -f conftest$ac_cv_exeext
2944{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2945echo "${ECHO_T}$ac_cv_exeext" >&6; }
2946
2947rm -f conftest.$ac_ext
2948EXEEXT=$ac_cv_exeext
2949ac_exeext=$EXEEXT
2950{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2951echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2952if test "${ac_cv_objext+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2954else
2955 cat >conftest.$ac_ext <<_ACEOF
2956/* confdefs.h. */
2957_ACEOF
2958cat confdefs.h >>conftest.$ac_ext
2959cat >>conftest.$ac_ext <<_ACEOF
2960/* end confdefs.h. */
2961
2962int
2963main ()
2964{
2965
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970rm -f conftest.o conftest.obj
2971if { (ac_try="$ac_compile"
2972case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975esac
2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_compile") 2>&5
2978 ac_status=$?
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
2981 for ac_file in conftest.o conftest.obj conftest.*; do
2982 test -f "$ac_file" || continue;
2983 case $ac_file in
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2986 break;;
2987 esac
2988done
2989else
2990 echo "$as_me: failed program was:" >&5
2991sed 's/^/| /' conftest.$ac_ext >&5
2992
2993{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2994See \`config.log' for more details." >&5
2995echo "$as_me: error: cannot compute suffix of object files: cannot compile
2996See \`config.log' for more details." >&2;}
2997 { (exit 1); exit 1; }; }
2998fi
2999
3000rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001fi
3002{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003echo "${ECHO_T}$ac_cv_objext" >&6; }
3004OBJEXT=$ac_cv_objext
3005ac_objext=$OBJEXT
3006{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3008if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011 cat >conftest.$ac_ext <<_ACEOF
3012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h. */
3017
3018int
3019main ()
3020{
3021#ifndef __GNUC__
3022 choke me
3023#endif
3024
3025 ;
3026 return 0;
3027}
3028_ACEOF
3029rm -f conftest.$ac_objext
3030if { (ac_try="$ac_compile"
3031case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compile") 2>conftest.er1
3037 ac_status=$?
3038 grep -v '^ *+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } && {
3043 test -z "$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 } && test -s conftest.$ac_objext; then
3046 ac_compiler_gnu=yes
3047else
3048 echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 ac_compiler_gnu=no
3052fi
3053
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055ac_cv_c_compiler_gnu=$ac_compiler_gnu
3056
3057fi
3058{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3059echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3060GCC=`test $ac_compiler_gnu = yes && echo yes`
3061ac_test_CFLAGS=${CFLAGS+set}
3062ac_save_CFLAGS=$CFLAGS
3063{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3065if test "${ac_cv_prog_cc_g+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
3067else
3068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3070 ac_cv_prog_cc_g=no
3071 CFLAGS="-g"
3072 cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078
3079int
3080main ()
3081{
3082
3083 ;
3084 return 0;
3085}
3086_ACEOF
3087rm -f conftest.$ac_objext
3088if { (ac_try="$ac_compile"
3089case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3095 ac_status=$?
3096 grep -v '^ *+' conftest.er1 >conftest.err
3097 rm -f conftest.er1
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3104 ac_cv_prog_cc_g=yes
3105else
3106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 CFLAGS=""
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116
3117int
3118main ()
3119{
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3142 :
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 CFLAGS="-g"
3149 cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h. */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h. */
3155
3156int
3157main ()
3158{
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext
3165if { (ac_try="$ac_compile"
3166case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_cv_prog_cc_g=yes
3182else
3183 echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
3186
3187fi
3188
3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190fi
3191
3192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193fi
3194
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_c_werror_flag=$ac_save_c_werror_flag
3197fi
3198{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3199echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3200if test "$ac_test_CFLAGS" = set; then
3201 CFLAGS=$ac_save_CFLAGS
3202elif test $ac_cv_prog_cc_g = yes; then
3203 if test "$GCC" = yes; then
3204 CFLAGS="-g -O2"
3205 else
3206 CFLAGS="-g"
3207 fi
3208else
3209 if test "$GCC" = yes; then
3210 CFLAGS="-O2"
3211 else
3212 CFLAGS=
3213 fi
3214fi
3215{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3216echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3217if test "${ac_cv_prog_cc_c89+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220 ac_cv_prog_cc_c89=no
3221ac_save_CC=$CC
3222cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228#include <stdarg.h>
3229#include <stdio.h>
3230#include <sys/types.h>
3231#include <sys/stat.h>
3232/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3233struct buf { int x; };
3234FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235static char *e (p, i)
3236 char **p;
3237 int i;
3238{
3239 return p[i];
3240}
3241static char *f (char * (*g) (char **, int), char **p, ...)
3242{
3243 char *s;
3244 va_list v;
3245 va_start (v,p);
3246 s = g (p, va_arg (v,int));
3247 va_end (v);
3248 return s;
3249}
3250
3251/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3252 function prototypes and stuff, but not '\xHH' hex character constants.
3253 These don't provoke an error unfortunately, instead are silently treated
3254 as 'x'. The following induces an error, until -std is added to get
3255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3256 array size at least. It's necessary to write '\x00'==0 to get something
3257 that's true only with -std. */
3258int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259
3260/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261 inside strings and character constants. */
3262#define FOO(x) 'x'
3263int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264
3265int test (int i, double x);
3266struct s1 {int (*f) (int a);};
3267struct s2 {int (*f) (double a);};
3268int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3269int argc;
3270char **argv;
3271int
3272main ()
3273{
3274return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3275 ;
3276 return 0;
3277}
3278_ACEOF
3279for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281do
3282 CC="$ac_save_CC $ac_arg"
3283 rm -f conftest.$ac_objext
3284if { (ac_try="$ac_compile"
3285case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288esac
3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3300 ac_cv_prog_cc_c89=$ac_arg
3301else
3302 echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
3305
3306fi
3307
3308rm -f core conftest.err conftest.$ac_objext
3309 test "x$ac_cv_prog_cc_c89" != "xno" && break
3310done
3311rm -f conftest.$ac_ext
3312CC=$ac_save_CC
3313
3314fi
3315# AC_CACHE_VAL
3316case "x$ac_cv_prog_cc_c89" in
3317 x)
3318 { echo "$as_me:$LINENO: result: none needed" >&5
3319echo "${ECHO_T}none needed" >&6; } ;;
3320 xno)
3321 { echo "$as_me:$LINENO: result: unsupported" >&5
3322echo "${ECHO_T}unsupported" >&6; } ;;
3323 *)
3324 CC="$CC $ac_cv_prog_cc_c89"
3325 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3326echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3327esac
3328
3329
3330ac_ext=c
3331ac_cpp='$CPP $CPPFLAGS'
3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335DEPDIR="${am__leading_dot}deps"
3336
3337ac_config_commands="$ac_config_commands depfiles"
3338
3339
3340am_make=${MAKE-make}
3341cat > confinc << 'END'
3342am__doit:
3343 @echo done
3344.PHONY: am__doit
3345END
3346# If we don't find an include directive, just comment out the code.
3347{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3348echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3349am__include="#"
3350am__quote=
3351_am_result=none
3352# First try GNU make style include.
3353echo "include confinc" > confmf
3354# We grep out `Entering directory' and `Leaving directory'
3355# messages which can occur if `w' ends up in MAKEFLAGS.
3356# In particular we don't look at `^make:' because GNU make might
3357# be invoked under some other name (usually "gmake"), in which
3358# case it prints its new name instead of `make'.
3359if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3360 am__include=include
3361 am__quote=
3362 _am_result=GNU
3363fi
3364# Now try BSD make style include.
3365if test "$am__include" = "#"; then
3366 echo '.include "confinc"' > confmf
3367 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3368 am__include=.include
3369 am__quote="\""
3370 _am_result=BSD
3371 fi
3372fi
3373
3374
3375{ echo "$as_me:$LINENO: result: $_am_result" >&5
3376echo "${ECHO_T}$_am_result" >&6; }
3377rm -f confinc confmf
3378
3379# Check whether --enable-dependency-tracking was given.
3380if test "${enable_dependency_tracking+set}" = set; then
3381 enableval=$enable_dependency_tracking;
3382fi
3383
3384if test "x$enable_dependency_tracking" != xno; then
3385 am_depcomp="$ac_aux_dir/depcomp"
3386 AMDEPBACKSLASH='\'
3387fi
3388
3389
3390if test "x$enable_dependency_tracking" != xno; then
3391 AMDEP_TRUE=
3392 AMDEP_FALSE='#'
3393else
3394 AMDEP_TRUE='#'
3395 AMDEP_FALSE=
3396fi
3397
3398
3399
3400
3401depcc="$CC" am_compiler_list=
3402
3403{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3404echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3405if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
3408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3409 # We make a subdir and do the tests there. Otherwise we can end up
3410 # making bogus files that we don't know about and never remove. For
3411 # instance it was reported that on HP-UX the gcc test will end up
3412 # making a dummy file named `D' -- because `-MD' means `put the output
3413 # in D'.
3414 mkdir conftest.dir
3415 # Copy depcomp to subdir because otherwise we won't find it if we're
3416 # using a relative directory.
3417 cp "$am_depcomp" conftest.dir
3418 cd conftest.dir
3419 # We will build objects and dependencies in a subdirectory because
3420 # it helps to detect inapplicable dependency modes. For instance
3421 # both Tru64's cc and ICC support -MD to output dependencies as a
3422 # side effect of compilation, but ICC will put the dependencies in
3423 # the current directory while Tru64 will put them in the object
3424 # directory.
3425 mkdir sub
3426
3427 am_cv_CC_dependencies_compiler_type=none
3428 if test "$am_compiler_list" = ""; then
3429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3430 fi
3431 for depmode in $am_compiler_list; do
3432 # Setup a source with many dependencies, because some compilers
3433 # like to wrap large dependency lists on column 80 (with \), and
3434 # we should not choose a depcomp mode which is confused by this.
3435 #
3436 # We need to recreate these files for each test, as the compiler may
3437 # overwrite some of them when testing with obscure command lines.
3438 # This happens at least with the AIX C compiler.
3439 : > sub/conftest.c
3440 for i in 1 2 3 4 5 6; do
3441 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3442 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3443 # Solaris 8's {/usr,}/bin/sh.
3444 touch sub/conftst$i.h
3445 done
3446 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3447
3448 case $depmode in
3449 nosideeffect)
3450 # after this tag, mechanisms are not by side-effect, so they'll
3451 # only be used when explicitly requested
3452 if test "x$enable_dependency_tracking" = xyes; then
3453 continue
3454 else
3455 break
3456 fi
3457 ;;
3458 none) break ;;
3459 esac
3460 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3461 # mode. It turns out that the SunPro C++ compiler does not properly
3462 # handle `-M -o', and we need to detect this.
3463 if depmode=$depmode \
3464 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3466 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3467 >/dev/null 2>conftest.err &&
3468 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3469 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3470 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3471 # icc doesn't choke on unknown options, it will just issue warnings
3472 # or remarks (even with -Werror). So we grep stderr for any message
3473 # that says an option was ignored or not supported.
3474 # When given -MP, icc 7.0 and 7.1 complain thusly:
3475 # icc: Command line warning: ignoring option '-M'; no argument required
3476 # The diagnosis changed in icc 8.0:
3477 # icc: Command line remark: option '-MP' not supported
3478 if (grep 'ignoring option' conftest.err ||
3479 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3480 am_cv_CC_dependencies_compiler_type=$depmode
3481 break
3482 fi
3483 fi
3484 done
3485
3486 cd ..
3487 rm -rf conftest.dir
3488else
3489 am_cv_CC_dependencies_compiler_type=none
3490fi
3491
3492fi
3493{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3494echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3495CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3496
3497
3498
3499if
3500 test "x$enable_dependency_tracking" != xno \
3501 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3502 am__fastdepCC_TRUE=
3503 am__fastdepCC_FALSE='#'
3504else
3505 am__fastdepCC_TRUE='#'
3506 am__fastdepCC_FALSE=
3507fi
3508
3509
3510case `pwd` in
3511 *\ * | *\ *)
3512 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3513echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3514esac
3515
3516
3517
3518macro_version='2.2.6'
3519macro_revision='1.3012'
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533ltmain="$ac_aux_dir/ltmain.sh"
3534
3535# Make sure we can run config.sub.
3536$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3537 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3538echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3539 { (exit 1); exit 1; }; }
3540
3541{ echo "$as_me:$LINENO: checking build system type" >&5
3542echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3543if test "${ac_cv_build+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 ac_build_alias=$build_alias
3547test "x$ac_build_alias" = x &&
3548 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3549test "x$ac_build_alias" = x &&
3550 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3551echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3552 { (exit 1); exit 1; }; }
3553ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3554 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3555echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3556 { (exit 1); exit 1; }; }
3557
3558fi
3559{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3560echo "${ECHO_T}$ac_cv_build" >&6; }
3561case $ac_cv_build in
3562*-*-*) ;;
3563*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3564echo "$as_me: error: invalid value of canonical build" >&2;}
3565 { (exit 1); exit 1; }; };;
3566esac
3567build=$ac_cv_build
3568ac_save_IFS=$IFS; IFS='-'
3569set x $ac_cv_build
3570shift
3571build_cpu=$1
3572build_vendor=$2
3573shift; shift
3574# Remember, the first character of IFS is used to create $*,
3575# except with old shells:
3576build_os=$*
3577IFS=$ac_save_IFS
3578case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3579
3580
3581{ echo "$as_me:$LINENO: checking host system type" >&5
3582echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3583if test "${ac_cv_host+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586 if test "x$host_alias" = x; then
3587 ac_cv_host=$ac_cv_build
3588else
3589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3590 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3591echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3592 { (exit 1); exit 1; }; }
3593fi
3594
3595fi
3596{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3597echo "${ECHO_T}$ac_cv_host" >&6; }
3598case $ac_cv_host in
3599*-*-*) ;;
3600*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3601echo "$as_me: error: invalid value of canonical host" >&2;}
3602 { (exit 1); exit 1; }; };;
3603esac
3604host=$ac_cv_host
3605ac_save_IFS=$IFS; IFS='-'
3606set x $ac_cv_host
3607shift
3608host_cpu=$1
3609host_vendor=$2
3610shift; shift
3611# Remember, the first character of IFS is used to create $*,
3612# except with old shells:
3613host_os=$*
3614IFS=$ac_save_IFS
3615case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3616
3617
3618{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3619echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3620if test "${ac_cv_path_SED+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3624 for ac_i in 1 2 3 4 5 6 7; do
3625 ac_script="$ac_script$as_nl$ac_script"
3626 done
3627 echo "$ac_script" | sed 99q >conftest.sed
3628 $as_unset ac_script || ac_script=
3629 # Extract the first word of "sed gsed" to use in msg output
3630if test -z "$SED"; then
3631set dummy sed gsed; ac_prog_name=$2
3632if test "${ac_cv_path_SED+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634else
3635 ac_path_SED_found=false
3636# Loop through the user's path and test for each of PROGNAME-LIST
3637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638for as_dir in $PATH
3639do
3640 IFS=$as_save_IFS
3641 test -z "$as_dir" && as_dir=.
3642 for ac_prog in sed gsed; do
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3645 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3646 # Check for GNU ac_path_SED and select it if it is found.
3647 # Check for GNU $ac_path_SED
3648case `"$ac_path_SED" --version 2>&1` in
3649*GNU*)
3650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3651*)
3652 ac_count=0
3653 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3654 while :
3655 do
3656 cat "conftest.in" "conftest.in" >"conftest.tmp"
3657 mv "conftest.tmp" "conftest.in"
3658 cp "conftest.in" "conftest.nl"
3659 echo '' >> "conftest.nl"
3660 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3662 ac_count=`expr $ac_count + 1`
3663 if test $ac_count -gt ${ac_path_SED_max-0}; then
3664 # Best one so far, save it but keep looking for a better one
3665 ac_cv_path_SED="$ac_path_SED"
3666 ac_path_SED_max=$ac_count
3667 fi
3668 # 10*(2^10) chars as input seems more than enough
3669 test $ac_count -gt 10 && break
3670 done
3671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3672esac
3673
3674
3675 $ac_path_SED_found && break 3
3676 done
3677done
3678
3679done
3680IFS=$as_save_IFS
3681
3682
3683fi
3684
3685SED="$ac_cv_path_SED"
3686if test -z "$SED"; then
3687 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3688echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3689 { (exit 1); exit 1; }; }
3690fi
3691
3692else
3693 ac_cv_path_SED=$SED
3694fi
3695
3696fi
3697{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3698echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3699 SED="$ac_cv_path_SED"
3700 rm -f conftest.sed
3701
3702test -z "$SED" && SED=sed
3703Xsed="$SED -e 1s/^X//"
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3716echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3717if test "${ac_cv_path_GREP+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719else
3720 # Extract the first word of "grep ggrep" to use in msg output
3721if test -z "$GREP"; then
3722set dummy grep ggrep; ac_prog_name=$2
3723if test "${ac_cv_path_GREP+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725else
3726 ac_path_GREP_found=false
3727# Loop through the user's path and test for each of PROGNAME-LIST
3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3730do
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_prog in grep ggrep; do
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3736 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3737 # Check for GNU ac_path_GREP and select it if it is found.
3738 # Check for GNU $ac_path_GREP
3739case `"$ac_path_GREP" --version 2>&1` in
3740*GNU*)
3741 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3742*)
3743 ac_count=0
3744 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3745 while :
3746 do
3747 cat "conftest.in" "conftest.in" >"conftest.tmp"
3748 mv "conftest.tmp" "conftest.in"
3749 cp "conftest.in" "conftest.nl"
3750 echo 'GREP' >> "conftest.nl"
3751 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3752 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3753 ac_count=`expr $ac_count + 1`
3754 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3755 # Best one so far, save it but keep looking for a better one
3756 ac_cv_path_GREP="$ac_path_GREP"
3757 ac_path_GREP_max=$ac_count
3758 fi
3759 # 10*(2^10) chars as input seems more than enough
3760 test $ac_count -gt 10 && break
3761 done
3762 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3763esac
3764
3765
3766 $ac_path_GREP_found && break 3
3767 done
3768done
3769
3770done
3771IFS=$as_save_IFS
3772
3773
3774fi
3775
3776GREP="$ac_cv_path_GREP"
3777if test -z "$GREP"; then
3778 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3779echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3780 { (exit 1); exit 1; }; }
3781fi
3782
3783else
3784 ac_cv_path_GREP=$GREP
3785fi
3786
3787
3788fi
3789{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3790echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3791 GREP="$ac_cv_path_GREP"
3792
3793
3794{ echo "$as_me:$LINENO: checking for egrep" >&5
3795echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3796if test "${ac_cv_path_EGREP+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798else
3799 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3800 then ac_cv_path_EGREP="$GREP -E"
3801 else
3802 # Extract the first word of "egrep" to use in msg output
3803if test -z "$EGREP"; then
3804set dummy egrep; ac_prog_name=$2
3805if test "${ac_cv_path_EGREP+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807else
3808 ac_path_EGREP_found=false
3809# Loop through the user's path and test for each of PROGNAME-LIST
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3812do
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_prog in egrep; do
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3818 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3819 # Check for GNU ac_path_EGREP and select it if it is found.
3820 # Check for GNU $ac_path_EGREP
3821case `"$ac_path_EGREP" --version 2>&1` in
3822*GNU*)
3823 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3824*)
3825 ac_count=0
3826 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3827 while :
3828 do
3829 cat "conftest.in" "conftest.in" >"conftest.tmp"
3830 mv "conftest.tmp" "conftest.in"
3831 cp "conftest.in" "conftest.nl"
3832 echo 'EGREP' >> "conftest.nl"
3833 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3835 ac_count=`expr $ac_count + 1`
3836 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3837 # Best one so far, save it but keep looking for a better one
3838 ac_cv_path_EGREP="$ac_path_EGREP"
3839 ac_path_EGREP_max=$ac_count
3840 fi
3841 # 10*(2^10) chars as input seems more than enough
3842 test $ac_count -gt 10 && break
3843 done
3844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3845esac
3846
3847
3848 $ac_path_EGREP_found && break 3
3849 done
3850done
3851
3852done
3853IFS=$as_save_IFS
3854
3855
3856fi
3857
3858EGREP="$ac_cv_path_EGREP"
3859if test -z "$EGREP"; then
3860 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3861echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3862 { (exit 1); exit 1; }; }
3863fi
3864
3865else
3866 ac_cv_path_EGREP=$EGREP
3867fi
3868
3869
3870 fi
3871fi
3872{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3873echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3874 EGREP="$ac_cv_path_EGREP"
3875
3876
3877{ echo "$as_me:$LINENO: checking for fgrep" >&5
3878echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3879if test "${ac_cv_path_FGREP+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3883 then ac_cv_path_FGREP="$GREP -F"
3884 else
3885 # Extract the first word of "fgrep" to use in msg output
3886if test -z "$FGREP"; then
3887set dummy fgrep; ac_prog_name=$2
3888if test "${ac_cv_path_FGREP+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 ac_path_FGREP_found=false
3892# Loop through the user's path and test for each of PROGNAME-LIST
3893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3895do
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_prog in fgrep; do
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3901 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3902 # Check for GNU ac_path_FGREP and select it if it is found.
3903 # Check for GNU $ac_path_FGREP
3904case `"$ac_path_FGREP" --version 2>&1` in
3905*GNU*)
3906 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3907*)
3908 ac_count=0
3909 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3910 while :
3911 do
3912 cat "conftest.in" "conftest.in" >"conftest.tmp"
3913 mv "conftest.tmp" "conftest.in"
3914 cp "conftest.in" "conftest.nl"
3915 echo 'FGREP' >> "conftest.nl"
3916 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3917 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3918 ac_count=`expr $ac_count + 1`
3919 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3920 # Best one so far, save it but keep looking for a better one
3921 ac_cv_path_FGREP="$ac_path_FGREP"
3922 ac_path_FGREP_max=$ac_count
3923 fi
3924 # 10*(2^10) chars as input seems more than enough
3925 test $ac_count -gt 10 && break
3926 done
3927 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3928esac
3929
3930
3931 $ac_path_FGREP_found && break 3
3932 done
3933done
3934
3935done
3936IFS=$as_save_IFS
3937
3938
3939fi
3940
3941FGREP="$ac_cv_path_FGREP"
3942if test -z "$FGREP"; then
3943 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3944echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3945 { (exit 1); exit 1; }; }
3946fi
3947
3948else
3949 ac_cv_path_FGREP=$FGREP
3950fi
3951
3952
3953 fi
3954fi
3955{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3956echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3957 FGREP="$ac_cv_path_FGREP"
3958
3959
3960test -z "$GREP" && GREP=grep
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980# Check whether --with-gnu-ld was given.
3981if test "${with_gnu_ld+set}" = set; then
3982 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3983else
3984 with_gnu_ld=no
3985fi
3986
3987ac_prog=ld
3988if test "$GCC" = yes; then
3989 # Check if gcc -print-prog-name=ld gives a path.
3990 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3991echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3992 case $host in
3993 *-*-mingw*)
3994 # gcc leaves a trailing carriage return which upsets mingw
3995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3996 *)
3997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3998 esac
3999 case $ac_prog in
4000 # Accept absolute paths.
4001 [\\/]* | ?:[\\/]*)
4002 re_direlt='/[^/][^/]*/\.\./'
4003 # Canonicalize the pathname of ld
4004 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4005 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4006 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4007 done
4008 test -z "$LD" && LD="$ac_prog"
4009 ;;
4010 "")
4011 # If it fails, then pretend we aren't using GCC.
4012 ac_prog=ld
4013 ;;
4014 *)
4015 # If it is relative, then search for the first ld in PATH.
4016 with_gnu_ld=unknown
4017 ;;
4018 esac
4019elif test "$with_gnu_ld" = yes; then
4020 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4021echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4022else
4023 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4024echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4025fi
4026if test "${lt_cv_path_LD+set}" = set; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4028else
4029 if test -z "$LD"; then
4030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4031 for ac_dir in $PATH; do
4032 IFS="$lt_save_ifs"
4033 test -z "$ac_dir" && ac_dir=.
4034 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4035 lt_cv_path_LD="$ac_dir/$ac_prog"
4036 # Check to see if the program is GNU ld. I'd rather use --version,
4037 # but apparently some variants of GNU ld only accept -v.
4038 # Break only if it was the GNU/non-GNU ld that we prefer.
4039 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4040 *GNU* | *'with BFD'*)
4041 test "$with_gnu_ld" != no && break
4042 ;;
4043 *)
4044 test "$with_gnu_ld" != yes && break
4045 ;;
4046 esac
4047 fi
4048 done
4049 IFS="$lt_save_ifs"
4050else
4051 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4052fi
4053fi
4054
4055LD="$lt_cv_path_LD"
4056if test -n "$LD"; then
4057 { echo "$as_me:$LINENO: result: $LD" >&5
4058echo "${ECHO_T}$LD" >&6; }
4059else
4060 { echo "$as_me:$LINENO: result: no" >&5
4061echo "${ECHO_T}no" >&6; }
4062fi
4063test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4064echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4065 { (exit 1); exit 1; }; }
4066{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4067echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4068if test "${lt_cv_prog_gnu_ld+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070else
4071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4072case `$LD -v 2>&1 </dev/null` in
4073*GNU* | *'with BFD'*)
4074 lt_cv_prog_gnu_ld=yes
4075 ;;
4076*)
4077 lt_cv_prog_gnu_ld=no
4078 ;;
4079esac
4080fi
4081{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4082echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4083with_gnu_ld=$lt_cv_prog_gnu_ld
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4094echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4095if test "${lt_cv_path_NM+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098 if test -n "$NM"; then
4099 # Let the user override the test.
4100 lt_cv_path_NM="$NM"
4101else
4102 lt_nm_to_check="${ac_tool_prefix}nm"
4103 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4104 lt_nm_to_check="$lt_nm_to_check nm"
4105 fi
4106 for lt_tmp_nm in $lt_nm_to_check; do
4107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4108 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4109 IFS="$lt_save_ifs"
4110 test -z "$ac_dir" && ac_dir=.
4111 tmp_nm="$ac_dir/$lt_tmp_nm"
4112 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4113 # Check to see if the nm accepts a BSD-compat flag.
4114 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4115 # nm: unknown option "B" ignored
4116 # Tru64's nm complains that /dev/null is an invalid object file
4117 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4118 */dev/null* | *'Invalid file or object type'*)
4119 lt_cv_path_NM="$tmp_nm -B"
4120 break
4121 ;;
4122 *)
4123 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4124 */dev/null*)
4125 lt_cv_path_NM="$tmp_nm -p"
4126 break
4127 ;;
4128 *)
4129 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4130 continue # so that we can try to find one that supports BSD flags
4131 ;;
4132 esac
4133 ;;
4134 esac
4135 fi
4136 done
4137 IFS="$lt_save_ifs"
4138 done
4139 : ${lt_cv_path_NM=no}
4140fi
4141fi
4142{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4143echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4144if test "$lt_cv_path_NM" != "no"; then
4145 NM="$lt_cv_path_NM"
4146else
4147 # Didn't find any BSD compatible name lister, look for dumpbin.
4148 if test -n "$ac_tool_prefix"; then
4149 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4150 do
4151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4152set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4153{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4155if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158 if test -n "$DUMPBIN"; then
4159 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172done
4173done
4174IFS=$as_save_IFS
4175
4176fi
4177fi
4178DUMPBIN=$ac_cv_prog_DUMPBIN
4179if test -n "$DUMPBIN"; then
4180 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4181echo "${ECHO_T}$DUMPBIN" >&6; }
4182else
4183 { echo "$as_me:$LINENO: result: no" >&5
4184echo "${ECHO_T}no" >&6; }
4185fi
4186
4187
4188 test -n "$DUMPBIN" && break
4189 done
4190fi
4191if test -z "$DUMPBIN"; then
4192 ac_ct_DUMPBIN=$DUMPBIN
4193 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4194do
4195 # Extract the first word of "$ac_prog", so it can be a program name with args.
4196set dummy $ac_prog; ac_word=$2
4197{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4199if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202 if test -n "$ac_ct_DUMPBIN"; then
4203 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4204else
4205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206for as_dir in $PATH
4207do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216done
4217done
4218IFS=$as_save_IFS
4219
4220fi
4221fi
4222ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4223if test -n "$ac_ct_DUMPBIN"; then
4224 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4225echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4226else
4227 { echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6; }
4229fi
4230
4231
4232 test -n "$ac_ct_DUMPBIN" && break
4233done
4234
4235 if test "x$ac_ct_DUMPBIN" = x; then
4236 DUMPBIN=":"
4237 else
4238 case $cross_compiling:$ac_tool_warned in
4239yes:)
4240{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4241whose name does not start with the host triplet. If you think this
4242configuration is useful to you, please write to autoconf@gnu.org." >&5
4243echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4244whose name does not start with the host triplet. If you think this
4245configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4246ac_tool_warned=yes ;;
4247esac
4248 DUMPBIN=$ac_ct_DUMPBIN
4249 fi
4250fi
4251
4252
4253 if test "$DUMPBIN" != ":"; then
4254 NM="$DUMPBIN"
4255 fi
4256fi
4257test -z "$NM" && NM=nm
4258
4259
4260
4261
4262
4263
4264{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4265echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4266if test "${lt_cv_nm_interface+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268else
4269 lt_cv_nm_interface="BSD nm"
4270 echo "int some_variable = 0;" > conftest.$ac_ext
4271 (eval echo "\"\$as_me:4271: $ac_compile\"" >&5)
4272 (eval "$ac_compile" 2>conftest.err)
4273 cat conftest.err >&5
4274 (eval echo "\"\$as_me:4274: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4275 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4276 cat conftest.err >&5
4277 (eval echo "\"\$as_me:4277: output\"" >&5)
4278 cat conftest.out >&5
4279 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4280 lt_cv_nm_interface="MS dumpbin"
4281 fi
4282 rm -f conftest*
4283fi
4284{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4285echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4286
4287{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4288echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4289LN_S=$as_ln_s
4290if test "$LN_S" = "ln -s"; then
4291 { echo "$as_me:$LINENO: result: yes" >&5
4292echo "${ECHO_T}yes" >&6; }
4293else
4294 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4295echo "${ECHO_T}no, using $LN_S" >&6; }
4296fi
4297
4298# find the maximum length of command line arguments
4299{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4300echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4301if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303else
4304 i=0
4305 teststring="ABCD"
4306
4307 case $build_os in
4308 msdosdjgpp*)
4309 # On DJGPP, this test can blow up pretty badly due to problems in libc
4310 # (any single argument exceeding 2000 bytes causes a buffer overrun
4311 # during glob expansion). Even if it were fixed, the result of this
4312 # check would be larger than it should be.
4313 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4314 ;;
4315
4316 gnu*)
4317 # Under GNU Hurd, this test is not required because there is
4318 # no limit to the length of command line arguments.
4319 # Libtool will interpret -1 as no limit whatsoever
4320 lt_cv_sys_max_cmd_len=-1;
4321 ;;
4322
4323 cygwin* | mingw* | cegcc*)
4324 # On Win9x/ME, this test blows up -- it succeeds, but takes
4325 # about 5 minutes as the teststring grows exponentially.
4326 # Worse, since 9x/ME are not pre-emptively multitasking,
4327 # you end up with a "frozen" computer, even though with patience
4328 # the test eventually succeeds (with a max line length of 256k).
4329 # Instead, let's just punt: use the minimum linelength reported by
4330 # all of the supported platforms: 8192 (on NT/2K/XP).
4331 lt_cv_sys_max_cmd_len=8192;
4332 ;;
4333
4334 amigaos*)
4335 # On AmigaOS with pdksh, this test takes hours, literally.
4336 # So we just punt and use a minimum line length of 8192.
4337 lt_cv_sys_max_cmd_len=8192;
4338 ;;
4339
4340 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4341 # This has been around since 386BSD, at least. Likely further.
4342 if test -x /sbin/sysctl; then
4343 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4344 elif test -x /usr/sbin/sysctl; then
4345 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4346 else
4347 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4348 fi
4349 # And add a safety zone
4350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4352 ;;
4353
4354 interix*)
4355 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4356 lt_cv_sys_max_cmd_len=196608
4357 ;;
4358
4359 osf*)
4360 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4361 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4362 # nice to cause kernel panics so lets avoid the loop below.
4363 # First set a reasonable default.
4364 lt_cv_sys_max_cmd_len=16384
4365 #
4366 if test -x /sbin/sysconfig; then
4367 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4368 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4369 esac
4370 fi
4371 ;;
4372 sco3.2v5*)
4373 lt_cv_sys_max_cmd_len=102400
4374 ;;
4375 sysv5* | sco5v6* | sysv4.2uw2*)
4376 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4377 if test -n "$kargmax"; then
4378 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4379 else
4380 lt_cv_sys_max_cmd_len=32768
4381 fi
4382 ;;
4383 *)
4384 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4385 if test -n "$lt_cv_sys_max_cmd_len"; then
4386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4388 else
4389 # Make teststring a little bigger before we do anything with it.
4390 # a 1K string should be a reasonable start.
4391 for i in 1 2 3 4 5 6 7 8 ; do
4392 teststring=$teststring$teststring
4393 done
4394 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4395 # If test is not a shell built-in, we'll probably end up computing a
4396 # maximum length that is only half of the actual maximum length, but
4397 # we can't tell.
4398 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4399 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4400 test $i != 17 # 1/2 MB should be enough
4401 do
4402 i=`expr $i + 1`
4403 teststring=$teststring$teststring
4404 done
4405 # Only check the string length outside the loop.
4406 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4407 teststring=
4408 # Add a significant safety factor because C++ compilers can tack on
4409 # massive amounts of additional arguments before passing them to the
4410 # linker. It appears as though 1/2 is a usable value.
4411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4412 fi
4413 ;;
4414 esac
4415
4416fi
4417
4418if test -n $lt_cv_sys_max_cmd_len ; then
4419 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4420echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4421else
4422 { echo "$as_me:$LINENO: result: none" >&5
4423echo "${ECHO_T}none" >&6; }
4424fi
4425max_cmd_len=$lt_cv_sys_max_cmd_len
4426
4427
4428
4429
4430
4431
4432: ${CP="cp -f"}
4433: ${MV="mv -f"}
4434: ${RM="rm -f"}
4435
4436{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4437echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4438# Try some XSI features
4439xsi_shell=no
4440( _lt_dummy="a/b/c"
4441 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4442 = c,a/b,, \
4443 && eval 'test $(( 1 + 1 )) -eq 2 \
4444 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4445 && xsi_shell=yes
4446{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
4447echo "${ECHO_T}$xsi_shell" >&6; }
4448
4449
4450{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4451echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4452lt_shell_append=no
4453( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4454 >/dev/null 2>&1 \
4455 && lt_shell_append=yes
4456{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4457echo "${ECHO_T}$lt_shell_append" >&6; }
4458
4459
4460if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4461 lt_unset=unset
4462else
4463 lt_unset=false
4464fi
4465
4466
4467
4468
4469
4470# test EBCDIC or ASCII
4471case `echo X|tr X '\101'` in
4472 A) # ASCII based system
4473 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4474 lt_SP2NL='tr \040 \012'
4475 lt_NL2SP='tr \015\012 \040\040'
4476 ;;
4477 *) # EBCDIC based system
4478 lt_SP2NL='tr \100 \n'
4479 lt_NL2SP='tr \r\n \100\100'
4480 ;;
4481esac
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4492echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4493if test "${lt_cv_ld_reload_flag+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496 lt_cv_ld_reload_flag='-r'
4497fi
4498{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4499echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4500reload_flag=$lt_cv_ld_reload_flag
4501case $reload_flag in
4502"" | " "*) ;;
4503*) reload_flag=" $reload_flag" ;;
4504esac
4505reload_cmds='$LD$reload_flag -o $output$reload_objs'
4506case $host_os in
4507 darwin*)
4508 if test "$GCC" = yes; then
4509 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4510 else
4511 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4512 fi
4513 ;;
4514esac
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524if test -n "$ac_tool_prefix"; then
4525 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4526set dummy ${ac_tool_prefix}objdump; ac_word=$2
4527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4529if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532 if test -n "$OBJDUMP"; then
4533 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4534else
4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536for as_dir in $PATH
4537do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546done
4547done
4548IFS=$as_save_IFS
4549
4550fi
4551fi
4552OBJDUMP=$ac_cv_prog_OBJDUMP
4553if test -n "$OBJDUMP"; then
4554 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4555echo "${ECHO_T}$OBJDUMP" >&6; }
4556else
4557 { echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6; }
4559fi
4560
4561
4562fi
4563if test -z "$ac_cv_prog_OBJDUMP"; then
4564 ac_ct_OBJDUMP=$OBJDUMP
4565 # Extract the first word of "objdump", so it can be a program name with args.
4566set dummy objdump; ac_word=$2
4567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572 if test -n "$ac_ct_OBJDUMP"; then
4573 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4574else
4575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586done
4587done
4588IFS=$as_save_IFS
4589
4590fi
4591fi
4592ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4593if test -n "$ac_ct_OBJDUMP"; then
4594 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4595echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4596else
4597 { echo "$as_me:$LINENO: result: no" >&5
4598echo "${ECHO_T}no" >&6; }
4599fi
4600
4601 if test "x$ac_ct_OBJDUMP" = x; then
4602 OBJDUMP="false"
4603 else
4604 case $cross_compiling:$ac_tool_warned in
4605yes:)
4606{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4607whose name does not start with the host triplet. If you think this
4608configuration is useful to you, please write to autoconf@gnu.org." >&5
4609echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4610whose name does not start with the host triplet. If you think this
4611configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4612ac_tool_warned=yes ;;
4613esac
4614 OBJDUMP=$ac_ct_OBJDUMP
4615 fi
4616else
4617 OBJDUMP="$ac_cv_prog_OBJDUMP"
4618fi
4619
4620test -z "$OBJDUMP" && OBJDUMP=objdump
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4631echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4632if test "${lt_cv_deplibs_check_method+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635 lt_cv_file_magic_cmd='$MAGIC_CMD'
4636lt_cv_file_magic_test_file=
4637lt_cv_deplibs_check_method='unknown'
4638# Need to set the preceding variable on all platforms that support
4639# interlibrary dependencies.
4640# 'none' -- dependencies not supported.
4641# `unknown' -- same as none, but documents that we really don't know.
4642# 'pass_all' -- all dependencies passed with no checks.
4643# 'test_compile' -- check by making test program.
4644# 'file_magic [[regex]]' -- check by looking for files in library path
4645# which responds to the $file_magic_cmd with a given extended regex.
4646# If you have `file' or equivalent on your system and you're not sure
4647# whether `pass_all' will *always* work, you probably want this one.
4648
4649case $host_os in
4650aix[4-9]*)
4651 lt_cv_deplibs_check_method=pass_all
4652 ;;
4653
4654beos*)
4655 lt_cv_deplibs_check_method=pass_all
4656 ;;
4657
4658bsdi[45]*)
4659 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4660 lt_cv_file_magic_cmd='/usr/bin/file -L'
4661 lt_cv_file_magic_test_file=/shlib/libc.so
4662 ;;
4663
4664cygwin*)
4665 # func_win32_libid is a shell function defined in ltmain.sh
4666 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4667 lt_cv_file_magic_cmd='func_win32_libid'
4668 ;;
4669
4670mingw* | pw32*)
4671 # Base MSYS/MinGW do not provide the 'file' command needed by
4672 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4673 # unless we find 'file', for example because we are cross-compiling.
4674 if ( file / ) >/dev/null 2>&1; then
4675 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4676 lt_cv_file_magic_cmd='func_win32_libid'
4677 else
4678 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4679 lt_cv_file_magic_cmd='$OBJDUMP -f'
4680 fi
4681 ;;
4682
4683cegcc)
4684 # use the weaker test based on 'objdump'. See mingw*.
4685 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4686 lt_cv_file_magic_cmd='$OBJDUMP -f'
4687 ;;
4688
4689darwin* | rhapsody*)
4690 lt_cv_deplibs_check_method=pass_all
4691 ;;
4692
4693freebsd* | dragonfly*)
4694 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4695 case $host_cpu in
4696 i*86 )
4697 # Not sure whether the presence of OpenBSD here was a mistake.
4698 # Let's accept both of them until this is cleared up.
4699 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4700 lt_cv_file_magic_cmd=/usr/bin/file
4701 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4702 ;;
4703 esac
4704 else
4705 lt_cv_deplibs_check_method=pass_all
4706 fi
4707 ;;
4708
4709gnu*)
4710 lt_cv_deplibs_check_method=pass_all
4711 ;;
4712
4713hpux10.20* | hpux11*)
4714 lt_cv_file_magic_cmd=/usr/bin/file
4715 case $host_cpu in
4716 ia64*)
4717 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4718 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4719 ;;
4720 hppa*64*)
4721 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]'
4722 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4723 ;;
4724 *)
4725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4726 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4727 ;;
4728 esac
4729 ;;
4730
4731interix[3-9]*)
4732 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4734 ;;
4735
4736irix5* | irix6* | nonstopux*)
4737 case $LD in
4738 *-32|*"-32 ") libmagic=32-bit;;
4739 *-n32|*"-n32 ") libmagic=N32;;
4740 *-64|*"-64 ") libmagic=64-bit;;
4741 *) libmagic=never-match;;
4742 esac
4743 lt_cv_deplibs_check_method=pass_all
4744 ;;
4745
4746# This must be Linux ELF.
4747linux* | k*bsd*-gnu)
4748 lt_cv_deplibs_check_method=pass_all
4749 ;;
4750
4751netbsd* | netbsdelf*-gnu)
4752 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4754 else
4755 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4756 fi
4757 ;;
4758
4759newos6*)
4760 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4761 lt_cv_file_magic_cmd=/usr/bin/file
4762 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4763 ;;
4764
4765*nto* | *qnx*)
4766 lt_cv_deplibs_check_method=pass_all
4767 ;;
4768
4769openbsd*)
4770 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4771 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4772 else
4773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4774 fi
4775 ;;
4776
4777osf3* | osf4* | osf5*)
4778 lt_cv_deplibs_check_method=pass_all
4779 ;;
4780
4781rdos*)
4782 lt_cv_deplibs_check_method=pass_all
4783 ;;
4784
4785solaris*)
4786 lt_cv_deplibs_check_method=pass_all
4787 ;;
4788
4789sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4790 lt_cv_deplibs_check_method=pass_all
4791 ;;
4792
4793sysv4 | sysv4.3*)
4794 case $host_vendor in
4795 motorola)
4796 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]'
4797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4798 ;;
4799 ncr)
4800 lt_cv_deplibs_check_method=pass_all
4801 ;;
4802 sequent)
4803 lt_cv_file_magic_cmd='/bin/file'
4804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4805 ;;
4806 sni)
4807 lt_cv_file_magic_cmd='/bin/file'
4808 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4809 lt_cv_file_magic_test_file=/lib/libc.so
4810 ;;
4811 siemens)
4812 lt_cv_deplibs_check_method=pass_all
4813 ;;
4814 pc)
4815 lt_cv_deplibs_check_method=pass_all
4816 ;;
4817 esac
4818 ;;
4819
4820tpf*)
4821 lt_cv_deplibs_check_method=pass_all
4822 ;;
4823esac
4824
4825fi
4826{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4827echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4828file_magic_cmd=$lt_cv_file_magic_cmd
4829deplibs_check_method=$lt_cv_deplibs_check_method
4830test -z "$deplibs_check_method" && deplibs_check_method=unknown
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843if test -n "$ac_tool_prefix"; then
4844 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4845set dummy ${ac_tool_prefix}ar; ac_word=$2
4846{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4848if test "${ac_cv_prog_AR+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4850else
4851 if test -n "$AR"; then
4852 ac_cv_prog_AR="$AR" # Let the user override the test.
4853else
4854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855for as_dir in $PATH
4856do
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_prog_AR="${ac_tool_prefix}ar"
4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 break 2
4864 fi
4865done
4866done
4867IFS=$as_save_IFS
4868
4869fi
4870fi
4871AR=$ac_cv_prog_AR
4872if test -n "$AR"; then
4873 { echo "$as_me:$LINENO: result: $AR" >&5
4874echo "${ECHO_T}$AR" >&6; }
4875else
4876 { echo "$as_me:$LINENO: result: no" >&5
4877echo "${ECHO_T}no" >&6; }
4878fi
4879
4880
4881fi
4882if test -z "$ac_cv_prog_AR"; then
4883 ac_ct_AR=$AR
4884 # Extract the first word of "ar", so it can be a program name with args.
4885set dummy ar; ac_word=$2
4886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4888if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891 if test -n "$ac_ct_AR"; then
4892 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4893else
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_ac_ct_AR="ar"
4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905done
4906done
4907IFS=$as_save_IFS
4908
4909fi
4910fi
4911ac_ct_AR=$ac_cv_prog_ac_ct_AR
4912if test -n "$ac_ct_AR"; then
4913 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4914echo "${ECHO_T}$ac_ct_AR" >&6; }
4915else
4916 { echo "$as_me:$LINENO: result: no" >&5
4917echo "${ECHO_T}no" >&6; }
4918fi
4919
4920 if test "x$ac_ct_AR" = x; then
4921 AR="false"
4922 else
4923 case $cross_compiling:$ac_tool_warned in
4924yes:)
4925{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4926whose name does not start with the host triplet. If you think this
4927configuration is useful to you, please write to autoconf@gnu.org." >&5
4928echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4929whose name does not start with the host triplet. If you think this
4930configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4931ac_tool_warned=yes ;;
4932esac
4933 AR=$ac_ct_AR
4934 fi
4935else
4936 AR="$ac_cv_prog_AR"
4937fi
4938
4939test -z "$AR" && AR=ar
4940test -z "$AR_FLAGS" && AR_FLAGS=cru
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952if test -n "$ac_tool_prefix"; then
4953 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4954set dummy ${ac_tool_prefix}strip; ac_word=$2
4955{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957if test "${ac_cv_prog_STRIP+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959else
4960 if test -n "$STRIP"; then
4961 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4962else
4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964for as_dir in $PATH
4965do
4966 IFS=$as_save_IFS
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 break 2
4973 fi
4974done
4975done
4976IFS=$as_save_IFS
4977
4978fi
4979fi
4980STRIP=$ac_cv_prog_STRIP
4981if test -n "$STRIP"; then
4982 { echo "$as_me:$LINENO: result: $STRIP" >&5
4983echo "${ECHO_T}$STRIP" >&6; }
4984else
4985 { echo "$as_me:$LINENO: result: no" >&5
4986echo "${ECHO_T}no" >&6; }
4987fi
4988
4989
4990fi
4991if test -z "$ac_cv_prog_STRIP"; then
4992 ac_ct_STRIP=$STRIP
4993 # Extract the first word of "strip", so it can be a program name with args.
4994set dummy strip; ac_word=$2
4995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4997if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000 if test -n "$ac_ct_STRIP"; then
5001 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5002else
5003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004for as_dir in $PATH
5005do
5006 IFS=$as_save_IFS
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010 ac_cv_prog_ac_ct_STRIP="strip"
5011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 break 2
5013 fi
5014done
5015done
5016IFS=$as_save_IFS
5017
5018fi
5019fi
5020ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5021if test -n "$ac_ct_STRIP"; then
5022 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5023echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5024else
5025 { echo "$as_me:$LINENO: result: no" >&5
5026echo "${ECHO_T}no" >&6; }
5027fi
5028
5029 if test "x$ac_ct_STRIP" = x; then
5030 STRIP=":"
5031 else
5032 case $cross_compiling:$ac_tool_warned in
5033yes:)
5034{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5035whose name does not start with the host triplet. If you think this
5036configuration is useful to you, please write to autoconf@gnu.org." >&5
5037echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5038whose name does not start with the host triplet. If you think this
5039configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5040ac_tool_warned=yes ;;
5041esac
5042 STRIP=$ac_ct_STRIP
5043 fi
5044else
5045 STRIP="$ac_cv_prog_STRIP"
5046fi
5047
5048test -z "$STRIP" && STRIP=:
5049
5050
5051
5052
5053
5054
5055if test -n "$ac_tool_prefix"; then
5056 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5057set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5058{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060if test "${ac_cv_prog_RANLIB+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063 if test -n "$RANLIB"; then
5064 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5076 fi
5077done
5078done
5079IFS=$as_save_IFS
5080
5081fi
5082fi
5083RANLIB=$ac_cv_prog_RANLIB
5084if test -n "$RANLIB"; then
5085 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5086echo "${ECHO_T}$RANLIB" >&6; }
5087else
5088 { echo "$as_me:$LINENO: result: no" >&5
5089echo "${ECHO_T}no" >&6; }
5090fi
5091
5092
5093fi
5094if test -z "$ac_cv_prog_RANLIB"; then
5095 ac_ct_RANLIB=$RANLIB
5096 # Extract the first word of "ranlib", so it can be a program name with args.
5097set dummy ranlib; ac_word=$2
5098{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5100if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102else
5103 if test -n "$ac_ct_RANLIB"; then
5104 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_prog_ac_ct_RANLIB="ranlib"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5116 fi
5117done
5118done
5119IFS=$as_save_IFS
5120
5121fi
5122fi
5123ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5124if test -n "$ac_ct_RANLIB"; then
5125 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5126echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5127else
5128 { echo "$as_me:$LINENO: result: no" >&5
5129echo "${ECHO_T}no" >&6; }
5130fi
5131
5132 if test "x$ac_ct_RANLIB" = x; then
5133 RANLIB=":"
5134 else
5135 case $cross_compiling:$ac_tool_warned in
5136yes:)
5137{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5138whose name does not start with the host triplet. If you think this
5139configuration is useful to you, please write to autoconf@gnu.org." >&5
5140echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5141whose name does not start with the host triplet. If you think this
5142configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5143ac_tool_warned=yes ;;
5144esac
5145 RANLIB=$ac_ct_RANLIB
5146 fi
5147else
5148 RANLIB="$ac_cv_prog_RANLIB"
5149fi
5150
5151test -z "$RANLIB" && RANLIB=:
5152
5153
5154
5155
5156
5157
5158# Determine commands to create old-style static archives.
5159old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5160old_postinstall_cmds='chmod 644 $oldlib'
5161old_postuninstall_cmds=
5162
5163if test -n "$RANLIB"; then
5164 case $host_os in
5165 openbsd*)
5166 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5167 ;;
5168 *)
5169 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5170 ;;
5171 esac
5172 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5173fi
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208# If no C compiler was specified, use CC.
5209LTCC=${LTCC-"$CC"}
5210
5211# If no C compiler flags were specified, use CFLAGS.
5212LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5213
5214# Allow CC to be a program name with arguments.
5215compiler=$CC
5216
5217
5218# Check for command to grab the raw symbol name followed by C symbol from nm.
5219{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5220echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5221if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223else
5224
5225# These are sane defaults that work on at least a few old systems.
5226# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5227
5228# Character class describing NM global symbol codes.
5229symcode='[BCDEGRST]'
5230
5231# Regexp to match symbols that can be accessed directly from C.
5232sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5233
5234# Define system-specific variables.
5235case $host_os in
5236aix*)
5237 symcode='[BCDT]'
5238 ;;
5239cygwin* | mingw* | pw32* | cegcc*)
5240 symcode='[ABCDGISTW]'
5241 ;;
5242hpux*)
5243 if test "$host_cpu" = ia64; then
5244 symcode='[ABCDEGRST]'
5245 fi
5246 ;;
5247irix* | nonstopux*)
5248 symcode='[BCDEGRST]'
5249 ;;
5250osf*)
5251 symcode='[BCDEGQRST]'
5252 ;;
5253solaris*)
5254 symcode='[BDRT]'
5255 ;;
5256sco3.2v5*)
5257 symcode='[DT]'
5258 ;;
5259sysv4.2uw2*)
5260 symcode='[DT]'
5261 ;;
5262sysv5* | sco5v6* | unixware* | OpenUNIX*)
5263 symcode='[ABDT]'
5264 ;;
5265sysv4)
5266 symcode='[DFNSTU]'
5267 ;;
5268esac
5269
5270# If we're using GNU nm, then use its standard symbol codes.
5271case `$NM -V 2>&1` in
5272*GNU* | *'with BFD'*)
5273 symcode='[ABCDGIRSTW]' ;;
5274esac
5275
5276# Transform an extracted symbol line into a proper C declaration.
5277# Some systems (esp. on ia64) link data and code symbols differently,
5278# so use this general approach.
5279lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5280
5281# Transform an extracted symbol line into symbol name and symbol address
5282lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5283lt_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'"
5284
5285# Handle CRLF in mingw tool chain
5286opt_cr=
5287case $build_os in
5288mingw*)
5289 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5290 ;;
5291esac
5292
5293# Try without a prefix underscore, then with it.
5294for ac_symprfx in "" "_"; do
5295
5296 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5297 symxfrm="\\1 $ac_symprfx\\2 \\2"
5298
5299 # Write the raw and C identifiers.
5300 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5301 # Fake it for dumpbin and say T for any non-static function
5302 # and D for any global variable.
5303 # Also find C++ and __fastcall symbols from MSVC++,
5304 # which start with @ or ?.
5305 lt_cv_sys_global_symbol_pipe="$AWK '"\
5306" {last_section=section; section=\$ 3};"\
5307" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5308" \$ 0!~/External *\|/{next};"\
5309" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5310" {if(hide[section]) next};"\
5311" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5312" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5313" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5314" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5315" ' prfx=^$ac_symprfx"
5316 else
5317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5318 fi
5319
5320 # Check to see that the pipe works correctly.
5321 pipe_works=no
5322
5323 rm -f conftest*
5324 cat > conftest.$ac_ext <<_LT_EOF
5325#ifdef __cplusplus
5326extern "C" {
5327#endif
5328char nm_test_var;
5329void nm_test_func(void);
5330void nm_test_func(void){}
5331#ifdef __cplusplus
5332}
5333#endif
5334int main(){nm_test_var='a';nm_test_func();return(0);}
5335_LT_EOF
5336
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338 (eval $ac_compile) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; then
5342 # Now try to grab the symbols.
5343 nlist=conftest.nm
5344 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5345 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } && test -s "$nlist"; then
5349 # Try sorting and uniquifying the output.
5350 if sort "$nlist" | uniq > "$nlist"T; then
5351 mv -f "$nlist"T "$nlist"
5352 else
5353 rm -f "$nlist"T
5354 fi
5355
5356 # Make sure that we snagged all the symbols we need.
5357 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5358 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5359 cat <<_LT_EOF > conftest.$ac_ext
5360#ifdef __cplusplus
5361extern "C" {
5362#endif
5363
5364_LT_EOF
5365 # Now generate the symbol file.
5366 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5367
5368 cat <<_LT_EOF >> conftest.$ac_ext
5369
5370/* The mapping between symbol names and symbols. */
5371const struct {
5372 const char *name;
5373 void *address;
5374}
5375lt__PROGRAM__LTX_preloaded_symbols[] =
5376{
5377 { "@PROGRAM@", (void *) 0 },
5378_LT_EOF
5379 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5380 cat <<\_LT_EOF >> conftest.$ac_ext
5381 {0, (void *) 0}
5382};
5383
5384/* This works around a problem in FreeBSD linker */
5385#ifdef FREEBSD_WORKAROUND
5386static const void *lt_preloaded_setup() {
5387 return lt__PROGRAM__LTX_preloaded_symbols;
5388}
5389#endif
5390
5391#ifdef __cplusplus
5392}
5393#endif
5394_LT_EOF
5395 # Now try linking the two files.
5396 mv conftest.$ac_objext conftstm.$ac_objext
5397 lt_save_LIBS="$LIBS"
5398 lt_save_CFLAGS="$CFLAGS"
5399 LIBS="conftstm.$ac_objext"
5400 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402 (eval $ac_link) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5406 pipe_works=yes
5407 fi
5408 LIBS="$lt_save_LIBS"
5409 CFLAGS="$lt_save_CFLAGS"
5410 else
5411 echo "cannot find nm_test_func in $nlist" >&5
5412 fi
5413 else
5414 echo "cannot find nm_test_var in $nlist" >&5
5415 fi
5416 else
5417 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5418 fi
5419 else
5420 echo "$progname: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5422 fi
5423 rm -rf conftest* conftst*
5424
5425 # Do not use the global_symbol_pipe unless it works.
5426 if test "$pipe_works" = yes; then
5427 break
5428 else
5429 lt_cv_sys_global_symbol_pipe=
5430 fi
5431done
5432
5433fi
5434
5435if test -z "$lt_cv_sys_global_symbol_pipe"; then
5436 lt_cv_sys_global_symbol_to_cdecl=
5437fi
5438if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5439 { echo "$as_me:$LINENO: result: failed" >&5
5440echo "${ECHO_T}failed" >&6; }
5441else
5442 { echo "$as_me:$LINENO: result: ok" >&5
5443echo "${ECHO_T}ok" >&6; }
5444fi
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468# Check whether --enable-libtool-lock was given.
5469if test "${enable_libtool_lock+set}" = set; then
5470 enableval=$enable_libtool_lock;
5471fi
5472
5473test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5474
5475# Some flags need to be propagated to the compiler or linker for good
5476# libtool support.
5477case $host in
5478ia64-*-hpux*)
5479 # Find out which ABI we are using.
5480 echo 'int i;' > conftest.$ac_ext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5482 (eval $ac_compile) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; then
5486 case `/usr/bin/file conftest.$ac_objext` in
5487 *ELF-32*)
5488 HPUX_IA64_MODE="32"
5489 ;;
5490 *ELF-64*)
5491 HPUX_IA64_MODE="64"
5492 ;;
5493 esac
5494 fi
5495 rm -rf conftest*
5496 ;;
5497*-*-irix6*)
5498 # Find out which ABI we are using.
5499 echo '#line 5499 "configure"' > conftest.$ac_ext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; then
5505 if test "$lt_cv_prog_gnu_ld" = yes; then
5506 case `/usr/bin/file conftest.$ac_objext` in
5507 *32-bit*)
5508 LD="${LD-ld} -melf32bsmip"
5509 ;;
5510 *N32*)
5511 LD="${LD-ld} -melf32bmipn32"
5512 ;;
5513 *64-bit*)
5514 LD="${LD-ld} -melf64bmip"
5515 ;;
5516 esac
5517 else
5518 case `/usr/bin/file conftest.$ac_objext` in
5519 *32-bit*)
5520 LD="${LD-ld} -32"
5521 ;;
5522 *N32*)
5523 LD="${LD-ld} -n32"
5524 ;;
5525 *64-bit*)
5526 LD="${LD-ld} -64"
5527 ;;
5528 esac
5529 fi
5530 fi
5531 rm -rf conftest*
5532 ;;
5533
5534x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5535s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5536 # Find out which ABI we are using.
5537 echo 'int i;' > conftest.$ac_ext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; then
5543 case `/usr/bin/file conftest.o` in
5544 *32-bit*)
5545 case $host in
5546 x86_64-*kfreebsd*-gnu)
5547 LD="${LD-ld} -m elf_i386_fbsd"
5548 ;;
5549 x86_64-*linux*)
5550 LD="${LD-ld} -m elf_i386"
5551 ;;
5552 ppc64-*linux*|powerpc64-*linux*)
5553 LD="${LD-ld} -m elf32ppclinux"
5554 ;;
5555 s390x-*linux*)
5556 LD="${LD-ld} -m elf_s390"
5557 ;;
5558 sparc64-*linux*)
5559 LD="${LD-ld} -m elf32_sparc"
5560 ;;
5561 esac
5562 ;;
5563 *64-bit*)
5564 case $host in
5565 x86_64-*kfreebsd*-gnu)
5566 LD="${LD-ld} -m elf_x86_64_fbsd"
5567 ;;
5568 x86_64-*linux*)
5569 LD="${LD-ld} -m elf_x86_64"
5570 ;;
5571 ppc*-*linux*|powerpc*-*linux*)
5572 LD="${LD-ld} -m elf64ppc"
5573 ;;
5574 s390*-*linux*|s390*-*tpf*)
5575 LD="${LD-ld} -m elf64_s390"
5576 ;;
5577 sparc*-*linux*)
5578 LD="${LD-ld} -m elf64_sparc"
5579 ;;
5580 esac
5581 ;;
5582 esac
5583 fi
5584 rm -rf conftest*
5585 ;;
5586
5587*-*-sco3.2v5*)
5588 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5589 SAVE_CFLAGS="$CFLAGS"
5590 CFLAGS="$CFLAGS -belf"
5591 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5592echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5593if test "${lt_cv_cc_needs_belf+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595else
5596 ac_ext=c
5597ac_cpp='$CPP $CPPFLAGS'
5598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600ac_compiler_gnu=$ac_cv_c_compiler_gnu
5601
5602 cat >conftest.$ac_ext <<_ACEOF
5603/* confdefs.h. */
5604_ACEOF
5605cat confdefs.h >>conftest.$ac_ext
5606cat >>conftest.$ac_ext <<_ACEOF
5607/* end confdefs.h. */
5608
5609int
5610main ()
5611{
5612
5613 ;
5614 return 0;
5615}
5616_ACEOF
5617rm -f conftest.$ac_objext conftest$ac_exeext
5618if { (ac_try="$ac_link"
5619case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622esac
5623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_link") 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest$ac_exeext &&
5634 $as_test_x conftest$ac_exeext; then
5635 lt_cv_cc_needs_belf=yes
5636else
5637 echo "$as_me: failed program was:" >&5
5638sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 lt_cv_cc_needs_belf=no
5641fi
5642
5643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5644 conftest$ac_exeext conftest.$ac_ext
5645 ac_ext=c
5646ac_cpp='$CPP $CPPFLAGS'
5647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650
5651fi
5652{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5653echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5654 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5655 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5656 CFLAGS="$SAVE_CFLAGS"
5657 fi
5658 ;;
5659sparc*-*solaris*)
5660 # Find out which ABI we are using.
5661 echo 'int i;' > conftest.$ac_ext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; then
5667 case `/usr/bin/file conftest.o` in
5668 *64-bit*)
5669 case $lt_cv_prog_gnu_ld in
5670 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5671 *)
5672 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5673 LD="${LD-ld} -64"
5674 fi
5675 ;;
5676 esac
5677 ;;
5678 esac
5679 fi
5680 rm -rf conftest*
5681 ;;
5682esac
5683
5684need_locks="$enable_libtool_lock"
5685
5686
5687 case $host_os in
5688 rhapsody* | darwin*)
5689 if test -n "$ac_tool_prefix"; then
5690 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5691set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5694if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5696else
5697 if test -n "$DSYMUTIL"; then
5698 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5699else
5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 break 2
5710 fi
5711done
5712done
5713IFS=$as_save_IFS
5714
5715fi
5716fi
5717DSYMUTIL=$ac_cv_prog_DSYMUTIL
5718if test -n "$DSYMUTIL"; then
5719 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5720echo "${ECHO_T}$DSYMUTIL" >&6; }
5721else
5722 { echo "$as_me:$LINENO: result: no" >&5
5723echo "${ECHO_T}no" >&6; }
5724fi
5725
5726
5727fi
5728if test -z "$ac_cv_prog_DSYMUTIL"; then
5729 ac_ct_DSYMUTIL=$DSYMUTIL
5730 # Extract the first word of "dsymutil", so it can be a program name with args.
5731set dummy dsymutil; ac_word=$2
5732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5734if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 if test -n "$ac_ct_DSYMUTIL"; then
5738 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5750 fi
5751done
5752done
5753IFS=$as_save_IFS
5754
5755fi
5756fi
5757ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5758if test -n "$ac_ct_DSYMUTIL"; then
5759 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5760echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5761else
5762 { echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6; }
5764fi
5765
5766 if test "x$ac_ct_DSYMUTIL" = x; then
5767 DSYMUTIL=":"
5768 else
5769 case $cross_compiling:$ac_tool_warned in
5770yes:)
5771{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5772whose name does not start with the host triplet. If you think this
5773configuration is useful to you, please write to autoconf@gnu.org." >&5
5774echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5775whose name does not start with the host triplet. If you think this
5776configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5777ac_tool_warned=yes ;;
5778esac
5779 DSYMUTIL=$ac_ct_DSYMUTIL
5780 fi
5781else
5782 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5783fi
5784
5785 if test -n "$ac_tool_prefix"; then
5786 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5787set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790if test "${ac_cv_prog_NMEDIT+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5792else
5793 if test -n "$NMEDIT"; then
5794 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5795else
5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH
5798do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807done
5808done
5809IFS=$as_save_IFS
5810
5811fi
5812fi
5813NMEDIT=$ac_cv_prog_NMEDIT
5814if test -n "$NMEDIT"; then
5815 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5816echo "${ECHO_T}$NMEDIT" >&6; }
5817else
5818 { echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6; }
5820fi
5821
5822
5823fi
5824if test -z "$ac_cv_prog_NMEDIT"; then
5825 ac_ct_NMEDIT=$NMEDIT
5826 # Extract the first word of "nmedit", so it can be a program name with args.
5827set dummy nmedit; ac_word=$2
5828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5830if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832else
5833 if test -n "$ac_ct_NMEDIT"; then
5834 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5835else
5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837for as_dir in $PATH
5838do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5846 fi
5847done
5848done
5849IFS=$as_save_IFS
5850
5851fi
5852fi
5853ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5854if test -n "$ac_ct_NMEDIT"; then
5855 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5856echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5857else
5858 { echo "$as_me:$LINENO: result: no" >&5
5859echo "${ECHO_T}no" >&6; }
5860fi
5861
5862 if test "x$ac_ct_NMEDIT" = x; then
5863 NMEDIT=":"
5864 else
5865 case $cross_compiling:$ac_tool_warned in
5866yes:)
5867{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5868whose name does not start with the host triplet. If you think this
5869configuration is useful to you, please write to autoconf@gnu.org." >&5
5870echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5871whose name does not start with the host triplet. If you think this
5872configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5873ac_tool_warned=yes ;;
5874esac
5875 NMEDIT=$ac_ct_NMEDIT
5876 fi
5877else
5878 NMEDIT="$ac_cv_prog_NMEDIT"
5879fi
5880
5881 if test -n "$ac_tool_prefix"; then
5882 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5883set dummy ${ac_tool_prefix}lipo; ac_word=$2
5884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5886if test "${ac_cv_prog_LIPO+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889 if test -n "$LIPO"; then
5890 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5891else
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5899 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5902 fi
5903done
5904done
5905IFS=$as_save_IFS
5906
5907fi
5908fi
5909LIPO=$ac_cv_prog_LIPO
5910if test -n "$LIPO"; then
5911 { echo "$as_me:$LINENO: result: $LIPO" >&5
5912echo "${ECHO_T}$LIPO" >&6; }
5913else
5914 { echo "$as_me:$LINENO: result: no" >&5
5915echo "${ECHO_T}no" >&6; }
5916fi
5917
5918
5919fi
5920if test -z "$ac_cv_prog_LIPO"; then
5921 ac_ct_LIPO=$LIPO
5922 # Extract the first word of "lipo", so it can be a program name with args.
5923set dummy lipo; ac_word=$2
5924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929 if test -n "$ac_ct_LIPO"; then
5930 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5931else
5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933for as_dir in $PATH
5934do
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_prog_ac_ct_LIPO="lipo"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943done
5944done
5945IFS=$as_save_IFS
5946
5947fi
5948fi
5949ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5950if test -n "$ac_ct_LIPO"; then
5951 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5952echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5953else
5954 { echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6; }
5956fi
5957
5958 if test "x$ac_ct_LIPO" = x; then
5959 LIPO=":"
5960 else
5961 case $cross_compiling:$ac_tool_warned in
5962yes:)
5963{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5964whose name does not start with the host triplet. If you think this
5965configuration is useful to you, please write to autoconf@gnu.org." >&5
5966echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5967whose name does not start with the host triplet. If you think this
5968configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5969ac_tool_warned=yes ;;
5970esac
5971 LIPO=$ac_ct_LIPO
5972 fi
5973else
5974 LIPO="$ac_cv_prog_LIPO"
5975fi
5976
5977 if test -n "$ac_tool_prefix"; then
5978 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5979set dummy ${ac_tool_prefix}otool; ac_word=$2
5980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982if test "${ac_cv_prog_OTOOL+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985 if test -n "$OTOOL"; then
5986 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5987else
5988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991 IFS=$as_save_IFS
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 break 2
5998 fi
5999done
6000done
6001IFS=$as_save_IFS
6002
6003fi
6004fi
6005OTOOL=$ac_cv_prog_OTOOL
6006if test -n "$OTOOL"; then
6007 { echo "$as_me:$LINENO: result: $OTOOL" >&5
6008echo "${ECHO_T}$OTOOL" >&6; }
6009else
6010 { echo "$as_me:$LINENO: result: no" >&5
6011echo "${ECHO_T}no" >&6; }
6012fi
6013
6014
6015fi
6016if test -z "$ac_cv_prog_OTOOL"; then
6017 ac_ct_OTOOL=$OTOOL
6018 # Extract the first word of "otool", so it can be a program name with args.
6019set dummy otool; ac_word=$2
6020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6022if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6023 echo $ECHO_N "(cached) $ECHO_C" >&6
6024else
6025 if test -n "$ac_ct_OTOOL"; then
6026 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6027else
6028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029for as_dir in $PATH
6030do
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6035 ac_cv_prog_ac_ct_OTOOL="otool"
6036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6038 fi
6039done
6040done
6041IFS=$as_save_IFS
6042
6043fi
6044fi
6045ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6046if test -n "$ac_ct_OTOOL"; then
6047 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6048echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6049else
6050 { echo "$as_me:$LINENO: result: no" >&5
6051echo "${ECHO_T}no" >&6; }
6052fi
6053
6054 if test "x$ac_ct_OTOOL" = x; then
6055 OTOOL=":"
6056 else
6057 case $cross_compiling:$ac_tool_warned in
6058yes:)
6059{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6060whose name does not start with the host triplet. If you think this
6061configuration is useful to you, please write to autoconf@gnu.org." >&5
6062echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6063whose name does not start with the host triplet. If you think this
6064configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6065ac_tool_warned=yes ;;
6066esac
6067 OTOOL=$ac_ct_OTOOL
6068 fi
6069else
6070 OTOOL="$ac_cv_prog_OTOOL"
6071fi
6072
6073 if test -n "$ac_tool_prefix"; then
6074 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6075set dummy ${ac_tool_prefix}otool64; ac_word=$2
6076{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6078if test "${ac_cv_prog_OTOOL64+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081 if test -n "$OTOOL64"; then
6082 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6083else
6084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085for as_dir in $PATH
6086do
6087 IFS=$as_save_IFS
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 break 2
6094 fi
6095done
6096done
6097IFS=$as_save_IFS
6098
6099fi
6100fi
6101OTOOL64=$ac_cv_prog_OTOOL64
6102if test -n "$OTOOL64"; then
6103 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6104echo "${ECHO_T}$OTOOL64" >&6; }
6105else
6106 { echo "$as_me:$LINENO: result: no" >&5
6107echo "${ECHO_T}no" >&6; }
6108fi
6109
6110
6111fi
6112if test -z "$ac_cv_prog_OTOOL64"; then
6113 ac_ct_OTOOL64=$OTOOL64
6114 # Extract the first word of "otool64", so it can be a program name with args.
6115set dummy otool64; ac_word=$2
6116{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6118if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6120else
6121 if test -n "$ac_ct_OTOOL64"; then
6122 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6123else
6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125for as_dir in $PATH
6126do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_ac_ct_OTOOL64="otool64"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135done
6136done
6137IFS=$as_save_IFS
6138
6139fi
6140fi
6141ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6142if test -n "$ac_ct_OTOOL64"; then
6143 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6144echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6145else
6146 { echo "$as_me:$LINENO: result: no" >&5
6147echo "${ECHO_T}no" >&6; }
6148fi
6149
6150 if test "x$ac_ct_OTOOL64" = x; then
6151 OTOOL64=":"
6152 else
6153 case $cross_compiling:$ac_tool_warned in
6154yes:)
6155{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6156whose name does not start with the host triplet. If you think this
6157configuration is useful to you, please write to autoconf@gnu.org." >&5
6158echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6159whose name does not start with the host triplet. If you think this
6160configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6161ac_tool_warned=yes ;;
6162esac
6163 OTOOL64=$ac_ct_OTOOL64
6164 fi
6165else
6166 OTOOL64="$ac_cv_prog_OTOOL64"
6167fi
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6196echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6197if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200 lt_cv_apple_cc_single_mod=no
6201 if test -z "${LT_MULTI_MODULE}"; then
6202 # By default we will add the -single_module flag. You can override
6203 # by either setting the environment variable LT_MULTI_MODULE
6204 # non-empty at configure time, or by adding -multi_module to the
6205 # link flags.
6206 rm -rf libconftest.dylib*
6207 echo "int foo(void){return 1;}" > conftest.c
6208 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6209-dynamiclib -Wl,-single_module conftest.c" >&5
6210 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6211 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6212 _lt_result=$?
6213 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6214 lt_cv_apple_cc_single_mod=yes
6215 else
6216 cat conftest.err >&5
6217 fi
6218 rm -rf libconftest.dylib*
6219 rm -f conftest.*
6220 fi
6221fi
6222{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6223echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6224 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6225echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6226if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228else
6229 lt_cv_ld_exported_symbols_list=no
6230 save_LDFLAGS=$LDFLAGS
6231 echo "_main" > conftest.sym
6232 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6233 cat >conftest.$ac_ext <<_ACEOF
6234/* confdefs.h. */
6235_ACEOF
6236cat confdefs.h >>conftest.$ac_ext
6237cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h. */
6239
6240int
6241main ()
6242{
6243
6244 ;
6245 return 0;
6246}
6247_ACEOF
6248rm -f conftest.$ac_objext conftest$ac_exeext
6249if { (ac_try="$ac_link"
6250case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253esac
6254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_link") 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } && {
6262 test -z "$ac_c_werror_flag" ||
6263 test ! -s conftest.err
6264 } && test -s conftest$ac_exeext &&
6265 $as_test_x conftest$ac_exeext; then
6266 lt_cv_ld_exported_symbols_list=yes
6267else
6268 echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271 lt_cv_ld_exported_symbols_list=no
6272fi
6273
6274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6275 conftest$ac_exeext conftest.$ac_ext
6276 LDFLAGS="$save_LDFLAGS"
6277
6278fi
6279{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6280echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6281 case $host_os in
6282 rhapsody* | darwin1.[012])
6283 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6284 darwin1.*)
6285 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6286 darwin*) # darwin 5.x on
6287 # if running on 10.5 or later, the deployment target defaults
6288 # to the OS version, if on x86, and 10.4, the deployment
6289 # target defaults to 10.4. Don't you love it?
6290 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6291 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6292 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6293 10.[012]*)
6294 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6295 10.*)
6296 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6297 esac
6298 ;;
6299 esac
6300 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6301 _lt_dar_single_mod='$single_module'
6302 fi
6303 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6304 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6305 else
6306 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6307 fi
6308 if test "$DSYMUTIL" != ":"; then
6309 _lt_dsymutil='~$DSYMUTIL $lib || :'
6310 else
6311 _lt_dsymutil=
6312 fi
6313 ;;
6314 esac
6315
6316ac_ext=c
6317ac_cpp='$CPP $CPPFLAGS'
6318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6320ac_compiler_gnu=$ac_cv_c_compiler_gnu
6321{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6322echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6323# On Suns, sometimes $CPP names a directory.
6324if test -n "$CPP" && test -d "$CPP"; then
6325 CPP=
6326fi
6327if test -z "$CPP"; then
6328 if test "${ac_cv_prog_CPP+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6330else
6331 # Double quotes because CPP needs to be expanded
6332 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6333 do
6334 ac_preproc_ok=false
6335for ac_c_preproc_warn_flag in '' yes
6336do
6337 # Use a header file that comes with gcc, so configuring glibc
6338 # with a fresh cross-compiler works.
6339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6340 # <limits.h> exists even on freestanding compilers.
6341 # On the NeXT, cc -E runs the code through the compiler's parser,
6342 # not just through cpp. "Syntax error" is here to catch this case.
6343 cat >conftest.$ac_ext <<_ACEOF
6344/* confdefs.h. */
6345_ACEOF
6346cat confdefs.h >>conftest.$ac_ext
6347cat >>conftest.$ac_ext <<_ACEOF
6348/* end confdefs.h. */
6349#ifdef __STDC__
6350# include <limits.h>
6351#else
6352# include <assert.h>
6353#endif
6354 Syntax error
6355_ACEOF
6356if { (ac_try="$ac_cpp conftest.$ac_ext"
6357case "(($ac_try" in
6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6359 *) ac_try_echo=$ac_try;;
6360esac
6361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6363 ac_status=$?
6364 grep -v '^ *+' conftest.er1 >conftest.err
6365 rm -f conftest.er1
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } >/dev/null && {
6369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6370 test ! -s conftest.err
6371 }; then
6372 :
6373else
6374 echo "$as_me: failed program was:" >&5
6375sed 's/^/| /' conftest.$ac_ext >&5
6376
6377 # Broken: fails on valid input.
6378continue
6379fi
6380
6381rm -f conftest.err conftest.$ac_ext
6382
6383 # OK, works on sane cases. Now check whether nonexistent headers
6384 # can be detected and how.
6385 cat >conftest.$ac_ext <<_ACEOF
6386/* confdefs.h. */
6387_ACEOF
6388cat confdefs.h >>conftest.$ac_ext
6389cat >>conftest.$ac_ext <<_ACEOF
6390/* end confdefs.h. */
6391#include <ac_nonexistent.h>
6392_ACEOF
6393if { (ac_try="$ac_cpp conftest.$ac_ext"
6394case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6397esac
6398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } >/dev/null && {
6406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6407 test ! -s conftest.err
6408 }; then
6409 # Broken: success on invalid input.
6410continue
6411else
6412 echo "$as_me: failed program was:" >&5
6413sed 's/^/| /' conftest.$ac_ext >&5
6414
6415 # Passes both tests.
6416ac_preproc_ok=:
6417break
6418fi
6419
6420rm -f conftest.err conftest.$ac_ext
6421
6422done
6423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6424rm -f conftest.err conftest.$ac_ext
6425if $ac_preproc_ok; then
6426 break
6427fi
6428
6429 done
6430 ac_cv_prog_CPP=$CPP
6431
6432fi
6433 CPP=$ac_cv_prog_CPP
6434else
6435 ac_cv_prog_CPP=$CPP
6436fi
6437{ echo "$as_me:$LINENO: result: $CPP" >&5
6438echo "${ECHO_T}$CPP" >&6; }
6439ac_preproc_ok=false
6440for ac_c_preproc_warn_flag in '' yes
6441do
6442 # Use a header file that comes with gcc, so configuring glibc
6443 # with a fresh cross-compiler works.
6444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6445 # <limits.h> exists even on freestanding compilers.
6446 # On the NeXT, cc -E runs the code through the compiler's parser,
6447 # not just through cpp. "Syntax error" is here to catch this case.
6448 cat >conftest.$ac_ext <<_ACEOF
6449/* confdefs.h. */
6450_ACEOF
6451cat confdefs.h >>conftest.$ac_ext
6452cat >>conftest.$ac_ext <<_ACEOF
6453/* end confdefs.h. */
6454#ifdef __STDC__
6455# include <limits.h>
6456#else
6457# include <assert.h>
6458#endif
6459 Syntax error
6460_ACEOF
6461if { (ac_try="$ac_cpp conftest.$ac_ext"
6462case "(($ac_try" in
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6465esac
6466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null && {
6474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6475 test ! -s conftest.err
6476 }; then
6477 :
6478else
6479 echo "$as_me: failed program was:" >&5
6480sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 # Broken: fails on valid input.
6483continue
6484fi
6485
6486rm -f conftest.err conftest.$ac_ext
6487
6488 # OK, works on sane cases. Now check whether nonexistent headers
6489 # can be detected and how.
6490 cat >conftest.$ac_ext <<_ACEOF
6491/* confdefs.h. */
6492_ACEOF
6493cat confdefs.h >>conftest.$ac_ext
6494cat >>conftest.$ac_ext <<_ACEOF
6495/* end confdefs.h. */
6496#include <ac_nonexistent.h>
6497_ACEOF
6498if { (ac_try="$ac_cpp conftest.$ac_ext"
6499case "(($ac_try" in
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6502esac
6503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6505 ac_status=$?
6506 grep -v '^ *+' conftest.er1 >conftest.err
6507 rm -f conftest.er1
6508 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } >/dev/null && {
6511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6512 test ! -s conftest.err
6513 }; then
6514 # Broken: success on invalid input.
6515continue
6516else
6517 echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
6519
6520 # Passes both tests.
6521ac_preproc_ok=:
6522break
6523fi
6524
6525rm -f conftest.err conftest.$ac_ext
6526
6527done
6528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6529rm -f conftest.err conftest.$ac_ext
6530if $ac_preproc_ok; then
6531 :
6532else
6533 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6534See \`config.log' for more details." >&5
6535echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6536See \`config.log' for more details." >&2;}
6537 { (exit 1); exit 1; }; }
6538fi
6539
6540ac_ext=c
6541ac_cpp='$CPP $CPPFLAGS'
6542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544ac_compiler_gnu=$ac_cv_c_compiler_gnu
6545
6546
6547{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6548echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6549if test "${ac_cv_header_stdc+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551else
6552 cat >conftest.$ac_ext <<_ACEOF
6553/* confdefs.h. */
6554_ACEOF
6555cat confdefs.h >>conftest.$ac_ext
6556cat >>conftest.$ac_ext <<_ACEOF
6557/* end confdefs.h. */
6558#include <stdlib.h>
6559#include <stdarg.h>
6560#include <string.h>
6561#include <float.h>
6562
6563int
6564main ()
6565{
6566
6567 ;
6568 return 0;
6569}
6570_ACEOF
6571rm -f conftest.$ac_objext
6572if { (ac_try="$ac_compile"
6573case "(($ac_try" in
6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6576esac
6577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6578 (eval "$ac_compile") 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } && {
6585 test -z "$ac_c_werror_flag" ||
6586 test ! -s conftest.err
6587 } && test -s conftest.$ac_objext; then
6588 ac_cv_header_stdc=yes
6589else
6590 echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_cv_header_stdc=no
6594fi
6595
6596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597
6598if test $ac_cv_header_stdc = yes; then
6599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6600 cat >conftest.$ac_ext <<_ACEOF
6601/* confdefs.h. */
6602_ACEOF
6603cat confdefs.h >>conftest.$ac_ext
6604cat >>conftest.$ac_ext <<_ACEOF
6605/* end confdefs.h. */
6606#include <string.h>
6607
6608_ACEOF
6609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6610 $EGREP "memchr" >/dev/null 2>&1; then
6611 :
6612else
6613 ac_cv_header_stdc=no
6614fi
6615rm -f conftest*
6616
6617fi
6618
6619if test $ac_cv_header_stdc = yes; then
6620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6621 cat >conftest.$ac_ext <<_ACEOF
6622/* confdefs.h. */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h. */
6627#include <stdlib.h>
6628
6629_ACEOF
6630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6631 $EGREP "free" >/dev/null 2>&1; then
6632 :
6633else
6634 ac_cv_header_stdc=no
6635fi
6636rm -f conftest*
6637
6638fi
6639
6640if test $ac_cv_header_stdc = yes; then
6641 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6642 if test "$cross_compiling" = yes; then
6643 :
6644else
6645 cat >conftest.$ac_ext <<_ACEOF
6646/* confdefs.h. */
6647_ACEOF
6648cat confdefs.h >>conftest.$ac_ext
6649cat >>conftest.$ac_ext <<_ACEOF
6650/* end confdefs.h. */
6651#include <ctype.h>
6652#include <stdlib.h>
6653#if ((' ' & 0x0FF) == 0x020)
6654# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6655# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6656#else
6657# define ISLOWER(c) \
6658 (('a' <= (c) && (c) <= 'i') \
6659 || ('j' <= (c) && (c) <= 'r') \
6660 || ('s' <= (c) && (c) <= 'z'))
6661# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6662#endif
6663
6664#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6665int
6666main ()
6667{
6668 int i;
6669 for (i = 0; i < 256; i++)
6670 if (XOR (islower (i), ISLOWER (i))
6671 || toupper (i) != TOUPPER (i))
6672 return 2;
6673 return 0;
6674}
6675_ACEOF
6676rm -f conftest$ac_exeext
6677if { (ac_try="$ac_link"
6678case "(($ac_try" in
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6681esac
6682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_link") 2>&5
6684 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6687 { (case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6690esac
6691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692 (eval "$ac_try") 2>&5
6693 ac_status=$?
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); }; }; then
6696 :
6697else
6698 echo "$as_me: program exited with status $ac_status" >&5
6699echo "$as_me: failed program was:" >&5
6700sed 's/^/| /' conftest.$ac_ext >&5
6701
6702( exit $ac_status )
6703ac_cv_header_stdc=no
6704fi
6705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6706fi
6707
6708
6709fi
6710fi
6711{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6712echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6713if test $ac_cv_header_stdc = yes; then
6714
6715cat >>confdefs.h <<\_ACEOF
6716#define STDC_HEADERS 1
6717_ACEOF
6718
6719fi
6720
6721# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6732 inttypes.h stdint.h unistd.h
6733do
6734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6735{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739else
6740 cat >conftest.$ac_ext <<_ACEOF
6741/* confdefs.h. */
6742_ACEOF
6743cat confdefs.h >>conftest.$ac_ext
6744cat >>conftest.$ac_ext <<_ACEOF
6745/* end confdefs.h. */
6746$ac_includes_default
6747
6748#include <$ac_header>
6749_ACEOF
6750rm -f conftest.$ac_objext
6751if { (ac_try="$ac_compile"
6752case "(($ac_try" in
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6755esac
6756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_compile") 2>conftest.er1
6758 ac_status=$?
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } && {
6764 test -z "$ac_c_werror_flag" ||
6765 test ! -s conftest.err
6766 } && test -s conftest.$ac_objext; then
6767 eval "$as_ac_Header=yes"
6768else
6769 echo "$as_me: failed program was:" >&5
6770sed 's/^/| /' conftest.$ac_ext >&5
6771
6772 eval "$as_ac_Header=no"
6773fi
6774
6775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776fi
6777ac_res=`eval echo '${'$as_ac_Header'}'`
6778 { echo "$as_me:$LINENO: result: $ac_res" >&5
6779echo "${ECHO_T}$ac_res" >&6; }
6780if test `eval echo '${'$as_ac_Header'}'` = yes; then
6781 cat >>confdefs.h <<_ACEOF
6782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6783_ACEOF
6784
6785fi
6786
6787done
6788
6789
6790
6791for ac_header in dlfcn.h
6792do
6793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6794{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798else
6799 cat >conftest.$ac_ext <<_ACEOF
6800/* confdefs.h. */
6801_ACEOF
6802cat confdefs.h >>conftest.$ac_ext
6803cat >>conftest.$ac_ext <<_ACEOF
6804/* end confdefs.h. */
6805$ac_includes_default
6806
6807#include <$ac_header>
6808_ACEOF
6809rm -f conftest.$ac_objext
6810if { (ac_try="$ac_compile"
6811case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814esac
6815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.$ac_objext; then
6826 eval "$as_ac_Header=yes"
6827else
6828 echo "$as_me: failed program was:" >&5
6829sed 's/^/| /' conftest.$ac_ext >&5
6830
6831 eval "$as_ac_Header=no"
6832fi
6833
6834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835fi
6836ac_res=`eval echo '${'$as_ac_Header'}'`
6837 { echo "$as_me:$LINENO: result: $ac_res" >&5
6838echo "${ECHO_T}$ac_res" >&6; }
6839if test `eval echo '${'$as_ac_Header'}'` = yes; then
6840 cat >>confdefs.h <<_ACEOF
6841#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6842_ACEOF
6843
6844fi
6845
6846done
6847
6848
6849
6850# Set options
6851
6852
6853
6854 enable_dlopen=no
6855
6856
6857 enable_win32_dll=no
6858
6859
6860 # Check whether --enable-shared was given.
6861if test "${enable_shared+set}" = set; then
6862 enableval=$enable_shared; p=${PACKAGE-default}
6863 case $enableval in
6864 yes) enable_shared=yes ;;
6865 no) enable_shared=no ;;
6866 *)
6867 enable_shared=no
6868 # Look at the argument we got. We use all the common list separators.
6869 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6870 for pkg in $enableval; do
6871 IFS="$lt_save_ifs"
6872 if test "X$pkg" = "X$p"; then
6873 enable_shared=yes
6874 fi
6875 done
6876 IFS="$lt_save_ifs"
6877 ;;
6878 esac
6879else
6880 enable_shared=yes
6881fi
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891 # Check whether --enable-static was given.
6892if test "${enable_static+set}" = set; then
6893 enableval=$enable_static; p=${PACKAGE-default}
6894 case $enableval in
6895 yes) enable_static=yes ;;
6896 no) enable_static=no ;;
6897 *)
6898 enable_static=no
6899 # Look at the argument we got. We use all the common list separators.
6900 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6901 for pkg in $enableval; do
6902 IFS="$lt_save_ifs"
6903 if test "X$pkg" = "X$p"; then
6904 enable_static=yes
6905 fi
6906 done
6907 IFS="$lt_save_ifs"
6908 ;;
6909 esac
6910else
6911 enable_static=yes
6912fi
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923# Check whether --with-pic was given.
6924if test "${with_pic+set}" = set; then
6925 withval=$with_pic; pic_mode="$withval"
6926else
6927 pic_mode=default
6928fi
6929
6930
6931test -z "$pic_mode" && pic_mode=default
6932
6933
6934
6935
6936
6937
6938
6939 # Check whether --enable-fast-install was given.
6940if test "${enable_fast_install+set}" = set; then
6941 enableval=$enable_fast_install; p=${PACKAGE-default}
6942 case $enableval in
6943 yes) enable_fast_install=yes ;;
6944 no) enable_fast_install=no ;;
6945 *)
6946 enable_fast_install=no
6947 # Look at the argument we got. We use all the common list separators.
6948 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6949 for pkg in $enableval; do
6950 IFS="$lt_save_ifs"
6951 if test "X$pkg" = "X$p"; then
6952 enable_fast_install=yes
6953 fi
6954 done
6955 IFS="$lt_save_ifs"
6956 ;;
6957 esac
6958else
6959 enable_fast_install=yes
6960fi
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972# This can be used to rebuild libtool when needed
6973LIBTOOL_DEPS="$ltmain"
6974
6975# Always use our own libtool.
6976LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002test -z "$LN_S" && LN_S="ln -s"
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017if test -n "${ZSH_VERSION+set}" ; then
7018 setopt NO_GLOB_SUBST
7019fi
7020
7021{ echo "$as_me:$LINENO: checking for objdir" >&5
7022echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7023if test "${lt_cv_objdir+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026 rm -f .libs 2>/dev/null
7027mkdir .libs 2>/dev/null
7028if test -d .libs; then
7029 lt_cv_objdir=.libs
7030else
7031 # MS-DOS does not allow filenames that begin with a dot.
7032 lt_cv_objdir=_libs
7033fi
7034rmdir .libs 2>/dev/null
7035fi
7036{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7037echo "${ECHO_T}$lt_cv_objdir" >&6; }
7038objdir=$lt_cv_objdir
7039
7040
7041
7042
7043
7044cat >>confdefs.h <<_ACEOF
7045#define LT_OBJDIR "$lt_cv_objdir/"
7046_ACEOF
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064case $host_os in
7065aix3*)
7066 # AIX sometimes has problems with the GCC collect2 program. For some
7067 # reason, if we set the COLLECT_NAMES environment variable, the problems
7068 # vanish in a puff of smoke.
7069 if test "X${COLLECT_NAMES+set}" != Xset; then
7070 COLLECT_NAMES=
7071 export COLLECT_NAMES
7072 fi
7073 ;;
7074esac
7075
7076# Sed substitution that helps us do robust quoting. It backslashifies
7077# metacharacters that are still active within double-quoted strings.
7078sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7079
7080# Same as above, but do not quote variable references.
7081double_quote_subst='s/\(["`\\]\)/\\\1/g'
7082
7083# Sed substitution to delay expansion of an escaped shell variable in a
7084# double_quote_subst'ed string.
7085delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7086
7087# Sed substitution to delay expansion of an escaped single quote.
7088delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7089
7090# Sed substitution to avoid accidental globbing in evaled expressions
7091no_glob_subst='s/\*/\\\*/g'
7092
7093# Global variables:
7094ofile=libtool
7095can_build_shared=yes
7096
7097# All known linkers require a `.a' archive for static linking (except MSVC,
7098# which needs '.lib').
7099libext=a
7100
7101with_gnu_ld="$lt_cv_prog_gnu_ld"
7102
7103old_CC="$CC"
7104old_CFLAGS="$CFLAGS"
7105
7106# Set sane defaults for various variables
7107test -z "$CC" && CC=cc
7108test -z "$LTCC" && LTCC=$CC
7109test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7110test -z "$LD" && LD=ld
7111test -z "$ac_objext" && ac_objext=o
7112
7113for cc_temp in $compiler""; do
7114 case $cc_temp in
7115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7117 \-*) ;;
7118 *) break;;
7119 esac
7120done
7121cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7122
7123
7124# Only perform the check for file, if the check method requires it
7125test -z "$MAGIC_CMD" && MAGIC_CMD=file
7126case $deplibs_check_method in
7127file_magic*)
7128 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7129 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7130echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7131if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134 case $MAGIC_CMD in
7135[\\/*] | ?:[\\/]*)
7136 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7137 ;;
7138*)
7139 lt_save_MAGIC_CMD="$MAGIC_CMD"
7140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7141 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7142 for ac_dir in $ac_dummy; do
7143 IFS="$lt_save_ifs"
7144 test -z "$ac_dir" && ac_dir=.
7145 if test -f $ac_dir/${ac_tool_prefix}file; then
7146 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7147 if test -n "$file_magic_test_file"; then
7148 case $deplibs_check_method in
7149 "file_magic "*)
7150 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7152 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7153 $EGREP "$file_magic_regex" > /dev/null; then
7154 :
7155 else
7156 cat <<_LT_EOF 1>&2
7157
7158*** Warning: the command libtool uses to detect shared libraries,
7159*** $file_magic_cmd, produces output that libtool cannot recognize.
7160*** The result is that libtool may fail to recognize shared libraries
7161*** as such. This will affect the creation of libtool libraries that
7162*** depend on shared libraries, but programs linked with such libtool
7163*** libraries will work regardless of this problem. Nevertheless, you
7164*** may want to report the problem to your system manager and/or to
7165*** bug-libtool@gnu.org
7166
7167_LT_EOF
7168 fi ;;
7169 esac
7170 fi
7171 break
7172 fi
7173 done
7174 IFS="$lt_save_ifs"
7175 MAGIC_CMD="$lt_save_MAGIC_CMD"
7176 ;;
7177esac
7178fi
7179
7180MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7181if test -n "$MAGIC_CMD"; then
7182 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7183echo "${ECHO_T}$MAGIC_CMD" >&6; }
7184else
7185 { echo "$as_me:$LINENO: result: no" >&5
7186echo "${ECHO_T}no" >&6; }
7187fi
7188
7189
7190
7191
7192
7193if test -z "$lt_cv_path_MAGIC_CMD"; then
7194 if test -n "$ac_tool_prefix"; then
7195 { echo "$as_me:$LINENO: checking for file" >&5
7196echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7197if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200 case $MAGIC_CMD in
7201[\\/*] | ?:[\\/]*)
7202 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7203 ;;
7204*)
7205 lt_save_MAGIC_CMD="$MAGIC_CMD"
7206 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7207 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7208 for ac_dir in $ac_dummy; do
7209 IFS="$lt_save_ifs"
7210 test -z "$ac_dir" && ac_dir=.
7211 if test -f $ac_dir/file; then
7212 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7213 if test -n "$file_magic_test_file"; then
7214 case $deplibs_check_method in
7215 "file_magic "*)
7216 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7218 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7219 $EGREP "$file_magic_regex" > /dev/null; then
7220 :
7221 else
7222 cat <<_LT_EOF 1>&2
7223
7224*** Warning: the command libtool uses to detect shared libraries,
7225*** $file_magic_cmd, produces output that libtool cannot recognize.
7226*** The result is that libtool may fail to recognize shared libraries
7227*** as such. This will affect the creation of libtool libraries that
7228*** depend on shared libraries, but programs linked with such libtool
7229*** libraries will work regardless of this problem. Nevertheless, you
7230*** may want to report the problem to your system manager and/or to
7231*** bug-libtool@gnu.org
7232
7233_LT_EOF
7234 fi ;;
7235 esac
7236 fi
7237 break
7238 fi
7239 done
7240 IFS="$lt_save_ifs"
7241 MAGIC_CMD="$lt_save_MAGIC_CMD"
7242 ;;
7243esac
7244fi
7245
7246MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7247if test -n "$MAGIC_CMD"; then
7248 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7249echo "${ECHO_T}$MAGIC_CMD" >&6; }
7250else
7251 { echo "$as_me:$LINENO: result: no" >&5
7252echo "${ECHO_T}no" >&6; }
7253fi
7254
7255
7256 else
7257 MAGIC_CMD=:
7258 fi
7259fi
7260
7261 fi
7262 ;;
7263esac
7264
7265# Use C for the default configuration in the libtool script
7266
7267lt_save_CC="$CC"
7268ac_ext=c
7269ac_cpp='$CPP $CPPFLAGS'
7270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272ac_compiler_gnu=$ac_cv_c_compiler_gnu
7273
7274
7275# Source file extension for C test sources.
7276ac_ext=c
7277
7278# Object file extension for compiled C test sources.
7279objext=o
7280objext=$objext
7281
7282# Code to be used in simple compile tests
7283lt_simple_compile_test_code="int some_variable = 0;"
7284
7285# Code to be used in simple link tests
7286lt_simple_link_test_code='int main(){return(0);}'
7287
7288
7289
7290
7291
7292
7293
7294# If no C compiler was specified, use CC.
7295LTCC=${LTCC-"$CC"}
7296
7297# If no C compiler flags were specified, use CFLAGS.
7298LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7299
7300# Allow CC to be a program name with arguments.
7301compiler=$CC
7302
7303# Save the default compiler, since it gets overwritten when the other
7304# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7305compiler_DEFAULT=$CC
7306
7307# save warnings/boilerplate of simple test code
7308ac_outfile=conftest.$ac_objext
7309echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7310eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7311_lt_compiler_boilerplate=`cat conftest.err`
7312$RM conftest*
7313
7314ac_outfile=conftest.$ac_objext
7315echo "$lt_simple_link_test_code" >conftest.$ac_ext
7316eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7317_lt_linker_boilerplate=`cat conftest.err`
7318$RM -r conftest*
7319
7320
7321if test -n "$compiler"; then
7322
7323lt_prog_compiler_no_builtin_flag=
7324
7325if test "$GCC" = yes; then
7326 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7327
7328 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7329echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7330if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333 lt_cv_prog_compiler_rtti_exceptions=no
7334 ac_outfile=conftest.$ac_objext
7335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7336 lt_compiler_flag="-fno-rtti -fno-exceptions"
7337 # Insert the option either (1) after the last *FLAGS variable, or
7338 # (2) before a word containing "conftest.", or (3) at the end.
7339 # Note that $ac_compile itself does not contain backslashes and begins
7340 # with a dollar sign (not a hyphen), so the echo should work correctly.
7341 # The option is referenced via a variable to avoid confusing sed.
7342 lt_compile=`echo "$ac_compile" | $SED \
7343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7345 -e 's:$: $lt_compiler_flag:'`
7346 (eval echo "\"\$as_me:7346: $lt_compile\"" >&5)
7347 (eval "$lt_compile" 2>conftest.err)
7348 ac_status=$?
7349 cat conftest.err >&5
7350 echo "$as_me:7350: \$? = $ac_status" >&5
7351 if (exit $ac_status) && test -s "$ac_outfile"; then
7352 # The compiler can only warn and ignore the option if not recognized
7353 # So say no if there are warnings other than the usual output.
7354 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7357 lt_cv_prog_compiler_rtti_exceptions=yes
7358 fi
7359 fi
7360 $RM conftest*
7361
7362fi
7363{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7364echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7365
7366if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7367 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7368else
7369 :
7370fi
7371
7372fi
7373
7374
7375
7376
7377
7378
7379 lt_prog_compiler_wl=
7380lt_prog_compiler_pic=
7381lt_prog_compiler_static=
7382
7383{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7384echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7385
7386 if test "$GCC" = yes; then
7387 lt_prog_compiler_wl='-Wl,'
7388 lt_prog_compiler_static='-static'
7389
7390 case $host_os in
7391 aix*)
7392 # All AIX code is PIC.
7393 if test "$host_cpu" = ia64; then
7394 # AIX 5 now supports IA64 processor
7395 lt_prog_compiler_static='-Bstatic'
7396 fi
7397 ;;
7398
7399 amigaos*)
7400 case $host_cpu in
7401 powerpc)
7402 # see comment about AmigaOS4 .so support
7403 lt_prog_compiler_pic='-fPIC'
7404 ;;
7405 m68k)
7406 # FIXME: we need at least 68020 code to build shared libraries, but
7407 # adding the `-m68020' flag to GCC prevents building anything better,
7408 # like `-m68040'.
7409 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7410 ;;
7411 esac
7412 ;;
7413
7414 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7415 # PIC is the default for these OSes.
7416 ;;
7417
7418 mingw* | cygwin* | pw32* | os2* | cegcc*)
7419 # This hack is so that the source file can tell whether it is being
7420 # built for inclusion in a dll (and should export symbols for example).
7421 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7422 # (--disable-auto-import) libraries
7423 lt_prog_compiler_pic='-DDLL_EXPORT'
7424 ;;
7425
7426 darwin* | rhapsody*)
7427 # PIC is the default on this platform
7428 # Common symbols not allowed in MH_DYLIB files
7429 lt_prog_compiler_pic='-fno-common'
7430 ;;
7431
7432 hpux*)
7433 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7434 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7435 # sets the default TLS model and affects inlining.
7436 case $host_cpu in
7437 hppa*64*)
7438 # +Z the default
7439 ;;
7440 *)
7441 lt_prog_compiler_pic='-fPIC'
7442 ;;
7443 esac
7444 ;;
7445
7446 interix[3-9]*)
7447 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7448 # Instead, we relocate shared libraries at runtime.
7449 ;;
7450
7451 msdosdjgpp*)
7452 # Just because we use GCC doesn't mean we suddenly get shared libraries
7453 # on systems that don't support them.
7454 lt_prog_compiler_can_build_shared=no
7455 enable_shared=no
7456 ;;
7457
7458 *nto* | *qnx*)
7459 # QNX uses GNU C++, but need to define -shared option too, otherwise
7460 # it will coredump.
7461 lt_prog_compiler_pic='-fPIC -shared'
7462 ;;
7463
7464 sysv4*MP*)
7465 if test -d /usr/nec; then
7466 lt_prog_compiler_pic=-Kconform_pic
7467 fi
7468 ;;
7469
7470 *)
7471 lt_prog_compiler_pic='-fPIC'
7472 ;;
7473 esac
7474 else
7475 # PORTME Check for flag to pass linker flags through the system compiler.
7476 case $host_os in
7477 aix*)
7478 lt_prog_compiler_wl='-Wl,'
7479 if test "$host_cpu" = ia64; then
7480 # AIX 5 now supports IA64 processor
7481 lt_prog_compiler_static='-Bstatic'
7482 else
7483 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7484 fi
7485 ;;
7486
7487 mingw* | cygwin* | pw32* | os2* | cegcc*)
7488 # This hack is so that the source file can tell whether it is being
7489 # built for inclusion in a dll (and should export symbols for example).
7490 lt_prog_compiler_pic='-DDLL_EXPORT'
7491 ;;
7492
7493 hpux9* | hpux10* | hpux11*)
7494 lt_prog_compiler_wl='-Wl,'
7495 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7496 # not for PA HP-UX.
7497 case $host_cpu in
7498 hppa*64*|ia64*)
7499 # +Z the default
7500 ;;
7501 *)
7502 lt_prog_compiler_pic='+Z'
7503 ;;
7504 esac
7505 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7506 lt_prog_compiler_static='${wl}-a ${wl}archive'
7507 ;;
7508
7509 irix5* | irix6* | nonstopux*)
7510 lt_prog_compiler_wl='-Wl,'
7511 # PIC (with -KPIC) is the default.
7512 lt_prog_compiler_static='-non_shared'
7513 ;;
7514
7515 linux* | k*bsd*-gnu)
7516 case $cc_basename in
7517 # old Intel for x86_64 which still supported -KPIC.
7518 ecc*)
7519 lt_prog_compiler_wl='-Wl,'
7520 lt_prog_compiler_pic='-KPIC'
7521 lt_prog_compiler_static='-static'
7522 ;;
7523 # icc used to be incompatible with GCC.
7524 # ICC 10 doesn't accept -KPIC any more.
7525 icc* | ifort*)
7526 lt_prog_compiler_wl='-Wl,'
7527 lt_prog_compiler_pic='-fPIC'
7528 lt_prog_compiler_static='-static'
7529 ;;
7530 # Lahey Fortran 8.1.
7531 lf95*)
7532 lt_prog_compiler_wl='-Wl,'
7533 lt_prog_compiler_pic='--shared'
7534 lt_prog_compiler_static='--static'
7535 ;;
7536 pgcc* | pgf77* | pgf90* | pgf95*)
7537 # Portland Group compilers (*not* the Pentium gcc compiler,
7538 # which looks to be a dead project)
7539 lt_prog_compiler_wl='-Wl,'
7540 lt_prog_compiler_pic='-fpic'
7541 lt_prog_compiler_static='-Bstatic'
7542 ;;
7543 ccc*)
7544 lt_prog_compiler_wl='-Wl,'
7545 # All Alpha code is PIC.
7546 lt_prog_compiler_static='-non_shared'
7547 ;;
7548 xl*)
7549 # IBM XL C 8.0/Fortran 10.1 on PPC
7550 lt_prog_compiler_wl='-Wl,'
7551 lt_prog_compiler_pic='-qpic'
7552 lt_prog_compiler_static='-qstaticlink'
7553 ;;
7554 *)
7555 case `$CC -V 2>&1 | sed 5q` in
7556 *Sun\ C*)
7557 # Sun C 5.9
7558 lt_prog_compiler_pic='-KPIC'
7559 lt_prog_compiler_static='-Bstatic'
7560 lt_prog_compiler_wl='-Wl,'
7561 ;;
7562 *Sun\ F*)
7563 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7564 lt_prog_compiler_pic='-KPIC'
7565 lt_prog_compiler_static='-Bstatic'
7566 lt_prog_compiler_wl=''
7567 ;;
7568 esac
7569 ;;
7570 esac
7571 ;;
7572
7573 newsos6)
7574 lt_prog_compiler_pic='-KPIC'
7575 lt_prog_compiler_static='-Bstatic'
7576 ;;
7577
7578 *nto* | *qnx*)
7579 # QNX uses GNU C++, but need to define -shared option too, otherwise
7580 # it will coredump.
7581 lt_prog_compiler_pic='-fPIC -shared'
7582 ;;
7583
7584 osf3* | osf4* | osf5*)
7585 lt_prog_compiler_wl='-Wl,'
7586 # All OSF/1 code is PIC.
7587 lt_prog_compiler_static='-non_shared'
7588 ;;
7589
7590 rdos*)
7591 lt_prog_compiler_static='-non_shared'
7592 ;;
7593
7594 solaris*)
7595 lt_prog_compiler_pic='-KPIC'
7596 lt_prog_compiler_static='-Bstatic'
7597 case $cc_basename in
7598 f77* | f90* | f95*)
7599 lt_prog_compiler_wl='-Qoption ld ';;
7600 *)
7601 lt_prog_compiler_wl='-Wl,';;
7602 esac
7603 ;;
7604
7605 sunos4*)
7606 lt_prog_compiler_wl='-Qoption ld '
7607 lt_prog_compiler_pic='-PIC'
7608 lt_prog_compiler_static='-Bstatic'
7609 ;;
7610
7611 sysv4 | sysv4.2uw2* | sysv4.3*)
7612 lt_prog_compiler_wl='-Wl,'
7613 lt_prog_compiler_pic='-KPIC'
7614 lt_prog_compiler_static='-Bstatic'
7615 ;;
7616
7617 sysv4*MP*)
7618 if test -d /usr/nec ;then
7619 lt_prog_compiler_pic='-Kconform_pic'
7620 lt_prog_compiler_static='-Bstatic'
7621 fi
7622 ;;
7623
7624 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7625 lt_prog_compiler_wl='-Wl,'
7626 lt_prog_compiler_pic='-KPIC'
7627 lt_prog_compiler_static='-Bstatic'
7628 ;;
7629
7630 unicos*)
7631 lt_prog_compiler_wl='-Wl,'
7632 lt_prog_compiler_can_build_shared=no
7633 ;;
7634
7635 uts4*)
7636 lt_prog_compiler_pic='-pic'
7637 lt_prog_compiler_static='-Bstatic'
7638 ;;
7639
7640 *)
7641 lt_prog_compiler_can_build_shared=no
7642 ;;
7643 esac
7644 fi
7645
7646case $host_os in
7647 # For platforms which do not support PIC, -DPIC is meaningless:
7648 *djgpp*)
7649 lt_prog_compiler_pic=
7650 ;;
7651 *)
7652 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7653 ;;
7654esac
7655{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7656echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7657
7658
7659
7660
7661
7662
7663#
7664# Check to make sure the PIC flag actually works.
7665#
7666if test -n "$lt_prog_compiler_pic"; then
7667 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7668echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7669if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671else
7672 lt_cv_prog_compiler_pic_works=no
7673 ac_outfile=conftest.$ac_objext
7674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7675 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7676 # Insert the option either (1) after the last *FLAGS variable, or
7677 # (2) before a word containing "conftest.", or (3) at the end.
7678 # Note that $ac_compile itself does not contain backslashes and begins
7679 # with a dollar sign (not a hyphen), so the echo should work correctly.
7680 # The option is referenced via a variable to avoid confusing sed.
7681 lt_compile=`echo "$ac_compile" | $SED \
7682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7684 -e 's:$: $lt_compiler_flag:'`
7685 (eval echo "\"\$as_me:7685: $lt_compile\"" >&5)
7686 (eval "$lt_compile" 2>conftest.err)
7687 ac_status=$?
7688 cat conftest.err >&5
7689 echo "$as_me:7689: \$? = $ac_status" >&5
7690 if (exit $ac_status) && test -s "$ac_outfile"; then
7691 # The compiler can only warn and ignore the option if not recognized
7692 # So say no if there are warnings other than the usual output.
7693 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7695 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7696 lt_cv_prog_compiler_pic_works=yes
7697 fi
7698 fi
7699 $RM conftest*
7700
7701fi
7702{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7703echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7704
7705if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7706 case $lt_prog_compiler_pic in
7707 "" | " "*) ;;
7708 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7709 esac
7710else
7711 lt_prog_compiler_pic=
7712 lt_prog_compiler_can_build_shared=no
7713fi
7714
7715fi
7716
7717
7718
7719
7720
7721
7722#
7723# Check to make sure the static flag actually works.
7724#
7725wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7726{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7727echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7728if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730else
7731 lt_cv_prog_compiler_static_works=no
7732 save_LDFLAGS="$LDFLAGS"
7733 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7734 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7735 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7736 # The linker can only warn and ignore the option if not recognized
7737 # So say no if there are warnings
7738 if test -s conftest.err; then
7739 # Append any errors to the config.log.
7740 cat conftest.err 1>&5
7741 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7743 if diff conftest.exp conftest.er2 >/dev/null; then
7744 lt_cv_prog_compiler_static_works=yes
7745 fi
7746 else
7747 lt_cv_prog_compiler_static_works=yes
7748 fi
7749 fi
7750 $RM -r conftest*
7751 LDFLAGS="$save_LDFLAGS"
7752
7753fi
7754{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7755echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7756
7757if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7758 :
7759else
7760 lt_prog_compiler_static=
7761fi
7762
7763
7764
7765
7766
7767
7768
7769 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7770echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7771if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773else
7774 lt_cv_prog_compiler_c_o=no
7775 $RM -r conftest 2>/dev/null
7776 mkdir conftest
7777 cd conftest
7778 mkdir out
7779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7780
7781 lt_compiler_flag="-o out/conftest2.$ac_objext"
7782 # Insert the option either (1) after the last *FLAGS variable, or
7783 # (2) before a word containing "conftest.", or (3) at the end.
7784 # Note that $ac_compile itself does not contain backslashes and begins
7785 # with a dollar sign (not a hyphen), so the echo should work correctly.
7786 lt_compile=`echo "$ac_compile" | $SED \
7787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7789 -e 's:$: $lt_compiler_flag:'`
7790 (eval echo "\"\$as_me:7790: $lt_compile\"" >&5)
7791 (eval "$lt_compile" 2>out/conftest.err)
7792 ac_status=$?
7793 cat out/conftest.err >&5
7794 echo "$as_me:7794: \$? = $ac_status" >&5
7795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7796 then
7797 # The compiler can only warn and ignore the option if not recognized
7798 # So say no if there are warnings
7799 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7802 lt_cv_prog_compiler_c_o=yes
7803 fi
7804 fi
7805 chmod u+w . 2>&5
7806 $RM conftest*
7807 # SGI C++ compiler will create directory out/ii_files/ for
7808 # template instantiation
7809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7810 $RM out/* && rmdir out
7811 cd ..
7812 $RM -r conftest
7813 $RM conftest*
7814
7815fi
7816{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7817echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7818
7819
7820
7821
7822
7823
7824 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7825echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7826if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828else
7829 lt_cv_prog_compiler_c_o=no
7830 $RM -r conftest 2>/dev/null
7831 mkdir conftest
7832 cd conftest
7833 mkdir out
7834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7835
7836 lt_compiler_flag="-o out/conftest2.$ac_objext"
7837 # Insert the option either (1) after the last *FLAGS variable, or
7838 # (2) before a word containing "conftest.", or (3) at the end.
7839 # Note that $ac_compile itself does not contain backslashes and begins
7840 # with a dollar sign (not a hyphen), so the echo should work correctly.
7841 lt_compile=`echo "$ac_compile" | $SED \
7842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7844 -e 's:$: $lt_compiler_flag:'`
7845 (eval echo "\"\$as_me:7845: $lt_compile\"" >&5)
7846 (eval "$lt_compile" 2>out/conftest.err)
7847 ac_status=$?
7848 cat out/conftest.err >&5
7849 echo "$as_me:7849: \$? = $ac_status" >&5
7850 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7851 then
7852 # The compiler can only warn and ignore the option if not recognized
7853 # So say no if there are warnings
7854 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7857 lt_cv_prog_compiler_c_o=yes
7858 fi
7859 fi
7860 chmod u+w . 2>&5
7861 $RM conftest*
7862 # SGI C++ compiler will create directory out/ii_files/ for
7863 # template instantiation
7864 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7865 $RM out/* && rmdir out
7866 cd ..
7867 $RM -r conftest
7868 $RM conftest*
7869
7870fi
7871{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7872echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7873
7874
7875
7876
7877hard_links="nottested"
7878if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7879 # do not overwrite the value of need_locks provided by the user
7880 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7881echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7882 hard_links=yes
7883 $RM conftest*
7884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7885 touch conftest.a
7886 ln conftest.a conftest.b 2>&5 || hard_links=no
7887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7888 { echo "$as_me:$LINENO: result: $hard_links" >&5
7889echo "${ECHO_T}$hard_links" >&6; }
7890 if test "$hard_links" = no; then
7891 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7892echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7893 need_locks=warn
7894 fi
7895else
7896 need_locks=no
7897fi
7898
7899
7900
7901
7902
7903
7904 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7905echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7906
7907 runpath_var=
7908 allow_undefined_flag=
7909 always_export_symbols=no
7910 archive_cmds=
7911 archive_expsym_cmds=
7912 compiler_needs_object=no
7913 enable_shared_with_static_runtimes=no
7914 export_dynamic_flag_spec=
7915 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7916 hardcode_automatic=no
7917 hardcode_direct=no
7918 hardcode_direct_absolute=no
7919 hardcode_libdir_flag_spec=
7920 hardcode_libdir_flag_spec_ld=
7921 hardcode_libdir_separator=
7922 hardcode_minus_L=no
7923 hardcode_shlibpath_var=unsupported
7924 inherit_rpath=no
7925 link_all_deplibs=unknown
7926 module_cmds=
7927 module_expsym_cmds=
7928 old_archive_from_new_cmds=
7929 old_archive_from_expsyms_cmds=
7930 thread_safe_flag_spec=
7931 whole_archive_flag_spec=
7932 # include_expsyms should be a list of space-separated symbols to be *always*
7933 # included in the symbol list
7934 include_expsyms=
7935 # exclude_expsyms can be an extended regexp of symbols to exclude
7936 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7937 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7938 # as well as any symbol that contains `d'.
7939 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7940 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7941 # platforms (ab)use it in PIC code, but their linkers get confused if
7942 # the symbol is explicitly referenced. Since portable code cannot
7943 # rely on this symbol name, it's probably fine to never include it in
7944 # preloaded symbol tables.
7945 # Exclude shared library initialization/finalization symbols.
7946 extract_expsyms_cmds=
7947
7948 case $host_os in
7949 cygwin* | mingw* | pw32* | cegcc*)
7950 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7951 # When not using gcc, we currently assume that we are using
7952 # Microsoft Visual C++.
7953 if test "$GCC" != yes; then
7954 with_gnu_ld=no
7955 fi
7956 ;;
7957 interix*)
7958 # we just hope/assume this is gcc and not c89 (= MSVC++)
7959 with_gnu_ld=yes
7960 ;;
7961 openbsd*)
7962 with_gnu_ld=no
7963 ;;
7964 linux* | k*bsd*-gnu)
7965 link_all_deplibs=no
7966 ;;
7967 esac
7968
7969 ld_shlibs=yes
7970 if test "$with_gnu_ld" = yes; then
7971 # If archive_cmds runs LD, not CC, wlarc should be empty
7972 wlarc='${wl}'
7973
7974 # Set some defaults for GNU ld with shared library support. These
7975 # are reset later if shared libraries are not supported. Putting them
7976 # here allows them to be overridden if necessary.
7977 runpath_var=LD_RUN_PATH
7978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7979 export_dynamic_flag_spec='${wl}--export-dynamic'
7980 # ancient GNU ld didn't support --whole-archive et. al.
7981 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7982 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7983 else
7984 whole_archive_flag_spec=
7985 fi
7986 supports_anon_versioning=no
7987 case `$LD -v 2>&1` in
7988 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7989 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7990 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7991 *\ 2.11.*) ;; # other 2.11 versions
7992 *) supports_anon_versioning=yes ;;
7993 esac
7994
7995 # See if GNU ld supports shared libraries.
7996 case $host_os in
7997 aix[3-9]*)
7998 # On AIX/PPC, the GNU linker is very broken
7999 if test "$host_cpu" != ia64; then
8000 ld_shlibs=no
8001 cat <<_LT_EOF 1>&2
8002
8003*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8004*** to be unable to reliably create shared libraries on AIX.
8005*** Therefore, libtool is disabling shared libraries support. If you
8006*** really care for shared libraries, you may want to modify your PATH
8007*** so that a non-GNU linker is found, and then restart.
8008
8009_LT_EOF
8010 fi
8011 ;;
8012
8013 amigaos*)
8014 case $host_cpu in
8015 powerpc)
8016 # see comment about AmigaOS4 .so support
8017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8018 archive_expsym_cmds=''
8019 ;;
8020 m68k)
8021 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)'
8022 hardcode_libdir_flag_spec='-L$libdir'
8023 hardcode_minus_L=yes
8024 ;;
8025 esac
8026 ;;
8027
8028 beos*)
8029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8030 allow_undefined_flag=unsupported
8031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8032 # support --undefined. This deserves some investigation. FIXME
8033 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8034 else
8035 ld_shlibs=no
8036 fi
8037 ;;
8038
8039 cygwin* | mingw* | pw32* | cegcc*)
8040 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8041 # as there is no search path for DLLs.
8042 hardcode_libdir_flag_spec='-L$libdir'
8043 allow_undefined_flag=unsupported
8044 always_export_symbols=no
8045 enable_shared_with_static_runtimes=yes
8046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8047
8048 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8050 # If the export-symbols file already is a .def file (1st line
8051 # is EXPORTS), use it as is; otherwise, prepend...
8052 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8053 cp $export_symbols $output_objdir/$soname.def;
8054 else
8055 echo EXPORTS > $output_objdir/$soname.def;
8056 cat $export_symbols >> $output_objdir/$soname.def;
8057 fi~
8058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8059 else
8060 ld_shlibs=no
8061 fi
8062 ;;
8063
8064 interix[3-9]*)
8065 hardcode_direct=no
8066 hardcode_shlibpath_var=no
8067 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8068 export_dynamic_flag_spec='${wl}-E'
8069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8070 # Instead, shared libraries are loaded at an image base (0x10000000 by
8071 # default) and relocated if they conflict, which is a slow very memory
8072 # consuming and fragmenting process. To avoid this, we pick a random,
8073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8076 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'
8077 ;;
8078
8079 gnu* | linux* | tpf* | k*bsd*-gnu)
8080 tmp_diet=no
8081 if test "$host_os" = linux-dietlibc; then
8082 case $cc_basename in
8083 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8084 esac
8085 fi
8086 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8087 && test "$tmp_diet" = no
8088 then
8089 tmp_addflag=
8090 tmp_sharedflag='-shared'
8091 case $cc_basename,$host_cpu in
8092 pgcc*) # Portland Group C compiler
8093 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'
8094 tmp_addflag=' $pic_flag'
8095 ;;
8096 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8097 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'
8098 tmp_addflag=' $pic_flag -Mnomain' ;;
8099 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8100 tmp_addflag=' -i_dynamic' ;;
8101 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8102 tmp_addflag=' -i_dynamic -nofor_main' ;;
8103 ifc* | ifort*) # Intel Fortran compiler
8104 tmp_addflag=' -nofor_main' ;;
8105 lf95*) # Lahey Fortran 8.1
8106 whole_archive_flag_spec=
8107 tmp_sharedflag='--shared' ;;
8108 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8109 tmp_sharedflag='-qmkshrobj'
8110 tmp_addflag= ;;
8111 esac
8112 case `$CC -V 2>&1 | sed 5q` in
8113 *Sun\ C*) # Sun C 5.9
8114 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'
8115 compiler_needs_object=yes
8116 tmp_sharedflag='-G' ;;
8117 *Sun\ F*) # Sun Fortran 8.3
8118 tmp_sharedflag='-G' ;;
8119 esac
8120 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8121
8122 if test "x$supports_anon_versioning" = xyes; then
8123 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8124 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8125 echo "local: *; };" >> $output_objdir/$libname.ver~
8126 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8127 fi
8128
8129 case $cc_basename in
8130 xlf*)
8131 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8132 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8133 hardcode_libdir_flag_spec=
8134 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8135 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8136 if test "x$supports_anon_versioning" = xyes; then
8137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8139 echo "local: *; };" >> $output_objdir/$libname.ver~
8140 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8141 fi
8142 ;;
8143 esac
8144 else
8145 ld_shlibs=no
8146 fi
8147 ;;
8148
8149 netbsd* | netbsdelf*-gnu)
8150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8151 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8152 wlarc=
8153 else
8154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8156 fi
8157 ;;
8158
8159 solaris*)
8160 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8161 ld_shlibs=no
8162 cat <<_LT_EOF 1>&2
8163
8164*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8165*** create shared libraries on Solaris systems. Therefore, libtool
8166*** is disabling shared libraries support. We urge you to upgrade GNU
8167*** binutils to release 2.9.1 or newer. Another option is to modify
8168*** your PATH or compiler configuration so that the native linker is
8169*** used, and then restart.
8170
8171_LT_EOF
8172 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8175 else
8176 ld_shlibs=no
8177 fi
8178 ;;
8179
8180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8181 case `$LD -v 2>&1` in
8182 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8183 ld_shlibs=no
8184 cat <<_LT_EOF 1>&2
8185
8186*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8187*** reliably create shared libraries on SCO systems. Therefore, libtool
8188*** is disabling shared libraries support. We urge you to upgrade GNU
8189*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8190*** your PATH or compiler configuration so that the native linker is
8191*** used, and then restart.
8192
8193_LT_EOF
8194 ;;
8195 *)
8196 # For security reasons, it is highly recommended that you always
8197 # use absolute paths for naming shared libraries, and exclude the
8198 # DT_RUNPATH tag from executables and libraries. But doing so
8199 # requires that you compile everything twice, which is a pain.
8200 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8204 else
8205 ld_shlibs=no
8206 fi
8207 ;;
8208 esac
8209 ;;
8210
8211 sunos4*)
8212 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8213 wlarc=
8214 hardcode_direct=yes
8215 hardcode_shlibpath_var=no
8216 ;;
8217
8218 *)
8219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8222 else
8223 ld_shlibs=no
8224 fi
8225 ;;
8226 esac
8227
8228 if test "$ld_shlibs" = no; then
8229 runpath_var=
8230 hardcode_libdir_flag_spec=
8231 export_dynamic_flag_spec=
8232 whole_archive_flag_spec=
8233 fi
8234 else
8235 # PORTME fill in a description of your system's linker (not GNU ld)
8236 case $host_os in
8237 aix3*)
8238 allow_undefined_flag=unsupported
8239 always_export_symbols=yes
8240 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'
8241 # Note: this linker hardcodes the directories in LIBPATH if there
8242 # are no directories specified by -L.
8243 hardcode_minus_L=yes
8244 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8245 # Neither direct hardcoding nor static linking is supported with a
8246 # broken collect2.
8247 hardcode_direct=unsupported
8248 fi
8249 ;;
8250
8251 aix[4-9]*)
8252 if test "$host_cpu" = ia64; then
8253 # On IA64, the linker does run time linking by default, so we don't
8254 # have to do anything special.
8255 aix_use_runtimelinking=no
8256 exp_sym_flag='-Bexport'
8257 no_entry_flag=""
8258 else
8259 # If we're using GNU nm, then we don't want the "-C" option.
8260 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8261 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8262 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'
8263 else
8264 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'
8265 fi
8266 aix_use_runtimelinking=no
8267
8268 # Test if we are trying to use run time linking or normal
8269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8270 # need to do runtime linking.
8271 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8272 for ld_flag in $LDFLAGS; do
8273 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8274 aix_use_runtimelinking=yes
8275 break
8276 fi
8277 done
8278 ;;
8279 esac
8280
8281 exp_sym_flag='-bexport'
8282 no_entry_flag='-bnoentry'
8283 fi
8284
8285 # When large executables or shared objects are built, AIX ld can
8286 # have problems creating the table of contents. If linking a library
8287 # or program results in "error TOC overflow" add -mminimal-toc to
8288 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8289 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8290
8291 archive_cmds=''
8292 hardcode_direct=yes
8293 hardcode_direct_absolute=yes
8294 hardcode_libdir_separator=':'
8295 link_all_deplibs=yes
8296 file_list_spec='${wl}-f,'
8297
8298 if test "$GCC" = yes; then
8299 case $host_os in aix4.[012]|aix4.[012].*)
8300 # We only want to do this on AIX 4.2 and lower, the check
8301 # below for broken collect2 doesn't work under 4.3+
8302 collect2name=`${CC} -print-prog-name=collect2`
8303 if test -f "$collect2name" &&
8304 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8305 then
8306 # We have reworked collect2
8307 :
8308 else
8309 # We have old collect2
8310 hardcode_direct=unsupported
8311 # It fails to find uninstalled libraries when the uninstalled
8312 # path is not listed in the libpath. Setting hardcode_minus_L
8313 # to unsupported forces relinking
8314 hardcode_minus_L=yes
8315 hardcode_libdir_flag_spec='-L$libdir'
8316 hardcode_libdir_separator=
8317 fi
8318 ;;
8319 esac
8320 shared_flag='-shared'
8321 if test "$aix_use_runtimelinking" = yes; then
8322 shared_flag="$shared_flag "'${wl}-G'
8323 fi
8324 link_all_deplibs=no
8325 else
8326 # not using gcc
8327 if test "$host_cpu" = ia64; then
8328 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8329 # chokes on -Wl,-G. The following line is correct:
8330 shared_flag='-G'
8331 else
8332 if test "$aix_use_runtimelinking" = yes; then
8333 shared_flag='${wl}-G'
8334 else
8335 shared_flag='${wl}-bM:SRE'
8336 fi
8337 fi
8338 fi
8339
8340 export_dynamic_flag_spec='${wl}-bexpall'
8341 # It seems that -bexpall does not export symbols beginning with
8342 # underscore (_), so it is better to generate a list of symbols to export.
8343 always_export_symbols=yes
8344 if test "$aix_use_runtimelinking" = yes; then
8345 # Warning - without using the other runtime loading flags (-brtl),
8346 # -berok will link without error, but may produce a broken library.
8347 allow_undefined_flag='-berok'
8348 # Determine the default libpath from the value encoded in an
8349 # empty executable.
8350 cat >conftest.$ac_ext <<_ACEOF
8351/* confdefs.h. */
8352_ACEOF
8353cat confdefs.h >>conftest.$ac_ext
8354cat >>conftest.$ac_ext <<_ACEOF
8355/* end confdefs.h. */
8356
8357int
8358main ()
8359{
8360
8361 ;
8362 return 0;
8363}
8364_ACEOF
8365rm -f conftest.$ac_objext conftest$ac_exeext
8366if { (ac_try="$ac_link"
8367case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370esac
8371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_link") 2>conftest.er1
8373 ac_status=$?
8374 grep -v '^ *+' conftest.er1 >conftest.err
8375 rm -f conftest.er1
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } && {
8379 test -z "$ac_c_werror_flag" ||
8380 test ! -s conftest.err
8381 } && test -s conftest$ac_exeext &&
8382 $as_test_x conftest$ac_exeext; then
8383
8384lt_aix_libpath_sed='
8385 /Import File Strings/,/^$/ {
8386 /^0/ {
8387 s/^0 *\(.*\)$/\1/
8388 p
8389 }
8390 }'
8391aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8392# Check for a 64-bit object if we didn't find anything.
8393if test -z "$aix_libpath"; then
8394 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8395fi
8396else
8397 echo "$as_me: failed program was:" >&5
8398sed 's/^/| /' conftest.$ac_ext >&5
8399
8400
8401fi
8402
8403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8404 conftest$ac_exeext conftest.$ac_ext
8405if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8406
8407 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8408 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"
8409 else
8410 if test "$host_cpu" = ia64; then
8411 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8412 allow_undefined_flag="-z nodefs"
8413 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"
8414 else
8415 # Determine the default libpath from the value encoded in an
8416 # empty executable.
8417 cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h. */
8423
8424int
8425main ()
8426{
8427
8428 ;
8429 return 0;
8430}
8431_ACEOF
8432rm -f conftest.$ac_objext conftest$ac_exeext
8433if { (ac_try="$ac_link"
8434case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8437esac
8438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_link") 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } && {
8446 test -z "$ac_c_werror_flag" ||
8447 test ! -s conftest.err
8448 } && test -s conftest$ac_exeext &&
8449 $as_test_x conftest$ac_exeext; then
8450
8451lt_aix_libpath_sed='
8452 /Import File Strings/,/^$/ {
8453 /^0/ {
8454 s/^0 *\(.*\)$/\1/
8455 p
8456 }
8457 }'
8458aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8459# Check for a 64-bit object if we didn't find anything.
8460if test -z "$aix_libpath"; then
8461 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8462fi
8463else
8464 echo "$as_me: failed program was:" >&5
8465sed 's/^/| /' conftest.$ac_ext >&5
8466
8467
8468fi
8469
8470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8471 conftest$ac_exeext conftest.$ac_ext
8472if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8473
8474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8475 # Warning - without using the other run time loading flags,
8476 # -berok will link without error, but may produce a broken library.
8477 no_undefined_flag=' ${wl}-bernotok'
8478 allow_undefined_flag=' ${wl}-berok'
8479 # Exported symbols can be pulled into shared objects from archives
8480 whole_archive_flag_spec='$convenience'
8481 archive_cmds_need_lc=yes
8482 # This is similar to how AIX traditionally builds its shared libraries.
8483 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'
8484 fi
8485 fi
8486 ;;
8487
8488 amigaos*)
8489 case $host_cpu in
8490 powerpc)
8491 # see comment about AmigaOS4 .so support
8492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8493 archive_expsym_cmds=''
8494 ;;
8495 m68k)
8496 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)'
8497 hardcode_libdir_flag_spec='-L$libdir'
8498 hardcode_minus_L=yes
8499 ;;
8500 esac
8501 ;;
8502
8503 bsdi[45]*)
8504 export_dynamic_flag_spec=-rdynamic
8505 ;;
8506
8507 cygwin* | mingw* | pw32* | cegcc*)
8508 # When not using gcc, we currently assume that we are using
8509 # Microsoft Visual C++.
8510 # hardcode_libdir_flag_spec is actually meaningless, as there is
8511 # no search path for DLLs.
8512 hardcode_libdir_flag_spec=' '
8513 allow_undefined_flag=unsupported
8514 # Tell ltmain to make .lib files, not .a files.
8515 libext=lib
8516 # Tell ltmain to make .dll files, not .so files.
8517 shrext_cmds=".dll"
8518 # FIXME: Setting linknames here is a bad hack.
8519 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8520 # The linker will automatically build a .lib file if we build a DLL.
8521 old_archive_from_new_cmds='true'
8522 # FIXME: Should let the user specify the lib program.
8523 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8524 fix_srcfile_path='`cygpath -w "$srcfile"`'
8525 enable_shared_with_static_runtimes=yes
8526 ;;
8527
8528 darwin* | rhapsody*)
8529
8530
8531 archive_cmds_need_lc=no
8532 hardcode_direct=no
8533 hardcode_automatic=yes
8534 hardcode_shlibpath_var=unsupported
8535 whole_archive_flag_spec=''
8536 link_all_deplibs=yes
8537 allow_undefined_flag="$_lt_dar_allow_undefined"
8538 case $cc_basename in
8539 ifort*) _lt_dar_can_shared=yes ;;
8540 *) _lt_dar_can_shared=$GCC ;;
8541 esac
8542 if test "$_lt_dar_can_shared" = "yes"; then
8543 output_verbose_link_cmd=echo
8544 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8545 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8546 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}"
8547 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}"
8548
8549 else
8550 ld_shlibs=no
8551 fi
8552
8553 ;;
8554
8555 dgux*)
8556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8557 hardcode_libdir_flag_spec='-L$libdir'
8558 hardcode_shlibpath_var=no
8559 ;;
8560
8561 freebsd1*)
8562 ld_shlibs=no
8563 ;;
8564
8565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8566 # support. Future versions do this automatically, but an explicit c++rt0.o
8567 # does not break anything, and helps significantly (at the cost of a little
8568 # extra space).
8569 freebsd2.2*)
8570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8571 hardcode_libdir_flag_spec='-R$libdir'
8572 hardcode_direct=yes
8573 hardcode_shlibpath_var=no
8574 ;;
8575
8576 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8577 freebsd2*)
8578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8579 hardcode_direct=yes
8580 hardcode_minus_L=yes
8581 hardcode_shlibpath_var=no
8582 ;;
8583
8584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8585 freebsd* | dragonfly*)
8586 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8587 hardcode_libdir_flag_spec='-R$libdir'
8588 hardcode_direct=yes
8589 hardcode_shlibpath_var=no
8590 ;;
8591
8592 hpux9*)
8593 if test "$GCC" = yes; then
8594 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'
8595 else
8596 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'
8597 fi
8598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8599 hardcode_libdir_separator=:
8600 hardcode_direct=yes
8601
8602 # hardcode_minus_L: Not really in the search PATH,
8603 # but as the default location of the library.
8604 hardcode_minus_L=yes
8605 export_dynamic_flag_spec='${wl}-E'
8606 ;;
8607
8608 hpux10*)
8609 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8610 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8611 else
8612 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8613 fi
8614 if test "$with_gnu_ld" = no; then
8615 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8616 hardcode_libdir_flag_spec_ld='+b $libdir'
8617 hardcode_libdir_separator=:
8618 hardcode_direct=yes
8619 hardcode_direct_absolute=yes
8620 export_dynamic_flag_spec='${wl}-E'
8621 # hardcode_minus_L: Not really in the search PATH,
8622 # but as the default location of the library.
8623 hardcode_minus_L=yes
8624 fi
8625 ;;
8626
8627 hpux11*)
8628 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8629 case $host_cpu in
8630 hppa*64*)
8631 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8632 ;;
8633 ia64*)
8634 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8635 ;;
8636 *)
8637 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8638 ;;
8639 esac
8640 else
8641 case $host_cpu in
8642 hppa*64*)
8643 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8644 ;;
8645 ia64*)
8646 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8647 ;;
8648 *)
8649 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8650 ;;
8651 esac
8652 fi
8653 if test "$with_gnu_ld" = no; then
8654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8655 hardcode_libdir_separator=:
8656
8657 case $host_cpu in
8658 hppa*64*|ia64*)
8659 hardcode_direct=no
8660 hardcode_shlibpath_var=no
8661 ;;
8662 *)
8663 hardcode_direct=yes
8664 hardcode_direct_absolute=yes
8665 export_dynamic_flag_spec='${wl}-E'
8666
8667 # hardcode_minus_L: Not really in the search PATH,
8668 # but as the default location of the library.
8669 hardcode_minus_L=yes
8670 ;;
8671 esac
8672 fi
8673 ;;
8674
8675 irix5* | irix6* | nonstopux*)
8676 if test "$GCC" = yes; then
8677 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'
8678 # Try to use the -exported_symbol ld option, if it does not
8679 # work, assume that -exports_file does not work either and
8680 # implicitly export all symbols.
8681 save_LDFLAGS="$LDFLAGS"
8682 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8683 cat >conftest.$ac_ext <<_ACEOF
8684int foo(void) {}
8685_ACEOF
8686rm -f conftest.$ac_objext conftest$ac_exeext
8687if { (ac_try="$ac_link"
8688case "(($ac_try" in
8689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690 *) ac_try_echo=$ac_try;;
8691esac
8692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693 (eval "$ac_link") 2>conftest.er1
8694 ac_status=$?
8695 grep -v '^ *+' conftest.er1 >conftest.err
8696 rm -f conftest.er1
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } && {
8700 test -z "$ac_c_werror_flag" ||
8701 test ! -s conftest.err
8702 } && test -s conftest$ac_exeext &&
8703 $as_test_x conftest$ac_exeext; then
8704 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'
8705
8706else
8707 echo "$as_me: failed program was:" >&5
8708sed 's/^/| /' conftest.$ac_ext >&5
8709
8710
8711fi
8712
8713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8714 conftest$ac_exeext conftest.$ac_ext
8715 LDFLAGS="$save_LDFLAGS"
8716 else
8717 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'
8718 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'
8719 fi
8720 archive_cmds_need_lc='no'
8721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8722 hardcode_libdir_separator=:
8723 inherit_rpath=yes
8724 link_all_deplibs=yes
8725 ;;
8726
8727 netbsd* | netbsdelf*-gnu)
8728 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8730 else
8731 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8732 fi
8733 hardcode_libdir_flag_spec='-R$libdir'
8734 hardcode_direct=yes
8735 hardcode_shlibpath_var=no
8736 ;;
8737
8738 newsos6)
8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_direct=yes
8741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742 hardcode_libdir_separator=:
8743 hardcode_shlibpath_var=no
8744 ;;
8745
8746 *nto* | *qnx*)
8747 ;;
8748
8749 openbsd*)
8750 if test -f /usr/libexec/ld.so; then
8751 hardcode_direct=yes
8752 hardcode_shlibpath_var=no
8753 hardcode_direct_absolute=yes
8754 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8755 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8756 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8757 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8758 export_dynamic_flag_spec='${wl}-E'
8759 else
8760 case $host_os in
8761 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8763 hardcode_libdir_flag_spec='-R$libdir'
8764 ;;
8765 *)
8766 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8767 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8768 ;;
8769 esac
8770 fi
8771 else
8772 ld_shlibs=no
8773 fi
8774 ;;
8775
8776 os2*)
8777 hardcode_libdir_flag_spec='-L$libdir'
8778 hardcode_minus_L=yes
8779 allow_undefined_flag=unsupported
8780 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'
8781 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8782 ;;
8783
8784 osf3*)
8785 if test "$GCC" = yes; then
8786 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8787 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'
8788 else
8789 allow_undefined_flag=' -expect_unresolved \*'
8790 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'
8791 fi
8792 archive_cmds_need_lc='no'
8793 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794 hardcode_libdir_separator=:
8795 ;;
8796
8797 osf4* | osf5*) # as osf3* with the addition of -msym flag
8798 if test "$GCC" = yes; then
8799 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8800 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'
8801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8802 else
8803 allow_undefined_flag=' -expect_unresolved \*'
8804 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'
8805 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~
8806 $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'
8807
8808 # Both c and cxx compiler support -rpath directly
8809 hardcode_libdir_flag_spec='-rpath $libdir'
8810 fi
8811 archive_cmds_need_lc='no'
8812 hardcode_libdir_separator=:
8813 ;;
8814
8815 solaris*)
8816 no_undefined_flag=' -z defs'
8817 if test "$GCC" = yes; then
8818 wlarc='${wl}'
8819 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8820 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8821 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8822 else
8823 case `$CC -V 2>&1` in
8824 *"Compilers 5.0"*)
8825 wlarc=''
8826 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8827 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8828 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8829 ;;
8830 *)
8831 wlarc='${wl}'
8832 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8833 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8834 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8835 ;;
8836 esac
8837 fi
8838 hardcode_libdir_flag_spec='-R$libdir'
8839 hardcode_shlibpath_var=no
8840 case $host_os in
8841 solaris2.[0-5] | solaris2.[0-5].*) ;;
8842 *)
8843 # The compiler driver will combine and reorder linker options,
8844 # but understands `-z linker_flag'. GCC discards it without `$wl',
8845 # but is careful enough not to reorder.
8846 # Supported since Solaris 2.6 (maybe 2.5.1?)
8847 if test "$GCC" = yes; then
8848 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8849 else
8850 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8851 fi
8852 ;;
8853 esac
8854 link_all_deplibs=yes
8855 ;;
8856
8857 sunos4*)
8858 if test "x$host_vendor" = xsequent; then
8859 # Use $CC to link under sequent, because it throws in some extra .o
8860 # files that make .init and .fini sections work.
8861 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8862 else
8863 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8864 fi
8865 hardcode_libdir_flag_spec='-L$libdir'
8866 hardcode_direct=yes
8867 hardcode_minus_L=yes
8868 hardcode_shlibpath_var=no
8869 ;;
8870
8871 sysv4)
8872 case $host_vendor in
8873 sni)
8874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875 hardcode_direct=yes # is this really true???
8876 ;;
8877 siemens)
8878 ## LD is ld it makes a PLAMLIB
8879 ## CC just makes a GrossModule.
8880 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8881 reload_cmds='$CC -r -o $output$reload_objs'
8882 hardcode_direct=no
8883 ;;
8884 motorola)
8885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8886 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8887 ;;
8888 esac
8889 runpath_var='LD_RUN_PATH'
8890 hardcode_shlibpath_var=no
8891 ;;
8892
8893 sysv4.3*)
8894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8895 hardcode_shlibpath_var=no
8896 export_dynamic_flag_spec='-Bexport'
8897 ;;
8898
8899 sysv4*MP*)
8900 if test -d /usr/nec; then
8901 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8902 hardcode_shlibpath_var=no
8903 runpath_var=LD_RUN_PATH
8904 hardcode_runpath_var=yes
8905 ld_shlibs=yes
8906 fi
8907 ;;
8908
8909 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8910 no_undefined_flag='${wl}-z,text'
8911 archive_cmds_need_lc=no
8912 hardcode_shlibpath_var=no
8913 runpath_var='LD_RUN_PATH'
8914
8915 if test "$GCC" = yes; then
8916 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8917 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8918 else
8919 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8920 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8921 fi
8922 ;;
8923
8924 sysv5* | sco3.2v5* | sco5v6*)
8925 # Note: We can NOT use -z defs as we might desire, because we do not
8926 # link with -lc, and that would cause any symbols used from libc to
8927 # always be unresolved, which means just about no library would
8928 # ever link correctly. If we're not using GNU ld we use -z text
8929 # though, which does catch some bad symbols but isn't as heavy-handed
8930 # as -z defs.
8931 no_undefined_flag='${wl}-z,text'
8932 allow_undefined_flag='${wl}-z,nodefs'
8933 archive_cmds_need_lc=no
8934 hardcode_shlibpath_var=no
8935 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8936 hardcode_libdir_separator=':'
8937 link_all_deplibs=yes
8938 export_dynamic_flag_spec='${wl}-Bexport'
8939 runpath_var='LD_RUN_PATH'
8940
8941 if test "$GCC" = yes; then
8942 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8943 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8944 else
8945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8946 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8947 fi
8948 ;;
8949
8950 uts4*)
8951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8952 hardcode_libdir_flag_spec='-L$libdir'
8953 hardcode_shlibpath_var=no
8954 ;;
8955
8956 *)
8957 ld_shlibs=no
8958 ;;
8959 esac
8960
8961 if test x$host_vendor = xsni; then
8962 case $host in
8963 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8964 export_dynamic_flag_spec='${wl}-Blargedynsym'
8965 ;;
8966 esac
8967 fi
8968 fi
8969
8970{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8971echo "${ECHO_T}$ld_shlibs" >&6; }
8972test "$ld_shlibs" = no && can_build_shared=no
8973
8974with_gnu_ld=$with_gnu_ld
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990#
8991# Do we need to explicitly link libc?
8992#
8993case "x$archive_cmds_need_lc" in
8994x|xyes)
8995 # Assume -lc should be added
8996 archive_cmds_need_lc=yes
8997
8998 if test "$enable_shared" = yes && test "$GCC" = yes; then
8999 case $archive_cmds in
9000 *'~'*)
9001 # FIXME: we may have to deal with multi-command sequences.
9002 ;;
9003 '$CC '*)
9004 # Test whether the compiler implicitly links with -lc since on some
9005 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9006 # to ld, don't add -lc before -lgcc.
9007 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9008echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9009 $RM conftest*
9010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9011
9012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9013 (eval $ac_compile) 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } 2>conftest.err; then
9017 soname=conftest
9018 lib=conftest
9019 libobjs=conftest.$ac_objext
9020 deplibs=
9021 wl=$lt_prog_compiler_wl
9022 pic_flag=$lt_prog_compiler_pic
9023 compiler_flags=-v
9024 linker_flags=-v
9025 verstring=
9026 output_objdir=.
9027 libname=conftest
9028 lt_save_allow_undefined_flag=$allow_undefined_flag
9029 allow_undefined_flag=
9030 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9031 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9032 ac_status=$?
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }
9035 then
9036 archive_cmds_need_lc=no
9037 else
9038 archive_cmds_need_lc=yes
9039 fi
9040 allow_undefined_flag=$lt_save_allow_undefined_flag
9041 else
9042 cat conftest.err 1>&5
9043 fi
9044 $RM conftest*
9045 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9046echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9047 ;;
9048 esac
9049 fi
9050 ;;
9051esac
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9210echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9211
9212if test "$GCC" = yes; then
9213 case $host_os in
9214 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9215 *) lt_awk_arg="/^libraries:/" ;;
9216 esac
9217 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9218 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9219 # if the path contains ";" then we assume it to be the separator
9220 # otherwise default to the standard path separator (i.e. ":") - it is
9221 # assumed that no part of a normal pathname contains ";" but that should
9222 # okay in the real world where ";" in dirpaths is itself problematic.
9223 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9224 else
9225 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9226 fi
9227 # Ok, now we have the path, separated by spaces, we can step through it
9228 # and add multilib dir if necessary.
9229 lt_tmp_lt_search_path_spec=
9230 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9231 for lt_sys_path in $lt_search_path_spec; do
9232 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9233 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9234 else
9235 test -d "$lt_sys_path" && \
9236 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9237 fi
9238 done
9239 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9240BEGIN {RS=" "; FS="/|\n";} {
9241 lt_foo="";
9242 lt_count=0;
9243 for (lt_i = NF; lt_i > 0; lt_i--) {
9244 if ($lt_i != "" && $lt_i != ".") {
9245 if ($lt_i == "..") {
9246 lt_count++;
9247 } else {
9248 if (lt_count == 0) {
9249 lt_foo="/" $lt_i lt_foo;
9250 } else {
9251 lt_count--;
9252 }
9253 }
9254 }
9255 }
9256 if (lt_foo != "") { lt_freq[lt_foo]++; }
9257 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9258}'`
9259 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9260else
9261 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9262fi
9263library_names_spec=
9264libname_spec='lib$name'
9265soname_spec=
9266shrext_cmds=".so"
9267postinstall_cmds=
9268postuninstall_cmds=
9269finish_cmds=
9270finish_eval=
9271shlibpath_var=
9272shlibpath_overrides_runpath=unknown
9273version_type=none
9274dynamic_linker="$host_os ld.so"
9275sys_lib_dlsearch_path_spec="/lib /usr/lib"
9276need_lib_prefix=unknown
9277hardcode_into_libs=no
9278
9279# when you set need_version to no, make sure it does not cause -set_version
9280# flags to be left without arguments
9281need_version=unknown
9282
9283case $host_os in
9284aix3*)
9285 version_type=linux
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9287 shlibpath_var=LIBPATH
9288
9289 # AIX 3 has no versioning support, so we append a major version to the name.
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 ;;
9292
9293aix[4-9]*)
9294 version_type=linux
9295 need_lib_prefix=no
9296 need_version=no
9297 hardcode_into_libs=yes
9298 if test "$host_cpu" = ia64; then
9299 # AIX 5 supports IA64
9300 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 else
9303 # With GCC up to 2.95.x, collect2 would create an import file
9304 # for dependence libraries. The import file would start with
9305 # the line `#! .'. This would cause the generated library to
9306 # depend on `.', always an invalid library. This was fixed in
9307 # development snapshots of GCC prior to 3.0.
9308 case $host_os in
9309 aix4 | aix4.[01] | aix4.[01].*)
9310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9311 echo ' yes '
9312 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9313 :
9314 else
9315 can_build_shared=no
9316 fi
9317 ;;
9318 esac
9319 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9320 # soname into executable. Probably we can add versioning support to
9321 # collect2, so additional links can be useful in future.
9322 if test "$aix_use_runtimelinking" = yes; then
9323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9324 # instead of lib<name>.a to let people know that these are not
9325 # typical AIX shared libraries.
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 else
9328 # We preserve .a as extension for shared libraries through AIX4.2
9329 # and later when we are not doing run time linking.
9330 library_names_spec='${libname}${release}.a $libname.a'
9331 soname_spec='${libname}${release}${shared_ext}$major'
9332 fi
9333 shlibpath_var=LIBPATH
9334 fi
9335 ;;
9336
9337amigaos*)
9338 case $host_cpu in
9339 powerpc)
9340 # Since July 2007 AmigaOS4 officially supports .so libraries.
9341 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9343 ;;
9344 m68k)
9345 library_names_spec='$libname.ixlibrary $libname.a'
9346 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9347 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'
9348 ;;
9349 esac
9350 ;;
9351
9352beos*)
9353 library_names_spec='${libname}${shared_ext}'
9354 dynamic_linker="$host_os ld.so"
9355 shlibpath_var=LIBRARY_PATH
9356 ;;
9357
9358bsdi[45]*)
9359 version_type=linux
9360 need_version=no
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9367 # the default ld.so.conf also contains /usr/contrib/lib and
9368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9369 # libtool to hard-code these into programs
9370 ;;
9371
9372cygwin* | mingw* | pw32* | cegcc*)
9373 version_type=windows
9374 shrext_cmds=".dll"
9375 need_version=no
9376 need_lib_prefix=no
9377
9378 case $GCC,$host_os in
9379 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9380 library_names_spec='$libname.dll.a'
9381 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9382 postinstall_cmds='base_file=`basename \${file}`~
9383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9384 dldir=$destdir/`dirname \$dlpath`~
9385 test -d \$dldir || mkdir -p \$dldir~
9386 $install_prog $dir/$dlname \$dldir/$dlname~
9387 chmod a+x \$dldir/$dlname~
9388 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9389 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9390 fi'
9391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9392 dlpath=$dir/\$dldll~
9393 $RM \$dlpath'
9394 shlibpath_overrides_runpath=yes
9395
9396 case $host_os in
9397 cygwin*)
9398 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9399 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9400 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9401 ;;
9402 mingw* | cegcc*)
9403 # MinGW DLLs use traditional 'lib' prefix
9404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9405 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9406 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9407 # It is most probably a Windows format PATH printed by
9408 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9409 # path with ; separators, and with drive letters. We can handle the
9410 # drive letters (cygwin fileutils understands them), so leave them,
9411 # especially as we might pass files found there to a mingw objdump,
9412 # which wouldn't understand a cygwinified path. Ahh.
9413 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9414 else
9415 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9416 fi
9417 ;;
9418 pw32*)
9419 # pw32 DLLs use 'pw' prefix rather than 'lib'
9420 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9421 ;;
9422 esac
9423 ;;
9424
9425 *)
9426 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9427 ;;
9428 esac
9429 dynamic_linker='Win32 ld.exe'
9430 # FIXME: first we should search . and the directory the executable is in
9431 shlibpath_var=PATH
9432 ;;
9433
9434darwin* | rhapsody*)
9435 dynamic_linker="$host_os dyld"
9436 version_type=darwin
9437 need_lib_prefix=no
9438 need_version=no
9439 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9440 soname_spec='${libname}${release}${major}$shared_ext'
9441 shlibpath_overrides_runpath=yes
9442 shlibpath_var=DYLD_LIBRARY_PATH
9443 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9444
9445 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9446 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9447 ;;
9448
9449dgux*)
9450 version_type=linux
9451 need_lib_prefix=no
9452 need_version=no
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 shlibpath_var=LD_LIBRARY_PATH
9456 ;;
9457
9458freebsd1*)
9459 dynamic_linker=no
9460 ;;
9461
9462freebsd* | dragonfly*)
9463 # DragonFly does not have aout. When/if they implement a new
9464 # versioning mechanism, adjust this.
9465 if test -x /usr/bin/objformat; then
9466 objformat=`/usr/bin/objformat`
9467 else
9468 case $host_os in
9469 freebsd[123]*) objformat=aout ;;
9470 *) objformat=elf ;;
9471 esac
9472 fi
9473 version_type=freebsd-$objformat
9474 case $version_type in
9475 freebsd-elf*)
9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9477 need_version=no
9478 need_lib_prefix=no
9479 ;;
9480 freebsd-*)
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9482 need_version=yes
9483 ;;
9484 esac
9485 shlibpath_var=LD_LIBRARY_PATH
9486 case $host_os in
9487 freebsd2*)
9488 shlibpath_overrides_runpath=yes
9489 ;;
9490 freebsd3.[01]* | freebsdelf3.[01]*)
9491 shlibpath_overrides_runpath=yes
9492 hardcode_into_libs=yes
9493 ;;
9494 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9495 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9496 shlibpath_overrides_runpath=no
9497 hardcode_into_libs=yes
9498 ;;
9499 *) # from 4.6 on, and DragonFly
9500 shlibpath_overrides_runpath=yes
9501 hardcode_into_libs=yes
9502 ;;
9503 esac
9504 ;;
9505
9506gnu*)
9507 version_type=linux
9508 need_lib_prefix=no
9509 need_version=no
9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9511 soname_spec='${libname}${release}${shared_ext}$major'
9512 shlibpath_var=LD_LIBRARY_PATH
9513 hardcode_into_libs=yes
9514 ;;
9515
9516hpux9* | hpux10* | hpux11*)
9517 # Give a soname corresponding to the major version so that dld.sl refuses to
9518 # link against other versions.
9519 version_type=sunos
9520 need_lib_prefix=no
9521 need_version=no
9522 case $host_cpu in
9523 ia64*)
9524 shrext_cmds='.so'
9525 hardcode_into_libs=yes
9526 dynamic_linker="$host_os dld.so"
9527 shlibpath_var=LD_LIBRARY_PATH
9528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 if test "X$HPUX_IA64_MODE" = X32; then
9532 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9533 else
9534 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9535 fi
9536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9537 ;;
9538 hppa*64*)
9539 shrext_cmds='.sl'
9540 hardcode_into_libs=yes
9541 dynamic_linker="$host_os dld.sl"
9542 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9548 ;;
9549 *)
9550 shrext_cmds='.sl'
9551 dynamic_linker="$host_os dld.sl"
9552 shlibpath_var=SHLIB_PATH
9553 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 ;;
9557 esac
9558 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9559 postinstall_cmds='chmod 555 $lib'
9560 ;;
9561
9562interix[3-9]*)
9563 version_type=linux
9564 need_lib_prefix=no
9565 need_version=no
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9567 soname_spec='${libname}${release}${shared_ext}$major'
9568 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9569 shlibpath_var=LD_LIBRARY_PATH
9570 shlibpath_overrides_runpath=no
9571 hardcode_into_libs=yes
9572 ;;
9573
9574irix5* | irix6* | nonstopux*)
9575 case $host_os in
9576 nonstopux*) version_type=nonstopux ;;
9577 *)
9578 if test "$lt_cv_prog_gnu_ld" = yes; then
9579 version_type=linux
9580 else
9581 version_type=irix
9582 fi ;;
9583 esac
9584 need_lib_prefix=no
9585 need_version=no
9586 soname_spec='${libname}${release}${shared_ext}$major'
9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9588 case $host_os in
9589 irix5* | nonstopux*)
9590 libsuff= shlibsuff=
9591 ;;
9592 *)
9593 case $LD in # libtool.m4 will add one of these switches to LD
9594 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9595 libsuff= shlibsuff= libmagic=32-bit;;
9596 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9597 libsuff=32 shlibsuff=N32 libmagic=N32;;
9598 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9599 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9600 *) libsuff= shlibsuff= libmagic=never-match;;
9601 esac
9602 ;;
9603 esac
9604 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9605 shlibpath_overrides_runpath=no
9606 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9607 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9608 hardcode_into_libs=yes
9609 ;;
9610
9611# No shared lib support for Linux oldld, aout, or coff.
9612linux*oldld* | linux*aout* | linux*coff*)
9613 dynamic_linker=no
9614 ;;
9615
9616# This must be Linux ELF.
9617linux* | k*bsd*-gnu)
9618 version_type=linux
9619 need_lib_prefix=no
9620 need_version=no
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622 soname_spec='${libname}${release}${shared_ext}$major'
9623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9624 shlibpath_var=LD_LIBRARY_PATH
9625 shlibpath_overrides_runpath=no
9626 # Some binutils ld are patched to set DT_RUNPATH
9627 save_LDFLAGS=$LDFLAGS
9628 save_libdir=$libdir
9629 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9630 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9631 cat >conftest.$ac_ext <<_ACEOF
9632/* confdefs.h. */
9633_ACEOF
9634cat confdefs.h >>conftest.$ac_ext
9635cat >>conftest.$ac_ext <<_ACEOF
9636/* end confdefs.h. */
9637
9638int
9639main ()
9640{
9641
9642 ;
9643 return 0;
9644}
9645_ACEOF
9646rm -f conftest.$ac_objext conftest$ac_exeext
9647if { (ac_try="$ac_link"
9648case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651esac
9652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_link") 2>conftest.er1
9654 ac_status=$?
9655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } && {
9660 test -z "$ac_c_werror_flag" ||
9661 test ! -s conftest.err
9662 } && test -s conftest$ac_exeext &&
9663 $as_test_x conftest$ac_exeext; then
9664 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9665 shlibpath_overrides_runpath=yes
9666fi
9667
9668else
9669 echo "$as_me: failed program was:" >&5
9670sed 's/^/| /' conftest.$ac_ext >&5
9671
9672
9673fi
9674
9675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9676 conftest$ac_exeext conftest.$ac_ext
9677 LDFLAGS=$save_LDFLAGS
9678 libdir=$save_libdir
9679
9680 # This implies no fast_install, which is unacceptable.
9681 # Some rework will be needed to allow for fast_install
9682 # before this can be enabled.
9683 hardcode_into_libs=yes
9684
9685 # Append ld.so.conf contents to the search path
9686 if test -f /etc/ld.so.conf; then
9687 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' ' '`
9688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9689 fi
9690
9691 # We used to test for /lib/ld.so.1 and disable shared libraries on
9692 # powerpc, because MkLinux only supported shared libraries with the
9693 # GNU dynamic linker. Since this was broken with cross compilers,
9694 # most powerpc-linux boxes support dynamic linking these days and
9695 # people can always --disable-shared, the test was removed, and we
9696 # assume the GNU/Linux dynamic linker is in use.
9697 dynamic_linker='GNU/Linux ld.so'
9698 ;;
9699
9700netbsdelf*-gnu)
9701 version_type=linux
9702 need_lib_prefix=no
9703 need_version=no
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=no
9708 hardcode_into_libs=yes
9709 dynamic_linker='NetBSD ld.elf_so'
9710 ;;
9711
9712netbsd*)
9713 version_type=sunos
9714 need_lib_prefix=no
9715 need_version=no
9716 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9719 dynamic_linker='NetBSD (a.out) ld.so'
9720 else
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 dynamic_linker='NetBSD ld.elf_so'
9724 fi
9725 shlibpath_var=LD_LIBRARY_PATH
9726 shlibpath_overrides_runpath=yes
9727 hardcode_into_libs=yes
9728 ;;
9729
9730newsos6)
9731 version_type=linux
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 shlibpath_overrides_runpath=yes
9735 ;;
9736
9737*nto* | *qnx*)
9738 version_type=qnx
9739 need_lib_prefix=no
9740 need_version=no
9741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9742 soname_spec='${libname}${release}${shared_ext}$major'
9743 shlibpath_var=LD_LIBRARY_PATH
9744 shlibpath_overrides_runpath=no
9745 hardcode_into_libs=yes
9746 dynamic_linker='ldqnx.so'
9747 ;;
9748
9749openbsd*)
9750 version_type=sunos
9751 sys_lib_dlsearch_path_spec="/usr/lib"
9752 need_lib_prefix=no
9753 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9754 case $host_os in
9755 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9756 *) need_version=no ;;
9757 esac
9758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9760 shlibpath_var=LD_LIBRARY_PATH
9761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9762 case $host_os in
9763 openbsd2.[89] | openbsd2.[89].*)
9764 shlibpath_overrides_runpath=no
9765 ;;
9766 *)
9767 shlibpath_overrides_runpath=yes
9768 ;;
9769 esac
9770 else
9771 shlibpath_overrides_runpath=yes
9772 fi
9773 ;;
9774
9775os2*)
9776 libname_spec='$name'
9777 shrext_cmds=".dll"
9778 need_lib_prefix=no
9779 library_names_spec='$libname${shared_ext} $libname.a'
9780 dynamic_linker='OS/2 ld.exe'
9781 shlibpath_var=LIBPATH
9782 ;;
9783
9784osf3* | osf4* | osf5*)
9785 version_type=osf
9786 need_lib_prefix=no
9787 need_version=no
9788 soname_spec='${libname}${release}${shared_ext}$major'
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9792 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9793 ;;
9794
9795rdos*)
9796 dynamic_linker=no
9797 ;;
9798
9799solaris*)
9800 version_type=linux
9801 need_lib_prefix=no
9802 need_version=no
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 shlibpath_overrides_runpath=yes
9807 hardcode_into_libs=yes
9808 # ldd complains unless libraries are executable
9809 postinstall_cmds='chmod +x $lib'
9810 ;;
9811
9812sunos4*)
9813 version_type=sunos
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9815 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 shlibpath_overrides_runpath=yes
9818 if test "$with_gnu_ld" = yes; then
9819 need_lib_prefix=no
9820 fi
9821 need_version=yes
9822 ;;
9823
9824sysv4 | sysv4.3*)
9825 version_type=linux
9826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9827 soname_spec='${libname}${release}${shared_ext}$major'
9828 shlibpath_var=LD_LIBRARY_PATH
9829 case $host_vendor in
9830 sni)
9831 shlibpath_overrides_runpath=no
9832 need_lib_prefix=no
9833 runpath_var=LD_RUN_PATH
9834 ;;
9835 siemens)
9836 need_lib_prefix=no
9837 ;;
9838 motorola)
9839 need_lib_prefix=no
9840 need_version=no
9841 shlibpath_overrides_runpath=no
9842 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9843 ;;
9844 esac
9845 ;;
9846
9847sysv4*MP*)
9848 if test -d /usr/nec ;then
9849 version_type=linux
9850 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9851 soname_spec='$libname${shared_ext}.$major'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 fi
9854 ;;
9855
9856sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9857 version_type=freebsd-elf
9858 need_lib_prefix=no
9859 need_version=no
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9861 soname_spec='${libname}${release}${shared_ext}$major'
9862 shlibpath_var=LD_LIBRARY_PATH
9863 shlibpath_overrides_runpath=yes
9864 hardcode_into_libs=yes
9865 if test "$with_gnu_ld" = yes; then
9866 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9867 else
9868 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9869 case $host_os in
9870 sco3.2v5*)
9871 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9872 ;;
9873 esac
9874 fi
9875 sys_lib_dlsearch_path_spec='/usr/lib'
9876 ;;
9877
9878tpf*)
9879 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9880 version_type=linux
9881 need_lib_prefix=no
9882 need_version=no
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9884 shlibpath_var=LD_LIBRARY_PATH
9885 shlibpath_overrides_runpath=no
9886 hardcode_into_libs=yes
9887 ;;
9888
9889uts4*)
9890 version_type=linux
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 soname_spec='${libname}${release}${shared_ext}$major'
9893 shlibpath_var=LD_LIBRARY_PATH
9894 ;;
9895
9896*)
9897 dynamic_linker=no
9898 ;;
9899esac
9900{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9901echo "${ECHO_T}$dynamic_linker" >&6; }
9902test "$dynamic_linker" = no && can_build_shared=no
9903
9904variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9905if test "$GCC" = yes; then
9906 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9907fi
9908
9909if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9910 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9911fi
9912if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9913 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9914fi
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10003echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10004hardcode_action=
10005if test -n "$hardcode_libdir_flag_spec" ||
10006 test -n "$runpath_var" ||
10007 test "X$hardcode_automatic" = "Xyes" ; then
10008
10009 # We can hardcode non-existent directories.
10010 if test "$hardcode_direct" != no &&
10011 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10012 # have to relink, otherwise we might link with an installed library
10013 # when we should be linking with a yet-to-be-installed one
10014 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10015 test "$hardcode_minus_L" != no; then
10016 # Linking always hardcodes the temporary library directory.
10017 hardcode_action=relink
10018 else
10019 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10020 hardcode_action=immediate
10021 fi
10022else
10023 # We cannot hardcode anything, or else we can only hardcode existing
10024 # directories.
10025 hardcode_action=unsupported
10026fi
10027{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10028echo "${ECHO_T}$hardcode_action" >&6; }
10029
10030if test "$hardcode_action" = relink ||
10031 test "$inherit_rpath" = yes; then
10032 # Fast installation is not supported
10033 enable_fast_install=no
10034elif test "$shlibpath_overrides_runpath" = yes ||
10035 test "$enable_shared" = no; then
10036 # Fast installation is not necessary
10037 enable_fast_install=needless
10038fi
10039
10040
10041
10042
10043
10044
10045 if test "x$enable_dlopen" != xyes; then
10046 enable_dlopen=unknown
10047 enable_dlopen_self=unknown
10048 enable_dlopen_self_static=unknown
10049else
10050 lt_cv_dlopen=no
10051 lt_cv_dlopen_libs=
10052
10053 case $host_os in
10054 beos*)
10055 lt_cv_dlopen="load_add_on"
10056 lt_cv_dlopen_libs=
10057 lt_cv_dlopen_self=yes
10058 ;;
10059
10060 mingw* | pw32* | cegcc*)
10061 lt_cv_dlopen="LoadLibrary"
10062 lt_cv_dlopen_libs=
10063 ;;
10064
10065 cygwin*)
10066 lt_cv_dlopen="dlopen"
10067 lt_cv_dlopen_libs=
10068 ;;
10069
10070 darwin*)
10071 # if libdl is installed we need to link against it
10072 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10073echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10074if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076else
10077 ac_check_lib_save_LIBS=$LIBS
10078LIBS="-ldl $LIBS"
10079cat >conftest.$ac_ext <<_ACEOF
10080/* confdefs.h. */
10081_ACEOF
10082cat confdefs.h >>conftest.$ac_ext
10083cat >>conftest.$ac_ext <<_ACEOF
10084/* end confdefs.h. */
10085
10086/* Override any GCC internal prototype to avoid an error.
10087 Use char because int might match the return type of a GCC
10088 builtin and then its argument prototype would still apply. */
10089#ifdef __cplusplus
10090extern "C"
10091#endif
10092char dlopen ();
10093int
10094main ()
10095{
10096return dlopen ();
10097 ;
10098 return 0;
10099}
10100_ACEOF
10101rm -f conftest.$ac_objext conftest$ac_exeext
10102if { (ac_try="$ac_link"
10103case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10106esac
10107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_link") 2>conftest.er1
10109 ac_status=$?
10110 grep -v '^ *+' conftest.er1 >conftest.err
10111 rm -f conftest.er1
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } && {
10115 test -z "$ac_c_werror_flag" ||
10116 test ! -s conftest.err
10117 } && test -s conftest$ac_exeext &&
10118 $as_test_x conftest$ac_exeext; then
10119 ac_cv_lib_dl_dlopen=yes
10120else
10121 echo "$as_me: failed program was:" >&5
10122sed 's/^/| /' conftest.$ac_ext >&5
10123
10124 ac_cv_lib_dl_dlopen=no
10125fi
10126
10127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10128 conftest$ac_exeext conftest.$ac_ext
10129LIBS=$ac_check_lib_save_LIBS
10130fi
10131{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10132echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10133if test $ac_cv_lib_dl_dlopen = yes; then
10134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10135else
10136
10137 lt_cv_dlopen="dyld"
10138 lt_cv_dlopen_libs=
10139 lt_cv_dlopen_self=yes
10140
10141fi
10142
10143 ;;
10144
10145 *)
10146 { echo "$as_me:$LINENO: checking for shl_load" >&5
10147echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10148if test "${ac_cv_func_shl_load+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151 cat >conftest.$ac_ext <<_ACEOF
10152/* confdefs.h. */
10153_ACEOF
10154cat confdefs.h >>conftest.$ac_ext
10155cat >>conftest.$ac_ext <<_ACEOF
10156/* end confdefs.h. */
10157/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10159#define shl_load innocuous_shl_load
10160
10161/* System header to define __stub macros and hopefully few prototypes,
10162 which can conflict with char shl_load (); below.
10163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10164 <limits.h> exists even on freestanding compilers. */
10165
10166#ifdef __STDC__
10167# include <limits.h>
10168#else
10169# include <assert.h>
10170#endif
10171
10172#undef shl_load
10173
10174/* Override any GCC internal prototype to avoid an error.
10175 Use char because int might match the return type of a GCC
10176 builtin and then its argument prototype would still apply. */
10177#ifdef __cplusplus
10178extern "C"
10179#endif
10180char shl_load ();
10181/* The GNU C library defines this for functions which it implements
10182 to always fail with ENOSYS. Some functions are actually named
10183 something starting with __ and the normal name is an alias. */
10184#if defined __stub_shl_load || defined __stub___shl_load
10185choke me
10186#endif
10187
10188int
10189main ()
10190{
10191return shl_load ();
10192 ;
10193 return 0;
10194}
10195_ACEOF
10196rm -f conftest.$ac_objext conftest$ac_exeext
10197if { (ac_try="$ac_link"
10198case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10201esac
10202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_link") 2>conftest.er1
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && {
10210 test -z "$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 } && test -s conftest$ac_exeext &&
10213 $as_test_x conftest$ac_exeext; then
10214 ac_cv_func_shl_load=yes
10215else
10216 echo "$as_me: failed program was:" >&5
10217sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 ac_cv_func_shl_load=no
10220fi
10221
10222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10223 conftest$ac_exeext conftest.$ac_ext
10224fi
10225{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10226echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10227if test $ac_cv_func_shl_load = yes; then
10228 lt_cv_dlopen="shl_load"
10229else
10230 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10231echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10232if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234else
10235 ac_check_lib_save_LIBS=$LIBS
10236LIBS="-ldld $LIBS"
10237cat >conftest.$ac_ext <<_ACEOF
10238/* confdefs.h. */
10239_ACEOF
10240cat confdefs.h >>conftest.$ac_ext
10241cat >>conftest.$ac_ext <<_ACEOF
10242/* end confdefs.h. */
10243
10244/* Override any GCC internal prototype to avoid an error.
10245 Use char because int might match the return type of a GCC
10246 builtin and then its argument prototype would still apply. */
10247#ifdef __cplusplus
10248extern "C"
10249#endif
10250char shl_load ();
10251int
10252main ()
10253{
10254return shl_load ();
10255 ;
10256 return 0;
10257}
10258_ACEOF
10259rm -f conftest.$ac_objext conftest$ac_exeext
10260if { (ac_try="$ac_link"
10261case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10264esac
10265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_link") 2>conftest.er1
10267 ac_status=$?
10268 grep -v '^ *+' conftest.er1 >conftest.err
10269 rm -f conftest.er1
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } && {
10273 test -z "$ac_c_werror_flag" ||
10274 test ! -s conftest.err
10275 } && test -s conftest$ac_exeext &&
10276 $as_test_x conftest$ac_exeext; then
10277 ac_cv_lib_dld_shl_load=yes
10278else
10279 echo "$as_me: failed program was:" >&5
10280sed 's/^/| /' conftest.$ac_ext >&5
10281
10282 ac_cv_lib_dld_shl_load=no
10283fi
10284
10285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10286 conftest$ac_exeext conftest.$ac_ext
10287LIBS=$ac_check_lib_save_LIBS
10288fi
10289{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10290echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10291if test $ac_cv_lib_dld_shl_load = yes; then
10292 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10293else
10294 { echo "$as_me:$LINENO: checking for dlopen" >&5
10295echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10296if test "${ac_cv_func_dlopen+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298else
10299 cat >conftest.$ac_ext <<_ACEOF
10300/* confdefs.h. */
10301_ACEOF
10302cat confdefs.h >>conftest.$ac_ext
10303cat >>conftest.$ac_ext <<_ACEOF
10304/* end confdefs.h. */
10305/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10307#define dlopen innocuous_dlopen
10308
10309/* System header to define __stub macros and hopefully few prototypes,
10310 which can conflict with char dlopen (); below.
10311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10312 <limits.h> exists even on freestanding compilers. */
10313
10314#ifdef __STDC__
10315# include <limits.h>
10316#else
10317# include <assert.h>
10318#endif
10319
10320#undef dlopen
10321
10322/* Override any GCC internal prototype to avoid an error.
10323 Use char because int might match the return type of a GCC
10324 builtin and then its argument prototype would still apply. */
10325#ifdef __cplusplus
10326extern "C"
10327#endif
10328char dlopen ();
10329/* The GNU C library defines this for functions which it implements
10330 to always fail with ENOSYS. Some functions are actually named
10331 something starting with __ and the normal name is an alias. */
10332#if defined __stub_dlopen || defined __stub___dlopen
10333choke me
10334#endif
10335
10336int
10337main ()
10338{
10339return dlopen ();
10340 ;
10341 return 0;
10342}
10343_ACEOF
10344rm -f conftest.$ac_objext conftest$ac_exeext
10345if { (ac_try="$ac_link"
10346case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10349esac
10350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10351 (eval "$ac_link") 2>conftest.er1
10352 ac_status=$?
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } && {
10358 test -z "$ac_c_werror_flag" ||
10359 test ! -s conftest.err
10360 } && test -s conftest$ac_exeext &&
10361 $as_test_x conftest$ac_exeext; then
10362 ac_cv_func_dlopen=yes
10363else
10364 echo "$as_me: failed program was:" >&5
10365sed 's/^/| /' conftest.$ac_ext >&5
10366
10367 ac_cv_func_dlopen=no
10368fi
10369
10370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10371 conftest$ac_exeext conftest.$ac_ext
10372fi
10373{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10374echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10375if test $ac_cv_func_dlopen = yes; then
10376 lt_cv_dlopen="dlopen"
10377else
10378 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10379echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10380if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10382else
10383 ac_check_lib_save_LIBS=$LIBS
10384LIBS="-ldl $LIBS"
10385cat >conftest.$ac_ext <<_ACEOF
10386/* confdefs.h. */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h. */
10391
10392/* Override any GCC internal prototype to avoid an error.
10393 Use char because int might match the return type of a GCC
10394 builtin and then its argument prototype would still apply. */
10395#ifdef __cplusplus
10396extern "C"
10397#endif
10398char dlopen ();
10399int
10400main ()
10401{
10402return dlopen ();
10403 ;
10404 return 0;
10405}
10406_ACEOF
10407rm -f conftest.$ac_objext conftest$ac_exeext
10408if { (ac_try="$ac_link"
10409case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10412esac
10413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_link") 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest$ac_exeext &&
10424 $as_test_x conftest$ac_exeext; then
10425 ac_cv_lib_dl_dlopen=yes
10426else
10427 echo "$as_me: failed program was:" >&5
10428sed 's/^/| /' conftest.$ac_ext >&5
10429
10430 ac_cv_lib_dl_dlopen=no
10431fi
10432
10433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10434 conftest$ac_exeext conftest.$ac_ext
10435LIBS=$ac_check_lib_save_LIBS
10436fi
10437{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10438echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10439if test $ac_cv_lib_dl_dlopen = yes; then
10440 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10441else
10442 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10443echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10444if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10446else
10447 ac_check_lib_save_LIBS=$LIBS
10448LIBS="-lsvld $LIBS"
10449cat >conftest.$ac_ext <<_ACEOF
10450/* confdefs.h. */
10451_ACEOF
10452cat confdefs.h >>conftest.$ac_ext
10453cat >>conftest.$ac_ext <<_ACEOF
10454/* end confdefs.h. */
10455
10456/* Override any GCC internal prototype to avoid an error.
10457 Use char because int might match the return type of a GCC
10458 builtin and then its argument prototype would still apply. */
10459#ifdef __cplusplus
10460extern "C"
10461#endif
10462char dlopen ();
10463int
10464main ()
10465{
10466return dlopen ();
10467 ;
10468 return 0;
10469}
10470_ACEOF
10471rm -f conftest.$ac_objext conftest$ac_exeext
10472if { (ac_try="$ac_link"
10473case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476esac
10477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_link") 2>conftest.er1
10479 ac_status=$?
10480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } && {
10485 test -z "$ac_c_werror_flag" ||
10486 test ! -s conftest.err
10487 } && test -s conftest$ac_exeext &&
10488 $as_test_x conftest$ac_exeext; then
10489 ac_cv_lib_svld_dlopen=yes
10490else
10491 echo "$as_me: failed program was:" >&5
10492sed 's/^/| /' conftest.$ac_ext >&5
10493
10494 ac_cv_lib_svld_dlopen=no
10495fi
10496
10497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10498 conftest$ac_exeext conftest.$ac_ext
10499LIBS=$ac_check_lib_save_LIBS
10500fi
10501{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10502echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10503if test $ac_cv_lib_svld_dlopen = yes; then
10504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10505else
10506 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10507echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10508if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10510else
10511 ac_check_lib_save_LIBS=$LIBS
10512LIBS="-ldld $LIBS"
10513cat >conftest.$ac_ext <<_ACEOF
10514/* confdefs.h. */
10515_ACEOF
10516cat confdefs.h >>conftest.$ac_ext
10517cat >>conftest.$ac_ext <<_ACEOF
10518/* end confdefs.h. */
10519
10520/* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10523#ifdef __cplusplus
10524extern "C"
10525#endif
10526char dld_link ();
10527int
10528main ()
10529{
10530return dld_link ();
10531 ;
10532 return 0;
10533}
10534_ACEOF
10535rm -f conftest.$ac_objext conftest$ac_exeext
10536if { (ac_try="$ac_link"
10537case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10540esac
10541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_link") 2>conftest.er1
10543 ac_status=$?
10544 grep -v '^ *+' conftest.er1 >conftest.err
10545 rm -f conftest.er1
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } && {
10549 test -z "$ac_c_werror_flag" ||
10550 test ! -s conftest.err
10551 } && test -s conftest$ac_exeext &&
10552 $as_test_x conftest$ac_exeext; then
10553 ac_cv_lib_dld_dld_link=yes
10554else
10555 echo "$as_me: failed program was:" >&5
10556sed 's/^/| /' conftest.$ac_ext >&5
10557
10558 ac_cv_lib_dld_dld_link=no
10559fi
10560
10561rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562 conftest$ac_exeext conftest.$ac_ext
10563LIBS=$ac_check_lib_save_LIBS
10564fi
10565{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10566echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10567if test $ac_cv_lib_dld_dld_link = yes; then
10568 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10569fi
10570
10571
10572fi
10573
10574
10575fi
10576
10577
10578fi
10579
10580
10581fi
10582
10583
10584fi
10585
10586 ;;
10587 esac
10588
10589 if test "x$lt_cv_dlopen" != xno; then
10590 enable_dlopen=yes
10591 else
10592 enable_dlopen=no
10593 fi
10594
10595 case $lt_cv_dlopen in
10596 dlopen)
10597 save_CPPFLAGS="$CPPFLAGS"
10598 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10599
10600 save_LDFLAGS="$LDFLAGS"
10601 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10602
10603 save_LIBS="$LIBS"
10604 LIBS="$lt_cv_dlopen_libs $LIBS"
10605
10606 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10607echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10608if test "${lt_cv_dlopen_self+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610else
10611 if test "$cross_compiling" = yes; then :
10612 lt_cv_dlopen_self=cross
10613else
10614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10615 lt_status=$lt_dlunknown
10616 cat > conftest.$ac_ext <<_LT_EOF
10617#line 10617 "configure"
10618#include "confdefs.h"
10619
10620#if HAVE_DLFCN_H
10621#include <dlfcn.h>
10622#endif
10623
10624#include <stdio.h>
10625
10626#ifdef RTLD_GLOBAL
10627# define LT_DLGLOBAL RTLD_GLOBAL
10628#else
10629# ifdef DL_GLOBAL
10630# define LT_DLGLOBAL DL_GLOBAL
10631# else
10632# define LT_DLGLOBAL 0
10633# endif
10634#endif
10635
10636/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10637 find out it does not work in some platform. */
10638#ifndef LT_DLLAZY_OR_NOW
10639# ifdef RTLD_LAZY
10640# define LT_DLLAZY_OR_NOW RTLD_LAZY
10641# else
10642# ifdef DL_LAZY
10643# define LT_DLLAZY_OR_NOW DL_LAZY
10644# else
10645# ifdef RTLD_NOW
10646# define LT_DLLAZY_OR_NOW RTLD_NOW
10647# else
10648# ifdef DL_NOW
10649# define LT_DLLAZY_OR_NOW DL_NOW
10650# else
10651# define LT_DLLAZY_OR_NOW 0
10652# endif
10653# endif
10654# endif
10655# endif
10656#endif
10657
10658void fnord() { int i=42;}
10659int main ()
10660{
10661 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10662 int status = $lt_dlunknown;
10663
10664 if (self)
10665 {
10666 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10667 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10668 /* dlclose (self); */
10669 }
10670 else
10671 puts (dlerror ());
10672
10673 return status;
10674}
10675_LT_EOF
10676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10677 (eval $ac_link) 2>&5
10678 ac_status=$?
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10681 (./conftest; exit; ) >&5 2>/dev/null
10682 lt_status=$?
10683 case x$lt_status in
10684 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10685 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10686 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10687 esac
10688 else :
10689 # compilation failed
10690 lt_cv_dlopen_self=no
10691 fi
10692fi
10693rm -fr conftest*
10694
10695
10696fi
10697{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10698echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10699
10700 if test "x$lt_cv_dlopen_self" = xyes; then
10701 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10702 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10703echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10704if test "${lt_cv_dlopen_self_static+set}" = set; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10706else
10707 if test "$cross_compiling" = yes; then :
10708 lt_cv_dlopen_self_static=cross
10709else
10710 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10711 lt_status=$lt_dlunknown
10712 cat > conftest.$ac_ext <<_LT_EOF
10713#line 10713 "configure"
10714#include "confdefs.h"
10715
10716#if HAVE_DLFCN_H
10717#include <dlfcn.h>
10718#endif
10719
10720#include <stdio.h>
10721
10722#ifdef RTLD_GLOBAL
10723# define LT_DLGLOBAL RTLD_GLOBAL
10724#else
10725# ifdef DL_GLOBAL
10726# define LT_DLGLOBAL DL_GLOBAL
10727# else
10728# define LT_DLGLOBAL 0
10729# endif
10730#endif
10731
10732/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10733 find out it does not work in some platform. */
10734#ifndef LT_DLLAZY_OR_NOW
10735# ifdef RTLD_LAZY
10736# define LT_DLLAZY_OR_NOW RTLD_LAZY
10737# else
10738# ifdef DL_LAZY
10739# define LT_DLLAZY_OR_NOW DL_LAZY
10740# else
10741# ifdef RTLD_NOW
10742# define LT_DLLAZY_OR_NOW RTLD_NOW
10743# else
10744# ifdef DL_NOW
10745# define LT_DLLAZY_OR_NOW DL_NOW
10746# else
10747# define LT_DLLAZY_OR_NOW 0
10748# endif
10749# endif
10750# endif
10751# endif
10752#endif
10753
10754void fnord() { int i=42;}
10755int main ()
10756{
10757 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10758 int status = $lt_dlunknown;
10759
10760 if (self)
10761 {
10762 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10763 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10764 /* dlclose (self); */
10765 }
10766 else
10767 puts (dlerror ());
10768
10769 return status;
10770}
10771_LT_EOF
10772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10773 (eval $ac_link) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10777 (./conftest; exit; ) >&5 2>/dev/null
10778 lt_status=$?
10779 case x$lt_status in
10780 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10781 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10782 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10783 esac
10784 else :
10785 # compilation failed
10786 lt_cv_dlopen_self_static=no
10787 fi
10788fi
10789rm -fr conftest*
10790
10791
10792fi
10793{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10794echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10795 fi
10796
10797 CPPFLAGS="$save_CPPFLAGS"
10798 LDFLAGS="$save_LDFLAGS"
10799 LIBS="$save_LIBS"
10800 ;;
10801 esac
10802
10803 case $lt_cv_dlopen_self in
10804 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10805 *) enable_dlopen_self=unknown ;;
10806 esac
10807
10808 case $lt_cv_dlopen_self_static in
10809 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10810 *) enable_dlopen_self_static=unknown ;;
10811 esac
10812fi
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830striplib=
10831old_striplib=
10832{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10833echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10834if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10835 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10836 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10837 { echo "$as_me:$LINENO: result: yes" >&5
10838echo "${ECHO_T}yes" >&6; }
10839else
10840# FIXME - insert some real tests, host_os isn't really good enough
10841 case $host_os in
10842 darwin*)
10843 if test -n "$STRIP" ; then
10844 striplib="$STRIP -x"
10845 old_striplib="$STRIP -S"
10846 { echo "$as_me:$LINENO: result: yes" >&5
10847echo "${ECHO_T}yes" >&6; }
10848 else
10849 { echo "$as_me:$LINENO: result: no" >&5
10850echo "${ECHO_T}no" >&6; }
10851 fi
10852 ;;
10853 *)
10854 { echo "$as_me:$LINENO: result: no" >&5
10855echo "${ECHO_T}no" >&6; }
10856 ;;
10857 esac
10858fi
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871 # Report which library types will actually be built
10872 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10873echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10874 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10875echo "${ECHO_T}$can_build_shared" >&6; }
10876
10877 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10878echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10879 test "$can_build_shared" = "no" && enable_shared=no
10880
10881 # On AIX, shared libraries and static libraries use the same namespace, and
10882 # are all built from PIC.
10883 case $host_os in
10884 aix3*)
10885 test "$enable_shared" = yes && enable_static=no
10886 if test -n "$RANLIB"; then
10887 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10888 postinstall_cmds='$RANLIB $lib'
10889 fi
10890 ;;
10891
10892 aix[4-9]*)
10893 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10894 test "$enable_shared" = yes && enable_static=no
10895 fi
10896 ;;
10897 esac
10898 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10899echo "${ECHO_T}$enable_shared" >&6; }
10900
10901 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10902echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10903 # Make sure either enable_shared or enable_static is yes.
10904 test "$enable_shared" = yes || enable_static=yes
10905 { echo "$as_me:$LINENO: result: $enable_static" >&5
10906echo "${ECHO_T}$enable_static" >&6; }
10907
10908
10909
10910
10911fi
10912ac_ext=c
10913ac_cpp='$CPP $CPPFLAGS'
10914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10916ac_compiler_gnu=$ac_cv_c_compiler_gnu
10917
10918CC="$lt_save_CC"
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932 ac_config_commands="$ac_config_commands libtool"
10933
10934
10935
10936
10937# Only expand once:
10938
10939
10940if test "x$CC" != xcc; then
10941 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
10942echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
10943else
10944 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
10945echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
10946fi
10947set dummy $CC; ac_cc=`echo $2 |
10948 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
10949if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951else
10952 cat >conftest.$ac_ext <<_ACEOF
10953/* confdefs.h. */
10954_ACEOF
10955cat confdefs.h >>conftest.$ac_ext
10956cat >>conftest.$ac_ext <<_ACEOF
10957/* end confdefs.h. */
10958
10959int
10960main ()
10961{
10962
10963 ;
10964 return 0;
10965}
10966_ACEOF
10967# Make sure it works both with $CC and with simple cc.
10968# We do the test twice because some compilers refuse to overwrite an
10969# existing .o file with -o, though they will create one.
10970ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
10971rm -f conftest2.*
10972if { (case "(($ac_try" in
10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10975esac
10976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_try") 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
10981 test -f conftest2.$ac_objext && { (case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10984esac
10985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_try") 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); };
10990then
10991 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
10992 if test "x$CC" != xcc; then
10993 # Test first that cc exists at all.
10994 if { ac_try='cc -c conftest.$ac_ext >&5'
10995 { (case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998esac
10999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_try") 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
11004 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11005 rm -f conftest2.*
11006 if { (case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11009esac
11010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_try") 2>&5
11012 ac_status=$?
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11018esac
11019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_try") 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); };
11024 then
11025 # cc works too.
11026 :
11027 else
11028 # cc exists but doesn't like -o.
11029 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11030 fi
11031 fi
11032 fi
11033else
11034 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11035fi
11036rm -f core conftest*
11037
11038fi
11039if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11040 { echo "$as_me:$LINENO: result: yes" >&5
11041echo "${ECHO_T}yes" >&6; }
11042else
11043 { echo "$as_me:$LINENO: result: no" >&5
11044echo "${ECHO_T}no" >&6; }
11045
11046cat >>confdefs.h <<\_ACEOF
11047#define NO_MINUS_C_MINUS_O 1
11048_ACEOF
11049
11050fi
11051
11052# FIXME: we rely on the cache variable name because
11053# there is no other way.
11054set dummy $CC
11055ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11056if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
11057 # Losing compiler, so override with the script.
11058 # FIXME: It is wrong to rewrite CC.
11059 # But if we don't then we get into trouble of one sort or another.
11060 # A longer-term fix would be to have automake use am__CC in this case,
11061 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11062 CC="$am_aux_dir/compile $CC"
11063fi
11064
11065
11066ac_config_headers="$ac_config_headers config.h"
11067
11068
11069
11070cflags_save="$CFLAGS"
11071if test -z "$GCC"; then
11072 case $host in
11073 *-*-irix*)
11074 DEBUG="-g -signed"
11075 CFLAGS="-O2 -w -signed"
11076 PROFILE="-p -g3 -O2 -signed"
11077 ;;
11078 sparc-sun-solaris*)
11079 DEBUG="-v -g"
11080 CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
11081 PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
11082 ;;
11083 *)
11084 DEBUG="-g"
11085 CFLAGS="-O"
11086 PROFILE="-g -p"
11087 ;;
11088 esac
11089else
11090 case $host in
11091 *-*-linux*)
11092 DEBUG="-g -Wall -fsigned-char"
11093 CFLAGS="-O20 -ffast-math -fsigned-char"
11094 PROFILE="-Wall -W -pg -g -O20 -ffast-math -fsigned-char"
11095 ;;
11096 sparc-sun-*)
11097 sparc_cpu=""
11098 { echo "$as_me:$LINENO: checking if gcc supports -mv8" >&5
11099echo $ECHO_N "checking if gcc supports -mv8... $ECHO_C" >&6; }
11100 old_cflags="$CFLAGS"
11101 CFLAGS="$CFLAGS -mv8"
11102 cat >conftest.$ac_ext <<_ACEOF
11103/* confdefs.h. */
11104_ACEOF
11105cat confdefs.h >>conftest.$ac_ext
11106cat >>conftest.$ac_ext <<_ACEOF
11107/* end confdefs.h. */
11108
11109int
11110main ()
11111{
11112return 0;
11113 ;
11114 return 0;
11115}
11116_ACEOF
11117rm -f conftest.$ac_objext
11118if { (ac_try="$ac_compile"
11119case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11122esac
11123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_compile") 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } && {
11131 test -z "$ac_c_werror_flag" ||
11132 test ! -s conftest.err
11133 } && test -s conftest.$ac_objext; then
11134
11135 { echo "$as_me:$LINENO: result: yes" >&5
11136echo "${ECHO_T}yes" >&6; }
11137 sparc_cpu="-mv8"
11138
11139else
11140 echo "$as_me: failed program was:" >&5
11141sed 's/^/| /' conftest.$ac_ext >&5
11142
11143
11144fi
11145
11146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11147 CFLAGS="$old_cflags"
11148 DEBUG="-g -Wall -fsigned-char $sparc_cpu"
11149 CFLAGS="-O20 -ffast-math -fsigned-char $sparc_cpu"
11150 PROFILE="-pg -g -O20 -fsigned-char $sparc_cpu"
11151 ;;
11152 *-*-darwin*)
11153 DEBUG="-fno-common -g -Wall -fsigned-char"
11154 CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
11155 PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
11156 ;;
11157 *)
11158 DEBUG="-g -Wall -fsigned-char"
11159 CFLAGS="-O20 -fsigned-char"
11160 PROFILE="-O20 -g -pg -fsigned-char"
11161 ;;
11162 esac
11163fi
11164CFLAGS="$CFLAGS $cflags_save"
11165DEBUG="$DEBUG $cflags_save"
11166PROFILE="$PROFILE $cflags_save"
11167
11168
11169
11170{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11171echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
11172if test "${ac_cv_header_stdc+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11174else
11175 cat >conftest.$ac_ext <<_ACEOF
11176/* confdefs.h. */
11177_ACEOF
11178cat confdefs.h >>conftest.$ac_ext
11179cat >>conftest.$ac_ext <<_ACEOF
11180/* end confdefs.h. */
11181#include <stdlib.h>
11182#include <stdarg.h>
11183#include <string.h>
11184#include <float.h>
11185
11186int
11187main ()
11188{
11189
11190 ;
11191 return 0;
11192}
11193_ACEOF
11194rm -f conftest.$ac_objext
11195if { (ac_try="$ac_compile"
11196case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11199esac
11200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_compile") 2>conftest.er1
11202 ac_status=$?
11203 grep -v '^ *+' conftest.er1 >conftest.err
11204 rm -f conftest.er1
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } && {
11208 test -z "$ac_c_werror_flag" ||
11209 test ! -s conftest.err
11210 } && test -s conftest.$ac_objext; then
11211 ac_cv_header_stdc=yes
11212else
11213 echo "$as_me: failed program was:" >&5
11214sed 's/^/| /' conftest.$ac_ext >&5
11215
11216 ac_cv_header_stdc=no
11217fi
11218
11219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11220
11221if test $ac_cv_header_stdc = yes; then
11222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11223 cat >conftest.$ac_ext <<_ACEOF
11224/* confdefs.h. */
11225_ACEOF
11226cat confdefs.h >>conftest.$ac_ext
11227cat >>conftest.$ac_ext <<_ACEOF
11228/* end confdefs.h. */
11229#include <string.h>
11230
11231_ACEOF
11232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11233 $EGREP "memchr" >/dev/null 2>&1; then
11234 :
11235else
11236 ac_cv_header_stdc=no
11237fi
11238rm -f conftest*
11239
11240fi
11241
11242if test $ac_cv_header_stdc = yes; then
11243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11244 cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250#include <stdlib.h>
11251
11252_ACEOF
11253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11254 $EGREP "free" >/dev/null 2>&1; then
11255 :
11256else
11257 ac_cv_header_stdc=no
11258fi
11259rm -f conftest*
11260
11261fi
11262
11263if test $ac_cv_header_stdc = yes; then
11264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11265 if test "$cross_compiling" = yes; then
11266 :
11267else
11268 cat >conftest.$ac_ext <<_ACEOF
11269/* confdefs.h. */
11270_ACEOF
11271cat confdefs.h >>conftest.$ac_ext
11272cat >>conftest.$ac_ext <<_ACEOF
11273/* end confdefs.h. */
11274#include <ctype.h>
11275#include <stdlib.h>
11276#if ((' ' & 0x0FF) == 0x020)
11277# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11278# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11279#else
11280# define ISLOWER(c) \
11281 (('a' <= (c) && (c) <= 'i') \
11282 || ('j' <= (c) && (c) <= 'r') \
11283 || ('s' <= (c) && (c) <= 'z'))
11284# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11285#endif
11286
11287#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11288int
11289main ()
11290{
11291 int i;
11292 for (i = 0; i < 256; i++)
11293 if (XOR (islower (i), ISLOWER (i))
11294 || toupper (i) != TOUPPER (i))
11295 return 2;
11296 return 0;
11297}
11298_ACEOF
11299rm -f conftest$ac_exeext
11300if { (ac_try="$ac_link"
11301case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11304esac
11305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_link") 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11310 { (case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11313esac
11314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_try") 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 :
11320else
11321 echo "$as_me: program exited with status $ac_status" >&5
11322echo "$as_me: failed program was:" >&5
11323sed 's/^/| /' conftest.$ac_ext >&5
11324
11325( exit $ac_status )
11326ac_cv_header_stdc=no
11327fi
11328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11329fi
11330
11331
11332fi
11333fi
11334{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11335echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11336if test $ac_cv_header_stdc = yes; then
11337
11338cat >>confdefs.h <<\_ACEOF
11339#define STDC_HEADERS 1
11340_ACEOF
11341
11342fi
11343
11344
11345{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11346echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11347if test "${ac_cv_c_const+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349else
11350 cat >conftest.$ac_ext <<_ACEOF
11351/* confdefs.h. */
11352_ACEOF
11353cat confdefs.h >>conftest.$ac_ext
11354cat >>conftest.$ac_ext <<_ACEOF
11355/* end confdefs.h. */
11356
11357int
11358main ()
11359{
11360/* FIXME: Include the comments suggested by Paul. */
11361#ifndef __cplusplus
11362 /* Ultrix mips cc rejects this. */
11363 typedef int charset[2];
11364 const charset cs;
11365 /* SunOS 4.1.1 cc rejects this. */
11366 char const *const *pcpcc;
11367 char **ppc;
11368 /* NEC SVR4.0.2 mips cc rejects this. */
11369 struct point {int x, y;};
11370 static struct point const zero = {0,0};
11371 /* AIX XL C 1.02.0.0 rejects this.
11372 It does not let you subtract one const X* pointer from another in
11373 an arm of an if-expression whose if-part is not a constant
11374 expression */
11375 const char *g = "string";
11376 pcpcc = &g + (g ? g-g : 0);
11377 /* HPUX 7.0 cc rejects these. */
11378 ++pcpcc;
11379 ppc = (char**) pcpcc;
11380 pcpcc = (char const *const *) ppc;
11381 { /* SCO 3.2v4 cc rejects this. */
11382 char *t;
11383 char const *s = 0 ? (char *) 0 : (char const *) 0;
11384
11385 *t++ = 0;
11386 if (s) return 0;
11387 }
11388 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11389 int x[] = {25, 17};
11390 const int *foo = &x[0];
11391 ++foo;
11392 }
11393 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11394 typedef const int *iptr;
11395 iptr p = 0;
11396 ++p;
11397 }
11398 { /* AIX XL C 1.02.0.0 rejects this saying
11399 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11400 struct s { int j; const int *ap[3]; };
11401 struct s *b; b->j = 5;
11402 }
11403 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11404 const int foo = 10;
11405 if (!foo) return 0;
11406 }
11407 return !cs[0] && !zero.x;
11408#endif
11409
11410 ;
11411 return 0;
11412}
11413_ACEOF
11414rm -f conftest.$ac_objext
11415if { (ac_try="$ac_compile"
11416case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419esac
11420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421 (eval "$ac_compile") 2>conftest.er1
11422 ac_status=$?
11423 grep -v '^ *+' conftest.er1 >conftest.err
11424 rm -f conftest.er1
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } && {
11428 test -z "$ac_c_werror_flag" ||
11429 test ! -s conftest.err
11430 } && test -s conftest.$ac_objext; then
11431 ac_cv_c_const=yes
11432else
11433 echo "$as_me: failed program was:" >&5
11434sed 's/^/| /' conftest.$ac_ext >&5
11435
11436 ac_cv_c_const=no
11437fi
11438
11439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11440fi
11441{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11442echo "${ECHO_T}$ac_cv_c_const" >&6; }
11443if test $ac_cv_c_const = no; then
11444
11445cat >>confdefs.h <<\_ACEOF
11446#define const
11447_ACEOF
11448
11449fi
11450
11451
11452
11453{ echo "$as_me:$LINENO: checking for int16_t" >&5
11454echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
11455if test "${has_cv_int16_t+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457else
11458 if test "$cross_compiling" = yes; then
11459 has_cv_int16_t=no
11460
11461else
11462 cat >conftest.$ac_ext <<_ACEOF
11463/* confdefs.h. */
11464_ACEOF
11465cat confdefs.h >>conftest.$ac_ext
11466cat >>conftest.$ac_ext <<_ACEOF
11467/* end confdefs.h. */
11468
11469#if defined __BEOS__ && !defined __HAIKU__
11470#include <inttypes.h>
11471#endif
11472#include <sys/types.h>
11473int16_t foo;
11474int main() {return 0;}
11475
11476_ACEOF
11477rm -f conftest$ac_exeext
11478if { (ac_try="$ac_link"
11479case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482esac
11483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_link") 2>&5
11485 ac_status=$?
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 has_cv_int16_t=yes
11498else
11499 echo "$as_me: program exited with status $ac_status" >&5
11500echo "$as_me: failed program was:" >&5
11501sed 's/^/| /' conftest.$ac_ext >&5
11502
11503( exit $ac_status )
11504has_cv_int16_t=no
11505fi
11506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11507fi
11508
11509
11510fi
11511
11512{ echo "$as_me:$LINENO: result: $has_cv_int16_t" >&5
11513echo "${ECHO_T}$has_cv_int16_t" >&6; }
11514
11515{ echo "$as_me:$LINENO: checking for int32_t" >&5
11516echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
11517if test "${has_cv_int32_t+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519else
11520 if test "$cross_compiling" = yes; then
11521 has_cv_int32_t=no
11522
11523else
11524 cat >conftest.$ac_ext <<_ACEOF
11525/* confdefs.h. */
11526_ACEOF
11527cat confdefs.h >>conftest.$ac_ext
11528cat >>conftest.$ac_ext <<_ACEOF
11529/* end confdefs.h. */
11530
11531#if defined __BEOS__ && !defined __HAIKU__
11532#include <inttypes.h>
11533#endif
11534#include <sys/types.h>
11535int32_t foo;
11536int main() {return 0;}
11537
11538_ACEOF
11539rm -f conftest$ac_exeext
11540if { (ac_try="$ac_link"
11541case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11544esac
11545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_link") 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11550 { (case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553esac
11554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_try") 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
11559 has_cv_int32_t=yes
11560else
11561 echo "$as_me: program exited with status $ac_status" >&5
11562echo "$as_me: failed program was:" >&5
11563sed 's/^/| /' conftest.$ac_ext >&5
11564
11565( exit $ac_status )
11566has_cv_int32_t=no
11567fi
11568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11569fi
11570
11571
11572fi
11573
11574{ echo "$as_me:$LINENO: result: $has_cv_int32_t" >&5
11575echo "${ECHO_T}$has_cv_int32_t" >&6; }
11576
11577{ echo "$as_me:$LINENO: checking for uint32_t" >&5
11578echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
11579if test "${has_cv_uint32_t+set}" = set; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11581else
11582 if test "$cross_compiling" = yes; then
11583 has_cv_uint32_t=no
11584
11585else
11586 cat >conftest.$ac_ext <<_ACEOF
11587/* confdefs.h. */
11588_ACEOF
11589cat confdefs.h >>conftest.$ac_ext
11590cat >>conftest.$ac_ext <<_ACEOF
11591/* end confdefs.h. */
11592
11593#if defined __BEOS__ && !defined __HAIKU__
11594#include <inttypes.h>
11595#endif
11596#include <sys/types.h>
11597uint32_t foo;
11598int main() {return 0;}
11599
11600_ACEOF
11601rm -f conftest$ac_exeext
11602if { (ac_try="$ac_link"
11603case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11606esac
11607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_link") 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 has_cv_uint32_t=yes
11622else
11623 echo "$as_me: program exited with status $ac_status" >&5
11624echo "$as_me: failed program was:" >&5
11625sed 's/^/| /' conftest.$ac_ext >&5
11626
11627( exit $ac_status )
11628has_cv_uint32_t=no
11629fi
11630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11631fi
11632
11633
11634fi
11635
11636{ echo "$as_me:$LINENO: result: $has_cv_uint32_t" >&5
11637echo "${ECHO_T}$has_cv_uint32_t" >&6; }
11638
11639{ echo "$as_me:$LINENO: checking for uint16_t" >&5
11640echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
11641if test "${has_cv_uint16_t+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643else
11644 if test "$cross_compiling" = yes; then
11645 has_cv_uint16_t=no
11646
11647else
11648 cat >conftest.$ac_ext <<_ACEOF
11649/* confdefs.h. */
11650_ACEOF
11651cat confdefs.h >>conftest.$ac_ext
11652cat >>conftest.$ac_ext <<_ACEOF
11653/* end confdefs.h. */
11654
11655#if defined __BEOS__ && !defined __HAIKU__
11656#include <inttypes.h>
11657#endif
11658#include <sys/types.h>
11659uint16_t foo;
11660int main() {return 0;}
11661
11662_ACEOF
11663rm -f conftest$ac_exeext
11664if { (ac_try="$ac_link"
11665case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668esac
11669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_link") 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11674 { (case "(($ac_try" in
11675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676 *) ac_try_echo=$ac_try;;
11677esac
11678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_try") 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 has_cv_uint16_t=yes
11684else
11685 echo "$as_me: program exited with status $ac_status" >&5
11686echo "$as_me: failed program was:" >&5
11687sed 's/^/| /' conftest.$ac_ext >&5
11688
11689( exit $ac_status )
11690has_cv_uint16_t=no
11691fi
11692rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11693fi
11694
11695
11696fi
11697
11698{ echo "$as_me:$LINENO: result: $has_cv_uint16_t" >&5
11699echo "${ECHO_T}$has_cv_uint16_t" >&6; }
11700
11701{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
11702echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
11703if test "${has_cv_u_int32_t+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11705else
11706 if test "$cross_compiling" = yes; then
11707 has_cv_u_int32_t=no
11708
11709else
11710 cat >conftest.$ac_ext <<_ACEOF
11711/* confdefs.h. */
11712_ACEOF
11713cat confdefs.h >>conftest.$ac_ext
11714cat >>conftest.$ac_ext <<_ACEOF
11715/* end confdefs.h. */
11716
11717#if defined __BEOS__ && !defined __HAIKU__
11718#include <inttypes.h>
11719#endif
11720#include <sys/types.h>
11721u_int32_t foo;
11722int main() {return 0;}
11723
11724_ACEOF
11725rm -f conftest$ac_exeext
11726if { (ac_try="$ac_link"
11727case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11730esac
11731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732 (eval "$ac_link") 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11736 { (case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739esac
11740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_try") 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 has_cv_u_int32_t=yes
11746else
11747 echo "$as_me: program exited with status $ac_status" >&5
11748echo "$as_me: failed program was:" >&5
11749sed 's/^/| /' conftest.$ac_ext >&5
11750
11751( exit $ac_status )
11752has_cv_u_int32_t=no
11753fi
11754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11755fi
11756
11757
11758fi
11759
11760{ echo "$as_me:$LINENO: result: $has_cv_u_int32_t" >&5
11761echo "${ECHO_T}$has_cv_u_int32_t" >&6; }
11762
11763{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
11764echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
11765if test "${has_cv_u_int16_t+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767else
11768 if test "$cross_compiling" = yes; then
11769 has_cv_u_int16_t=no
11770
11771else
11772 cat >conftest.$ac_ext <<_ACEOF
11773/* confdefs.h. */
11774_ACEOF
11775cat confdefs.h >>conftest.$ac_ext
11776cat >>conftest.$ac_ext <<_ACEOF
11777/* end confdefs.h. */
11778
11779#if defined __BEOS__ && !defined __HAIKU__
11780#include <inttypes.h>
11781#endif
11782#include <sys/types.h>
11783u_int16_t foo;
11784int main() {return 0;}
11785
11786_ACEOF
11787rm -f conftest$ac_exeext
11788if { (ac_try="$ac_link"
11789case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11792esac
11793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_link") 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11798 { (case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11801esac
11802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803 (eval "$ac_try") 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 has_cv_u_int16_t=yes
11808else
11809 echo "$as_me: program exited with status $ac_status" >&5
11810echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813( exit $ac_status )
11814has_cv_u_int16_t=no
11815fi
11816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11817fi
11818
11819
11820fi
11821
11822{ echo "$as_me:$LINENO: result: $has_cv_u_int16_t" >&5
11823echo "${ECHO_T}$has_cv_u_int16_t" >&6; }
11824
11825{ echo "$as_me:$LINENO: checking for int64_t" >&5
11826echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11827if test "${has_cv_int64_t+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829else
11830 if test "$cross_compiling" = yes; then
11831 has_cv_int64_t=no
11832
11833else
11834 cat >conftest.$ac_ext <<_ACEOF
11835/* confdefs.h. */
11836_ACEOF
11837cat confdefs.h >>conftest.$ac_ext
11838cat >>conftest.$ac_ext <<_ACEOF
11839/* end confdefs.h. */
11840
11841#if defined __BEOS__ && !defined __HAIKU__
11842#include <inttypes.h>
11843#endif
11844#include <sys/types.h>
11845int64_t foo;
11846int main() {return 0;}
11847
11848_ACEOF
11849rm -f conftest$ac_exeext
11850if { (ac_try="$ac_link"
11851case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11854esac
11855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_link") 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11860 { (case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863esac
11864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_try") 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; }; then
11869 has_cv_int64_t=yes
11870else
11871 echo "$as_me: program exited with status $ac_status" >&5
11872echo "$as_me: failed program was:" >&5
11873sed 's/^/| /' conftest.$ac_ext >&5
11874
11875( exit $ac_status )
11876has_cv_int64_t=no
11877fi
11878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11879fi
11880
11881
11882fi
11883
11884{ echo "$as_me:$LINENO: result: $has_cv_int64_t" >&5
11885echo "${ECHO_T}$has_cv_int64_t" >&6; }
11886
11887{ echo "$as_me:$LINENO: checking for short" >&5
11888echo $ECHO_N "checking for short... $ECHO_C" >&6; }
11889if test "${ac_cv_type_short+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11891else
11892 cat >conftest.$ac_ext <<_ACEOF
11893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
11898$ac_includes_default
11899typedef short ac__type_new_;
11900int
11901main ()
11902{
11903if ((ac__type_new_ *) 0)
11904 return 0;
11905if (sizeof (ac__type_new_))
11906 return 0;
11907 ;
11908 return 0;
11909}
11910_ACEOF
11911rm -f conftest.$ac_objext
11912if { (ac_try="$ac_compile"
11913case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916esac
11917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_compile") 2>conftest.er1
11919 ac_status=$?
11920 grep -v '^ *+' conftest.er1 >conftest.err
11921 rm -f conftest.er1
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } && {
11925 test -z "$ac_c_werror_flag" ||
11926 test ! -s conftest.err
11927 } && test -s conftest.$ac_objext; then
11928 ac_cv_type_short=yes
11929else
11930 echo "$as_me: failed program was:" >&5
11931sed 's/^/| /' conftest.$ac_ext >&5
11932
11933 ac_cv_type_short=no
11934fi
11935
11936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937fi
11938{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11939echo "${ECHO_T}$ac_cv_type_short" >&6; }
11940
11941# The cast to long int works around a bug in the HP C Compiler
11942# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11943# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11944# This bug is HP SR number 8606223364.
11945{ echo "$as_me:$LINENO: checking size of short" >&5
11946echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
11947if test "${ac_cv_sizeof_short+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950 if test "$cross_compiling" = yes; then
11951 # Depending upon the size, compute the lo and hi bounds.
11952cat >conftest.$ac_ext <<_ACEOF
11953/* confdefs.h. */
11954_ACEOF
11955cat confdefs.h >>conftest.$ac_ext
11956cat >>conftest.$ac_ext <<_ACEOF
11957/* end confdefs.h. */
11958$ac_includes_default
11959 typedef short ac__type_sizeof_;
11960int
11961main ()
11962{
11963static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11964test_array [0] = 0
11965
11966 ;
11967 return 0;
11968}
11969_ACEOF
11970rm -f conftest.$ac_objext
11971if { (ac_try="$ac_compile"
11972case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975esac
11976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_compile") 2>conftest.er1
11978 ac_status=$?
11979 grep -v '^ *+' conftest.er1 >conftest.err
11980 rm -f conftest.er1
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } && {
11984 test -z "$ac_c_werror_flag" ||
11985 test ! -s conftest.err
11986 } && test -s conftest.$ac_objext; then
11987 ac_lo=0 ac_mid=0
11988 while :; do
11989 cat >conftest.$ac_ext <<_ACEOF
11990/* confdefs.h. */
11991_ACEOF
11992cat confdefs.h >>conftest.$ac_ext
11993cat >>conftest.$ac_ext <<_ACEOF
11994/* end confdefs.h. */
11995$ac_includes_default
11996 typedef short ac__type_sizeof_;
11997int
11998main ()
11999{
12000static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12001test_array [0] = 0
12002
12003 ;
12004 return 0;
12005}
12006_ACEOF
12007rm -f conftest.$ac_objext
12008if { (ac_try="$ac_compile"
12009case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12012esac
12013eval "echo \"\$as_me:$LINENO: $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 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 ac_hi=$ac_mid; break
12025else
12026 echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029 ac_lo=`expr $ac_mid + 1`
12030 if test $ac_lo -le $ac_mid; then
12031 ac_lo= ac_hi=
12032 break
12033 fi
12034 ac_mid=`expr 2 '*' $ac_mid + 1`
12035fi
12036
12037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 done
12039else
12040 echo "$as_me: failed program was:" >&5
12041sed 's/^/| /' conftest.$ac_ext >&5
12042
12043 cat >conftest.$ac_ext <<_ACEOF
12044/* confdefs.h. */
12045_ACEOF
12046cat confdefs.h >>conftest.$ac_ext
12047cat >>conftest.$ac_ext <<_ACEOF
12048/* end confdefs.h. */
12049$ac_includes_default
12050 typedef short ac__type_sizeof_;
12051int
12052main ()
12053{
12054static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12055test_array [0] = 0
12056
12057 ;
12058 return 0;
12059}
12060_ACEOF
12061rm -f conftest.$ac_objext
12062if { (ac_try="$ac_compile"
12063case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066esac
12067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_compile") 2>conftest.er1
12069 ac_status=$?
12070 grep -v '^ *+' conftest.er1 >conftest.err
12071 rm -f conftest.er1
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } && {
12075 test -z "$ac_c_werror_flag" ||
12076 test ! -s conftest.err
12077 } && test -s conftest.$ac_objext; then
12078 ac_hi=-1 ac_mid=-1
12079 while :; do
12080 cat >conftest.$ac_ext <<_ACEOF
12081/* confdefs.h. */
12082_ACEOF
12083cat confdefs.h >>conftest.$ac_ext
12084cat >>conftest.$ac_ext <<_ACEOF
12085/* end confdefs.h. */
12086$ac_includes_default
12087 typedef short ac__type_sizeof_;
12088int
12089main ()
12090{
12091static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12092test_array [0] = 0
12093
12094 ;
12095 return 0;
12096}
12097_ACEOF
12098rm -f conftest.$ac_objext
12099if { (ac_try="$ac_compile"
12100case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103esac
12104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_compile") 2>conftest.er1
12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } && {
12112 test -z "$ac_c_werror_flag" ||
12113 test ! -s conftest.err
12114 } && test -s conftest.$ac_objext; then
12115 ac_lo=$ac_mid; break
12116else
12117 echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
12120 ac_hi=`expr '(' $ac_mid ')' - 1`
12121 if test $ac_mid -le $ac_hi; then
12122 ac_lo= ac_hi=
12123 break
12124 fi
12125 ac_mid=`expr 2 '*' $ac_mid`
12126fi
12127
12128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129 done
12130else
12131 echo "$as_me: failed program was:" >&5
12132sed 's/^/| /' conftest.$ac_ext >&5
12133
12134 ac_lo= ac_hi=
12135fi
12136
12137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138fi
12139
12140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141# Binary search between lo and hi bounds.
12142while test "x$ac_lo" != "x$ac_hi"; do
12143 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12144 cat >conftest.$ac_ext <<_ACEOF
12145/* confdefs.h. */
12146_ACEOF
12147cat confdefs.h >>conftest.$ac_ext
12148cat >>conftest.$ac_ext <<_ACEOF
12149/* end confdefs.h. */
12150$ac_includes_default
12151 typedef short ac__type_sizeof_;
12152int
12153main ()
12154{
12155static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12156test_array [0] = 0
12157
12158 ;
12159 return 0;
12160}
12161_ACEOF
12162rm -f conftest.$ac_objext
12163if { (ac_try="$ac_compile"
12164case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167esac
12168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_compile") 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest.$ac_objext; then
12179 ac_hi=$ac_mid
12180else
12181 echo "$as_me: failed program was:" >&5
12182sed 's/^/| /' conftest.$ac_ext >&5
12183
12184 ac_lo=`expr '(' $ac_mid ')' + 1`
12185fi
12186
12187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12188done
12189case $ac_lo in
12190?*) ac_cv_sizeof_short=$ac_lo;;
12191'') if test "$ac_cv_type_short" = yes; then
12192 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12193See \`config.log' for more details." >&5
12194echo "$as_me: error: cannot compute sizeof (short)
12195See \`config.log' for more details." >&2;}
12196 { (exit 77); exit 77; }; }
12197 else
12198 ac_cv_sizeof_short=0
12199 fi ;;
12200esac
12201else
12202 cat >conftest.$ac_ext <<_ACEOF
12203/* confdefs.h. */
12204_ACEOF
12205cat confdefs.h >>conftest.$ac_ext
12206cat >>conftest.$ac_ext <<_ACEOF
12207/* end confdefs.h. */
12208$ac_includes_default
12209 typedef short ac__type_sizeof_;
12210static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12211static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12212#include <stdio.h>
12213#include <stdlib.h>
12214int
12215main ()
12216{
12217
12218 FILE *f = fopen ("conftest.val", "w");
12219 if (! f)
12220 return 1;
12221 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12222 {
12223 long int i = longval ();
12224 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12225 return 1;
12226 fprintf (f, "%ld\n", i);
12227 }
12228 else
12229 {
12230 unsigned long int i = ulongval ();
12231 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12232 return 1;
12233 fprintf (f, "%lu\n", i);
12234 }
12235 return ferror (f) || fclose (f) != 0;
12236
12237 ;
12238 return 0;
12239}
12240_ACEOF
12241rm -f conftest$ac_exeext
12242if { (ac_try="$ac_link"
12243case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246esac
12247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_link") 2>&5
12249 ac_status=$?
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12252 { (case "(($ac_try" in
12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254 *) ac_try_echo=$ac_try;;
12255esac
12256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257 (eval "$ac_try") 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 ac_cv_sizeof_short=`cat conftest.val`
12262else
12263 echo "$as_me: program exited with status $ac_status" >&5
12264echo "$as_me: failed program was:" >&5
12265sed 's/^/| /' conftest.$ac_ext >&5
12266
12267( exit $ac_status )
12268if test "$ac_cv_type_short" = yes; then
12269 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12270See \`config.log' for more details." >&5
12271echo "$as_me: error: cannot compute sizeof (short)
12272See \`config.log' for more details." >&2;}
12273 { (exit 77); exit 77; }; }
12274 else
12275 ac_cv_sizeof_short=0
12276 fi
12277fi
12278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12279fi
12280rm -f conftest.val
12281fi
12282{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12283echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12284
12285
12286
12287cat >>confdefs.h <<_ACEOF
12288#define SIZEOF_SHORT $ac_cv_sizeof_short
12289_ACEOF
12290
12291
12292{ echo "$as_me:$LINENO: checking for int" >&5
12293echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12294if test "${ac_cv_type_int+set}" = set; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12296else
12297 cat >conftest.$ac_ext <<_ACEOF
12298/* confdefs.h. */
12299_ACEOF
12300cat confdefs.h >>conftest.$ac_ext
12301cat >>conftest.$ac_ext <<_ACEOF
12302/* end confdefs.h. */
12303$ac_includes_default
12304typedef int ac__type_new_;
12305int
12306main ()
12307{
12308if ((ac__type_new_ *) 0)
12309 return 0;
12310if (sizeof (ac__type_new_))
12311 return 0;
12312 ;
12313 return 0;
12314}
12315_ACEOF
12316rm -f conftest.$ac_objext
12317if { (ac_try="$ac_compile"
12318case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12321esac
12322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_compile") 2>conftest.er1
12324 ac_status=$?
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } && {
12330 test -z "$ac_c_werror_flag" ||
12331 test ! -s conftest.err
12332 } && test -s conftest.$ac_objext; then
12333 ac_cv_type_int=yes
12334else
12335 echo "$as_me: failed program was:" >&5
12336sed 's/^/| /' conftest.$ac_ext >&5
12337
12338 ac_cv_type_int=no
12339fi
12340
12341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342fi
12343{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12344echo "${ECHO_T}$ac_cv_type_int" >&6; }
12345
12346# The cast to long int works around a bug in the HP C Compiler
12347# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12348# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12349# This bug is HP SR number 8606223364.
12350{ echo "$as_me:$LINENO: checking size of int" >&5
12351echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12352if test "${ac_cv_sizeof_int+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12354else
12355 if test "$cross_compiling" = yes; then
12356 # Depending upon the size, compute the lo and hi bounds.
12357cat >conftest.$ac_ext <<_ACEOF
12358/* confdefs.h. */
12359_ACEOF
12360cat confdefs.h >>conftest.$ac_ext
12361cat >>conftest.$ac_ext <<_ACEOF
12362/* end confdefs.h. */
12363$ac_includes_default
12364 typedef int ac__type_sizeof_;
12365int
12366main ()
12367{
12368static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12369test_array [0] = 0
12370
12371 ;
12372 return 0;
12373}
12374_ACEOF
12375rm -f conftest.$ac_objext
12376if { (ac_try="$ac_compile"
12377case "(($ac_try" in
12378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12380esac
12381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_compile") 2>conftest.er1
12383 ac_status=$?
12384 grep -v '^ *+' conftest.er1 >conftest.err
12385 rm -f conftest.er1
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } && {
12389 test -z "$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12391 } && test -s conftest.$ac_objext; then
12392 ac_lo=0 ac_mid=0
12393 while :; do
12394 cat >conftest.$ac_ext <<_ACEOF
12395/* confdefs.h. */
12396_ACEOF
12397cat confdefs.h >>conftest.$ac_ext
12398cat >>conftest.$ac_ext <<_ACEOF
12399/* end confdefs.h. */
12400$ac_includes_default
12401 typedef int ac__type_sizeof_;
12402int
12403main ()
12404{
12405static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12406test_array [0] = 0
12407
12408 ;
12409 return 0;
12410}
12411_ACEOF
12412rm -f conftest.$ac_objext
12413if { (ac_try="$ac_compile"
12414case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417esac
12418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_compile") 2>conftest.er1
12420 ac_status=$?
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && {
12426 test -z "$ac_c_werror_flag" ||
12427 test ! -s conftest.err
12428 } && test -s conftest.$ac_objext; then
12429 ac_hi=$ac_mid; break
12430else
12431 echo "$as_me: failed program was:" >&5
12432sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 ac_lo=`expr $ac_mid + 1`
12435 if test $ac_lo -le $ac_mid; then
12436 ac_lo= ac_hi=
12437 break
12438 fi
12439 ac_mid=`expr 2 '*' $ac_mid + 1`
12440fi
12441
12442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 done
12444else
12445 echo "$as_me: failed program was:" >&5
12446sed 's/^/| /' conftest.$ac_ext >&5
12447
12448 cat >conftest.$ac_ext <<_ACEOF
12449/* confdefs.h. */
12450_ACEOF
12451cat confdefs.h >>conftest.$ac_ext
12452cat >>conftest.$ac_ext <<_ACEOF
12453/* end confdefs.h. */
12454$ac_includes_default
12455 typedef int ac__type_sizeof_;
12456int
12457main ()
12458{
12459static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12460test_array [0] = 0
12461
12462 ;
12463 return 0;
12464}
12465_ACEOF
12466rm -f conftest.$ac_objext
12467if { (ac_try="$ac_compile"
12468case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12471esac
12472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_compile") 2>conftest.er1
12474 ac_status=$?
12475 grep -v '^ *+' conftest.er1 >conftest.err
12476 rm -f conftest.er1
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } && {
12480 test -z "$ac_c_werror_flag" ||
12481 test ! -s conftest.err
12482 } && test -s conftest.$ac_objext; then
12483 ac_hi=-1 ac_mid=-1
12484 while :; do
12485 cat >conftest.$ac_ext <<_ACEOF
12486/* confdefs.h. */
12487_ACEOF
12488cat confdefs.h >>conftest.$ac_ext
12489cat >>conftest.$ac_ext <<_ACEOF
12490/* end confdefs.h. */
12491$ac_includes_default
12492 typedef int ac__type_sizeof_;
12493int
12494main ()
12495{
12496static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12497test_array [0] = 0
12498
12499 ;
12500 return 0;
12501}
12502_ACEOF
12503rm -f conftest.$ac_objext
12504if { (ac_try="$ac_compile"
12505case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12508esac
12509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_compile") 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && {
12517 test -z "$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12519 } && test -s conftest.$ac_objext; then
12520 ac_lo=$ac_mid; break
12521else
12522 echo "$as_me: failed program was:" >&5
12523sed 's/^/| /' conftest.$ac_ext >&5
12524
12525 ac_hi=`expr '(' $ac_mid ')' - 1`
12526 if test $ac_mid -le $ac_hi; then
12527 ac_lo= ac_hi=
12528 break
12529 fi
12530 ac_mid=`expr 2 '*' $ac_mid`
12531fi
12532
12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534 done
12535else
12536 echo "$as_me: failed program was:" >&5
12537sed 's/^/| /' conftest.$ac_ext >&5
12538
12539 ac_lo= ac_hi=
12540fi
12541
12542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12543fi
12544
12545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12546# Binary search between lo and hi bounds.
12547while test "x$ac_lo" != "x$ac_hi"; do
12548 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12549 cat >conftest.$ac_ext <<_ACEOF
12550/* confdefs.h. */
12551_ACEOF
12552cat confdefs.h >>conftest.$ac_ext
12553cat >>conftest.$ac_ext <<_ACEOF
12554/* end confdefs.h. */
12555$ac_includes_default
12556 typedef int ac__type_sizeof_;
12557int
12558main ()
12559{
12560static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12561test_array [0] = 0
12562
12563 ;
12564 return 0;
12565}
12566_ACEOF
12567rm -f conftest.$ac_objext
12568if { (ac_try="$ac_compile"
12569case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12572esac
12573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_compile") 2>conftest.er1
12575 ac_status=$?
12576 grep -v '^ *+' conftest.er1 >conftest.err
12577 rm -f conftest.er1
12578 cat conftest.err >&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } && {
12581 test -z "$ac_c_werror_flag" ||
12582 test ! -s conftest.err
12583 } && test -s conftest.$ac_objext; then
12584 ac_hi=$ac_mid
12585else
12586 echo "$as_me: failed program was:" >&5
12587sed 's/^/| /' conftest.$ac_ext >&5
12588
12589 ac_lo=`expr '(' $ac_mid ')' + 1`
12590fi
12591
12592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12593done
12594case $ac_lo in
12595?*) ac_cv_sizeof_int=$ac_lo;;
12596'') if test "$ac_cv_type_int" = yes; then
12597 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
12598See \`config.log' for more details." >&5
12599echo "$as_me: error: cannot compute sizeof (int)
12600See \`config.log' for more details." >&2;}
12601 { (exit 77); exit 77; }; }
12602 else
12603 ac_cv_sizeof_int=0
12604 fi ;;
12605esac
12606else
12607 cat >conftest.$ac_ext <<_ACEOF
12608/* confdefs.h. */
12609_ACEOF
12610cat confdefs.h >>conftest.$ac_ext
12611cat >>conftest.$ac_ext <<_ACEOF
12612/* end confdefs.h. */
12613$ac_includes_default
12614 typedef int ac__type_sizeof_;
12615static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12616static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12617#include <stdio.h>
12618#include <stdlib.h>
12619int
12620main ()
12621{
12622
12623 FILE *f = fopen ("conftest.val", "w");
12624 if (! f)
12625 return 1;
12626 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12627 {
12628 long int i = longval ();
12629 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12630 return 1;
12631 fprintf (f, "%ld\n", i);
12632 }
12633 else
12634 {
12635 unsigned long int i = ulongval ();
12636 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12637 return 1;
12638 fprintf (f, "%lu\n", i);
12639 }
12640 return ferror (f) || fclose (f) != 0;
12641
12642 ;
12643 return 0;
12644}
12645_ACEOF
12646rm -f conftest$ac_exeext
12647if { (ac_try="$ac_link"
12648case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12651esac
12652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_link") 2>&5
12654 ac_status=$?
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12657 { (case "(($ac_try" in
12658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12659 *) ac_try_echo=$ac_try;;
12660esac
12661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12662 (eval "$ac_try") 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; }; then
12666 ac_cv_sizeof_int=`cat conftest.val`
12667else
12668 echo "$as_me: program exited with status $ac_status" >&5
12669echo "$as_me: failed program was:" >&5
12670sed 's/^/| /' conftest.$ac_ext >&5
12671
12672( exit $ac_status )
12673if test "$ac_cv_type_int" = yes; then
12674 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
12675See \`config.log' for more details." >&5
12676echo "$as_me: error: cannot compute sizeof (int)
12677See \`config.log' for more details." >&2;}
12678 { (exit 77); exit 77; }; }
12679 else
12680 ac_cv_sizeof_int=0
12681 fi
12682fi
12683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12684fi
12685rm -f conftest.val
12686fi
12687{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12688echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
12689
12690
12691
12692cat >>confdefs.h <<_ACEOF
12693#define SIZEOF_INT $ac_cv_sizeof_int
12694_ACEOF
12695
12696
12697{ echo "$as_me:$LINENO: checking for long" >&5
12698echo $ECHO_N "checking for long... $ECHO_C" >&6; }
12699if test "${ac_cv_type_long+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701else
12702 cat >conftest.$ac_ext <<_ACEOF
12703/* confdefs.h. */
12704_ACEOF
12705cat confdefs.h >>conftest.$ac_ext
12706cat >>conftest.$ac_ext <<_ACEOF
12707/* end confdefs.h. */
12708$ac_includes_default
12709typedef long ac__type_new_;
12710int
12711main ()
12712{
12713if ((ac__type_new_ *) 0)
12714 return 0;
12715if (sizeof (ac__type_new_))
12716 return 0;
12717 ;
12718 return 0;
12719}
12720_ACEOF
12721rm -f conftest.$ac_objext
12722if { (ac_try="$ac_compile"
12723case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12726esac
12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_compile") 2>conftest.er1
12729 ac_status=$?
12730 grep -v '^ *+' conftest.er1 >conftest.err
12731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } && {
12735 test -z "$ac_c_werror_flag" ||
12736 test ! -s conftest.err
12737 } && test -s conftest.$ac_objext; then
12738 ac_cv_type_long=yes
12739else
12740 echo "$as_me: failed program was:" >&5
12741sed 's/^/| /' conftest.$ac_ext >&5
12742
12743 ac_cv_type_long=no
12744fi
12745
12746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747fi
12748{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12749echo "${ECHO_T}$ac_cv_type_long" >&6; }
12750
12751# The cast to long int works around a bug in the HP C Compiler
12752# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12753# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12754# This bug is HP SR number 8606223364.
12755{ echo "$as_me:$LINENO: checking size of long" >&5
12756echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
12757if test "${ac_cv_sizeof_long+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759else
12760 if test "$cross_compiling" = yes; then
12761 # Depending upon the size, compute the lo and hi bounds.
12762cat >conftest.$ac_ext <<_ACEOF
12763/* confdefs.h. */
12764_ACEOF
12765cat confdefs.h >>conftest.$ac_ext
12766cat >>conftest.$ac_ext <<_ACEOF
12767/* end confdefs.h. */
12768$ac_includes_default
12769 typedef long ac__type_sizeof_;
12770int
12771main ()
12772{
12773static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12774test_array [0] = 0
12775
12776 ;
12777 return 0;
12778}
12779_ACEOF
12780rm -f conftest.$ac_objext
12781if { (ac_try="$ac_compile"
12782case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785esac
12786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_compile") 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest.$ac_objext; then
12797 ac_lo=0 ac_mid=0
12798 while :; do
12799 cat >conftest.$ac_ext <<_ACEOF
12800/* confdefs.h. */
12801_ACEOF
12802cat confdefs.h >>conftest.$ac_ext
12803cat >>conftest.$ac_ext <<_ACEOF
12804/* end confdefs.h. */
12805$ac_includes_default
12806 typedef long ac__type_sizeof_;
12807int
12808main ()
12809{
12810static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12811test_array [0] = 0
12812
12813 ;
12814 return 0;
12815}
12816_ACEOF
12817rm -f conftest.$ac_objext
12818if { (ac_try="$ac_compile"
12819case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12822esac
12823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_compile") 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } && {
12831 test -z "$ac_c_werror_flag" ||
12832 test ! -s conftest.err
12833 } && test -s conftest.$ac_objext; then
12834 ac_hi=$ac_mid; break
12835else
12836 echo "$as_me: failed program was:" >&5
12837sed 's/^/| /' conftest.$ac_ext >&5
12838
12839 ac_lo=`expr $ac_mid + 1`
12840 if test $ac_lo -le $ac_mid; then
12841 ac_lo= ac_hi=
12842 break
12843 fi
12844 ac_mid=`expr 2 '*' $ac_mid + 1`
12845fi
12846
12847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848 done
12849else
12850 echo "$as_me: failed program was:" >&5
12851sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 cat >conftest.$ac_ext <<_ACEOF
12854/* confdefs.h. */
12855_ACEOF
12856cat confdefs.h >>conftest.$ac_ext
12857cat >>conftest.$ac_ext <<_ACEOF
12858/* end confdefs.h. */
12859$ac_includes_default
12860 typedef long ac__type_sizeof_;
12861int
12862main ()
12863{
12864static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12865test_array [0] = 0
12866
12867 ;
12868 return 0;
12869}
12870_ACEOF
12871rm -f conftest.$ac_objext
12872if { (ac_try="$ac_compile"
12873case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12876esac
12877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878 (eval "$ac_compile") 2>conftest.er1
12879 ac_status=$?
12880 grep -v '^ *+' conftest.er1 >conftest.err
12881 rm -f conftest.er1
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } && {
12885 test -z "$ac_c_werror_flag" ||
12886 test ! -s conftest.err
12887 } && test -s conftest.$ac_objext; then
12888 ac_hi=-1 ac_mid=-1
12889 while :; do
12890 cat >conftest.$ac_ext <<_ACEOF
12891/* confdefs.h. */
12892_ACEOF
12893cat confdefs.h >>conftest.$ac_ext
12894cat >>conftest.$ac_ext <<_ACEOF
12895/* end confdefs.h. */
12896$ac_includes_default
12897 typedef long ac__type_sizeof_;
12898int
12899main ()
12900{
12901static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12902test_array [0] = 0
12903
12904 ;
12905 return 0;
12906}
12907_ACEOF
12908rm -f conftest.$ac_objext
12909if { (ac_try="$ac_compile"
12910case "(($ac_try" in
12911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12912 *) ac_try_echo=$ac_try;;
12913esac
12914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915 (eval "$ac_compile") 2>conftest.er1
12916 ac_status=$?
12917 grep -v '^ *+' conftest.er1 >conftest.err
12918 rm -f conftest.er1
12919 cat conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } && {
12922 test -z "$ac_c_werror_flag" ||
12923 test ! -s conftest.err
12924 } && test -s conftest.$ac_objext; then
12925 ac_lo=$ac_mid; break
12926else
12927 echo "$as_me: failed program was:" >&5
12928sed 's/^/| /' conftest.$ac_ext >&5
12929
12930 ac_hi=`expr '(' $ac_mid ')' - 1`
12931 if test $ac_mid -le $ac_hi; then
12932 ac_lo= ac_hi=
12933 break
12934 fi
12935 ac_mid=`expr 2 '*' $ac_mid`
12936fi
12937
12938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 done
12940else
12941 echo "$as_me: failed program was:" >&5
12942sed 's/^/| /' conftest.$ac_ext >&5
12943
12944 ac_lo= ac_hi=
12945fi
12946
12947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12948fi
12949
12950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951# Binary search between lo and hi bounds.
12952while test "x$ac_lo" != "x$ac_hi"; do
12953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12954 cat >conftest.$ac_ext <<_ACEOF
12955/* confdefs.h. */
12956_ACEOF
12957cat confdefs.h >>conftest.$ac_ext
12958cat >>conftest.$ac_ext <<_ACEOF
12959/* end confdefs.h. */
12960$ac_includes_default
12961 typedef long ac__type_sizeof_;
12962int
12963main ()
12964{
12965static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12966test_array [0] = 0
12967
12968 ;
12969 return 0;
12970}
12971_ACEOF
12972rm -f conftest.$ac_objext
12973if { (ac_try="$ac_compile"
12974case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977esac
12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_compile") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest.$ac_objext; then
12989 ac_hi=$ac_mid
12990else
12991 echo "$as_me: failed program was:" >&5
12992sed 's/^/| /' conftest.$ac_ext >&5
12993
12994 ac_lo=`expr '(' $ac_mid ')' + 1`
12995fi
12996
12997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998done
12999case $ac_lo in
13000?*) ac_cv_sizeof_long=$ac_lo;;
13001'') if test "$ac_cv_type_long" = yes; then
13002 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13003See \`config.log' for more details." >&5
13004echo "$as_me: error: cannot compute sizeof (long)
13005See \`config.log' for more details." >&2;}
13006 { (exit 77); exit 77; }; }
13007 else
13008 ac_cv_sizeof_long=0
13009 fi ;;
13010esac
13011else
13012 cat >conftest.$ac_ext <<_ACEOF
13013/* confdefs.h. */
13014_ACEOF
13015cat confdefs.h >>conftest.$ac_ext
13016cat >>conftest.$ac_ext <<_ACEOF
13017/* end confdefs.h. */
13018$ac_includes_default
13019 typedef long ac__type_sizeof_;
13020static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13021static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13022#include <stdio.h>
13023#include <stdlib.h>
13024int
13025main ()
13026{
13027
13028 FILE *f = fopen ("conftest.val", "w");
13029 if (! f)
13030 return 1;
13031 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13032 {
13033 long int i = longval ();
13034 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13035 return 1;
13036 fprintf (f, "%ld\n", i);
13037 }
13038 else
13039 {
13040 unsigned long int i = ulongval ();
13041 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13042 return 1;
13043 fprintf (f, "%lu\n", i);
13044 }
13045 return ferror (f) || fclose (f) != 0;
13046
13047 ;
13048 return 0;
13049}
13050_ACEOF
13051rm -f conftest$ac_exeext
13052if { (ac_try="$ac_link"
13053case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13056esac
13057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13058 (eval "$ac_link") 2>&5
13059 ac_status=$?
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13062 { (case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13065esac
13066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_try") 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_cv_sizeof_long=`cat conftest.val`
13072else
13073 echo "$as_me: program exited with status $ac_status" >&5
13074echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
13077( exit $ac_status )
13078if test "$ac_cv_type_long" = yes; then
13079 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13080See \`config.log' for more details." >&5
13081echo "$as_me: error: cannot compute sizeof (long)
13082See \`config.log' for more details." >&2;}
13083 { (exit 77); exit 77; }; }
13084 else
13085 ac_cv_sizeof_long=0
13086 fi
13087fi
13088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13089fi
13090rm -f conftest.val
13091fi
13092{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13093echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13094
13095
13096
13097cat >>confdefs.h <<_ACEOF
13098#define SIZEOF_LONG $ac_cv_sizeof_long
13099_ACEOF
13100
13101
13102{ echo "$as_me:$LINENO: checking for long long" >&5
13103echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13104if test "${ac_cv_type_long_long+set}" = set; then
13105 echo $ECHO_N "(cached) $ECHO_C" >&6
13106else
13107 cat >conftest.$ac_ext <<_ACEOF
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
13113$ac_includes_default
13114typedef long long ac__type_new_;
13115int
13116main ()
13117{
13118if ((ac__type_new_ *) 0)
13119 return 0;
13120if (sizeof (ac__type_new_))
13121 return 0;
13122 ;
13123 return 0;
13124}
13125_ACEOF
13126rm -f conftest.$ac_objext
13127if { (ac_try="$ac_compile"
13128case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131esac
13132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_compile") 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && {
13140 test -z "$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 } && test -s conftest.$ac_objext; then
13143 ac_cv_type_long_long=yes
13144else
13145 echo "$as_me: failed program was:" >&5
13146sed 's/^/| /' conftest.$ac_ext >&5
13147
13148 ac_cv_type_long_long=no
13149fi
13150
13151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13152fi
13153{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13154echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13155
13156# The cast to long int works around a bug in the HP C Compiler
13157# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13158# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13159# This bug is HP SR number 8606223364.
13160{ echo "$as_me:$LINENO: checking size of long long" >&5
13161echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13162if test "${ac_cv_sizeof_long_long+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13164else
13165 if test "$cross_compiling" = yes; then
13166 # Depending upon the size, compute the lo and hi bounds.
13167cat >conftest.$ac_ext <<_ACEOF
13168/* confdefs.h. */
13169_ACEOF
13170cat confdefs.h >>conftest.$ac_ext
13171cat >>conftest.$ac_ext <<_ACEOF
13172/* end confdefs.h. */
13173$ac_includes_default
13174 typedef long long ac__type_sizeof_;
13175int
13176main ()
13177{
13178static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13179test_array [0] = 0
13180
13181 ;
13182 return 0;
13183}
13184_ACEOF
13185rm -f conftest.$ac_objext
13186if { (ac_try="$ac_compile"
13187case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13190esac
13191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_compile") 2>conftest.er1
13193 ac_status=$?
13194 grep -v '^ *+' conftest.er1 >conftest.err
13195 rm -f conftest.er1
13196 cat conftest.err >&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } && {
13199 test -z "$ac_c_werror_flag" ||
13200 test ! -s conftest.err
13201 } && test -s conftest.$ac_objext; then
13202 ac_lo=0 ac_mid=0
13203 while :; do
13204 cat >conftest.$ac_ext <<_ACEOF
13205/* confdefs.h. */
13206_ACEOF
13207cat confdefs.h >>conftest.$ac_ext
13208cat >>conftest.$ac_ext <<_ACEOF
13209/* end confdefs.h. */
13210$ac_includes_default
13211 typedef long long ac__type_sizeof_;
13212int
13213main ()
13214{
13215static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13216test_array [0] = 0
13217
13218 ;
13219 return 0;
13220}
13221_ACEOF
13222rm -f conftest.$ac_objext
13223if { (ac_try="$ac_compile"
13224case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13227esac
13228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_compile") 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } && {
13236 test -z "$ac_c_werror_flag" ||
13237 test ! -s conftest.err
13238 } && test -s conftest.$ac_objext; then
13239 ac_hi=$ac_mid; break
13240else
13241 echo "$as_me: failed program was:" >&5
13242sed 's/^/| /' conftest.$ac_ext >&5
13243
13244 ac_lo=`expr $ac_mid + 1`
13245 if test $ac_lo -le $ac_mid; then
13246 ac_lo= ac_hi=
13247 break
13248 fi
13249 ac_mid=`expr 2 '*' $ac_mid + 1`
13250fi
13251
13252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13253 done
13254else
13255 echo "$as_me: failed program was:" >&5
13256sed 's/^/| /' conftest.$ac_ext >&5
13257
13258 cat >conftest.$ac_ext <<_ACEOF
13259/* confdefs.h. */
13260_ACEOF
13261cat confdefs.h >>conftest.$ac_ext
13262cat >>conftest.$ac_ext <<_ACEOF
13263/* end confdefs.h. */
13264$ac_includes_default
13265 typedef long long ac__type_sizeof_;
13266int
13267main ()
13268{
13269static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13270test_array [0] = 0
13271
13272 ;
13273 return 0;
13274}
13275_ACEOF
13276rm -f conftest.$ac_objext
13277if { (ac_try="$ac_compile"
13278case "(($ac_try" in
13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13281esac
13282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283 (eval "$ac_compile") 2>conftest.er1
13284 ac_status=$?
13285 grep -v '^ *+' conftest.er1 >conftest.err
13286 rm -f conftest.er1
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } && {
13290 test -z "$ac_c_werror_flag" ||
13291 test ! -s conftest.err
13292 } && test -s conftest.$ac_objext; then
13293 ac_hi=-1 ac_mid=-1
13294 while :; do
13295 cat >conftest.$ac_ext <<_ACEOF
13296/* confdefs.h. */
13297_ACEOF
13298cat confdefs.h >>conftest.$ac_ext
13299cat >>conftest.$ac_ext <<_ACEOF
13300/* end confdefs.h. */
13301$ac_includes_default
13302 typedef long long ac__type_sizeof_;
13303int
13304main ()
13305{
13306static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13307test_array [0] = 0
13308
13309 ;
13310 return 0;
13311}
13312_ACEOF
13313rm -f conftest.$ac_objext
13314if { (ac_try="$ac_compile"
13315case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318esac
13319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_compile") 2>conftest.er1
13321 ac_status=$?
13322 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1
13324 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && {
13327 test -z "$ac_c_werror_flag" ||
13328 test ! -s conftest.err
13329 } && test -s conftest.$ac_objext; then
13330 ac_lo=$ac_mid; break
13331else
13332 echo "$as_me: failed program was:" >&5
13333sed 's/^/| /' conftest.$ac_ext >&5
13334
13335 ac_hi=`expr '(' $ac_mid ')' - 1`
13336 if test $ac_mid -le $ac_hi; then
13337 ac_lo= ac_hi=
13338 break
13339 fi
13340 ac_mid=`expr 2 '*' $ac_mid`
13341fi
13342
13343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 done
13345else
13346 echo "$as_me: failed program was:" >&5
13347sed 's/^/| /' conftest.$ac_ext >&5
13348
13349 ac_lo= ac_hi=
13350fi
13351
13352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353fi
13354
13355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13356# Binary search between lo and hi bounds.
13357while test "x$ac_lo" != "x$ac_hi"; do
13358 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13359 cat >conftest.$ac_ext <<_ACEOF
13360/* confdefs.h. */
13361_ACEOF
13362cat confdefs.h >>conftest.$ac_ext
13363cat >>conftest.$ac_ext <<_ACEOF
13364/* end confdefs.h. */
13365$ac_includes_default
13366 typedef long long ac__type_sizeof_;
13367int
13368main ()
13369{
13370static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13371test_array [0] = 0
13372
13373 ;
13374 return 0;
13375}
13376_ACEOF
13377rm -f conftest.$ac_objext
13378if { (ac_try="$ac_compile"
13379case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13382esac
13383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_compile") 2>conftest.er1
13385 ac_status=$?
13386 grep -v '^ *+' conftest.er1 >conftest.err
13387 rm -f conftest.er1
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } && {
13391 test -z "$ac_c_werror_flag" ||
13392 test ! -s conftest.err
13393 } && test -s conftest.$ac_objext; then
13394 ac_hi=$ac_mid
13395else
13396 echo "$as_me: failed program was:" >&5
13397sed 's/^/| /' conftest.$ac_ext >&5
13398
13399 ac_lo=`expr '(' $ac_mid ')' + 1`
13400fi
13401
13402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403done
13404case $ac_lo in
13405?*) ac_cv_sizeof_long_long=$ac_lo;;
13406'') if test "$ac_cv_type_long_long" = yes; then
13407 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13408See \`config.log' for more details." >&5
13409echo "$as_me: error: cannot compute sizeof (long long)
13410See \`config.log' for more details." >&2;}
13411 { (exit 77); exit 77; }; }
13412 else
13413 ac_cv_sizeof_long_long=0
13414 fi ;;
13415esac
13416else
13417 cat >conftest.$ac_ext <<_ACEOF
13418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
13423$ac_includes_default
13424 typedef long long ac__type_sizeof_;
13425static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13426static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13427#include <stdio.h>
13428#include <stdlib.h>
13429int
13430main ()
13431{
13432
13433 FILE *f = fopen ("conftest.val", "w");
13434 if (! f)
13435 return 1;
13436 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13437 {
13438 long int i = longval ();
13439 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13440 return 1;
13441 fprintf (f, "%ld\n", i);
13442 }
13443 else
13444 {
13445 unsigned long int i = ulongval ();
13446 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13447 return 1;
13448 fprintf (f, "%lu\n", i);
13449 }
13450 return ferror (f) || fclose (f) != 0;
13451
13452 ;
13453 return 0;
13454}
13455_ACEOF
13456rm -f conftest$ac_exeext
13457if { (ac_try="$ac_link"
13458case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13461esac
13462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_link") 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13467 { (case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470esac
13471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_try") 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13476 ac_cv_sizeof_long_long=`cat conftest.val`
13477else
13478 echo "$as_me: program exited with status $ac_status" >&5
13479echo "$as_me: failed program was:" >&5
13480sed 's/^/| /' conftest.$ac_ext >&5
13481
13482( exit $ac_status )
13483if test "$ac_cv_type_long_long" = yes; then
13484 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13485See \`config.log' for more details." >&5
13486echo "$as_me: error: cannot compute sizeof (long long)
13487See \`config.log' for more details." >&2;}
13488 { (exit 77); exit 77; }; }
13489 else
13490 ac_cv_sizeof_long_long=0
13491 fi
13492fi
13493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13494fi
13495rm -f conftest.val
13496fi
13497{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13498echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
13499
13500
13501
13502cat >>confdefs.h <<_ACEOF
13503#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13504_ACEOF
13505
13506
13507
13508
13509if test x$has_cv_int16_t = "xyes" ; then
13510 SIZE16="int16_t"
13511else
13512 case 2 in
13513 $ac_cv_sizeof_short) SIZE16="short";;
13514 $ac_cv_sizeof_int) SIZE16="int";;
13515 esac
13516fi
13517
13518if test x$has_cv_int32_t = "xyes" ; then
13519 SIZE32="int32_t"
13520else
13521 case 4 in
13522 $ac_cv_sizeof_short) SIZE32="short";;
13523 $ac_cv_sizeof_int) SIZE32="int";;
13524 $ac_cv_sizeof_long) SIZE32="long";;
13525 esac
13526fi
13527
13528if test x$has_cv_uint32_t = "xyes" ; then
13529 USIZE32="uint32_t"
13530else
13531 if test x$has_cv_u_int32_t = "xyes" ; then
13532 USIZE32="u_int32_t"
13533 else
13534 case 4 in
13535 $ac_cv_sizeof_short) USIZE32="unsigned short";;
13536 $ac_cv_sizeof_int) USIZE32="unsigned int";;
13537 $ac_cv_sizeof_long) USIZE32="unsigned long";;
13538 esac
13539 fi
13540fi
13541
13542if test x$has_cv_uint16_t = "xyes" ; then
13543 USIZE16="uint16_t"
13544else
13545 if test x$has_cv_u_int16_t = "xyes" ; then
13546 USIZE16="u_int16_t"
13547 else
13548 case 2 in
13549 $ac_cv_sizeof_short) USIZE16="unsigned short";;
13550 $ac_cv_sizeof_int) USIZE16="unsigned int";;
13551 $ac_cv_sizeof_long) USIZE16="unsigned long";;
13552 esac
13553 fi
13554fi
13555
13556if test x$has_cv_int64_t = "xyes" ; then
13557 SIZE64="int64_t"
13558else
13559case 8 in
13560 $ac_cv_sizeof_int) SIZE64="int";;
13561 $ac_cv_sizeof_long) SIZE64="long";;
13562 $ac_cv_sizeof_long_long) SIZE64="long long";;
13563esac
13564fi
13565
13566if test -z "$SIZE16"; then
13567 { { echo "$as_me:$LINENO: error: No 16 bit type found on this platform!" >&5
13568echo "$as_me: error: No 16 bit type found on this platform!" >&2;}
13569 { (exit 1); exit 1; }; }
13570fi
13571if test -z "$USIZE16"; then
13572 { { echo "$as_me:$LINENO: error: No unsigned 16 bit type found on this platform!" >&5
13573echo "$as_me: error: No unsigned 16 bit type found on this platform!" >&2;}
13574 { (exit 1); exit 1; }; }
13575fi
13576if test -z "$SIZE32"; then
13577 { { echo "$as_me:$LINENO: error: No 32 bit type found on this platform!" >&5
13578echo "$as_me: error: No 32 bit type found on this platform!" >&2;}
13579 { (exit 1); exit 1; }; }
13580fi
13581if test -z "$USIZE32"; then
13582 { { echo "$as_me:$LINENO: error: No unsigned 32 bit type found on this platform!" >&5
13583echo "$as_me: error: No unsigned 32 bit type found on this platform!" >&2;}
13584 { (exit 1); exit 1; }; }
13585fi
13586if test -z "$SIZE64"; then
13587 { echo "$as_me:$LINENO: WARNING: No 64 bit type found on this platform!" >&5
13588echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
13589fi
13590
13591{ echo "$as_me:$LINENO: checking for working memcmp" >&5
13592echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
13593if test "${ac_cv_func_memcmp_working+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13595else
13596 if test "$cross_compiling" = yes; then
13597 ac_cv_func_memcmp_working=no
13598else
13599 cat >conftest.$ac_ext <<_ACEOF
13600/* confdefs.h. */
13601_ACEOF
13602cat confdefs.h >>conftest.$ac_ext
13603cat >>conftest.$ac_ext <<_ACEOF
13604/* end confdefs.h. */
13605$ac_includes_default
13606int
13607main ()
13608{
13609
13610 /* Some versions of memcmp are not 8-bit clean. */
13611 char c0 = '\100', c1 = '\200', c2 = '\201';
13612 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13613 return 1;
13614
13615 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13616 or more and with at least one buffer not starting on a 4-byte boundary.
13617 William Lewis provided this test program. */
13618 {
13619 char foo[21];
13620 char bar[21];
13621 int i;
13622 for (i = 0; i < 4; i++)
13623 {
13624 char *a = foo + i;
13625 char *b = bar + i;
13626 strcpy (a, "--------01111111");
13627 strcpy (b, "--------10000000");
13628 if (memcmp (a, b, 16) >= 0)
13629 return 1;
13630 }
13631 return 0;
13632 }
13633
13634 ;
13635 return 0;
13636}
13637_ACEOF
13638rm -f conftest$ac_exeext
13639if { (ac_try="$ac_link"
13640case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643esac
13644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_link") 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13649 { (case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13652esac
13653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_try") 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }; then
13658 ac_cv_func_memcmp_working=yes
13659else
13660 echo "$as_me: program exited with status $ac_status" >&5
13661echo "$as_me: failed program was:" >&5
13662sed 's/^/| /' conftest.$ac_ext >&5
13663
13664( exit $ac_status )
13665ac_cv_func_memcmp_working=no
13666fi
13667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13668fi
13669
13670
13671fi
13672{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
13673echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
13674test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13675 *" memcmp.$ac_objext "* ) ;;
13676 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13677 ;;
13678esac
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
13696
13697cat >confcache <<\_ACEOF
13698# This file is a shell script that caches the results of configure
13699# tests run on this system so they can be shared between configure
13700# scripts and configure runs, see configure's option --config-cache.
13701# It is not useful on other systems. If it contains results you don't
13702# want to keep, you may remove or edit it.
13703#
13704# config.status only pays attention to the cache file if you give it
13705# the --recheck option to rerun configure.
13706#
13707# `ac_cv_env_foo' variables (set or unset) will be overridden when
13708# loading this file, other *unset* `ac_cv_foo' will be assigned the
13709# following values.
13710
13711_ACEOF
13712
13713# The following way of writing the cache mishandles newlines in values,
13714# but we know of no workaround that is simple, portable, and efficient.
13715# So, we kill variables containing newlines.
13716# Ultrix sh set writes to stderr and can't be redirected directly,
13717# and sets the high bit in the cache file unless we assign to the vars.
13718(
13719 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13720 eval ac_val=\$$ac_var
13721 case $ac_val in #(
13722 *${as_nl}*)
13723 case $ac_var in #(
13724 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13725echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13726 esac
13727 case $ac_var in #(
13728 _ | IFS | as_nl) ;; #(
13729 *) $as_unset $ac_var ;;
13730 esac ;;
13731 esac
13732 done
13733
13734 (set) 2>&1 |
13735 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13736 *${as_nl}ac_space=\ *)
13737 # `set' does not quote correctly, so add quotes (double-quote
13738 # substitution turns \\\\ into \\, and sed turns \\ into \).
13739 sed -n \
13740 "s/'/'\\\\''/g;
13741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13742 ;; #(
13743 *)
13744 # `set' quotes correctly as required by POSIX, so do not add quotes.
13745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13746 ;;
13747 esac |
13748 sort
13749) |
13750 sed '
13751 /^ac_cv_env_/b end
13752 t clear
13753 :clear
13754 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13755 t end
13756 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13757 :end' >>confcache
13758if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13759 if test -w "$cache_file"; then
13760 test "x$cache_file" != "x/dev/null" &&
13761 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13762echo "$as_me: updating cache $cache_file" >&6;}
13763 cat confcache >$cache_file
13764 else
13765 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13766echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13767 fi
13768fi
13769rm -f confcache
13770
13771test "x$prefix" = xNONE && prefix=$ac_default_prefix
13772# Let make expand exec_prefix.
13773test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13774
13775DEFS=-DHAVE_CONFIG_H
13776
13777ac_libobjs=
13778ac_ltlibobjs=
13779for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13780 # 1. Remove the extension, and $U if already installed.
13781 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13782 ac_i=`echo "$ac_i" | sed "$ac_script"`
13783 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13784 # will be set to the directory where LIBOBJS objects are built.
13785 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13786 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13787done
13788LIBOBJS=$ac_libobjs
13789
13790LTLIBOBJS=$ac_ltlibobjs
13791
13792
13793if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13794 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13795Usually this means the macro was only invoked conditionally." >&5
13796echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13797Usually this means the macro was only invoked conditionally." >&2;}
13798 { (exit 1); exit 1; }; }
13799fi
13800if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13801 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13802Usually this means the macro was only invoked conditionally." >&5
13803echo "$as_me: error: conditional \"AMDEP\" was never defined.
13804Usually this means the macro was only invoked conditionally." >&2;}
13805 { (exit 1); exit 1; }; }
13806fi
13807if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13808 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13809Usually this means the macro was only invoked conditionally." >&5
13810echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13811Usually this means the macro was only invoked conditionally." >&2;}
13812 { (exit 1); exit 1; }; }
13813fi
13814
13815: ${CONFIG_STATUS=./config.status}
13816ac_clean_files_save=$ac_clean_files
13817ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13818{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13819echo "$as_me: creating $CONFIG_STATUS" >&6;}
13820cat >$CONFIG_STATUS <<_ACEOF
13821#! $SHELL
13822# Generated by $as_me.
13823# Run this file to recreate the current configuration.
13824# Compiler output produced by configure, useful for debugging
13825# configure, is in config.log if it exists.
13826
13827debug=false
13828ac_cs_recheck=false
13829ac_cs_silent=false
13830SHELL=\${CONFIG_SHELL-$SHELL}
13831_ACEOF
13832
13833cat >>$CONFIG_STATUS <<\_ACEOF
13834## --------------------- ##
13835## M4sh Initialization. ##
13836## --------------------- ##
13837
13838# Be more Bourne compatible
13839DUALCASE=1; export DUALCASE # for MKS sh
13840if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13841 emulate sh
13842 NULLCMD=:
13843 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13844 # is contrary to our usage. Disable this feature.
13845 alias -g '${1+"$@"}'='"$@"'
13846 setopt NO_GLOB_SUBST
13847else
13848 case `(set -o) 2>/dev/null` in
13849 *posix*) set -o posix ;;
13850esac
13851
13852fi
13853
13854
13855
13856
13857# PATH needs CR
13858# Avoid depending upon Character Ranges.
13859as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13860as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13861as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13862as_cr_digits='0123456789'
13863as_cr_alnum=$as_cr_Letters$as_cr_digits
13864
13865# The user is always right.
13866if test "${PATH_SEPARATOR+set}" != set; then
13867 echo "#! /bin/sh" >conf$$.sh
13868 echo "exit 0" >>conf$$.sh
13869 chmod +x conf$$.sh
13870 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13871 PATH_SEPARATOR=';'
13872 else
13873 PATH_SEPARATOR=:
13874 fi
13875 rm -f conf$$.sh
13876fi
13877
13878# Support unset when possible.
13879if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13880 as_unset=unset
13881else
13882 as_unset=false
13883fi
13884
13885
13886# IFS
13887# We need space, tab and new line, in precisely that order. Quoting is
13888# there to prevent editors from complaining about space-tab.
13889# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13890# splitting by setting IFS to empty value.)
13891as_nl='
13892'
13893IFS=" "" $as_nl"
13894
13895# Find who we are. Look in the path if we contain no directory separator.
13896case $0 in
13897 *[\\/]* ) as_myself=$0 ;;
13898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899for as_dir in $PATH
13900do
13901 IFS=$as_save_IFS
13902 test -z "$as_dir" && as_dir=.
13903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13904done
13905IFS=$as_save_IFS
13906
13907 ;;
13908esac
13909# We did not find ourselves, most probably we were run as `sh COMMAND'
13910# in which case we are not to be found in the path.
13911if test "x$as_myself" = x; then
13912 as_myself=$0
13913fi
13914if test ! -f "$as_myself"; then
13915 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13916 { (exit 1); exit 1; }
13917fi
13918
13919# Work around bugs in pre-3.0 UWIN ksh.
13920for as_var in ENV MAIL MAILPATH
13921do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13922done
13923PS1='$ '
13924PS2='> '
13925PS4='+ '
13926
13927# NLS nuisances.
13928for as_var in \
13929 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13930 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13931 LC_TELEPHONE LC_TIME
13932do
13933 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13934 eval $as_var=C; export $as_var
13935 else
13936 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13937 fi
13938done
13939
13940# Required to use basename.
13941if expr a : '\(a\)' >/dev/null 2>&1 &&
13942 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13943 as_expr=expr
13944else
13945 as_expr=false
13946fi
13947
13948if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13949 as_basename=basename
13950else
13951 as_basename=false
13952fi
13953
13954
13955# Name of the executable.
13956as_me=`$as_basename -- "$0" ||
13957$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13958 X"$0" : 'X\(//\)$' \| \
13959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13960echo X/"$0" |
13961 sed '/^.*\/\([^/][^/]*\)\/*$/{
13962 s//\1/
13963 q
13964 }
13965 /^X\/\(\/\/\)$/{
13966 s//\1/
13967 q
13968 }
13969 /^X\/\(\/\).*/{
13970 s//\1/
13971 q
13972 }
13973 s/.*/./; q'`
13974
13975# CDPATH.
13976$as_unset CDPATH
13977
13978
13979
13980 as_lineno_1=$LINENO
13981 as_lineno_2=$LINENO
13982 test "x$as_lineno_1" != "x$as_lineno_2" &&
13983 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13984
13985 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13986 # uniformly replaced by the line number. The first 'sed' inserts a
13987 # line-number line after each line using $LINENO; the second 'sed'
13988 # does the real work. The second script uses 'N' to pair each
13989 # line-number line with the line containing $LINENO, and appends
13990 # trailing '-' during substitution so that $LINENO is not a special
13991 # case at line end.
13992 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13993 # scripts with optimization help from Paolo Bonzini. Blame Lee
13994 # E. McMahon (1931-1989) for sed's syntax. :-)
13995 sed -n '
13996 p
13997 /[$]LINENO/=
13998 ' <$as_myself |
13999 sed '
14000 s/[$]LINENO.*/&-/
14001 t lineno
14002 b
14003 :lineno
14004 N
14005 :loop
14006 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14007 t loop
14008 s/-\n.*//
14009 ' >$as_me.lineno &&
14010 chmod +x "$as_me.lineno" ||
14011 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14012 { (exit 1); exit 1; }; }
14013
14014 # Don't try to exec as it changes $[0], causing all sort of problems
14015 # (the dirname of $[0] is not the place where we might find the
14016 # original and so on. Autoconf is especially sensitive to this).
14017 . "./$as_me.lineno"
14018 # Exit status is that of the last command.
14019 exit
14020}
14021
14022
14023if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14024 as_dirname=dirname
14025else
14026 as_dirname=false
14027fi
14028
14029ECHO_C= ECHO_N= ECHO_T=
14030case `echo -n x` in
14031-n*)
14032 case `echo 'x\c'` in
14033 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14034 *) ECHO_C='\c';;
14035 esac;;
14036*)
14037 ECHO_N='-n';;
14038esac
14039
14040if expr a : '\(a\)' >/dev/null 2>&1 &&
14041 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14042 as_expr=expr
14043else
14044 as_expr=false
14045fi
14046
14047rm -f conf$$ conf$$.exe conf$$.file
14048if test -d conf$$.dir; then
14049 rm -f conf$$.dir/conf$$.file
14050else
14051 rm -f conf$$.dir
14052 mkdir conf$$.dir
14053fi
14054echo >conf$$.file
14055if ln -s conf$$.file conf$$ 2>/dev/null; then
14056 as_ln_s='ln -s'
14057 # ... but there are two gotchas:
14058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14060 # In both cases, we have to default to `cp -p'.
14061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14062 as_ln_s='cp -p'
14063elif ln conf$$.file conf$$ 2>/dev/null; then
14064 as_ln_s=ln
14065else
14066 as_ln_s='cp -p'
14067fi
14068rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14069rmdir conf$$.dir 2>/dev/null
14070
14071if mkdir -p . 2>/dev/null; then
14072 as_mkdir_p=:
14073else
14074 test -d ./-p && rmdir ./-p
14075 as_mkdir_p=false
14076fi
14077
14078if test -x / >/dev/null 2>&1; then
14079 as_test_x='test -x'
14080else
14081 if ls -dL / >/dev/null 2>&1; then
14082 as_ls_L_option=L
14083 else
14084 as_ls_L_option=
14085 fi
14086 as_test_x='
14087 eval sh -c '\''
14088 if test -d "$1"; then
14089 test -d "$1/.";
14090 else
14091 case $1 in
14092 -*)set "./$1";;
14093 esac;
14094 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14095 ???[sx]*):;;*)false;;esac;fi
14096 '\'' sh
14097 '
14098fi
14099as_executable_p=$as_test_x
14100
14101# Sed expression to map a string onto a valid CPP name.
14102as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14103
14104# Sed expression to map a string onto a valid variable name.
14105as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14106
14107
14108exec 6>&1
14109
14110# Save the log message, to keep $[0] and so on meaningful, and to
14111# report actual input values of CONFIG_FILES etc. instead of their
14112# values after options handling.
14113ac_log="
14114This file was extended by $as_me, which was
14115generated by GNU Autoconf 2.61. Invocation command line was
14116
14117 CONFIG_FILES = $CONFIG_FILES
14118 CONFIG_HEADERS = $CONFIG_HEADERS
14119 CONFIG_LINKS = $CONFIG_LINKS
14120 CONFIG_COMMANDS = $CONFIG_COMMANDS
14121 $ $0 $@
14122
14123on `(hostname || uname -n) 2>/dev/null | sed 1q`
14124"
14125
14126_ACEOF
14127
14128cat >>$CONFIG_STATUS <<_ACEOF
14129# Files that config.status was made for.
14130config_files="$ac_config_files"
14131config_headers="$ac_config_headers"
14132config_commands="$ac_config_commands"
14133
14134_ACEOF
14135
14136cat >>$CONFIG_STATUS <<\_ACEOF
14137ac_cs_usage="\
14138\`$as_me' instantiates files from templates according to the
14139current configuration.
14140
14141Usage: $0 [OPTIONS] [FILE]...
14142
14143 -h, --help print this help, then exit
14144 -V, --version print version number and configuration settings, then exit
14145 -q, --quiet do not print progress messages
14146 -d, --debug don't remove temporary files
14147 --recheck update $as_me by reconfiguring in the same conditions
14148 --file=FILE[:TEMPLATE]
14149 instantiate the configuration file FILE
14150 --header=FILE[:TEMPLATE]
14151 instantiate the configuration header FILE
14152
14153Configuration files:
14154$config_files
14155
14156Configuration headers:
14157$config_headers
14158
14159Configuration commands:
14160$config_commands
14161
14162Report bugs to <bug-autoconf@gnu.org>."
14163
14164_ACEOF
14165cat >>$CONFIG_STATUS <<_ACEOF
14166ac_cs_version="\\
14167config.status
14168configured by $0, generated by GNU Autoconf 2.61,
14169 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14170
14171Copyright (C) 2006 Free Software Foundation, Inc.
14172This config.status script is free software; the Free Software Foundation
14173gives unlimited permission to copy, distribute and modify it."
14174
14175ac_pwd='$ac_pwd'
14176srcdir='$srcdir'
14177INSTALL='$INSTALL'
14178_ACEOF
14179
14180cat >>$CONFIG_STATUS <<\_ACEOF
14181# If no file are specified by the user, then we need to provide default
14182# value. By we need to know if files were specified by the user.
14183ac_need_defaults=:
14184while test $# != 0
14185do
14186 case $1 in
14187 --*=*)
14188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14189 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14190 ac_shift=:
14191 ;;
14192 *)
14193 ac_option=$1
14194 ac_optarg=$2
14195 ac_shift=shift
14196 ;;
14197 esac
14198
14199 case $ac_option in
14200 # Handling of the options.
14201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14202 ac_cs_recheck=: ;;
14203 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14204 echo "$ac_cs_version"; exit ;;
14205 --debug | --debu | --deb | --de | --d | -d )
14206 debug=: ;;
14207 --file | --fil | --fi | --f )
14208 $ac_shift
14209 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14210 ac_need_defaults=false;;
14211 --header | --heade | --head | --hea )
14212 $ac_shift
14213 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14214 ac_need_defaults=false;;
14215 --he | --h)
14216 # Conflict between --help and --header
14217 { echo "$as_me: error: ambiguous option: $1
14218Try \`$0 --help' for more information." >&2
14219 { (exit 1); exit 1; }; };;
14220 --help | --hel | -h )
14221 echo "$ac_cs_usage"; exit ;;
14222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14223 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14224 ac_cs_silent=: ;;
14225
14226 # This is an error.
14227 -*) { echo "$as_me: error: unrecognized option: $1
14228Try \`$0 --help' for more information." >&2
14229 { (exit 1); exit 1; }; } ;;
14230
14231 *) ac_config_targets="$ac_config_targets $1"
14232 ac_need_defaults=false ;;
14233
14234 esac
14235 shift
14236done
14237
14238ac_configure_extra_args=
14239
14240if $ac_cs_silent; then
14241 exec 6>/dev/null
14242 ac_configure_extra_args="$ac_configure_extra_args --silent"
14243fi
14244
14245_ACEOF
14246cat >>$CONFIG_STATUS <<_ACEOF
14247if \$ac_cs_recheck; then
14248 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14249 CONFIG_SHELL=$SHELL
14250 export CONFIG_SHELL
14251 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14252fi
14253
14254_ACEOF
14255cat >>$CONFIG_STATUS <<\_ACEOF
14256exec 5>>config.log
14257{
14258 echo
14259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14260## Running $as_me. ##
14261_ASBOX
14262 echo "$ac_log"
14263} >&5
14264
14265_ACEOF
14266cat >>$CONFIG_STATUS <<_ACEOF
14267#
14268# INIT-COMMANDS
14269#
14270AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14271
14272
14273# The HP-UX ksh and POSIX shell print the target directory to stdout
14274# if CDPATH is set.
14275(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14276
14277sed_quote_subst='$sed_quote_subst'
14278double_quote_subst='$double_quote_subst'
14279delay_variable_subst='$delay_variable_subst'
14280macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14281macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14282enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14283enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14284pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14285enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14286host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14287host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14288host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14289build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14290build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14291build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14292SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14293Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14294GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14295EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14296FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14297LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14298NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14299LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14300max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14301ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14302exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14303lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14304lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14305lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14306reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14307reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14308OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14309deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14310file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14311AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14312AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14313STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14314RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14315old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14316old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14317old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14318CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14319CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14320compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14321GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14322lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14323lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14324lt_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"`'
14325lt_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"`'
14326objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14327SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14328ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14329MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14330lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14331lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14332lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14333lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14334lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14335need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14336DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14337NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14338LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14339OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14340OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14341libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14342shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14343extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14344archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14345enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14346export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14347whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14348compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14349old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14350old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14351archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14352archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14353module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14354module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14355with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14356allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14357no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14358hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14359hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14360hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14361hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14362hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14363hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14364hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14365hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14366inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14367link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14368fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14369always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14370export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14371exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14372include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14373prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14374file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14375variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14376need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14377need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14378version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14379runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14380shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14381shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14382libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14383library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14384soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14385postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14386postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14387finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14388finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14389hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14390sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14391sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14392hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14393enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14394enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14395enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14396old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14397striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14398
14399LTCC='$LTCC'
14400LTCFLAGS='$LTCFLAGS'
14401compiler='$compiler_DEFAULT'
14402
14403# Quote evaled strings.
14404for var in SED \
14405GREP \
14406EGREP \
14407FGREP \
14408LD \
14409NM \
14410LN_S \
14411lt_SP2NL \
14412lt_NL2SP \
14413reload_flag \
14414OBJDUMP \
14415deplibs_check_method \
14416file_magic_cmd \
14417AR \
14418AR_FLAGS \
14419STRIP \
14420RANLIB \
14421CC \
14422CFLAGS \
14423compiler \
14424lt_cv_sys_global_symbol_pipe \
14425lt_cv_sys_global_symbol_to_cdecl \
14426lt_cv_sys_global_symbol_to_c_name_address \
14427lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14428SHELL \
14429ECHO \
14430lt_prog_compiler_no_builtin_flag \
14431lt_prog_compiler_wl \
14432lt_prog_compiler_pic \
14433lt_prog_compiler_static \
14434lt_cv_prog_compiler_c_o \
14435need_locks \
14436DSYMUTIL \
14437NMEDIT \
14438LIPO \
14439OTOOL \
14440OTOOL64 \
14441shrext_cmds \
14442export_dynamic_flag_spec \
14443whole_archive_flag_spec \
14444compiler_needs_object \
14445with_gnu_ld \
14446allow_undefined_flag \
14447no_undefined_flag \
14448hardcode_libdir_flag_spec \
14449hardcode_libdir_flag_spec_ld \
14450hardcode_libdir_separator \
14451fix_srcfile_path \
14452exclude_expsyms \
14453include_expsyms \
14454file_list_spec \
14455variables_saved_for_relink \
14456libname_spec \
14457library_names_spec \
14458soname_spec \
14459finish_eval \
14460old_striplib \
14461striplib; do
14462 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14463 *[\\\\\\\`\\"\\\$]*)
14464 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14465 ;;
14466 *)
14467 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14468 ;;
14469 esac
14470done
14471
14472# Double-quote double-evaled strings.
14473for var in reload_cmds \
14474old_postinstall_cmds \
14475old_postuninstall_cmds \
14476old_archive_cmds \
14477extract_expsyms_cmds \
14478old_archive_from_new_cmds \
14479old_archive_from_expsyms_cmds \
14480archive_cmds \
14481archive_expsym_cmds \
14482module_cmds \
14483module_expsym_cmds \
14484export_symbols_cmds \
14485prelink_cmds \
14486postinstall_cmds \
14487postuninstall_cmds \
14488finish_cmds \
14489sys_lib_search_path_spec \
14490sys_lib_dlsearch_path_spec; do
14491 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14492 *[\\\\\\\`\\"\\\$]*)
14493 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14494 ;;
14495 *)
14496 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14497 ;;
14498 esac
14499done
14500
14501# Fix-up fallback echo if it was mangled by the above quoting rules.
14502case \$lt_ECHO in
14503*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14504 ;;
14505esac
14506
14507ac_aux_dir='$ac_aux_dir'
14508xsi_shell='$xsi_shell'
14509lt_shell_append='$lt_shell_append'
14510
14511# See if we are running on zsh, and set the options which allow our
14512# commands through without removal of \ escapes INIT.
14513if test -n "\${ZSH_VERSION+set}" ; then
14514 setopt NO_GLOB_SUBST
14515fi
14516
14517
14518 PACKAGE='$PACKAGE'
14519 VERSION='$VERSION'
14520 TIMESTAMP='$TIMESTAMP'
14521 RM='$RM'
14522 ofile='$ofile'
14523
14524
14525
14526
14527_ACEOF
14528
14529cat >>$CONFIG_STATUS <<\_ACEOF
14530
14531# Handling of arguments.
14532for ac_config_target in $ac_config_targets
14533do
14534 case $ac_config_target in
14535 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14536 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14537 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14538 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14539 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14540 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14541 "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
14542 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14543 "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
14544 "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
14545 "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
14546 "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
14547 "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
14548
14549 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14550echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14551 { (exit 1); exit 1; }; };;
14552 esac
14553done
14554
14555
14556# If the user did not use the arguments to specify the items to instantiate,
14557# then the envvar interface is used. Set only those that are not.
14558# We use the long form for the default assignment because of an extremely
14559# bizarre bug on SunOS 4.1.3.
14560if $ac_need_defaults; then
14561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14563 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14564fi
14565
14566# Have a temporary directory for convenience. Make it in the build tree
14567# simply because there is no reason against having it here, and in addition,
14568# creating and moving files from /tmp can sometimes cause problems.
14569# Hook for its removal unless debugging.
14570# Note that there is a small window in which the directory will not be cleaned:
14571# after its creation but before its name has been assigned to `$tmp'.
14572$debug ||
14573{
14574 tmp=
14575 trap 'exit_status=$?
14576 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14577' 0
14578 trap '{ (exit 1); exit 1; }' 1 2 13 15
14579}
14580# Create a (secure) tmp directory for tmp files.
14581
14582{
14583 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14584 test -n "$tmp" && test -d "$tmp"
14585} ||
14586{
14587 tmp=./conf$$-$RANDOM
14588 (umask 077 && mkdir "$tmp")
14589} ||
14590{
14591 echo "$me: cannot create a temporary directory in ." >&2
14592 { (exit 1); exit 1; }
14593}
14594
14595#
14596# Set up the sed scripts for CONFIG_FILES section.
14597#
14598
14599# No need to generate the scripts if there are no CONFIG_FILES.
14600# This happens for instance when ./config.status config.h
14601if test -n "$CONFIG_FILES"; then
14602
14603_ACEOF
14604
14605
14606
14607ac_delim='%!_!# '
14608for ac_last_try in false false false false false :; do
14609 cat >conf$$subs.sed <<_ACEOF
14610SHELL!$SHELL$ac_delim
14611PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14612PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14613PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14614PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14615PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14616PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14617exec_prefix!$exec_prefix$ac_delim
14618prefix!$prefix$ac_delim
14619program_transform_name!$program_transform_name$ac_delim
14620bindir!$bindir$ac_delim
14621sbindir!$sbindir$ac_delim
14622libexecdir!$libexecdir$ac_delim
14623datarootdir!$datarootdir$ac_delim
14624datadir!$datadir$ac_delim
14625sysconfdir!$sysconfdir$ac_delim
14626sharedstatedir!$sharedstatedir$ac_delim
14627localstatedir!$localstatedir$ac_delim
14628includedir!$includedir$ac_delim
14629oldincludedir!$oldincludedir$ac_delim
14630docdir!$docdir$ac_delim
14631infodir!$infodir$ac_delim
14632htmldir!$htmldir$ac_delim
14633dvidir!$dvidir$ac_delim
14634pdfdir!$pdfdir$ac_delim
14635psdir!$psdir$ac_delim
14636libdir!$libdir$ac_delim
14637localedir!$localedir$ac_delim
14638mandir!$mandir$ac_delim
14639DEFS!$DEFS$ac_delim
14640ECHO_C!$ECHO_C$ac_delim
14641ECHO_N!$ECHO_N$ac_delim
14642ECHO_T!$ECHO_T$ac_delim
14643LIBS!$LIBS$ac_delim
14644build_alias!$build_alias$ac_delim
14645host_alias!$host_alias$ac_delim
14646target_alias!$target_alias$ac_delim
14647INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14648INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14649INSTALL_DATA!$INSTALL_DATA$ac_delim
14650CYGPATH_W!$CYGPATH_W$ac_delim
14651PACKAGE!$PACKAGE$ac_delim
14652VERSION!$VERSION$ac_delim
14653ACLOCAL!$ACLOCAL$ac_delim
14654AUTOCONF!$AUTOCONF$ac_delim
14655AUTOMAKE!$AUTOMAKE$ac_delim
14656AUTOHEADER!$AUTOHEADER$ac_delim
14657MAKEINFO!$MAKEINFO$ac_delim
14658install_sh!$install_sh$ac_delim
14659STRIP!$STRIP$ac_delim
14660INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14661mkdir_p!$mkdir_p$ac_delim
14662AWK!$AWK$ac_delim
14663SET_MAKE!$SET_MAKE$ac_delim
14664am__leading_dot!$am__leading_dot$ac_delim
14665AMTAR!$AMTAR$ac_delim
14666am__tar!$am__tar$ac_delim
14667am__untar!$am__untar$ac_delim
14668MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
14669MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
14670MAINT!$MAINT$ac_delim
14671LIB_CURRENT!$LIB_CURRENT$ac_delim
14672LIB_REVISION!$LIB_REVISION$ac_delim
14673LIB_AGE!$LIB_AGE$ac_delim
14674CC!$CC$ac_delim
14675CFLAGS!$CFLAGS$ac_delim
14676LDFLAGS!$LDFLAGS$ac_delim
14677CPPFLAGS!$CPPFLAGS$ac_delim
14678ac_ct_CC!$ac_ct_CC$ac_delim
14679EXEEXT!$EXEEXT$ac_delim
14680OBJEXT!$OBJEXT$ac_delim
14681DEPDIR!$DEPDIR$ac_delim
14682am__include!$am__include$ac_delim
14683am__quote!$am__quote$ac_delim
14684AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14685AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14686AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14687CCDEPMODE!$CCDEPMODE$ac_delim
14688am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14689am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14690LIBTOOL!$LIBTOOL$ac_delim
14691build!$build$ac_delim
14692build_cpu!$build_cpu$ac_delim
14693build_vendor!$build_vendor$ac_delim
14694build_os!$build_os$ac_delim
14695host!$host$ac_delim
14696host_cpu!$host_cpu$ac_delim
14697host_vendor!$host_vendor$ac_delim
14698host_os!$host_os$ac_delim
14699SED!$SED$ac_delim
14700GREP!$GREP$ac_delim
14701EGREP!$EGREP$ac_delim
14702FGREP!$FGREP$ac_delim
14703LD!$LD$ac_delim
14704DUMPBIN!$DUMPBIN$ac_delim
14705ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
14706NM!$NM$ac_delim
14707_ACEOF
14708
14709 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14710 break
14711 elif $ac_last_try; then
14712 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14713echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14714 { (exit 1); exit 1; }; }
14715 else
14716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14717 fi
14718done
14719
14720ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14721if test -n "$ac_eof"; then
14722 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14723 ac_eof=`expr $ac_eof + 1`
14724fi
14725
14726cat >>$CONFIG_STATUS <<_ACEOF
14727cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14728/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14729_ACEOF
14730sed '
14731s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14732s/^/s,@/; s/!/@,|#_!!_#|/
14733:n
14734t n
14735s/'"$ac_delim"'$/,g/; t
14736s/$/\\/; p
14737N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14738' >>$CONFIG_STATUS <conf$$subs.sed
14739rm -f conf$$subs.sed
14740cat >>$CONFIG_STATUS <<_ACEOF
14741CEOF$ac_eof
14742_ACEOF
14743
14744
14745ac_delim='%!_!# '
14746for ac_last_try in false false false false false :; do
14747 cat >conf$$subs.sed <<_ACEOF
14748LN_S!$LN_S$ac_delim
14749OBJDUMP!$OBJDUMP$ac_delim
14750AR!$AR$ac_delim
14751RANLIB!$RANLIB$ac_delim
14752lt_ECHO!$lt_ECHO$ac_delim
14753DSYMUTIL!$DSYMUTIL$ac_delim
14754NMEDIT!$NMEDIT$ac_delim
14755LIPO!$LIPO$ac_delim
14756OTOOL!$OTOOL$ac_delim
14757OTOOL64!$OTOOL64$ac_delim
14758CPP!$CPP$ac_delim
14759LIBOBJS!$LIBOBJS$ac_delim
14760LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
14761SIZE16!$SIZE16$ac_delim
14762USIZE16!$USIZE16$ac_delim
14763SIZE32!$SIZE32$ac_delim
14764USIZE32!$USIZE32$ac_delim
14765SIZE64!$SIZE64$ac_delim
14766OPT!$OPT$ac_delim
14767DEBUG!$DEBUG$ac_delim
14768PROFILE!$PROFILE$ac_delim
14769LTLIBOBJS!$LTLIBOBJS$ac_delim
14770_ACEOF
14771
14772 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
14773 break
14774 elif $ac_last_try; then
14775 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14776echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14777 { (exit 1); exit 1; }; }
14778 else
14779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14780 fi
14781done
14782
14783ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14784if test -n "$ac_eof"; then
14785 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14786 ac_eof=`expr $ac_eof + 1`
14787fi
14788
14789cat >>$CONFIG_STATUS <<_ACEOF
14790cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14791/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14792_ACEOF
14793sed '
14794s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14795s/^/s,@/; s/!/@,|#_!!_#|/
14796:n
14797t n
14798s/'"$ac_delim"'$/,g/; t
14799s/$/\\/; p
14800N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14801' >>$CONFIG_STATUS <conf$$subs.sed
14802rm -f conf$$subs.sed
14803cat >>$CONFIG_STATUS <<_ACEOF
14804:end
14805s/|#_!!_#|//g
14806CEOF$ac_eof
14807_ACEOF
14808
14809
14810# VPATH may cause trouble with some makes, so we remove $(srcdir),
14811# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14812# trailing colons and then remove the whole line if VPATH becomes empty
14813# (actually we leave an empty line to preserve line numbers).
14814if test "x$srcdir" = x.; then
14815 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14816s/:*\$(srcdir):*/:/
14817s/:*\${srcdir}:*/:/
14818s/:*@srcdir@:*/:/
14819s/^\([^=]*=[ ]*\):*/\1/
14820s/:*$//
14821s/^[^=]*=[ ]*$//
14822}'
14823fi
14824
14825cat >>$CONFIG_STATUS <<\_ACEOF
14826fi # test -n "$CONFIG_FILES"
14827
14828
14829for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14830do
14831 case $ac_tag in
14832 :[FHLC]) ac_mode=$ac_tag; continue;;
14833 esac
14834 case $ac_mode$ac_tag in
14835 :[FHL]*:*);;
14836 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14837echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14838 { (exit 1); exit 1; }; };;
14839 :[FH]-) ac_tag=-:-;;
14840 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14841 esac
14842 ac_save_IFS=$IFS
14843 IFS=:
14844 set x $ac_tag
14845 IFS=$ac_save_IFS
14846 shift
14847 ac_file=$1
14848 shift
14849
14850 case $ac_mode in
14851 :L) ac_source=$1;;
14852 :[FH])
14853 ac_file_inputs=
14854 for ac_f
14855 do
14856 case $ac_f in
14857 -) ac_f="$tmp/stdin";;
14858 *) # Look for the file first in the build tree, then in the source tree
14859 # (if the path is not absolute). The absolute path cannot be DOS-style,
14860 # because $ac_f cannot contain `:'.
14861 test -f "$ac_f" ||
14862 case $ac_f in
14863 [\\/$]*) false;;
14864 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14865 esac ||
14866 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14867echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14868 { (exit 1); exit 1; }; };;
14869 esac
14870 ac_file_inputs="$ac_file_inputs $ac_f"
14871 done
14872
14873 # Let's still pretend it is `configure' which instantiates (i.e., don't
14874 # use $as_me), people would be surprised to read:
14875 # /* config.h. Generated by config.status. */
14876 configure_input="Generated from "`IFS=:
14877 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14878 if test x"$ac_file" != x-; then
14879 configure_input="$ac_file. $configure_input"
14880 { echo "$as_me:$LINENO: creating $ac_file" >&5
14881echo "$as_me: creating $ac_file" >&6;}
14882 fi
14883
14884 case $ac_tag in
14885 *:-:* | *:-) cat >"$tmp/stdin";;
14886 esac
14887 ;;
14888 esac
14889
14890 ac_dir=`$as_dirname -- "$ac_file" ||
14891$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14892 X"$ac_file" : 'X\(//\)[^/]' \| \
14893 X"$ac_file" : 'X\(//\)$' \| \
14894 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14895echo X"$ac_file" |
14896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14897 s//\1/
14898 q
14899 }
14900 /^X\(\/\/\)[^/].*/{
14901 s//\1/
14902 q
14903 }
14904 /^X\(\/\/\)$/{
14905 s//\1/
14906 q
14907 }
14908 /^X\(\/\).*/{
14909 s//\1/
14910 q
14911 }
14912 s/.*/./; q'`
14913 { as_dir="$ac_dir"
14914 case $as_dir in #(
14915 -*) as_dir=./$as_dir;;
14916 esac
14917 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14918 as_dirs=
14919 while :; do
14920 case $as_dir in #(
14921 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14922 *) as_qdir=$as_dir;;
14923 esac
14924 as_dirs="'$as_qdir' $as_dirs"
14925 as_dir=`$as_dirname -- "$as_dir" ||
14926$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14927 X"$as_dir" : 'X\(//\)[^/]' \| \
14928 X"$as_dir" : 'X\(//\)$' \| \
14929 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14930echo X"$as_dir" |
14931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14932 s//\1/
14933 q
14934 }
14935 /^X\(\/\/\)[^/].*/{
14936 s//\1/
14937 q
14938 }
14939 /^X\(\/\/\)$/{
14940 s//\1/
14941 q
14942 }
14943 /^X\(\/\).*/{
14944 s//\1/
14945 q
14946 }
14947 s/.*/./; q'`
14948 test -d "$as_dir" && break
14949 done
14950 test -z "$as_dirs" || eval "mkdir $as_dirs"
14951 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14952echo "$as_me: error: cannot create directory $as_dir" >&2;}
14953 { (exit 1); exit 1; }; }; }
14954 ac_builddir=.
14955
14956case "$ac_dir" in
14957.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14958*)
14959 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14960 # A ".." for each directory in $ac_dir_suffix.
14961 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14962 case $ac_top_builddir_sub in
14963 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14964 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14965 esac ;;
14966esac
14967ac_abs_top_builddir=$ac_pwd
14968ac_abs_builddir=$ac_pwd$ac_dir_suffix
14969# for backward compatibility:
14970ac_top_builddir=$ac_top_build_prefix
14971
14972case $srcdir in
14973 .) # We are building in place.
14974 ac_srcdir=.
14975 ac_top_srcdir=$ac_top_builddir_sub
14976 ac_abs_top_srcdir=$ac_pwd ;;
14977 [\\/]* | ?:[\\/]* ) # Absolute name.
14978 ac_srcdir=$srcdir$ac_dir_suffix;
14979 ac_top_srcdir=$srcdir
14980 ac_abs_top_srcdir=$srcdir ;;
14981 *) # Relative name.
14982 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14983 ac_top_srcdir=$ac_top_build_prefix$srcdir
14984 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14985esac
14986ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14987
14988
14989 case $ac_mode in
14990 :F)
14991 #
14992 # CONFIG_FILE
14993 #
14994
14995 case $INSTALL in
14996 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14997 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14998 esac
14999_ACEOF
15000
15001cat >>$CONFIG_STATUS <<\_ACEOF
15002# If the template does not know about datarootdir, expand it.
15003# FIXME: This hack should be removed a few years after 2.60.
15004ac_datarootdir_hack=; ac_datarootdir_seen=
15005
15006case `sed -n '/datarootdir/ {
15007 p
15008 q
15009}
15010/@datadir@/p
15011/@docdir@/p
15012/@infodir@/p
15013/@localedir@/p
15014/@mandir@/p
15015' $ac_file_inputs` in
15016*datarootdir*) ac_datarootdir_seen=yes;;
15017*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15018 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15019echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15020_ACEOF
15021cat >>$CONFIG_STATUS <<_ACEOF
15022 ac_datarootdir_hack='
15023 s&@datadir@&$datadir&g
15024 s&@docdir@&$docdir&g
15025 s&@infodir@&$infodir&g
15026 s&@localedir@&$localedir&g
15027 s&@mandir@&$mandir&g
15028 s&\\\${datarootdir}&$datarootdir&g' ;;
15029esac
15030_ACEOF
15031
15032# Neutralize VPATH when `$srcdir' = `.'.
15033# Shell code in configure.ac might set extrasub.
15034# FIXME: do we really want to maintain this feature?
15035cat >>$CONFIG_STATUS <<_ACEOF
15036 sed "$ac_vpsub
15037$extrasub
15038_ACEOF
15039cat >>$CONFIG_STATUS <<\_ACEOF
15040:t
15041/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15042s&@configure_input@&$configure_input&;t t
15043s&@top_builddir@&$ac_top_builddir_sub&;t t
15044s&@srcdir@&$ac_srcdir&;t t
15045s&@abs_srcdir@&$ac_abs_srcdir&;t t
15046s&@top_srcdir@&$ac_top_srcdir&;t t
15047s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15048s&@builddir@&$ac_builddir&;t t
15049s&@abs_builddir@&$ac_abs_builddir&;t t
15050s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15051s&@INSTALL@&$ac_INSTALL&;t t
15052$ac_datarootdir_hack
15053" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
15054
15055test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15056 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15058 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15059which seems to be undefined. Please make sure it is defined." >&5
15060echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15061which seems to be undefined. Please make sure it is defined." >&2;}
15062
15063 rm -f "$tmp/stdin"
15064 case $ac_file in
15065 -) cat "$tmp/out"; rm -f "$tmp/out";;
15066 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15067 esac
15068 ;;
15069 :H)
15070 #
15071 # CONFIG_HEADER
15072 #
15073_ACEOF
15074
15075# Transform confdefs.h into a sed script `conftest.defines', that
15076# substitutes the proper values into config.h.in to produce config.h.
15077rm -f conftest.defines conftest.tail
15078# First, append a space to every undef/define line, to ease matching.
15079echo 's/$/ /' >conftest.defines
15080# Then, protect against being on the right side of a sed subst, or in
15081# an unquoted here document, in config.status. If some macros were
15082# called several times there might be several #defines for the same
15083# symbol, which is useless. But do not sort them, since the last
15084# AC_DEFINE must be honored.
15085ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15086# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15087# NAME is the cpp macro being defined, VALUE is the value it is being given.
15088# PARAMS is the parameter list in the macro definition--in most cases, it's
15089# just an empty string.
15090ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15091ac_dB='\\)[ (].*,\\1define\\2'
15092ac_dC=' '
15093ac_dD=' ,'
15094
15095uniq confdefs.h |
15096 sed -n '
15097 t rset
15098 :rset
15099 s/^[ ]*#[ ]*define[ ][ ]*//
15100 t ok
15101 d
15102 :ok
15103 s/[\\&,]/\\&/g
15104 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15105 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15106 ' >>conftest.defines
15107
15108# Remove the space that was appended to ease matching.
15109# Then replace #undef with comments. This is necessary, for
15110# example, in the case of _POSIX_SOURCE, which is predefined and required
15111# on some systems where configure will not decide to define it.
15112# (The regexp can be short, since the line contains either #define or #undef.)
15113echo 's/ $//
15114s,^[ #]*u.*,/* & */,' >>conftest.defines
15115
15116# Break up conftest.defines:
15117ac_max_sed_lines=50
15118
15119# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15120# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15121# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15122# et cetera.
15123ac_in='$ac_file_inputs'
15124ac_out='"$tmp/out1"'
15125ac_nxt='"$tmp/out2"'
15126
15127while :
15128do
15129 # Write a here document:
15130 cat >>$CONFIG_STATUS <<_ACEOF
15131 # First, check the format of the line:
15132 cat >"\$tmp/defines.sed" <<\\CEOF
15133/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15134/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15135b
15136:def
15137_ACEOF
15138 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15139 echo 'CEOF
15140 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15141 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15142 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15143 grep . conftest.tail >/dev/null || break
15144 rm -f conftest.defines
15145 mv conftest.tail conftest.defines
15146done
15147rm -f conftest.defines conftest.tail
15148
15149echo "ac_result=$ac_in" >>$CONFIG_STATUS
15150cat >>$CONFIG_STATUS <<\_ACEOF
15151 if test x"$ac_file" != x-; then
15152 echo "/* $configure_input */" >"$tmp/config.h"
15153 cat "$ac_result" >>"$tmp/config.h"
15154 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15155 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15156echo "$as_me: $ac_file is unchanged" >&6;}
15157 else
15158 rm -f $ac_file
15159 mv "$tmp/config.h" $ac_file
15160 fi
15161 else
15162 echo "/* $configure_input */"
15163 cat "$ac_result"
15164 fi
15165 rm -f "$tmp/out12"
15166# Compute $ac_file's index in $config_headers.
15167_am_stamp_count=1
15168for _am_header in $config_headers :; do
15169 case $_am_header in
15170 $ac_file | $ac_file:* )
15171 break ;;
15172 * )
15173 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15174 esac
15175done
15176echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
15177$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15178 X$ac_file : 'X\(//\)[^/]' \| \
15179 X$ac_file : 'X\(//\)$' \| \
15180 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
15181echo X$ac_file |
15182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15183 s//\1/
15184 q
15185 }
15186 /^X\(\/\/\)[^/].*/{
15187 s//\1/
15188 q
15189 }
15190 /^X\(\/\/\)$/{
15191 s//\1/
15192 q
15193 }
15194 /^X\(\/\).*/{
15195 s//\1/
15196 q
15197 }
15198 s/.*/./; q'`/stamp-h$_am_stamp_count
15199 ;;
15200
15201 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
15202echo "$as_me: executing $ac_file commands" >&6;}
15203 ;;
15204 esac
15205
15206
15207 case $ac_file$ac_mode in
15208 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15209 # Strip MF so we end up with the name of the file.
15210 mf=`echo "$mf" | sed -e 's/:.*$//'`
15211 # Check whether this is an Automake generated Makefile or not.
15212 # We used to match only the files named `Makefile.in', but
15213 # some people rename them; so instead we look at the file content.
15214 # Grep'ing the first line is not enough: some people post-process
15215 # each Makefile.in and add a new line on top of each file to say so.
15216 # So let's grep whole file.
15217 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15218 dirpart=`$as_dirname -- "$mf" ||
15219$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15220 X"$mf" : 'X\(//\)[^/]' \| \
15221 X"$mf" : 'X\(//\)$' \| \
15222 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15223echo X"$mf" |
15224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15225 s//\1/
15226 q
15227 }
15228 /^X\(\/\/\)[^/].*/{
15229 s//\1/
15230 q
15231 }
15232 /^X\(\/\/\)$/{
15233 s//\1/
15234 q
15235 }
15236 /^X\(\/\).*/{
15237 s//\1/
15238 q
15239 }
15240 s/.*/./; q'`
15241 else
15242 continue
15243 fi
15244 # Extract the definition of DEPDIR, am__include, and am__quote
15245 # from the Makefile without running `make'.
15246 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15247 test -z "$DEPDIR" && continue
15248 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15249 test -z "am__include" && continue
15250 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15251 # When using ansi2knr, U may be empty or an underscore; expand it
15252 U=`sed -n 's/^U = //p' < "$mf"`
15253 # Find all dependency output files, they are included files with
15254 # $(DEPDIR) in their names. We invoke sed twice because it is the
15255 # simplest approach to changing $(DEPDIR) to its actual value in the
15256 # expansion.
15257 for file in `sed -n "
15258 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15259 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15260 # Make sure the directory exists.
15261 test -f "$dirpart/$file" && continue
15262 fdir=`$as_dirname -- "$file" ||
15263$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15264 X"$file" : 'X\(//\)[^/]' \| \
15265 X"$file" : 'X\(//\)$' \| \
15266 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15267echo X"$file" |
15268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15269 s//\1/
15270 q
15271 }
15272 /^X\(\/\/\)[^/].*/{
15273 s//\1/
15274 q
15275 }
15276 /^X\(\/\/\)$/{
15277 s//\1/
15278 q
15279 }
15280 /^X\(\/\).*/{
15281 s//\1/
15282 q
15283 }
15284 s/.*/./; q'`
15285 { as_dir=$dirpart/$fdir
15286 case $as_dir in #(
15287 -*) as_dir=./$as_dir;;
15288 esac
15289 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15290 as_dirs=
15291 while :; do
15292 case $as_dir in #(
15293 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15294 *) as_qdir=$as_dir;;
15295 esac
15296 as_dirs="'$as_qdir' $as_dirs"
15297 as_dir=`$as_dirname -- "$as_dir" ||
15298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15299 X"$as_dir" : 'X\(//\)[^/]' \| \
15300 X"$as_dir" : 'X\(//\)$' \| \
15301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15302echo X"$as_dir" |
15303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15304 s//\1/
15305 q
15306 }
15307 /^X\(\/\/\)[^/].*/{
15308 s//\1/
15309 q
15310 }
15311 /^X\(\/\/\)$/{
15312 s//\1/
15313 q
15314 }
15315 /^X\(\/\).*/{
15316 s//\1/
15317 q
15318 }
15319 s/.*/./; q'`
15320 test -d "$as_dir" && break
15321 done
15322 test -z "$as_dirs" || eval "mkdir $as_dirs"
15323 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15324echo "$as_me: error: cannot create directory $as_dir" >&2;}
15325 { (exit 1); exit 1; }; }; }
15326 # echo "creating $dirpart/$file"
15327 echo '# dummy' > "$dirpart/$file"
15328 done
15329done
15330 ;;
15331 "libtool":C)
15332
15333 # See if we are running on zsh, and set the options which allow our
15334 # commands through without removal of \ escapes.
15335 if test -n "${ZSH_VERSION+set}" ; then
15336 setopt NO_GLOB_SUBST
15337 fi
15338
15339 cfgfile="${ofile}T"
15340 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15341 $RM "$cfgfile"
15342
15343 cat <<_LT_EOF >> "$cfgfile"
15344#! $SHELL
15345
15346# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15347# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15348# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15349# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15350#
15351# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15352# 2006, 2007, 2008 Free Software Foundation, Inc.
15353# Written by Gordon Matzigkeit, 1996
15354#
15355# This file is part of GNU Libtool.
15356#
15357# GNU Libtool is free software; you can redistribute it and/or
15358# modify it under the terms of the GNU General Public License as
15359# published by the Free Software Foundation; either version 2 of
15360# the License, or (at your option) any later version.
15361#
15362# As a special exception to the GNU General Public License,
15363# if you distribute this file as part of a program or library that
15364# is built using GNU Libtool, you may include this file under the
15365# same distribution terms that you use for the rest of that program.
15366#
15367# GNU Libtool is distributed in the hope that it will be useful,
15368# but WITHOUT ANY WARRANTY; without even the implied warranty of
15369# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15370# GNU General Public License for more details.
15371#
15372# You should have received a copy of the GNU General Public License
15373# along with GNU Libtool; see the file COPYING. If not, a copy
15374# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15375# obtained by writing to the Free Software Foundation, Inc.,
15376# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15377
15378
15379# The names of the tagged configurations supported by this script.
15380available_tags=""
15381
15382# ### BEGIN LIBTOOL CONFIG
15383
15384# Which release of libtool.m4 was used?
15385macro_version=$macro_version
15386macro_revision=$macro_revision
15387
15388# Whether or not to build shared libraries.
15389build_libtool_libs=$enable_shared
15390
15391# Whether or not to build static libraries.
15392build_old_libs=$enable_static
15393
15394# What type of objects to build.
15395pic_mode=$pic_mode
15396
15397# Whether or not to optimize for fast installation.
15398fast_install=$enable_fast_install
15399
15400# The host system.
15401host_alias=$host_alias
15402host=$host
15403host_os=$host_os
15404
15405# The build system.
15406build_alias=$build_alias
15407build=$build
15408build_os=$build_os
15409
15410# A sed program that does not truncate output.
15411SED=$lt_SED
15412
15413# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15414Xsed="\$SED -e 1s/^X//"
15415
15416# A grep program that handles long lines.
15417GREP=$lt_GREP
15418
15419# An ERE matcher.
15420EGREP=$lt_EGREP
15421
15422# A literal string matcher.
15423FGREP=$lt_FGREP
15424
15425# A BSD- or MS-compatible name lister.
15426NM=$lt_NM
15427
15428# Whether we need soft or hard links.
15429LN_S=$lt_LN_S
15430
15431# What is the maximum length of a command?
15432max_cmd_len=$max_cmd_len
15433
15434# Object file suffix (normally "o").
15435objext=$ac_objext
15436
15437# Executable file suffix (normally "").
15438exeext=$exeext
15439
15440# whether the shell understands "unset".
15441lt_unset=$lt_unset
15442
15443# turn spaces into newlines.
15444SP2NL=$lt_lt_SP2NL
15445
15446# turn newlines into spaces.
15447NL2SP=$lt_lt_NL2SP
15448
15449# How to create reloadable object files.
15450reload_flag=$lt_reload_flag
15451reload_cmds=$lt_reload_cmds
15452
15453# An object symbol dumper.
15454OBJDUMP=$lt_OBJDUMP
15455
15456# Method to check whether dependent libraries are shared objects.
15457deplibs_check_method=$lt_deplibs_check_method
15458
15459# Command to use when deplibs_check_method == "file_magic".
15460file_magic_cmd=$lt_file_magic_cmd
15461
15462# The archiver.
15463AR=$lt_AR
15464AR_FLAGS=$lt_AR_FLAGS
15465
15466# A symbol stripping program.
15467STRIP=$lt_STRIP
15468
15469# Commands used to install an old-style archive.
15470RANLIB=$lt_RANLIB
15471old_postinstall_cmds=$lt_old_postinstall_cmds
15472old_postuninstall_cmds=$lt_old_postuninstall_cmds
15473
15474# A C compiler.
15475LTCC=$lt_CC
15476
15477# LTCC compiler flags.
15478LTCFLAGS=$lt_CFLAGS
15479
15480# Take the output of nm and produce a listing of raw symbols and C names.
15481global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15482
15483# Transform the output of nm in a proper C declaration.
15484global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15485
15486# Transform the output of nm in a C name address pair.
15487global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15488
15489# Transform the output of nm in a C name address pair when lib prefix is needed.
15490global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15491
15492# The name of the directory that contains temporary libtool files.
15493objdir=$objdir
15494
15495# Shell to use when invoking shell scripts.
15496SHELL=$lt_SHELL
15497
15498# An echo program that does not interpret backslashes.
15499ECHO=$lt_ECHO
15500
15501# Used to examine libraries when file_magic_cmd begins with "file".
15502MAGIC_CMD=$MAGIC_CMD
15503
15504# Must we lock files when doing compilation?
15505need_locks=$lt_need_locks
15506
15507# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15508DSYMUTIL=$lt_DSYMUTIL
15509
15510# Tool to change global to local symbols on Mac OS X.
15511NMEDIT=$lt_NMEDIT
15512
15513# Tool to manipulate fat objects and archives on Mac OS X.
15514LIPO=$lt_LIPO
15515
15516# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15517OTOOL=$lt_OTOOL
15518
15519# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15520OTOOL64=$lt_OTOOL64
15521
15522# Old archive suffix (normally "a").
15523libext=$libext
15524
15525# Shared library suffix (normally ".so").
15526shrext_cmds=$lt_shrext_cmds
15527
15528# The commands to extract the exported symbol list from a shared archive.
15529extract_expsyms_cmds=$lt_extract_expsyms_cmds
15530
15531# Variables whose values should be saved in libtool wrapper scripts and
15532# restored at link time.
15533variables_saved_for_relink=$lt_variables_saved_for_relink
15534
15535# Do we need the "lib" prefix for modules?
15536need_lib_prefix=$need_lib_prefix
15537
15538# Do we need a version for libraries?
15539need_version=$need_version
15540
15541# Library versioning type.
15542version_type=$version_type
15543
15544# Shared library runtime path variable.
15545runpath_var=$runpath_var
15546
15547# Shared library path variable.
15548shlibpath_var=$shlibpath_var
15549
15550# Is shlibpath searched before the hard-coded library search path?
15551shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15552
15553# Format of library name prefix.
15554libname_spec=$lt_libname_spec
15555
15556# List of archive names. First name is the real one, the rest are links.
15557# The last name is the one that the linker finds with -lNAME
15558library_names_spec=$lt_library_names_spec
15559
15560# The coded name of the library, if different from the real name.
15561soname_spec=$lt_soname_spec
15562
15563# Command to use after installation of a shared archive.
15564postinstall_cmds=$lt_postinstall_cmds
15565
15566# Command to use after uninstallation of a shared archive.
15567postuninstall_cmds=$lt_postuninstall_cmds
15568
15569# Commands used to finish a libtool library installation in a directory.
15570finish_cmds=$lt_finish_cmds
15571
15572# As "finish_cmds", except a single script fragment to be evaled but
15573# not shown.
15574finish_eval=$lt_finish_eval
15575
15576# Whether we should hardcode library paths into libraries.
15577hardcode_into_libs=$hardcode_into_libs
15578
15579# Compile-time system search path for libraries.
15580sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15581
15582# Run-time system search path for libraries.
15583sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15584
15585# Whether dlopen is supported.
15586dlopen_support=$enable_dlopen
15587
15588# Whether dlopen of programs is supported.
15589dlopen_self=$enable_dlopen_self
15590
15591# Whether dlopen of statically linked programs is supported.
15592dlopen_self_static=$enable_dlopen_self_static
15593
15594# Commands to strip libraries.
15595old_striplib=$lt_old_striplib
15596striplib=$lt_striplib
15597
15598
15599# The linker used to build libraries.
15600LD=$lt_LD
15601
15602# Commands used to build an old-style archive.
15603old_archive_cmds=$lt_old_archive_cmds
15604
15605# A language specific compiler.
15606CC=$lt_compiler
15607
15608# Is the compiler the GNU compiler?
15609with_gcc=$GCC
15610
15611# Compiler flag to turn off builtin functions.
15612no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15613
15614# How to pass a linker flag through the compiler.
15615wl=$lt_lt_prog_compiler_wl
15616
15617# Additional compiler flags for building library objects.
15618pic_flag=$lt_lt_prog_compiler_pic
15619
15620# Compiler flag to prevent dynamic linking.
15621link_static_flag=$lt_lt_prog_compiler_static
15622
15623# Does compiler simultaneously support -c and -o options?
15624compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15625
15626# Whether or not to add -lc for building shared libraries.
15627build_libtool_need_lc=$archive_cmds_need_lc
15628
15629# Whether or not to disallow shared libs when runtime libs are static.
15630allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15631
15632# Compiler flag to allow reflexive dlopens.
15633export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15634
15635# Compiler flag to generate shared objects directly from archives.
15636whole_archive_flag_spec=$lt_whole_archive_flag_spec
15637
15638# Whether the compiler copes with passing no objects directly.
15639compiler_needs_object=$lt_compiler_needs_object
15640
15641# Create an old-style archive from a shared archive.
15642old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15643
15644# Create a temporary old-style archive to link instead of a shared archive.
15645old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15646
15647# Commands used to build a shared archive.
15648archive_cmds=$lt_archive_cmds
15649archive_expsym_cmds=$lt_archive_expsym_cmds
15650
15651# Commands used to build a loadable module if different from building
15652# a shared archive.
15653module_cmds=$lt_module_cmds
15654module_expsym_cmds=$lt_module_expsym_cmds
15655
15656# Whether we are building with GNU ld or not.
15657with_gnu_ld=$lt_with_gnu_ld
15658
15659# Flag that allows shared libraries with undefined symbols to be built.
15660allow_undefined_flag=$lt_allow_undefined_flag
15661
15662# Flag that enforces no undefined symbols.
15663no_undefined_flag=$lt_no_undefined_flag
15664
15665# Flag to hardcode \$libdir into a binary during linking.
15666# This must work even if \$libdir does not exist
15667hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15668
15669# If ld is used when linking, flag to hardcode \$libdir into a binary
15670# during linking. This must work even if \$libdir does not exist.
15671hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15672
15673# Whether we need a single "-rpath" flag with a separated argument.
15674hardcode_libdir_separator=$lt_hardcode_libdir_separator
15675
15676# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15677# DIR into the resulting binary.
15678hardcode_direct=$hardcode_direct
15679
15680# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15681# DIR into the resulting binary and the resulting library dependency is
15682# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15683# library is relocated.
15684hardcode_direct_absolute=$hardcode_direct_absolute
15685
15686# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15687# into the resulting binary.
15688hardcode_minus_L=$hardcode_minus_L
15689
15690# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15691# into the resulting binary.
15692hardcode_shlibpath_var=$hardcode_shlibpath_var
15693
15694# Set to "yes" if building a shared library automatically hardcodes DIR
15695# into the library and all subsequent libraries and executables linked
15696# against it.
15697hardcode_automatic=$hardcode_automatic
15698
15699# Set to yes if linker adds runtime paths of dependent libraries
15700# to runtime path list.
15701inherit_rpath=$inherit_rpath
15702
15703# Whether libtool must link a program against all its dependency libraries.
15704link_all_deplibs=$link_all_deplibs
15705
15706# Fix the shell variable \$srcfile for the compiler.
15707fix_srcfile_path=$lt_fix_srcfile_path
15708
15709# Set to "yes" if exported symbols are required.
15710always_export_symbols=$always_export_symbols
15711
15712# The commands to list exported symbols.
15713export_symbols_cmds=$lt_export_symbols_cmds
15714
15715# Symbols that should not be listed in the preloaded symbols.
15716exclude_expsyms=$lt_exclude_expsyms
15717
15718# Symbols that must always be exported.
15719include_expsyms=$lt_include_expsyms
15720
15721# Commands necessary for linking programs (against libraries) with templates.
15722prelink_cmds=$lt_prelink_cmds
15723
15724# Specify filename containing input files.
15725file_list_spec=$lt_file_list_spec
15726
15727# How to hardcode a shared library path into an executable.
15728hardcode_action=$hardcode_action
15729
15730# ### END LIBTOOL CONFIG
15731
15732_LT_EOF
15733
15734 case $host_os in
15735 aix3*)
15736 cat <<\_LT_EOF >> "$cfgfile"
15737# AIX sometimes has problems with the GCC collect2 program. For some
15738# reason, if we set the COLLECT_NAMES environment variable, the problems
15739# vanish in a puff of smoke.
15740if test "X${COLLECT_NAMES+set}" != Xset; then
15741 COLLECT_NAMES=
15742 export COLLECT_NAMES
15743fi
15744_LT_EOF
15745 ;;
15746 esac
15747
15748
15749ltmain="$ac_aux_dir/ltmain.sh"
15750
15751
15752 # We use sed instead of cat because bash on DJGPP gets confused if
15753 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15754 # text mode, it properly converts lines to CR/LF. This bash problem
15755 # is reportedly fixed, but why not run on old versions too?
15756 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15757 || (rm -f "$cfgfile"; exit 1)
15758
15759 case $xsi_shell in
15760 yes)
15761 cat << \_LT_EOF >> "$cfgfile"
15762
15763# func_dirname file append nondir_replacement
15764# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15765# otherwise set result to NONDIR_REPLACEMENT.
15766func_dirname ()
15767{
15768 case ${1} in
15769 */*) func_dirname_result="${1%/*}${2}" ;;
15770 * ) func_dirname_result="${3}" ;;
15771 esac
15772}
15773
15774# func_basename file
15775func_basename ()
15776{
15777 func_basename_result="${1##*/}"
15778}
15779
15780# func_dirname_and_basename file append nondir_replacement
15781# perform func_basename and func_dirname in a single function
15782# call:
15783# dirname: Compute the dirname of FILE. If nonempty,
15784# add APPEND to the result, otherwise set result
15785# to NONDIR_REPLACEMENT.
15786# value returned in "$func_dirname_result"
15787# basename: Compute filename of FILE.
15788# value retuned in "$func_basename_result"
15789# Implementation must be kept synchronized with func_dirname
15790# and func_basename. For efficiency, we do not delegate to
15791# those functions but instead duplicate the functionality here.
15792func_dirname_and_basename ()
15793{
15794 case ${1} in
15795 */*) func_dirname_result="${1%/*}${2}" ;;
15796 * ) func_dirname_result="${3}" ;;
15797 esac
15798 func_basename_result="${1##*/}"
15799}
15800
15801# func_stripname prefix suffix name
15802# strip PREFIX and SUFFIX off of NAME.
15803# PREFIX and SUFFIX must not contain globbing or regex special
15804# characters, hashes, percent signs, but SUFFIX may contain a leading
15805# dot (in which case that matches only a dot).
15806func_stripname ()
15807{
15808 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15809 # positional parameters, so assign one to ordinary parameter first.
15810 func_stripname_result=${3}
15811 func_stripname_result=${func_stripname_result#"${1}"}
15812 func_stripname_result=${func_stripname_result%"${2}"}
15813}
15814
15815# func_opt_split
15816func_opt_split ()
15817{
15818 func_opt_split_opt=${1%%=*}
15819 func_opt_split_arg=${1#*=}
15820}
15821
15822# func_lo2o object
15823func_lo2o ()
15824{
15825 case ${1} in
15826 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15827 *) func_lo2o_result=${1} ;;
15828 esac
15829}
15830
15831# func_xform libobj-or-source
15832func_xform ()
15833{
15834 func_xform_result=${1%.*}.lo
15835}
15836
15837# func_arith arithmetic-term...
15838func_arith ()
15839{
15840 func_arith_result=$(( $* ))
15841}
15842
15843# func_len string
15844# STRING may not start with a hyphen.
15845func_len ()
15846{
15847 func_len_result=${#1}
15848}
15849
15850_LT_EOF
15851 ;;
15852 *) # Bourne compatible functions.
15853 cat << \_LT_EOF >> "$cfgfile"
15854
15855# func_dirname file append nondir_replacement
15856# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15857# otherwise set result to NONDIR_REPLACEMENT.
15858func_dirname ()
15859{
15860 # Extract subdirectory from the argument.
15861 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15862 if test "X$func_dirname_result" = "X${1}"; then
15863 func_dirname_result="${3}"
15864 else
15865 func_dirname_result="$func_dirname_result${2}"
15866 fi
15867}
15868
15869# func_basename file
15870func_basename ()
15871{
15872 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15873}
15874
15875
15876# func_stripname prefix suffix name
15877# strip PREFIX and SUFFIX off of NAME.
15878# PREFIX and SUFFIX must not contain globbing or regex special
15879# characters, hashes, percent signs, but SUFFIX may contain a leading
15880# dot (in which case that matches only a dot).
15881# func_strip_suffix prefix name
15882func_stripname ()
15883{
15884 case ${2} in
15885 .*) func_stripname_result=`$ECHO "X${3}" \
15886 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15887 *) func_stripname_result=`$ECHO "X${3}" \
15888 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15889 esac
15890}
15891
15892# sed scripts:
15893my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15894my_sed_long_arg='1s/^-[^=]*=//'
15895
15896# func_opt_split
15897func_opt_split ()
15898{
15899 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15900 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15901}
15902
15903# func_lo2o object
15904func_lo2o ()
15905{
15906 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15907}
15908
15909# func_xform libobj-or-source
15910func_xform ()
15911{
15912 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15913}
15914
15915# func_arith arithmetic-term...
15916func_arith ()
15917{
15918 func_arith_result=`expr "$@"`
15919}
15920
15921# func_len string
15922# STRING may not start with a hyphen.
15923func_len ()
15924{
15925 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15926}
15927
15928_LT_EOF
15929esac
15930
15931case $lt_shell_append in
15932 yes)
15933 cat << \_LT_EOF >> "$cfgfile"
15934
15935# func_append var value
15936# Append VALUE to the end of shell variable VAR.
15937func_append ()
15938{
15939 eval "$1+=\$2"
15940}
15941_LT_EOF
15942 ;;
15943 *)
15944 cat << \_LT_EOF >> "$cfgfile"
15945
15946# func_append var value
15947# Append VALUE to the end of shell variable VAR.
15948func_append ()
15949{
15950 eval "$1=\$$1\$2"
15951}
15952
15953_LT_EOF
15954 ;;
15955 esac
15956
15957
15958 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15959 || (rm -f "$cfgfile"; exit 1)
15960
15961 mv -f "$cfgfile" "$ofile" ||
15962 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15963 chmod +x "$ofile"
15964
15965 ;;
15966
15967 esac
15968done # for ac_tag
15969
15970
15971{ (exit 0); exit 0; }
15972_ACEOF
15973chmod +x $CONFIG_STATUS
15974ac_clean_files=$ac_clean_files_save
15975
15976
15977# configure is writing to config.log, and then calls config.status.
15978# config.status does its own redirection, appending to config.log.
15979# Unfortunately, on DOS this fails, as config.log is still kept open
15980# by configure, so config.status won't be able to write to it; its
15981# output is simply discarded. So we exec the FD to /dev/null,
15982# effectively closing config.log, so it can be properly (re)opened and
15983# appended to by config.status. When coming back to configure, we
15984# need to make the FD available again.
15985if test "$no_create" != yes; then
15986 ac_cs_success=:
15987 ac_config_status_args=
15988 test "$silent" = yes &&
15989 ac_config_status_args="$ac_config_status_args --quiet"
15990 exec 5>/dev/null
15991 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15992 exec 5>>config.log
15993 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15994 # would make configure fail if this is the last instruction.
15995 $ac_cs_success || { (exit 1); exit 1; }
15996fi
15997