Fix http://gcc.gnu.org/PR43012
[cloog-ppl.git] / configure
blob461b3f64e715b0d3a69718407336809bdf050765
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
583 esac
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
605 _LT_EOF
606 exit 0
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
623 done
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
647 done
648 IFS="$lt_save_ifs"
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
696 prev="$cmd"
697 done
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731 # Initializations.
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
750 ac_unique_file="source/cloog.c"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 # include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 # include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
787 ac_subst_vars='LTLIBOBJS
788 LIBOBJS
789 BITS
790 INSTALL
791 SHEXT
792 target
793 PPL_LIBS
794 PPL_LDFLAGS
795 PPL_CPPFLAGS
796 POLYHEDRAL_BACKEND
797 GIT_INDEX
798 POLYLIB_LIBS
799 POLYLIB_LDFLAGS
800 POLYLIB_CPPFLAGS
801 cl_cv_polylib
803 OTOOL64
804 OTOOL
805 LIPO
806 NMEDIT
807 DSYMUTIL
808 lt_ECHO
809 RANLIB
811 OBJDUMP
813 ac_ct_DUMPBIN
814 DUMPBIN
816 FGREP
817 EGREP
818 GREP
820 host_os
821 host_vendor
822 host_cpu
823 host
824 build_os
825 build_vendor
826 build_cpu
827 build
828 LIBTOOL
830 LN_S
831 am__fastdepCC_FALSE
832 am__fastdepCC_TRUE
833 CCDEPMODE
834 AMDEPBACKSLASH
835 AMDEP_FALSE
836 AMDEP_TRUE
837 am__quote
838 am__include
839 DEPDIR
840 OBJEXT
841 EXEEXT
842 ac_ct_CC
843 CPPFLAGS
844 LDFLAGS
845 CFLAGS
847 CLOOG_VERSION_BETA
848 CLOOG_VERSION_REVISION
849 CLOOG_VERSION_MINOR
850 CLOOG_VERSION_MAJOR
851 am__untar
852 am__tar
853 AMTAR
854 am__leading_dot
855 SET_MAKE
857 mkdir_p
858 INSTALL_STRIP_PROGRAM
859 STRIP
860 install_sh
861 MAKEINFO
862 AUTOHEADER
863 AUTOMAKE
864 AUTOCONF
865 ACLOCAL
866 VERSION
867 PACKAGE
868 CYGPATH_W
869 INSTALL_DATA
870 INSTALL_SCRIPT
871 INSTALL_PROGRAM
872 target_alias
873 host_alias
874 build_alias
875 LIBS
876 ECHO_T
877 ECHO_N
878 ECHO_C
879 DEFS
880 mandir
881 localedir
882 libdir
883 psdir
884 pdfdir
885 dvidir
886 htmldir
887 infodir
888 docdir
889 oldincludedir
890 includedir
891 localstatedir
892 sharedstatedir
893 sysconfdir
894 datadir
895 datarootdir
896 libexecdir
897 sbindir
898 bindir
899 program_transform_name
900 prefix
901 exec_prefix
902 PACKAGE_BUGREPORT
903 PACKAGE_STRING
904 PACKAGE_VERSION
905 PACKAGE_TARNAME
906 PACKAGE_NAME
907 PATH_SEPARATOR
908 SHELL'
909 ac_subst_files=''
910 ac_user_opts='
911 enable_option_checking
912 enable_dependency_tracking
913 enable_shared
914 enable_static
915 with_pic
916 enable_fast_install
917 with_gnu_ld
918 enable_libtool_lock
919 with_ppl
920 with_polylib_prefix
921 with_polylib_exec_prefix
922 with_polylib_builddir
923 with_bits
924 with_gmp
925 with_gmp_include
926 with_gmp_library
927 with_host_libstdcxx
929 ac_precious_vars='build_alias
930 host_alias
931 target_alias
933 CFLAGS
934 LDFLAGS
935 LIBS
936 CPPFLAGS
937 CPP'
940 # Initialize some variables set by options.
941 ac_init_help=
942 ac_init_version=false
943 ac_unrecognized_opts=
944 ac_unrecognized_sep=
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
947 cache_file=/dev/null
948 exec_prefix=NONE
949 no_create=
950 no_recursion=
951 prefix=NONE
952 program_prefix=NONE
953 program_suffix=NONE
954 program_transform_name=s,x,x,
955 silent=
956 site=
957 srcdir=
958 verbose=
959 x_includes=NONE
960 x_libraries=NONE
962 # Installation directory options.
963 # These are left unexpanded so users can "make install exec_prefix=/foo"
964 # and all the variables that are supposed to be based on exec_prefix
965 # by default will actually change.
966 # Use braces instead of parens because sh, perl, etc. also accept them.
967 # (The list follows the same order as the GNU Coding Standards.)
968 bindir='${exec_prefix}/bin'
969 sbindir='${exec_prefix}/sbin'
970 libexecdir='${exec_prefix}/libexec'
971 datarootdir='${prefix}/share'
972 datadir='${datarootdir}'
973 sysconfdir='${prefix}/etc'
974 sharedstatedir='${prefix}/com'
975 localstatedir='${prefix}/var'
976 includedir='${prefix}/include'
977 oldincludedir='/usr/include'
978 docdir='${datarootdir}/doc/${PACKAGE}'
979 infodir='${datarootdir}/info'
980 htmldir='${docdir}'
981 dvidir='${docdir}'
982 pdfdir='${docdir}'
983 psdir='${docdir}'
984 libdir='${exec_prefix}/lib'
985 localedir='${datarootdir}/locale'
986 mandir='${datarootdir}/man'
988 ac_prev=
989 ac_dashdash=
990 for ac_option
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
994 eval $ac_prev=\$ac_option
995 ac_prev=
996 continue
999 case $ac_option in
1000 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 *) ac_optarg=yes ;;
1002 esac
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1006 case $ac_dashdash$ac_option in
1008 ac_dashdash=yes ;;
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 ac_prev=bindir ;;
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013 bindir=$ac_optarg ;;
1015 -build | --build | --buil | --bui | --bu)
1016 ac_prev=build_alias ;;
1017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018 build_alias=$ac_optarg ;;
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025 cache_file=$ac_optarg ;;
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
1030 -datadir | --datadir | --datadi | --datad)
1031 ac_prev=datadir ;;
1032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033 datadir=$ac_optarg ;;
1035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1042 -disable-* | --disable-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1069 -enable-* | --enable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1164 no_create=yes ;;
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
1233 sbindir=$ac_optarg ;;
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
1244 sharedstatedir=$ac_optarg ;;
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
1249 site=$ac_optarg ;;
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1274 -with-* | --with-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1279 { (exit 1); exit 1; }; }
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1284 "with_$ac_useropt"
1285 "*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=\$ac_optarg ;;
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1296 { (exit 1); exit 1; }; }
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1326 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1327 Try \`$0 --help' for more information." >&2
1328 { (exit 1); exit 1; }; }
1331 *=*)
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1335 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1336 { (exit 1); exit 1; }; }
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 esac
1349 done
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1354 { (exit 1); exit 1; }; }
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1359 no) ;;
1360 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1361 { (exit 1); exit 1; }; } ;;
1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 esac
1366 # Check all directory arguments for consistency.
1367 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
1372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
1374 case $ac_val in
1375 */ )
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
1378 esac
1379 # Be sure to have absolute directory names.
1380 case $ac_val in
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 esac
1384 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1385 { (exit 1); exit 1; }; }
1386 done
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409 test "$silent" = yes && exec 6>/dev/null
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1416 { (exit 1); exit 1; }; }
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1419 { (exit 1); exit 1; }; }
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1440 /^X\(\/\/\)$/{
1441 s//\1/
1444 /^X\(\/\).*/{
1445 s//\1/
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1453 else
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1459 { (exit 1); exit 1; }; }
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 ac_abs_confdir=`(
1463 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1464 { (exit 1); exit 1; }; }
1465 pwd)`
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1473 case $srcdir in
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 esac
1476 for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 done
1484 # Report the --help message.
1486 if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1489 cat <<_ACEOF
1490 \`configure' configures this package to adapt to many kinds of systems.
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE. See below for descriptions of some of the useful variables.
1497 Defaults for the options are specified in brackets.
1499 Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1510 Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 [PREFIX]
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1521 For better control, use the options below.
1523 Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1543 _ACEOF
1545 cat <<\_ACEOF
1547 Program names:
1548 --program-prefix=PREFIX prepend PREFIX to installed program names
1549 --program-suffix=SUFFIX append SUFFIX to installed program names
1550 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1552 System types:
1553 --build=BUILD configure for building on BUILD [guessed]
1554 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1555 _ACEOF
1558 if test -n "$ac_init_help"; then
1560 cat <<\_ACEOF
1562 Optional Features:
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --disable-dependency-tracking speeds up one-time build
1567 --enable-dependency-tracking do not reject slow dependency extractors
1568 --enable-shared[=PKGS] build shared libraries [default=yes]
1569 --enable-static[=PKGS] build static libraries [default=yes]
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=yes]
1572 --disable-libtool-lock avoid locking (might break parallel builds)
1574 Optional Packages:
1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1577 --with-pic try to use only PIC/non-PIC objects [default=use
1578 both]
1579 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1580 --with-ppl=DIR Prefix of Parma Polyhedral Library installation
1581 --with-polylib-prefix=DIR
1582 Prefix of PolyLib installation
1583 --with-polylib-exec-prefix=DIR
1584 Exec prefix of PolyLib installation
1585 --with-polylib-builddir=DIR
1586 Location of PolyLib builddir
1587 --with-bits=32|64|gmp PolyLib library type to use
1588 --with-gmp=DIR DIR where the gmp package is installed
1589 --with-gmp-include=DIR DIR where gmp.h is installed
1590 --with-gmp-library=DIR DIR where the gmp library is installed
1591 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1592 when linking with PPL
1594 Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1602 CPP C preprocessor
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1607 _ACEOF
1608 ac_status=$?
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 continue
1617 ac_builddir=.
1619 case "$ac_dir" in
1620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1623 # A ".." for each directory in $ac_dir_suffix.
1624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628 esac ;;
1629 esac
1630 ac_abs_top_builddir=$ac_pwd
1631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632 # for backward compatibility:
1633 ac_top_builddir=$ac_top_build_prefix
1635 case $srcdir in
1636 .) # We are building in place.
1637 ac_srcdir=.
1638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
1641 ac_srcdir=$srcdir$ac_dir_suffix;
1642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1644 *) # Relative name.
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 esac
1649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for guested configure.
1653 if test -f "$ac_srcdir/configure.gnu"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1656 elif test -f "$ac_srcdir/configure"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure" --help=recursive
1659 else
1660 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 fi || ac_status=$?
1662 cd "$ac_pwd" || { ac_status=$?; break; }
1663 done
1666 test -n "$ac_init_help" && exit $ac_status
1667 if $ac_init_version; then
1668 cat <<\_ACEOF
1669 configure
1670 generated by GNU Autoconf 2.63
1672 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1673 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1674 This configure script is free software; the Free Software Foundation
1675 gives unlimited permission to copy, distribute and modify it.
1676 _ACEOF
1677 exit
1679 cat >config.log <<_ACEOF
1680 This file contains any messages produced by compilers while
1681 running configure, to aid debugging if configure makes a mistake.
1683 It was created by $as_me, which was
1684 generated by GNU Autoconf 2.63. Invocation command line was
1686 $ $0 $@
1688 _ACEOF
1689 exec 5>>config.log
1691 cat <<_ASUNAME
1692 ## --------- ##
1693 ## Platform. ##
1694 ## --------- ##
1696 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1702 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1705 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1706 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1707 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1708 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1709 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1710 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1711 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1713 _ASUNAME
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
1720 $as_echo "PATH: $as_dir"
1721 done
1722 IFS=$as_save_IFS
1724 } >&5
1726 cat >&5 <<_ACEOF
1729 ## ----------- ##
1730 ## Core tests. ##
1731 ## ----------- ##
1733 _ACEOF
1736 # Keep a trace of the command line.
1737 # Strip out --no-create and --no-recursion so they do not pile up.
1738 # Strip out --silent because we don't want to record it for future runs.
1739 # Also quote any args containing shell meta-characters.
1740 # Make two passes to allow for proper duplicate-argument suppression.
1741 ac_configure_args=
1742 ac_configure_args0=
1743 ac_configure_args1=
1744 ac_must_keep_next=false
1745 for ac_pass in 1 2
1747 for ac_arg
1749 case $ac_arg in
1750 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1752 | -silent | --silent | --silen | --sile | --sil)
1753 continue ;;
1754 *\'*)
1755 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 esac
1757 case $ac_pass in
1758 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1760 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1761 if test $ac_must_keep_next = true; then
1762 ac_must_keep_next=false # Got value, back to normal.
1763 else
1764 case $ac_arg in
1765 *=* | --config-cache | -C | -disable-* | --disable-* \
1766 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1767 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1768 | -with-* | --with-* | -without-* | --without-* | --x)
1769 case "$ac_configure_args0 " in
1770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771 esac
1773 -* ) ac_must_keep_next=true ;;
1774 esac
1776 ac_configure_args="$ac_configure_args '$ac_arg'"
1778 esac
1779 done
1780 done
1781 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1782 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1784 # When interrupted or exit'd, cleanup temporary files, and complete
1785 # config.log. We remove comments because anyway the quotes in there
1786 # would cause problems or look ugly.
1787 # WARNING: Use '\'' to represent an apostrophe within the trap.
1788 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1789 trap 'exit_status=$?
1790 # Save into config.log some information that might help in debugging.
1792 echo
1794 cat <<\_ASBOX
1795 ## ---------------- ##
1796 ## Cache variables. ##
1797 ## ---------------- ##
1798 _ASBOX
1799 echo
1800 # The following way of writing the cache mishandles newlines in values,
1802 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803 eval ac_val=\$$ac_var
1804 case $ac_val in #(
1805 *${as_nl}*)
1806 case $ac_var in #(
1807 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1808 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1809 esac
1810 case $ac_var in #(
1811 _ | IFS | as_nl) ;; #(
1812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1813 *) $as_unset $ac_var ;;
1814 esac ;;
1815 esac
1816 done
1817 (set) 2>&1 |
1818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819 *${as_nl}ac_space=\ *)
1820 sed -n \
1821 "s/'\''/'\''\\\\'\'''\''/g;
1822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823 ;; #(
1825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1827 esac |
1828 sort
1830 echo
1832 cat <<\_ASBOX
1833 ## ----------------- ##
1834 ## Output variables. ##
1835 ## ----------------- ##
1836 _ASBOX
1837 echo
1838 for ac_var in $ac_subst_vars
1840 eval ac_val=\$$ac_var
1841 case $ac_val in
1842 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 esac
1844 $as_echo "$ac_var='\''$ac_val'\''"
1845 done | sort
1846 echo
1848 if test -n "$ac_subst_files"; then
1849 cat <<\_ASBOX
1850 ## ------------------- ##
1851 ## File substitutions. ##
1852 ## ------------------- ##
1853 _ASBOX
1854 echo
1855 for ac_var in $ac_subst_files
1857 eval ac_val=\$$ac_var
1858 case $ac_val in
1859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 esac
1861 $as_echo "$ac_var='\''$ac_val'\''"
1862 done | sort
1863 echo
1866 if test -s confdefs.h; then
1867 cat <<\_ASBOX
1868 ## ----------- ##
1869 ## confdefs.h. ##
1870 ## ----------- ##
1871 _ASBOX
1872 echo
1873 cat confdefs.h
1874 echo
1876 test "$ac_signal" != 0 &&
1877 $as_echo "$as_me: caught signal $ac_signal"
1878 $as_echo "$as_me: exit $exit_status"
1879 } >&5
1880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1882 exit $exit_status
1884 for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886 done
1887 ac_signal=0
1889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1890 rm -f -r conftest* confdefs.h
1892 # Predefined preprocessor variables.
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_NAME "$PACKAGE_NAME"
1896 _ACEOF
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901 _ACEOF
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1906 _ACEOF
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_STRING "$PACKAGE_STRING"
1911 _ACEOF
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916 _ACEOF
1919 # Let the site file select an alternate cache file if it wants to.
1920 # Prefer an explicitly selected file to automatically selected ones.
1921 ac_site_file1=NONE
1922 ac_site_file2=NONE
1923 if test -n "$CONFIG_SITE"; then
1924 ac_site_file1=$CONFIG_SITE
1925 elif test "x$prefix" != xNONE; then
1926 ac_site_file1=$prefix/share/config.site
1927 ac_site_file2=$prefix/etc/config.site
1928 else
1929 ac_site_file1=$ac_default_prefix/share/config.site
1930 ac_site_file2=$ac_default_prefix/etc/config.site
1932 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1934 test "x$ac_site_file" = xNONE && continue
1935 if test -r "$ac_site_file"; then
1936 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1937 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1938 sed 's/^/| /' "$ac_site_file" >&5
1939 . "$ac_site_file"
1941 done
1943 if test -r "$cache_file"; then
1944 # Some versions of bash will fail to source /dev/null (special
1945 # files actually), so we avoid doing that.
1946 if test -f "$cache_file"; then
1947 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1948 $as_echo "$as_me: loading cache $cache_file" >&6;}
1949 case $cache_file in
1950 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1951 *) . "./$cache_file";;
1952 esac
1954 else
1955 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1956 $as_echo "$as_me: creating cache $cache_file" >&6;}
1957 >$cache_file
1960 # Check that the precious variables saved in the cache have kept the same
1961 # value.
1962 ac_cache_corrupted=false
1963 for ac_var in $ac_precious_vars; do
1964 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1965 eval ac_new_set=\$ac_env_${ac_var}_set
1966 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1967 eval ac_new_val=\$ac_env_${ac_var}_value
1968 case $ac_old_set,$ac_new_set in
1969 set,)
1970 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1971 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1972 ac_cache_corrupted=: ;;
1973 ,set)
1974 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1975 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1976 ac_cache_corrupted=: ;;
1977 ,);;
1979 if test "x$ac_old_val" != "x$ac_new_val"; then
1980 # differences in whitespace do not lead to failure.
1981 ac_old_val_w=`echo x $ac_old_val`
1982 ac_new_val_w=`echo x $ac_new_val`
1983 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1984 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1985 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1986 ac_cache_corrupted=:
1987 else
1988 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1989 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1990 eval $ac_var=\$ac_old_val
1992 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1993 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1994 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1995 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1996 fi;;
1997 esac
1998 # Pass precious variables to config.status.
1999 if test "$ac_new_set" = set; then
2000 case $ac_new_val in
2001 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2002 *) ac_arg=$ac_var=$ac_new_val ;;
2003 esac
2004 case " $ac_configure_args " in
2005 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2006 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2007 esac
2009 done
2010 if $ac_cache_corrupted; then
2011 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2013 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2014 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2015 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2016 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2017 { (exit 1); exit 1; }; }
2036 ac_ext=c
2037 ac_cpp='$CPP $CPPFLAGS'
2038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043 ac_aux_dir=
2044 for ac_dir in autoconf "$srcdir"/autoconf; do
2045 if test -f "$ac_dir/install-sh"; then
2046 ac_aux_dir=$ac_dir
2047 ac_install_sh="$ac_aux_dir/install-sh -c"
2048 break
2049 elif test -f "$ac_dir/install.sh"; then
2050 ac_aux_dir=$ac_dir
2051 ac_install_sh="$ac_aux_dir/install.sh -c"
2052 break
2053 elif test -f "$ac_dir/shtool"; then
2054 ac_aux_dir=$ac_dir
2055 ac_install_sh="$ac_aux_dir/shtool install -c"
2056 break
2058 done
2059 if test -z "$ac_aux_dir"; then
2060 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2061 $as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2062 { (exit 1); exit 1; }; }
2065 # These three variables are undocumented and unsupported,
2066 # and are intended to be withdrawn in a future Autoconf release.
2067 # They can cause serious problems if a builder's source tree is in a directory
2068 # whose full name contains unusual characters.
2069 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2070 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2071 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075 am__api_version="1.9"
2076 # Find a good install program. We prefer a C program (faster),
2077 # so one script is as good as another. But avoid the broken or
2078 # incompatible versions:
2079 # SysV /etc/install, /usr/sbin/install
2080 # SunOS /usr/etc/install
2081 # IRIX /sbin/install
2082 # AIX /bin/install
2083 # AmigaOS /C/install, which installs bootblocks on floppy discs
2084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2087 # OS/2's system install, which has a completely different semantic
2088 # ./install, which can be erroneously created by make from ./install.sh.
2089 # Reject install programs that cannot install multiple files.
2090 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2091 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2092 if test -z "$INSTALL"; then
2093 if test "${ac_cv_path_install+set}" = set; then
2094 $as_echo_n "(cached) " >&6
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 # Account for people who put trailing slashes in PATH elements.
2102 case $as_dir/ in
2103 ./ | .// | /cC/* | \
2104 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2105 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2106 /usr/ucb/* ) ;;
2108 # OSF1 and SCO ODT 3.0 have their own names for install.
2109 # Don't use installbsd from OSF since it installs stuff as root
2110 # by default.
2111 for ac_prog in ginstall scoinst install; do
2112 for ac_exec_ext in '' $ac_executable_extensions; do
2113 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2114 if test $ac_prog = install &&
2115 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2116 # AIX install. It has an incompatible calling convention.
2118 elif test $ac_prog = install &&
2119 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2120 # program-specific install script used by HP pwplus--don't use.
2122 else
2123 rm -rf conftest.one conftest.two conftest.dir
2124 echo one > conftest.one
2125 echo two > conftest.two
2126 mkdir conftest.dir
2127 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2128 test -s conftest.one && test -s conftest.two &&
2129 test -s conftest.dir/conftest.one &&
2130 test -s conftest.dir/conftest.two
2131 then
2132 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2133 break 3
2137 done
2138 done
2140 esac
2142 done
2143 IFS=$as_save_IFS
2145 rm -rf conftest.one conftest.two conftest.dir
2148 if test "${ac_cv_path_install+set}" = set; then
2149 INSTALL=$ac_cv_path_install
2150 else
2151 # As a last resort, use the slow shell script. Don't cache a
2152 # value for INSTALL within a source directory, because that will
2153 # break other packages using the cache if that directory is
2154 # removed, or if the value is a relative name.
2155 INSTALL=$ac_install_sh
2158 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2159 $as_echo "$INSTALL" >&6; }
2161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2162 # It thinks the first close brace ends the variable substitution.
2163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2169 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2170 $as_echo_n "checking whether build environment is sane... " >&6; }
2171 # Just in case
2172 sleep 1
2173 echo timestamp > conftest.file
2174 # Do `set' in a subshell so we don't clobber the current shell's
2175 # arguments. Must try -L first in case configure is actually a
2176 # symlink; some systems play weird games with the mod time of symlinks
2177 # (eg FreeBSD returns the mod time of the symlink's containing
2178 # directory).
2179 if (
2180 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2181 if test "$*" = "X"; then
2182 # -L didn't work.
2183 set X `ls -t $srcdir/configure conftest.file`
2185 rm -f conftest.file
2186 if test "$*" != "X $srcdir/configure conftest.file" \
2187 && test "$*" != "X conftest.file $srcdir/configure"; then
2189 # If neither matched, then we have a broken ls. This can happen
2190 # if, for instance, CONFIG_SHELL is bash and it inherits a
2191 # broken ls alias from the environment. This has actually
2192 # happened. Such a system could not be considered "sane".
2193 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2194 alias in your environment" >&5
2195 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2196 alias in your environment" >&2;}
2197 { (exit 1); exit 1; }; }
2200 test "$2" = conftest.file
2202 then
2203 # Ok.
2205 else
2206 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2207 Check your system clock" >&5
2208 $as_echo "$as_me: error: newly created file is older than distributed files!
2209 Check your system clock" >&2;}
2210 { (exit 1); exit 1; }; }
2212 { $as_echo "$as_me:$LINENO: result: yes" >&5
2213 $as_echo "yes" >&6; }
2214 test "$program_prefix" != NONE &&
2215 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2216 # Use a double $ so make ignores it.
2217 test "$program_suffix" != NONE &&
2218 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2219 # Double any \ or $.
2220 # By default was `s,x,x', remove it if useless.
2221 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2222 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2224 # expand $ac_aux_dir to an absolute path
2225 am_aux_dir=`cd $ac_aux_dir && pwd`
2227 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2228 # Use eval to expand $SHELL
2229 if eval "$MISSING --run true"; then
2230 am_missing_run="$MISSING --run "
2231 else
2232 am_missing_run=
2233 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2234 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2237 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2238 # We used to keeping the `.' as first argument, in order to
2239 # allow $(mkdir_p) to be used without argument. As in
2240 # $(mkdir_p) $(somedir)
2241 # where $(somedir) is conditionally defined. However this is wrong
2242 # for two reasons:
2243 # 1. if the package is installed by a user who cannot write `.'
2244 # make install will fail,
2245 # 2. the above comment should most certainly read
2246 # $(mkdir_p) $(DESTDIR)$(somedir)
2247 # so it does not work when $(somedir) is undefined and
2248 # $(DESTDIR) is not.
2249 # To support the latter case, we have to write
2250 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2251 # so the `.' trick is pointless.
2252 mkdir_p='mkdir -p --'
2253 else
2254 # On NextStep and OpenStep, the `mkdir' command does not
2255 # recognize any option. It will interpret all options as
2256 # directories to create, and then abort because `.' already
2257 # exists.
2258 for d in ./-p ./--version;
2260 test -d $d && rmdir $d
2261 done
2262 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2263 if test -f "$ac_aux_dir/mkinstalldirs"; then
2264 mkdir_p='$(mkinstalldirs)'
2265 else
2266 mkdir_p='$(install_sh) -d'
2270 for ac_prog in gawk mawk nawk awk
2272 # Extract the first word of "$ac_prog", so it can be a program name with args.
2273 set dummy $ac_prog; ac_word=$2
2274 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 $as_echo_n "checking for $ac_word... " >&6; }
2276 if test "${ac_cv_prog_AWK+set}" = set; then
2277 $as_echo_n "(cached) " >&6
2278 else
2279 if test -n "$AWK"; then
2280 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2281 else
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 for as_dir in $PATH
2285 IFS=$as_save_IFS
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2289 ac_cv_prog_AWK="$ac_prog"
2290 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 break 2
2293 done
2294 done
2295 IFS=$as_save_IFS
2299 AWK=$ac_cv_prog_AWK
2300 if test -n "$AWK"; then
2301 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2302 $as_echo "$AWK" >&6; }
2303 else
2304 { $as_echo "$as_me:$LINENO: result: no" >&5
2305 $as_echo "no" >&6; }
2309 test -n "$AWK" && break
2310 done
2312 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2313 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2314 set x ${MAKE-make}
2315 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2316 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2317 $as_echo_n "(cached) " >&6
2318 else
2319 cat >conftest.make <<\_ACEOF
2320 SHELL = /bin/sh
2321 all:
2322 @echo '@@@%%%=$(MAKE)=@@@%%%'
2323 _ACEOF
2324 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2325 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2326 *@@@%%%=?*=@@@%%%*)
2327 eval ac_cv_prog_make_${ac_make}_set=yes;;
2329 eval ac_cv_prog_make_${ac_make}_set=no;;
2330 esac
2331 rm -f conftest.make
2333 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2334 { $as_echo "$as_me:$LINENO: result: yes" >&5
2335 $as_echo "yes" >&6; }
2336 SET_MAKE=
2337 else
2338 { $as_echo "$as_me:$LINENO: result: no" >&5
2339 $as_echo "no" >&6; }
2340 SET_MAKE="MAKE=${MAKE-make}"
2343 rm -rf .tst 2>/dev/null
2344 mkdir .tst 2>/dev/null
2345 if test -d .tst; then
2346 am__leading_dot=.
2347 else
2348 am__leading_dot=_
2350 rmdir .tst 2>/dev/null
2352 # test to see if srcdir already configured
2353 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2354 test -f $srcdir/config.status; then
2355 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2356 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2357 { (exit 1); exit 1; }; }
2360 # test whether we have cygpath
2361 if test -z "$CYGPATH_W"; then
2362 if (cygpath --version) >/dev/null 2>/dev/null; then
2363 CYGPATH_W='cygpath -w'
2364 else
2365 CYGPATH_W=echo
2370 # Define the identity of the package.
2371 PACKAGE=cloog
2372 VERSION=0.15
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE "$PACKAGE"
2377 _ACEOF
2380 cat >>confdefs.h <<_ACEOF
2381 #define VERSION "$VERSION"
2382 _ACEOF
2384 # Some tools Automake needs.
2386 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2389 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2392 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2395 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2398 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2400 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2402 # Installed binaries are usually stripped using `strip' when the user
2403 # run `make install-strip'. However `strip' might not be the right
2404 # tool to use in cross-compilation environments, therefore Automake
2405 # will honor the `STRIP' environment variable to overrule this program.
2406 if test "$cross_compiling" != no; then
2407 if test -n "$ac_tool_prefix"; then
2408 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2409 set dummy ${ac_tool_prefix}strip; ac_word=$2
2410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 $as_echo_n "checking for $ac_word... " >&6; }
2412 if test "${ac_cv_prog_STRIP+set}" = set; then
2413 $as_echo_n "(cached) " >&6
2414 else
2415 if test -n "$STRIP"; then
2416 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 break 2
2429 done
2430 done
2431 IFS=$as_save_IFS
2435 STRIP=$ac_cv_prog_STRIP
2436 if test -n "$STRIP"; then
2437 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2438 $as_echo "$STRIP" >&6; }
2439 else
2440 { $as_echo "$as_me:$LINENO: result: no" >&5
2441 $as_echo "no" >&6; }
2446 if test -z "$ac_cv_prog_STRIP"; then
2447 ac_ct_STRIP=$STRIP
2448 # Extract the first word of "strip", so it can be a program name with args.
2449 set dummy strip; ac_word=$2
2450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2451 $as_echo_n "checking for $ac_word... " >&6; }
2452 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2453 $as_echo_n "(cached) " >&6
2454 else
2455 if test -n "$ac_ct_STRIP"; then
2456 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2457 else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465 ac_cv_prog_ac_ct_STRIP="strip"
2466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 break 2
2469 done
2470 done
2471 IFS=$as_save_IFS
2475 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2476 if test -n "$ac_ct_STRIP"; then
2477 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2478 $as_echo "$ac_ct_STRIP" >&6; }
2479 else
2480 { $as_echo "$as_me:$LINENO: result: no" >&5
2481 $as_echo "no" >&6; }
2484 if test "x$ac_ct_STRIP" = x; then
2485 STRIP=":"
2486 else
2487 case $cross_compiling:$ac_tool_warned in
2488 yes:)
2489 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2491 ac_tool_warned=yes ;;
2492 esac
2493 STRIP=$ac_ct_STRIP
2495 else
2496 STRIP="$ac_cv_prog_STRIP"
2500 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2502 # We need awk for the "check" target. The system "awk" is bad on
2503 # some platforms.
2504 # Always define AMTAR for backward compatibility.
2506 AMTAR=${AMTAR-"${am_missing_run}tar"}
2508 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2514 ac_config_headers="$ac_config_headers include/cloog/cloog-config.h"
2517 BITS="64"
2521 # Version number machinery.
2522 if test -n "`expr $VERSION : '\([0-9]*\)\.[0-9]*\.[0-9]*'`"
2523 then
2524 CLOOG_VERSION_MAJOR=`expr $VERSION : '\([0-9]*\)\.[0-9]*\.[0-9]*'`
2525 CLOOG_VERSION_MINOR=`expr $VERSION : '[0-9]*\.\([0-9]*\)\.[0-9]*'`
2526 CLOOG_VERSION_REVISION=`expr $VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2527 CLOOG_VERSION_BETA=`expr $VERSION : '[0-9]*\.[0-9]*\.[0-9]*pre\([0-9]*\)'`
2528 else
2529 CLOOG_VERSION_MAJOR=`expr $VERSION : '\([0-9]*\)\.[0-9]*'`
2530 CLOOG_VERSION_MINOR=`expr $VERSION : '[0-9]*\.\([0-9]*\)'`
2531 CLOOG_VERSION_REVISION=0
2532 CLOOG_VERSION_BETA=`expr $VERSION : '[0-9]*\.[0-9]*pre\([0-9]*\)'`
2534 if test -z "$CLOOG_VERSION_BETA"
2535 then
2536 CLOOG_VERSION_BETA=0
2545 ac_ext=c
2546 ac_cpp='$CPP $CPPFLAGS'
2547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2572 done
2573 done
2574 IFS=$as_save_IFS
2578 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2581 $as_echo "$CC" >&6; }
2582 else
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2589 if test -z "$ac_cv_prog_CC"; then
2590 ac_ct_CC=$CC
2591 # Extract the first word of "gcc", so it can be a program name with args.
2592 set dummy gcc; ac_word=$2
2593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2596 $as_echo_n "(cached) " >&6
2597 else
2598 if test -n "$ac_ct_CC"; then
2599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_ac_ct_CC="gcc"
2609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 break 2
2612 done
2613 done
2614 IFS=$as_save_IFS
2618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2619 if test -n "$ac_ct_CC"; then
2620 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2621 $as_echo "$ac_ct_CC" >&6; }
2622 else
2623 { $as_echo "$as_me:$LINENO: result: no" >&5
2624 $as_echo "no" >&6; }
2627 if test "x$ac_ct_CC" = x; then
2628 CC=""
2629 else
2630 case $cross_compiling:$ac_tool_warned in
2631 yes:)
2632 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2634 ac_tool_warned=yes ;;
2635 esac
2636 CC=$ac_ct_CC
2638 else
2639 CC="$ac_cv_prog_CC"
2642 if test -z "$CC"; then
2643 if test -n "$ac_tool_prefix"; then
2644 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}cc; ac_word=$2
2646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_CC+set}" = set; then
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_CC="${ac_tool_prefix}cc"
2662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2665 done
2666 done
2667 IFS=$as_save_IFS
2671 CC=$ac_cv_prog_CC
2672 if test -n "$CC"; then
2673 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2674 $as_echo "$CC" >&6; }
2675 else
2676 { $as_echo "$as_me:$LINENO: result: no" >&5
2677 $as_echo "no" >&6; }
2683 if test -z "$CC"; then
2684 # Extract the first word of "cc", so it can be a program name with args.
2685 set dummy cc; ac_word=$2
2686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then
2689 $as_echo_n "(cached) " >&6
2690 else
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2693 else
2694 ac_prog_rejected=no
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2703 ac_prog_rejected=yes
2704 continue
2706 ac_cv_prog_CC="cc"
2707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 break 2
2710 done
2711 done
2712 IFS=$as_save_IFS
2714 if test $ac_prog_rejected = yes; then
2715 # We found a bogon in the path, so make sure we never use it.
2716 set dummy $ac_cv_prog_CC
2717 shift
2718 if test $# != 0; then
2719 # We chose a different compiler from the bogus one.
2720 # However, it has the same basename, so the bogon will be chosen
2721 # first if we set CC to just the basename; use the full file name.
2722 shift
2723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2728 CC=$ac_cv_prog_CC
2729 if test -n "$CC"; then
2730 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2731 $as_echo "$CC" >&6; }
2732 else
2733 { $as_echo "$as_me:$LINENO: result: no" >&5
2734 $as_echo "no" >&6; }
2739 if test -z "$CC"; then
2740 if test -n "$ac_tool_prefix"; then
2741 for ac_prog in cl.exe
2743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748 $as_echo_n "(cached) " >&6
2749 else
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2764 done
2765 done
2766 IFS=$as_save_IFS
2770 CC=$ac_cv_prog_CC
2771 if test -n "$CC"; then
2772 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2773 $as_echo "$CC" >&6; }
2774 else
2775 { $as_echo "$as_me:$LINENO: result: no" >&5
2776 $as_echo "no" >&6; }
2780 test -n "$CC" && break
2781 done
2783 if test -z "$CC"; then
2784 ac_ct_CC=$CC
2785 for ac_prog in cl.exe
2787 # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2792 $as_echo_n "(cached) " >&6
2793 else
2794 if test -n "$ac_ct_CC"; then
2795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 ac_cv_prog_ac_ct_CC="$ac_prog"
2805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2808 done
2809 done
2810 IFS=$as_save_IFS
2814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2815 if test -n "$ac_ct_CC"; then
2816 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2817 $as_echo "$ac_ct_CC" >&6; }
2818 else
2819 { $as_echo "$as_me:$LINENO: result: no" >&5
2820 $as_echo "no" >&6; }
2824 test -n "$ac_ct_CC" && break
2825 done
2827 if test "x$ac_ct_CC" = x; then
2828 CC=""
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831 yes:)
2832 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2835 esac
2836 CC=$ac_ct_CC
2843 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2845 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2846 See \`config.log' for more details." >&5
2847 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2848 See \`config.log' for more details." >&2;}
2849 { (exit 1); exit 1; }; }; }
2851 # Provide some information about the compiler.
2852 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2853 set X $ac_compile
2854 ac_compiler=$2
2855 { (ac_try="$ac_compiler --version >&5"
2856 case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859 esac
2860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2861 $as_echo "$ac_try_echo") >&5
2862 (eval "$ac_compiler --version >&5") 2>&5
2863 ac_status=$?
2864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }
2866 { (ac_try="$ac_compiler -v >&5"
2867 case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870 esac
2871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872 $as_echo "$ac_try_echo") >&5
2873 (eval "$ac_compiler -v >&5") 2>&5
2874 ac_status=$?
2875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }
2877 { (ac_try="$ac_compiler -V >&5"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2883 $as_echo "$ac_try_echo") >&5
2884 (eval "$ac_compiler -V >&5") 2>&5
2885 ac_status=$?
2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }
2889 cat >conftest.$ac_ext <<_ACEOF
2890 /* confdefs.h. */
2891 _ACEOF
2892 cat confdefs.h >>conftest.$ac_ext
2893 cat >>conftest.$ac_ext <<_ACEOF
2894 /* end confdefs.h. */
2897 main ()
2901 return 0;
2903 _ACEOF
2904 ac_clean_files_save=$ac_clean_files
2905 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2906 # Try to create an executable without -o first, disregard a.out.
2907 # It will help us diagnose broken compilers, and finding out an intuition
2908 # of exeext.
2909 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2910 $as_echo_n "checking for C compiler default output file name... " >&6; }
2911 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2913 # The possible output files:
2914 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2916 ac_rmfiles=
2917 for ac_file in $ac_files
2919 case $ac_file in
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2921 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2922 esac
2923 done
2924 rm -f $ac_rmfiles
2926 if { (ac_try="$ac_link_default"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932 $as_echo "$ac_try_echo") >&5
2933 (eval "$ac_link_default") 2>&5
2934 ac_status=$?
2935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; then
2937 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2938 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2939 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2940 # so that the user can short-circuit this test for compilers unknown to
2941 # Autoconf.
2942 for ac_file in $ac_files ''
2944 test -f "$ac_file" || continue
2945 case $ac_file in
2946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2948 [ab].out )
2949 # We found the default executable, but exeext='' is most
2950 # certainly right.
2951 break;;
2952 *.* )
2953 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2954 then :; else
2955 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2957 # We set ac_cv_exeext here because the later test for it is not
2958 # safe: cross compilers may not add the suffix if given an `-o'
2959 # argument, so we may need to know it at that point already.
2960 # Even if this section looks crufty: it has the advantage of
2961 # actually working.
2962 break;;
2964 break;;
2965 esac
2966 done
2967 test "$ac_cv_exeext" = no && ac_cv_exeext=
2969 else
2970 ac_file=''
2973 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2974 $as_echo "$ac_file" >&6; }
2975 if test -z "$ac_file"; then
2976 $as_echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2982 See \`config.log' for more details." >&5
2983 $as_echo "$as_me: error: C compiler cannot create executables
2984 See \`config.log' for more details." >&2;}
2985 { (exit 77); exit 77; }; }; }
2988 ac_exeext=$ac_cv_exeext
2990 # Check that the compiler produces executables we can run. If not, either
2991 # the compiler is broken, or we cross compile.
2992 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2993 $as_echo_n "checking whether the C compiler works... " >&6; }
2994 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2995 # If not cross compiling, check that we can run a simple program.
2996 if test "$cross_compiling" != yes; then
2997 if { ac_try='./$ac_file'
2998 { (case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3003 $as_echo "$ac_try_echo") >&5
3004 (eval "$ac_try") 2>&5
3005 ac_status=$?
3006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3008 cross_compiling=no
3009 else
3010 if test "$cross_compiling" = maybe; then
3011 cross_compiling=yes
3012 else
3013 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3016 If you meant to cross compile, use \`--host'.
3017 See \`config.log' for more details." >&5
3018 $as_echo "$as_me: error: cannot run C compiled programs.
3019 If you meant to cross compile, use \`--host'.
3020 See \`config.log' for more details." >&2;}
3021 { (exit 1); exit 1; }; }; }
3025 { $as_echo "$as_me:$LINENO: result: yes" >&5
3026 $as_echo "yes" >&6; }
3028 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3029 ac_clean_files=$ac_clean_files_save
3030 # Check that the compiler produces executables we can run. If not, either
3031 # the compiler is broken, or we cross compile.
3032 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3033 $as_echo_n "checking whether we are cross compiling... " >&6; }
3034 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3035 $as_echo "$cross_compiling" >&6; }
3037 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3038 $as_echo_n "checking for suffix of executables... " >&6; }
3039 if { (ac_try="$ac_link"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046 (eval "$ac_link") 2>&5
3047 ac_status=$?
3048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; then
3050 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3051 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3052 # work properly (i.e., refer to `conftest.exe'), while it won't with
3053 # `rm'.
3054 for ac_file in conftest.exe conftest conftest.*; do
3055 test -f "$ac_file" || continue
3056 case $ac_file in
3057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3059 break;;
3060 * ) break;;
3061 esac
3062 done
3063 else
3064 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3067 See \`config.log' for more details." >&5
3068 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }; }
3073 rm -f conftest$ac_cv_exeext
3074 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3075 $as_echo "$ac_cv_exeext" >&6; }
3077 rm -f conftest.$ac_ext
3078 EXEEXT=$ac_cv_exeext
3079 ac_exeext=$EXEEXT
3080 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3081 $as_echo_n "checking for suffix of object files... " >&6; }
3082 if test "${ac_cv_objext+set}" = set; then
3083 $as_echo_n "(cached) " >&6
3084 else
3085 cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h. */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3093 main ()
3097 return 0;
3099 _ACEOF
3100 rm -f conftest.o conftest.obj
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3105 esac
3106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3107 $as_echo "$ac_try_echo") >&5
3108 (eval "$ac_compile") 2>&5
3109 ac_status=$?
3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; then
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3117 break;;
3118 esac
3119 done
3120 else
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3127 See \`config.log' for more details." >&5
3128 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3129 See \`config.log' for more details." >&2;}
3130 { (exit 1); exit 1; }; }; }
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3136 $as_echo "$ac_cv_objext" >&6; }
3137 OBJEXT=$ac_cv_objext
3138 ac_objext=$OBJEXT
3139 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3141 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3143 else
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3152 main ()
3154 #ifndef __GNUC__
3155 choke me
3156 #endif
3159 return 0;
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3169 $as_echo "$ac_try_echo") >&5
3170 (eval "$ac_compile") 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
3180 ac_compiler_gnu=yes
3181 else
3182 $as_echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3185 ac_compiler_gnu=no
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3192 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3193 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3194 if test $ac_compiler_gnu = yes; then
3195 GCC=yes
3196 else
3197 GCC=
3199 ac_test_CFLAGS=${CFLAGS+set}
3200 ac_save_CFLAGS=$CFLAGS
3201 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3202 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3203 if test "${ac_cv_prog_cc_g+set}" = set; then
3204 $as_echo_n "(cached) " >&6
3205 else
3206 ac_save_c_werror_flag=$ac_c_werror_flag
3207 ac_c_werror_flag=yes
3208 ac_cv_prog_cc_g=no
3209 CFLAGS="-g"
3210 cat >conftest.$ac_ext <<_ACEOF
3211 /* confdefs.h. */
3212 _ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3218 main ()
3222 return 0;
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230 esac
3231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232 $as_echo "$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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3243 ac_cv_prog_cc_g=yes
3244 else
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 CFLAGS=""
3249 cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h. */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3257 main ()
3261 return 0;
3263 _ACEOF
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3266 case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3283 else
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3288 CFLAGS="-g"
3289 cat >conftest.$ac_ext <<_ACEOF
3290 /* confdefs.h. */
3291 _ACEOF
3292 cat confdefs.h >>conftest.$ac_ext
3293 cat >>conftest.$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3297 main ()
3301 return 0;
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309 esac
3310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3311 $as_echo "$ac_try_echo") >&5
3312 (eval "$ac_compile") 2>conftest.er1
3313 ac_status=$?
3314 grep -v '^ *+' conftest.er1 >conftest.err
3315 rm -f conftest.er1
3316 cat conftest.err >&5
3317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } && {
3319 test -z "$ac_c_werror_flag" ||
3320 test ! -s conftest.err
3321 } && test -s conftest.$ac_objext; then
3322 ac_cv_prog_cc_g=yes
3323 else
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 ac_c_werror_flag=$ac_save_c_werror_flag
3339 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3340 $as_echo "$ac_cv_prog_cc_g" >&6; }
3341 if test "$ac_test_CFLAGS" = set; then
3342 CFLAGS=$ac_save_CFLAGS
3343 elif test $ac_cv_prog_cc_g = yes; then
3344 if test "$GCC" = yes; then
3345 CFLAGS="-g -O2"
3346 else
3347 CFLAGS="-g"
3349 else
3350 if test "$GCC" = yes; then
3351 CFLAGS="-O2"
3352 else
3353 CFLAGS=
3356 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3357 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3358 if test "${ac_cv_prog_cc_c89+set}" = set; then
3359 $as_echo_n "(cached) " >&6
3360 else
3361 ac_cv_prog_cc_c89=no
3362 ac_save_CC=$CC
3363 cat >conftest.$ac_ext <<_ACEOF
3364 /* confdefs.h. */
3365 _ACEOF
3366 cat confdefs.h >>conftest.$ac_ext
3367 cat >>conftest.$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369 #include <stdarg.h>
3370 #include <stdio.h>
3371 #include <sys/types.h>
3372 #include <sys/stat.h>
3373 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3374 struct buf { int x; };
3375 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3376 static char *e (p, i)
3377 char **p;
3378 int i;
3380 return p[i];
3382 static char *f (char * (*g) (char **, int), char **p, ...)
3384 char *s;
3385 va_list v;
3386 va_start (v,p);
3387 s = g (p, va_arg (v,int));
3388 va_end (v);
3389 return s;
3392 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3393 function prototypes and stuff, but not '\xHH' hex character constants.
3394 These don't provoke an error unfortunately, instead are silently treated
3395 as 'x'. The following induces an error, until -std is added to get
3396 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3397 array size at least. It's necessary to write '\x00'==0 to get something
3398 that's true only with -std. */
3399 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3401 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3402 inside strings and character constants. */
3403 #define FOO(x) 'x'
3404 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3406 int test (int i, double x);
3407 struct s1 {int (*f) (int a);};
3408 struct s2 {int (*f) (double a);};
3409 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3410 int argc;
3411 char **argv;
3413 main ()
3415 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3417 return 0;
3419 _ACEOF
3420 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3421 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3423 CC="$ac_save_CC $ac_arg"
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432 (eval "$ac_compile") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } && {
3439 test -z "$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 } && test -s conftest.$ac_objext; then
3442 ac_cv_prog_cc_c89=$ac_arg
3443 else
3444 $as_echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3450 rm -f core conftest.err conftest.$ac_objext
3451 test "x$ac_cv_prog_cc_c89" != "xno" && break
3452 done
3453 rm -f conftest.$ac_ext
3454 CC=$ac_save_CC
3457 # AC_CACHE_VAL
3458 case "x$ac_cv_prog_cc_c89" in
3460 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3461 $as_echo "none needed" >&6; } ;;
3462 xno)
3463 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3464 $as_echo "unsupported" >&6; } ;;
3466 CC="$CC $ac_cv_prog_cc_c89"
3467 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3469 esac
3472 ac_ext=c
3473 ac_cpp='$CPP $CPPFLAGS'
3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477 DEPDIR="${am__leading_dot}deps"
3479 ac_config_commands="$ac_config_commands depfiles"
3482 am_make=${MAKE-make}
3483 cat > confinc << 'END'
3484 am__doit:
3485 @echo done
3486 .PHONY: am__doit
3488 # If we don't find an include directive, just comment out the code.
3489 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3490 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3491 am__include="#"
3492 am__quote=
3493 _am_result=none
3494 # First try GNU make style include.
3495 echo "include confinc" > confmf
3496 # We grep out `Entering directory' and `Leaving directory'
3497 # messages which can occur if `w' ends up in MAKEFLAGS.
3498 # In particular we don't look at `^make:' because GNU make might
3499 # be invoked under some other name (usually "gmake"), in which
3500 # case it prints its new name instead of `make'.
3501 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3502 am__include=include
3503 am__quote=
3504 _am_result=GNU
3506 # Now try BSD make style include.
3507 if test "$am__include" = "#"; then
3508 echo '.include "confinc"' > confmf
3509 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3510 am__include=.include
3511 am__quote="\""
3512 _am_result=BSD
3517 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3518 $as_echo "$_am_result" >&6; }
3519 rm -f confinc confmf
3521 # Check whether --enable-dependency-tracking was given.
3522 if test "${enable_dependency_tracking+set}" = set; then
3523 enableval=$enable_dependency_tracking;
3526 if test "x$enable_dependency_tracking" != xno; then
3527 am_depcomp="$ac_aux_dir/depcomp"
3528 AMDEPBACKSLASH='\'
3532 if test "x$enable_dependency_tracking" != xno; then
3533 AMDEP_TRUE=
3534 AMDEP_FALSE='#'
3535 else
3536 AMDEP_TRUE='#'
3537 AMDEP_FALSE=
3543 depcc="$CC" am_compiler_list=
3545 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3546 $as_echo_n "checking dependency style of $depcc... " >&6; }
3547 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3551 # We make a subdir and do the tests there. Otherwise we can end up
3552 # making bogus files that we don't know about and never remove. For
3553 # instance it was reported that on HP-UX the gcc test will end up
3554 # making a dummy file named `D' -- because `-MD' means `put the output
3555 # in D'.
3556 mkdir conftest.dir
3557 # Copy depcomp to subdir because otherwise we won't find it if we're
3558 # using a relative directory.
3559 cp "$am_depcomp" conftest.dir
3560 cd conftest.dir
3561 # We will build objects and dependencies in a subdirectory because
3562 # it helps to detect inapplicable dependency modes. For instance
3563 # both Tru64's cc and ICC support -MD to output dependencies as a
3564 # side effect of compilation, but ICC will put the dependencies in
3565 # the current directory while Tru64 will put them in the object
3566 # directory.
3567 mkdir sub
3569 am_cv_CC_dependencies_compiler_type=none
3570 if test "$am_compiler_list" = ""; then
3571 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3573 for depmode in $am_compiler_list; do
3574 # Setup a source with many dependencies, because some compilers
3575 # like to wrap large dependency lists on column 80 (with \), and
3576 # we should not choose a depcomp mode which is confused by this.
3578 # We need to recreate these files for each test, as the compiler may
3579 # overwrite some of them when testing with obscure command lines.
3580 # This happens at least with the AIX C compiler.
3581 : > sub/conftest.c
3582 for i in 1 2 3 4 5 6; do
3583 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3584 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3585 # Solaris 8's {/usr,}/bin/sh.
3586 touch sub/conftst$i.h
3587 done
3588 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3590 case $depmode in
3591 nosideeffect)
3592 # after this tag, mechanisms are not by side-effect, so they'll
3593 # only be used when explicitly requested
3594 if test "x$enable_dependency_tracking" = xyes; then
3595 continue
3596 else
3597 break
3600 none) break ;;
3601 esac
3602 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3603 # mode. It turns out that the SunPro C++ compiler does not properly
3604 # handle `-M -o', and we need to detect this.
3605 if depmode=$depmode \
3606 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3608 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3609 >/dev/null 2>conftest.err &&
3610 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3611 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3612 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3613 # icc doesn't choke on unknown options, it will just issue warnings
3614 # or remarks (even with -Werror). So we grep stderr for any message
3615 # that says an option was ignored or not supported.
3616 # When given -MP, icc 7.0 and 7.1 complain thusly:
3617 # icc: Command line warning: ignoring option '-M'; no argument required
3618 # The diagnosis changed in icc 8.0:
3619 # icc: Command line remark: option '-MP' not supported
3620 if (grep 'ignoring option' conftest.err ||
3621 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3622 am_cv_CC_dependencies_compiler_type=$depmode
3623 break
3626 done
3628 cd ..
3629 rm -rf conftest.dir
3630 else
3631 am_cv_CC_dependencies_compiler_type=none
3635 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3636 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3637 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3642 test "x$enable_dependency_tracking" != xno \
3643 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3644 am__fastdepCC_TRUE=
3645 am__fastdepCC_FALSE='#'
3646 else
3647 am__fastdepCC_TRUE='#'
3648 am__fastdepCC_FALSE=
3652 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3653 $as_echo_n "checking whether ln -s works... " >&6; }
3654 LN_S=$as_ln_s
3655 if test "$LN_S" = "ln -s"; then
3656 { $as_echo "$as_me:$LINENO: result: yes" >&5
3657 $as_echo "yes" >&6; }
3658 else
3659 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3660 $as_echo "no, using $LN_S" >&6; }
3663 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3664 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3665 set x ${MAKE-make}
3666 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3667 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3668 $as_echo_n "(cached) " >&6
3669 else
3670 cat >conftest.make <<\_ACEOF
3671 SHELL = /bin/sh
3672 all:
3673 @echo '@@@%%%=$(MAKE)=@@@%%%'
3674 _ACEOF
3675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3676 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3677 *@@@%%%=?*=@@@%%%*)
3678 eval ac_cv_prog_make_${ac_make}_set=yes;;
3680 eval ac_cv_prog_make_${ac_make}_set=no;;
3681 esac
3682 rm -f conftest.make
3684 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3685 { $as_echo "$as_me:$LINENO: result: yes" >&5
3686 $as_echo "yes" >&6; }
3687 SET_MAKE=
3688 else
3689 { $as_echo "$as_me:$LINENO: result: no" >&5
3690 $as_echo "no" >&6; }
3691 SET_MAKE="MAKE=${MAKE-make}"
3694 # Extract the first word of "cd", so it can be a program name with args.
3695 set dummy cd; ac_word=$2
3696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_CD+set}" = set; then
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -n "$CD"; then
3702 ac_cv_prog_CD="$CD" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_CD=""
3712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 break 2
3715 done
3716 done
3717 IFS=$as_save_IFS
3721 CD=$ac_cv_prog_CD
3722 if test -n "$CD"; then
3723 { $as_echo "$as_me:$LINENO: result: $CD" >&5
3724 $as_echo "$CD" >&6; }
3725 else
3726 { $as_echo "$as_me:$LINENO: result: no" >&5
3727 $as_echo "no" >&6; }
3731 # Find a good install program. We prefer a C program (faster),
3732 # so one script is as good as another. But avoid the broken or
3733 # incompatible versions:
3734 # SysV /etc/install, /usr/sbin/install
3735 # SunOS /usr/etc/install
3736 # IRIX /sbin/install
3737 # AIX /bin/install
3738 # AmigaOS /C/install, which installs bootblocks on floppy discs
3739 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3740 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3741 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3742 # OS/2's system install, which has a completely different semantic
3743 # ./install, which can be erroneously created by make from ./install.sh.
3744 # Reject install programs that cannot install multiple files.
3745 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3746 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3747 if test -z "$INSTALL"; then
3748 if test "${ac_cv_path_install+set}" = set; then
3749 $as_echo_n "(cached) " >&6
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 # Account for people who put trailing slashes in PATH elements.
3757 case $as_dir/ in
3758 ./ | .// | /cC/* | \
3759 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3760 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3761 /usr/ucb/* ) ;;
3763 # OSF1 and SCO ODT 3.0 have their own names for install.
3764 # Don't use installbsd from OSF since it installs stuff as root
3765 # by default.
3766 for ac_prog in ginstall scoinst install; do
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3769 if test $ac_prog = install &&
3770 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3771 # AIX install. It has an incompatible calling convention.
3773 elif test $ac_prog = install &&
3774 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3775 # program-specific install script used by HP pwplus--don't use.
3777 else
3778 rm -rf conftest.one conftest.two conftest.dir
3779 echo one > conftest.one
3780 echo two > conftest.two
3781 mkdir conftest.dir
3782 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3783 test -s conftest.one && test -s conftest.two &&
3784 test -s conftest.dir/conftest.one &&
3785 test -s conftest.dir/conftest.two
3786 then
3787 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3788 break 3
3792 done
3793 done
3795 esac
3797 done
3798 IFS=$as_save_IFS
3800 rm -rf conftest.one conftest.two conftest.dir
3803 if test "${ac_cv_path_install+set}" = set; then
3804 INSTALL=$ac_cv_path_install
3805 else
3806 # As a last resort, use the slow shell script. Don't cache a
3807 # value for INSTALL within a source directory, because that will
3808 # break other packages using the cache if that directory is
3809 # removed, or if the value is a relative name.
3810 INSTALL=$ac_install_sh
3813 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3814 $as_echo "$INSTALL" >&6; }
3816 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3817 # It thinks the first close brace ends the variable substitution.
3818 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3820 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3822 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3824 case `pwd` in
3825 *\ * | *\ *)
3826 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3827 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3828 esac
3832 macro_version='2.2.6'
3833 macro_revision='1.3012'
3847 ltmain="$ac_aux_dir/ltmain.sh"
3849 # Make sure we can run config.sub.
3850 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3851 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3852 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3853 { (exit 1); exit 1; }; }
3855 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3856 $as_echo_n "checking build system type... " >&6; }
3857 if test "${ac_cv_build+set}" = set; then
3858 $as_echo_n "(cached) " >&6
3859 else
3860 ac_build_alias=$build_alias
3861 test "x$ac_build_alias" = x &&
3862 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3863 test "x$ac_build_alias" = x &&
3864 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3865 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3866 { (exit 1); exit 1; }; }
3867 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3868 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3869 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3870 { (exit 1); exit 1; }; }
3873 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3874 $as_echo "$ac_cv_build" >&6; }
3875 case $ac_cv_build in
3876 *-*-*) ;;
3877 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3878 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3879 { (exit 1); exit 1; }; };;
3880 esac
3881 build=$ac_cv_build
3882 ac_save_IFS=$IFS; IFS='-'
3883 set x $ac_cv_build
3884 shift
3885 build_cpu=$1
3886 build_vendor=$2
3887 shift; shift
3888 # Remember, the first character of IFS is used to create $*,
3889 # except with old shells:
3890 build_os=$*
3891 IFS=$ac_save_IFS
3892 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3895 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3896 $as_echo_n "checking host system type... " >&6; }
3897 if test "${ac_cv_host+set}" = set; then
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test "x$host_alias" = x; then
3901 ac_cv_host=$ac_cv_build
3902 else
3903 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3904 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3905 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3906 { (exit 1); exit 1; }; }
3910 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3911 $as_echo "$ac_cv_host" >&6; }
3912 case $ac_cv_host in
3913 *-*-*) ;;
3914 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3915 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3916 { (exit 1); exit 1; }; };;
3917 esac
3918 host=$ac_cv_host
3919 ac_save_IFS=$IFS; IFS='-'
3920 set x $ac_cv_host
3921 shift
3922 host_cpu=$1
3923 host_vendor=$2
3924 shift; shift
3925 # Remember, the first character of IFS is used to create $*,
3926 # except with old shells:
3927 host_os=$*
3928 IFS=$ac_save_IFS
3929 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3932 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3933 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3934 if test "${ac_cv_path_SED+set}" = set; then
3935 $as_echo_n "(cached) " >&6
3936 else
3937 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3938 for ac_i in 1 2 3 4 5 6 7; do
3939 ac_script="$ac_script$as_nl$ac_script"
3940 done
3941 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3942 $as_unset ac_script || ac_script=
3943 if test -z "$SED"; then
3944 ac_path_SED_found=false
3945 # Loop through the user's path and test for each of PROGNAME-LIST
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_prog in sed gsed; do
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3954 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3955 # Check for GNU ac_path_SED and select it if it is found.
3956 # Check for GNU $ac_path_SED
3957 case `"$ac_path_SED" --version 2>&1` in
3958 *GNU*)
3959 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3961 ac_count=0
3962 $as_echo_n 0123456789 >"conftest.in"
3963 while :
3965 cat "conftest.in" "conftest.in" >"conftest.tmp"
3966 mv "conftest.tmp" "conftest.in"
3967 cp "conftest.in" "conftest.nl"
3968 $as_echo '' >> "conftest.nl"
3969 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971 ac_count=`expr $ac_count + 1`
3972 if test $ac_count -gt ${ac_path_SED_max-0}; then
3973 # Best one so far, save it but keep looking for a better one
3974 ac_cv_path_SED="$ac_path_SED"
3975 ac_path_SED_max=$ac_count
3977 # 10*(2^10) chars as input seems more than enough
3978 test $ac_count -gt 10 && break
3979 done
3980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981 esac
3983 $ac_path_SED_found && break 3
3984 done
3985 done
3986 done
3987 IFS=$as_save_IFS
3988 if test -z "$ac_cv_path_SED"; then
3989 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3990 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3991 { (exit 1); exit 1; }; }
3993 else
3994 ac_cv_path_SED=$SED
3998 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3999 $as_echo "$ac_cv_path_SED" >&6; }
4000 SED="$ac_cv_path_SED"
4001 rm -f conftest.sed
4003 test -z "$SED" && SED=sed
4004 Xsed="$SED -e 1s/^X//"
4016 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4017 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4018 if test "${ac_cv_path_GREP+set}" = set; then
4019 $as_echo_n "(cached) " >&6
4020 else
4021 if test -z "$GREP"; then
4022 ac_path_GREP_found=false
4023 # Loop through the user's path and test for each of PROGNAME-LIST
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_prog in grep ggrep; do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4032 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4033 # Check for GNU ac_path_GREP and select it if it is found.
4034 # Check for GNU $ac_path_GREP
4035 case `"$ac_path_GREP" --version 2>&1` in
4036 *GNU*)
4037 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4039 ac_count=0
4040 $as_echo_n 0123456789 >"conftest.in"
4041 while :
4043 cat "conftest.in" "conftest.in" >"conftest.tmp"
4044 mv "conftest.tmp" "conftest.in"
4045 cp "conftest.in" "conftest.nl"
4046 $as_echo 'GREP' >> "conftest.nl"
4047 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4049 ac_count=`expr $ac_count + 1`
4050 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4051 # Best one so far, save it but keep looking for a better one
4052 ac_cv_path_GREP="$ac_path_GREP"
4053 ac_path_GREP_max=$ac_count
4055 # 10*(2^10) chars as input seems more than enough
4056 test $ac_count -gt 10 && break
4057 done
4058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059 esac
4061 $ac_path_GREP_found && break 3
4062 done
4063 done
4064 done
4065 IFS=$as_save_IFS
4066 if test -z "$ac_cv_path_GREP"; then
4067 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4068 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4069 { (exit 1); exit 1; }; }
4071 else
4072 ac_cv_path_GREP=$GREP
4076 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4077 $as_echo "$ac_cv_path_GREP" >&6; }
4078 GREP="$ac_cv_path_GREP"
4081 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4082 $as_echo_n "checking for egrep... " >&6; }
4083 if test "${ac_cv_path_EGREP+set}" = set; then
4084 $as_echo_n "(cached) " >&6
4085 else
4086 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4087 then ac_cv_path_EGREP="$GREP -E"
4088 else
4089 if test -z "$EGREP"; then
4090 ac_path_EGREP_found=false
4091 # Loop through the user's path and test for each of PROGNAME-LIST
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_prog in egrep; do
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4100 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4101 # Check for GNU ac_path_EGREP and select it if it is found.
4102 # Check for GNU $ac_path_EGREP
4103 case `"$ac_path_EGREP" --version 2>&1` in
4104 *GNU*)
4105 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4107 ac_count=0
4108 $as_echo_n 0123456789 >"conftest.in"
4109 while :
4111 cat "conftest.in" "conftest.in" >"conftest.tmp"
4112 mv "conftest.tmp" "conftest.in"
4113 cp "conftest.in" "conftest.nl"
4114 $as_echo 'EGREP' >> "conftest.nl"
4115 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4117 ac_count=`expr $ac_count + 1`
4118 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4119 # Best one so far, save it but keep looking for a better one
4120 ac_cv_path_EGREP="$ac_path_EGREP"
4121 ac_path_EGREP_max=$ac_count
4123 # 10*(2^10) chars as input seems more than enough
4124 test $ac_count -gt 10 && break
4125 done
4126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4127 esac
4129 $ac_path_EGREP_found && break 3
4130 done
4131 done
4132 done
4133 IFS=$as_save_IFS
4134 if test -z "$ac_cv_path_EGREP"; then
4135 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4136 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4137 { (exit 1); exit 1; }; }
4139 else
4140 ac_cv_path_EGREP=$EGREP
4145 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4146 $as_echo "$ac_cv_path_EGREP" >&6; }
4147 EGREP="$ac_cv_path_EGREP"
4150 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4151 $as_echo_n "checking for fgrep... " >&6; }
4152 if test "${ac_cv_path_FGREP+set}" = set; then
4153 $as_echo_n "(cached) " >&6
4154 else
4155 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4156 then ac_cv_path_FGREP="$GREP -F"
4157 else
4158 if test -z "$FGREP"; then
4159 ac_path_FGREP_found=false
4160 # Loop through the user's path and test for each of PROGNAME-LIST
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_prog in fgrep; do
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4169 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4170 # Check for GNU ac_path_FGREP and select it if it is found.
4171 # Check for GNU $ac_path_FGREP
4172 case `"$ac_path_FGREP" --version 2>&1` in
4173 *GNU*)
4174 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4176 ac_count=0
4177 $as_echo_n 0123456789 >"conftest.in"
4178 while :
4180 cat "conftest.in" "conftest.in" >"conftest.tmp"
4181 mv "conftest.tmp" "conftest.in"
4182 cp "conftest.in" "conftest.nl"
4183 $as_echo 'FGREP' >> "conftest.nl"
4184 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186 ac_count=`expr $ac_count + 1`
4187 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4188 # Best one so far, save it but keep looking for a better one
4189 ac_cv_path_FGREP="$ac_path_FGREP"
4190 ac_path_FGREP_max=$ac_count
4192 # 10*(2^10) chars as input seems more than enough
4193 test $ac_count -gt 10 && break
4194 done
4195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4196 esac
4198 $ac_path_FGREP_found && break 3
4199 done
4200 done
4201 done
4202 IFS=$as_save_IFS
4203 if test -z "$ac_cv_path_FGREP"; then
4204 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4205 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4206 { (exit 1); exit 1; }; }
4208 else
4209 ac_cv_path_FGREP=$FGREP
4214 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4215 $as_echo "$ac_cv_path_FGREP" >&6; }
4216 FGREP="$ac_cv_path_FGREP"
4219 test -z "$GREP" && GREP=grep
4239 # Check whether --with-gnu-ld was given.
4240 if test "${with_gnu_ld+set}" = set; then
4241 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4242 else
4243 with_gnu_ld=no
4246 ac_prog=ld
4247 if test "$GCC" = yes; then
4248 # Check if gcc -print-prog-name=ld gives a path.
4249 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4250 $as_echo_n "checking for ld used by $CC... " >&6; }
4251 case $host in
4252 *-*-mingw*)
4253 # gcc leaves a trailing carriage return which upsets mingw
4254 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4256 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4257 esac
4258 case $ac_prog in
4259 # Accept absolute paths.
4260 [\\/]* | ?:[\\/]*)
4261 re_direlt='/[^/][^/]*/\.\./'
4262 # Canonicalize the pathname of ld
4263 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4264 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4265 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4266 done
4267 test -z "$LD" && LD="$ac_prog"
4270 # If it fails, then pretend we aren't using GCC.
4271 ac_prog=ld
4274 # If it is relative, then search for the first ld in PATH.
4275 with_gnu_ld=unknown
4277 esac
4278 elif test "$with_gnu_ld" = yes; then
4279 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4280 $as_echo_n "checking for GNU ld... " >&6; }
4281 else
4282 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4283 $as_echo_n "checking for non-GNU ld... " >&6; }
4285 if test "${lt_cv_path_LD+set}" = set; then
4286 $as_echo_n "(cached) " >&6
4287 else
4288 if test -z "$LD"; then
4289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4290 for ac_dir in $PATH; do
4291 IFS="$lt_save_ifs"
4292 test -z "$ac_dir" && ac_dir=.
4293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4294 lt_cv_path_LD="$ac_dir/$ac_prog"
4295 # Check to see if the program is GNU ld. I'd rather use --version,
4296 # but apparently some variants of GNU ld only accept -v.
4297 # Break only if it was the GNU/non-GNU ld that we prefer.
4298 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4299 *GNU* | *'with BFD'*)
4300 test "$with_gnu_ld" != no && break
4303 test "$with_gnu_ld" != yes && break
4305 esac
4307 done
4308 IFS="$lt_save_ifs"
4309 else
4310 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4314 LD="$lt_cv_path_LD"
4315 if test -n "$LD"; then
4316 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4317 $as_echo "$LD" >&6; }
4318 else
4319 { $as_echo "$as_me:$LINENO: result: no" >&5
4320 $as_echo "no" >&6; }
4322 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4323 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4324 { (exit 1); exit 1; }; }
4325 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4326 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4327 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4328 $as_echo_n "(cached) " >&6
4329 else
4330 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4331 case `$LD -v 2>&1 </dev/null` in
4332 *GNU* | *'with BFD'*)
4333 lt_cv_prog_gnu_ld=yes
4336 lt_cv_prog_gnu_ld=no
4338 esac
4340 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4341 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4342 with_gnu_ld=$lt_cv_prog_gnu_ld
4352 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4353 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4354 if test "${lt_cv_path_NM+set}" = set; then
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$NM"; then
4358 # Let the user override the test.
4359 lt_cv_path_NM="$NM"
4360 else
4361 lt_nm_to_check="${ac_tool_prefix}nm"
4362 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4363 lt_nm_to_check="$lt_nm_to_check nm"
4365 for lt_tmp_nm in $lt_nm_to_check; do
4366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4367 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4368 IFS="$lt_save_ifs"
4369 test -z "$ac_dir" && ac_dir=.
4370 tmp_nm="$ac_dir/$lt_tmp_nm"
4371 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4372 # Check to see if the nm accepts a BSD-compat flag.
4373 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4374 # nm: unknown option "B" ignored
4375 # Tru64's nm complains that /dev/null is an invalid object file
4376 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4377 */dev/null* | *'Invalid file or object type'*)
4378 lt_cv_path_NM="$tmp_nm -B"
4379 break
4382 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4383 */dev/null*)
4384 lt_cv_path_NM="$tmp_nm -p"
4385 break
4388 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4389 continue # so that we can try to find one that supports BSD flags
4391 esac
4393 esac
4395 done
4396 IFS="$lt_save_ifs"
4397 done
4398 : ${lt_cv_path_NM=no}
4401 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4402 $as_echo "$lt_cv_path_NM" >&6; }
4403 if test "$lt_cv_path_NM" != "no"; then
4404 NM="$lt_cv_path_NM"
4405 else
4406 # Didn't find any BSD compatible name lister, look for dumpbin.
4407 if test -n "$ac_tool_prefix"; then
4408 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 $as_echo_n "checking for $ac_word... " >&6; }
4414 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4415 $as_echo_n "(cached) " >&6
4416 else
4417 if test -n "$DUMPBIN"; then
4418 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4427 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 break 2
4431 done
4432 done
4433 IFS=$as_save_IFS
4437 DUMPBIN=$ac_cv_prog_DUMPBIN
4438 if test -n "$DUMPBIN"; then
4439 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4440 $as_echo "$DUMPBIN" >&6; }
4441 else
4442 { $as_echo "$as_me:$LINENO: result: no" >&5
4443 $as_echo "no" >&6; }
4447 test -n "$DUMPBIN" && break
4448 done
4450 if test -z "$DUMPBIN"; then
4451 ac_ct_DUMPBIN=$DUMPBIN
4452 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4454 # Extract the first word of "$ac_prog", so it can be a program name with args.
4455 set dummy $ac_prog; ac_word=$2
4456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$ac_ct_DUMPBIN"; then
4462 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4475 done
4476 done
4477 IFS=$as_save_IFS
4481 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4482 if test -n "$ac_ct_DUMPBIN"; then
4483 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4484 $as_echo "$ac_ct_DUMPBIN" >&6; }
4485 else
4486 { $as_echo "$as_me:$LINENO: result: no" >&5
4487 $as_echo "no" >&6; }
4491 test -n "$ac_ct_DUMPBIN" && break
4492 done
4494 if test "x$ac_ct_DUMPBIN" = x; then
4495 DUMPBIN=":"
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4501 ac_tool_warned=yes ;;
4502 esac
4503 DUMPBIN=$ac_ct_DUMPBIN
4508 if test "$DUMPBIN" != ":"; then
4509 NM="$DUMPBIN"
4512 test -z "$NM" && NM=nm
4519 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4520 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4521 if test "${lt_cv_nm_interface+set}" = set; then
4522 $as_echo_n "(cached) " >&6
4523 else
4524 lt_cv_nm_interface="BSD nm"
4525 echo "int some_variable = 0;" > conftest.$ac_ext
4526 (eval echo "\"\$as_me:4526: $ac_compile\"" >&5)
4527 (eval "$ac_compile" 2>conftest.err)
4528 cat conftest.err >&5
4529 (eval echo "\"\$as_me:4529: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4530 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4531 cat conftest.err >&5
4532 (eval echo "\"\$as_me:4532: output\"" >&5)
4533 cat conftest.out >&5
4534 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4535 lt_cv_nm_interface="MS dumpbin"
4537 rm -f conftest*
4539 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4540 $as_echo "$lt_cv_nm_interface" >&6; }
4542 # find the maximum length of command line arguments
4543 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4544 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4545 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4546 $as_echo_n "(cached) " >&6
4547 else
4549 teststring="ABCD"
4551 case $build_os in
4552 msdosdjgpp*)
4553 # On DJGPP, this test can blow up pretty badly due to problems in libc
4554 # (any single argument exceeding 2000 bytes causes a buffer overrun
4555 # during glob expansion). Even if it were fixed, the result of this
4556 # check would be larger than it should be.
4557 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4560 gnu*)
4561 # Under GNU Hurd, this test is not required because there is
4562 # no limit to the length of command line arguments.
4563 # Libtool will interpret -1 as no limit whatsoever
4564 lt_cv_sys_max_cmd_len=-1;
4567 cygwin* | mingw* | cegcc*)
4568 # On Win9x/ME, this test blows up -- it succeeds, but takes
4569 # about 5 minutes as the teststring grows exponentially.
4570 # Worse, since 9x/ME are not pre-emptively multitasking,
4571 # you end up with a "frozen" computer, even though with patience
4572 # the test eventually succeeds (with a max line length of 256k).
4573 # Instead, let's just punt: use the minimum linelength reported by
4574 # all of the supported platforms: 8192 (on NT/2K/XP).
4575 lt_cv_sys_max_cmd_len=8192;
4578 amigaos*)
4579 # On AmigaOS with pdksh, this test takes hours, literally.
4580 # So we just punt and use a minimum line length of 8192.
4581 lt_cv_sys_max_cmd_len=8192;
4584 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4585 # This has been around since 386BSD, at least. Likely further.
4586 if test -x /sbin/sysctl; then
4587 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4588 elif test -x /usr/sbin/sysctl; then
4589 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4590 else
4591 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4593 # And add a safety zone
4594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4598 interix*)
4599 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4600 lt_cv_sys_max_cmd_len=196608
4603 osf*)
4604 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4605 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4606 # nice to cause kernel panics so lets avoid the loop below.
4607 # First set a reasonable default.
4608 lt_cv_sys_max_cmd_len=16384
4610 if test -x /sbin/sysconfig; then
4611 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4612 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4613 esac
4616 sco3.2v5*)
4617 lt_cv_sys_max_cmd_len=102400
4619 sysv5* | sco5v6* | sysv4.2uw2*)
4620 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4621 if test -n "$kargmax"; then
4622 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4623 else
4624 lt_cv_sys_max_cmd_len=32768
4628 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4629 if test -n "$lt_cv_sys_max_cmd_len"; then
4630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4632 else
4633 # Make teststring a little bigger before we do anything with it.
4634 # a 1K string should be a reasonable start.
4635 for i in 1 2 3 4 5 6 7 8 ; do
4636 teststring=$teststring$teststring
4637 done
4638 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4639 # If test is not a shell built-in, we'll probably end up computing a
4640 # maximum length that is only half of the actual maximum length, but
4641 # we can't tell.
4642 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4643 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4644 test $i != 17 # 1/2 MB should be enough
4646 i=`expr $i + 1`
4647 teststring=$teststring$teststring
4648 done
4649 # Only check the string length outside the loop.
4650 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4651 teststring=
4652 # Add a significant safety factor because C++ compilers can tack on
4653 # massive amounts of additional arguments before passing them to the
4654 # linker. It appears as though 1/2 is a usable value.
4655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4658 esac
4662 if test -n $lt_cv_sys_max_cmd_len ; then
4663 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4664 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4665 else
4666 { $as_echo "$as_me:$LINENO: result: none" >&5
4667 $as_echo "none" >&6; }
4669 max_cmd_len=$lt_cv_sys_max_cmd_len
4676 : ${CP="cp -f"}
4677 : ${MV="mv -f"}
4678 : ${RM="rm -f"}
4680 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4681 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4682 # Try some XSI features
4683 xsi_shell=no
4684 ( _lt_dummy="a/b/c"
4685 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4686 = c,a/b,, \
4687 && eval 'test $(( 1 + 1 )) -eq 2 \
4688 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4689 && xsi_shell=yes
4690 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4691 $as_echo "$xsi_shell" >&6; }
4694 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4695 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4696 lt_shell_append=no
4697 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4698 >/dev/null 2>&1 \
4699 && lt_shell_append=yes
4700 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4701 $as_echo "$lt_shell_append" >&6; }
4704 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4705 lt_unset=unset
4706 else
4707 lt_unset=false
4714 # test EBCDIC or ASCII
4715 case `echo X|tr X '\101'` in
4716 A) # ASCII based system
4717 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4718 lt_SP2NL='tr \040 \012'
4719 lt_NL2SP='tr \015\012 \040\040'
4721 *) # EBCDIC based system
4722 lt_SP2NL='tr \100 \n'
4723 lt_NL2SP='tr \r\n \100\100'
4725 esac
4735 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4736 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4737 if test "${lt_cv_ld_reload_flag+set}" = set; then
4738 $as_echo_n "(cached) " >&6
4739 else
4740 lt_cv_ld_reload_flag='-r'
4742 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4743 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4744 reload_flag=$lt_cv_ld_reload_flag
4745 case $reload_flag in
4746 "" | " "*) ;;
4747 *) reload_flag=" $reload_flag" ;;
4748 esac
4749 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4750 case $host_os in
4751 darwin*)
4752 if test "$GCC" = yes; then
4753 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4754 else
4755 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4758 esac
4768 if test -n "$ac_tool_prefix"; then
4769 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4770 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4771 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4774 $as_echo_n "(cached) " >&6
4775 else
4776 if test -n "$OBJDUMP"; then
4777 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4790 done
4791 done
4792 IFS=$as_save_IFS
4796 OBJDUMP=$ac_cv_prog_OBJDUMP
4797 if test -n "$OBJDUMP"; then
4798 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4799 $as_echo "$OBJDUMP" >&6; }
4800 else
4801 { $as_echo "$as_me:$LINENO: result: no" >&5
4802 $as_echo "no" >&6; }
4807 if test -z "$ac_cv_prog_OBJDUMP"; then
4808 ac_ct_OBJDUMP=$OBJDUMP
4809 # Extract the first word of "objdump", so it can be a program name with args.
4810 set dummy objdump; ac_word=$2
4811 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4814 $as_echo_n "(cached) " >&6
4815 else
4816 if test -n "$ac_ct_OBJDUMP"; then
4817 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4827 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4830 done
4831 done
4832 IFS=$as_save_IFS
4836 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4837 if test -n "$ac_ct_OBJDUMP"; then
4838 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4839 $as_echo "$ac_ct_OBJDUMP" >&6; }
4840 else
4841 { $as_echo "$as_me:$LINENO: result: no" >&5
4842 $as_echo "no" >&6; }
4845 if test "x$ac_ct_OBJDUMP" = x; then
4846 OBJDUMP="false"
4847 else
4848 case $cross_compiling:$ac_tool_warned in
4849 yes:)
4850 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4852 ac_tool_warned=yes ;;
4853 esac
4854 OBJDUMP=$ac_ct_OBJDUMP
4856 else
4857 OBJDUMP="$ac_cv_prog_OBJDUMP"
4860 test -z "$OBJDUMP" && OBJDUMP=objdump
4870 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4871 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4872 if test "${lt_cv_deplibs_check_method+set}" = set; then
4873 $as_echo_n "(cached) " >&6
4874 else
4875 lt_cv_file_magic_cmd='$MAGIC_CMD'
4876 lt_cv_file_magic_test_file=
4877 lt_cv_deplibs_check_method='unknown'
4878 # Need to set the preceding variable on all platforms that support
4879 # interlibrary dependencies.
4880 # 'none' -- dependencies not supported.
4881 # `unknown' -- same as none, but documents that we really don't know.
4882 # 'pass_all' -- all dependencies passed with no checks.
4883 # 'test_compile' -- check by making test program.
4884 # 'file_magic [[regex]]' -- check by looking for files in library path
4885 # which responds to the $file_magic_cmd with a given extended regex.
4886 # If you have `file' or equivalent on your system and you're not sure
4887 # whether `pass_all' will *always* work, you probably want this one.
4889 case $host_os in
4890 aix[4-9]*)
4891 lt_cv_deplibs_check_method=pass_all
4894 beos*)
4895 lt_cv_deplibs_check_method=pass_all
4898 bsdi[45]*)
4899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4900 lt_cv_file_magic_cmd='/usr/bin/file -L'
4901 lt_cv_file_magic_test_file=/shlib/libc.so
4904 cygwin*)
4905 # func_win32_libid is a shell function defined in ltmain.sh
4906 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4907 lt_cv_file_magic_cmd='func_win32_libid'
4910 mingw* | pw32*)
4911 # Base MSYS/MinGW do not provide the 'file' command needed by
4912 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4913 # unless we find 'file', for example because we are cross-compiling.
4914 if ( file / ) >/dev/null 2>&1; then
4915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4916 lt_cv_file_magic_cmd='func_win32_libid'
4917 else
4918 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4919 lt_cv_file_magic_cmd='$OBJDUMP -f'
4923 cegcc)
4924 # use the weaker test based on 'objdump'. See mingw*.
4925 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4926 lt_cv_file_magic_cmd='$OBJDUMP -f'
4929 darwin* | rhapsody*)
4930 lt_cv_deplibs_check_method=pass_all
4933 freebsd* | dragonfly*)
4934 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4935 case $host_cpu in
4936 i*86 )
4937 # Not sure whether the presence of OpenBSD here was a mistake.
4938 # Let's accept both of them until this is cleared up.
4939 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4940 lt_cv_file_magic_cmd=/usr/bin/file
4941 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4943 esac
4944 else
4945 lt_cv_deplibs_check_method=pass_all
4949 gnu*)
4950 lt_cv_deplibs_check_method=pass_all
4953 hpux10.20* | hpux11*)
4954 lt_cv_file_magic_cmd=/usr/bin/file
4955 case $host_cpu in
4956 ia64*)
4957 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4958 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4960 hppa*64*)
4961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4962 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4965 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4966 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4968 esac
4971 interix[3-9]*)
4972 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4976 irix5* | irix6* | nonstopux*)
4977 case $LD in
4978 *-32|*"-32 ") libmagic=32-bit;;
4979 *-n32|*"-n32 ") libmagic=N32;;
4980 *-64|*"-64 ") libmagic=64-bit;;
4981 *) libmagic=never-match;;
4982 esac
4983 lt_cv_deplibs_check_method=pass_all
4986 # This must be Linux ELF.
4987 linux* | k*bsd*-gnu)
4988 lt_cv_deplibs_check_method=pass_all
4991 netbsd* | netbsdelf*-gnu)
4992 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4994 else
4995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4999 newos6*)
5000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5001 lt_cv_file_magic_cmd=/usr/bin/file
5002 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5005 *nto* | *qnx*)
5006 lt_cv_deplibs_check_method=pass_all
5009 openbsd*)
5010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5012 else
5013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5017 osf3* | osf4* | osf5*)
5018 lt_cv_deplibs_check_method=pass_all
5021 rdos*)
5022 lt_cv_deplibs_check_method=pass_all
5025 solaris*)
5026 lt_cv_deplibs_check_method=pass_all
5029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5030 lt_cv_deplibs_check_method=pass_all
5033 sysv4 | sysv4.3*)
5034 case $host_vendor in
5035 motorola)
5036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5037 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5039 ncr)
5040 lt_cv_deplibs_check_method=pass_all
5042 sequent)
5043 lt_cv_file_magic_cmd='/bin/file'
5044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5046 sni)
5047 lt_cv_file_magic_cmd='/bin/file'
5048 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5049 lt_cv_file_magic_test_file=/lib/libc.so
5051 siemens)
5052 lt_cv_deplibs_check_method=pass_all
5055 lt_cv_deplibs_check_method=pass_all
5057 esac
5060 tpf*)
5061 lt_cv_deplibs_check_method=pass_all
5063 esac
5066 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5067 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5068 file_magic_cmd=$lt_cv_file_magic_cmd
5069 deplibs_check_method=$lt_cv_deplibs_check_method
5070 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5083 if test -n "$ac_tool_prefix"; then
5084 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5085 set dummy ${ac_tool_prefix}ar; ac_word=$2
5086 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if test "${ac_cv_prog_AR+set}" = set; then
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -n "$AR"; then
5092 ac_cv_prog_AR="$AR" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_AR="${ac_tool_prefix}ar"
5102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5105 done
5106 done
5107 IFS=$as_save_IFS
5111 AR=$ac_cv_prog_AR
5112 if test -n "$AR"; then
5113 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5114 $as_echo "$AR" >&6; }
5115 else
5116 { $as_echo "$as_me:$LINENO: result: no" >&5
5117 $as_echo "no" >&6; }
5122 if test -z "$ac_cv_prog_AR"; then
5123 ac_ct_AR=$AR
5124 # Extract the first word of "ar", so it can be a program name with args.
5125 set dummy ar; ac_word=$2
5126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$ac_ct_AR"; then
5132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_ac_ct_AR="ar"
5142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5152 if test -n "$ac_ct_AR"; then
5153 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5154 $as_echo "$ac_ct_AR" >&6; }
5155 else
5156 { $as_echo "$as_me:$LINENO: result: no" >&5
5157 $as_echo "no" >&6; }
5160 if test "x$ac_ct_AR" = x; then
5161 AR="false"
5162 else
5163 case $cross_compiling:$ac_tool_warned in
5164 yes:)
5165 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167 ac_tool_warned=yes ;;
5168 esac
5169 AR=$ac_ct_AR
5171 else
5172 AR="$ac_cv_prog_AR"
5175 test -z "$AR" && AR=ar
5176 test -z "$AR_FLAGS" && AR_FLAGS=cru
5188 if test -n "$ac_tool_prefix"; then
5189 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5190 set dummy ${ac_tool_prefix}strip; ac_word=$2
5191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if test "${ac_cv_prog_STRIP+set}" = set; then
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test -n "$STRIP"; then
5197 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5216 STRIP=$ac_cv_prog_STRIP
5217 if test -n "$STRIP"; then
5218 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5219 $as_echo "$STRIP" >&6; }
5220 else
5221 { $as_echo "$as_me:$LINENO: result: no" >&5
5222 $as_echo "no" >&6; }
5227 if test -z "$ac_cv_prog_STRIP"; then
5228 ac_ct_STRIP=$STRIP
5229 # Extract the first word of "strip", so it can be a program name with args.
5230 set dummy strip; ac_word=$2
5231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if test -n "$ac_ct_STRIP"; then
5237 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_ac_ct_STRIP="strip"
5247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5252 IFS=$as_save_IFS
5256 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5257 if test -n "$ac_ct_STRIP"; then
5258 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5259 $as_echo "$ac_ct_STRIP" >&6; }
5260 else
5261 { $as_echo "$as_me:$LINENO: result: no" >&5
5262 $as_echo "no" >&6; }
5265 if test "x$ac_ct_STRIP" = x; then
5266 STRIP=":"
5267 else
5268 case $cross_compiling:$ac_tool_warned in
5269 yes:)
5270 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272 ac_tool_warned=yes ;;
5273 esac
5274 STRIP=$ac_ct_STRIP
5276 else
5277 STRIP="$ac_cv_prog_STRIP"
5280 test -z "$STRIP" && STRIP=:
5287 if test -n "$ac_tool_prefix"; then
5288 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5289 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 $as_echo_n "checking for $ac_word... " >&6; }
5292 if test "${ac_cv_prog_RANLIB+set}" = set; then
5293 $as_echo_n "(cached) " >&6
5294 else
5295 if test -n "$RANLIB"; then
5296 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5297 else
5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5301 IFS=$as_save_IFS
5302 test -z "$as_dir" && as_dir=.
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 break 2
5309 done
5310 done
5311 IFS=$as_save_IFS
5315 RANLIB=$ac_cv_prog_RANLIB
5316 if test -n "$RANLIB"; then
5317 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5318 $as_echo "$RANLIB" >&6; }
5319 else
5320 { $as_echo "$as_me:$LINENO: result: no" >&5
5321 $as_echo "no" >&6; }
5326 if test -z "$ac_cv_prog_RANLIB"; then
5327 ac_ct_RANLIB=$RANLIB
5328 # Extract the first word of "ranlib", so it can be a program name with args.
5329 set dummy ranlib; ac_word=$2
5330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5333 $as_echo_n "(cached) " >&6
5334 else
5335 if test -n "$ac_ct_RANLIB"; then
5336 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345 ac_cv_prog_ac_ct_RANLIB="ranlib"
5346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 break 2
5349 done
5350 done
5351 IFS=$as_save_IFS
5355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5356 if test -n "$ac_ct_RANLIB"; then
5357 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5358 $as_echo "$ac_ct_RANLIB" >&6; }
5359 else
5360 { $as_echo "$as_me:$LINENO: result: no" >&5
5361 $as_echo "no" >&6; }
5364 if test "x$ac_ct_RANLIB" = x; then
5365 RANLIB=":"
5366 else
5367 case $cross_compiling:$ac_tool_warned in
5368 yes:)
5369 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5371 ac_tool_warned=yes ;;
5372 esac
5373 RANLIB=$ac_ct_RANLIB
5375 else
5376 RANLIB="$ac_cv_prog_RANLIB"
5379 test -z "$RANLIB" && RANLIB=:
5386 # Determine commands to create old-style static archives.
5387 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5388 old_postinstall_cmds='chmod 644 $oldlib'
5389 old_postuninstall_cmds=
5391 if test -n "$RANLIB"; then
5392 case $host_os in
5393 openbsd*)
5394 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5399 esac
5400 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5436 # If no C compiler was specified, use CC.
5437 LTCC=${LTCC-"$CC"}
5439 # If no C compiler flags were specified, use CFLAGS.
5440 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5442 # Allow CC to be a program name with arguments.
5443 compiler=$CC
5446 # Check for command to grab the raw symbol name followed by C symbol from nm.
5447 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5448 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5449 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5450 $as_echo_n "(cached) " >&6
5451 else
5453 # These are sane defaults that work on at least a few old systems.
5454 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5456 # Character class describing NM global symbol codes.
5457 symcode='[BCDEGRST]'
5459 # Regexp to match symbols that can be accessed directly from C.
5460 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5462 # Define system-specific variables.
5463 case $host_os in
5464 aix*)
5465 symcode='[BCDT]'
5467 cygwin* | mingw* | pw32* | cegcc*)
5468 symcode='[ABCDGISTW]'
5470 hpux*)
5471 if test "$host_cpu" = ia64; then
5472 symcode='[ABCDEGRST]'
5475 irix* | nonstopux*)
5476 symcode='[BCDEGRST]'
5478 osf*)
5479 symcode='[BCDEGQRST]'
5481 solaris*)
5482 symcode='[BDRT]'
5484 sco3.2v5*)
5485 symcode='[DT]'
5487 sysv4.2uw2*)
5488 symcode='[DT]'
5490 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5491 symcode='[ABDT]'
5493 sysv4)
5494 symcode='[DFNSTU]'
5496 esac
5498 # If we're using GNU nm, then use its standard symbol codes.
5499 case `$NM -V 2>&1` in
5500 *GNU* | *'with BFD'*)
5501 symcode='[ABCDGIRSTW]' ;;
5502 esac
5504 # Transform an extracted symbol line into a proper C declaration.
5505 # Some systems (esp. on ia64) link data and code symbols differently,
5506 # so use this general approach.
5507 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5509 # Transform an extracted symbol line into symbol name and symbol address
5510 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5511 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5513 # Handle CRLF in mingw tool chain
5514 opt_cr=
5515 case $build_os in
5516 mingw*)
5517 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5519 esac
5521 # Try without a prefix underscore, then with it.
5522 for ac_symprfx in "" "_"; do
5524 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5525 symxfrm="\\1 $ac_symprfx\\2 \\2"
5527 # Write the raw and C identifiers.
5528 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5529 # Fake it for dumpbin and say T for any non-static function
5530 # and D for any global variable.
5531 # Also find C++ and __fastcall symbols from MSVC++,
5532 # which start with @ or ?.
5533 lt_cv_sys_global_symbol_pipe="$AWK '"\
5534 " {last_section=section; section=\$ 3};"\
5535 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5536 " \$ 0!~/External *\|/{next};"\
5537 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5538 " {if(hide[section]) next};"\
5539 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5540 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5541 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5542 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5543 " ' prfx=^$ac_symprfx"
5544 else
5545 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5548 # Check to see that the pipe works correctly.
5549 pipe_works=no
5551 rm -f conftest*
5552 cat > conftest.$ac_ext <<_LT_EOF
5553 #ifdef __cplusplus
5554 extern "C" {
5555 #endif
5556 char nm_test_var;
5557 void nm_test_func(void);
5558 void nm_test_func(void){}
5559 #ifdef __cplusplus
5561 #endif
5562 int main(){nm_test_var='a';nm_test_func();return(0);}
5563 _LT_EOF
5565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5566 (eval $ac_compile) 2>&5
5567 ac_status=$?
5568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; then
5570 # Now try to grab the symbols.
5571 nlist=conftest.nm
5572 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5573 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5574 ac_status=$?
5575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } && test -s "$nlist"; then
5577 # Try sorting and uniquifying the output.
5578 if sort "$nlist" | uniq > "$nlist"T; then
5579 mv -f "$nlist"T "$nlist"
5580 else
5581 rm -f "$nlist"T
5584 # Make sure that we snagged all the symbols we need.
5585 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5586 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5587 cat <<_LT_EOF > conftest.$ac_ext
5588 #ifdef __cplusplus
5589 extern "C" {
5590 #endif
5592 _LT_EOF
5593 # Now generate the symbol file.
5594 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5596 cat <<_LT_EOF >> conftest.$ac_ext
5598 /* The mapping between symbol names and symbols. */
5599 const struct {
5600 const char *name;
5601 void *address;
5603 lt__PROGRAM__LTX_preloaded_symbols[] =
5605 { "@PROGRAM@", (void *) 0 },
5606 _LT_EOF
5607 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5608 cat <<\_LT_EOF >> conftest.$ac_ext
5609 {0, (void *) 0}
5612 /* This works around a problem in FreeBSD linker */
5613 #ifdef FREEBSD_WORKAROUND
5614 static const void *lt_preloaded_setup() {
5615 return lt__PROGRAM__LTX_preloaded_symbols;
5617 #endif
5619 #ifdef __cplusplus
5621 #endif
5622 _LT_EOF
5623 # Now try linking the two files.
5624 mv conftest.$ac_objext conftstm.$ac_objext
5625 lt_save_LIBS="$LIBS"
5626 lt_save_CFLAGS="$CFLAGS"
5627 LIBS="conftstm.$ac_objext"
5628 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630 (eval $ac_link) 2>&5
5631 ac_status=$?
5632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5634 pipe_works=yes
5636 LIBS="$lt_save_LIBS"
5637 CFLAGS="$lt_save_CFLAGS"
5638 else
5639 echo "cannot find nm_test_func in $nlist" >&5
5641 else
5642 echo "cannot find nm_test_var in $nlist" >&5
5644 else
5645 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5647 else
5648 echo "$progname: failed program was:" >&5
5649 cat conftest.$ac_ext >&5
5651 rm -rf conftest* conftst*
5653 # Do not use the global_symbol_pipe unless it works.
5654 if test "$pipe_works" = yes; then
5655 break
5656 else
5657 lt_cv_sys_global_symbol_pipe=
5659 done
5663 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5664 lt_cv_sys_global_symbol_to_cdecl=
5666 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5667 { $as_echo "$as_me:$LINENO: result: failed" >&5
5668 $as_echo "failed" >&6; }
5669 else
5670 { $as_echo "$as_me:$LINENO: result: ok" >&5
5671 $as_echo "ok" >&6; }
5696 # Check whether --enable-libtool-lock was given.
5697 if test "${enable_libtool_lock+set}" = set; then
5698 enableval=$enable_libtool_lock;
5701 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5703 # Some flags need to be propagated to the compiler or linker for good
5704 # libtool support.
5705 case $host in
5706 ia64-*-hpux*)
5707 # Find out which ABI we are using.
5708 echo 'int i;' > conftest.$ac_ext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710 (eval $ac_compile) 2>&5
5711 ac_status=$?
5712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; then
5714 case `/usr/bin/file conftest.$ac_objext` in
5715 *ELF-32*)
5716 HPUX_IA64_MODE="32"
5718 *ELF-64*)
5719 HPUX_IA64_MODE="64"
5721 esac
5723 rm -rf conftest*
5725 *-*-irix6*)
5726 # Find out which ABI we are using.
5727 echo '#line 5727 "configure"' > conftest.$ac_ext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>&5
5730 ac_status=$?
5731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; then
5733 if test "$lt_cv_prog_gnu_ld" = yes; then
5734 case `/usr/bin/file conftest.$ac_objext` in
5735 *32-bit*)
5736 LD="${LD-ld} -melf32bsmip"
5738 *N32*)
5739 LD="${LD-ld} -melf32bmipn32"
5741 *64-bit*)
5742 LD="${LD-ld} -melf64bmip"
5744 esac
5745 else
5746 case `/usr/bin/file conftest.$ac_objext` in
5747 *32-bit*)
5748 LD="${LD-ld} -32"
5750 *N32*)
5751 LD="${LD-ld} -n32"
5753 *64-bit*)
5754 LD="${LD-ld} -64"
5756 esac
5759 rm -rf conftest*
5762 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5763 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5764 # Find out which ABI we are using.
5765 echo 'int i;' > conftest.$ac_ext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>&5
5768 ac_status=$?
5769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; then
5771 case `/usr/bin/file conftest.o` in
5772 *32-bit*)
5773 case $host in
5774 x86_64-*kfreebsd*-gnu)
5775 LD="${LD-ld} -m elf_i386_fbsd"
5777 x86_64-*linux*)
5778 LD="${LD-ld} -m elf_i386"
5780 ppc64-*linux*|powerpc64-*linux*)
5781 LD="${LD-ld} -m elf32ppclinux"
5783 s390x-*linux*)
5784 LD="${LD-ld} -m elf_s390"
5786 sparc64-*linux*)
5787 LD="${LD-ld} -m elf32_sparc"
5789 esac
5791 *64-bit*)
5792 case $host in
5793 x86_64-*kfreebsd*-gnu)
5794 LD="${LD-ld} -m elf_x86_64_fbsd"
5796 x86_64-*linux*)
5797 LD="${LD-ld} -m elf_x86_64"
5799 ppc*-*linux*|powerpc*-*linux*)
5800 LD="${LD-ld} -m elf64ppc"
5802 s390*-*linux*|s390*-*tpf*)
5803 LD="${LD-ld} -m elf64_s390"
5805 sparc*-*linux*)
5806 LD="${LD-ld} -m elf64_sparc"
5808 esac
5810 esac
5812 rm -rf conftest*
5815 *-*-sco3.2v5*)
5816 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5817 SAVE_CFLAGS="$CFLAGS"
5818 CFLAGS="$CFLAGS -belf"
5819 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5820 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5821 if test "${lt_cv_cc_needs_belf+set}" = set; then
5822 $as_echo_n "(cached) " >&6
5823 else
5824 ac_ext=c
5825 ac_cpp='$CPP $CPPFLAGS'
5826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5830 cat >conftest.$ac_ext <<_ACEOF
5831 /* confdefs.h. */
5832 _ACEOF
5833 cat confdefs.h >>conftest.$ac_ext
5834 cat >>conftest.$ac_ext <<_ACEOF
5835 /* end confdefs.h. */
5838 main ()
5842 return 0;
5844 _ACEOF
5845 rm -f conftest.$ac_objext conftest$ac_exeext
5846 if { (ac_try="$ac_link"
5847 case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850 esac
5851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5852 $as_echo "$ac_try_echo") >&5
5853 (eval "$ac_link") 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } && {
5860 test -z "$ac_c_werror_flag" ||
5861 test ! -s conftest.err
5862 } && test -s conftest$ac_exeext && {
5863 test "$cross_compiling" = yes ||
5864 $as_test_x conftest$ac_exeext
5865 }; then
5866 lt_cv_cc_needs_belf=yes
5867 else
5868 $as_echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5871 lt_cv_cc_needs_belf=no
5874 rm -rf conftest.dSYM
5875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5876 conftest$ac_exeext conftest.$ac_ext
5877 ac_ext=c
5878 ac_cpp='$CPP $CPPFLAGS'
5879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5884 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5885 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5886 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5887 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5888 CFLAGS="$SAVE_CFLAGS"
5891 sparc*-*solaris*)
5892 # Find out which ABI we are using.
5893 echo 'int i;' > conftest.$ac_ext
5894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5895 (eval $ac_compile) 2>&5
5896 ac_status=$?
5897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; then
5899 case `/usr/bin/file conftest.o` in
5900 *64-bit*)
5901 case $lt_cv_prog_gnu_ld in
5902 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5904 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5905 LD="${LD-ld} -64"
5908 esac
5910 esac
5912 rm -rf conftest*
5914 esac
5916 need_locks="$enable_libtool_lock"
5919 case $host_os in
5920 rhapsody* | darwin*)
5921 if test -n "$ac_tool_prefix"; then
5922 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5923 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 $as_echo_n "checking for $ac_word... " >&6; }
5926 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5927 $as_echo_n "(cached) " >&6
5928 else
5929 if test -n "$DSYMUTIL"; then
5930 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5943 done
5944 done
5945 IFS=$as_save_IFS
5949 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5950 if test -n "$DSYMUTIL"; then
5951 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5952 $as_echo "$DSYMUTIL" >&6; }
5953 else
5954 { $as_echo "$as_me:$LINENO: result: no" >&5
5955 $as_echo "no" >&6; }
5960 if test -z "$ac_cv_prog_DSYMUTIL"; then
5961 ac_ct_DSYMUTIL=$DSYMUTIL
5962 # Extract the first word of "dsymutil", so it can be a program name with args.
5963 set dummy dsymutil; ac_word=$2
5964 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5967 $as_echo_n "(cached) " >&6
5968 else
5969 if test -n "$ac_ct_DSYMUTIL"; then
5970 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5979 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5983 done
5984 done
5985 IFS=$as_save_IFS
5989 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5990 if test -n "$ac_ct_DSYMUTIL"; then
5991 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5992 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5993 else
5994 { $as_echo "$as_me:$LINENO: result: no" >&5
5995 $as_echo "no" >&6; }
5998 if test "x$ac_ct_DSYMUTIL" = x; then
5999 DSYMUTIL=":"
6000 else
6001 case $cross_compiling:$ac_tool_warned in
6002 yes:)
6003 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6005 ac_tool_warned=yes ;;
6006 esac
6007 DSYMUTIL=$ac_ct_DSYMUTIL
6009 else
6010 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6019 $as_echo_n "(cached) " >&6
6020 else
6021 if test -n "$NMEDIT"; then
6022 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6035 done
6036 done
6037 IFS=$as_save_IFS
6041 NMEDIT=$ac_cv_prog_NMEDIT
6042 if test -n "$NMEDIT"; then
6043 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6044 $as_echo "$NMEDIT" >&6; }
6045 else
6046 { $as_echo "$as_me:$LINENO: result: no" >&5
6047 $as_echo "no" >&6; }
6052 if test -z "$ac_cv_prog_NMEDIT"; then
6053 ac_ct_NMEDIT=$NMEDIT
6054 # Extract the first word of "nmedit", so it can be a program name with args.
6055 set dummy nmedit; ac_word=$2
6056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6059 $as_echo_n "(cached) " >&6
6060 else
6061 if test -n "$ac_ct_NMEDIT"; then
6062 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6075 done
6076 done
6077 IFS=$as_save_IFS
6081 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6082 if test -n "$ac_ct_NMEDIT"; then
6083 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6084 $as_echo "$ac_ct_NMEDIT" >&6; }
6085 else
6086 { $as_echo "$as_me:$LINENO: result: no" >&5
6087 $as_echo "no" >&6; }
6090 if test "x$ac_ct_NMEDIT" = x; then
6091 NMEDIT=":"
6092 else
6093 case $cross_compiling:$ac_tool_warned in
6094 yes:)
6095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned=yes ;;
6098 esac
6099 NMEDIT=$ac_ct_NMEDIT
6101 else
6102 NMEDIT="$ac_cv_prog_NMEDIT"
6105 if test -n "$ac_tool_prefix"; then
6106 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6107 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if test "${ac_cv_prog_LIPO+set}" = set; then
6111 $as_echo_n "(cached) " >&6
6112 else
6113 if test -n "$LIPO"; then
6114 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6127 done
6128 done
6129 IFS=$as_save_IFS
6133 LIPO=$ac_cv_prog_LIPO
6134 if test -n "$LIPO"; then
6135 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6136 $as_echo "$LIPO" >&6; }
6137 else
6138 { $as_echo "$as_me:$LINENO: result: no" >&5
6139 $as_echo "no" >&6; }
6144 if test -z "$ac_cv_prog_LIPO"; then
6145 ac_ct_LIPO=$LIPO
6146 # Extract the first word of "lipo", so it can be a program name with args.
6147 set dummy lipo; ac_word=$2
6148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 $as_echo_n "checking for $ac_word... " >&6; }
6150 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6151 $as_echo_n "(cached) " >&6
6152 else
6153 if test -n "$ac_ct_LIPO"; then
6154 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6159 IFS=$as_save_IFS
6160 test -z "$as_dir" && as_dir=.
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6163 ac_cv_prog_ac_ct_LIPO="lipo"
6164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 break 2
6167 done
6168 done
6169 IFS=$as_save_IFS
6173 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6174 if test -n "$ac_ct_LIPO"; then
6175 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6176 $as_echo "$ac_ct_LIPO" >&6; }
6177 else
6178 { $as_echo "$as_me:$LINENO: result: no" >&5
6179 $as_echo "no" >&6; }
6182 if test "x$ac_ct_LIPO" = x; then
6183 LIPO=":"
6184 else
6185 case $cross_compiling:$ac_tool_warned in
6186 yes:)
6187 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6190 esac
6191 LIPO=$ac_ct_LIPO
6193 else
6194 LIPO="$ac_cv_prog_LIPO"
6197 if test -n "$ac_tool_prefix"; then
6198 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6199 set dummy ${ac_tool_prefix}otool; ac_word=$2
6200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_OTOOL+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6204 else
6205 if test -n "$OTOOL"; then
6206 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6219 done
6220 done
6221 IFS=$as_save_IFS
6225 OTOOL=$ac_cv_prog_OTOOL
6226 if test -n "$OTOOL"; then
6227 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6228 $as_echo "$OTOOL" >&6; }
6229 else
6230 { $as_echo "$as_me:$LINENO: result: no" >&5
6231 $as_echo "no" >&6; }
6236 if test -z "$ac_cv_prog_OTOOL"; then
6237 ac_ct_OTOOL=$OTOOL
6238 # Extract the first word of "otool", so it can be a program name with args.
6239 set dummy otool; ac_word=$2
6240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6243 $as_echo_n "(cached) " >&6
6244 else
6245 if test -n "$ac_ct_OTOOL"; then
6246 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6255 ac_cv_prog_ac_ct_OTOOL="otool"
6256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6259 done
6260 done
6261 IFS=$as_save_IFS
6265 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6266 if test -n "$ac_ct_OTOOL"; then
6267 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6268 $as_echo "$ac_ct_OTOOL" >&6; }
6269 else
6270 { $as_echo "$as_me:$LINENO: result: no" >&5
6271 $as_echo "no" >&6; }
6274 if test "x$ac_ct_OTOOL" = x; then
6275 OTOOL=":"
6276 else
6277 case $cross_compiling:$ac_tool_warned in
6278 yes:)
6279 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned=yes ;;
6282 esac
6283 OTOOL=$ac_ct_OTOOL
6285 else
6286 OTOOL="$ac_cv_prog_OTOOL"
6289 if test -n "$ac_tool_prefix"; then
6290 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6291 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6295 $as_echo_n "(cached) " >&6
6296 else
6297 if test -n "$OTOOL64"; then
6298 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6303 IFS=$as_save_IFS
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309 break 2
6311 done
6312 done
6313 IFS=$as_save_IFS
6317 OTOOL64=$ac_cv_prog_OTOOL64
6318 if test -n "$OTOOL64"; then
6319 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6320 $as_echo "$OTOOL64" >&6; }
6321 else
6322 { $as_echo "$as_me:$LINENO: result: no" >&5
6323 $as_echo "no" >&6; }
6328 if test -z "$ac_cv_prog_OTOOL64"; then
6329 ac_ct_OTOOL64=$OTOOL64
6330 # Extract the first word of "otool64", so it can be a program name with args.
6331 set dummy otool64; ac_word=$2
6332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6335 $as_echo_n "(cached) " >&6
6336 else
6337 if test -n "$ac_ct_OTOOL64"; then
6338 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_prog_ac_ct_OTOOL64="otool64"
6348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6351 done
6352 done
6353 IFS=$as_save_IFS
6357 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6358 if test -n "$ac_ct_OTOOL64"; then
6359 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6360 $as_echo "$ac_ct_OTOOL64" >&6; }
6361 else
6362 { $as_echo "$as_me:$LINENO: result: no" >&5
6363 $as_echo "no" >&6; }
6366 if test "x$ac_ct_OTOOL64" = x; then
6367 OTOOL64=":"
6368 else
6369 case $cross_compiling:$ac_tool_warned in
6370 yes:)
6371 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373 ac_tool_warned=yes ;;
6374 esac
6375 OTOOL64=$ac_ct_OTOOL64
6377 else
6378 OTOOL64="$ac_cv_prog_OTOOL64"
6407 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6408 $as_echo_n "checking for -single_module linker flag... " >&6; }
6409 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6410 $as_echo_n "(cached) " >&6
6411 else
6412 lt_cv_apple_cc_single_mod=no
6413 if test -z "${LT_MULTI_MODULE}"; then
6414 # By default we will add the -single_module flag. You can override
6415 # by either setting the environment variable LT_MULTI_MODULE
6416 # non-empty at configure time, or by adding -multi_module to the
6417 # link flags.
6418 rm -rf libconftest.dylib*
6419 echo "int foo(void){return 1;}" > conftest.c
6420 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6421 -dynamiclib -Wl,-single_module conftest.c" >&5
6422 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6423 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6424 _lt_result=$?
6425 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6426 lt_cv_apple_cc_single_mod=yes
6427 else
6428 cat conftest.err >&5
6430 rm -rf libconftest.dylib*
6431 rm -f conftest.*
6434 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6435 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6436 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6437 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6438 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6439 $as_echo_n "(cached) " >&6
6440 else
6441 lt_cv_ld_exported_symbols_list=no
6442 save_LDFLAGS=$LDFLAGS
6443 echo "_main" > conftest.sym
6444 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6445 cat >conftest.$ac_ext <<_ACEOF
6446 /* confdefs.h. */
6447 _ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6453 main ()
6457 return 0;
6459 _ACEOF
6460 rm -f conftest.$ac_objext conftest$ac_exeext
6461 if { (ac_try="$ac_link"
6462 case "(($ac_try" in
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6465 esac
6466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6467 $as_echo "$ac_try_echo") >&5
6468 (eval "$ac_link") 2>conftest.er1
6469 ac_status=$?
6470 grep -v '^ *+' conftest.er1 >conftest.err
6471 rm -f conftest.er1
6472 cat conftest.err >&5
6473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } && {
6475 test -z "$ac_c_werror_flag" ||
6476 test ! -s conftest.err
6477 } && test -s conftest$ac_exeext && {
6478 test "$cross_compiling" = yes ||
6479 $as_test_x conftest$ac_exeext
6480 }; then
6481 lt_cv_ld_exported_symbols_list=yes
6482 else
6483 $as_echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6486 lt_cv_ld_exported_symbols_list=no
6489 rm -rf conftest.dSYM
6490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6491 conftest$ac_exeext conftest.$ac_ext
6492 LDFLAGS="$save_LDFLAGS"
6495 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6496 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6497 case $host_os in
6498 rhapsody* | darwin1.[012])
6499 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6500 darwin1.*)
6501 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6502 darwin*) # darwin 5.x on
6503 # if running on 10.5 or later, the deployment target defaults
6504 # to the OS version, if on x86, and 10.4, the deployment
6505 # target defaults to 10.4. Don't you love it?
6506 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6507 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6508 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6509 10.[012]*)
6510 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6511 10.*)
6512 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6513 esac
6515 esac
6516 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6517 _lt_dar_single_mod='$single_module'
6519 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6520 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6521 else
6522 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6524 if test "$DSYMUTIL" != ":"; then
6525 _lt_dsymutil='~$DSYMUTIL $lib || :'
6526 else
6527 _lt_dsymutil=
6530 esac
6532 ac_ext=c
6533 ac_cpp='$CPP $CPPFLAGS'
6534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6537 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6538 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6539 # On Suns, sometimes $CPP names a directory.
6540 if test -n "$CPP" && test -d "$CPP"; then
6541 CPP=
6543 if test -z "$CPP"; then
6544 if test "${ac_cv_prog_CPP+set}" = set; then
6545 $as_echo_n "(cached) " >&6
6546 else
6547 # Double quotes because CPP needs to be expanded
6548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6550 ac_preproc_ok=false
6551 for ac_c_preproc_warn_flag in '' yes
6553 # Use a header file that comes with gcc, so configuring glibc
6554 # with a fresh cross-compiler works.
6555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6556 # <limits.h> exists even on freestanding compilers.
6557 # On the NeXT, cc -E runs the code through the compiler's parser,
6558 # not just through cpp. "Syntax error" is here to catch this case.
6559 cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h. */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 #ifdef __STDC__
6566 # include <limits.h>
6567 #else
6568 # include <assert.h>
6569 #endif
6570 Syntax error
6571 _ACEOF
6572 if { (ac_try="$ac_cpp conftest.$ac_ext"
6573 case "(($ac_try" in
6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6576 esac
6577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6578 $as_echo "$ac_try_echo") >&5
6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6580 ac_status=$?
6581 grep -v '^ *+' conftest.er1 >conftest.err
6582 rm -f conftest.er1
6583 cat conftest.err >&5
6584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } >/dev/null && {
6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6588 }; then
6590 else
6591 $as_echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 # Broken: fails on valid input.
6595 continue
6598 rm -f conftest.err conftest.$ac_ext
6600 # OK, works on sane cases. Now check whether nonexistent headers
6601 # can be detected and how.
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 #include <ac_nonexistent.h>
6609 _ACEOF
6610 if { (ac_try="$ac_cpp conftest.$ac_ext"
6611 case "(($ac_try" in
6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6614 esac
6615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6616 $as_echo "$ac_try_echo") >&5
6617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6618 ac_status=$?
6619 grep -v '^ *+' conftest.er1 >conftest.err
6620 rm -f conftest.er1
6621 cat conftest.err >&5
6622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } >/dev/null && {
6624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6625 test ! -s conftest.err
6626 }; then
6627 # Broken: success on invalid input.
6628 continue
6629 else
6630 $as_echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 # Passes both tests.
6634 ac_preproc_ok=:
6635 break
6638 rm -f conftest.err conftest.$ac_ext
6640 done
6641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6642 rm -f conftest.err conftest.$ac_ext
6643 if $ac_preproc_ok; then
6644 break
6647 done
6648 ac_cv_prog_CPP=$CPP
6651 CPP=$ac_cv_prog_CPP
6652 else
6653 ac_cv_prog_CPP=$CPP
6655 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6656 $as_echo "$CPP" >&6; }
6657 ac_preproc_ok=false
6658 for ac_c_preproc_warn_flag in '' yes
6660 # Use a header file that comes with gcc, so configuring glibc
6661 # with a fresh cross-compiler works.
6662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6663 # <limits.h> exists even on freestanding compilers.
6664 # On the NeXT, cc -E runs the code through the compiler's parser,
6665 # not just through cpp. "Syntax error" is here to catch this case.
6666 cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h. */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6672 #ifdef __STDC__
6673 # include <limits.h>
6674 #else
6675 # include <assert.h>
6676 #endif
6677 Syntax error
6678 _ACEOF
6679 if { (ac_try="$ac_cpp conftest.$ac_ext"
6680 case "(($ac_try" in
6681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682 *) ac_try_echo=$ac_try;;
6683 esac
6684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6685 $as_echo "$ac_try_echo") >&5
6686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6687 ac_status=$?
6688 grep -v '^ *+' conftest.er1 >conftest.err
6689 rm -f conftest.er1
6690 cat conftest.err >&5
6691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } >/dev/null && {
6693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6694 test ! -s conftest.err
6695 }; then
6697 else
6698 $as_echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 # Broken: fails on valid input.
6702 continue
6705 rm -f conftest.err conftest.$ac_ext
6707 # OK, works on sane cases. Now check whether nonexistent headers
6708 # can be detected and how.
6709 cat >conftest.$ac_ext <<_ACEOF
6710 /* confdefs.h. */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 #include <ac_nonexistent.h>
6716 _ACEOF
6717 if { (ac_try="$ac_cpp conftest.$ac_ext"
6718 case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6721 esac
6722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6723 $as_echo "$ac_try_echo") >&5
6724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6725 ac_status=$?
6726 grep -v '^ *+' conftest.er1 >conftest.err
6727 rm -f conftest.er1
6728 cat conftest.err >&5
6729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } >/dev/null && {
6731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6732 test ! -s conftest.err
6733 }; then
6734 # Broken: success on invalid input.
6735 continue
6736 else
6737 $as_echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6740 # Passes both tests.
6741 ac_preproc_ok=:
6742 break
6745 rm -f conftest.err conftest.$ac_ext
6747 done
6748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6749 rm -f conftest.err conftest.$ac_ext
6750 if $ac_preproc_ok; then
6752 else
6753 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6755 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6756 See \`config.log' for more details." >&5
6757 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6758 See \`config.log' for more details." >&2;}
6759 { (exit 1); exit 1; }; }; }
6762 ac_ext=c
6763 ac_cpp='$CPP $CPPFLAGS'
6764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6769 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6770 $as_echo_n "checking for ANSI C header files... " >&6; }
6771 if test "${ac_cv_header_stdc+set}" = set; then
6772 $as_echo_n "(cached) " >&6
6773 else
6774 cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h. */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 #include <stdlib.h>
6781 #include <stdarg.h>
6782 #include <string.h>
6783 #include <float.h>
6786 main ()
6790 return 0;
6792 _ACEOF
6793 rm -f conftest.$ac_objext
6794 if { (ac_try="$ac_compile"
6795 case "(($ac_try" in
6796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6797 *) ac_try_echo=$ac_try;;
6798 esac
6799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6800 $as_echo "$ac_try_echo") >&5
6801 (eval "$ac_compile") 2>conftest.er1
6802 ac_status=$?
6803 grep -v '^ *+' conftest.er1 >conftest.err
6804 rm -f conftest.er1
6805 cat conftest.err >&5
6806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } && {
6808 test -z "$ac_c_werror_flag" ||
6809 test ! -s conftest.err
6810 } && test -s conftest.$ac_objext; then
6811 ac_cv_header_stdc=yes
6812 else
6813 $as_echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6816 ac_cv_header_stdc=no
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 if test $ac_cv_header_stdc = yes; then
6822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 #include <string.h>
6831 _ACEOF
6832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6833 $EGREP "memchr" >/dev/null 2>&1; then
6835 else
6836 ac_cv_header_stdc=no
6838 rm -f conftest*
6842 if test $ac_cv_header_stdc = yes; then
6843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 #include <stdlib.h>
6852 _ACEOF
6853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854 $EGREP "free" >/dev/null 2>&1; then
6856 else
6857 ac_cv_header_stdc=no
6859 rm -f conftest*
6863 if test $ac_cv_header_stdc = yes; then
6864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6865 if test "$cross_compiling" = yes; then
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 #include <ctype.h>
6875 #include <stdlib.h>
6876 #if ((' ' & 0x0FF) == 0x020)
6877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6879 #else
6880 # define ISLOWER(c) \
6881 (('a' <= (c) && (c) <= 'i') \
6882 || ('j' <= (c) && (c) <= 'r') \
6883 || ('s' <= (c) && (c) <= 'z'))
6884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6885 #endif
6887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6889 main ()
6891 int i;
6892 for (i = 0; i < 256; i++)
6893 if (XOR (islower (i), ISLOWER (i))
6894 || toupper (i) != TOUPPER (i))
6895 return 2;
6896 return 0;
6898 _ACEOF
6899 rm -f conftest$ac_exeext
6900 if { (ac_try="$ac_link"
6901 case "(($ac_try" in
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6904 esac
6905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6906 $as_echo "$ac_try_echo") >&5
6907 (eval "$ac_link") 2>&5
6908 ac_status=$?
6909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6911 { (case "(($ac_try" in
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6914 esac
6915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6916 $as_echo "$ac_try_echo") >&5
6917 (eval "$ac_try") 2>&5
6918 ac_status=$?
6919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6922 else
6923 $as_echo "$as_me: program exited with status $ac_status" >&5
6924 $as_echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 ( exit $ac_status )
6928 ac_cv_header_stdc=no
6930 rm -rf conftest.dSYM
6931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6937 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6938 $as_echo "$ac_cv_header_stdc" >&6; }
6939 if test $ac_cv_header_stdc = yes; then
6941 cat >>confdefs.h <<\_ACEOF
6942 #define STDC_HEADERS 1
6943 _ACEOF
6947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6957 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6958 inttypes.h stdint.h unistd.h
6960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6961 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6962 $as_echo_n "checking for $ac_header... " >&6; }
6963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6964 $as_echo_n "(cached) " >&6
6965 else
6966 cat >conftest.$ac_ext <<_ACEOF
6967 /* confdefs.h. */
6968 _ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6972 $ac_includes_default
6974 #include <$ac_header>
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (ac_try="$ac_compile"
6978 case "(($ac_try" in
6979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980 *) ac_try_echo=$ac_try;;
6981 esac
6982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6983 $as_echo "$ac_try_echo") >&5
6984 (eval "$ac_compile") 2>conftest.er1
6985 ac_status=$?
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
6989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } && {
6991 test -z "$ac_c_werror_flag" ||
6992 test ! -s conftest.err
6993 } && test -s conftest.$ac_objext; then
6994 eval "$as_ac_Header=yes"
6995 else
6996 $as_echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6999 eval "$as_ac_Header=no"
7002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 ac_res=`eval 'as_val=${'$as_ac_Header'}
7005 $as_echo "$as_val"'`
7006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7007 $as_echo "$ac_res" >&6; }
7008 as_val=`eval 'as_val=${'$as_ac_Header'}
7009 $as_echo "$as_val"'`
7010 if test "x$as_val" = x""yes; then
7011 cat >>confdefs.h <<_ACEOF
7012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7013 _ACEOF
7017 done
7021 for ac_header in dlfcn.h
7023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7025 $as_echo_n "checking for $ac_header... " >&6; }
7026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7027 $as_echo_n "(cached) " >&6
7028 else
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 $ac_includes_default
7037 #include <$ac_header>
7038 _ACEOF
7039 rm -f conftest.$ac_objext
7040 if { (ac_try="$ac_compile"
7041 case "(($ac_try" in
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7044 esac
7045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7046 $as_echo "$ac_try_echo") >&5
7047 (eval "$ac_compile") 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest.$ac_objext; then
7057 eval "$as_ac_Header=yes"
7058 else
7059 $as_echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7062 eval "$as_ac_Header=no"
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 ac_res=`eval 'as_val=${'$as_ac_Header'}
7068 $as_echo "$as_val"'`
7069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7070 $as_echo "$ac_res" >&6; }
7071 as_val=`eval 'as_val=${'$as_ac_Header'}
7072 $as_echo "$as_val"'`
7073 if test "x$as_val" = x""yes; then
7074 cat >>confdefs.h <<_ACEOF
7075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7076 _ACEOF
7080 done
7084 # Set options
7088 enable_dlopen=no
7091 enable_win32_dll=no
7094 # Check whether --enable-shared was given.
7095 if test "${enable_shared+set}" = set; then
7096 enableval=$enable_shared; p=${PACKAGE-default}
7097 case $enableval in
7098 yes) enable_shared=yes ;;
7099 no) enable_shared=no ;;
7101 enable_shared=no
7102 # Look at the argument we got. We use all the common list separators.
7103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7104 for pkg in $enableval; do
7105 IFS="$lt_save_ifs"
7106 if test "X$pkg" = "X$p"; then
7107 enable_shared=yes
7109 done
7110 IFS="$lt_save_ifs"
7112 esac
7113 else
7114 enable_shared=yes
7125 # Check whether --enable-static was given.
7126 if test "${enable_static+set}" = set; then
7127 enableval=$enable_static; p=${PACKAGE-default}
7128 case $enableval in
7129 yes) enable_static=yes ;;
7130 no) enable_static=no ;;
7132 enable_static=no
7133 # Look at the argument we got. We use all the common list separators.
7134 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7135 for pkg in $enableval; do
7136 IFS="$lt_save_ifs"
7137 if test "X$pkg" = "X$p"; then
7138 enable_static=yes
7140 done
7141 IFS="$lt_save_ifs"
7143 esac
7144 else
7145 enable_static=yes
7157 # Check whether --with-pic was given.
7158 if test "${with_pic+set}" = set; then
7159 withval=$with_pic; pic_mode="$withval"
7160 else
7161 pic_mode=default
7165 test -z "$pic_mode" && pic_mode=default
7173 # Check whether --enable-fast-install was given.
7174 if test "${enable_fast_install+set}" = set; then
7175 enableval=$enable_fast_install; p=${PACKAGE-default}
7176 case $enableval in
7177 yes) enable_fast_install=yes ;;
7178 no) enable_fast_install=no ;;
7180 enable_fast_install=no
7181 # Look at the argument we got. We use all the common list separators.
7182 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7183 for pkg in $enableval; do
7184 IFS="$lt_save_ifs"
7185 if test "X$pkg" = "X$p"; then
7186 enable_fast_install=yes
7188 done
7189 IFS="$lt_save_ifs"
7191 esac
7192 else
7193 enable_fast_install=yes
7206 # This can be used to rebuild libtool when needed
7207 LIBTOOL_DEPS="$ltmain"
7209 # Always use our own libtool.
7210 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7236 test -z "$LN_S" && LN_S="ln -s"
7251 if test -n "${ZSH_VERSION+set}" ; then
7252 setopt NO_GLOB_SUBST
7255 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7256 $as_echo_n "checking for objdir... " >&6; }
7257 if test "${lt_cv_objdir+set}" = set; then
7258 $as_echo_n "(cached) " >&6
7259 else
7260 rm -f .libs 2>/dev/null
7261 mkdir .libs 2>/dev/null
7262 if test -d .libs; then
7263 lt_cv_objdir=.libs
7264 else
7265 # MS-DOS does not allow filenames that begin with a dot.
7266 lt_cv_objdir=_libs
7268 rmdir .libs 2>/dev/null
7270 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7271 $as_echo "$lt_cv_objdir" >&6; }
7272 objdir=$lt_cv_objdir
7278 cat >>confdefs.h <<_ACEOF
7279 #define LT_OBJDIR "$lt_cv_objdir/"
7280 _ACEOF
7298 case $host_os in
7299 aix3*)
7300 # AIX sometimes has problems with the GCC collect2 program. For some
7301 # reason, if we set the COLLECT_NAMES environment variable, the problems
7302 # vanish in a puff of smoke.
7303 if test "X${COLLECT_NAMES+set}" != Xset; then
7304 COLLECT_NAMES=
7305 export COLLECT_NAMES
7308 esac
7310 # Sed substitution that helps us do robust quoting. It backslashifies
7311 # metacharacters that are still active within double-quoted strings.
7312 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7314 # Same as above, but do not quote variable references.
7315 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7317 # Sed substitution to delay expansion of an escaped shell variable in a
7318 # double_quote_subst'ed string.
7319 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7321 # Sed substitution to delay expansion of an escaped single quote.
7322 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7324 # Sed substitution to avoid accidental globbing in evaled expressions
7325 no_glob_subst='s/\*/\\\*/g'
7327 # Global variables:
7328 ofile=libtool
7329 can_build_shared=yes
7331 # All known linkers require a `.a' archive for static linking (except MSVC,
7332 # which needs '.lib').
7333 libext=a
7335 with_gnu_ld="$lt_cv_prog_gnu_ld"
7337 old_CC="$CC"
7338 old_CFLAGS="$CFLAGS"
7340 # Set sane defaults for various variables
7341 test -z "$CC" && CC=cc
7342 test -z "$LTCC" && LTCC=$CC
7343 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7344 test -z "$LD" && LD=ld
7345 test -z "$ac_objext" && ac_objext=o
7347 for cc_temp in $compiler""; do
7348 case $cc_temp in
7349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7351 \-*) ;;
7352 *) break;;
7353 esac
7354 done
7355 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7358 # Only perform the check for file, if the check method requires it
7359 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7360 case $deplibs_check_method in
7361 file_magic*)
7362 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7363 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7364 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7365 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7366 $as_echo_n "(cached) " >&6
7367 else
7368 case $MAGIC_CMD in
7369 [\\/*] | ?:[\\/]*)
7370 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7373 lt_save_MAGIC_CMD="$MAGIC_CMD"
7374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7375 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7376 for ac_dir in $ac_dummy; do
7377 IFS="$lt_save_ifs"
7378 test -z "$ac_dir" && ac_dir=.
7379 if test -f $ac_dir/${ac_tool_prefix}file; then
7380 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7381 if test -n "$file_magic_test_file"; then
7382 case $deplibs_check_method in
7383 "file_magic "*)
7384 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7386 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7387 $EGREP "$file_magic_regex" > /dev/null; then
7389 else
7390 cat <<_LT_EOF 1>&2
7392 *** Warning: the command libtool uses to detect shared libraries,
7393 *** $file_magic_cmd, produces output that libtool cannot recognize.
7394 *** The result is that libtool may fail to recognize shared libraries
7395 *** as such. This will affect the creation of libtool libraries that
7396 *** depend on shared libraries, but programs linked with such libtool
7397 *** libraries will work regardless of this problem. Nevertheless, you
7398 *** may want to report the problem to your system manager and/or to
7399 *** bug-libtool@gnu.org
7401 _LT_EOF
7402 fi ;;
7403 esac
7405 break
7407 done
7408 IFS="$lt_save_ifs"
7409 MAGIC_CMD="$lt_save_MAGIC_CMD"
7411 esac
7414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7415 if test -n "$MAGIC_CMD"; then
7416 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7417 $as_echo "$MAGIC_CMD" >&6; }
7418 else
7419 { $as_echo "$as_me:$LINENO: result: no" >&5
7420 $as_echo "no" >&6; }
7427 if test -z "$lt_cv_path_MAGIC_CMD"; then
7428 if test -n "$ac_tool_prefix"; then
7429 { $as_echo "$as_me:$LINENO: checking for file" >&5
7430 $as_echo_n "checking for file... " >&6; }
7431 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7432 $as_echo_n "(cached) " >&6
7433 else
7434 case $MAGIC_CMD in
7435 [\\/*] | ?:[\\/]*)
7436 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7439 lt_save_MAGIC_CMD="$MAGIC_CMD"
7440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7441 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7442 for ac_dir in $ac_dummy; do
7443 IFS="$lt_save_ifs"
7444 test -z "$ac_dir" && ac_dir=.
7445 if test -f $ac_dir/file; then
7446 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7447 if test -n "$file_magic_test_file"; then
7448 case $deplibs_check_method in
7449 "file_magic "*)
7450 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7452 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7453 $EGREP "$file_magic_regex" > /dev/null; then
7455 else
7456 cat <<_LT_EOF 1>&2
7458 *** Warning: the command libtool uses to detect shared libraries,
7459 *** $file_magic_cmd, produces output that libtool cannot recognize.
7460 *** The result is that libtool may fail to recognize shared libraries
7461 *** as such. This will affect the creation of libtool libraries that
7462 *** depend on shared libraries, but programs linked with such libtool
7463 *** libraries will work regardless of this problem. Nevertheless, you
7464 *** may want to report the problem to your system manager and/or to
7465 *** bug-libtool@gnu.org
7467 _LT_EOF
7468 fi ;;
7469 esac
7471 break
7473 done
7474 IFS="$lt_save_ifs"
7475 MAGIC_CMD="$lt_save_MAGIC_CMD"
7477 esac
7480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7481 if test -n "$MAGIC_CMD"; then
7482 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7483 $as_echo "$MAGIC_CMD" >&6; }
7484 else
7485 { $as_echo "$as_me:$LINENO: result: no" >&5
7486 $as_echo "no" >&6; }
7490 else
7491 MAGIC_CMD=:
7497 esac
7499 # Use C for the default configuration in the libtool script
7501 lt_save_CC="$CC"
7502 ac_ext=c
7503 ac_cpp='$CPP $CPPFLAGS'
7504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7509 # Source file extension for C test sources.
7510 ac_ext=c
7512 # Object file extension for compiled C test sources.
7513 objext=o
7514 objext=$objext
7516 # Code to be used in simple compile tests
7517 lt_simple_compile_test_code="int some_variable = 0;"
7519 # Code to be used in simple link tests
7520 lt_simple_link_test_code='int main(){return(0);}'
7528 # If no C compiler was specified, use CC.
7529 LTCC=${LTCC-"$CC"}
7531 # If no C compiler flags were specified, use CFLAGS.
7532 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7534 # Allow CC to be a program name with arguments.
7535 compiler=$CC
7537 # Save the default compiler, since it gets overwritten when the other
7538 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7539 compiler_DEFAULT=$CC
7541 # save warnings/boilerplate of simple test code
7542 ac_outfile=conftest.$ac_objext
7543 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7544 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7545 _lt_compiler_boilerplate=`cat conftest.err`
7546 $RM conftest*
7548 ac_outfile=conftest.$ac_objext
7549 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7550 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7551 _lt_linker_boilerplate=`cat conftest.err`
7552 $RM -r conftest*
7555 if test -n "$compiler"; then
7557 lt_prog_compiler_no_builtin_flag=
7559 if test "$GCC" = yes; then
7560 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7562 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7563 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7564 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7565 $as_echo_n "(cached) " >&6
7566 else
7567 lt_cv_prog_compiler_rtti_exceptions=no
7568 ac_outfile=conftest.$ac_objext
7569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7570 lt_compiler_flag="-fno-rtti -fno-exceptions"
7571 # Insert the option either (1) after the last *FLAGS variable, or
7572 # (2) before a word containing "conftest.", or (3) at the end.
7573 # Note that $ac_compile itself does not contain backslashes and begins
7574 # with a dollar sign (not a hyphen), so the echo should work correctly.
7575 # The option is referenced via a variable to avoid confusing sed.
7576 lt_compile=`echo "$ac_compile" | $SED \
7577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7579 -e 's:$: $lt_compiler_flag:'`
7580 (eval echo "\"\$as_me:7580: $lt_compile\"" >&5)
7581 (eval "$lt_compile" 2>conftest.err)
7582 ac_status=$?
7583 cat conftest.err >&5
7584 echo "$as_me:7584: \$? = $ac_status" >&5
7585 if (exit $ac_status) && test -s "$ac_outfile"; then
7586 # The compiler can only warn and ignore the option if not recognized
7587 # So say no if there are warnings other than the usual output.
7588 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7590 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7591 lt_cv_prog_compiler_rtti_exceptions=yes
7594 $RM conftest*
7597 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7598 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7600 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7601 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7602 else
7613 lt_prog_compiler_wl=
7614 lt_prog_compiler_pic=
7615 lt_prog_compiler_static=
7617 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7618 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7620 if test "$GCC" = yes; then
7621 lt_prog_compiler_wl='-Wl,'
7622 lt_prog_compiler_static='-static'
7624 case $host_os in
7625 aix*)
7626 # All AIX code is PIC.
7627 if test "$host_cpu" = ia64; then
7628 # AIX 5 now supports IA64 processor
7629 lt_prog_compiler_static='-Bstatic'
7633 amigaos*)
7634 case $host_cpu in
7635 powerpc)
7636 # see comment about AmigaOS4 .so support
7637 lt_prog_compiler_pic='-fPIC'
7639 m68k)
7640 # FIXME: we need at least 68020 code to build shared libraries, but
7641 # adding the `-m68020' flag to GCC prevents building anything better,
7642 # like `-m68040'.
7643 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7645 esac
7648 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7649 # PIC is the default for these OSes.
7652 mingw* | cygwin* | pw32* | os2* | cegcc*)
7653 # This hack is so that the source file can tell whether it is being
7654 # built for inclusion in a dll (and should export symbols for example).
7655 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7656 # (--disable-auto-import) libraries
7657 lt_prog_compiler_pic='-DDLL_EXPORT'
7660 darwin* | rhapsody*)
7661 # PIC is the default on this platform
7662 # Common symbols not allowed in MH_DYLIB files
7663 lt_prog_compiler_pic='-fno-common'
7666 hpux*)
7667 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7668 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7669 # sets the default TLS model and affects inlining.
7670 case $host_cpu in
7671 hppa*64*)
7672 # +Z the default
7675 lt_prog_compiler_pic='-fPIC'
7677 esac
7680 interix[3-9]*)
7681 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7682 # Instead, we relocate shared libraries at runtime.
7685 msdosdjgpp*)
7686 # Just because we use GCC doesn't mean we suddenly get shared libraries
7687 # on systems that don't support them.
7688 lt_prog_compiler_can_build_shared=no
7689 enable_shared=no
7692 *nto* | *qnx*)
7693 # QNX uses GNU C++, but need to define -shared option too, otherwise
7694 # it will coredump.
7695 lt_prog_compiler_pic='-fPIC -shared'
7698 sysv4*MP*)
7699 if test -d /usr/nec; then
7700 lt_prog_compiler_pic=-Kconform_pic
7705 lt_prog_compiler_pic='-fPIC'
7707 esac
7708 else
7709 # PORTME Check for flag to pass linker flags through the system compiler.
7710 case $host_os in
7711 aix*)
7712 lt_prog_compiler_wl='-Wl,'
7713 if test "$host_cpu" = ia64; then
7714 # AIX 5 now supports IA64 processor
7715 lt_prog_compiler_static='-Bstatic'
7716 else
7717 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7721 mingw* | cygwin* | pw32* | os2* | cegcc*)
7722 # This hack is so that the source file can tell whether it is being
7723 # built for inclusion in a dll (and should export symbols for example).
7724 lt_prog_compiler_pic='-DDLL_EXPORT'
7727 hpux9* | hpux10* | hpux11*)
7728 lt_prog_compiler_wl='-Wl,'
7729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7730 # not for PA HP-UX.
7731 case $host_cpu in
7732 hppa*64*|ia64*)
7733 # +Z the default
7736 lt_prog_compiler_pic='+Z'
7738 esac
7739 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7740 lt_prog_compiler_static='${wl}-a ${wl}archive'
7743 irix5* | irix6* | nonstopux*)
7744 lt_prog_compiler_wl='-Wl,'
7745 # PIC (with -KPIC) is the default.
7746 lt_prog_compiler_static='-non_shared'
7749 linux* | k*bsd*-gnu)
7750 case $cc_basename in
7751 # old Intel for x86_64 which still supported -KPIC.
7752 ecc*)
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_pic='-KPIC'
7755 lt_prog_compiler_static='-static'
7757 # icc used to be incompatible with GCC.
7758 # ICC 10 doesn't accept -KPIC any more.
7759 icc* | ifort*)
7760 lt_prog_compiler_wl='-Wl,'
7761 lt_prog_compiler_pic='-fPIC'
7762 lt_prog_compiler_static='-static'
7764 # Lahey Fortran 8.1.
7765 lf95*)
7766 lt_prog_compiler_wl='-Wl,'
7767 lt_prog_compiler_pic='--shared'
7768 lt_prog_compiler_static='--static'
7770 pgcc* | pgf77* | pgf90* | pgf95*)
7771 # Portland Group compilers (*not* the Pentium gcc compiler,
7772 # which looks to be a dead project)
7773 lt_prog_compiler_wl='-Wl,'
7774 lt_prog_compiler_pic='-fpic'
7775 lt_prog_compiler_static='-Bstatic'
7777 ccc*)
7778 lt_prog_compiler_wl='-Wl,'
7779 # All Alpha code is PIC.
7780 lt_prog_compiler_static='-non_shared'
7782 xl*)
7783 # IBM XL C 8.0/Fortran 10.1 on PPC
7784 lt_prog_compiler_wl='-Wl,'
7785 lt_prog_compiler_pic='-qpic'
7786 lt_prog_compiler_static='-qstaticlink'
7789 case `$CC -V 2>&1 | sed 5q` in
7790 *Sun\ C*)
7791 # Sun C 5.9
7792 lt_prog_compiler_pic='-KPIC'
7793 lt_prog_compiler_static='-Bstatic'
7794 lt_prog_compiler_wl='-Wl,'
7796 *Sun\ F*)
7797 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7798 lt_prog_compiler_pic='-KPIC'
7799 lt_prog_compiler_static='-Bstatic'
7800 lt_prog_compiler_wl=''
7802 esac
7804 esac
7807 newsos6)
7808 lt_prog_compiler_pic='-KPIC'
7809 lt_prog_compiler_static='-Bstatic'
7812 *nto* | *qnx*)
7813 # QNX uses GNU C++, but need to define -shared option too, otherwise
7814 # it will coredump.
7815 lt_prog_compiler_pic='-fPIC -shared'
7818 osf3* | osf4* | osf5*)
7819 lt_prog_compiler_wl='-Wl,'
7820 # All OSF/1 code is PIC.
7821 lt_prog_compiler_static='-non_shared'
7824 rdos*)
7825 lt_prog_compiler_static='-non_shared'
7828 solaris*)
7829 lt_prog_compiler_pic='-KPIC'
7830 lt_prog_compiler_static='-Bstatic'
7831 case $cc_basename in
7832 f77* | f90* | f95*)
7833 lt_prog_compiler_wl='-Qoption ld ';;
7835 lt_prog_compiler_wl='-Wl,';;
7836 esac
7839 sunos4*)
7840 lt_prog_compiler_wl='-Qoption ld '
7841 lt_prog_compiler_pic='-PIC'
7842 lt_prog_compiler_static='-Bstatic'
7845 sysv4 | sysv4.2uw2* | sysv4.3*)
7846 lt_prog_compiler_wl='-Wl,'
7847 lt_prog_compiler_pic='-KPIC'
7848 lt_prog_compiler_static='-Bstatic'
7851 sysv4*MP*)
7852 if test -d /usr/nec ;then
7853 lt_prog_compiler_pic='-Kconform_pic'
7854 lt_prog_compiler_static='-Bstatic'
7858 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7859 lt_prog_compiler_wl='-Wl,'
7860 lt_prog_compiler_pic='-KPIC'
7861 lt_prog_compiler_static='-Bstatic'
7864 unicos*)
7865 lt_prog_compiler_wl='-Wl,'
7866 lt_prog_compiler_can_build_shared=no
7869 uts4*)
7870 lt_prog_compiler_pic='-pic'
7871 lt_prog_compiler_static='-Bstatic'
7875 lt_prog_compiler_can_build_shared=no
7877 esac
7880 case $host_os in
7881 # For platforms which do not support PIC, -DPIC is meaningless:
7882 *djgpp*)
7883 lt_prog_compiler_pic=
7886 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7888 esac
7889 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7890 $as_echo "$lt_prog_compiler_pic" >&6; }
7898 # Check to make sure the PIC flag actually works.
7900 if test -n "$lt_prog_compiler_pic"; then
7901 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7902 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7903 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7904 $as_echo_n "(cached) " >&6
7905 else
7906 lt_cv_prog_compiler_pic_works=no
7907 ac_outfile=conftest.$ac_objext
7908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7909 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7910 # Insert the option either (1) after the last *FLAGS variable, or
7911 # (2) before a word containing "conftest.", or (3) at the end.
7912 # Note that $ac_compile itself does not contain backslashes and begins
7913 # with a dollar sign (not a hyphen), so the echo should work correctly.
7914 # The option is referenced via a variable to avoid confusing sed.
7915 lt_compile=`echo "$ac_compile" | $SED \
7916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7918 -e 's:$: $lt_compiler_flag:'`
7919 (eval echo "\"\$as_me:7919: $lt_compile\"" >&5)
7920 (eval "$lt_compile" 2>conftest.err)
7921 ac_status=$?
7922 cat conftest.err >&5
7923 echo "$as_me:7923: \$? = $ac_status" >&5
7924 if (exit $ac_status) && test -s "$ac_outfile"; then
7925 # The compiler can only warn and ignore the option if not recognized
7926 # So say no if there are warnings other than the usual output.
7927 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7930 lt_cv_prog_compiler_pic_works=yes
7933 $RM conftest*
7936 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7937 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7939 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7940 case $lt_prog_compiler_pic in
7941 "" | " "*) ;;
7942 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7943 esac
7944 else
7945 lt_prog_compiler_pic=
7946 lt_prog_compiler_can_build_shared=no
7957 # Check to make sure the static flag actually works.
7959 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7960 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7961 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7962 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7963 $as_echo_n "(cached) " >&6
7964 else
7965 lt_cv_prog_compiler_static_works=no
7966 save_LDFLAGS="$LDFLAGS"
7967 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7968 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7970 # The linker can only warn and ignore the option if not recognized
7971 # So say no if there are warnings
7972 if test -s conftest.err; then
7973 # Append any errors to the config.log.
7974 cat conftest.err 1>&5
7975 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7977 if diff conftest.exp conftest.er2 >/dev/null; then
7978 lt_cv_prog_compiler_static_works=yes
7980 else
7981 lt_cv_prog_compiler_static_works=yes
7984 $RM -r conftest*
7985 LDFLAGS="$save_LDFLAGS"
7988 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7989 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7991 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7993 else
7994 lt_prog_compiler_static=
8003 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8004 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8005 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8006 $as_echo_n "(cached) " >&6
8007 else
8008 lt_cv_prog_compiler_c_o=no
8009 $RM -r conftest 2>/dev/null
8010 mkdir conftest
8011 cd conftest
8012 mkdir out
8013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8015 lt_compiler_flag="-o out/conftest2.$ac_objext"
8016 # Insert the option either (1) after the last *FLAGS variable, or
8017 # (2) before a word containing "conftest.", or (3) at the end.
8018 # Note that $ac_compile itself does not contain backslashes and begins
8019 # with a dollar sign (not a hyphen), so the echo should work correctly.
8020 lt_compile=`echo "$ac_compile" | $SED \
8021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8023 -e 's:$: $lt_compiler_flag:'`
8024 (eval echo "\"\$as_me:8024: $lt_compile\"" >&5)
8025 (eval "$lt_compile" 2>out/conftest.err)
8026 ac_status=$?
8027 cat out/conftest.err >&5
8028 echo "$as_me:8028: \$? = $ac_status" >&5
8029 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8030 then
8031 # The compiler can only warn and ignore the option if not recognized
8032 # So say no if there are warnings
8033 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8034 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8035 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8036 lt_cv_prog_compiler_c_o=yes
8039 chmod u+w . 2>&5
8040 $RM conftest*
8041 # SGI C++ compiler will create directory out/ii_files/ for
8042 # template instantiation
8043 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8044 $RM out/* && rmdir out
8045 cd ..
8046 $RM -r conftest
8047 $RM conftest*
8050 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8051 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8058 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8059 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8060 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8061 $as_echo_n "(cached) " >&6
8062 else
8063 lt_cv_prog_compiler_c_o=no
8064 $RM -r conftest 2>/dev/null
8065 mkdir conftest
8066 cd conftest
8067 mkdir out
8068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8070 lt_compiler_flag="-o out/conftest2.$ac_objext"
8071 # Insert the option either (1) after the last *FLAGS variable, or
8072 # (2) before a word containing "conftest.", or (3) at the end.
8073 # Note that $ac_compile itself does not contain backslashes and begins
8074 # with a dollar sign (not a hyphen), so the echo should work correctly.
8075 lt_compile=`echo "$ac_compile" | $SED \
8076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8078 -e 's:$: $lt_compiler_flag:'`
8079 (eval echo "\"\$as_me:8079: $lt_compile\"" >&5)
8080 (eval "$lt_compile" 2>out/conftest.err)
8081 ac_status=$?
8082 cat out/conftest.err >&5
8083 echo "$as_me:8083: \$? = $ac_status" >&5
8084 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8085 then
8086 # The compiler can only warn and ignore the option if not recognized
8087 # So say no if there are warnings
8088 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8089 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8090 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8091 lt_cv_prog_compiler_c_o=yes
8094 chmod u+w . 2>&5
8095 $RM conftest*
8096 # SGI C++ compiler will create directory out/ii_files/ for
8097 # template instantiation
8098 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8099 $RM out/* && rmdir out
8100 cd ..
8101 $RM -r conftest
8102 $RM conftest*
8105 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8106 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8111 hard_links="nottested"
8112 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8113 # do not overwrite the value of need_locks provided by the user
8114 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8115 $as_echo_n "checking if we can lock with hard links... " >&6; }
8116 hard_links=yes
8117 $RM conftest*
8118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8119 touch conftest.a
8120 ln conftest.a conftest.b 2>&5 || hard_links=no
8121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8122 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8123 $as_echo "$hard_links" >&6; }
8124 if test "$hard_links" = no; then
8125 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8126 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8127 need_locks=warn
8129 else
8130 need_locks=no
8138 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8139 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8141 runpath_var=
8142 allow_undefined_flag=
8143 always_export_symbols=no
8144 archive_cmds=
8145 archive_expsym_cmds=
8146 compiler_needs_object=no
8147 enable_shared_with_static_runtimes=no
8148 export_dynamic_flag_spec=
8149 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8150 hardcode_automatic=no
8151 hardcode_direct=no
8152 hardcode_direct_absolute=no
8153 hardcode_libdir_flag_spec=
8154 hardcode_libdir_flag_spec_ld=
8155 hardcode_libdir_separator=
8156 hardcode_minus_L=no
8157 hardcode_shlibpath_var=unsupported
8158 inherit_rpath=no
8159 link_all_deplibs=unknown
8160 module_cmds=
8161 module_expsym_cmds=
8162 old_archive_from_new_cmds=
8163 old_archive_from_expsyms_cmds=
8164 thread_safe_flag_spec=
8165 whole_archive_flag_spec=
8166 # include_expsyms should be a list of space-separated symbols to be *always*
8167 # included in the symbol list
8168 include_expsyms=
8169 # exclude_expsyms can be an extended regexp of symbols to exclude
8170 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8171 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8172 # as well as any symbol that contains `d'.
8173 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8174 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8175 # platforms (ab)use it in PIC code, but their linkers get confused if
8176 # the symbol is explicitly referenced. Since portable code cannot
8177 # rely on this symbol name, it's probably fine to never include it in
8178 # preloaded symbol tables.
8179 # Exclude shared library initialization/finalization symbols.
8180 extract_expsyms_cmds=
8182 case $host_os in
8183 cygwin* | mingw* | pw32* | cegcc*)
8184 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8185 # When not using gcc, we currently assume that we are using
8186 # Microsoft Visual C++.
8187 if test "$GCC" != yes; then
8188 with_gnu_ld=no
8191 interix*)
8192 # we just hope/assume this is gcc and not c89 (= MSVC++)
8193 with_gnu_ld=yes
8195 openbsd*)
8196 with_gnu_ld=no
8198 esac
8200 ld_shlibs=yes
8201 if test "$with_gnu_ld" = yes; then
8202 # If archive_cmds runs LD, not CC, wlarc should be empty
8203 wlarc='${wl}'
8205 # Set some defaults for GNU ld with shared library support. These
8206 # are reset later if shared libraries are not supported. Putting them
8207 # here allows them to be overridden if necessary.
8208 runpath_var=LD_RUN_PATH
8209 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8210 export_dynamic_flag_spec='${wl}--export-dynamic'
8211 # ancient GNU ld didn't support --whole-archive et. al.
8212 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8213 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8214 else
8215 whole_archive_flag_spec=
8217 supports_anon_versioning=no
8218 case `$LD -v 2>&1` in
8219 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8220 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8221 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8222 *\ 2.11.*) ;; # other 2.11 versions
8223 *) supports_anon_versioning=yes ;;
8224 esac
8226 # See if GNU ld supports shared libraries.
8227 case $host_os in
8228 aix[3-9]*)
8229 # On AIX/PPC, the GNU linker is very broken
8230 if test "$host_cpu" != ia64; then
8231 ld_shlibs=no
8232 cat <<_LT_EOF 1>&2
8234 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8235 *** to be unable to reliably create shared libraries on AIX.
8236 *** Therefore, libtool is disabling shared libraries support. If you
8237 *** really care for shared libraries, you may want to modify your PATH
8238 *** so that a non-GNU linker is found, and then restart.
8240 _LT_EOF
8244 amigaos*)
8245 case $host_cpu in
8246 powerpc)
8247 # see comment about AmigaOS4 .so support
8248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8249 archive_expsym_cmds=''
8251 m68k)
8252 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8253 hardcode_libdir_flag_spec='-L$libdir'
8254 hardcode_minus_L=yes
8256 esac
8259 beos*)
8260 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8261 allow_undefined_flag=unsupported
8262 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8263 # support --undefined. This deserves some investigation. FIXME
8264 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265 else
8266 ld_shlibs=no
8270 cygwin* | mingw* | pw32* | cegcc*)
8271 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8272 # as there is no search path for DLLs.
8273 hardcode_libdir_flag_spec='-L$libdir'
8274 allow_undefined_flag=unsupported
8275 always_export_symbols=no
8276 enable_shared_with_static_runtimes=yes
8277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8279 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8281 # If the export-symbols file already is a .def file (1st line
8282 # is EXPORTS), use it as is; otherwise, prepend...
8283 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8284 cp $export_symbols $output_objdir/$soname.def;
8285 else
8286 echo EXPORTS > $output_objdir/$soname.def;
8287 cat $export_symbols >> $output_objdir/$soname.def;
8289 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8290 else
8291 ld_shlibs=no
8295 interix[3-9]*)
8296 hardcode_direct=no
8297 hardcode_shlibpath_var=no
8298 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8299 export_dynamic_flag_spec='${wl}-E'
8300 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8301 # Instead, shared libraries are loaded at an image base (0x10000000 by
8302 # default) and relocated if they conflict, which is a slow very memory
8303 # consuming and fragmenting process. To avoid this, we pick a random,
8304 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8305 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8306 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8307 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8310 gnu* | linux* | tpf* | k*bsd*-gnu)
8311 tmp_diet=no
8312 if test "$host_os" = linux-dietlibc; then
8313 case $cc_basename in
8314 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8315 esac
8317 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8318 && test "$tmp_diet" = no
8319 then
8320 tmp_addflag=
8321 tmp_sharedflag='-shared'
8322 case $cc_basename,$host_cpu in
8323 pgcc*) # Portland Group C compiler
8324 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8325 tmp_addflag=' $pic_flag'
8327 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8328 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8329 tmp_addflag=' $pic_flag -Mnomain' ;;
8330 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8331 tmp_addflag=' -i_dynamic' ;;
8332 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8333 tmp_addflag=' -i_dynamic -nofor_main' ;;
8334 ifc* | ifort*) # Intel Fortran compiler
8335 tmp_addflag=' -nofor_main' ;;
8336 lf95*) # Lahey Fortran 8.1
8337 whole_archive_flag_spec=
8338 tmp_sharedflag='--shared' ;;
8339 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8340 tmp_sharedflag='-qmkshrobj'
8341 tmp_addflag= ;;
8342 esac
8343 case `$CC -V 2>&1 | sed 5q` in
8344 *Sun\ C*) # Sun C 5.9
8345 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8346 compiler_needs_object=yes
8347 tmp_sharedflag='-G' ;;
8348 *Sun\ F*) # Sun Fortran 8.3
8349 tmp_sharedflag='-G' ;;
8350 esac
8351 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8353 if test "x$supports_anon_versioning" = xyes; then
8354 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8355 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8356 echo "local: *; };" >> $output_objdir/$libname.ver~
8357 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8360 case $cc_basename in
8361 xlf*)
8362 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8363 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8364 hardcode_libdir_flag_spec=
8365 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8366 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8367 if test "x$supports_anon_versioning" = xyes; then
8368 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8369 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8370 echo "local: *; };" >> $output_objdir/$libname.ver~
8371 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8374 esac
8375 else
8376 ld_shlibs=no
8380 netbsd* | netbsdelf*-gnu)
8381 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8382 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8383 wlarc=
8384 else
8385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8386 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8390 solaris*)
8391 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8392 ld_shlibs=no
8393 cat <<_LT_EOF 1>&2
8395 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8396 *** create shared libraries on Solaris systems. Therefore, libtool
8397 *** is disabling shared libraries support. We urge you to upgrade GNU
8398 *** binutils to release 2.9.1 or newer. Another option is to modify
8399 *** your PATH or compiler configuration so that the native linker is
8400 *** used, and then restart.
8402 _LT_EOF
8403 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8406 else
8407 ld_shlibs=no
8411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8412 case `$LD -v 2>&1` in
8413 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8414 ld_shlibs=no
8415 cat <<_LT_EOF 1>&2
8417 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8418 *** reliably create shared libraries on SCO systems. Therefore, libtool
8419 *** is disabling shared libraries support. We urge you to upgrade GNU
8420 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8421 *** your PATH or compiler configuration so that the native linker is
8422 *** used, and then restart.
8424 _LT_EOF
8427 # For security reasons, it is highly recommended that you always
8428 # use absolute paths for naming shared libraries, and exclude the
8429 # DT_RUNPATH tag from executables and libraries. But doing so
8430 # requires that you compile everything twice, which is a pain.
8431 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8432 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8434 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8435 else
8436 ld_shlibs=no
8439 esac
8442 sunos4*)
8443 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8444 wlarc=
8445 hardcode_direct=yes
8446 hardcode_shlibpath_var=no
8450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8452 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8453 else
8454 ld_shlibs=no
8457 esac
8459 if test "$ld_shlibs" = no; then
8460 runpath_var=
8461 hardcode_libdir_flag_spec=
8462 export_dynamic_flag_spec=
8463 whole_archive_flag_spec=
8465 else
8466 # PORTME fill in a description of your system's linker (not GNU ld)
8467 case $host_os in
8468 aix3*)
8469 allow_undefined_flag=unsupported
8470 always_export_symbols=yes
8471 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8472 # Note: this linker hardcodes the directories in LIBPATH if there
8473 # are no directories specified by -L.
8474 hardcode_minus_L=yes
8475 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8476 # Neither direct hardcoding nor static linking is supported with a
8477 # broken collect2.
8478 hardcode_direct=unsupported
8482 aix[4-9]*)
8483 if test "$host_cpu" = ia64; then
8484 # On IA64, the linker does run time linking by default, so we don't
8485 # have to do anything special.
8486 aix_use_runtimelinking=no
8487 exp_sym_flag='-Bexport'
8488 no_entry_flag=""
8489 else
8490 # If we're using GNU nm, then we don't want the "-C" option.
8491 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8492 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8493 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8494 else
8495 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8497 aix_use_runtimelinking=no
8499 # Test if we are trying to use run time linking or normal
8500 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8501 # need to do runtime linking.
8502 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8503 for ld_flag in $LDFLAGS; do
8504 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8505 aix_use_runtimelinking=yes
8506 break
8508 done
8510 esac
8512 exp_sym_flag='-bexport'
8513 no_entry_flag='-bnoentry'
8516 # When large executables or shared objects are built, AIX ld can
8517 # have problems creating the table of contents. If linking a library
8518 # or program results in "error TOC overflow" add -mminimal-toc to
8519 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8520 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8522 archive_cmds=''
8523 hardcode_direct=yes
8524 hardcode_direct_absolute=yes
8525 hardcode_libdir_separator=':'
8526 link_all_deplibs=yes
8527 file_list_spec='${wl}-f,'
8529 if test "$GCC" = yes; then
8530 case $host_os in aix4.[012]|aix4.[012].*)
8531 # We only want to do this on AIX 4.2 and lower, the check
8532 # below for broken collect2 doesn't work under 4.3+
8533 collect2name=`${CC} -print-prog-name=collect2`
8534 if test -f "$collect2name" &&
8535 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8536 then
8537 # We have reworked collect2
8539 else
8540 # We have old collect2
8541 hardcode_direct=unsupported
8542 # It fails to find uninstalled libraries when the uninstalled
8543 # path is not listed in the libpath. Setting hardcode_minus_L
8544 # to unsupported forces relinking
8545 hardcode_minus_L=yes
8546 hardcode_libdir_flag_spec='-L$libdir'
8547 hardcode_libdir_separator=
8550 esac
8551 shared_flag='-shared'
8552 if test "$aix_use_runtimelinking" = yes; then
8553 shared_flag="$shared_flag "'${wl}-G'
8555 link_all_deplibs=no
8556 else
8557 # not using gcc
8558 if test "$host_cpu" = ia64; then
8559 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8560 # chokes on -Wl,-G. The following line is correct:
8561 shared_flag='-G'
8562 else
8563 if test "$aix_use_runtimelinking" = yes; then
8564 shared_flag='${wl}-G'
8565 else
8566 shared_flag='${wl}-bM:SRE'
8571 export_dynamic_flag_spec='${wl}-bexpall'
8572 # It seems that -bexpall does not export symbols beginning with
8573 # underscore (_), so it is better to generate a list of symbols to export.
8574 always_export_symbols=yes
8575 if test "$aix_use_runtimelinking" = yes; then
8576 # Warning - without using the other runtime loading flags (-brtl),
8577 # -berok will link without error, but may produce a broken library.
8578 allow_undefined_flag='-berok'
8579 # Determine the default libpath from the value encoded in an
8580 # empty executable.
8581 cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h. */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8589 main ()
8593 return 0;
8595 _ACEOF
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8598 case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8601 esac
8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8603 $as_echo "$ac_try_echo") >&5
8604 (eval "$ac_link") 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } && {
8611 test -z "$ac_c_werror_flag" ||
8612 test ! -s conftest.err
8613 } && test -s conftest$ac_exeext && {
8614 test "$cross_compiling" = yes ||
8615 $as_test_x conftest$ac_exeext
8616 }; then
8618 lt_aix_libpath_sed='
8619 /Import File Strings/,/^$/ {
8620 /^0/ {
8621 s/^0 *\(.*\)$/\1/
8625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8626 # Check for a 64-bit object if we didn't find anything.
8627 if test -z "$aix_libpath"; then
8628 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8630 else
8631 $as_echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8637 rm -rf conftest.dSYM
8638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8639 conftest$ac_exeext conftest.$ac_ext
8640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8643 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8644 else
8645 if test "$host_cpu" = ia64; then
8646 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8647 allow_undefined_flag="-z nodefs"
8648 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8649 else
8650 # Determine the default libpath from the value encoded in an
8651 # empty executable.
8652 cat >conftest.$ac_ext <<_ACEOF
8653 /* confdefs.h. */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8660 main ()
8664 return 0;
8666 _ACEOF
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (ac_try="$ac_link"
8669 case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8672 esac
8673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8674 $as_echo "$ac_try_echo") >&5
8675 (eval "$ac_link") 2>conftest.er1
8676 ac_status=$?
8677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
8680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } && {
8682 test -z "$ac_c_werror_flag" ||
8683 test ! -s conftest.err
8684 } && test -s conftest$ac_exeext && {
8685 test "$cross_compiling" = yes ||
8686 $as_test_x conftest$ac_exeext
8687 }; then
8689 lt_aix_libpath_sed='
8690 /Import File Strings/,/^$/ {
8691 /^0/ {
8692 s/^0 *\(.*\)$/\1/
8696 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8697 # Check for a 64-bit object if we didn't find anything.
8698 if test -z "$aix_libpath"; then
8699 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8701 else
8702 $as_echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8708 rm -rf conftest.dSYM
8709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8710 conftest$ac_exeext conftest.$ac_ext
8711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8714 # Warning - without using the other run time loading flags,
8715 # -berok will link without error, but may produce a broken library.
8716 no_undefined_flag=' ${wl}-bernotok'
8717 allow_undefined_flag=' ${wl}-berok'
8718 # Exported symbols can be pulled into shared objects from archives
8719 whole_archive_flag_spec='$convenience'
8720 archive_cmds_need_lc=yes
8721 # This is similar to how AIX traditionally builds its shared libraries.
8722 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8727 amigaos*)
8728 case $host_cpu in
8729 powerpc)
8730 # see comment about AmigaOS4 .so support
8731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732 archive_expsym_cmds=''
8734 m68k)
8735 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8736 hardcode_libdir_flag_spec='-L$libdir'
8737 hardcode_minus_L=yes
8739 esac
8742 bsdi[45]*)
8743 export_dynamic_flag_spec=-rdynamic
8746 cygwin* | mingw* | pw32* | cegcc*)
8747 # When not using gcc, we currently assume that we are using
8748 # Microsoft Visual C++.
8749 # hardcode_libdir_flag_spec is actually meaningless, as there is
8750 # no search path for DLLs.
8751 hardcode_libdir_flag_spec=' '
8752 allow_undefined_flag=unsupported
8753 # Tell ltmain to make .lib files, not .a files.
8754 libext=lib
8755 # Tell ltmain to make .dll files, not .so files.
8756 shrext_cmds=".dll"
8757 # FIXME: Setting linknames here is a bad hack.
8758 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8759 # The linker will automatically build a .lib file if we build a DLL.
8760 old_archive_from_new_cmds='true'
8761 # FIXME: Should let the user specify the lib program.
8762 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8763 fix_srcfile_path='`cygpath -w "$srcfile"`'
8764 enable_shared_with_static_runtimes=yes
8767 darwin* | rhapsody*)
8770 archive_cmds_need_lc=no
8771 hardcode_direct=no
8772 hardcode_automatic=yes
8773 hardcode_shlibpath_var=unsupported
8774 whole_archive_flag_spec=''
8775 link_all_deplibs=yes
8776 allow_undefined_flag="$_lt_dar_allow_undefined"
8777 case $cc_basename in
8778 ifort*) _lt_dar_can_shared=yes ;;
8779 *) _lt_dar_can_shared=$GCC ;;
8780 esac
8781 if test "$_lt_dar_can_shared" = "yes"; then
8782 output_verbose_link_cmd=echo
8783 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8784 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8785 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8786 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8788 else
8789 ld_shlibs=no
8794 dgux*)
8795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8796 hardcode_libdir_flag_spec='-L$libdir'
8797 hardcode_shlibpath_var=no
8800 freebsd1*)
8801 ld_shlibs=no
8804 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8805 # support. Future versions do this automatically, but an explicit c++rt0.o
8806 # does not break anything, and helps significantly (at the cost of a little
8807 # extra space).
8808 freebsd2.2*)
8809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8810 hardcode_libdir_flag_spec='-R$libdir'
8811 hardcode_direct=yes
8812 hardcode_shlibpath_var=no
8815 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8816 freebsd2*)
8817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8818 hardcode_direct=yes
8819 hardcode_minus_L=yes
8820 hardcode_shlibpath_var=no
8823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8824 freebsd* | dragonfly*)
8825 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8826 hardcode_libdir_flag_spec='-R$libdir'
8827 hardcode_direct=yes
8828 hardcode_shlibpath_var=no
8831 hpux9*)
8832 if test "$GCC" = yes; then
8833 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8834 else
8835 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8838 hardcode_libdir_separator=:
8839 hardcode_direct=yes
8841 # hardcode_minus_L: Not really in the search PATH,
8842 # but as the default location of the library.
8843 hardcode_minus_L=yes
8844 export_dynamic_flag_spec='${wl}-E'
8847 hpux10*)
8848 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8849 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8850 else
8851 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8853 if test "$with_gnu_ld" = no; then
8854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8855 hardcode_libdir_flag_spec_ld='+b $libdir'
8856 hardcode_libdir_separator=:
8857 hardcode_direct=yes
8858 hardcode_direct_absolute=yes
8859 export_dynamic_flag_spec='${wl}-E'
8860 # hardcode_minus_L: Not really in the search PATH,
8861 # but as the default location of the library.
8862 hardcode_minus_L=yes
8866 hpux11*)
8867 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8868 case $host_cpu in
8869 hppa*64*)
8870 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8872 ia64*)
8873 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8876 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8878 esac
8879 else
8880 case $host_cpu in
8881 hppa*64*)
8882 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8884 ia64*)
8885 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8888 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8890 esac
8892 if test "$with_gnu_ld" = no; then
8893 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8894 hardcode_libdir_separator=:
8896 case $host_cpu in
8897 hppa*64*|ia64*)
8898 hardcode_direct=no
8899 hardcode_shlibpath_var=no
8902 hardcode_direct=yes
8903 hardcode_direct_absolute=yes
8904 export_dynamic_flag_spec='${wl}-E'
8906 # hardcode_minus_L: Not really in the search PATH,
8907 # but as the default location of the library.
8908 hardcode_minus_L=yes
8910 esac
8914 irix5* | irix6* | nonstopux*)
8915 if test "$GCC" = yes; then
8916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8917 # Try to use the -exported_symbol ld option, if it does not
8918 # work, assume that -exports_file does not work either and
8919 # implicitly export all symbols.
8920 save_LDFLAGS="$LDFLAGS"
8921 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8922 cat >conftest.$ac_ext <<_ACEOF
8923 int foo(void) {}
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (ac_try="$ac_link"
8927 case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8930 esac
8931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932 $as_echo "$ac_try_echo") >&5
8933 (eval "$ac_link") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest$ac_exeext && {
8943 test "$cross_compiling" = yes ||
8944 $as_test_x conftest$ac_exeext
8945 }; then
8946 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8948 else
8949 $as_echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8955 rm -rf conftest.dSYM
8956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8957 conftest$ac_exeext conftest.$ac_ext
8958 LDFLAGS="$save_LDFLAGS"
8959 else
8960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8963 archive_cmds_need_lc='no'
8964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8965 hardcode_libdir_separator=:
8966 inherit_rpath=yes
8967 link_all_deplibs=yes
8970 netbsd* | netbsdelf*-gnu)
8971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8973 else
8974 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8976 hardcode_libdir_flag_spec='-R$libdir'
8977 hardcode_direct=yes
8978 hardcode_shlibpath_var=no
8981 newsos6)
8982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983 hardcode_direct=yes
8984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8985 hardcode_libdir_separator=:
8986 hardcode_shlibpath_var=no
8989 *nto* | *qnx*)
8992 openbsd*)
8993 if test -f /usr/libexec/ld.so; then
8994 hardcode_direct=yes
8995 hardcode_shlibpath_var=no
8996 hardcode_direct_absolute=yes
8997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8999 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9000 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9001 export_dynamic_flag_spec='${wl}-E'
9002 else
9003 case $host_os in
9004 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9006 hardcode_libdir_flag_spec='-R$libdir'
9009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9010 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9012 esac
9014 else
9015 ld_shlibs=no
9019 os2*)
9020 hardcode_libdir_flag_spec='-L$libdir'
9021 hardcode_minus_L=yes
9022 allow_undefined_flag=unsupported
9023 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9024 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9027 osf3*)
9028 if test "$GCC" = yes; then
9029 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9030 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9031 else
9032 allow_undefined_flag=' -expect_unresolved \*'
9033 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9035 archive_cmds_need_lc='no'
9036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9037 hardcode_libdir_separator=:
9040 osf4* | osf5*) # as osf3* with the addition of -msym flag
9041 if test "$GCC" = yes; then
9042 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9043 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9045 else
9046 allow_undefined_flag=' -expect_unresolved \*'
9047 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9048 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9049 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9051 # Both c and cxx compiler support -rpath directly
9052 hardcode_libdir_flag_spec='-rpath $libdir'
9054 archive_cmds_need_lc='no'
9055 hardcode_libdir_separator=:
9058 solaris*)
9059 no_undefined_flag=' -z defs'
9060 if test "$GCC" = yes; then
9061 wlarc='${wl}'
9062 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9064 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9065 else
9066 case `$CC -V 2>&1` in
9067 *"Compilers 5.0"*)
9068 wlarc=''
9069 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9071 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9074 wlarc='${wl}'
9075 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9077 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9079 esac
9081 hardcode_libdir_flag_spec='-R$libdir'
9082 hardcode_shlibpath_var=no
9083 case $host_os in
9084 solaris2.[0-5] | solaris2.[0-5].*) ;;
9086 # The compiler driver will combine and reorder linker options,
9087 # but understands `-z linker_flag'. GCC discards it without `$wl',
9088 # but is careful enough not to reorder.
9089 # Supported since Solaris 2.6 (maybe 2.5.1?)
9090 if test "$GCC" = yes; then
9091 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9092 else
9093 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9096 esac
9097 link_all_deplibs=yes
9100 sunos4*)
9101 if test "x$host_vendor" = xsequent; then
9102 # Use $CC to link under sequent, because it throws in some extra .o
9103 # files that make .init and .fini sections work.
9104 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9105 else
9106 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9108 hardcode_libdir_flag_spec='-L$libdir'
9109 hardcode_direct=yes
9110 hardcode_minus_L=yes
9111 hardcode_shlibpath_var=no
9114 sysv4)
9115 case $host_vendor in
9116 sni)
9117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118 hardcode_direct=yes # is this really true???
9120 siemens)
9121 ## LD is ld it makes a PLAMLIB
9122 ## CC just makes a GrossModule.
9123 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9124 reload_cmds='$CC -r -o $output$reload_objs'
9125 hardcode_direct=no
9127 motorola)
9128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9131 esac
9132 runpath_var='LD_RUN_PATH'
9133 hardcode_shlibpath_var=no
9136 sysv4.3*)
9137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_shlibpath_var=no
9139 export_dynamic_flag_spec='-Bexport'
9142 sysv4*MP*)
9143 if test -d /usr/nec; then
9144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9145 hardcode_shlibpath_var=no
9146 runpath_var=LD_RUN_PATH
9147 hardcode_runpath_var=yes
9148 ld_shlibs=yes
9152 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9153 no_undefined_flag='${wl}-z,text'
9154 archive_cmds_need_lc=no
9155 hardcode_shlibpath_var=no
9156 runpath_var='LD_RUN_PATH'
9158 if test "$GCC" = yes; then
9159 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9161 else
9162 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9163 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9167 sysv5* | sco3.2v5* | sco5v6*)
9168 # Note: We can NOT use -z defs as we might desire, because we do not
9169 # link with -lc, and that would cause any symbols used from libc to
9170 # always be unresolved, which means just about no library would
9171 # ever link correctly. If we're not using GNU ld we use -z text
9172 # though, which does catch some bad symbols but isn't as heavy-handed
9173 # as -z defs.
9174 no_undefined_flag='${wl}-z,text'
9175 allow_undefined_flag='${wl}-z,nodefs'
9176 archive_cmds_need_lc=no
9177 hardcode_shlibpath_var=no
9178 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9179 hardcode_libdir_separator=':'
9180 link_all_deplibs=yes
9181 export_dynamic_flag_spec='${wl}-Bexport'
9182 runpath_var='LD_RUN_PATH'
9184 if test "$GCC" = yes; then
9185 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9186 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9187 else
9188 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9193 uts4*)
9194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9195 hardcode_libdir_flag_spec='-L$libdir'
9196 hardcode_shlibpath_var=no
9200 ld_shlibs=no
9202 esac
9204 if test x$host_vendor = xsni; then
9205 case $host in
9206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9207 export_dynamic_flag_spec='${wl}-Blargedynsym'
9209 esac
9213 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9214 $as_echo "$ld_shlibs" >&6; }
9215 test "$ld_shlibs" = no && can_build_shared=no
9217 with_gnu_ld=$with_gnu_ld
9234 # Do we need to explicitly link libc?
9236 case "x$archive_cmds_need_lc" in
9237 x|xyes)
9238 # Assume -lc should be added
9239 archive_cmds_need_lc=yes
9241 if test "$enable_shared" = yes && test "$GCC" = yes; then
9242 case $archive_cmds in
9243 *'~'*)
9244 # FIXME: we may have to deal with multi-command sequences.
9246 '$CC '*)
9247 # Test whether the compiler implicitly links with -lc since on some
9248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9249 # to ld, don't add -lc before -lgcc.
9250 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9251 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9252 $RM conftest*
9253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9256 (eval $ac_compile) 2>&5
9257 ac_status=$?
9258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } 2>conftest.err; then
9260 soname=conftest
9261 lib=conftest
9262 libobjs=conftest.$ac_objext
9263 deplibs=
9264 wl=$lt_prog_compiler_wl
9265 pic_flag=$lt_prog_compiler_pic
9266 compiler_flags=-v
9267 linker_flags=-v
9268 verstring=
9269 output_objdir=.
9270 libname=conftest
9271 lt_save_allow_undefined_flag=$allow_undefined_flag
9272 allow_undefined_flag=
9273 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9274 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9275 ac_status=$?
9276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); }
9278 then
9279 archive_cmds_need_lc=no
9280 else
9281 archive_cmds_need_lc=yes
9283 allow_undefined_flag=$lt_save_allow_undefined_flag
9284 else
9285 cat conftest.err 1>&5
9287 $RM conftest*
9288 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9289 $as_echo "$archive_cmds_need_lc" >&6; }
9291 esac
9294 esac
9452 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9453 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9455 if test "$GCC" = yes; then
9456 case $host_os in
9457 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9458 *) lt_awk_arg="/^libraries:/" ;;
9459 esac
9460 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9461 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9462 # if the path contains ";" then we assume it to be the separator
9463 # otherwise default to the standard path separator (i.e. ":") - it is
9464 # assumed that no part of a normal pathname contains ";" but that should
9465 # okay in the real world where ";" in dirpaths is itself problematic.
9466 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9467 else
9468 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9470 # Ok, now we have the path, separated by spaces, we can step through it
9471 # and add multilib dir if necessary.
9472 lt_tmp_lt_search_path_spec=
9473 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9474 for lt_sys_path in $lt_search_path_spec; do
9475 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9476 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9477 else
9478 test -d "$lt_sys_path" && \
9479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9481 done
9482 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9483 BEGIN {RS=" "; FS="/|\n";} {
9484 lt_foo="";
9485 lt_count=0;
9486 for (lt_i = NF; lt_i > 0; lt_i--) {
9487 if ($lt_i != "" && $lt_i != ".") {
9488 if ($lt_i == "..") {
9489 lt_count++;
9490 } else {
9491 if (lt_count == 0) {
9492 lt_foo="/" $lt_i lt_foo;
9493 } else {
9494 lt_count--;
9499 if (lt_foo != "") { lt_freq[lt_foo]++; }
9500 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9502 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9503 else
9504 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9506 library_names_spec=
9507 libname_spec='lib$name'
9508 soname_spec=
9509 shrext_cmds=".so"
9510 postinstall_cmds=
9511 postuninstall_cmds=
9512 finish_cmds=
9513 finish_eval=
9514 shlibpath_var=
9515 shlibpath_overrides_runpath=unknown
9516 version_type=none
9517 dynamic_linker="$host_os ld.so"
9518 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9519 need_lib_prefix=unknown
9520 hardcode_into_libs=no
9522 # when you set need_version to no, make sure it does not cause -set_version
9523 # flags to be left without arguments
9524 need_version=unknown
9526 case $host_os in
9527 aix3*)
9528 version_type=linux
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9530 shlibpath_var=LIBPATH
9532 # AIX 3 has no versioning support, so we append a major version to the name.
9533 soname_spec='${libname}${release}${shared_ext}$major'
9536 aix[4-9]*)
9537 version_type=linux
9538 need_lib_prefix=no
9539 need_version=no
9540 hardcode_into_libs=yes
9541 if test "$host_cpu" = ia64; then
9542 # AIX 5 supports IA64
9543 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 else
9546 # With GCC up to 2.95.x, collect2 would create an import file
9547 # for dependence libraries. The import file would start with
9548 # the line `#! .'. This would cause the generated library to
9549 # depend on `.', always an invalid library. This was fixed in
9550 # development snapshots of GCC prior to 3.0.
9551 case $host_os in
9552 aix4 | aix4.[01] | aix4.[01].*)
9553 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9554 echo ' yes '
9555 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9557 else
9558 can_build_shared=no
9561 esac
9562 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9563 # soname into executable. Probably we can add versioning support to
9564 # collect2, so additional links can be useful in future.
9565 if test "$aix_use_runtimelinking" = yes; then
9566 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9567 # instead of lib<name>.a to let people know that these are not
9568 # typical AIX shared libraries.
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9570 else
9571 # We preserve .a as extension for shared libraries through AIX4.2
9572 # and later when we are not doing run time linking.
9573 library_names_spec='${libname}${release}.a $libname.a'
9574 soname_spec='${libname}${release}${shared_ext}$major'
9576 shlibpath_var=LIBPATH
9580 amigaos*)
9581 case $host_cpu in
9582 powerpc)
9583 # Since July 2007 AmigaOS4 officially supports .so libraries.
9584 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9587 m68k)
9588 library_names_spec='$libname.ixlibrary $libname.a'
9589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9590 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9592 esac
9595 beos*)
9596 library_names_spec='${libname}${shared_ext}'
9597 dynamic_linker="$host_os ld.so"
9598 shlibpath_var=LIBRARY_PATH
9601 bsdi[45]*)
9602 version_type=linux
9603 need_version=no
9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9605 soname_spec='${libname}${release}${shared_ext}$major'
9606 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9607 shlibpath_var=LD_LIBRARY_PATH
9608 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9609 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9610 # the default ld.so.conf also contains /usr/contrib/lib and
9611 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9612 # libtool to hard-code these into programs
9615 cygwin* | mingw* | pw32* | cegcc*)
9616 version_type=windows
9617 shrext_cmds=".dll"
9618 need_version=no
9619 need_lib_prefix=no
9621 case $GCC,$host_os in
9622 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9623 library_names_spec='$libname.dll.a'
9624 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9625 postinstall_cmds='base_file=`basename \${file}`~
9626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9627 dldir=$destdir/`dirname \$dlpath`~
9628 test -d \$dldir || mkdir -p \$dldir~
9629 $install_prog $dir/$dlname \$dldir/$dlname~
9630 chmod a+x \$dldir/$dlname~
9631 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9632 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9635 dlpath=$dir/\$dldll~
9636 $RM \$dlpath'
9637 shlibpath_overrides_runpath=yes
9639 case $host_os in
9640 cygwin*)
9641 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9642 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9643 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9645 mingw* | cegcc*)
9646 # MinGW DLLs use traditional 'lib' prefix
9647 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9648 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9649 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9650 # It is most probably a Windows format PATH printed by
9651 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9652 # path with ; separators, and with drive letters. We can handle the
9653 # drive letters (cygwin fileutils understands them), so leave them,
9654 # especially as we might pass files found there to a mingw objdump,
9655 # which wouldn't understand a cygwinified path. Ahh.
9656 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9657 else
9658 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9661 pw32*)
9662 # pw32 DLLs use 'pw' prefix rather than 'lib'
9663 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9665 esac
9669 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9671 esac
9672 dynamic_linker='Win32 ld.exe'
9673 # FIXME: first we should search . and the directory the executable is in
9674 shlibpath_var=PATH
9677 darwin* | rhapsody*)
9678 dynamic_linker="$host_os dyld"
9679 version_type=darwin
9680 need_lib_prefix=no
9681 need_version=no
9682 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9683 soname_spec='${libname}${release}${major}$shared_ext'
9684 shlibpath_overrides_runpath=yes
9685 shlibpath_var=DYLD_LIBRARY_PATH
9686 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9692 dgux*)
9693 version_type=linux
9694 need_lib_prefix=no
9695 need_version=no
9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9697 soname_spec='${libname}${release}${shared_ext}$major'
9698 shlibpath_var=LD_LIBRARY_PATH
9701 freebsd1*)
9702 dynamic_linker=no
9705 freebsd* | dragonfly*)
9706 # DragonFly does not have aout. When/if they implement a new
9707 # versioning mechanism, adjust this.
9708 if test -x /usr/bin/objformat; then
9709 objformat=`/usr/bin/objformat`
9710 else
9711 case $host_os in
9712 freebsd[123]*) objformat=aout ;;
9713 *) objformat=elf ;;
9714 esac
9716 version_type=freebsd-$objformat
9717 case $version_type in
9718 freebsd-elf*)
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9720 need_version=no
9721 need_lib_prefix=no
9723 freebsd-*)
9724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9725 need_version=yes
9727 esac
9728 shlibpath_var=LD_LIBRARY_PATH
9729 case $host_os in
9730 freebsd2*)
9731 shlibpath_overrides_runpath=yes
9733 freebsd3.[01]* | freebsdelf3.[01]*)
9734 shlibpath_overrides_runpath=yes
9735 hardcode_into_libs=yes
9737 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9738 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9739 shlibpath_overrides_runpath=no
9740 hardcode_into_libs=yes
9742 *) # from 4.6 on, and DragonFly
9743 shlibpath_overrides_runpath=yes
9744 hardcode_into_libs=yes
9746 esac
9749 gnu*)
9750 version_type=linux
9751 need_lib_prefix=no
9752 need_version=no
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 shlibpath_var=LD_LIBRARY_PATH
9756 hardcode_into_libs=yes
9759 hpux9* | hpux10* | hpux11*)
9760 # Give a soname corresponding to the major version so that dld.sl refuses to
9761 # link against other versions.
9762 version_type=sunos
9763 need_lib_prefix=no
9764 need_version=no
9765 case $host_cpu in
9766 ia64*)
9767 shrext_cmds='.so'
9768 hardcode_into_libs=yes
9769 dynamic_linker="$host_os dld.so"
9770 shlibpath_var=LD_LIBRARY_PATH
9771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9773 soname_spec='${libname}${release}${shared_ext}$major'
9774 if test "X$HPUX_IA64_MODE" = X32; then
9775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9776 else
9777 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9781 hppa*64*)
9782 shrext_cmds='.sl'
9783 hardcode_into_libs=yes
9784 dynamic_linker="$host_os dld.sl"
9785 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788 soname_spec='${libname}${release}${shared_ext}$major'
9789 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9793 shrext_cmds='.sl'
9794 dynamic_linker="$host_os dld.sl"
9795 shlibpath_var=SHLIB_PATH
9796 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9800 esac
9801 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9802 postinstall_cmds='chmod 555 $lib'
9805 interix[3-9]*)
9806 version_type=linux
9807 need_lib_prefix=no
9808 need_version=no
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9810 soname_spec='${libname}${release}${shared_ext}$major'
9811 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9812 shlibpath_var=LD_LIBRARY_PATH
9813 shlibpath_overrides_runpath=no
9814 hardcode_into_libs=yes
9817 irix5* | irix6* | nonstopux*)
9818 case $host_os in
9819 nonstopux*) version_type=nonstopux ;;
9821 if test "$lt_cv_prog_gnu_ld" = yes; then
9822 version_type=linux
9823 else
9824 version_type=irix
9825 fi ;;
9826 esac
9827 need_lib_prefix=no
9828 need_version=no
9829 soname_spec='${libname}${release}${shared_ext}$major'
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9831 case $host_os in
9832 irix5* | nonstopux*)
9833 libsuff= shlibsuff=
9836 case $LD in # libtool.m4 will add one of these switches to LD
9837 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9838 libsuff= shlibsuff= libmagic=32-bit;;
9839 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9840 libsuff=32 shlibsuff=N32 libmagic=N32;;
9841 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9842 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9843 *) libsuff= shlibsuff= libmagic=never-match;;
9844 esac
9846 esac
9847 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9848 shlibpath_overrides_runpath=no
9849 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9850 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9851 hardcode_into_libs=yes
9854 # No shared lib support for Linux oldld, aout, or coff.
9855 linux*oldld* | linux*aout* | linux*coff*)
9856 dynamic_linker=no
9859 # This must be Linux ELF.
9860 linux* | k*bsd*-gnu)
9861 version_type=linux
9862 need_lib_prefix=no
9863 need_version=no
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9867 shlibpath_var=LD_LIBRARY_PATH
9868 shlibpath_overrides_runpath=no
9869 # Some binutils ld are patched to set DT_RUNPATH
9870 save_LDFLAGS=$LDFLAGS
9871 save_libdir=$libdir
9872 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9873 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h. */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9882 main ()
9886 return 0;
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9891 case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894 esac
9895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9896 $as_echo "$ac_try_echo") >&5
9897 (eval "$ac_link") 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } && {
9904 test -z "$ac_c_werror_flag" ||
9905 test ! -s conftest.err
9906 } && test -s conftest$ac_exeext && {
9907 test "$cross_compiling" = yes ||
9908 $as_test_x conftest$ac_exeext
9909 }; then
9910 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9911 shlibpath_overrides_runpath=yes
9914 else
9915 $as_echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9921 rm -rf conftest.dSYM
9922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9923 conftest$ac_exeext conftest.$ac_ext
9924 LDFLAGS=$save_LDFLAGS
9925 libdir=$save_libdir
9927 # This implies no fast_install, which is unacceptable.
9928 # Some rework will be needed to allow for fast_install
9929 # before this can be enabled.
9930 hardcode_into_libs=yes
9932 # Append ld.so.conf contents to the search path
9933 if test -f /etc/ld.so.conf; then
9934 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9935 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9938 # We used to test for /lib/ld.so.1 and disable shared libraries on
9939 # powerpc, because MkLinux only supported shared libraries with the
9940 # GNU dynamic linker. Since this was broken with cross compilers,
9941 # most powerpc-linux boxes support dynamic linking these days and
9942 # people can always --disable-shared, the test was removed, and we
9943 # assume the GNU/Linux dynamic linker is in use.
9944 dynamic_linker='GNU/Linux ld.so'
9947 netbsdelf*-gnu)
9948 version_type=linux
9949 need_lib_prefix=no
9950 need_version=no
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 shlibpath_var=LD_LIBRARY_PATH
9954 shlibpath_overrides_runpath=no
9955 hardcode_into_libs=yes
9956 dynamic_linker='NetBSD ld.elf_so'
9959 netbsd*)
9960 version_type=sunos
9961 need_lib_prefix=no
9962 need_version=no
9963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9966 dynamic_linker='NetBSD (a.out) ld.so'
9967 else
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 dynamic_linker='NetBSD ld.elf_so'
9972 shlibpath_var=LD_LIBRARY_PATH
9973 shlibpath_overrides_runpath=yes
9974 hardcode_into_libs=yes
9977 newsos6)
9978 version_type=linux
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 shlibpath_overrides_runpath=yes
9984 *nto* | *qnx*)
9985 version_type=qnx
9986 need_lib_prefix=no
9987 need_version=no
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 shlibpath_overrides_runpath=no
9992 hardcode_into_libs=yes
9993 dynamic_linker='ldqnx.so'
9996 openbsd*)
9997 version_type=sunos
9998 sys_lib_dlsearch_path_spec="/usr/lib"
9999 need_lib_prefix=no
10000 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10001 case $host_os in
10002 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10003 *) need_version=no ;;
10004 esac
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10007 shlibpath_var=LD_LIBRARY_PATH
10008 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10009 case $host_os in
10010 openbsd2.[89] | openbsd2.[89].*)
10011 shlibpath_overrides_runpath=no
10014 shlibpath_overrides_runpath=yes
10016 esac
10017 else
10018 shlibpath_overrides_runpath=yes
10022 os2*)
10023 libname_spec='$name'
10024 shrext_cmds=".dll"
10025 need_lib_prefix=no
10026 library_names_spec='$libname${shared_ext} $libname.a'
10027 dynamic_linker='OS/2 ld.exe'
10028 shlibpath_var=LIBPATH
10031 osf3* | osf4* | osf5*)
10032 version_type=osf
10033 need_lib_prefix=no
10034 need_version=no
10035 soname_spec='${libname}${release}${shared_ext}$major'
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 shlibpath_var=LD_LIBRARY_PATH
10038 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10039 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10042 rdos*)
10043 dynamic_linker=no
10046 solaris*)
10047 version_type=linux
10048 need_lib_prefix=no
10049 need_version=no
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 shlibpath_var=LD_LIBRARY_PATH
10053 shlibpath_overrides_runpath=yes
10054 hardcode_into_libs=yes
10055 # ldd complains unless libraries are executable
10056 postinstall_cmds='chmod +x $lib'
10059 sunos4*)
10060 version_type=sunos
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10062 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 shlibpath_overrides_runpath=yes
10065 if test "$with_gnu_ld" = yes; then
10066 need_lib_prefix=no
10068 need_version=yes
10071 sysv4 | sysv4.3*)
10072 version_type=linux
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 case $host_vendor in
10077 sni)
10078 shlibpath_overrides_runpath=no
10079 need_lib_prefix=no
10080 runpath_var=LD_RUN_PATH
10082 siemens)
10083 need_lib_prefix=no
10085 motorola)
10086 need_lib_prefix=no
10087 need_version=no
10088 shlibpath_overrides_runpath=no
10089 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10091 esac
10094 sysv4*MP*)
10095 if test -d /usr/nec ;then
10096 version_type=linux
10097 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10098 soname_spec='$libname${shared_ext}.$major'
10099 shlibpath_var=LD_LIBRARY_PATH
10103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10104 version_type=freebsd-elf
10105 need_lib_prefix=no
10106 need_version=no
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 shlibpath_overrides_runpath=yes
10111 hardcode_into_libs=yes
10112 if test "$with_gnu_ld" = yes; then
10113 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10114 else
10115 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10116 case $host_os in
10117 sco3.2v5*)
10118 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10120 esac
10122 sys_lib_dlsearch_path_spec='/usr/lib'
10125 tpf*)
10126 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10127 version_type=linux
10128 need_lib_prefix=no
10129 need_version=no
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 shlibpath_overrides_runpath=no
10133 hardcode_into_libs=yes
10136 uts4*)
10137 version_type=linux
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 shlibpath_var=LD_LIBRARY_PATH
10144 dynamic_linker=no
10146 esac
10147 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10148 $as_echo "$dynamic_linker" >&6; }
10149 test "$dynamic_linker" = no && can_build_shared=no
10151 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10152 if test "$GCC" = yes; then
10153 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10156 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10157 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10159 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10160 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10249 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10250 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10251 hardcode_action=
10252 if test -n "$hardcode_libdir_flag_spec" ||
10253 test -n "$runpath_var" ||
10254 test "X$hardcode_automatic" = "Xyes" ; then
10256 # We can hardcode non-existent directories.
10257 if test "$hardcode_direct" != no &&
10258 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10259 # have to relink, otherwise we might link with an installed library
10260 # when we should be linking with a yet-to-be-installed one
10261 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10262 test "$hardcode_minus_L" != no; then
10263 # Linking always hardcodes the temporary library directory.
10264 hardcode_action=relink
10265 else
10266 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10267 hardcode_action=immediate
10269 else
10270 # We cannot hardcode anything, or else we can only hardcode existing
10271 # directories.
10272 hardcode_action=unsupported
10274 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10275 $as_echo "$hardcode_action" >&6; }
10277 if test "$hardcode_action" = relink ||
10278 test "$inherit_rpath" = yes; then
10279 # Fast installation is not supported
10280 enable_fast_install=no
10281 elif test "$shlibpath_overrides_runpath" = yes ||
10282 test "$enable_shared" = no; then
10283 # Fast installation is not necessary
10284 enable_fast_install=needless
10292 if test "x$enable_dlopen" != xyes; then
10293 enable_dlopen=unknown
10294 enable_dlopen_self=unknown
10295 enable_dlopen_self_static=unknown
10296 else
10297 lt_cv_dlopen=no
10298 lt_cv_dlopen_libs=
10300 case $host_os in
10301 beos*)
10302 lt_cv_dlopen="load_add_on"
10303 lt_cv_dlopen_libs=
10304 lt_cv_dlopen_self=yes
10307 mingw* | pw32* | cegcc*)
10308 lt_cv_dlopen="LoadLibrary"
10309 lt_cv_dlopen_libs=
10312 cygwin*)
10313 lt_cv_dlopen="dlopen"
10314 lt_cv_dlopen_libs=
10317 darwin*)
10318 # if libdl is installed we need to link against it
10319 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10320 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10321 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10322 $as_echo_n "(cached) " >&6
10323 else
10324 ac_check_lib_save_LIBS=$LIBS
10325 LIBS="-ldl $LIBS"
10326 cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h. */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10333 /* Override any GCC internal prototype to avoid an error.
10334 Use char because int might match the return type of a GCC
10335 builtin and then its argument prototype would still apply. */
10336 #ifdef __cplusplus
10337 extern "C"
10338 #endif
10339 char dlopen ();
10341 main ()
10343 return dlopen ();
10345 return 0;
10347 _ACEOF
10348 rm -f conftest.$ac_objext conftest$ac_exeext
10349 if { (ac_try="$ac_link"
10350 case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353 esac
10354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10355 $as_echo "$ac_try_echo") >&5
10356 (eval "$ac_link") 2>conftest.er1
10357 ac_status=$?
10358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
10361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } && {
10363 test -z "$ac_c_werror_flag" ||
10364 test ! -s conftest.err
10365 } && test -s conftest$ac_exeext && {
10366 test "$cross_compiling" = yes ||
10367 $as_test_x conftest$ac_exeext
10368 }; then
10369 ac_cv_lib_dl_dlopen=yes
10370 else
10371 $as_echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10374 ac_cv_lib_dl_dlopen=no
10377 rm -rf conftest.dSYM
10378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10379 conftest$ac_exeext conftest.$ac_ext
10380 LIBS=$ac_check_lib_save_LIBS
10382 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10383 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10384 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10386 else
10388 lt_cv_dlopen="dyld"
10389 lt_cv_dlopen_libs=
10390 lt_cv_dlopen_self=yes
10397 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10398 $as_echo_n "checking for shl_load... " >&6; }
10399 if test "${ac_cv_func_shl_load+set}" = set; then
10400 $as_echo_n "(cached) " >&6
10401 else
10402 cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h. */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10410 #define shl_load innocuous_shl_load
10412 /* System header to define __stub macros and hopefully few prototypes,
10413 which can conflict with char shl_load (); below.
10414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10415 <limits.h> exists even on freestanding compilers. */
10417 #ifdef __STDC__
10418 # include <limits.h>
10419 #else
10420 # include <assert.h>
10421 #endif
10423 #undef shl_load
10425 /* Override any GCC internal prototype to avoid an error.
10426 Use char because int might match the return type of a GCC
10427 builtin and then its argument prototype would still apply. */
10428 #ifdef __cplusplus
10429 extern "C"
10430 #endif
10431 char shl_load ();
10432 /* The GNU C library defines this for functions which it implements
10433 to always fail with ENOSYS. Some functions are actually named
10434 something starting with __ and the normal name is an alias. */
10435 #if defined __stub_shl_load || defined __stub___shl_load
10436 choke me
10437 #endif
10440 main ()
10442 return shl_load ();
10444 return 0;
10446 _ACEOF
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10452 esac
10453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10454 $as_echo "$ac_try_echo") >&5
10455 (eval "$ac_link") 2>conftest.er1
10456 ac_status=$?
10457 grep -v '^ *+' conftest.er1 >conftest.err
10458 rm -f conftest.er1
10459 cat conftest.err >&5
10460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } && {
10462 test -z "$ac_c_werror_flag" ||
10463 test ! -s conftest.err
10464 } && test -s conftest$ac_exeext && {
10465 test "$cross_compiling" = yes ||
10466 $as_test_x conftest$ac_exeext
10467 }; then
10468 ac_cv_func_shl_load=yes
10469 else
10470 $as_echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.$ac_ext >&5
10473 ac_cv_func_shl_load=no
10476 rm -rf conftest.dSYM
10477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10478 conftest$ac_exeext conftest.$ac_ext
10480 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10481 $as_echo "$ac_cv_func_shl_load" >&6; }
10482 if test "x$ac_cv_func_shl_load" = x""yes; then
10483 lt_cv_dlopen="shl_load"
10484 else
10485 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10486 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10487 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10488 $as_echo_n "(cached) " >&6
10489 else
10490 ac_check_lib_save_LIBS=$LIBS
10491 LIBS="-ldld $LIBS"
10492 cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h. */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10499 /* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10502 #ifdef __cplusplus
10503 extern "C"
10504 #endif
10505 char shl_load ();
10507 main ()
10509 return shl_load ();
10511 return 0;
10513 _ACEOF
10514 rm -f conftest.$ac_objext conftest$ac_exeext
10515 if { (ac_try="$ac_link"
10516 case "(($ac_try" in
10517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518 *) ac_try_echo=$ac_try;;
10519 esac
10520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10521 $as_echo "$ac_try_echo") >&5
10522 (eval "$ac_link") 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } && {
10529 test -z "$ac_c_werror_flag" ||
10530 test ! -s conftest.err
10531 } && test -s conftest$ac_exeext && {
10532 test "$cross_compiling" = yes ||
10533 $as_test_x conftest$ac_exeext
10534 }; then
10535 ac_cv_lib_dld_shl_load=yes
10536 else
10537 $as_echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10540 ac_cv_lib_dld_shl_load=no
10543 rm -rf conftest.dSYM
10544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10545 conftest$ac_exeext conftest.$ac_ext
10546 LIBS=$ac_check_lib_save_LIBS
10548 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10549 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10550 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10551 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10552 else
10553 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10554 $as_echo_n "checking for dlopen... " >&6; }
10555 if test "${ac_cv_func_dlopen+set}" = set; then
10556 $as_echo_n "(cached) " >&6
10557 else
10558 cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h. */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10564 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10566 #define dlopen innocuous_dlopen
10568 /* System header to define __stub macros and hopefully few prototypes,
10569 which can conflict with char dlopen (); below.
10570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10571 <limits.h> exists even on freestanding compilers. */
10573 #ifdef __STDC__
10574 # include <limits.h>
10575 #else
10576 # include <assert.h>
10577 #endif
10579 #undef dlopen
10581 /* Override any GCC internal prototype to avoid an error.
10582 Use char because int might match the return type of a GCC
10583 builtin and then its argument prototype would still apply. */
10584 #ifdef __cplusplus
10585 extern "C"
10586 #endif
10587 char dlopen ();
10588 /* The GNU C library defines this for functions which it implements
10589 to always fail with ENOSYS. Some functions are actually named
10590 something starting with __ and the normal name is an alias. */
10591 #if defined __stub_dlopen || defined __stub___dlopen
10592 choke me
10593 #endif
10596 main ()
10598 return dlopen ();
10600 return 0;
10602 _ACEOF
10603 rm -f conftest.$ac_objext conftest$ac_exeext
10604 if { (ac_try="$ac_link"
10605 case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10608 esac
10609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10610 $as_echo "$ac_try_echo") >&5
10611 (eval "$ac_link") 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } && {
10618 test -z "$ac_c_werror_flag" ||
10619 test ! -s conftest.err
10620 } && test -s conftest$ac_exeext && {
10621 test "$cross_compiling" = yes ||
10622 $as_test_x conftest$ac_exeext
10623 }; then
10624 ac_cv_func_dlopen=yes
10625 else
10626 $as_echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 ac_cv_func_dlopen=no
10632 rm -rf conftest.dSYM
10633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634 conftest$ac_exeext conftest.$ac_ext
10636 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10637 $as_echo "$ac_cv_func_dlopen" >&6; }
10638 if test "x$ac_cv_func_dlopen" = x""yes; then
10639 lt_cv_dlopen="dlopen"
10640 else
10641 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10642 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10643 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10644 $as_echo_n "(cached) " >&6
10645 else
10646 ac_check_lib_save_LIBS=$LIBS
10647 LIBS="-ldl $LIBS"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10658 #ifdef __cplusplus
10659 extern "C"
10660 #endif
10661 char dlopen ();
10663 main ()
10665 return dlopen ();
10667 return 0;
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10675 esac
10676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10677 $as_echo "$ac_try_echo") >&5
10678 (eval "$ac_link") 2>conftest.er1
10679 ac_status=$?
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
10683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } && {
10685 test -z "$ac_c_werror_flag" ||
10686 test ! -s conftest.err
10687 } && test -s conftest$ac_exeext && {
10688 test "$cross_compiling" = yes ||
10689 $as_test_x conftest$ac_exeext
10690 }; then
10691 ac_cv_lib_dl_dlopen=yes
10692 else
10693 $as_echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 ac_cv_lib_dl_dlopen=no
10699 rm -rf conftest.dSYM
10700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10701 conftest$ac_exeext conftest.$ac_ext
10702 LIBS=$ac_check_lib_save_LIBS
10704 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10705 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10706 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10707 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10708 else
10709 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10710 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10711 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10712 $as_echo_n "(cached) " >&6
10713 else
10714 ac_check_lib_save_LIBS=$LIBS
10715 LIBS="-lsvld $LIBS"
10716 cat >conftest.$ac_ext <<_ACEOF
10717 /* confdefs.h. */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10723 /* Override any GCC internal prototype to avoid an error.
10724 Use char because int might match the return type of a GCC
10725 builtin and then its argument prototype would still apply. */
10726 #ifdef __cplusplus
10727 extern "C"
10728 #endif
10729 char dlopen ();
10731 main ()
10733 return dlopen ();
10735 return 0;
10737 _ACEOF
10738 rm -f conftest.$ac_objext conftest$ac_exeext
10739 if { (ac_try="$ac_link"
10740 case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10743 esac
10744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10745 $as_echo "$ac_try_echo") >&5
10746 (eval "$ac_link") 2>conftest.er1
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } && {
10753 test -z "$ac_c_werror_flag" ||
10754 test ! -s conftest.err
10755 } && test -s conftest$ac_exeext && {
10756 test "$cross_compiling" = yes ||
10757 $as_test_x conftest$ac_exeext
10758 }; then
10759 ac_cv_lib_svld_dlopen=yes
10760 else
10761 $as_echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10764 ac_cv_lib_svld_dlopen=no
10767 rm -rf conftest.dSYM
10768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10769 conftest$ac_exeext conftest.$ac_ext
10770 LIBS=$ac_check_lib_save_LIBS
10772 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10773 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10774 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10776 else
10777 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10778 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10779 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10780 $as_echo_n "(cached) " >&6
10781 else
10782 ac_check_lib_save_LIBS=$LIBS
10783 LIBS="-ldld $LIBS"
10784 cat >conftest.$ac_ext <<_ACEOF
10785 /* confdefs.h. */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10791 /* Override any GCC internal prototype to avoid an error.
10792 Use char because int might match the return type of a GCC
10793 builtin and then its argument prototype would still apply. */
10794 #ifdef __cplusplus
10795 extern "C"
10796 #endif
10797 char dld_link ();
10799 main ()
10801 return dld_link ();
10803 return 0;
10805 _ACEOF
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (ac_try="$ac_link"
10808 case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10811 esac
10812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10813 $as_echo "$ac_try_echo") >&5
10814 (eval "$ac_link") 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } && {
10821 test -z "$ac_c_werror_flag" ||
10822 test ! -s conftest.err
10823 } && test -s conftest$ac_exeext && {
10824 test "$cross_compiling" = yes ||
10825 $as_test_x conftest$ac_exeext
10826 }; then
10827 ac_cv_lib_dld_dld_link=yes
10828 else
10829 $as_echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 ac_cv_lib_dld_dld_link=no
10835 rm -rf conftest.dSYM
10836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10837 conftest$ac_exeext conftest.$ac_ext
10838 LIBS=$ac_check_lib_save_LIBS
10840 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10841 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10842 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10843 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10862 esac
10864 if test "x$lt_cv_dlopen" != xno; then
10865 enable_dlopen=yes
10866 else
10867 enable_dlopen=no
10870 case $lt_cv_dlopen in
10871 dlopen)
10872 save_CPPFLAGS="$CPPFLAGS"
10873 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10875 save_LDFLAGS="$LDFLAGS"
10876 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10878 save_LIBS="$LIBS"
10879 LIBS="$lt_cv_dlopen_libs $LIBS"
10881 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10882 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10883 if test "${lt_cv_dlopen_self+set}" = set; then
10884 $as_echo_n "(cached) " >&6
10885 else
10886 if test "$cross_compiling" = yes; then :
10887 lt_cv_dlopen_self=cross
10888 else
10889 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10890 lt_status=$lt_dlunknown
10891 cat > conftest.$ac_ext <<_LT_EOF
10892 #line 10892 "configure"
10893 #include "confdefs.h"
10895 #if HAVE_DLFCN_H
10896 #include <dlfcn.h>
10897 #endif
10899 #include <stdio.h>
10901 #ifdef RTLD_GLOBAL
10902 # define LT_DLGLOBAL RTLD_GLOBAL
10903 #else
10904 # ifdef DL_GLOBAL
10905 # define LT_DLGLOBAL DL_GLOBAL
10906 # else
10907 # define LT_DLGLOBAL 0
10908 # endif
10909 #endif
10911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10912 find out it does not work in some platform. */
10913 #ifndef LT_DLLAZY_OR_NOW
10914 # ifdef RTLD_LAZY
10915 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10916 # else
10917 # ifdef DL_LAZY
10918 # define LT_DLLAZY_OR_NOW DL_LAZY
10919 # else
10920 # ifdef RTLD_NOW
10921 # define LT_DLLAZY_OR_NOW RTLD_NOW
10922 # else
10923 # ifdef DL_NOW
10924 # define LT_DLLAZY_OR_NOW DL_NOW
10925 # else
10926 # define LT_DLLAZY_OR_NOW 0
10927 # endif
10928 # endif
10929 # endif
10930 # endif
10931 #endif
10933 void fnord() { int i=42;}
10934 int main ()
10936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10937 int status = $lt_dlunknown;
10939 if (self)
10941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10942 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10943 /* dlclose (self); */
10945 else
10946 puts (dlerror ());
10948 return status;
10950 _LT_EOF
10951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10952 (eval $ac_link) 2>&5
10953 ac_status=$?
10954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10956 (./conftest; exit; ) >&5 2>/dev/null
10957 lt_status=$?
10958 case x$lt_status in
10959 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10960 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10961 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10962 esac
10963 else :
10964 # compilation failed
10965 lt_cv_dlopen_self=no
10968 rm -fr conftest*
10972 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10973 $as_echo "$lt_cv_dlopen_self" >&6; }
10975 if test "x$lt_cv_dlopen_self" = xyes; then
10976 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10977 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10978 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10979 if test "${lt_cv_dlopen_self_static+set}" = set; then
10980 $as_echo_n "(cached) " >&6
10981 else
10982 if test "$cross_compiling" = yes; then :
10983 lt_cv_dlopen_self_static=cross
10984 else
10985 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10986 lt_status=$lt_dlunknown
10987 cat > conftest.$ac_ext <<_LT_EOF
10988 #line 10988 "configure"
10989 #include "confdefs.h"
10991 #if HAVE_DLFCN_H
10992 #include <dlfcn.h>
10993 #endif
10995 #include <stdio.h>
10997 #ifdef RTLD_GLOBAL
10998 # define LT_DLGLOBAL RTLD_GLOBAL
10999 #else
11000 # ifdef DL_GLOBAL
11001 # define LT_DLGLOBAL DL_GLOBAL
11002 # else
11003 # define LT_DLGLOBAL 0
11004 # endif
11005 #endif
11007 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11008 find out it does not work in some platform. */
11009 #ifndef LT_DLLAZY_OR_NOW
11010 # ifdef RTLD_LAZY
11011 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11012 # else
11013 # ifdef DL_LAZY
11014 # define LT_DLLAZY_OR_NOW DL_LAZY
11015 # else
11016 # ifdef RTLD_NOW
11017 # define LT_DLLAZY_OR_NOW RTLD_NOW
11018 # else
11019 # ifdef DL_NOW
11020 # define LT_DLLAZY_OR_NOW DL_NOW
11021 # else
11022 # define LT_DLLAZY_OR_NOW 0
11023 # endif
11024 # endif
11025 # endif
11026 # endif
11027 #endif
11029 void fnord() { int i=42;}
11030 int main ()
11032 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11033 int status = $lt_dlunknown;
11035 if (self)
11037 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11038 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11039 /* dlclose (self); */
11041 else
11042 puts (dlerror ());
11044 return status;
11046 _LT_EOF
11047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11048 (eval $ac_link) 2>&5
11049 ac_status=$?
11050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11052 (./conftest; exit; ) >&5 2>/dev/null
11053 lt_status=$?
11054 case x$lt_status in
11055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11057 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11058 esac
11059 else :
11060 # compilation failed
11061 lt_cv_dlopen_self_static=no
11064 rm -fr conftest*
11068 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11069 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11072 CPPFLAGS="$save_CPPFLAGS"
11073 LDFLAGS="$save_LDFLAGS"
11074 LIBS="$save_LIBS"
11076 esac
11078 case $lt_cv_dlopen_self in
11079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11080 *) enable_dlopen_self=unknown ;;
11081 esac
11083 case $lt_cv_dlopen_self_static in
11084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11085 *) enable_dlopen_self_static=unknown ;;
11086 esac
11105 striplib=
11106 old_striplib=
11107 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11108 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11109 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11110 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11111 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11112 { $as_echo "$as_me:$LINENO: result: yes" >&5
11113 $as_echo "yes" >&6; }
11114 else
11115 # FIXME - insert some real tests, host_os isn't really good enough
11116 case $host_os in
11117 darwin*)
11118 if test -n "$STRIP" ; then
11119 striplib="$STRIP -x"
11120 old_striplib="$STRIP -S"
11121 { $as_echo "$as_me:$LINENO: result: yes" >&5
11122 $as_echo "yes" >&6; }
11123 else
11124 { $as_echo "$as_me:$LINENO: result: no" >&5
11125 $as_echo "no" >&6; }
11129 { $as_echo "$as_me:$LINENO: result: no" >&5
11130 $as_echo "no" >&6; }
11132 esac
11146 # Report which library types will actually be built
11147 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11148 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11149 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11150 $as_echo "$can_build_shared" >&6; }
11152 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11153 $as_echo_n "checking whether to build shared libraries... " >&6; }
11154 test "$can_build_shared" = "no" && enable_shared=no
11156 # On AIX, shared libraries and static libraries use the same namespace, and
11157 # are all built from PIC.
11158 case $host_os in
11159 aix3*)
11160 test "$enable_shared" = yes && enable_static=no
11161 if test -n "$RANLIB"; then
11162 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11163 postinstall_cmds='$RANLIB $lib'
11167 aix[4-9]*)
11168 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11169 test "$enable_shared" = yes && enable_static=no
11172 esac
11173 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11174 $as_echo "$enable_shared" >&6; }
11176 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11177 $as_echo_n "checking whether to build static libraries... " >&6; }
11178 # Make sure either enable_shared or enable_static is yes.
11179 test "$enable_shared" = yes || enable_static=yes
11180 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11181 $as_echo "$enable_static" >&6; }
11187 ac_ext=c
11188 ac_cpp='$CPP $CPPFLAGS'
11189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11193 CC="$lt_save_CC"
11207 ac_config_commands="$ac_config_commands libtool"
11212 # Only expand once:
11217 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11218 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11219 if test "${ac_cv_c_const+set}" = set; then
11220 $as_echo_n "(cached) " >&6
11221 else
11222 cat >conftest.$ac_ext <<_ACEOF
11223 /* confdefs.h. */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11230 main ()
11232 /* FIXME: Include the comments suggested by Paul. */
11233 #ifndef __cplusplus
11234 /* Ultrix mips cc rejects this. */
11235 typedef int charset[2];
11236 const charset cs;
11237 /* SunOS 4.1.1 cc rejects this. */
11238 char const *const *pcpcc;
11239 char **ppc;
11240 /* NEC SVR4.0.2 mips cc rejects this. */
11241 struct point {int x, y;};
11242 static struct point const zero = {0,0};
11243 /* AIX XL C 1.02.0.0 rejects this.
11244 It does not let you subtract one const X* pointer from another in
11245 an arm of an if-expression whose if-part is not a constant
11246 expression */
11247 const char *g = "string";
11248 pcpcc = &g + (g ? g-g : 0);
11249 /* HPUX 7.0 cc rejects these. */
11250 ++pcpcc;
11251 ppc = (char**) pcpcc;
11252 pcpcc = (char const *const *) ppc;
11253 { /* SCO 3.2v4 cc rejects this. */
11254 char *t;
11255 char const *s = 0 ? (char *) 0 : (char const *) 0;
11257 *t++ = 0;
11258 if (s) return 0;
11260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11261 int x[] = {25, 17};
11262 const int *foo = &x[0];
11263 ++foo;
11265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11266 typedef const int *iptr;
11267 iptr p = 0;
11268 ++p;
11270 { /* AIX XL C 1.02.0.0 rejects this saying
11271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11272 struct s { int j; const int *ap[3]; };
11273 struct s *b; b->j = 5;
11275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11276 const int foo = 10;
11277 if (!foo) return 0;
11279 return !cs[0] && !zero.x;
11280 #endif
11283 return 0;
11285 _ACEOF
11286 rm -f conftest.$ac_objext
11287 if { (ac_try="$ac_compile"
11288 case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291 esac
11292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11293 $as_echo "$ac_try_echo") >&5
11294 (eval "$ac_compile") 2>conftest.er1
11295 ac_status=$?
11296 grep -v '^ *+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } && {
11301 test -z "$ac_c_werror_flag" ||
11302 test ! -s conftest.err
11303 } && test -s conftest.$ac_objext; then
11304 ac_cv_c_const=yes
11305 else
11306 $as_echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11309 ac_cv_c_const=no
11312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11315 $as_echo "$ac_cv_c_const" >&6; }
11316 if test $ac_cv_c_const = no; then
11318 cat >>confdefs.h <<\_ACEOF
11319 #define const /**/
11320 _ACEOF
11324 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11325 $as_echo_n "checking for size_t... " >&6; }
11326 if test "${ac_cv_type_size_t+set}" = set; then
11327 $as_echo_n "(cached) " >&6
11328 else
11329 ac_cv_type_size_t=no
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11338 main ()
11340 if (sizeof (size_t))
11341 return 0;
11343 return 0;
11345 _ACEOF
11346 rm -f conftest.$ac_objext
11347 if { (ac_try="$ac_compile"
11348 case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11351 esac
11352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11353 $as_echo "$ac_try_echo") >&5
11354 (eval "$ac_compile") 2>conftest.er1
11355 ac_status=$?
11356 grep -v '^ *+' conftest.er1 >conftest.err
11357 rm -f conftest.er1
11358 cat conftest.err >&5
11359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } && {
11361 test -z "$ac_c_werror_flag" ||
11362 test ! -s conftest.err
11363 } && test -s conftest.$ac_objext; then
11364 cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h. */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 $ac_includes_default
11372 main ()
11374 if (sizeof ((size_t)))
11375 return 0;
11377 return 0;
11379 _ACEOF
11380 rm -f conftest.$ac_objext
11381 if { (ac_try="$ac_compile"
11382 case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384 *) ac_try_echo=$ac_try;;
11385 esac
11386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11387 $as_echo "$ac_try_echo") >&5
11388 (eval "$ac_compile") 2>conftest.er1
11389 ac_status=$?
11390 grep -v '^ *+' conftest.er1 >conftest.err
11391 rm -f conftest.er1
11392 cat conftest.err >&5
11393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); } && {
11395 test -z "$ac_c_werror_flag" ||
11396 test ! -s conftest.err
11397 } && test -s conftest.$ac_objext; then
11399 else
11400 $as_echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11403 ac_cv_type_size_t=yes
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 else
11408 $as_echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11416 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11417 $as_echo "$ac_cv_type_size_t" >&6; }
11418 if test "x$ac_cv_type_size_t" = x""yes; then
11420 else
11422 cat >>confdefs.h <<_ACEOF
11423 #define size_t unsigned int
11424 _ACEOF
11431 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11432 $as_echo_n "checking for ANSI C header files... " >&6; }
11433 if test "${ac_cv_header_stdc+set}" = set; then
11434 $as_echo_n "(cached) " >&6
11435 else
11436 cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h. */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 #include <stdlib.h>
11443 #include <stdarg.h>
11444 #include <string.h>
11445 #include <float.h>
11448 main ()
11452 return 0;
11454 _ACEOF
11455 rm -f conftest.$ac_objext
11456 if { (ac_try="$ac_compile"
11457 case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460 esac
11461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11462 $as_echo "$ac_try_echo") >&5
11463 (eval "$ac_compile") 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } && {
11470 test -z "$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 } && test -s conftest.$ac_objext; then
11473 ac_cv_header_stdc=yes
11474 else
11475 $as_echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11478 ac_cv_header_stdc=no
11481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483 if test $ac_cv_header_stdc = yes; then
11484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11485 cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h. */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11491 #include <string.h>
11493 _ACEOF
11494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11495 $EGREP "memchr" >/dev/null 2>&1; then
11497 else
11498 ac_cv_header_stdc=no
11500 rm -f conftest*
11504 if test $ac_cv_header_stdc = yes; then
11505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11506 cat >conftest.$ac_ext <<_ACEOF
11507 /* confdefs.h. */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 #include <stdlib.h>
11514 _ACEOF
11515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11516 $EGREP "free" >/dev/null 2>&1; then
11518 else
11519 ac_cv_header_stdc=no
11521 rm -f conftest*
11525 if test $ac_cv_header_stdc = yes; then
11526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11527 if test "$cross_compiling" = yes; then
11529 else
11530 cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h. */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11536 #include <ctype.h>
11537 #include <stdlib.h>
11538 #if ((' ' & 0x0FF) == 0x020)
11539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11541 #else
11542 # define ISLOWER(c) \
11543 (('a' <= (c) && (c) <= 'i') \
11544 || ('j' <= (c) && (c) <= 'r') \
11545 || ('s' <= (c) && (c) <= 'z'))
11546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11547 #endif
11549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11551 main ()
11553 int i;
11554 for (i = 0; i < 256; i++)
11555 if (XOR (islower (i), ISLOWER (i))
11556 || toupper (i) != TOUPPER (i))
11557 return 2;
11558 return 0;
11560 _ACEOF
11561 rm -f conftest$ac_exeext
11562 if { (ac_try="$ac_link"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11566 esac
11567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11568 $as_echo "$ac_try_echo") >&5
11569 (eval "$ac_link") 2>&5
11570 ac_status=$?
11571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11573 { (case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11576 esac
11577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11578 $as_echo "$ac_try_echo") >&5
11579 (eval "$ac_try") 2>&5
11580 ac_status=$?
11581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11584 else
11585 $as_echo "$as_me: program exited with status $ac_status" >&5
11586 $as_echo "$as_me: failed program was:" >&5
11587 sed 's/^/| /' conftest.$ac_ext >&5
11589 ( exit $ac_status )
11590 ac_cv_header_stdc=no
11592 rm -rf conftest.dSYM
11593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11599 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11600 $as_echo "$ac_cv_header_stdc" >&6; }
11601 if test $ac_cv_header_stdc = yes; then
11603 cat >>confdefs.h <<\_ACEOF
11604 #define STDC_HEADERS 1
11605 _ACEOF
11612 for ac_func in strtol
11614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11615 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11616 $as_echo_n "checking for $ac_func... " >&6; }
11617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11618 $as_echo_n "(cached) " >&6
11619 else
11620 cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h. */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11628 #define $ac_func innocuous_$ac_func
11630 /* System header to define __stub macros and hopefully few prototypes,
11631 which can conflict with char $ac_func (); below.
11632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11633 <limits.h> exists even on freestanding compilers. */
11635 #ifdef __STDC__
11636 # include <limits.h>
11637 #else
11638 # include <assert.h>
11639 #endif
11641 #undef $ac_func
11643 /* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 char $ac_func ();
11650 /* The GNU C library defines this for functions which it implements
11651 to always fail with ENOSYS. Some functions are actually named
11652 something starting with __ and the normal name is an alias. */
11653 #if defined __stub_$ac_func || defined __stub___$ac_func
11654 choke me
11655 #endif
11658 main ()
11660 return $ac_func ();
11662 return 0;
11664 _ACEOF
11665 rm -f conftest.$ac_objext conftest$ac_exeext
11666 if { (ac_try="$ac_link"
11667 case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11670 esac
11671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11672 $as_echo "$ac_try_echo") >&5
11673 (eval "$ac_link") 2>conftest.er1
11674 ac_status=$?
11675 grep -v '^ *+' conftest.er1 >conftest.err
11676 rm -f conftest.er1
11677 cat conftest.err >&5
11678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); } && {
11680 test -z "$ac_c_werror_flag" ||
11681 test ! -s conftest.err
11682 } && test -s conftest$ac_exeext && {
11683 test "$cross_compiling" = yes ||
11684 $as_test_x conftest$ac_exeext
11685 }; then
11686 eval "$as_ac_var=yes"
11687 else
11688 $as_echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11691 eval "$as_ac_var=no"
11694 rm -rf conftest.dSYM
11695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11696 conftest$ac_exeext conftest.$ac_ext
11698 ac_res=`eval 'as_val=${'$as_ac_var'}
11699 $as_echo "$as_val"'`
11700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11701 $as_echo "$ac_res" >&6; }
11702 as_val=`eval 'as_val=${'$as_ac_var'}
11703 $as_echo "$as_val"'`
11704 if test "x$as_val" = x""yes; then
11705 cat >>confdefs.h <<_ACEOF
11706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11707 _ACEOF
11710 done
11713 if test "${ac_cv_header_sys_resource_h+set}" = set; then
11714 { $as_echo "$as_me:$LINENO: checking for sys/resource.h" >&5
11715 $as_echo_n "checking for sys/resource.h... " >&6; }
11716 if test "${ac_cv_header_sys_resource_h+set}" = set; then
11717 $as_echo_n "(cached) " >&6
11719 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_resource_h" >&5
11720 $as_echo "$ac_cv_header_sys_resource_h" >&6; }
11721 else
11722 # Is the header compilable?
11723 { $as_echo "$as_me:$LINENO: checking sys/resource.h usability" >&5
11724 $as_echo_n "checking sys/resource.h usability... " >&6; }
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h. */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 $ac_includes_default
11732 #include <sys/resource.h>
11733 _ACEOF
11734 rm -f conftest.$ac_objext
11735 if { (ac_try="$ac_compile"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739 esac
11740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11741 $as_echo "$ac_try_echo") >&5
11742 (eval "$ac_compile") 2>conftest.er1
11743 ac_status=$?
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
11747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } && {
11749 test -z "$ac_c_werror_flag" ||
11750 test ! -s conftest.err
11751 } && test -s conftest.$ac_objext; then
11752 ac_header_compiler=yes
11753 else
11754 $as_echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11757 ac_header_compiler=no
11760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11762 $as_echo "$ac_header_compiler" >&6; }
11764 # Is the header present?
11765 { $as_echo "$as_me:$LINENO: checking sys/resource.h presence" >&5
11766 $as_echo_n "checking sys/resource.h presence... " >&6; }
11767 cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h. */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 #include <sys/resource.h>
11774 _ACEOF
11775 if { (ac_try="$ac_cpp conftest.$ac_ext"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779 esac
11780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11781 $as_echo "$ac_try_echo") >&5
11782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } >/dev/null && {
11789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11790 test ! -s conftest.err
11791 }; then
11792 ac_header_preproc=yes
11793 else
11794 $as_echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 ac_header_preproc=no
11800 rm -f conftest.err conftest.$ac_ext
11801 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11802 $as_echo "$ac_header_preproc" >&6; }
11804 # So? What about this header?
11805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11806 yes:no: )
11807 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: accepted by the compiler, rejected by the preprocessor!" >&5
11808 $as_echo "$as_me: WARNING: sys/resource.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11809 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: proceeding with the compiler's result" >&5
11810 $as_echo "$as_me: WARNING: sys/resource.h: proceeding with the compiler's result" >&2;}
11811 ac_header_preproc=yes
11813 no:yes:* )
11814 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: present but cannot be compiled" >&5
11815 $as_echo "$as_me: WARNING: sys/resource.h: present but cannot be compiled" >&2;}
11816 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: check for missing prerequisite headers?" >&5
11817 $as_echo "$as_me: WARNING: sys/resource.h: check for missing prerequisite headers?" >&2;}
11818 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: see the Autoconf documentation" >&5
11819 $as_echo "$as_me: WARNING: sys/resource.h: see the Autoconf documentation" >&2;}
11820 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: section \"Present But Cannot Be Compiled\"" >&5
11821 $as_echo "$as_me: WARNING: sys/resource.h: section \"Present But Cannot Be Compiled\"" >&2;}
11822 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: proceeding with the preprocessor's result" >&5
11823 $as_echo "$as_me: WARNING: sys/resource.h: proceeding with the preprocessor's result" >&2;}
11824 { $as_echo "$as_me:$LINENO: WARNING: sys/resource.h: in the future, the compiler will take precedence" >&5
11825 $as_echo "$as_me: WARNING: sys/resource.h: in the future, the compiler will take precedence" >&2;}
11828 esac
11829 { $as_echo "$as_me:$LINENO: checking for sys/resource.h" >&5
11830 $as_echo_n "checking for sys/resource.h... " >&6; }
11831 if test "${ac_cv_header_sys_resource_h+set}" = set; then
11832 $as_echo_n "(cached) " >&6
11833 else
11834 ac_cv_header_sys_resource_h=$ac_header_preproc
11836 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_resource_h" >&5
11837 $as_echo "$ac_cv_header_sys_resource_h" >&6; }
11840 if test "x$ac_cv_header_sys_resource_h" = x""yes; then
11842 cat >>confdefs.h <<\_ACEOF
11843 #define HAS_SYS_RESOURCE_H 1
11844 _ACEOF
11846 else
11847 { $as_echo "$as_me:$LINENO: result: no" >&5
11848 $as_echo "no" >&6; }
11854 gmp_package="yes"
11855 gmp_include_package="yes"
11856 gmp_library_package="yes"
11858 MP_BITS="MP"
11860 cat >>confdefs.h <<\_ACEOF
11861 #define LINEAR_VALUE_IS_MP 1
11862 _ACEOF
11864 NEED_MP="no"
11867 # Check whether --with-ppl was given.
11868 if test "${with_ppl+set}" = set; then
11869 withval=$with_ppl;
11874 # Check whether --with-polylib_prefix was given.
11875 if test "${with_polylib_prefix+set}" = set; then
11876 withval=$with_polylib_prefix;
11880 # Check whether --with-polylib_exec_prefix was given.
11881 if test "${with_polylib_exec_prefix+set}" = set; then
11882 withval=$with_polylib_exec_prefix;
11886 # Check whether --with-polylib_builddir was given.
11887 if test "${with_polylib_builddir+set}" = set; then
11888 withval=$with_polylib_builddir;
11892 # Check whether --with-bits was given.
11893 if test "${with_bits+set}" = set; then
11894 withval=$with_bits; echo "polylib$withval"; BITS=$withval
11899 # Check whether --with-gmp was given.
11900 if test "${with_gmp+set}" = set; then
11901 withval=$with_gmp; echo "Package gmp : $withval" &&
11902 gmp_package=$withval &&
11903 GMP_INC=$gmp_package/include &&
11904 GMP_LIB=$gmp_package/lib &&
11905 NEED_MP="yes"
11910 # Check whether --with-gmp-include was given.
11911 if test "${with_gmp_include+set}" = set; then
11912 withval=$with_gmp_include; echo "Package gmp-include : $withval" &&
11913 gmp_include_package=$withval &&
11914 GMP_INC=$gmp_include_package &&
11915 NEED_MP="yes"
11920 # Check whether --with-gmp-library was given.
11921 if test "${with_gmp_library+set}" = set; then
11922 withval=$with_gmp_library; echo "Package gmp-library : $withval" &&
11923 gmp_library_package=$withval &&
11924 GMP_LIB=$gmp_library_package &&
11925 NEED_MP="yes"
11932 { $as_echo "$as_me:$LINENO: checking whether gmp works" >&5
11933 $as_echo_n "checking whether gmp works... " >&6; }
11934 if test "$gmp_package" = "no"; then
11935 echo "GMP package not defined"
11936 { $as_echo "$as_me:$LINENO: result: no" >&5
11937 $as_echo "no" >&6; }
11938 TO_BUILD_MP=""
11939 else
11940 if test "$NEED_MP" = "no"; then
11941 echo "Mode normal GMP"
11942 TO_BUILD="$TO_BUILD MP"
11943 if test "${ac_cv_header_gmp_h+set}" = set; then
11944 { $as_echo "$as_me:$LINENO: checking for gmp.h" >&5
11945 $as_echo_n "checking for gmp.h... " >&6; }
11946 if test "${ac_cv_header_gmp_h+set}" = set; then
11947 $as_echo_n "(cached) " >&6
11949 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
11950 $as_echo "$ac_cv_header_gmp_h" >&6; }
11951 else
11952 # Is the header compilable?
11953 { $as_echo "$as_me:$LINENO: checking gmp.h usability" >&5
11954 $as_echo_n "checking gmp.h usability... " >&6; }
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 $ac_includes_default
11962 #include <gmp.h>
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11969 esac
11970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11971 $as_echo "$ac_try_echo") >&5
11972 (eval "$ac_compile") 2>conftest.er1
11973 ac_status=$?
11974 grep -v '^ *+' conftest.er1 >conftest.err
11975 rm -f conftest.er1
11976 cat conftest.err >&5
11977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest.$ac_objext; then
11982 ac_header_compiler=yes
11983 else
11984 $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_header_compiler=no
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11992 $as_echo "$ac_header_compiler" >&6; }
11994 # Is the header present?
11995 { $as_echo "$as_me:$LINENO: checking gmp.h presence" >&5
11996 $as_echo_n "checking gmp.h presence... " >&6; }
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h. */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 #include <gmp.h>
12004 _ACEOF
12005 if { (ac_try="$ac_cpp conftest.$ac_ext"
12006 case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12009 esac
12010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12011 $as_echo "$ac_try_echo") >&5
12012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12013 ac_status=$?
12014 grep -v '^ *+' conftest.er1 >conftest.err
12015 rm -f conftest.er1
12016 cat conftest.err >&5
12017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } >/dev/null && {
12019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12020 test ! -s conftest.err
12021 }; then
12022 ac_header_preproc=yes
12023 else
12024 $as_echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ac_header_preproc=no
12030 rm -f conftest.err conftest.$ac_ext
12031 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12032 $as_echo "$ac_header_preproc" >&6; }
12034 # So? What about this header?
12035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12036 yes:no: )
12037 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
12038 $as_echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12039 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5
12040 $as_echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;}
12041 ac_header_preproc=yes
12043 no:yes:* )
12044 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
12045 $as_echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
12046 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
12047 $as_echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
12048 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5
12049 $as_echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;}
12050 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&5
12051 $as_echo "$as_me: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
12052 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
12053 $as_echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
12054 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5
12055 $as_echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;}
12058 esac
12059 { $as_echo "$as_me:$LINENO: checking for gmp.h" >&5
12060 $as_echo_n "checking for gmp.h... " >&6; }
12061 if test "${ac_cv_header_gmp_h+set}" = set; then
12062 $as_echo_n "(cached) " >&6
12063 else
12064 ac_cv_header_gmp_h=$ac_header_preproc
12066 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
12067 $as_echo "$ac_cv_header_gmp_h" >&6; }
12070 if test "x$ac_cv_header_gmp_h" = x""yes; then
12071 { $as_echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
12072 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
12073 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
12074 $as_echo_n "(cached) " >&6
12075 else
12076 ac_check_lib_save_LIBS=$LIBS
12077 LIBS="-lgmp $LIBS"
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h. */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12085 /* Override any GCC internal prototype to avoid an error.
12086 Use char because int might match the return type of a GCC
12087 builtin and then its argument prototype would still apply. */
12088 #ifdef __cplusplus
12089 extern "C"
12090 #endif
12091 char __gmpz_init ();
12093 main ()
12095 return __gmpz_init ();
12097 return 0;
12099 _ACEOF
12100 rm -f conftest.$ac_objext conftest$ac_exeext
12101 if { (ac_try="$ac_link"
12102 case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12105 esac
12106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12107 $as_echo "$ac_try_echo") >&5
12108 (eval "$ac_link") 2>conftest.er1
12109 ac_status=$?
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
12113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } && {
12115 test -z "$ac_c_werror_flag" ||
12116 test ! -s conftest.err
12117 } && test -s conftest$ac_exeext && {
12118 test "$cross_compiling" = yes ||
12119 $as_test_x conftest$ac_exeext
12120 }; then
12121 ac_cv_lib_gmp___gmpz_init=yes
12122 else
12123 $as_echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 ac_cv_lib_gmp___gmpz_init=no
12129 rm -rf conftest.dSYM
12130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12131 conftest$ac_exeext conftest.$ac_ext
12132 LIBS=$ac_check_lib_save_LIBS
12134 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
12135 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
12136 if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then
12137 LIBS="$LIBS -lgmp"
12138 else
12139 echo "Can't find gmp library." &&
12140 echo "MP version will not be builded." &&
12141 TO_BUILD_MP=""
12144 else
12145 echo "Can't find gmp headers." &&
12146 echo "MP version will not be builded." &&
12147 TO_BUILD_MP=""
12151 else
12153 if test "$gmp_package" != "yes" ; then
12154 echo "(GMP path has been set by user)"
12155 GMP_DIR=$gmp_package
12156 CPPFLAGS="-I$GMP_DIR/include $CPPFLAGS"
12157 LDFLAGS="-L$GMP_DIR/lib $LDFLAGS"
12160 if test "$gmp_include_package" != "yes" ; then
12161 CPPFLAGS="-I$GMP_INC $CPPFLAGS"
12164 if test "$gmp_library_package" != "yes" ; then
12165 LDFLAGS="-L$GMP_LIB $LDFLAGS"
12168 if test "${ac_cv_header_gmp_h+set}" = set; then
12169 { $as_echo "$as_me:$LINENO: checking for gmp.h" >&5
12170 $as_echo_n "checking for gmp.h... " >&6; }
12171 if test "${ac_cv_header_gmp_h+set}" = set; then
12172 $as_echo_n "(cached) " >&6
12174 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
12175 $as_echo "$ac_cv_header_gmp_h" >&6; }
12176 else
12177 # Is the header compilable?
12178 { $as_echo "$as_me:$LINENO: checking gmp.h usability" >&5
12179 $as_echo_n "checking gmp.h usability... " >&6; }
12180 cat >conftest.$ac_ext <<_ACEOF
12181 /* confdefs.h. */
12182 _ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 $ac_includes_default
12187 #include <gmp.h>
12188 _ACEOF
12189 rm -f conftest.$ac_objext
12190 if { (ac_try="$ac_compile"
12191 case "(($ac_try" in
12192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12194 esac
12195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12196 $as_echo "$ac_try_echo") >&5
12197 (eval "$ac_compile") 2>conftest.er1
12198 ac_status=$?
12199 grep -v '^ *+' conftest.er1 >conftest.err
12200 rm -f conftest.er1
12201 cat conftest.err >&5
12202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && {
12204 test -z "$ac_c_werror_flag" ||
12205 test ! -s conftest.err
12206 } && test -s conftest.$ac_objext; then
12207 ac_header_compiler=yes
12208 else
12209 $as_echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 ac_header_compiler=no
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12217 $as_echo "$ac_header_compiler" >&6; }
12219 # Is the header present?
12220 { $as_echo "$as_me:$LINENO: checking gmp.h presence" >&5
12221 $as_echo_n "checking gmp.h presence... " >&6; }
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h. */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12228 #include <gmp.h>
12229 _ACEOF
12230 if { (ac_try="$ac_cpp conftest.$ac_ext"
12231 case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234 esac
12235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12236 $as_echo "$ac_try_echo") >&5
12237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12238 ac_status=$?
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
12242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } >/dev/null && {
12244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12245 test ! -s conftest.err
12246 }; then
12247 ac_header_preproc=yes
12248 else
12249 $as_echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12252 ac_header_preproc=no
12255 rm -f conftest.err conftest.$ac_ext
12256 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12257 $as_echo "$ac_header_preproc" >&6; }
12259 # So? What about this header?
12260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12261 yes:no: )
12262 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
12263 $as_echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12264 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5
12265 $as_echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;}
12266 ac_header_preproc=yes
12268 no:yes:* )
12269 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
12270 $as_echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
12271 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
12272 $as_echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
12273 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5
12274 $as_echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;}
12275 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&5
12276 $as_echo "$as_me: WARNING: gmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
12277 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
12278 $as_echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
12279 { $as_echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5
12280 $as_echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;}
12283 esac
12284 { $as_echo "$as_me:$LINENO: checking for gmp.h" >&5
12285 $as_echo_n "checking for gmp.h... " >&6; }
12286 if test "${ac_cv_header_gmp_h+set}" = set; then
12287 $as_echo_n "(cached) " >&6
12288 else
12289 ac_cv_header_gmp_h=$ac_header_preproc
12291 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
12292 $as_echo "$ac_cv_header_gmp_h" >&6; }
12295 if test "x$ac_cv_header_gmp_h" = x""yes; then
12297 else
12298 { { $as_echo "$as_me:$LINENO: error: Can't find gmp headers." >&5
12299 $as_echo "$as_me: error: Can't find gmp headers." >&2;}
12300 { (exit 1); exit 1; }; }
12304 { $as_echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
12305 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
12306 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
12307 $as_echo_n "(cached) " >&6
12308 else
12309 ac_check_lib_save_LIBS=$LIBS
12310 LIBS="-lgmp $LIBS"
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12318 /* Override any GCC internal prototype to avoid an error.
12319 Use char because int might match the return type of a GCC
12320 builtin and then its argument prototype would still apply. */
12321 #ifdef __cplusplus
12322 extern "C"
12323 #endif
12324 char __gmpz_init ();
12326 main ()
12328 return __gmpz_init ();
12330 return 0;
12332 _ACEOF
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338 esac
12339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12340 $as_echo "$ac_try_echo") >&5
12341 (eval "$ac_link") 2>conftest.er1
12342 ac_status=$?
12343 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1
12345 cat conftest.err >&5
12346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && {
12348 test -z "$ac_c_werror_flag" ||
12349 test ! -s conftest.err
12350 } && test -s conftest$ac_exeext && {
12351 test "$cross_compiling" = yes ||
12352 $as_test_x conftest$ac_exeext
12353 }; then
12354 ac_cv_lib_gmp___gmpz_init=yes
12355 else
12356 $as_echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_cv_lib_gmp___gmpz_init=no
12362 rm -rf conftest.dSYM
12363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12364 conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12367 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
12368 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
12369 if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then
12370 LIBS="$LIBS -lgmp"
12371 else
12372 { { $as_echo "$as_me:$LINENO: error: Can't find gmp library." >&5
12373 $as_echo "$as_me: error: Can't find gmp library." >&2;}
12374 { (exit 1); exit 1; }; }
12378 { $as_echo "$as_me:$LINENO: result: yes" >&5
12379 $as_echo "yes" >&6; }
12384 polylibs="64 32"
12385 case "$BITS" in
12386 32|64|gmp)
12387 polylibs=$BITS
12389 esac
12396 if test "x$with_polylib_prefix" != "x" -a "x$with_polylib_exec_prefix" = "x"
12397 then
12398 with_polylib_exec_prefix=$with_polylib_prefix
12400 if test "x$with_polylib_prefix" != "x" -a "x$with_polylib_builddir" != "x"; then
12401 { { $as_echo "$as_me:$LINENO: error: --with-polylib-prefix and --with-polylib-builddir are mutually exclusive" >&5
12402 $as_echo "$as_me: error: --with-polylib-prefix and --with-polylib-builddir are mutually exclusive" >&2;}
12403 { (exit 1); exit 1; }; }
12406 { $as_echo "$as_me:$LINENO: checking for location of PolyLib" >&5
12407 $as_echo_n "checking for location of PolyLib... " >&6; }
12408 if test "x$with_polylib_builddir" != "x"; then
12409 { $as_echo "$as_me:$LINENO: result: built in $with_polylib_builddir" >&5
12410 $as_echo "built in $with_polylib_builddir" >&6; }
12411 polylib_srcdir=`echo @srcdir@ | $with_polylib_builddir/config.status --file=-`
12412 { $as_echo "$as_me:$LINENO: PolyLib sources in $polylib_srcdir" >&5
12413 $as_echo "$as_me: PolyLib sources in $polylib_srcdir" >&6;}
12414 polylib_polylibs=`echo @polylibs@ | $with_polylib_builddir/config.status --file=-`
12415 { $as_echo "$as_me:$LINENO: Configured polylibs: $polylib_polylibs" >&5
12416 $as_echo "$as_me: Configured polylibs: $polylib_polylibs" >&6;}
12417 CPPFLAGS="-I$with_polylib_builddir/include -I$polylib_srcdir/include $CPPFLAGS"
12418 for BITS in $polylibs; do
12419 cl_cv_polylib=missing
12420 for PL in $polylib_polylibs; do
12421 if test "libpolylib$BITS.la" = $PL; then
12422 cl_cv_polylib="polylib$BITS"
12423 break;
12425 done
12426 if test "$cl_cv_polylib" != "missing"; then
12427 LIBS="$with_polylib_builddir/lib$cl_cv_polylib.la $LIBS"
12428 break;
12430 done
12431 else
12432 if test "x$with_polylib_prefix" != "x"; then
12433 { $as_echo "$as_me:$LINENO: result: installed in $with_polylib_exec_prefix" >&5
12434 $as_echo "installed in $with_polylib_exec_prefix" >&6; }
12435 CPPFLAGS="-I$with_polylib_prefix/include $CPPFLAGS"
12436 LDFLAGS="-L$with_polylib_exec_prefix/lib $LDFLAGS"
12437 LD_LIBRARY_PATH="$with_polylib_exec_prefix/lib:$LD_LIBRARY_PATH"
12438 export LD_LIBRARY_PATH
12439 else
12440 { $as_echo "$as_me:$LINENO: result: installed in standard location" >&5
12441 $as_echo "installed in standard location" >&6; }
12443 for BITS in $polylibs; do
12444 cl_cv_polylib="polylib$BITS"
12445 as_ac_Lib=`$as_echo "ac_cv_lib_$cl_cv_polylib''_PolyhedronTSort" | $as_tr_sh`
12446 { $as_echo "$as_me:$LINENO: checking for PolyhedronTSort in -l$cl_cv_polylib" >&5
12447 $as_echo_n "checking for PolyhedronTSort in -l$cl_cv_polylib... " >&6; }
12448 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12449 $as_echo_n "(cached) " >&6
12450 else
12451 ac_check_lib_save_LIBS=$LIBS
12452 LIBS="-l$cl_cv_polylib $LIBS"
12453 cat >conftest.$ac_ext <<_ACEOF
12454 /* confdefs.h. */
12455 _ACEOF
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h. */
12460 /* Override any GCC internal prototype to avoid an error.
12461 Use char because int might match the return type of a GCC
12462 builtin and then its argument prototype would still apply. */
12463 #ifdef __cplusplus
12464 extern "C"
12465 #endif
12466 char PolyhedronTSort ();
12468 main ()
12470 return PolyhedronTSort ();
12472 return 0;
12474 _ACEOF
12475 rm -f conftest.$ac_objext conftest$ac_exeext
12476 if { (ac_try="$ac_link"
12477 case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12480 esac
12481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12482 $as_echo "$ac_try_echo") >&5
12483 (eval "$ac_link") 2>conftest.er1
12484 ac_status=$?
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
12488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } && {
12490 test -z "$ac_c_werror_flag" ||
12491 test ! -s conftest.err
12492 } && test -s conftest$ac_exeext && {
12493 test "$cross_compiling" = yes ||
12494 $as_test_x conftest$ac_exeext
12495 }; then
12496 eval "$as_ac_Lib=yes"
12497 else
12498 $as_echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12501 eval "$as_ac_Lib=no"
12504 rm -rf conftest.dSYM
12505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12506 conftest$ac_exeext conftest.$ac_ext
12507 LIBS=$ac_check_lib_save_LIBS
12509 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12510 $as_echo "$as_val"'`
12511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12512 $as_echo "$ac_res" >&6; }
12513 as_val=`eval 'as_val=${'$as_ac_Lib'}
12514 $as_echo "$as_val"'`
12515 if test "x$as_val" = x""yes; then
12517 LIBS="-l$cl_cv_polylib $LIBS"
12518 break
12522 cl_cv_polylib=missing
12523 done
12525 if test "$cl_cv_polylib" = "missing"; then
12526 { $as_echo "$as_me:$LINENO: result: Can't find PolyLib." >&5
12527 $as_echo "Can't find PolyLib." >&6; }
12528 else
12529 as_ac_Header=`$as_echo "ac_cv_header_polylib/$cl_cv_polylib.h" | $as_tr_sh`
12530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531 { $as_echo "$as_me:$LINENO: checking for polylib/$cl_cv_polylib.h" >&5
12532 $as_echo_n "checking for polylib/$cl_cv_polylib.h... " >&6; }
12533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12534 $as_echo_n "(cached) " >&6
12536 ac_res=`eval 'as_val=${'$as_ac_Header'}
12537 $as_echo "$as_val"'`
12538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12539 $as_echo "$ac_res" >&6; }
12540 else
12541 # Is the header compilable?
12542 { $as_echo "$as_me:$LINENO: checking polylib/$cl_cv_polylib.h usability" >&5
12543 $as_echo_n "checking polylib/$cl_cv_polylib.h usability... " >&6; }
12544 cat >conftest.$ac_ext <<_ACEOF
12545 /* confdefs.h. */
12546 _ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550 $ac_includes_default
12551 #include <polylib/$cl_cv_polylib.h>
12552 _ACEOF
12553 rm -f conftest.$ac_objext
12554 if { (ac_try="$ac_compile"
12555 case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12558 esac
12559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12560 $as_echo "$ac_try_echo") >&5
12561 (eval "$ac_compile") 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && {
12568 test -z "$ac_c_werror_flag" ||
12569 test ! -s conftest.err
12570 } && test -s conftest.$ac_objext; then
12571 ac_header_compiler=yes
12572 else
12573 $as_echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 ac_header_compiler=no
12579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12580 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12581 $as_echo "$ac_header_compiler" >&6; }
12583 # Is the header present?
12584 { $as_echo "$as_me:$LINENO: checking polylib/$cl_cv_polylib.h presence" >&5
12585 $as_echo_n "checking polylib/$cl_cv_polylib.h presence... " >&6; }
12586 cat >conftest.$ac_ext <<_ACEOF
12587 /* confdefs.h. */
12588 _ACEOF
12589 cat confdefs.h >>conftest.$ac_ext
12590 cat >>conftest.$ac_ext <<_ACEOF
12591 /* end confdefs.h. */
12592 #include <polylib/$cl_cv_polylib.h>
12593 _ACEOF
12594 if { (ac_try="$ac_cpp conftest.$ac_ext"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598 esac
12599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12600 $as_echo "$ac_try_echo") >&5
12601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12602 ac_status=$?
12603 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1
12605 cat conftest.err >&5
12606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } >/dev/null && {
12608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12609 test ! -s conftest.err
12610 }; then
12611 ac_header_preproc=yes
12612 else
12613 $as_echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12616 ac_header_preproc=no
12619 rm -f conftest.err conftest.$ac_ext
12620 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12621 $as_echo "$ac_header_preproc" >&6; }
12623 # So? What about this header?
12624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12625 yes:no: )
12626 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12627 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12628 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: proceeding with the compiler's result" >&5
12629 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: proceeding with the compiler's result" >&2;}
12630 ac_header_preproc=yes
12632 no:yes:* )
12633 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: present but cannot be compiled" >&5
12634 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: present but cannot be compiled" >&2;}
12635 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: check for missing prerequisite headers?" >&5
12636 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: check for missing prerequisite headers?" >&2;}
12637 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: see the Autoconf documentation" >&5
12638 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: see the Autoconf documentation" >&2;}
12639 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: section \"Present But Cannot Be Compiled\"" >&5
12640 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12641 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: proceeding with the preprocessor's result" >&5
12642 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: proceeding with the preprocessor's result" >&2;}
12643 { $as_echo "$as_me:$LINENO: WARNING: polylib/$cl_cv_polylib.h: in the future, the compiler will take precedence" >&5
12644 $as_echo "$as_me: WARNING: polylib/$cl_cv_polylib.h: in the future, the compiler will take precedence" >&2;}
12647 esac
12648 { $as_echo "$as_me:$LINENO: checking for polylib/$cl_cv_polylib.h" >&5
12649 $as_echo_n "checking for polylib/$cl_cv_polylib.h... " >&6; }
12650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12651 $as_echo_n "(cached) " >&6
12652 else
12653 eval "$as_ac_Header=\$ac_header_preproc"
12655 ac_res=`eval 'as_val=${'$as_ac_Header'}
12656 $as_echo "$as_val"'`
12657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12658 $as_echo "$ac_res" >&6; }
12661 as_val=`eval 'as_val=${'$as_ac_Header'}
12662 $as_echo "$as_val"'`
12663 if test "x$as_val" = x""yes; then
12665 else
12666 { { $as_echo "$as_me:$LINENO: error: Can't find PolyLib headers." >&5
12667 $as_echo "$as_me: error: Can't find PolyLib headers." >&2;}
12668 { (exit 1); exit 1; }; }
12675 if test -f $srcdir/.git/HEAD; then
12676 GIT_INDEX="\$(top_srcdir)/.git/index"
12681 # The default back-end for polyhedral operations is PolyLib, unless
12682 # -with-ppl is used.
12684 POLYHEDRAL_BACKEND=polylib
12686 ppl_major_version=0
12687 ppl_minor_version=10
12692 { $as_echo "$as_me:$LINENO: checking for Parma Polyhedral Library (PPL)" >&5
12693 $as_echo_n "checking for Parma Polyhedral Library (PPL)... " >&6; }
12694 if test "x$with_ppl" != "x" -a "x$with_ppl" != "xno"; then
12696 if test "x$with_polylib_prefix" != "x" -o "x$with_polylib_exec_prefix" != "x" -o "x$with_polylib_builddir" != "x"; then
12697 { { $as_echo "$as_me:$LINENO: error: --with-polylib and --with-ppl are mutually exclusive" >&5
12698 $as_echo "$as_me: error: --with-polylib and --with-ppl are mutually exclusive" >&2;}
12699 { (exit 1); exit 1; }; }
12702 if test "x$with_ppl" != "xyes" ; then
12703 ppl_prefix=$with_ppl
12704 { $as_echo "$as_me:$LINENO: result: installed in $ppl_prefix" >&5
12705 $as_echo "installed in $ppl_prefix" >&6; }
12706 CPPFLAGS="-I$ppl_prefix/include $CPPFLAGS"
12707 LDFLAGS="-L$ppl_prefix/lib $LDFLAGS"
12708 LD_LIBRARY_PATH="$ppl_prefix/lib:$LD_LIBRARY_PATH"
12709 export LD_LIBRARY_PATH
12710 else
12711 { $as_echo "$as_me:$LINENO: result: installed at system prefix" >&5
12712 $as_echo "installed at system prefix" >&6; }
12714 POLYHEDRAL_BACKEND=ppl
12716 if test "${ac_cv_header_ppl_c_h+set}" = set; then
12717 { $as_echo "$as_me:$LINENO: checking for ppl_c.h" >&5
12718 $as_echo_n "checking for ppl_c.h... " >&6; }
12719 if test "${ac_cv_header_ppl_c_h+set}" = set; then
12720 $as_echo_n "(cached) " >&6
12722 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ppl_c_h" >&5
12723 $as_echo "$ac_cv_header_ppl_c_h" >&6; }
12724 else
12725 # Is the header compilable?
12726 { $as_echo "$as_me:$LINENO: checking ppl_c.h usability" >&5
12727 $as_echo_n "checking ppl_c.h usability... " >&6; }
12728 cat >conftest.$ac_ext <<_ACEOF
12729 /* confdefs.h. */
12730 _ACEOF
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h. */
12734 $ac_includes_default
12735 #include <ppl_c.h>
12736 _ACEOF
12737 rm -f conftest.$ac_objext
12738 if { (ac_try="$ac_compile"
12739 case "(($ac_try" in
12740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741 *) ac_try_echo=$ac_try;;
12742 esac
12743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12744 $as_echo "$ac_try_echo") >&5
12745 (eval "$ac_compile") 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && {
12752 test -z "$ac_c_werror_flag" ||
12753 test ! -s conftest.err
12754 } && test -s conftest.$ac_objext; then
12755 ac_header_compiler=yes
12756 else
12757 $as_echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 ac_header_compiler=no
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12765 $as_echo "$ac_header_compiler" >&6; }
12767 # Is the header present?
12768 { $as_echo "$as_me:$LINENO: checking ppl_c.h presence" >&5
12769 $as_echo_n "checking ppl_c.h presence... " >&6; }
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h. */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 #include <ppl_c.h>
12777 _ACEOF
12778 if { (ac_try="$ac_cpp conftest.$ac_ext"
12779 case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12782 esac
12783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12784 $as_echo "$ac_try_echo") >&5
12785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } >/dev/null && {
12792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12793 test ! -s conftest.err
12794 }; then
12795 ac_header_preproc=yes
12796 else
12797 $as_echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12800 ac_header_preproc=no
12803 rm -f conftest.err conftest.$ac_ext
12804 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12805 $as_echo "$ac_header_preproc" >&6; }
12807 # So? What about this header?
12808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12809 yes:no: )
12810 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: accepted by the compiler, rejected by the preprocessor!" >&5
12811 $as_echo "$as_me: WARNING: ppl_c.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12812 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: proceeding with the compiler's result" >&5
12813 $as_echo "$as_me: WARNING: ppl_c.h: proceeding with the compiler's result" >&2;}
12814 ac_header_preproc=yes
12816 no:yes:* )
12817 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: present but cannot be compiled" >&5
12818 $as_echo "$as_me: WARNING: ppl_c.h: present but cannot be compiled" >&2;}
12819 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: check for missing prerequisite headers?" >&5
12820 $as_echo "$as_me: WARNING: ppl_c.h: check for missing prerequisite headers?" >&2;}
12821 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: see the Autoconf documentation" >&5
12822 $as_echo "$as_me: WARNING: ppl_c.h: see the Autoconf documentation" >&2;}
12823 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: section \"Present But Cannot Be Compiled\"" >&5
12824 $as_echo "$as_me: WARNING: ppl_c.h: section \"Present But Cannot Be Compiled\"" >&2;}
12825 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: proceeding with the preprocessor's result" >&5
12826 $as_echo "$as_me: WARNING: ppl_c.h: proceeding with the preprocessor's result" >&2;}
12827 { $as_echo "$as_me:$LINENO: WARNING: ppl_c.h: in the future, the compiler will take precedence" >&5
12828 $as_echo "$as_me: WARNING: ppl_c.h: in the future, the compiler will take precedence" >&2;}
12831 esac
12832 { $as_echo "$as_me:$LINENO: checking for ppl_c.h" >&5
12833 $as_echo_n "checking for ppl_c.h... " >&6; }
12834 if test "${ac_cv_header_ppl_c_h+set}" = set; then
12835 $as_echo_n "(cached) " >&6
12836 else
12837 ac_cv_header_ppl_c_h=$ac_header_preproc
12839 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_ppl_c_h" >&5
12840 $as_echo "$ac_cv_header_ppl_c_h" >&6; }
12843 if test "x$ac_cv_header_ppl_c_h" = x""yes; then
12845 else
12846 { { $as_echo "$as_me:$LINENO: error: Can't find PPL headers." >&5
12847 $as_echo "$as_me: error: Can't find PPL headers." >&2;}
12848 { (exit 1); exit 1; }; }
12853 { $as_echo "$as_me:$LINENO: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
12854 $as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
12855 cat >conftest.$ac_ext <<_ACEOF
12856 /* confdefs.h. */
12857 _ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12861 #include "ppl_c.h"
12863 main ()
12866 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
12867 choke me
12868 #endif
12871 return 0;
12873 _ACEOF
12874 rm -f conftest.$ac_objext
12875 if { (ac_try="$ac_compile"
12876 case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12879 esac
12880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12881 $as_echo "$ac_try_echo") >&5
12882 (eval "$ac_compile") 2>conftest.er1
12883 ac_status=$?
12884 grep -v '^ *+' conftest.er1 >conftest.err
12885 rm -f conftest.er1
12886 cat conftest.err >&5
12887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } && {
12889 test -z "$ac_c_werror_flag" ||
12890 test ! -s conftest.err
12891 } && test -s conftest.$ac_objext; then
12892 { $as_echo "$as_me:$LINENO: result: yes" >&5
12893 $as_echo "yes" >&6; }
12894 else
12895 $as_echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.$ac_ext >&5
12898 { { $as_echo "$as_me:$LINENO: error: Can't find correct version of PPL." >&5
12899 $as_echo "$as_me: error: Can't find correct version of PPL." >&2;}
12900 { (exit 1); exit 1; }; }
12903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12905 LIBS="$LIBS -lppl_c -lppl -lgmpxx"
12907 cat >>confdefs.h <<\_ACEOF
12908 #define CLOOG_PPL_BACKEND 1
12909 _ACEOF
12912 else
12913 { $as_echo "$as_me:$LINENO: result: not using PPL" >&5
12914 $as_echo "not using PPL" >&6; }
12917 # Allow host libstdc++ to be specified for static linking with PPL.
12919 # Check whether --with-host-libstdcxx was given.
12920 if test "${with_host_libstdcxx+set}" = set; then
12921 withval=$with_host_libstdcxx;
12925 case $with_host_libstdcxx in
12926 no|yes) { { $as_echo "$as_me:$LINENO: error: -with-host-libstdcxx needs an argument" >&5
12927 $as_echo "$as_me: error: -with-host-libstdcxx needs an argument" >&2;}
12928 { (exit 1); exit 1; }; } ;;
12929 *) LIBS="$LIBS $with_host_libstdcxx" ;;
12930 esac
12945 ac_config_files="$ac_config_files Makefile test/Makefile include/cloog/cloog.h autoconf/Doxyfile"
12947 ac_config_files="$ac_config_files doc/Makefile"
12949 ac_config_files="$ac_config_files genversion.sh"
12951 ac_config_commands="$ac_config_commands version.h"
12953 ac_config_commands="$ac_config_commands doc/gitversion.texi"
12955 cat >confcache <<\_ACEOF
12956 # This file is a shell script that caches the results of configure
12957 # tests run on this system so they can be shared between configure
12958 # scripts and configure runs, see configure's option --config-cache.
12959 # It is not useful on other systems. If it contains results you don't
12960 # want to keep, you may remove or edit it.
12962 # config.status only pays attention to the cache file if you give it
12963 # the --recheck option to rerun configure.
12965 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12966 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12967 # following values.
12969 _ACEOF
12971 # The following way of writing the cache mishandles newlines in values,
12972 # but we know of no workaround that is simple, portable, and efficient.
12973 # So, we kill variables containing newlines.
12974 # Ultrix sh set writes to stderr and can't be redirected directly,
12975 # and sets the high bit in the cache file unless we assign to the vars.
12977 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12978 eval ac_val=\$$ac_var
12979 case $ac_val in #(
12980 *${as_nl}*)
12981 case $ac_var in #(
12982 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12983 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12984 esac
12985 case $ac_var in #(
12986 _ | IFS | as_nl) ;; #(
12987 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12988 *) $as_unset $ac_var ;;
12989 esac ;;
12990 esac
12991 done
12993 (set) 2>&1 |
12994 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12995 *${as_nl}ac_space=\ *)
12996 # `set' does not quote correctly, so add quotes (double-quote
12997 # substitution turns \\\\ into \\, and sed turns \\ into \).
12998 sed -n \
12999 "s/'/'\\\\''/g;
13000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13001 ;; #(
13003 # `set' quotes correctly as required by POSIX, so do not add quotes.
13004 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13006 esac |
13007 sort
13009 sed '
13010 /^ac_cv_env_/b end
13011 t clear
13012 :clear
13013 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13014 t end
13015 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13016 :end' >>confcache
13017 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13018 if test -w "$cache_file"; then
13019 test "x$cache_file" != "x/dev/null" &&
13020 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13021 $as_echo "$as_me: updating cache $cache_file" >&6;}
13022 cat confcache >$cache_file
13023 else
13024 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13025 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13028 rm -f confcache
13030 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13031 # Let make expand exec_prefix.
13032 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13034 DEFS=-DHAVE_CONFIG_H
13036 ac_libobjs=
13037 ac_ltlibobjs=
13038 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13039 # 1. Remove the extension, and $U if already installed.
13040 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13041 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13042 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13043 # will be set to the directory where LIBOBJS objects are built.
13044 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13045 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13046 done
13047 LIBOBJS=$ac_libobjs
13049 LTLIBOBJS=$ac_ltlibobjs
13052 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13053 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13054 Usually this means the macro was only invoked conditionally." >&5
13055 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13056 Usually this means the macro was only invoked conditionally." >&2;}
13057 { (exit 1); exit 1; }; }
13059 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13060 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13061 Usually this means the macro was only invoked conditionally." >&5
13062 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13063 Usually this means the macro was only invoked conditionally." >&2;}
13064 { (exit 1); exit 1; }; }
13067 : ${CONFIG_STATUS=./config.status}
13068 ac_write_fail=0
13069 ac_clean_files_save=$ac_clean_files
13070 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13071 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13072 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13073 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13074 #! $SHELL
13075 # Generated by $as_me.
13076 # Run this file to recreate the current configuration.
13077 # Compiler output produced by configure, useful for debugging
13078 # configure, is in config.log if it exists.
13080 debug=false
13081 ac_cs_recheck=false
13082 ac_cs_silent=false
13083 SHELL=\${CONFIG_SHELL-$SHELL}
13084 _ACEOF
13086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13087 ## --------------------- ##
13088 ## M4sh Initialization. ##
13089 ## --------------------- ##
13091 # Be more Bourne compatible
13092 DUALCASE=1; export DUALCASE # for MKS sh
13093 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13094 emulate sh
13095 NULLCMD=:
13096 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13097 # is contrary to our usage. Disable this feature.
13098 alias -g '${1+"$@"}'='"$@"'
13099 setopt NO_GLOB_SUBST
13100 else
13101 case `(set -o) 2>/dev/null` in
13102 *posix*) set -o posix ;;
13103 esac
13110 # PATH needs CR
13111 # Avoid depending upon Character Ranges.
13112 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13113 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13114 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13115 as_cr_digits='0123456789'
13116 as_cr_alnum=$as_cr_Letters$as_cr_digits
13118 as_nl='
13120 export as_nl
13121 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13122 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13125 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13126 as_echo='printf %s\n'
13127 as_echo_n='printf %s'
13128 else
13129 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13130 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13131 as_echo_n='/usr/ucb/echo -n'
13132 else
13133 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13134 as_echo_n_body='eval
13135 arg=$1;
13136 case $arg in
13137 *"$as_nl"*)
13138 expr "X$arg" : "X\\(.*\\)$as_nl";
13139 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13140 esac;
13141 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13143 export as_echo_n_body
13144 as_echo_n='sh -c $as_echo_n_body as_echo'
13146 export as_echo_body
13147 as_echo='sh -c $as_echo_body as_echo'
13150 # The user is always right.
13151 if test "${PATH_SEPARATOR+set}" != set; then
13152 PATH_SEPARATOR=:
13153 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13154 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13155 PATH_SEPARATOR=';'
13159 # Support unset when possible.
13160 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13161 as_unset=unset
13162 else
13163 as_unset=false
13167 # IFS
13168 # We need space, tab and new line, in precisely that order. Quoting is
13169 # there to prevent editors from complaining about space-tab.
13170 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13171 # splitting by setting IFS to empty value.)
13172 IFS=" "" $as_nl"
13174 # Find who we are. Look in the path if we contain no directory separator.
13175 case $0 in
13176 *[\\/]* ) as_myself=$0 ;;
13177 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178 for as_dir in $PATH
13180 IFS=$as_save_IFS
13181 test -z "$as_dir" && as_dir=.
13182 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13183 done
13184 IFS=$as_save_IFS
13187 esac
13188 # We did not find ourselves, most probably we were run as `sh COMMAND'
13189 # in which case we are not to be found in the path.
13190 if test "x$as_myself" = x; then
13191 as_myself=$0
13193 if test ! -f "$as_myself"; then
13194 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13195 { (exit 1); exit 1; }
13198 # Work around bugs in pre-3.0 UWIN ksh.
13199 for as_var in ENV MAIL MAILPATH
13200 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13201 done
13202 PS1='$ '
13203 PS2='> '
13204 PS4='+ '
13206 # NLS nuisances.
13207 LC_ALL=C
13208 export LC_ALL
13209 LANGUAGE=C
13210 export LANGUAGE
13212 # Required to use basename.
13213 if expr a : '\(a\)' >/dev/null 2>&1 &&
13214 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13215 as_expr=expr
13216 else
13217 as_expr=false
13220 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13221 as_basename=basename
13222 else
13223 as_basename=false
13227 # Name of the executable.
13228 as_me=`$as_basename -- "$0" ||
13229 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13230 X"$0" : 'X\(//\)$' \| \
13231 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13232 $as_echo X/"$0" |
13233 sed '/^.*\/\([^/][^/]*\)\/*$/{
13234 s//\1/
13237 /^X\/\(\/\/\)$/{
13238 s//\1/
13241 /^X\/\(\/\).*/{
13242 s//\1/
13245 s/.*/./; q'`
13247 # CDPATH.
13248 $as_unset CDPATH
13252 as_lineno_1=$LINENO
13253 as_lineno_2=$LINENO
13254 test "x$as_lineno_1" != "x$as_lineno_2" &&
13255 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13257 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13258 # uniformly replaced by the line number. The first 'sed' inserts a
13259 # line-number line after each line using $LINENO; the second 'sed'
13260 # does the real work. The second script uses 'N' to pair each
13261 # line-number line with the line containing $LINENO, and appends
13262 # trailing '-' during substitution so that $LINENO is not a special
13263 # case at line end.
13264 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13265 # scripts with optimization help from Paolo Bonzini. Blame Lee
13266 # E. McMahon (1931-1989) for sed's syntax. :-)
13267 sed -n '
13269 /[$]LINENO/=
13270 ' <$as_myself |
13271 sed '
13272 s/[$]LINENO.*/&-/
13273 t lineno
13275 :lineno
13277 :loop
13278 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13279 t loop
13280 s/-\n.*//
13281 ' >$as_me.lineno &&
13282 chmod +x "$as_me.lineno" ||
13283 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13284 { (exit 1); exit 1; }; }
13286 # Don't try to exec as it changes $[0], causing all sort of problems
13287 # (the dirname of $[0] is not the place where we might find the
13288 # original and so on. Autoconf is especially sensitive to this).
13289 . "./$as_me.lineno"
13290 # Exit status is that of the last command.
13291 exit
13295 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13296 as_dirname=dirname
13297 else
13298 as_dirname=false
13301 ECHO_C= ECHO_N= ECHO_T=
13302 case `echo -n x` in
13303 -n*)
13304 case `echo 'x\c'` in
13305 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13306 *) ECHO_C='\c';;
13307 esac;;
13309 ECHO_N='-n';;
13310 esac
13311 if expr a : '\(a\)' >/dev/null 2>&1 &&
13312 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13313 as_expr=expr
13314 else
13315 as_expr=false
13318 rm -f conf$$ conf$$.exe conf$$.file
13319 if test -d conf$$.dir; then
13320 rm -f conf$$.dir/conf$$.file
13321 else
13322 rm -f conf$$.dir
13323 mkdir conf$$.dir 2>/dev/null
13325 if (echo >conf$$.file) 2>/dev/null; then
13326 if ln -s conf$$.file conf$$ 2>/dev/null; then
13327 as_ln_s='ln -s'
13328 # ... but there are two gotchas:
13329 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13330 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13331 # In both cases, we have to default to `cp -p'.
13332 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13333 as_ln_s='cp -p'
13334 elif ln conf$$.file conf$$ 2>/dev/null; then
13335 as_ln_s=ln
13336 else
13337 as_ln_s='cp -p'
13339 else
13340 as_ln_s='cp -p'
13342 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13343 rmdir conf$$.dir 2>/dev/null
13345 if mkdir -p . 2>/dev/null; then
13346 as_mkdir_p=:
13347 else
13348 test -d ./-p && rmdir ./-p
13349 as_mkdir_p=false
13352 if test -x / >/dev/null 2>&1; then
13353 as_test_x='test -x'
13354 else
13355 if ls -dL / >/dev/null 2>&1; then
13356 as_ls_L_option=L
13357 else
13358 as_ls_L_option=
13360 as_test_x='
13361 eval sh -c '\''
13362 if test -d "$1"; then
13363 test -d "$1/.";
13364 else
13365 case $1 in
13366 -*)set "./$1";;
13367 esac;
13368 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13369 ???[sx]*):;;*)false;;esac;fi
13370 '\'' sh
13373 as_executable_p=$as_test_x
13375 # Sed expression to map a string onto a valid CPP name.
13376 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13378 # Sed expression to map a string onto a valid variable name.
13379 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13382 exec 6>&1
13384 # Save the log message, to keep $[0] and so on meaningful, and to
13385 # report actual input values of CONFIG_FILES etc. instead of their
13386 # values after options handling.
13387 ac_log="
13388 This file was extended by $as_me, which was
13389 generated by GNU Autoconf 2.63. Invocation command line was
13391 CONFIG_FILES = $CONFIG_FILES
13392 CONFIG_HEADERS = $CONFIG_HEADERS
13393 CONFIG_LINKS = $CONFIG_LINKS
13394 CONFIG_COMMANDS = $CONFIG_COMMANDS
13395 $ $0 $@
13397 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13400 _ACEOF
13402 case $ac_config_files in *"
13403 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13404 esac
13406 case $ac_config_headers in *"
13407 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13408 esac
13411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13412 # Files that config.status was made for.
13413 config_files="$ac_config_files"
13414 config_headers="$ac_config_headers"
13415 config_commands="$ac_config_commands"
13417 _ACEOF
13419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13420 ac_cs_usage="\
13421 \`$as_me' instantiates files from templates according to the
13422 current configuration.
13424 Usage: $0 [OPTION]... [FILE]...
13426 -h, --help print this help, then exit
13427 -V, --version print version number and configuration settings, then exit
13428 -q, --quiet, --silent
13429 do not print progress messages
13430 -d, --debug don't remove temporary files
13431 --recheck update $as_me by reconfiguring in the same conditions
13432 --file=FILE[:TEMPLATE]
13433 instantiate the configuration file FILE
13434 --header=FILE[:TEMPLATE]
13435 instantiate the configuration header FILE
13437 Configuration files:
13438 $config_files
13440 Configuration headers:
13441 $config_headers
13443 Configuration commands:
13444 $config_commands
13446 Report bugs to <bug-autoconf@gnu.org>."
13448 _ACEOF
13449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13450 ac_cs_version="\\
13451 config.status
13452 configured by $0, generated by GNU Autoconf 2.63,
13453 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13455 Copyright (C) 2008 Free Software Foundation, Inc.
13456 This config.status script is free software; the Free Software Foundation
13457 gives unlimited permission to copy, distribute and modify it."
13459 ac_pwd='$ac_pwd'
13460 srcdir='$srcdir'
13461 INSTALL='$INSTALL'
13462 AWK='$AWK'
13463 test -n "\$AWK" || AWK=awk
13464 _ACEOF
13466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13467 # The default lists apply if the user does not specify any file.
13468 ac_need_defaults=:
13469 while test $# != 0
13471 case $1 in
13472 --*=*)
13473 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13474 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13475 ac_shift=:
13478 ac_option=$1
13479 ac_optarg=$2
13480 ac_shift=shift
13482 esac
13484 case $ac_option in
13485 # Handling of the options.
13486 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13487 ac_cs_recheck=: ;;
13488 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13489 $as_echo "$ac_cs_version"; exit ;;
13490 --debug | --debu | --deb | --de | --d | -d )
13491 debug=: ;;
13492 --file | --fil | --fi | --f )
13493 $ac_shift
13494 case $ac_optarg in
13495 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13496 esac
13497 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13498 ac_need_defaults=false;;
13499 --header | --heade | --head | --hea )
13500 $ac_shift
13501 case $ac_optarg in
13502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13503 esac
13504 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13505 ac_need_defaults=false;;
13506 --he | --h)
13507 # Conflict between --help and --header
13508 { $as_echo "$as_me: error: ambiguous option: $1
13509 Try \`$0 --help' for more information." >&2
13510 { (exit 1); exit 1; }; };;
13511 --help | --hel | -h )
13512 $as_echo "$ac_cs_usage"; exit ;;
13513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13514 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13515 ac_cs_silent=: ;;
13517 # This is an error.
13518 -*) { $as_echo "$as_me: error: unrecognized option: $1
13519 Try \`$0 --help' for more information." >&2
13520 { (exit 1); exit 1; }; } ;;
13522 *) ac_config_targets="$ac_config_targets $1"
13523 ac_need_defaults=false ;;
13525 esac
13526 shift
13527 done
13529 ac_configure_extra_args=
13531 if $ac_cs_silent; then
13532 exec 6>/dev/null
13533 ac_configure_extra_args="$ac_configure_extra_args --silent"
13536 _ACEOF
13537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13538 if \$ac_cs_recheck; then
13539 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13540 shift
13541 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13542 CONFIG_SHELL='$SHELL'
13543 export CONFIG_SHELL
13544 exec "\$@"
13547 _ACEOF
13548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13549 exec 5>>config.log
13551 echo
13552 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13553 ## Running $as_me. ##
13554 _ASBOX
13555 $as_echo "$ac_log"
13556 } >&5
13558 _ACEOF
13559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13561 # INIT-COMMANDS
13563 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13566 # The HP-UX ksh and POSIX shell print the target directory to stdout
13567 # if CDPATH is set.
13568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13570 sed_quote_subst='$sed_quote_subst'
13571 double_quote_subst='$double_quote_subst'
13572 delay_variable_subst='$delay_variable_subst'
13573 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13574 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13575 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13576 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13577 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13578 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13579 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13580 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13581 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13582 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13583 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13584 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13585 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13586 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13587 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13588 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13589 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13590 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13591 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13592 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13593 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13594 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13595 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13596 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13597 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13598 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13599 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13600 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13601 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13602 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13603 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13604 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13605 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13606 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13607 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13608 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13609 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13610 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13611 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13612 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13613 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13614 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13615 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13616 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13617 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13618 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13619 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13620 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13621 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13622 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13623 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13624 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13625 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13626 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13627 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13628 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13629 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13630 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13631 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13632 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13633 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13634 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13635 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13636 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13637 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13638 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13639 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13640 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13641 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13642 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13643 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13644 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13645 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13646 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13647 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13648 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13649 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13650 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13651 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13652 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13653 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13654 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13655 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13656 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13657 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13658 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13659 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13660 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13661 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13662 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13663 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13664 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13665 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13666 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13667 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13668 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13669 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13670 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13671 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13672 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13673 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13674 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13675 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13676 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13677 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13678 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13679 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13680 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13681 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13682 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13683 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13684 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13685 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13686 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13687 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13688 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13689 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13690 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13692 LTCC='$LTCC'
13693 LTCFLAGS='$LTCFLAGS'
13694 compiler='$compiler_DEFAULT'
13696 # Quote evaled strings.
13697 for var in SED \
13698 GREP \
13699 EGREP \
13700 FGREP \
13701 LD \
13702 NM \
13703 LN_S \
13704 lt_SP2NL \
13705 lt_NL2SP \
13706 reload_flag \
13707 OBJDUMP \
13708 deplibs_check_method \
13709 file_magic_cmd \
13710 AR \
13711 AR_FLAGS \
13712 STRIP \
13713 RANLIB \
13714 CC \
13715 CFLAGS \
13716 compiler \
13717 lt_cv_sys_global_symbol_pipe \
13718 lt_cv_sys_global_symbol_to_cdecl \
13719 lt_cv_sys_global_symbol_to_c_name_address \
13720 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13721 SHELL \
13722 ECHO \
13723 lt_prog_compiler_no_builtin_flag \
13724 lt_prog_compiler_wl \
13725 lt_prog_compiler_pic \
13726 lt_prog_compiler_static \
13727 lt_cv_prog_compiler_c_o \
13728 need_locks \
13729 DSYMUTIL \
13730 NMEDIT \
13731 LIPO \
13732 OTOOL \
13733 OTOOL64 \
13734 shrext_cmds \
13735 export_dynamic_flag_spec \
13736 whole_archive_flag_spec \
13737 compiler_needs_object \
13738 with_gnu_ld \
13739 allow_undefined_flag \
13740 no_undefined_flag \
13741 hardcode_libdir_flag_spec \
13742 hardcode_libdir_flag_spec_ld \
13743 hardcode_libdir_separator \
13744 fix_srcfile_path \
13745 exclude_expsyms \
13746 include_expsyms \
13747 file_list_spec \
13748 variables_saved_for_relink \
13749 libname_spec \
13750 library_names_spec \
13751 soname_spec \
13752 finish_eval \
13753 old_striplib \
13754 striplib; do
13755 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13756 *[\\\\\\\`\\"\\\$]*)
13757 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13760 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13762 esac
13763 done
13765 # Double-quote double-evaled strings.
13766 for var in reload_cmds \
13767 old_postinstall_cmds \
13768 old_postuninstall_cmds \
13769 old_archive_cmds \
13770 extract_expsyms_cmds \
13771 old_archive_from_new_cmds \
13772 old_archive_from_expsyms_cmds \
13773 archive_cmds \
13774 archive_expsym_cmds \
13775 module_cmds \
13776 module_expsym_cmds \
13777 export_symbols_cmds \
13778 prelink_cmds \
13779 postinstall_cmds \
13780 postuninstall_cmds \
13781 finish_cmds \
13782 sys_lib_search_path_spec \
13783 sys_lib_dlsearch_path_spec; do
13784 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13785 *[\\\\\\\`\\"\\\$]*)
13786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13791 esac
13792 done
13794 # Fix-up fallback echo if it was mangled by the above quoting rules.
13795 case \$lt_ECHO in
13796 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13798 esac
13800 ac_aux_dir='$ac_aux_dir'
13801 xsi_shell='$xsi_shell'
13802 lt_shell_append='$lt_shell_append'
13804 # See if we are running on zsh, and set the options which allow our
13805 # commands through without removal of \ escapes INIT.
13806 if test -n "\${ZSH_VERSION+set}" ; then
13807 setopt NO_GLOB_SUBST
13811 PACKAGE='$PACKAGE'
13812 VERSION='$VERSION'
13813 TIMESTAMP='$TIMESTAMP'
13814 RM='$RM'
13815 ofile='$ofile'
13820 _ACEOF
13822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13824 # Handling of arguments.
13825 for ac_config_target in $ac_config_targets
13827 case $ac_config_target in
13828 "include/cloog/cloog-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/cloog/cloog-config.h" ;;
13829 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13830 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13831 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13832 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13833 "include/cloog/cloog.h") CONFIG_FILES="$CONFIG_FILES include/cloog/cloog.h" ;;
13834 "autoconf/Doxyfile") CONFIG_FILES="$CONFIG_FILES autoconf/Doxyfile" ;;
13835 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13836 "genversion.sh") CONFIG_FILES="$CONFIG_FILES genversion.sh" ;;
13837 "version.h") CONFIG_COMMANDS="$CONFIG_COMMANDS version.h" ;;
13838 "doc/gitversion.texi") CONFIG_COMMANDS="$CONFIG_COMMANDS doc/gitversion.texi" ;;
13840 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13841 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13842 { (exit 1); exit 1; }; };;
13843 esac
13844 done
13847 # If the user did not use the arguments to specify the items to instantiate,
13848 # then the envvar interface is used. Set only those that are not.
13849 # We use the long form for the default assignment because of an extremely
13850 # bizarre bug on SunOS 4.1.3.
13851 if $ac_need_defaults; then
13852 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13853 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13854 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13857 # Have a temporary directory for convenience. Make it in the build tree
13858 # simply because there is no reason against having it here, and in addition,
13859 # creating and moving files from /tmp can sometimes cause problems.
13860 # Hook for its removal unless debugging.
13861 # Note that there is a small window in which the directory will not be cleaned:
13862 # after its creation but before its name has been assigned to `$tmp'.
13863 $debug ||
13865 tmp=
13866 trap 'exit_status=$?
13867 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13869 trap '{ (exit 1); exit 1; }' 1 2 13 15
13871 # Create a (secure) tmp directory for tmp files.
13874 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13875 test -n "$tmp" && test -d "$tmp"
13876 } ||
13878 tmp=./conf$$-$RANDOM
13879 (umask 077 && mkdir "$tmp")
13880 } ||
13882 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13883 { (exit 1); exit 1; }
13886 # Set up the scripts for CONFIG_FILES section.
13887 # No need to generate them if there are no CONFIG_FILES.
13888 # This happens for instance with `./config.status config.h'.
13889 if test -n "$CONFIG_FILES"; then
13892 ac_cr=' '
13893 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13894 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13895 ac_cs_awk_cr='\\r'
13896 else
13897 ac_cs_awk_cr=$ac_cr
13900 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13901 _ACEOF
13905 echo "cat >conf$$subs.awk <<_ACEOF" &&
13906 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13907 echo "_ACEOF"
13908 } >conf$$subs.sh ||
13909 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13910 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13911 { (exit 1); exit 1; }; }
13912 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13913 ac_delim='%!_!# '
13914 for ac_last_try in false false false false false :; do
13915 . ./conf$$subs.sh ||
13916 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13917 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13918 { (exit 1); exit 1; }; }
13920 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13921 if test $ac_delim_n = $ac_delim_num; then
13922 break
13923 elif $ac_last_try; then
13924 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13925 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13926 { (exit 1); exit 1; }; }
13927 else
13928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13930 done
13931 rm -f conf$$subs.sh
13933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13934 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13935 _ACEOF
13936 sed -n '
13938 s/^/S["/; s/!.*/"]=/
13941 s/^[^!]*!//
13942 :repl
13943 t repl
13944 s/'"$ac_delim"'$//
13945 t delim
13948 s/\(.\{148\}\).*/\1/
13949 t more1
13950 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13953 b repl
13954 :more1
13955 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13958 s/.\{148\}//
13959 t nl
13960 :delim
13962 s/\(.\{148\}\).*/\1/
13963 t more2
13964 s/["\\]/\\&/g; s/^/"/; s/$/"/
13967 :more2
13968 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13971 s/.\{148\}//
13972 t delim
13973 ' <conf$$subs.awk | sed '
13974 /^[^""]/{
13976 s/\n//
13978 ' >>$CONFIG_STATUS || ac_write_fail=1
13979 rm -f conf$$subs.awk
13980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13981 _ACAWK
13982 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13983 for (key in S) S_is_set[key] = 1
13984 FS = "\a"
13988 line = $ 0
13989 nfields = split(line, field, "@")
13990 substed = 0
13991 len = length(field[1])
13992 for (i = 2; i < nfields; i++) {
13993 key = field[i]
13994 keylen = length(key)
13995 if (S_is_set[key]) {
13996 value = S[key]
13997 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13998 len += length(value) + length(field[++i])
13999 substed = 1
14000 } else
14001 len += 1 + keylen
14004 print line
14007 _ACAWK
14008 _ACEOF
14009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14011 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14012 else
14014 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14015 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14016 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14017 { (exit 1); exit 1; }; }
14018 _ACEOF
14020 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14021 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14022 # trailing colons and then remove the whole line if VPATH becomes empty
14023 # (actually we leave an empty line to preserve line numbers).
14024 if test "x$srcdir" = x.; then
14025 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14026 s/:*\$(srcdir):*/:/
14027 s/:*\${srcdir}:*/:/
14028 s/:*@srcdir@:*/:/
14029 s/^\([^=]*=[ ]*\):*/\1/
14030 s/:*$//
14031 s/^[^=]*=[ ]*$//
14035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14036 fi # test -n "$CONFIG_FILES"
14038 # Set up the scripts for CONFIG_HEADERS section.
14039 # No need to generate them if there are no CONFIG_HEADERS.
14040 # This happens for instance with `./config.status Makefile'.
14041 if test -n "$CONFIG_HEADERS"; then
14042 cat >"$tmp/defines.awk" <<\_ACAWK ||
14043 BEGIN {
14044 _ACEOF
14046 # Transform confdefs.h into an awk script `defines.awk', embedded as
14047 # here-document in config.status, that substitutes the proper values into
14048 # config.h.in to produce config.h.
14050 # Create a delimiter string that does not exist in confdefs.h, to ease
14051 # handling of long lines.
14052 ac_delim='%!_!# '
14053 for ac_last_try in false false :; do
14054 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14055 if test -z "$ac_t"; then
14056 break
14057 elif $ac_last_try; then
14058 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14059 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14060 { (exit 1); exit 1; }; }
14061 else
14062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14064 done
14066 # For the awk script, D is an array of macro values keyed by name,
14067 # likewise P contains macro parameters if any. Preserve backslash
14068 # newline sequences.
14070 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14071 sed -n '
14072 s/.\{148\}/&'"$ac_delim"'/g
14073 t rset
14074 :rset
14075 s/^[ ]*#[ ]*define[ ][ ]*/ /
14076 t def
14078 :def
14079 s/\\$//
14080 t bsnl
14081 s/["\\]/\\&/g
14082 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14083 D["\1"]=" \3"/p
14084 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14086 :bsnl
14087 s/["\\]/\\&/g
14088 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14089 D["\1"]=" \3\\\\\\n"\\/p
14090 t cont
14091 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14092 t cont
14094 :cont
14096 s/.\{148\}/&'"$ac_delim"'/g
14097 t clear
14098 :clear
14099 s/\\$//
14100 t bsnlc
14101 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14103 :bsnlc
14104 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14105 b cont
14106 ' <confdefs.h | sed '
14107 s/'"$ac_delim"'/"\\\
14108 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14111 for (key in D) D_is_set[key] = 1
14112 FS = "\a"
14114 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14115 line = \$ 0
14116 split(line, arg, " ")
14117 if (arg[1] == "#") {
14118 defundef = arg[2]
14119 mac1 = arg[3]
14120 } else {
14121 defundef = substr(arg[1], 2)
14122 mac1 = arg[2]
14124 split(mac1, mac2, "(") #)
14125 macro = mac2[1]
14126 prefix = substr(line, 1, index(line, defundef) - 1)
14127 if (D_is_set[macro]) {
14128 # Preserve the white space surrounding the "#".
14129 print prefix "define", macro P[macro] D[macro]
14130 next
14131 } else {
14132 # Replace #undef with comments. This is necessary, for example,
14133 # in the case of _POSIX_SOURCE, which is predefined and required
14134 # on some systems where configure will not decide to define it.
14135 if (defundef == "undef") {
14136 print "/*", prefix defundef, macro, "*/"
14137 next
14141 { print }
14142 _ACAWK
14143 _ACEOF
14144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14145 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14146 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14147 { (exit 1); exit 1; }; }
14148 fi # test -n "$CONFIG_HEADERS"
14151 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14152 shift
14153 for ac_tag
14155 case $ac_tag in
14156 :[FHLC]) ac_mode=$ac_tag; continue;;
14157 esac
14158 case $ac_mode$ac_tag in
14159 :[FHL]*:*);;
14160 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14161 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14162 { (exit 1); exit 1; }; };;
14163 :[FH]-) ac_tag=-:-;;
14164 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14165 esac
14166 ac_save_IFS=$IFS
14167 IFS=:
14168 set x $ac_tag
14169 IFS=$ac_save_IFS
14170 shift
14171 ac_file=$1
14172 shift
14174 case $ac_mode in
14175 :L) ac_source=$1;;
14176 :[FH])
14177 ac_file_inputs=
14178 for ac_f
14180 case $ac_f in
14181 -) ac_f="$tmp/stdin";;
14182 *) # Look for the file first in the build tree, then in the source tree
14183 # (if the path is not absolute). The absolute path cannot be DOS-style,
14184 # because $ac_f cannot contain `:'.
14185 test -f "$ac_f" ||
14186 case $ac_f in
14187 [\\/$]*) false;;
14188 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14189 esac ||
14190 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14191 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14192 { (exit 1); exit 1; }; };;
14193 esac
14194 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14195 ac_file_inputs="$ac_file_inputs '$ac_f'"
14196 done
14198 # Let's still pretend it is `configure' which instantiates (i.e., don't
14199 # use $as_me), people would be surprised to read:
14200 # /* config.h. Generated by config.status. */
14201 configure_input='Generated from '`
14202 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14203 `' by configure.'
14204 if test x"$ac_file" != x-; then
14205 configure_input="$ac_file. $configure_input"
14206 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14207 $as_echo "$as_me: creating $ac_file" >&6;}
14209 # Neutralize special characters interpreted by sed in replacement strings.
14210 case $configure_input in #(
14211 *\&* | *\|* | *\\* )
14212 ac_sed_conf_input=`$as_echo "$configure_input" |
14213 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14214 *) ac_sed_conf_input=$configure_input;;
14215 esac
14217 case $ac_tag in
14218 *:-:* | *:-) cat >"$tmp/stdin" \
14219 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14220 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14221 { (exit 1); exit 1; }; } ;;
14222 esac
14224 esac
14226 ac_dir=`$as_dirname -- "$ac_file" ||
14227 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14228 X"$ac_file" : 'X\(//\)[^/]' \| \
14229 X"$ac_file" : 'X\(//\)$' \| \
14230 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14231 $as_echo X"$ac_file" |
14232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14233 s//\1/
14236 /^X\(\/\/\)[^/].*/{
14237 s//\1/
14240 /^X\(\/\/\)$/{
14241 s//\1/
14244 /^X\(\/\).*/{
14245 s//\1/
14248 s/.*/./; q'`
14249 { as_dir="$ac_dir"
14250 case $as_dir in #(
14251 -*) as_dir=./$as_dir;;
14252 esac
14253 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14254 as_dirs=
14255 while :; do
14256 case $as_dir in #(
14257 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14258 *) as_qdir=$as_dir;;
14259 esac
14260 as_dirs="'$as_qdir' $as_dirs"
14261 as_dir=`$as_dirname -- "$as_dir" ||
14262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14263 X"$as_dir" : 'X\(//\)[^/]' \| \
14264 X"$as_dir" : 'X\(//\)$' \| \
14265 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14266 $as_echo X"$as_dir" |
14267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14268 s//\1/
14271 /^X\(\/\/\)[^/].*/{
14272 s//\1/
14275 /^X\(\/\/\)$/{
14276 s//\1/
14279 /^X\(\/\).*/{
14280 s//\1/
14283 s/.*/./; q'`
14284 test -d "$as_dir" && break
14285 done
14286 test -z "$as_dirs" || eval "mkdir $as_dirs"
14287 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14288 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14289 { (exit 1); exit 1; }; }; }
14290 ac_builddir=.
14292 case "$ac_dir" in
14293 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14295 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14296 # A ".." for each directory in $ac_dir_suffix.
14297 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14298 case $ac_top_builddir_sub in
14299 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14300 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14301 esac ;;
14302 esac
14303 ac_abs_top_builddir=$ac_pwd
14304 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14305 # for backward compatibility:
14306 ac_top_builddir=$ac_top_build_prefix
14308 case $srcdir in
14309 .) # We are building in place.
14310 ac_srcdir=.
14311 ac_top_srcdir=$ac_top_builddir_sub
14312 ac_abs_top_srcdir=$ac_pwd ;;
14313 [\\/]* | ?:[\\/]* ) # Absolute name.
14314 ac_srcdir=$srcdir$ac_dir_suffix;
14315 ac_top_srcdir=$srcdir
14316 ac_abs_top_srcdir=$srcdir ;;
14317 *) # Relative name.
14318 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14319 ac_top_srcdir=$ac_top_build_prefix$srcdir
14320 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14321 esac
14322 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14325 case $ac_mode in
14328 # CONFIG_FILE
14331 case $INSTALL in
14332 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14333 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14334 esac
14335 _ACEOF
14337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14338 # If the template does not know about datarootdir, expand it.
14339 # FIXME: This hack should be removed a few years after 2.60.
14340 ac_datarootdir_hack=; ac_datarootdir_seen=
14342 ac_sed_dataroot='
14343 /datarootdir/ {
14347 /@datadir@/p
14348 /@docdir@/p
14349 /@infodir@/p
14350 /@localedir@/p
14351 /@mandir@/p
14353 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14354 *datarootdir*) ac_datarootdir_seen=yes;;
14355 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14356 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14357 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14358 _ACEOF
14359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14360 ac_datarootdir_hack='
14361 s&@datadir@&$datadir&g
14362 s&@docdir@&$docdir&g
14363 s&@infodir@&$infodir&g
14364 s&@localedir@&$localedir&g
14365 s&@mandir@&$mandir&g
14366 s&\\\${datarootdir}&$datarootdir&g' ;;
14367 esac
14368 _ACEOF
14370 # Neutralize VPATH when `$srcdir' = `.'.
14371 # Shell code in configure.ac might set extrasub.
14372 # FIXME: do we really want to maintain this feature?
14373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14374 ac_sed_extra="$ac_vpsub
14375 $extrasub
14376 _ACEOF
14377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14380 s|@configure_input@|$ac_sed_conf_input|;t t
14381 s&@top_builddir@&$ac_top_builddir_sub&;t t
14382 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14383 s&@srcdir@&$ac_srcdir&;t t
14384 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14385 s&@top_srcdir@&$ac_top_srcdir&;t t
14386 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14387 s&@builddir@&$ac_builddir&;t t
14388 s&@abs_builddir@&$ac_abs_builddir&;t t
14389 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14390 s&@INSTALL@&$ac_INSTALL&;t t
14391 $ac_datarootdir_hack
14393 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14394 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14395 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14396 { (exit 1); exit 1; }; }
14398 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14399 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14400 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14401 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14402 which seems to be undefined. Please make sure it is defined." >&5
14403 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14404 which seems to be undefined. Please make sure it is defined." >&2;}
14406 rm -f "$tmp/stdin"
14407 case $ac_file in
14408 -) cat "$tmp/out" && rm -f "$tmp/out";;
14409 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14410 esac \
14411 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14412 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14413 { (exit 1); exit 1; }; }
14417 # CONFIG_HEADER
14419 if test x"$ac_file" != x-; then
14421 $as_echo "/* $configure_input */" \
14422 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14423 } >"$tmp/config.h" \
14424 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14425 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14426 { (exit 1); exit 1; }; }
14427 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14428 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14429 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14430 else
14431 rm -f "$ac_file"
14432 mv "$tmp/config.h" "$ac_file" \
14433 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14434 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14435 { (exit 1); exit 1; }; }
14437 else
14438 $as_echo "/* $configure_input */" \
14439 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14440 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14441 $as_echo "$as_me: error: could not create -" >&2;}
14442 { (exit 1); exit 1; }; }
14444 # Compute "$ac_file"'s index in $config_headers.
14445 _am_stamp_count=1
14446 for _am_header in $config_headers :; do
14447 case $_am_header in
14448 "$ac_file" | "$ac_file":* )
14449 break ;;
14451 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14452 esac
14453 done
14454 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
14455 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14456 X"$ac_file" : 'X\(//\)[^/]' \| \
14457 X"$ac_file" : 'X\(//\)$' \| \
14458 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14459 $as_echo X"$ac_file" |
14460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14461 s//\1/
14464 /^X\(\/\/\)[^/].*/{
14465 s//\1/
14468 /^X\(\/\/\)$/{
14469 s//\1/
14472 /^X\(\/\).*/{
14473 s//\1/
14476 s/.*/./; q'`/stamp-h$_am_stamp_count
14479 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14480 $as_echo "$as_me: executing $ac_file commands" >&6;}
14482 esac
14485 case $ac_file$ac_mode in
14486 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14487 # Strip MF so we end up with the name of the file.
14488 mf=`echo "$mf" | sed -e 's/:.*$//'`
14489 # Check whether this is an Automake generated Makefile or not.
14490 # We used to match only the files named `Makefile.in', but
14491 # some people rename them; so instead we look at the file content.
14492 # Grep'ing the first line is not enough: some people post-process
14493 # each Makefile.in and add a new line on top of each file to say so.
14494 # So let's grep whole file.
14495 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14496 dirpart=`$as_dirname -- "$mf" ||
14497 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14498 X"$mf" : 'X\(//\)[^/]' \| \
14499 X"$mf" : 'X\(//\)$' \| \
14500 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14501 $as_echo X"$mf" |
14502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14503 s//\1/
14506 /^X\(\/\/\)[^/].*/{
14507 s//\1/
14510 /^X\(\/\/\)$/{
14511 s//\1/
14514 /^X\(\/\).*/{
14515 s//\1/
14518 s/.*/./; q'`
14519 else
14520 continue
14522 # Extract the definition of DEPDIR, am__include, and am__quote
14523 # from the Makefile without running `make'.
14524 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14525 test -z "$DEPDIR" && continue
14526 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14527 test -z "am__include" && continue
14528 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14529 # When using ansi2knr, U may be empty or an underscore; expand it
14530 U=`sed -n 's/^U = //p' < "$mf"`
14531 # Find all dependency output files, they are included files with
14532 # $(DEPDIR) in their names. We invoke sed twice because it is the
14533 # simplest approach to changing $(DEPDIR) to its actual value in the
14534 # expansion.
14535 for file in `sed -n "
14536 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14537 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14538 # Make sure the directory exists.
14539 test -f "$dirpart/$file" && continue
14540 fdir=`$as_dirname -- "$file" ||
14541 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14542 X"$file" : 'X\(//\)[^/]' \| \
14543 X"$file" : 'X\(//\)$' \| \
14544 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14545 $as_echo X"$file" |
14546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14547 s//\1/
14550 /^X\(\/\/\)[^/].*/{
14551 s//\1/
14554 /^X\(\/\/\)$/{
14555 s//\1/
14558 /^X\(\/\).*/{
14559 s//\1/
14562 s/.*/./; q'`
14563 { as_dir=$dirpart/$fdir
14564 case $as_dir in #(
14565 -*) as_dir=./$as_dir;;
14566 esac
14567 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14568 as_dirs=
14569 while :; do
14570 case $as_dir in #(
14571 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14572 *) as_qdir=$as_dir;;
14573 esac
14574 as_dirs="'$as_qdir' $as_dirs"
14575 as_dir=`$as_dirname -- "$as_dir" ||
14576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14577 X"$as_dir" : 'X\(//\)[^/]' \| \
14578 X"$as_dir" : 'X\(//\)$' \| \
14579 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14580 $as_echo X"$as_dir" |
14581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14582 s//\1/
14585 /^X\(\/\/\)[^/].*/{
14586 s//\1/
14589 /^X\(\/\/\)$/{
14590 s//\1/
14593 /^X\(\/\).*/{
14594 s//\1/
14597 s/.*/./; q'`
14598 test -d "$as_dir" && break
14599 done
14600 test -z "$as_dirs" || eval "mkdir $as_dirs"
14601 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14602 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14603 { (exit 1); exit 1; }; }; }
14604 # echo "creating $dirpart/$file"
14605 echo '# dummy' > "$dirpart/$file"
14606 done
14607 done
14609 "libtool":C)
14611 # See if we are running on zsh, and set the options which allow our
14612 # commands through without removal of \ escapes.
14613 if test -n "${ZSH_VERSION+set}" ; then
14614 setopt NO_GLOB_SUBST
14617 cfgfile="${ofile}T"
14618 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14619 $RM "$cfgfile"
14621 cat <<_LT_EOF >> "$cfgfile"
14622 #! $SHELL
14624 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14625 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14626 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14627 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14629 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14630 # 2006, 2007, 2008 Free Software Foundation, Inc.
14631 # Written by Gordon Matzigkeit, 1996
14633 # This file is part of GNU Libtool.
14635 # GNU Libtool is free software; you can redistribute it and/or
14636 # modify it under the terms of the GNU General Public License as
14637 # published by the Free Software Foundation; either version 2 of
14638 # the License, or (at your option) any later version.
14640 # As a special exception to the GNU General Public License,
14641 # if you distribute this file as part of a program or library that
14642 # is built using GNU Libtool, you may include this file under the
14643 # same distribution terms that you use for the rest of that program.
14645 # GNU Libtool is distributed in the hope that it will be useful,
14646 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14647 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14648 # GNU General Public License for more details.
14650 # You should have received a copy of the GNU General Public License
14651 # along with GNU Libtool; see the file COPYING. If not, a copy
14652 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14653 # obtained by writing to the Free Software Foundation, Inc.,
14654 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14657 # The names of the tagged configurations supported by this script.
14658 available_tags=""
14660 # ### BEGIN LIBTOOL CONFIG
14662 # Which release of libtool.m4 was used?
14663 macro_version=$macro_version
14664 macro_revision=$macro_revision
14666 # Whether or not to build shared libraries.
14667 build_libtool_libs=$enable_shared
14669 # Whether or not to build static libraries.
14670 build_old_libs=$enable_static
14672 # What type of objects to build.
14673 pic_mode=$pic_mode
14675 # Whether or not to optimize for fast installation.
14676 fast_install=$enable_fast_install
14678 # The host system.
14679 host_alias=$host_alias
14680 host=$host
14681 host_os=$host_os
14683 # The build system.
14684 build_alias=$build_alias
14685 build=$build
14686 build_os=$build_os
14688 # A sed program that does not truncate output.
14689 SED=$lt_SED
14691 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14692 Xsed="\$SED -e 1s/^X//"
14694 # A grep program that handles long lines.
14695 GREP=$lt_GREP
14697 # An ERE matcher.
14698 EGREP=$lt_EGREP
14700 # A literal string matcher.
14701 FGREP=$lt_FGREP
14703 # A BSD- or MS-compatible name lister.
14704 NM=$lt_NM
14706 # Whether we need soft or hard links.
14707 LN_S=$lt_LN_S
14709 # What is the maximum length of a command?
14710 max_cmd_len=$max_cmd_len
14712 # Object file suffix (normally "o").
14713 objext=$ac_objext
14715 # Executable file suffix (normally "").
14716 exeext=$exeext
14718 # whether the shell understands "unset".
14719 lt_unset=$lt_unset
14721 # turn spaces into newlines.
14722 SP2NL=$lt_lt_SP2NL
14724 # turn newlines into spaces.
14725 NL2SP=$lt_lt_NL2SP
14727 # How to create reloadable object files.
14728 reload_flag=$lt_reload_flag
14729 reload_cmds=$lt_reload_cmds
14731 # An object symbol dumper.
14732 OBJDUMP=$lt_OBJDUMP
14734 # Method to check whether dependent libraries are shared objects.
14735 deplibs_check_method=$lt_deplibs_check_method
14737 # Command to use when deplibs_check_method == "file_magic".
14738 file_magic_cmd=$lt_file_magic_cmd
14740 # The archiver.
14741 AR=$lt_AR
14742 AR_FLAGS=$lt_AR_FLAGS
14744 # A symbol stripping program.
14745 STRIP=$lt_STRIP
14747 # Commands used to install an old-style archive.
14748 RANLIB=$lt_RANLIB
14749 old_postinstall_cmds=$lt_old_postinstall_cmds
14750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14752 # A C compiler.
14753 LTCC=$lt_CC
14755 # LTCC compiler flags.
14756 LTCFLAGS=$lt_CFLAGS
14758 # Take the output of nm and produce a listing of raw symbols and C names.
14759 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14761 # Transform the output of nm in a proper C declaration.
14762 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14764 # Transform the output of nm in a C name address pair.
14765 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14767 # Transform the output of nm in a C name address pair when lib prefix is needed.
14768 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14770 # The name of the directory that contains temporary libtool files.
14771 objdir=$objdir
14773 # Shell to use when invoking shell scripts.
14774 SHELL=$lt_SHELL
14776 # An echo program that does not interpret backslashes.
14777 ECHO=$lt_ECHO
14779 # Used to examine libraries when file_magic_cmd begins with "file".
14780 MAGIC_CMD=$MAGIC_CMD
14782 # Must we lock files when doing compilation?
14783 need_locks=$lt_need_locks
14785 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14786 DSYMUTIL=$lt_DSYMUTIL
14788 # Tool to change global to local symbols on Mac OS X.
14789 NMEDIT=$lt_NMEDIT
14791 # Tool to manipulate fat objects and archives on Mac OS X.
14792 LIPO=$lt_LIPO
14794 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14795 OTOOL=$lt_OTOOL
14797 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14798 OTOOL64=$lt_OTOOL64
14800 # Old archive suffix (normally "a").
14801 libext=$libext
14803 # Shared library suffix (normally ".so").
14804 shrext_cmds=$lt_shrext_cmds
14806 # The commands to extract the exported symbol list from a shared archive.
14807 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14809 # Variables whose values should be saved in libtool wrapper scripts and
14810 # restored at link time.
14811 variables_saved_for_relink=$lt_variables_saved_for_relink
14813 # Do we need the "lib" prefix for modules?
14814 need_lib_prefix=$need_lib_prefix
14816 # Do we need a version for libraries?
14817 need_version=$need_version
14819 # Library versioning type.
14820 version_type=$version_type
14822 # Shared library runtime path variable.
14823 runpath_var=$runpath_var
14825 # Shared library path variable.
14826 shlibpath_var=$shlibpath_var
14828 # Is shlibpath searched before the hard-coded library search path?
14829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14831 # Format of library name prefix.
14832 libname_spec=$lt_libname_spec
14834 # List of archive names. First name is the real one, the rest are links.
14835 # The last name is the one that the linker finds with -lNAME
14836 library_names_spec=$lt_library_names_spec
14838 # The coded name of the library, if different from the real name.
14839 soname_spec=$lt_soname_spec
14841 # Command to use after installation of a shared archive.
14842 postinstall_cmds=$lt_postinstall_cmds
14844 # Command to use after uninstallation of a shared archive.
14845 postuninstall_cmds=$lt_postuninstall_cmds
14847 # Commands used to finish a libtool library installation in a directory.
14848 finish_cmds=$lt_finish_cmds
14850 # As "finish_cmds", except a single script fragment to be evaled but
14851 # not shown.
14852 finish_eval=$lt_finish_eval
14854 # Whether we should hardcode library paths into libraries.
14855 hardcode_into_libs=$hardcode_into_libs
14857 # Compile-time system search path for libraries.
14858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14860 # Run-time system search path for libraries.
14861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14863 # Whether dlopen is supported.
14864 dlopen_support=$enable_dlopen
14866 # Whether dlopen of programs is supported.
14867 dlopen_self=$enable_dlopen_self
14869 # Whether dlopen of statically linked programs is supported.
14870 dlopen_self_static=$enable_dlopen_self_static
14872 # Commands to strip libraries.
14873 old_striplib=$lt_old_striplib
14874 striplib=$lt_striplib
14877 # The linker used to build libraries.
14878 LD=$lt_LD
14880 # Commands used to build an old-style archive.
14881 old_archive_cmds=$lt_old_archive_cmds
14883 # A language specific compiler.
14884 CC=$lt_compiler
14886 # Is the compiler the GNU compiler?
14887 with_gcc=$GCC
14889 # Compiler flag to turn off builtin functions.
14890 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14892 # How to pass a linker flag through the compiler.
14893 wl=$lt_lt_prog_compiler_wl
14895 # Additional compiler flags for building library objects.
14896 pic_flag=$lt_lt_prog_compiler_pic
14898 # Compiler flag to prevent dynamic linking.
14899 link_static_flag=$lt_lt_prog_compiler_static
14901 # Does compiler simultaneously support -c and -o options?
14902 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14904 # Whether or not to add -lc for building shared libraries.
14905 build_libtool_need_lc=$archive_cmds_need_lc
14907 # Whether or not to disallow shared libs when runtime libs are static.
14908 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14910 # Compiler flag to allow reflexive dlopens.
14911 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14913 # Compiler flag to generate shared objects directly from archives.
14914 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14916 # Whether the compiler copes with passing no objects directly.
14917 compiler_needs_object=$lt_compiler_needs_object
14919 # Create an old-style archive from a shared archive.
14920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14922 # Create a temporary old-style archive to link instead of a shared archive.
14923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14925 # Commands used to build a shared archive.
14926 archive_cmds=$lt_archive_cmds
14927 archive_expsym_cmds=$lt_archive_expsym_cmds
14929 # Commands used to build a loadable module if different from building
14930 # a shared archive.
14931 module_cmds=$lt_module_cmds
14932 module_expsym_cmds=$lt_module_expsym_cmds
14934 # Whether we are building with GNU ld or not.
14935 with_gnu_ld=$lt_with_gnu_ld
14937 # Flag that allows shared libraries with undefined symbols to be built.
14938 allow_undefined_flag=$lt_allow_undefined_flag
14940 # Flag that enforces no undefined symbols.
14941 no_undefined_flag=$lt_no_undefined_flag
14943 # Flag to hardcode \$libdir into a binary during linking.
14944 # This must work even if \$libdir does not exist
14945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14947 # If ld is used when linking, flag to hardcode \$libdir into a binary
14948 # during linking. This must work even if \$libdir does not exist.
14949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14951 # Whether we need a single "-rpath" flag with a separated argument.
14952 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14954 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14955 # DIR into the resulting binary.
14956 hardcode_direct=$hardcode_direct
14958 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14959 # DIR into the resulting binary and the resulting library dependency is
14960 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14961 # library is relocated.
14962 hardcode_direct_absolute=$hardcode_direct_absolute
14964 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14965 # into the resulting binary.
14966 hardcode_minus_L=$hardcode_minus_L
14968 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14969 # into the resulting binary.
14970 hardcode_shlibpath_var=$hardcode_shlibpath_var
14972 # Set to "yes" if building a shared library automatically hardcodes DIR
14973 # into the library and all subsequent libraries and executables linked
14974 # against it.
14975 hardcode_automatic=$hardcode_automatic
14977 # Set to yes if linker adds runtime paths of dependent libraries
14978 # to runtime path list.
14979 inherit_rpath=$inherit_rpath
14981 # Whether libtool must link a program against all its dependency libraries.
14982 link_all_deplibs=$link_all_deplibs
14984 # Fix the shell variable \$srcfile for the compiler.
14985 fix_srcfile_path=$lt_fix_srcfile_path
14987 # Set to "yes" if exported symbols are required.
14988 always_export_symbols=$always_export_symbols
14990 # The commands to list exported symbols.
14991 export_symbols_cmds=$lt_export_symbols_cmds
14993 # Symbols that should not be listed in the preloaded symbols.
14994 exclude_expsyms=$lt_exclude_expsyms
14996 # Symbols that must always be exported.
14997 include_expsyms=$lt_include_expsyms
14999 # Commands necessary for linking programs (against libraries) with templates.
15000 prelink_cmds=$lt_prelink_cmds
15002 # Specify filename containing input files.
15003 file_list_spec=$lt_file_list_spec
15005 # How to hardcode a shared library path into an executable.
15006 hardcode_action=$hardcode_action
15008 # ### END LIBTOOL CONFIG
15010 _LT_EOF
15012 case $host_os in
15013 aix3*)
15014 cat <<\_LT_EOF >> "$cfgfile"
15015 # AIX sometimes has problems with the GCC collect2 program. For some
15016 # reason, if we set the COLLECT_NAMES environment variable, the problems
15017 # vanish in a puff of smoke.
15018 if test "X${COLLECT_NAMES+set}" != Xset; then
15019 COLLECT_NAMES=
15020 export COLLECT_NAMES
15022 _LT_EOF
15024 esac
15027 ltmain="$ac_aux_dir/ltmain.sh"
15030 # We use sed instead of cat because bash on DJGPP gets confused if
15031 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15032 # text mode, it properly converts lines to CR/LF. This bash problem
15033 # is reportedly fixed, but why not run on old versions too?
15034 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15035 || (rm -f "$cfgfile"; exit 1)
15037 case $xsi_shell in
15038 yes)
15039 cat << \_LT_EOF >> "$cfgfile"
15041 # func_dirname file append nondir_replacement
15042 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15043 # otherwise set result to NONDIR_REPLACEMENT.
15044 func_dirname ()
15046 case ${1} in
15047 */*) func_dirname_result="${1%/*}${2}" ;;
15048 * ) func_dirname_result="${3}" ;;
15049 esac
15052 # func_basename file
15053 func_basename ()
15055 func_basename_result="${1##*/}"
15058 # func_dirname_and_basename file append nondir_replacement
15059 # perform func_basename and func_dirname in a single function
15060 # call:
15061 # dirname: Compute the dirname of FILE. If nonempty,
15062 # add APPEND to the result, otherwise set result
15063 # to NONDIR_REPLACEMENT.
15064 # value returned in "$func_dirname_result"
15065 # basename: Compute filename of FILE.
15066 # value retuned in "$func_basename_result"
15067 # Implementation must be kept synchronized with func_dirname
15068 # and func_basename. For efficiency, we do not delegate to
15069 # those functions but instead duplicate the functionality here.
15070 func_dirname_and_basename ()
15072 case ${1} in
15073 */*) func_dirname_result="${1%/*}${2}" ;;
15074 * ) func_dirname_result="${3}" ;;
15075 esac
15076 func_basename_result="${1##*/}"
15079 # func_stripname prefix suffix name
15080 # strip PREFIX and SUFFIX off of NAME.
15081 # PREFIX and SUFFIX must not contain globbing or regex special
15082 # characters, hashes, percent signs, but SUFFIX may contain a leading
15083 # dot (in which case that matches only a dot).
15084 func_stripname ()
15086 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15087 # positional parameters, so assign one to ordinary parameter first.
15088 func_stripname_result=${3}
15089 func_stripname_result=${func_stripname_result#"${1}"}
15090 func_stripname_result=${func_stripname_result%"${2}"}
15093 # func_opt_split
15094 func_opt_split ()
15096 func_opt_split_opt=${1%%=*}
15097 func_opt_split_arg=${1#*=}
15100 # func_lo2o object
15101 func_lo2o ()
15103 case ${1} in
15104 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15105 *) func_lo2o_result=${1} ;;
15106 esac
15109 # func_xform libobj-or-source
15110 func_xform ()
15112 func_xform_result=${1%.*}.lo
15115 # func_arith arithmetic-term...
15116 func_arith ()
15118 func_arith_result=$(( $* ))
15121 # func_len string
15122 # STRING may not start with a hyphen.
15123 func_len ()
15125 func_len_result=${#1}
15128 _LT_EOF
15130 *) # Bourne compatible functions.
15131 cat << \_LT_EOF >> "$cfgfile"
15133 # func_dirname file append nondir_replacement
15134 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15135 # otherwise set result to NONDIR_REPLACEMENT.
15136 func_dirname ()
15138 # Extract subdirectory from the argument.
15139 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15140 if test "X$func_dirname_result" = "X${1}"; then
15141 func_dirname_result="${3}"
15142 else
15143 func_dirname_result="$func_dirname_result${2}"
15147 # func_basename file
15148 func_basename ()
15150 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15154 # func_stripname prefix suffix name
15155 # strip PREFIX and SUFFIX off of NAME.
15156 # PREFIX and SUFFIX must not contain globbing or regex special
15157 # characters, hashes, percent signs, but SUFFIX may contain a leading
15158 # dot (in which case that matches only a dot).
15159 # func_strip_suffix prefix name
15160 func_stripname ()
15162 case ${2} in
15163 .*) func_stripname_result=`$ECHO "X${3}" \
15164 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15165 *) func_stripname_result=`$ECHO "X${3}" \
15166 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15167 esac
15170 # sed scripts:
15171 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15172 my_sed_long_arg='1s/^-[^=]*=//'
15174 # func_opt_split
15175 func_opt_split ()
15177 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15178 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15181 # func_lo2o object
15182 func_lo2o ()
15184 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15187 # func_xform libobj-or-source
15188 func_xform ()
15190 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15193 # func_arith arithmetic-term...
15194 func_arith ()
15196 func_arith_result=`expr "$@"`
15199 # func_len string
15200 # STRING may not start with a hyphen.
15201 func_len ()
15203 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15206 _LT_EOF
15207 esac
15209 case $lt_shell_append in
15210 yes)
15211 cat << \_LT_EOF >> "$cfgfile"
15213 # func_append var value
15214 # Append VALUE to the end of shell variable VAR.
15215 func_append ()
15217 eval "$1+=\$2"
15219 _LT_EOF
15222 cat << \_LT_EOF >> "$cfgfile"
15224 # func_append var value
15225 # Append VALUE to the end of shell variable VAR.
15226 func_append ()
15228 eval "$1=\$$1\$2"
15231 _LT_EOF
15233 esac
15236 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15237 || (rm -f "$cfgfile"; exit 1)
15239 mv -f "$cfgfile" "$ofile" ||
15240 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15241 chmod +x "$ofile"
15244 "genversion.sh":F) chmod +x genversion.sh ;;
15245 "version.h":C) echo '#define CLOOG_HEAD "'`./genversion.sh`'"' > version.h ;;
15246 "doc/gitversion.texi":C) echo '@set VERSION '`./genversion.sh`'' > doc/gitversion.texi ;;
15248 esac
15249 done # for ac_tag
15252 { (exit 0); exit 0; }
15253 _ACEOF
15254 chmod +x $CONFIG_STATUS
15255 ac_clean_files=$ac_clean_files_save
15257 test $ac_write_fail = 0 ||
15258 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15259 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15260 { (exit 1); exit 1; }; }
15263 # configure is writing to config.log, and then calls config.status.
15264 # config.status does its own redirection, appending to config.log.
15265 # Unfortunately, on DOS this fails, as config.log is still kept open
15266 # by configure, so config.status won't be able to write to it; its
15267 # output is simply discarded. So we exec the FD to /dev/null,
15268 # effectively closing config.log, so it can be properly (re)opened and
15269 # appended to by config.status. When coming back to configure, we
15270 # need to make the FD available again.
15271 if test "$no_create" != yes; then
15272 ac_cs_success=:
15273 ac_config_status_args=
15274 test "$silent" = yes &&
15275 ac_config_status_args="$ac_config_status_args --quiet"
15276 exec 5>/dev/null
15277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15278 exec 5>>config.log
15279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15280 # would make configure fail if this is the last instruction.
15281 $ac_cs_success || { (exit 1); exit 1; }
15283 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15284 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15285 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15290 echo " /*-----------------------------------------------*"
15291 echo " * CLooG configuration is OK *"
15292 echo " *-----------------------------------------------*/"
15293 echo "It appears that your system is OK to start CLooG compilation. You need"
15294 echo "now to type \"make\". After compilation, you should check CLooG by typing"
15295 echo "\"make check\". If no problem occur, you can type \"make uninstall\" if"
15296 echo "you are upgrading an old version. Lastly type \"make install\" to install"
15297 echo "CLooG on your system (log as root if necessary)."