aboutsummaryrefslogtreecommitdiff
path: root/libltdl/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libltdl/configure')
-rwxr-xr-xlibltdl/configure24532
1 files changed, 0 insertions, 24532 deletions
diff --git a/libltdl/configure b/libltdl/configure
deleted file mode 100755
index 7e32fbe0..00000000
--- a/libltdl/configure
+++ /dev/null
@@ -1,24532 +0,0 @@
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60a for libltdl 1.2.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25fi
26BIN_SH=xpg4; export BIN_SH # for Tru64
27DUALCASE=1; export DUALCASE # for MKS sh
28
29
30# PATH needs CR
31# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
51# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
57
58
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
78IFS=$as_save_IFS
79
80 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110 fi
111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
225 /*)
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459}
460
461
462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
477esac
478
479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
509
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
515fi
516
517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539
540# Check that we are running under the correct shell.
541SHELL=${CONFIG_SHELL-/bin/sh}
542
543case X$ECHO in
544X*--fallback-echo)
545 # Remove one level of quotation (which was required for Make).
546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547 ;;
548esac
549
550echo=${ECHO-echo}
551if test "X$1" = X--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
553 shift
554elif test "X$1" = X--fallback-echo; then
555 # Avoid inline document here, it may be left over
556 :
557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $echo works!
559 :
560else
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
563fi
564
565if test "X$1" = X--fallback-echo; then
566 # used as fallback echo
567 shift
568 cat <<EOF
569$*
570EOF
571 exit 0
572fi
573
574# The HP-UX ksh and POSIX shell print the target directory to stdout
575# if CDPATH is set.
576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578if test -z "$ECHO"; then
579if test "X${echo_test_string+set}" != Xset; then
580# find a string as large as possible, as long as the shell can cope with it
581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584 echo_test_string=`eval $cmd` &&
585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586 then
587 break
588 fi
589 done
590fi
591
592if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
595 :
596else
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
600 #
601 # So, first we look for a working echo in the user's PATH.
602
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
605 IFS="$lt_save_ifs"
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 echo="$dir/echo"
611 break
612 fi
613 done
614 IFS="$lt_save_ifs"
615
616 if test "X$echo" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
622 echo='print -r'
623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
629 export CONFIG_SHELL
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631 else
632 # Try using printf.
633 echo='printf %s\n'
634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
637 # Cool, printf works
638 :
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644 export CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
646 export SHELL
647 echo="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 echo="$CONFIG_SHELL $0 --fallback-echo"
653 else
654 # maybe with a smaller string...
655 prev=:
656
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659 then
660 break
661 fi
662 prev="$cmd"
663 done
664
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 else
670 # Oops. We lost completely, so just stick with echo.
671 echo=echo
672 fi
673 fi
674 fi
675 fi
676fi
677fi
678
679# Copy echo and quote the copy suitably for passing to libtool from
680# the Makefile, instead of quoting the original, which is used later.
681ECHO=$echo
682if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684fi
685
686
687
688
689tagnames=${tagnames+${tagnames},}CXX
690
691tagnames=${tagnames+${tagnames},}F77
692
693exec 7<&0 </dev/null 6>&1
694
695# Name of the host.
696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697# so uname gets run too.
698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700#
701# Initializations.
702#
703ac_default_prefix=/usr/local
704ac_clean_files=
705ac_config_libobj_dir=.
706LIBOBJS=
707cross_compiling=no
708subdirs=
709MFLAGS=
710MAKEFLAGS=
711SHELL=${CONFIG_SHELL-/bin/sh}
712
713# Identity of this package.
714PACKAGE_NAME='libltdl'
715PACKAGE_TARNAME='libltdl'
716PACKAGE_VERSION='1.2'
717PACKAGE_STRING='libltdl 1.2'
718PACKAGE_BUGREPORT='bug-libtool@gnu.org'
719
720ac_unique_file="ltdl.c"
721# Factoring default headers for most tests.
722ac_includes_default="\
723#include <stdio.h>
724#ifdef HAVE_SYS_TYPES_H
725# include <sys/types.h>
726#endif
727#ifdef HAVE_SYS_STAT_H
728# include <sys/stat.h>
729#endif
730#ifdef STDC_HEADERS
731# include <stdlib.h>
732# include <stddef.h>
733#else
734# ifdef HAVE_STDLIB_H
735# include <stdlib.h>
736# endif
737#endif
738#ifdef HAVE_STRING_H
739# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
740# include <memory.h>
741# endif
742# include <string.h>
743#endif
744#ifdef HAVE_STRINGS_H
745# include <strings.h>
746#endif
747#ifdef HAVE_INTTYPES_H
748# include <inttypes.h>
749#endif
750#ifdef HAVE_STDINT_H
751# include <stdint.h>
752#endif
753#ifdef HAVE_UNISTD_H
754# include <unistd.h>
755#endif"
756
757ac_subst_vars='SHELL
758PATH_SEPARATOR
759PACKAGE_NAME
760PACKAGE_TARNAME
761PACKAGE_VERSION
762PACKAGE_STRING
763PACKAGE_BUGREPORT
764exec_prefix
765prefix
766program_transform_name
767bindir
768sbindir
769libexecdir
770datarootdir
771datadir
772sysconfdir
773sharedstatedir
774localstatedir
775includedir
776oldincludedir
777docdir
778infodir
779htmldir
780dvidir
781pdfdir
782psdir
783libdir
784localedir
785mandir
786DEFS
787ECHO_C
788ECHO_N
789ECHO_T
790LIBS
791build_alias
792host_alias
793target_alias
794INSTALL_PROGRAM
795INSTALL_SCRIPT
796INSTALL_DATA
797CYGPATH_W
798PACKAGE
799VERSION
800ACLOCAL
801AUTOCONF
802AUTOMAKE
803AUTOHEADER
804MAKEINFO
805AMTAR
806install_sh
807STRIP
808INSTALL_STRIP_PROGRAM
809mkdir_p
810AWK
811SET_MAKE
812am__leading_dot
813MAINTAINER_MODE_TRUE
814MAINTAINER_MODE_FALSE
815MAINT
816CC
817CFLAGS
818LDFLAGS
819CPPFLAGS
820ac_ct_CC
821EXEEXT
822OBJEXT
823DEPDIR
824am__include
825am__quote
826AMDEP_TRUE
827AMDEP_FALSE
828AMDEPBACKSLASH
829CCDEPMODE
830am__fastdepCC_TRUE
831am__fastdepCC_FALSE
832build
833build_cpu
834build_vendor
835build_os
836host
837host_cpu
838host_vendor
839host_os
840GREP
841EGREP
842LN_S
843ECHO
844AR
845RANLIB
846DLLTOOL
847AS
848OBJDUMP
849CPP
850CXX
851CXXFLAGS
852ac_ct_CXX
853CXXDEPMODE
854am__fastdepCXX_TRUE
855am__fastdepCXX_FALSE
856CXXCPP
857F77
858FFLAGS
859ac_ct_F77
860LIBTOOL
861LIBTOOL_DEPS
862INSTALL_LTDL_TRUE
863INSTALL_LTDL_FALSE
864CONVENIENCE_LTDL_TRUE
865CONVENIENCE_LTDL_FALSE
866LIBADD_DL
867LIBOBJS
868LTLIBOBJS'
869ac_subst_files=''
870 ac_precious_vars='build_alias
871host_alias
872target_alias
873CC
874CFLAGS
875LDFLAGS
876CPPFLAGS
877CPP
878CXX
879CXXFLAGS
880CCC
881CXXCPP
882F77
883FFLAGS'
884
885
886# Initialize some variables set by options.
887ac_init_help=
888ac_init_version=false
889# The variables have the same names as the options, with
890# dashes changed to underlines.
891cache_file=/dev/null
892exec_prefix=NONE
893no_create=
894no_recursion=
895prefix=NONE
896program_prefix=NONE
897program_suffix=NONE
898program_transform_name=s,x,x,
899silent=
900site=
901srcdir=
902verbose=
903x_includes=NONE
904x_libraries=NONE
905
906# Installation directory options.
907# These are left unexpanded so users can "make install exec_prefix=/foo"
908# and all the variables that are supposed to be based on exec_prefix
909# by default will actually change.
910# Use braces instead of parens because sh, perl, etc. also accept them.
911# (The list follows the same order as the GNU Coding Standards.)
912bindir='${exec_prefix}/bin'
913sbindir='${exec_prefix}/sbin'
914libexecdir='${exec_prefix}/libexec'
915datarootdir='${prefix}/share'
916datadir='${datarootdir}'
917sysconfdir='${prefix}/etc'
918sharedstatedir='${prefix}/com'
919localstatedir='${prefix}/var'
920includedir='${prefix}/include'
921oldincludedir='/usr/include'
922docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
923infodir='${datarootdir}/info'
924htmldir='${docdir}'
925dvidir='${docdir}'
926pdfdir='${docdir}'
927psdir='${docdir}'
928libdir='${exec_prefix}/lib'
929localedir='${datarootdir}/locale'
930mandir='${datarootdir}/man'
931
932ac_prev=
933ac_dashdash=
934for ac_option
935do
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\$ac_option
939 ac_prev=
940 continue
941 fi
942
943 case $ac_option in
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *) ac_optarg=yes ;;
946 esac
947
948 # Accept the important Cygnus configure options, so we can diagnose typos.
949
950 case $ac_dashdash$ac_option in
951 --)
952 ac_dashdash=yes ;;
953
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 bindir=$ac_optarg ;;
958
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
963
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
970
971 --config-cache | -C)
972 cache_file=config.cache ;;
973
974 -datadir | --datadir | --datadi | --datad)
975 ac_prev=datadir ;;
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
978
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
985
986 -disable-* | --disable-*)
987 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
990 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
991 { (exit 1); exit 1; }; }
992 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
993 eval enable_$ac_feature=no ;;
994
995 -docdir | --docdir | --docdi | --doc | --do)
996 ac_prev=docdir ;;
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 docdir=$ac_optarg ;;
999
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1001 ac_prev=dvidir ;;
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
1004
1005 -enable-* | --enable-*)
1006 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1012 eval enable_$ac_feature=\$ac_optarg ;;
1013
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1022
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1025 with_gas=yes ;;
1026
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1033
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1038
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1044
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1051
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 ac_prev=infodir ;;
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1056
1057 -libdir | --libdir | --libdi | --libd)
1058 ac_prev=libdir ;;
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1061
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1068
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1073
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1080
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 ac_prev=mandir ;;
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1085
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1088 with_fp=no ;;
1089
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1092 no_create=yes ;;
1093
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 no_recursion=yes ;;
1097
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1106
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 ac_prev=prefix ;;
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1111
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1118
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1125
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1142
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1147
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1152
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1155 silent=yes ;;
1156
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 ac_prev=sbindir ;;
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 | --sbi=* | --sb=*)
1161 sbindir=$ac_optarg ;;
1162
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1166 | --sha | --sh)
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 | --sha=* | --sh=*)
1172 sharedstatedir=$ac_optarg ;;
1173
1174 -site | --site | --sit)
1175 ac_prev=site ;;
1176 -site=* | --site=* | --sit=*)
1177 site=$ac_optarg ;;
1178
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 ac_prev=srcdir ;;
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1183
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1190
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1195
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 verbose=yes ;;
1198
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1201
1202 -with-* | --with-*)
1203 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1206 { echo "$as_me: error: invalid package name: $ac_package" >&2
1207 { (exit 1); exit 1; }; }
1208 ac_package=`echo $ac_package| sed 's/-/_/g'`
1209 eval with_$ac_package=\$ac_optarg ;;
1210
1211 -without-* | --without-*)
1212 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1215 { echo "$as_me: error: invalid package name: $ac_package" >&2
1216 { (exit 1); exit 1; }; }
1217 ac_package=`echo $ac_package | sed 's/-/_/g'`
1218 eval with_$ac_package=no ;;
1219
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1223
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1230
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1237
1238 -*) { echo "$as_me: error: unrecognized option: $ac_option
1239Try \`$0 --help' for more information." >&2
1240 { (exit 1); exit 1; }; }
1241 ;;
1242
1243 *=*)
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1247 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1248 { (exit 1); exit 1; }; }
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1251
1252 *)
1253 # FIXME: should be removed in autoconf 3.0.
1254 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1258 ;;
1259
1260 esac
1261done
1262
1263if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 { echo "$as_me: error: missing argument to $ac_option" >&2
1266 { (exit 1); exit 1; }; }
1267fi
1268
1269# Be sure to have absolute directory names.
1270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
1274do
1275 eval ac_val=\$$ac_var
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1281 { (exit 1); exit 1; }; }
1282done
1283
1284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
1286# FIXME: To remove some day.
1287build=$build_alias
1288host=$host_alias
1289target=$target_alias
1290
1291# FIXME: To remove some day.
1292if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
1307
1308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 { echo "$as_me: error: Working directory cannot be determined" >&2
1312 { (exit 1); exit 1; }; }
1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 { echo "$as_me: error: pwd does not report name of working directory" >&2
1315 { (exit 1); exit 1; }; }
1316
1317
1318# Find the source files, if location was not specified.
1319if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$0" ||
1323$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$0" : 'X\(//\)[^/]' \| \
1325 X"$0" : 'X\(//\)$' \| \
1326 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1327echo X"$0" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)$/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\).*/{
1341 s//\1/
1342 q
1343 }
1344 s/.*/./; q'`
1345 srcdir=$ac_confdir
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 srcdir=..
1348 fi
1349else
1350 ac_srcdir_defaulted=no
1351fi
1352if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1355 { (exit 1); exit 1; }; }
1356fi
1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1360 { (exit 1); exit 1; }; }
1361 pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
1372for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377done
1378
1379#
1380# Report the --help message.
1381#
1382if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386\`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1387
1388Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393Defaults for the options are specified in brackets.
1394
1395Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1406Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412By default, \`make install' will install all the files in
1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415for instance \`--prefix=\$HOME'.
1416
1417For better control, use the options below.
1418
1419Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439_ACEOF
1440
1441 cat <<\_ACEOF
1442
1443Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451_ACEOF
1452fi
1453
1454if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of libltdl 1.2:";;
1457 esac
1458 cat <<\_ACEOF
1459
1460Optional Features:
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-maintainer-mode enable make rules and dependencies not useful
1464 (and sometimes confusing) to the casual installer
1465 --disable-dependency-tracking speeds up one-time build
1466 --enable-dependency-tracking do not reject slow dependency extractors
1467 --enable-shared[=PKGS] build shared libraries [default=yes]
1468 --enable-static[=PKGS] build static libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --enable-ltdl-install install libltdl
1473
1474Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-pic try to use only PIC/non-PIC objects [default=use
1479 both]
1480 --with-tags[=TAGS] include additional configurations [automatic]
1481
1482Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 CPP C preprocessor
1490 CXX C++ compiler command
1491 CXXFLAGS C++ compiler flags
1492 CXXCPP C++ preprocessor
1493 F77 Fortran 77 compiler command
1494 FFLAGS Fortran 77 compiler flags
1495
1496Use these variables to override the choices made by `configure' or to help
1497it to find libraries and programs with nonstandard names/locations.
1498
1499Report bugs to <bug-libtool@gnu.org>.
1500_ACEOF
1501ac_status=$?
1502fi
1503
1504if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" || continue
1508 ac_builddir=.
1509
1510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
1513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
1525
1526case $srcdir in
1527 .) # We are building in place.
1528 ac_srcdir=.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539esac
1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1550 else
1551 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1554 done
1555fi
1556
1557test -n "$ac_init_help" && exit $ac_status
1558if $ac_init_version; then
1559 cat <<\_ACEOF
1560libltdl configure 1.2
1561generated by GNU Autoconf 2.60a
1562
1563Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15642002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1565This configure script is free software; the Free Software Foundation
1566gives unlimited permission to copy, distribute and modify it.
1567_ACEOF
1568 exit
1569fi
1570cat >config.log <<_ACEOF
1571This file contains any messages produced by compilers while
1572running configure, to aid debugging if configure makes a mistake.
1573
1574It was created by libltdl $as_me 1.2, which was
1575generated by GNU Autoconf 2.60a. Invocation command line was
1576
1577 $ $0 $@
1578
1579_ACEOF
1580exec 5>>config.log
1581{
1582cat <<_ASUNAME
1583## --------- ##
1584## Platform. ##
1585## --------- ##
1586
1587hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1595
1596/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1600/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1603
1604_ASUNAME
1605
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 echo "PATH: $as_dir"
1612done
1613IFS=$as_save_IFS
1614
1615} >&5
1616
1617cat >&5 <<_ACEOF
1618
1619
1620## ----------- ##
1621## Core tests. ##
1622## ----------- ##
1623
1624_ACEOF
1625
1626
1627# Keep a trace of the command line.
1628# Strip out --no-create and --no-recursion so they do not pile up.
1629# Strip out --silent because we don't want to record it for future runs.
1630# Also quote any args containing shell meta-characters.
1631# Make two passes to allow for proper duplicate-argument suppression.
1632ac_configure_args=
1633ac_configure_args0=
1634ac_configure_args1=
1635ac_must_keep_next=false
1636for ac_pass in 1 2
1637do
1638 for ac_arg
1639 do
1640 case $ac_arg in
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1644 continue ;;
1645 *\'*)
1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 esac
1648 case $ac_pass in
1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1650 2)
1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652 if test $ac_must_keep_next = true; then
1653 ac_must_keep_next=false # Got value, back to normal.
1654 else
1655 case $ac_arg in
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 esac
1663 ;;
1664 -* ) ac_must_keep_next=true ;;
1665 esac
1666 fi
1667 ac_configure_args="$ac_configure_args '$ac_arg'"
1668 ;;
1669 esac
1670 done
1671done
1672$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1674
1675# When interrupted or exit'd, cleanup temporary files, and complete
1676# config.log. We remove comments because anyway the quotes in there
1677# would cause problems or look ugly.
1678# WARNING: Use '\'' to represent an apostrophe within the trap.
1679# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680trap 'exit_status=$?
1681 # Save into config.log some information that might help in debugging.
1682 {
1683 echo
1684
1685 cat <<\_ASBOX
1686## ---------------- ##
1687## Cache variables. ##
1688## ---------------- ##
1689_ASBOX
1690 echo
1691 # The following way of writing the cache mishandles newlines in values,
1692(
1693 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694 eval ac_val=\$$ac_var
1695 case $ac_val in #(
1696 *${as_nl}*)
1697 case $ac_var in #(
1698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 esac
1701 case $ac_var in #(
1702 _ | IFS | as_nl) ;; #(
1703 *) $as_unset $ac_var ;;
1704 esac ;;
1705 esac
1706 done
1707 (set) 2>&1 |
1708 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709 *${as_nl}ac_space=\ *)
1710 sed -n \
1711 "s/'\''/'\''\\\\'\'''\''/g;
1712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 ;; #(
1714 *)
1715 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716 ;;
1717 esac |
1718 sort
1719)
1720 echo
1721
1722 cat <<\_ASBOX
1723## ----------------- ##
1724## Output variables. ##
1725## ----------------- ##
1726_ASBOX
1727 echo
1728 for ac_var in $ac_subst_vars
1729 do
1730 eval ac_val=\$$ac_var
1731 case $ac_val in
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733 esac
1734 echo "$ac_var='\''$ac_val'\''"
1735 done | sort
1736 echo
1737
1738 if test -n "$ac_subst_files"; then
1739 cat <<\_ASBOX
1740## ------------------- ##
1741## File substitutions. ##
1742## ------------------- ##
1743_ASBOX
1744 echo
1745 for ac_var in $ac_subst_files
1746 do
1747 eval ac_val=\$$ac_var
1748 case $ac_val in
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 esac
1751 echo "$ac_var='\''$ac_val'\''"
1752 done | sort
1753 echo
1754 fi
1755
1756 if test -s confdefs.h; then
1757 cat <<\_ASBOX
1758## ----------- ##
1759## confdefs.h. ##
1760## ----------- ##
1761_ASBOX
1762 echo
1763 cat confdefs.h
1764 echo
1765 fi
1766 test "$ac_signal" != 0 &&
1767 echo "$as_me: caught signal $ac_signal"
1768 echo "$as_me: exit $exit_status"
1769 } >&5
1770 rm -f core *.core core.conftest.* &&
1771 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 exit $exit_status
1773' 0
1774for ac_signal in 1 2 13 15; do
1775 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776done
1777ac_signal=0
1778
1779# confdefs.h avoids OS command line length limits that DEFS can exceed.
1780rm -f -r conftest* confdefs.h
1781
1782# Predefined preprocessor variables.
1783
1784cat >>confdefs.h <<_ACEOF
1785#define PACKAGE_NAME "$PACKAGE_NAME"
1786_ACEOF
1787
1788
1789cat >>confdefs.h <<_ACEOF
1790#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791_ACEOF
1792
1793
1794cat >>confdefs.h <<_ACEOF
1795#define PACKAGE_VERSION "$PACKAGE_VERSION"
1796_ACEOF
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_STRING "$PACKAGE_STRING"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806_ACEOF
1807
1808
1809# Let the site file select an alternate cache file if it wants to.
1810# Prefer explicitly selected file to automatically selected ones.
1811if test -n "$CONFIG_SITE"; then
1812 set x "$CONFIG_SITE"
1813elif test "x$prefix" != xNONE; then
1814 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1815else
1816 set x "$ac_default_prefix/share/config.site" \
1817 "$ac_default_prefix/etc/config.site"
1818fi
1819shift
1820for ac_site_file
1821do
1822 if test -r "$ac_site_file"; then
1823 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824echo "$as_me: loading site script $ac_site_file" >&6;}
1825 sed 's/^/| /' "$ac_site_file" >&5
1826 . "$ac_site_file"
1827 fi
1828done
1829
1830if test -r "$cache_file"; then
1831 # Some versions of bash will fail to source /dev/null (special
1832 # files actually), so we avoid doing that.
1833 if test -f "$cache_file"; then
1834 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835echo "$as_me: loading cache $cache_file" >&6;}
1836 case $cache_file in
1837 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838 *) . "./$cache_file";;
1839 esac
1840 fi
1841else
1842 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843echo "$as_me: creating cache $cache_file" >&6;}
1844 >$cache_file
1845fi
1846
1847# Check that the precious variables saved in the cache have kept the same
1848# value.
1849ac_cache_corrupted=false
1850for ac_var in $ac_precious_vars; do
1851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852 eval ac_new_set=\$ac_env_${ac_var}_set
1853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854 eval ac_new_val=\$ac_env_${ac_var}_value
1855 case $ac_old_set,$ac_new_set in
1856 set,)
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859 ac_cache_corrupted=: ;;
1860 ,set)
1861 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863 ac_cache_corrupted=: ;;
1864 ,);;
1865 *)
1866 if test "x$ac_old_val" != "x$ac_new_val"; then
1867 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1870echo "$as_me: former value: $ac_old_val" >&2;}
1871 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1872echo "$as_me: current value: $ac_new_val" >&2;}
1873 ac_cache_corrupted=:
1874 fi;;
1875 esac
1876 # Pass precious variables to config.status.
1877 if test "$ac_new_set" = set; then
1878 case $ac_new_val in
1879 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 *) ac_arg=$ac_var=$ac_new_val ;;
1881 esac
1882 case " $ac_configure_args " in
1883 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1884 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885 esac
1886 fi
1887done
1888if $ac_cache_corrupted; then
1889 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893 { (exit 1); exit 1; }; }
1894fi
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920ac_ext=c
1921ac_cpp='$CPP $CPPFLAGS'
1922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925
1926
1927
1928
1929
1930## ------------------------------- ##
1931## Libltdl specific configuration. ##
1932## ------------------------------- ##
1933
1934ac_aux_dir=
1935for ac_dir in . "$srcdir"/.; do
1936 if test -f "$ac_dir/install-sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install-sh -c"
1939 break
1940 elif test -f "$ac_dir/install.sh"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/install.sh -c"
1943 break
1944 elif test -f "$ac_dir/shtool"; then
1945 ac_aux_dir=$ac_dir
1946 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 break
1948 fi
1949done
1950if test -z "$ac_aux_dir"; then
1951 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1952echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1953 { (exit 1); exit 1; }; }
1954fi
1955
1956# These three variables are undocumented and unsupported,
1957# and are intended to be withdrawn in a future Autoconf release.
1958# They can cause serious problems if a builder's source tree is in a directory
1959# whose full name contains unusual characters.
1960ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1961ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1962ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963
1964
1965
1966if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1967 if test -f ${srcdir}/ltmain.sh; then
1968 # if libltdl is libtoolized, it is assumed to be stand-alone and
1969 # installed unless the command line overrides it (tested above)
1970 enable_ltdl_install=yes
1971 else
1972 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1973echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1974 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1975echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1976 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1977echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1978 { (exit 1); exit 1; }; }
1979 fi
1980fi
1981
1982
1983## ------------------------ ##
1984## Automake Initialisation. ##
1985## ------------------------ ##
1986am__api_version="1.8"
1987# Find a good install program. We prefer a C program (faster),
1988# so one script is as good as another. But avoid the broken or
1989# incompatible versions:
1990# SysV /etc/install, /usr/sbin/install
1991# SunOS /usr/etc/install
1992# IRIX /sbin/install
1993# AIX /bin/install
1994# AmigaOS /C/install, which installs bootblocks on floppy discs
1995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1998# OS/2's system install, which has a completely different semantic
1999# ./install, which can be erroneously created by make from ./install.sh.
2000{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2001echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2002if test -z "$INSTALL"; then
2003if test "${ac_cv_path_install+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 # Account for people who put trailing slashes in PATH elements.
2012case $as_dir/ in
2013 ./ | .// | /cC/* | \
2014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2016 /usr/ucb/* ) ;;
2017 *)
2018 # OSF1 and SCO ODT 3.0 have their own names for install.
2019 # Don't use installbsd from OSF since it installs stuff as root
2020 # by default.
2021 for ac_prog in ginstall scoinst install; do
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2024 if test $ac_prog = install &&
2025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2026 # AIX install. It has an incompatible calling convention.
2027 :
2028 elif test $ac_prog = install &&
2029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2030 # program-specific install script used by HP pwplus--don't use.
2031 :
2032 else
2033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2034 break 3
2035 fi
2036 fi
2037 done
2038 done
2039 ;;
2040esac
2041done
2042IFS=$as_save_IFS
2043
2044
2045fi
2046 if test "${ac_cv_path_install+set}" = set; then
2047 INSTALL=$ac_cv_path_install
2048 else
2049 # As a last resort, use the slow shell script. Don't cache a
2050 # value for INSTALL within a source directory, because that will
2051 # break other packages using the cache if that directory is
2052 # removed, or if the value is a relative name.
2053 INSTALL=$ac_install_sh
2054 fi
2055fi
2056{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2057echo "${ECHO_T}$INSTALL" >&6; }
2058
2059# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2060# It thinks the first close brace ends the variable substitution.
2061test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2062
2063test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2064
2065test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2066
2067{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2068echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2069# Just in case
2070sleep 1
2071echo timestamp > conftest.file
2072# Do `set' in a subshell so we don't clobber the current shell's
2073# arguments. Must try -L first in case configure is actually a
2074# symlink; some systems play weird games with the mod time of symlinks
2075# (eg FreeBSD returns the mod time of the symlink's containing
2076# directory).
2077if (
2078 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2079 if test "$*" = "X"; then
2080 # -L didn't work.
2081 set X `ls -t $srcdir/configure conftest.file`
2082 fi
2083 rm -f conftest.file
2084 if test "$*" != "X $srcdir/configure conftest.file" \
2085 && test "$*" != "X conftest.file $srcdir/configure"; then
2086
2087 # If neither matched, then we have a broken ls. This can happen
2088 # if, for instance, CONFIG_SHELL is bash and it inherits a
2089 # broken ls alias from the environment. This has actually
2090 # happened. Such a system could not be considered "sane".
2091 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2092alias in your environment" >&5
2093echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2094alias in your environment" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097
2098 test "$2" = conftest.file
2099 )
2100then
2101 # Ok.
2102 :
2103else
2104 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2105Check your system clock" >&5
2106echo "$as_me: error: newly created file is older than distributed files!
2107Check your system clock" >&2;}
2108 { (exit 1); exit 1; }; }
2109fi
2110{ echo "$as_me:$LINENO: result: yes" >&5
2111echo "${ECHO_T}yes" >&6; }
2112test "$program_prefix" != NONE &&
2113 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2114# Use a double $ so make ignores it.
2115test "$program_suffix" != NONE &&
2116 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2117# Double any \ or $. echo might interpret backslashes.
2118# By default was `s,x,x', remove it if useless.
2119cat <<\_ACEOF >conftest.sed
2120s/[\\$]/&&/g;s/;s,x,x,$//
2121_ACEOF
2122program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2123rm -f conftest.sed
2124
2125# expand $ac_aux_dir to an absolute path
2126am_aux_dir=`cd $ac_aux_dir && pwd`
2127
2128test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2129# Use eval to expand $SHELL
2130if eval "$MISSING --run true"; then
2131 am_missing_run="$MISSING --run "
2132else
2133 am_missing_run=
2134 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2135echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2136fi
2137
2138if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2139 # Keeping the `.' argument allows $(mkdir_p) to be used without
2140 # argument. Indeed, we sometimes output rules like
2141 # $(mkdir_p) $(somedir)
2142 # where $(somedir) is conditionally defined.
2143 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2144 # expensive solution, as it forces Make to start a sub-shell.)
2145 mkdir_p='mkdir -p -- .'
2146else
2147 # On NextStep and OpenStep, the `mkdir' command does not
2148 # recognize any option. It will interpret all options as
2149 # directories to create, and then abort because `.' already
2150 # exists.
2151 for d in ./-p ./--version;
2152 do
2153 test -d $d && rmdir $d
2154 done
2155 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2156 if test -f "$ac_aux_dir/mkinstalldirs"; then
2157 mkdir_p='$(mkinstalldirs)'
2158 else
2159 mkdir_p='$(install_sh) -d'
2160 fi
2161fi
2162
2163for ac_prog in gawk mawk nawk awk
2164do
2165 # Extract the first word of "$ac_prog", so it can be a program name with args.
2166set dummy $ac_prog; ac_word=$2
2167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169if test "${ac_cv_prog_AWK+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171else
2172 if test -n "$AWK"; then
2173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2174else
2175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176for as_dir in $PATH
2177do
2178 IFS=$as_save_IFS
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 ac_cv_prog_AWK="$ac_prog"
2183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184 break 2
2185 fi
2186done
2187done
2188IFS=$as_save_IFS
2189
2190fi
2191fi
2192AWK=$ac_cv_prog_AWK
2193if test -n "$AWK"; then
2194 { echo "$as_me:$LINENO: result: $AWK" >&5
2195echo "${ECHO_T}$AWK" >&6; }
2196else
2197 { echo "$as_me:$LINENO: result: no" >&5
2198echo "${ECHO_T}no" >&6; }
2199fi
2200
2201
2202 test -n "$AWK" && break
2203done
2204
2205{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2206echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2207set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2208if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210else
2211 cat >conftest.make <<\_ACEOF
2212SHELL = /bin/sh
2213all:
2214 @echo '@@@%%%=$(MAKE)=@@@%%%'
2215_ACEOF
2216# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2217case `${MAKE-make} -f conftest.make 2>/dev/null` in
2218 *@@@%%%=?*=@@@%%%*)
2219 eval ac_cv_prog_make_${ac_make}_set=yes;;
2220 *)
2221 eval ac_cv_prog_make_${ac_make}_set=no;;
2222esac
2223rm -f conftest.make
2224fi
2225if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2226 { echo "$as_me:$LINENO: result: yes" >&5
2227echo "${ECHO_T}yes" >&6; }
2228 SET_MAKE=
2229else
2230 { echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6; }
2232 SET_MAKE="MAKE=${MAKE-make}"
2233fi
2234
2235rm -rf .tst 2>/dev/null
2236mkdir .tst 2>/dev/null
2237if test -d .tst; then
2238 am__leading_dot=.
2239else
2240 am__leading_dot=_
2241fi
2242rmdir .tst 2>/dev/null
2243
2244# test to see if srcdir already configured
2245if test "`cd $srcdir && pwd`" != "`pwd`" &&
2246 test -f $srcdir/config.status; then
2247 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2248echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2249 { (exit 1); exit 1; }; }
2250fi
2251
2252# test whether we have cygpath
2253if test -z "$CYGPATH_W"; then
2254 if (cygpath --version) >/dev/null 2>/dev/null; then
2255 CYGPATH_W='cygpath -w'
2256 else
2257 CYGPATH_W=echo
2258 fi
2259fi
2260
2261
2262# Define the identity of the package.
2263 PACKAGE=libltdl
2264 VERSION=1.2
2265
2266
2267# Some tools Automake needs.
2268
2269ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2270
2271
2272AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2273
2274
2275AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2276
2277
2278AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2279
2280
2281MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2282
2283
2284AMTAR=${AMTAR-"${am_missing_run}tar"}
2285
2286install_sh=${install_sh-"$am_aux_dir/install-sh"}
2287
2288# Installed binaries are usually stripped using `strip' when the user
2289# run `make install-strip'. However `strip' might not be the right
2290# tool to use in cross-compilation environments, therefore Automake
2291# will honor the `STRIP' environment variable to overrule this program.
2292if test "$cross_compiling" != no; then
2293 if test -n "$ac_tool_prefix"; then
2294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2295set dummy ${ac_tool_prefix}strip; ac_word=$2
2296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2298if test "${ac_cv_prog_STRIP+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301 if test -n "$STRIP"; then
2302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2303else
2304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305for as_dir in $PATH
2306do
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 break 2
2314 fi
2315done
2316done
2317IFS=$as_save_IFS
2318
2319fi
2320fi
2321STRIP=$ac_cv_prog_STRIP
2322if test -n "$STRIP"; then
2323 { echo "$as_me:$LINENO: result: $STRIP" >&5
2324echo "${ECHO_T}$STRIP" >&6; }
2325else
2326 { echo "$as_me:$LINENO: result: no" >&5
2327echo "${ECHO_T}no" >&6; }
2328fi
2329
2330
2331fi
2332if test -z "$ac_cv_prog_STRIP"; then
2333 ac_ct_STRIP=$STRIP
2334 # Extract the first word of "strip", so it can be a program name with args.
2335set dummy strip; ac_word=$2
2336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2338if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341 if test -n "$ac_ct_STRIP"; then
2342 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2343else
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 ac_cv_prog_ac_ct_STRIP="strip"
2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2354 fi
2355done
2356done
2357IFS=$as_save_IFS
2358
2359fi
2360fi
2361ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2362if test -n "$ac_ct_STRIP"; then
2363 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2364echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2365else
2366 { echo "$as_me:$LINENO: result: no" >&5
2367echo "${ECHO_T}no" >&6; }
2368fi
2369
2370 if test "x$ac_ct_STRIP" = x; then
2371 STRIP=":"
2372 else
2373 case $cross_compiling:$ac_tool_warned in
2374yes:)
2375{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2376whose name does not start with the host triplet. If you think this
2377configuration is useful to you, please write to autoconf@gnu.org." >&5
2378echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2379whose name does not start with the host triplet. If you think this
2380configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2381ac_tool_warned=yes ;;
2382esac
2383 STRIP=$ac_ct_STRIP
2384 fi
2385else
2386 STRIP="$ac_cv_prog_STRIP"
2387fi
2388
2389fi
2390INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2391
2392# We need awk for the "check" target. The system "awk" is bad on
2393# some platforms.
2394
2395
2396
2397ac_config_headers="$ac_config_headers config.h:config-h.in"
2398
2399{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2400echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2401 # Check whether --enable-maintainer-mode was given.
2402if test "${enable_maintainer_mode+set}" = set; then
2403 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2404else
2405 USE_MAINTAINER_MODE=no
2406fi
2407
2408 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2409echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2410
2411
2412if test $USE_MAINTAINER_MODE = yes; then
2413 MAINTAINER_MODE_TRUE=
2414 MAINTAINER_MODE_FALSE='#'
2415else
2416 MAINTAINER_MODE_TRUE='#'
2417 MAINTAINER_MODE_FALSE=
2418fi
2419
2420 MAINT=$MAINTAINER_MODE_TRUE
2421
2422
2423
2424
2425## ------------------ ##
2426## C compiler checks. ##
2427## ------------------ ##
2428ac_ext=c
2429ac_cpp='$CPP $CPPFLAGS'
2430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2435set dummy ${ac_tool_prefix}gcc; ac_word=$2
2436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2438if test "${ac_cv_prog_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440else
2441 if test -n "$CC"; then
2442 ac_cv_prog_CC="$CC" # Let the user override the test.
2443else
2444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445for as_dir in $PATH
2446do
2447 IFS=$as_save_IFS
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 break 2
2454 fi
2455done
2456done
2457IFS=$as_save_IFS
2458
2459fi
2460fi
2461CC=$ac_cv_prog_CC
2462if test -n "$CC"; then
2463 { echo "$as_me:$LINENO: result: $CC" >&5
2464echo "${ECHO_T}$CC" >&6; }
2465else
2466 { echo "$as_me:$LINENO: result: no" >&5
2467echo "${ECHO_T}no" >&6; }
2468fi
2469
2470
2471fi
2472if test -z "$ac_cv_prog_CC"; then
2473 ac_ct_CC=$CC
2474 # Extract the first word of "gcc", so it can be a program name with args.
2475set dummy gcc; ac_word=$2
2476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481 if test -n "$ac_ct_CC"; then
2482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2483else
2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_prog_ac_ct_CC="gcc"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495done
2496done
2497IFS=$as_save_IFS
2498
2499fi
2500fi
2501ac_ct_CC=$ac_cv_prog_ac_ct_CC
2502if test -n "$ac_ct_CC"; then
2503 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2504echo "${ECHO_T}$ac_ct_CC" >&6; }
2505else
2506 { echo "$as_me:$LINENO: result: no" >&5
2507echo "${ECHO_T}no" >&6; }
2508fi
2509
2510 if test "x$ac_ct_CC" = x; then
2511 CC=""
2512 else
2513 case $cross_compiling:$ac_tool_warned in
2514yes:)
2515{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2516whose name does not start with the host triplet. If you think this
2517configuration is useful to you, please write to autoconf@gnu.org." >&5
2518echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2519whose name does not start with the host triplet. If you think this
2520configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2521ac_tool_warned=yes ;;
2522esac
2523 CC=$ac_ct_CC
2524 fi
2525else
2526 CC="$ac_cv_prog_CC"
2527fi
2528
2529if test -z "$CC"; then
2530 if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2532set dummy ${ac_tool_prefix}cc; ac_word=$2
2533{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2535if test "${ac_cv_prog_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540else
2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542for as_dir in $PATH
2543do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_CC="${ac_tool_prefix}cc"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2551 fi
2552done
2553done
2554IFS=$as_save_IFS
2555
2556fi
2557fi
2558CC=$ac_cv_prog_CC
2559if test -n "$CC"; then
2560 { echo "$as_me:$LINENO: result: $CC" >&5
2561echo "${ECHO_T}$CC" >&6; }
2562else
2563 { echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6; }
2565fi
2566
2567
2568 fi
2569fi
2570if test -z "$CC"; then
2571 # Extract the first word of "cc", so it can be a program name with args.
2572set dummy cc; ac_word=$2
2573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575if test "${ac_cv_prog_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577else
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2580else
2581 ac_prog_rejected=no
2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2590 ac_prog_rejected=yes
2591 continue
2592 fi
2593 ac_cv_prog_CC="cc"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2596 fi
2597done
2598done
2599IFS=$as_save_IFS
2600
2601if test $ac_prog_rejected = yes; then
2602 # We found a bogon in the path, so make sure we never use it.
2603 set dummy $ac_cv_prog_CC
2604 shift
2605 if test $# != 0; then
2606 # We chose a different compiler from the bogus one.
2607 # However, it has the same basename, so the bogon will be chosen
2608 # first if we set CC to just the basename; use the full file name.
2609 shift
2610 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2611 fi
2612fi
2613fi
2614fi
2615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
2617 { echo "$as_me:$LINENO: result: $CC" >&5
2618echo "${ECHO_T}$CC" >&6; }
2619else
2620 { echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6; }
2622fi
2623
2624
2625fi
2626if test -z "$CC"; then
2627 if test -n "$ac_tool_prefix"; then
2628 for ac_prog in cl.exe
2629 do
2630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2631set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634if test "${ac_cv_prog_CC+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651done
2652done
2653IFS=$as_save_IFS
2654
2655fi
2656fi
2657CC=$ac_cv_prog_CC
2658if test -n "$CC"; then
2659 { echo "$as_me:$LINENO: result: $CC" >&5
2660echo "${ECHO_T}$CC" >&6; }
2661else
2662 { echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6; }
2664fi
2665
2666
2667 test -n "$CC" && break
2668 done
2669fi
2670if test -z "$CC"; then
2671 ac_ct_CC=$CC
2672 for ac_prog in cl.exe
2673do
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675set dummy $ac_prog; ac_word=$2
2676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2678if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681 if test -n "$ac_ct_CC"; then
2682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2691 ac_cv_prog_ac_ct_CC="$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701ac_ct_CC=$ac_cv_prog_ac_ct_CC
2702if test -n "$ac_ct_CC"; then
2703 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2704echo "${ECHO_T}$ac_ct_CC" >&6; }
2705else
2706 { echo "$as_me:$LINENO: result: no" >&5
2707echo "${ECHO_T}no" >&6; }
2708fi
2709
2710
2711 test -n "$ac_ct_CC" && break
2712done
2713
2714 if test "x$ac_ct_CC" = x; then
2715 CC=""
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718yes:)
2719{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2720whose name does not start with the host triplet. If you think this
2721configuration is useful to you, please write to autoconf@gnu.org." >&5
2722echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2723whose name does not start with the host triplet. If you think this
2724configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2725ac_tool_warned=yes ;;
2726esac
2727 CC=$ac_ct_CC
2728 fi
2729fi
2730
2731fi
2732
2733
2734test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2735See \`config.log' for more details." >&5
2736echo "$as_me: error: no acceptable C compiler found in \$PATH
2737See \`config.log' for more details." >&2;}
2738 { (exit 1); exit 1; }; }
2739
2740# Provide some information about the compiler.
2741echo "$as_me:$LINENO: checking for C compiler version" >&5
2742ac_compiler=`set X $ac_compile; echo $2`
2743{ (ac_try="$ac_compiler --version >&5"
2744case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747esac
2748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compiler --version >&5") 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }
2753{ (ac_try="$ac_compiler -v >&5"
2754case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757esac
2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compiler -v >&5") 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }
2763{ (ac_try="$ac_compiler -V >&5"
2764case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767esac
2768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769 (eval "$ac_compiler -V >&5") 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }
2773
2774cat >conftest.$ac_ext <<_ACEOF
2775/* confdefs.h. */
2776_ACEOF
2777cat confdefs.h >>conftest.$ac_ext
2778cat >>conftest.$ac_ext <<_ACEOF
2779/* end confdefs.h. */
2780
2781int
2782main ()
2783{
2784
2785 ;
2786 return 0;
2787}
2788_ACEOF
2789ac_clean_files_save=$ac_clean_files
2790ac_clean_files="$ac_clean_files a.out a.exe b.out"
2791# Try to create an executable without -o first, disregard a.out.
2792# It will help us diagnose broken compilers, and finding out an intuition
2793# of exeext.
2794{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2795echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2796ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2797#
2798# List of possible output files, starting from the most likely.
2799# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2800# only as a last resort. b.out is created by i960 compilers.
2801ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2802#
2803# The IRIX 6 linker writes into existing files which may not be
2804# executable, retaining their permissions. Remove them first so a
2805# subsequent execution test works.
2806ac_rmfiles=
2807for ac_file in $ac_files
2808do
2809 case $ac_file in
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2811 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2812 esac
2813done
2814rm -f $ac_rmfiles
2815
2816if { (ac_try="$ac_link_default"
2817case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820esac
2821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_link_default") 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; then
2826 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2827# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2828# in a Makefile. We should not override ac_cv_exeext if it was cached,
2829# so that the user can short-circuit this test for compilers unknown to
2830# Autoconf.
2831for ac_file in $ac_files ''
2832do
2833 test -f "$ac_file" || continue
2834 case $ac_file in
2835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2836 ;;
2837 [ab].out )
2838 # We found the default executable, but exeext='' is most
2839 # certainly right.
2840 break;;
2841 *.* )
2842 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2843 then :; else
2844 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2845 fi
2846 # We set ac_cv_exeext here because the later test for it is not
2847 # safe: cross compilers may not add the suffix if given an `-o'
2848 # argument, so we may need to know it at that point already.
2849 # Even if this section looks crufty: it has the advantage of
2850 # actually working.
2851 break;;
2852 * )
2853 break;;
2854 esac
2855done
2856test "$ac_cv_exeext" = no && ac_cv_exeext=
2857
2858else
2859 ac_file=''
2860fi
2861
2862{ echo "$as_me:$LINENO: result: $ac_file" >&5
2863echo "${ECHO_T}$ac_file" >&6; }
2864if test -z "$ac_file"; then
2865 echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2869See \`config.log' for more details." >&5
2870echo "$as_me: error: C compiler cannot create executables
2871See \`config.log' for more details." >&2;}
2872 { (exit 77); exit 77; }; }
2873fi
2874
2875ac_exeext=$ac_cv_exeext
2876
2877# Check that the compiler produces executables we can run. If not, either
2878# the compiler is broken, or we cross compile.
2879{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2880echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2881# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2882# If not cross compiling, check that we can run a simple program.
2883if test "$cross_compiling" != yes; then
2884 if { ac_try='./$ac_file'
2885 { (case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_try") 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2894 cross_compiling=no
2895 else
2896 if test "$cross_compiling" = maybe; then
2897 cross_compiling=yes
2898 else
2899 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2900If you meant to cross compile, use \`--host'.
2901See \`config.log' for more details." >&5
2902echo "$as_me: error: cannot run C compiled programs.
2903If you meant to cross compile, use \`--host'.
2904See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2906 fi
2907 fi
2908fi
2909{ echo "$as_me:$LINENO: result: yes" >&5
2910echo "${ECHO_T}yes" >&6; }
2911
2912rm -f a.out a.exe conftest$ac_cv_exeext b.out
2913ac_clean_files=$ac_clean_files_save
2914# Check that the compiler produces executables we can run. If not, either
2915# the compiler is broken, or we cross compile.
2916{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2917echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2918{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2919echo "${ECHO_T}$cross_compiling" >&6; }
2920
2921{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2922echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2923if { (ac_try="$ac_link"
2924case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927esac
2928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_link") 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; then
2933 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2934# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2935# work properly (i.e., refer to `conftest.exe'), while it won't with
2936# `rm'.
2937for ac_file in conftest.exe conftest conftest.*; do
2938 test -f "$ac_file" || continue
2939 case $ac_file in
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2941 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 break;;
2943 * ) break;;
2944 esac
2945done
2946else
2947 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2948See \`config.log' for more details." >&5
2949echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2950See \`config.log' for more details." >&2;}
2951 { (exit 1); exit 1; }; }
2952fi
2953
2954rm -f conftest$ac_cv_exeext
2955{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2956echo "${ECHO_T}$ac_cv_exeext" >&6; }
2957
2958rm -f conftest.$ac_ext
2959EXEEXT=$ac_cv_exeext
2960ac_exeext=$EXEEXT
2961{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2962echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2963if test "${ac_cv_objext+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966 cat >conftest.$ac_ext <<_ACEOF
2967/* confdefs.h. */
2968_ACEOF
2969cat confdefs.h >>conftest.$ac_ext
2970cat >>conftest.$ac_ext <<_ACEOF
2971/* end confdefs.h. */
2972
2973int
2974main ()
2975{
2976
2977 ;
2978 return 0;
2979}
2980_ACEOF
2981rm -f conftest.o conftest.obj
2982if { (ac_try="$ac_compile"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_compile") 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
2992 for ac_file in conftest.o conftest.obj conftest.*; do
2993 test -f "$ac_file" || continue;
2994 case $ac_file in
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2997 break;;
2998 esac
2999done
3000else
3001 echo "$as_me: failed program was:" >&5
3002sed 's/^/| /' conftest.$ac_ext >&5
3003
3004{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3005See \`config.log' for more details." >&5
3006echo "$as_me: error: cannot compute suffix of object files: cannot compile
3007See \`config.log' for more details." >&2;}
3008 { (exit 1); exit 1; }; }
3009fi
3010
3011rm -f conftest.$ac_cv_objext conftest.$ac_ext
3012fi
3013{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3014echo "${ECHO_T}$ac_cv_objext" >&6; }
3015OBJEXT=$ac_cv_objext
3016ac_objext=$OBJEXT
3017{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3018echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3019if test "${ac_cv_c_compiler_gnu+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021else
3022 cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
3028
3029int
3030main ()
3031{
3032#ifndef __GNUC__
3033 choke me
3034#endif
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040rm -f conftest.$ac_objext
3041if { (ac_try="$ac_compile"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
3048 ac_status=$?
3049 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -f conftest.er1
3051 cat conftest.err >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; } &&
3064 { ac_try='test -s conftest.$ac_objext'
3065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
3074 ac_compiler_gnu=yes
3075else
3076 echo "$as_me: failed program was:" >&5
3077sed 's/^/| /' conftest.$ac_ext >&5
3078
3079 ac_compiler_gnu=no
3080fi
3081
3082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083ac_cv_c_compiler_gnu=$ac_compiler_gnu
3084
3085fi
3086{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3087echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3088GCC=`test $ac_compiler_gnu = yes && echo yes`
3089ac_test_CFLAGS=${CFLAGS+set}
3090ac_save_CFLAGS=$CFLAGS
3091{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3092echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3093if test "${ac_cv_prog_cc_g+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095else
3096 ac_save_c_werror_flag=$ac_c_werror_flag
3097 ac_c_werror_flag=yes
3098 ac_cv_prog_cc_g=no
3099 CFLAGS="-g"
3100 cat >conftest.$ac_ext <<_ACEOF
3101/* confdefs.h. */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
3105/* end confdefs.h. */
3106
3107int
3108main ()
3109{
3110
3111 ;
3112 return 0;
3113}
3114_ACEOF
3115rm -f conftest.$ac_objext
3116if { (ac_try="$ac_compile"
3117case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
3121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compile") 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3130 { (case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_try") 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_prog_cc_g=yes
3150else
3151 echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 CFLAGS=""
3155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165
3166 ;
3167 return 0;
3168}
3169_ACEOF
3170rm -f conftest.$ac_objext
3171if { (ac_try="$ac_compile"
3172case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } &&
3184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3185 { (case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_try") 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 :
3205else
3206 echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3210 CFLAGS="-g"
3211 cat >conftest.$ac_ext <<_ACEOF
3212/* confdefs.h. */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h. */
3217
3218int
3219main ()
3220{
3221
3222 ;
3223 return 0;
3224}
3225_ACEOF
3226rm -f conftest.$ac_objext
3227if { (ac_try="$ac_compile"
3228case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3241 { (case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_try") 2>&5
3247 ac_status=$?
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_try") 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_prog_cc_g=yes
3261else
3262 echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265
3266fi
3267
3268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269fi
3270
3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272fi
3273
3274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3276fi
3277{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3279if test "$ac_test_CFLAGS" = set; then
3280 CFLAGS=$ac_save_CFLAGS
3281elif test $ac_cv_prog_cc_g = yes; then
3282 if test "$GCC" = yes; then
3283 CFLAGS="-g -O2"
3284 else
3285 CFLAGS="-g"
3286 fi
3287else
3288 if test "$GCC" = yes; then
3289 CFLAGS="-O2"
3290 else
3291 CFLAGS=
3292 fi
3293fi
3294{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3295echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3296if test "${ac_cv_prog_cc_c89+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299 ac_cv_prog_cc_c89=no
3300ac_save_CC=$CC
3301cat >conftest.$ac_ext <<_ACEOF
3302/* confdefs.h. */
3303_ACEOF
3304cat confdefs.h >>conftest.$ac_ext
3305cat >>conftest.$ac_ext <<_ACEOF
3306/* end confdefs.h. */
3307#include <stdarg.h>
3308#include <stdio.h>
3309#include <sys/types.h>
3310#include <sys/stat.h>
3311/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3312struct buf { int x; };
3313FILE * (*rcsopen) (struct buf *, struct stat *, int);
3314static char *e (p, i)
3315 char **p;
3316 int i;
3317{
3318 return p[i];
3319}
3320static char *f (char * (*g) (char **, int), char **p, ...)
3321{
3322 char *s;
3323 va_list v;
3324 va_start (v,p);
3325 s = g (p, va_arg (v,int));
3326 va_end (v);
3327 return s;
3328}
3329
3330/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3331 function prototypes and stuff, but not '\xHH' hex character constants.
3332 These don't provoke an error unfortunately, instead are silently treated
3333 as 'x'. The following induces an error, until -std is added to get
3334 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3335 array size at least. It's necessary to write '\x00'==0 to get something
3336 that's true only with -std. */
3337int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3338
3339/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3340 inside strings and character constants. */
3341#define FOO(x) 'x'
3342int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3343
3344int test (int i, double x);
3345struct s1 {int (*f) (int a);};
3346struct s2 {int (*f) (double a);};
3347int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3348int argc;
3349char **argv;
3350int
3351main ()
3352{
3353return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3354 ;
3355 return 0;
3356}
3357_ACEOF
3358for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3359 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3360do
3361 CC="$ac_save_CC $ac_arg"
3362 rm -f conftest.$ac_objext
3363if { (ac_try="$ac_compile"
3364case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367esac
3368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_compile") 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } &&
3376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3377 { (case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
3381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_try") 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390esac
3391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_try") 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 ac_cv_prog_cc_c89=$ac_arg
3397else
3398 echo "$as_me: failed program was:" >&5
3399sed 's/^/| /' conftest.$ac_ext >&5
3400
3401
3402fi
3403
3404rm -f core conftest.err conftest.$ac_objext
3405 test "x$ac_cv_prog_cc_c89" != "xno" && break
3406done
3407rm -f conftest.$ac_ext
3408CC=$ac_save_CC
3409
3410fi
3411# AC_CACHE_VAL
3412case "x$ac_cv_prog_cc_c89" in
3413 x)
3414 { echo "$as_me:$LINENO: result: none needed" >&5
3415echo "${ECHO_T}none needed" >&6; } ;;
3416 xno)
3417 { echo "$as_me:$LINENO: result: unsupported" >&5
3418echo "${ECHO_T}unsupported" >&6; } ;;
3419 *)
3420 CC="$CC $ac_cv_prog_cc_c89"
3421 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3422echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3423esac
3424
3425
3426ac_ext=c
3427ac_cpp='$CPP $CPPFLAGS'
3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431DEPDIR="${am__leading_dot}deps"
3432
3433ac_config_commands="$ac_config_commands depfiles"
3434
3435
3436am_make=${MAKE-make}
3437cat > confinc << 'END'
3438am__doit:
3439 @echo done
3440.PHONY: am__doit
3441END
3442# If we don't find an include directive, just comment out the code.
3443{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3444echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3445am__include="#"
3446am__quote=
3447_am_result=none
3448# First try GNU make style include.
3449echo "include confinc" > confmf
3450# We grep out `Entering directory' and `Leaving directory'
3451# messages which can occur if `w' ends up in MAKEFLAGS.
3452# In particular we don't look at `^make:' because GNU make might
3453# be invoked under some other name (usually "gmake"), in which
3454# case it prints its new name instead of `make'.
3455if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3456 am__include=include
3457 am__quote=
3458 _am_result=GNU
3459fi
3460# Now try BSD make style include.
3461if test "$am__include" = "#"; then
3462 echo '.include "confinc"' > confmf
3463 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3464 am__include=.include
3465 am__quote="\""
3466 _am_result=BSD
3467 fi
3468fi
3469
3470
3471{ echo "$as_me:$LINENO: result: $_am_result" >&5
3472echo "${ECHO_T}$_am_result" >&6; }
3473rm -f confinc confmf
3474
3475# Check whether --enable-dependency-tracking was given.
3476if test "${enable_dependency_tracking+set}" = set; then
3477 enableval=$enable_dependency_tracking;
3478fi
3479
3480if test "x$enable_dependency_tracking" != xno; then
3481 am_depcomp="$ac_aux_dir/depcomp"
3482 AMDEPBACKSLASH='\'
3483fi
3484
3485
3486if test "x$enable_dependency_tracking" != xno; then
3487 AMDEP_TRUE=
3488 AMDEP_FALSE='#'
3489else
3490 AMDEP_TRUE='#'
3491 AMDEP_FALSE=
3492fi
3493
3494
3495
3496
3497depcc="$CC" am_compiler_list=
3498
3499{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3500echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3501if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3505 # We make a subdir and do the tests there. Otherwise we can end up
3506 # making bogus files that we don't know about and never remove. For
3507 # instance it was reported that on HP-UX the gcc test will end up
3508 # making a dummy file named `D' -- because `-MD' means `put the output
3509 # in D'.
3510 mkdir conftest.dir
3511 # Copy depcomp to subdir because otherwise we won't find it if we're
3512 # using a relative directory.
3513 cp "$am_depcomp" conftest.dir
3514 cd conftest.dir
3515 # We will build objects and dependencies in a subdirectory because
3516 # it helps to detect inapplicable dependency modes. For instance
3517 # both Tru64's cc and ICC support -MD to output dependencies as a
3518 # side effect of compilation, but ICC will put the dependencies in
3519 # the current directory while Tru64 will put them in the object
3520 # directory.
3521 mkdir sub
3522
3523 am_cv_CC_dependencies_compiler_type=none
3524 if test "$am_compiler_list" = ""; then
3525 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3526 fi
3527 for depmode in $am_compiler_list; do
3528 # Setup a source with many dependencies, because some compilers
3529 # like to wrap large dependency lists on column 80 (with \), and
3530 # we should not choose a depcomp mode which is confused by this.
3531 #
3532 # We need to recreate these files for each test, as the compiler may
3533 # overwrite some of them when testing with obscure command lines.
3534 # This happens at least with the AIX C compiler.
3535 : > sub/conftest.c
3536 for i in 1 2 3 4 5 6; do
3537 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3538 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3539 # Solaris 8's {/usr,}/bin/sh.
3540 touch sub/conftst$i.h
3541 done
3542 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3543
3544 case $depmode in
3545 nosideeffect)
3546 # after this tag, mechanisms are not by side-effect, so they'll
3547 # only be used when explicitly requested
3548 if test "x$enable_dependency_tracking" = xyes; then
3549 continue
3550 else
3551 break
3552 fi
3553 ;;
3554 none) break ;;
3555 esac
3556 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3557 # mode. It turns out that the SunPro C++ compiler does not properly
3558 # handle `-M -o', and we need to detect this.
3559 if depmode=$depmode \
3560 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3561 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3562 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3563 >/dev/null 2>conftest.err &&
3564 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3565 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3566 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3567 # icc doesn't choke on unknown options, it will just issue warnings
3568 # or remarks (even with -Werror). So we grep stderr for any message
3569 # that says an option was ignored or not supported.
3570 # When given -MP, icc 7.0 and 7.1 complain thusly:
3571 # icc: Command line warning: ignoring option '-M'; no argument required
3572 # The diagnosis changed in icc 8.0:
3573 # icc: Command line remark: option '-MP' not supported
3574 if (grep 'ignoring option' conftest.err ||
3575 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3576 am_cv_CC_dependencies_compiler_type=$depmode
3577 break
3578 fi
3579 fi
3580 done
3581
3582 cd ..
3583 rm -rf conftest.dir
3584else
3585 am_cv_CC_dependencies_compiler_type=none
3586fi
3587
3588fi
3589{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3590echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3591CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3592
3593
3594
3595if
3596 test "x$enable_dependency_tracking" != xno \
3597 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3598 am__fastdepCC_TRUE=
3599 am__fastdepCC_FALSE='#'
3600else
3601 am__fastdepCC_TRUE='#'
3602 am__fastdepCC_FALSE=
3603fi
3604
3605
3606
3607{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3608echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3609if test "${ac_cv_c_const+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611else
3612 cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
3618
3619int
3620main ()
3621{
3622/* FIXME: Include the comments suggested by Paul. */
3623#ifndef __cplusplus
3624 /* Ultrix mips cc rejects this. */
3625 typedef int charset[2];
3626 const charset cs;
3627 /* SunOS 4.1.1 cc rejects this. */
3628 char const *const *pcpcc;
3629 char **ppc;
3630 /* NEC SVR4.0.2 mips cc rejects this. */
3631 struct point {int x, y;};
3632 static struct point const zero = {0,0};
3633 /* AIX XL C 1.02.0.0 rejects this.
3634 It does not let you subtract one const X* pointer from another in
3635 an arm of an if-expression whose if-part is not a constant
3636 expression */
3637 const char *g = "string";
3638 pcpcc = &g + (g ? g-g : 0);
3639 /* HPUX 7.0 cc rejects these. */
3640 ++pcpcc;
3641 ppc = (char**) pcpcc;
3642 pcpcc = (char const *const *) ppc;
3643 { /* SCO 3.2v4 cc rejects this. */
3644 char *t;
3645 char const *s = 0 ? (char *) 0 : (char const *) 0;
3646
3647 *t++ = 0;
3648 if (s) return 0;
3649 }
3650 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3651 int x[] = {25, 17};
3652 const int *foo = &x[0];
3653 ++foo;
3654 }
3655 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3656 typedef const int *iptr;
3657 iptr p = 0;
3658 ++p;
3659 }
3660 { /* AIX XL C 1.02.0.0 rejects this saying
3661 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3662 struct s { int j; const int *ap[3]; };
3663 struct s *b; b->j = 5;
3664 }
3665 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3666 const int foo = 10;
3667 if (!foo) return 0;
3668 }
3669 return !cs[0] && !zero.x;
3670#endif
3671
3672 ;
3673 return 0;
3674}
3675_ACEOF
3676rm -f conftest.$ac_objext
3677if { (ac_try="$ac_compile"
3678case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681esac
3682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683 (eval "$ac_compile") 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3691 { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694esac
3695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest.$ac_objext'
3701 { (case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704esac
3705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_try") 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_c_const=yes
3711else
3712 echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
3714
3715 ac_cv_c_const=no
3716fi
3717
3718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719fi
3720{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3721echo "${ECHO_T}$ac_cv_c_const" >&6; }
3722if test $ac_cv_c_const = no; then
3723
3724cat >>confdefs.h <<\_ACEOF
3725#define const
3726_ACEOF
3727
3728fi
3729
3730{ echo "$as_me:$LINENO: checking for inline" >&5
3731echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3732if test "${ac_cv_c_inline+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735 ac_cv_c_inline=no
3736for ac_kw in inline __inline__ __inline; do
3737 cat >conftest.$ac_ext <<_ACEOF
3738/* confdefs.h. */
3739_ACEOF
3740cat confdefs.h >>conftest.$ac_ext
3741cat >>conftest.$ac_ext <<_ACEOF
3742/* end confdefs.h. */
3743#ifndef __cplusplus
3744typedef int foo_t;
3745static $ac_kw foo_t static_foo () {return 0; }
3746$ac_kw foo_t foo () {return 0; }
3747#endif
3748
3749_ACEOF
3750rm -f conftest.$ac_objext
3751if { (ac_try="$ac_compile"
3752case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755esac
3756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757 (eval "$ac_compile") 2>conftest.er1
3758 ac_status=$?
3759 grep -v '^ *+' conftest.er1 >conftest.err
3760 rm -f conftest.er1
3761 cat conftest.err >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3765 { (case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3768esac
3769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3770 (eval "$ac_try") 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; } &&
3774 { ac_try='test -s conftest.$ac_objext'
3775 { (case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778esac
3779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3780 (eval "$ac_try") 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_c_inline=$ac_kw
3785else
3786 echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789
3790fi
3791
3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 test "$ac_cv_c_inline" != no && break
3794done
3795
3796fi
3797{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3798echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3799
3800
3801case $ac_cv_c_inline in
3802 inline | yes) ;;
3803 *)
3804 case $ac_cv_c_inline in
3805 no) ac_val=;;
3806 *) ac_val=$ac_cv_c_inline;;
3807 esac
3808 cat >>confdefs.h <<_ACEOF
3809#ifndef __cplusplus
3810#define inline $ac_val
3811#endif
3812_ACEOF
3813 ;;
3814esac
3815
3816
3817
3818## ----------------------- ##
3819## Libtool initialisation. ##
3820## ----------------------- ##
3821
3822
3823# Check whether --enable-shared was given.
3824if test "${enable_shared+set}" = set; then
3825 enableval=$enable_shared; p=${PACKAGE-default}
3826 case $enableval in
3827 yes) enable_shared=yes ;;
3828 no) enable_shared=no ;;
3829 *)
3830 enable_shared=no
3831 # Look at the argument we got. We use all the common list separators.
3832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3833 for pkg in $enableval; do
3834 IFS="$lt_save_ifs"
3835 if test "X$pkg" = "X$p"; then
3836 enable_shared=yes
3837 fi
3838 done
3839 IFS="$lt_save_ifs"
3840 ;;
3841 esac
3842else
3843 enable_shared=yes
3844fi
3845
3846
3847# Check whether --enable-static was given.
3848if test "${enable_static+set}" = set; then
3849 enableval=$enable_static; p=${PACKAGE-default}
3850 case $enableval in
3851 yes) enable_static=yes ;;
3852 no) enable_static=no ;;
3853 *)
3854 enable_static=no
3855 # Look at the argument we got. We use all the common list separators.
3856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3857 for pkg in $enableval; do
3858 IFS="$lt_save_ifs"
3859 if test "X$pkg" = "X$p"; then
3860 enable_static=yes
3861 fi
3862 done
3863 IFS="$lt_save_ifs"
3864 ;;
3865 esac
3866else
3867 enable_static=yes
3868fi
3869
3870
3871# Check whether --enable-fast-install was given.
3872if test "${enable_fast_install+set}" = set; then
3873 enableval=$enable_fast_install; p=${PACKAGE-default}
3874 case $enableval in
3875 yes) enable_fast_install=yes ;;
3876 no) enable_fast_install=no ;;
3877 *)
3878 enable_fast_install=no
3879 # Look at the argument we got. We use all the common list separators.
3880 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3881 for pkg in $enableval; do
3882 IFS="$lt_save_ifs"
3883 if test "X$pkg" = "X$p"; then
3884 enable_fast_install=yes
3885 fi
3886 done
3887 IFS="$lt_save_ifs"
3888 ;;
3889 esac
3890else
3891 enable_fast_install=yes
3892fi
3893
3894
3895# Make sure we can run config.sub.
3896$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3897 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3898echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3899 { (exit 1); exit 1; }; }
3900
3901{ echo "$as_me:$LINENO: checking build system type" >&5
3902echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3903if test "${ac_cv_build+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905else
3906 ac_build_alias=$build_alias
3907test "x$ac_build_alias" = x &&
3908 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3909test "x$ac_build_alias" = x &&
3910 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3911echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3912 { (exit 1); exit 1; }; }
3913ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3914 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3915echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3916 { (exit 1); exit 1; }; }
3917
3918fi
3919{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3920echo "${ECHO_T}$ac_cv_build" >&6; }
3921case $ac_cv_build in
3922*-*-*) ;;
3923*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3924echo "$as_me: error: invalid value of canonical build" >&2;}
3925 { (exit 1); exit 1; }; };;
3926esac
3927build=$ac_cv_build
3928ac_save_IFS=$IFS; IFS='-'
3929set x $ac_cv_build
3930shift
3931build_cpu=$1
3932build_vendor=$2
3933shift; shift
3934# Remember, the first character of IFS is used to create $*,
3935# except with old shells:
3936build_os=$*
3937IFS=$ac_save_IFS
3938case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3939
3940
3941{ echo "$as_me:$LINENO: checking host system type" >&5
3942echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3943if test "${ac_cv_host+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946 if test "x$host_alias" = x; then
3947 ac_cv_host=$ac_cv_build
3948else
3949 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3950 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3951echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3952 { (exit 1); exit 1; }; }
3953fi
3954
3955fi
3956{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3957echo "${ECHO_T}$ac_cv_host" >&6; }
3958case $ac_cv_host in
3959*-*-*) ;;
3960*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3961echo "$as_me: error: invalid value of canonical host" >&2;}
3962 { (exit 1); exit 1; }; };;
3963esac
3964host=$ac_cv_host
3965ac_save_IFS=$IFS; IFS='-'
3966set x $ac_cv_host
3967shift
3968host_cpu=$1
3969host_vendor=$2
3970shift; shift
3971# Remember, the first character of IFS is used to create $*,
3972# except with old shells:
3973host_os=$*
3974IFS=$ac_save_IFS
3975case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3976
3977
3978{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3979echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3980if test "${lt_cv_path_SED+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982else
3983 # Loop through the user's path and test for sed and gsed.
3984# Then use that list of sed's as ones to test for truncation.
3985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH
3987do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for lt_ac_prog in sed gsed; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3993 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3994 fi
3995 done
3996 done
3997done
3998lt_ac_max=0
3999lt_ac_count=0
4000# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4001# along with /bin/sed that truncates output.
4002for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4003 test ! -f $lt_ac_sed && continue
4004 cat /dev/null > conftest.in
4005 lt_ac_count=0
4006 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4007 # Check for GNU sed and select it if it is found.
4008 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4009 lt_cv_path_SED=$lt_ac_sed
4010 break
4011 fi
4012 while true; do
4013 cat conftest.in conftest.in >conftest.tmp
4014 mv conftest.tmp conftest.in
4015 cp conftest.in conftest.nl
4016 echo >>conftest.nl
4017 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4018 cmp -s conftest.out conftest.nl || break
4019 # 10000 chars as input seems more than enough
4020 test $lt_ac_count -gt 10 && break
4021 lt_ac_count=`expr $lt_ac_count + 1`
4022 if test $lt_ac_count -gt $lt_ac_max; then
4023 lt_ac_max=$lt_ac_count
4024 lt_cv_path_SED=$lt_ac_sed
4025 fi
4026 done
4027done
4028
4029fi
4030
4031SED=$lt_cv_path_SED
4032{ echo "$as_me:$LINENO: result: $SED" >&5
4033echo "${ECHO_T}$SED" >&6; }
4034
4035{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4036echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4037if test "${ac_cv_path_GREP+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039else
4040 # Extract the first word of "grep ggrep" to use in msg output
4041if test -z "$GREP"; then
4042set dummy grep ggrep; ac_prog_name=$2
4043if test "${ac_cv_path_GREP+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046 ac_path_GREP_found=false
4047# Loop through the user's path and test for each of PROGNAME-LIST
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4050do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_prog in grep ggrep; do
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4056 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4057 # Check for GNU ac_path_GREP and select it if it is found.
4058 # Check for GNU $ac_path_GREP
4059case `"$ac_path_GREP" --version 2>&1` in
4060*GNU*)
4061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4062*)
4063 ac_count=0
4064 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4065 while :
4066 do
4067 cat "conftest.in" "conftest.in" >"conftest.tmp"
4068 mv "conftest.tmp" "conftest.in"
4069 cp "conftest.in" "conftest.nl"
4070 echo 'GREP' >> "conftest.nl"
4071 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4073 ac_count=`expr $ac_count + 1`
4074 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4075 # Best one so far, save it but keep looking for a better one
4076 ac_cv_path_GREP="$ac_path_GREP"
4077 ac_path_GREP_max=$ac_count
4078 fi
4079 # 10*(2^10) chars as input seems more than enough
4080 test $ac_count -gt 10 && break
4081 done
4082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4083esac
4084
4085
4086 $ac_path_GREP_found && break 3
4087 done
4088done
4089
4090done
4091IFS=$as_save_IFS
4092
4093
4094fi
4095
4096GREP="$ac_cv_path_GREP"
4097if test -z "$GREP"; then
4098 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4099echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4100 { (exit 1); exit 1; }; }
4101fi
4102
4103else
4104 ac_cv_path_GREP=$GREP
4105fi
4106
4107
4108fi
4109{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4110echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4111 GREP="$ac_cv_path_GREP"
4112
4113
4114{ echo "$as_me:$LINENO: checking for egrep" >&5
4115echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4116if test "${ac_cv_path_EGREP+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118else
4119 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4120 then ac_cv_path_EGREP="$GREP -E"
4121 else
4122 # Extract the first word of "egrep" to use in msg output
4123if test -z "$EGREP"; then
4124set dummy egrep; ac_prog_name=$2
4125if test "${ac_cv_path_EGREP+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 ac_path_EGREP_found=false
4129# Loop through the user's path and test for each of PROGNAME-LIST
4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4132do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in egrep; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4138 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4139 # Check for GNU ac_path_EGREP and select it if it is found.
4140 # Check for GNU $ac_path_EGREP
4141case `"$ac_path_EGREP" --version 2>&1` in
4142*GNU*)
4143 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4144*)
4145 ac_count=0
4146 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4147 while :
4148 do
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 echo 'EGREP' >> "conftest.nl"
4153 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 ac_count=`expr $ac_count + 1`
4156 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_EGREP="$ac_path_EGREP"
4159 ac_path_EGREP_max=$ac_count
4160 fi
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4163 done
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165esac
4166
4167
4168 $ac_path_EGREP_found && break 3
4169 done
4170done
4171
4172done
4173IFS=$as_save_IFS
4174
4175
4176fi
4177
4178EGREP="$ac_cv_path_EGREP"
4179if test -z "$EGREP"; then
4180 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4181echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4182 { (exit 1); exit 1; }; }
4183fi
4184
4185else
4186 ac_cv_path_EGREP=$EGREP
4187fi
4188
4189
4190 fi
4191fi
4192{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4193echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4194 EGREP="$ac_cv_path_EGREP"
4195
4196
4197
4198# Check whether --with-gnu-ld was given.
4199if test "${with_gnu_ld+set}" = set; then
4200 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4201else
4202 with_gnu_ld=no
4203fi
4204
4205ac_prog=ld
4206if test "$GCC" = yes; then
4207 # Check if gcc -print-prog-name=ld gives a path.
4208 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4209echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4210 case $host in
4211 *-*-mingw*)
4212 # gcc leaves a trailing carriage return which upsets mingw
4213 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4214 *)
4215 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4216 esac
4217 case $ac_prog in
4218 # Accept absolute paths.
4219 [\\/]* | ?:[\\/]*)
4220 re_direlt='/[^/][^/]*/\.\./'
4221 # Canonicalize the pathname of ld
4222 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4223 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4224 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4225 done
4226 test -z "$LD" && LD="$ac_prog"
4227 ;;
4228 "")
4229 # If it fails, then pretend we aren't using GCC.
4230 ac_prog=ld
4231 ;;
4232 *)
4233 # If it is relative, then search for the first ld in PATH.
4234 with_gnu_ld=unknown
4235 ;;
4236 esac
4237elif test "$with_gnu_ld" = yes; then
4238 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4239echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4240else
4241 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4242echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4243fi
4244if test "${lt_cv_path_LD+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247 if test -z "$LD"; then
4248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4249 for ac_dir in $PATH; do
4250 IFS="$lt_save_ifs"
4251 test -z "$ac_dir" && ac_dir=.
4252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4253 lt_cv_path_LD="$ac_dir/$ac_prog"
4254 # Check to see if the program is GNU ld. I'd rather use --version,
4255 # but apparently some variants of GNU ld only accept -v.
4256 # Break only if it was the GNU/non-GNU ld that we prefer.
4257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4258 *GNU* | *'with BFD'*)
4259 test "$with_gnu_ld" != no && break
4260 ;;
4261 *)
4262 test "$with_gnu_ld" != yes && break
4263 ;;
4264 esac
4265 fi
4266 done
4267 IFS="$lt_save_ifs"
4268else
4269 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4270fi
4271fi
4272
4273LD="$lt_cv_path_LD"
4274if test -n "$LD"; then
4275 { echo "$as_me:$LINENO: result: $LD" >&5
4276echo "${ECHO_T}$LD" >&6; }
4277else
4278 { echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6; }
4280fi
4281test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4282echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4283 { (exit 1); exit 1; }; }
4284{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4285echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4286if test "${lt_cv_prog_gnu_ld+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288else
4289 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4290case `$LD -v 2>&1 </dev/null` in
4291*GNU* | *'with BFD'*)
4292 lt_cv_prog_gnu_ld=yes
4293 ;;
4294*)
4295 lt_cv_prog_gnu_ld=no
4296 ;;
4297esac
4298fi
4299{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4300echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4301with_gnu_ld=$lt_cv_prog_gnu_ld
4302
4303
4304{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4305echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4306if test "${lt_cv_ld_reload_flag+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6