2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for salome 0.1.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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.
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
27 # Remove one level of quotation (which was required for Make).
28 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
33 if test "X$1" = X--no-reexec; then
34 # Discard the --no-reexec flag, and continue.
36 elif test "X$1" = X--fallback-echo; then
37 # Avoid inline document here, it may be left over
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40 # Yippee, $echo works!
43 # Restart under the correct shell.
44 exec $SHELL "$0" --no-reexec ${1+"$@"}
47 if test "X$1" = X--fallback-echo; then
48 # used as fallback echo
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66 echo_test_string="`eval $cmd`" &&
67 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76 test "X$echo_testing_string" = "X$echo_test_string"; then
79 # The Solaris, AIX, and Digital Unix default echo programs unquote
80 # backslashes. This makes it impossible to quote backslashes using
81 # echo "$something" | sed 's/\\/\\\\/g'
83 # So, first we look for a working echo in the user's PATH.
85 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86 for dir in $PATH /usr/ucb; do
87 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90 test "X$echo_testing_string" = "X$echo_test_string"; then
97 if test "X$echo" = Xecho; then
98 # We didn't find a better echo, so look for alternatives.
99 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101 test "X$echo_testing_string" = "X$echo_test_string"; then
102 # This shell has a builtin print -r that does the trick.
104 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105 test "X$CONFIG_SHELL" != X/bin/ksh; then
106 # If we have ksh, try running configure again with it.
107 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108 export ORIGINAL_CONFIG_SHELL
109 CONFIG_SHELL=/bin/ksh
111 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
115 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117 test "X$echo_testing_string" = "X$echo_test_string"; then
120 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121 test "X$echo_testing_string" = 'X\t' &&
122 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123 test "X$echo_testing_string" = "X$echo_test_string"; then
124 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
126 SHELL="$CONFIG_SHELL"
128 echo="$CONFIG_SHELL $0 --fallback-echo"
129 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130 test "X$echo_testing_string" = 'X\t' &&
131 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132 test "X$echo_testing_string" = "X$echo_test_string"; then
133 echo="$CONFIG_SHELL $0 --fallback-echo"
135 # maybe with a smaller string...
138 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
146 if test "$prev" != 'sed 50q "$0"'; then
147 echo_test_string=`eval $prev`
148 export echo_test_string
149 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
151 # Oops. We lost completely, so just stick with echo.
160 # Copy echo and quote the copy suitably for passing to libtool from
161 # the Makefile, instead of quoting the original, which is used later.
163 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
169 if expr a : '\(a\)' >/dev/null 2>&1; then
176 ## --------------------- ##
177 ## M4sh Initialization. ##
178 ## --------------------- ##
180 # Be Bourne compatible
181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
184 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
189 # Support unset when possible.
190 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
196 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197 { $as_unset LANG || test "${LANG+set}" != set; } ||
198 { LANG=C; export LANG; }
199 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201 { LC_ALL=C; export LC_ALL; }
202 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204 { LC_TIME=C; export LC_TIME; }
205 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207 { LC_CTYPE=C; export LC_CTYPE; }
208 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210 { LANGUAGE=C; export LANGUAGE; }
211 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213 { LC_COLLATE=C; export LC_COLLATE; }
214 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216 { LC_NUMERIC=C; export LC_NUMERIC; }
217 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219 { LC_MESSAGES=C; export LC_MESSAGES; }
222 # Name of the executable.
223 as_me=`(basename "$0") 2>/dev/null ||
224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225 X"$0" : 'X\(//\)$' \| \
226 X"$0" : 'X\(/\)$' \| \
227 . : '\(.\)' 2>/dev/null ||
229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230 /^X\/\(\/\/\)$/{ s//\1/; q; }
231 /^X\/\(\/\).*/{ s//\1/; q; }
234 # PATH needs CR, and LINENO needs CR and PATH.
235 # Avoid depending upon Character Ranges.
236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239 as_cr_digits='0123456789'
240 as_cr_alnum=$as_cr_Letters$as_cr_digits
242 # The user is always right.
243 if test "${PATH_SEPARATOR+set}" != set; then
244 echo "#! /bin/sh" >conftest.sh
245 echo "exit 0" >>conftest.sh
247 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
258 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259 test "x$as_lineno_1" != "x$as_lineno_2" &&
260 test "x$as_lineno_3" = "x$as_lineno_2" || {
261 # Find who we are. Look in the path if we contain no path at all
264 *[\\/]* ) as_myself=$0 ;;
265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
269 test -z "$as_dir" && as_dir=.
270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
275 # We did not find ourselves, most probably we were run as `sh COMMAND'
276 # in which case we are not to be found in the path.
277 if test "x$as_myself" = x; then
280 if test ! -f "$as_myself"; then
281 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282 { (exit 1); exit 1; }; }
284 case $CONFIG_SHELL in
286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
290 test -z "$as_dir" && as_dir=.
291 for as_base in sh bash ksh sh5; do
294 if ("$as_dir/$as_base" -c '
297 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298 test "x$as_lineno_1" != "x$as_lineno_2" &&
299 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
300 CONFIG_SHELL=$as_dir/$as_base
302 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
310 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311 # uniformly replaced by the line number. The first 'sed' inserts a
312 # line-number line before each line; the second 'sed' does the real
313 # work. The second script uses 'N' to pair each line-number line
314 # with the numbered line, and appends trailing '-' during
315 # substitution so that $LINENO is not a special case at line end.
316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
318 sed '=' <$as_myself |
323 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
326 s,^['$as_cr_digits']*\n,,
328 chmod +x $as_me.lineno ||
329 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330 { (exit 1); exit 1; }; }
332 # Don't try to exec as it changes $[0], causing all sort of problems
333 # (the dirname of $[0] is not the place where we might find the
334 # original and so on. Autoconf is especially sensible to this).
336 # Exit status is that of the last command.
341 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342 *c*,-n*) ECHO_N= ECHO_C='
344 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
348 if expr a : '\(a\)' >/dev/null 2>&1; then
354 rm -f conf$$ conf$$.exe conf$$.file
356 if ln -s conf$$.file conf$$ 2>/dev/null; then
357 # We could just check for DJGPP; but this test a) works b) is more generic
358 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359 if test -f conf$$.exe; then
360 # Don't use ln at all; we don't have any links
365 elif ln conf$$.file conf$$ 2>/dev/null; then
370 rm -f conf$$ conf$$.exe conf$$.file
372 as_executable_p="test -f"
374 # Sed expression to map a string onto a valid CPP name.
375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
377 # Sed expression to map a string onto a valid variable name.
378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
382 # We need space, tab and new line, in precisely that order.
388 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
392 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393 # so uname gets run too.
394 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401 ac_default_prefix=/usr/local
406 SHELL=${CONFIG_SHELL-/bin/sh}
408 # Maximum number of lines to put in a shell here document.
409 # This variable seems obsolete. It should probably be removed, and
410 # only ac_max_sed_lines should be used.
411 : ${ac_max_here_lines=38}
413 # Identity of this package.
414 PACKAGE_NAME='salome'
415 PACKAGE_TARNAME='salome'
416 PACKAGE_VERSION='0.1'
417 PACKAGE_STRING='salome 0.1'
421 # Factoring default headers for most tests.
422 ac_includes_default="\
425 # include <sys/types.h>
428 # include <sys/stat.h>
439 # if !STDC_HEADERS && HAVE_MEMORY_H
445 # include <strings.h>
448 # include <inttypes.h>
459 # Initialize some variables set by options.
461 ac_init_version=false
462 # The variables have the same names as the options, with
463 # dashes changed to underlines.
471 program_transform_name=s,x,x,
479 # Installation directory options.
480 # These are left unexpanded so users can "make install exec_prefix=/foo"
481 # and all the variables that are supposed to be based on exec_prefix
482 # by default will actually change.
483 # Use braces instead of parens because sh, perl, etc. also accept them.
484 bindir='${exec_prefix}/bin'
485 sbindir='${exec_prefix}/sbin'
486 libexecdir='${exec_prefix}/libexec'
487 datadir='${prefix}/share'
488 sysconfdir='${prefix}/etc'
489 sharedstatedir='${prefix}/com'
490 localstatedir='${prefix}/var'
491 libdir='${exec_prefix}/lib'
492 includedir='${prefix}/include'
493 oldincludedir='/usr/include'
494 infodir='${prefix}/info'
495 mandir='${prefix}/man'
500 # If the previous option needs an argument, assign it.
501 if test -n "$ac_prev"; then
502 eval "$ac_prev=\$ac_option"
507 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
509 # Accept the important Cygnus configure options, so we can diagnose typos.
513 -bindir | --bindir | --bindi | --bind | --bin | --bi)
515 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
518 -build | --build | --buil | --bui | --bu)
519 ac_prev=build_alias ;;
520 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
521 build_alias=$ac_optarg ;;
523 -cache-file | --cache-file | --cache-fil | --cache-fi \
524 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
525 ac_prev=cache_file ;;
526 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
527 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
528 cache_file=$ac_optarg ;;
531 cache_file=config.cache ;;
533 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
535 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
537 datadir=$ac_optarg ;;
539 -disable-* | --disable-*)
540 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
541 # Reject names that are not valid shell variable names.
542 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
543 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
544 { (exit 1); exit 1; }; }
545 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
546 eval "enable_$ac_feature=no" ;;
548 -enable-* | --enable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 eval "enable_$ac_feature='$ac_optarg'" ;;
561 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563 | --exec | --exe | --ex)
564 ac_prev=exec_prefix ;;
565 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567 | --exec=* | --exe=* | --ex=*)
568 exec_prefix=$ac_optarg ;;
570 -gas | --gas | --ga | --g)
571 # Obsolete; use --with-gas.
574 -help | --help | --hel | --he | -h)
576 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
577 ac_init_help=recursive ;;
578 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
579 ac_init_help=short ;;
581 -host | --host | --hos | --ho)
582 ac_prev=host_alias ;;
583 -host=* | --host=* | --hos=* | --ho=*)
584 host_alias=$ac_optarg ;;
586 -includedir | --includedir | --includedi | --included | --include \
587 | --includ | --inclu | --incl | --inc)
588 ac_prev=includedir ;;
589 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
590 | --includ=* | --inclu=* | --incl=* | --inc=*)
591 includedir=$ac_optarg ;;
593 -infodir | --infodir | --infodi | --infod | --info | --inf)
595 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
596 infodir=$ac_optarg ;;
598 -libdir | --libdir | --libdi | --libd)
600 -libdir=* | --libdir=* | --libdi=* | --libd=*)
603 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
604 | --libexe | --libex | --libe)
605 ac_prev=libexecdir ;;
606 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
607 | --libexe=* | --libex=* | --libe=*)
608 libexecdir=$ac_optarg ;;
610 -localstatedir | --localstatedir | --localstatedi | --localstated \
611 | --localstate | --localstat | --localsta | --localst \
612 | --locals | --local | --loca | --loc | --lo)
613 ac_prev=localstatedir ;;
614 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
615 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
616 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
617 localstatedir=$ac_optarg ;;
619 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
621 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
625 # Obsolete; use --without-fp.
628 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
629 | --no-cr | --no-c | -n)
632 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
633 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
636 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
637 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
638 | --oldin | --oldi | --old | --ol | --o)
639 ac_prev=oldincludedir ;;
640 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
641 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
642 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
643 oldincludedir=$ac_optarg ;;
645 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
647 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
650 -program-prefix | --program-prefix | --program-prefi | --program-pref \
651 | --program-pre | --program-pr | --program-p)
652 ac_prev=program_prefix ;;
653 -program-prefix=* | --program-prefix=* | --program-prefi=* \
654 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
655 program_prefix=$ac_optarg ;;
657 -program-suffix | --program-suffix | --program-suffi | --program-suff \
658 | --program-suf | --program-su | --program-s)
659 ac_prev=program_suffix ;;
660 -program-suffix=* | --program-suffix=* | --program-suffi=* \
661 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
662 program_suffix=$ac_optarg ;;
664 -program-transform-name | --program-transform-name \
665 | --program-transform-nam | --program-transform-na \
666 | --program-transform-n | --program-transform- \
667 | --program-transform | --program-transfor \
668 | --program-transfo | --program-transf \
669 | --program-trans | --program-tran \
670 | --progr-tra | --program-tr | --program-t)
671 ac_prev=program_transform_name ;;
672 -program-transform-name=* | --program-transform-name=* \
673 | --program-transform-nam=* | --program-transform-na=* \
674 | --program-transform-n=* | --program-transform-=* \
675 | --program-transform=* | --program-transfor=* \
676 | --program-transfo=* | --program-transf=* \
677 | --program-trans=* | --program-tran=* \
678 | --progr-tra=* | --program-tr=* | --program-t=*)
679 program_transform_name=$ac_optarg ;;
681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
682 | -silent | --silent | --silen | --sile | --sil)
685 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
687 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
689 sbindir=$ac_optarg ;;
691 -sharedstatedir | --sharedstatedir | --sharedstatedi \
692 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
693 | --sharedst | --shareds | --shared | --share | --shar \
695 ac_prev=sharedstatedir ;;
696 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
697 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
698 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
700 sharedstatedir=$ac_optarg ;;
702 -site | --site | --sit)
704 -site=* | --site=* | --sit=*)
707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
712 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
713 | --syscon | --sysco | --sysc | --sys | --sy)
714 ac_prev=sysconfdir ;;
715 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
716 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
717 sysconfdir=$ac_optarg ;;
719 -target | --target | --targe | --targ | --tar | --ta | --t)
720 ac_prev=target_alias ;;
721 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
722 target_alias=$ac_optarg ;;
724 -v | -verbose | --verbose | --verbos | --verbo | --verb)
727 -version | --version | --versio | --versi | --vers | -V)
731 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
732 # Reject names that are not valid shell variable names.
733 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
734 { echo "$as_me: error: invalid package name: $ac_package" >&2
735 { (exit 1); exit 1; }; }
736 ac_package=`echo $ac_package| sed 's/-/_/g'`
738 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
741 eval "with_$ac_package='$ac_optarg'" ;;
743 -without-* | --without-*)
744 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package | sed 's/-/_/g'`
750 eval "with_$ac_package=no" ;;
753 # Obsolete; use --with-x.
756 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
757 | --x-incl | --x-inc | --x-in | --x-i)
758 ac_prev=x_includes ;;
759 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
760 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
761 x_includes=$ac_optarg ;;
763 -x-libraries | --x-libraries | --x-librarie | --x-librari \
764 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
765 ac_prev=x_libraries ;;
766 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
767 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
768 x_libraries=$ac_optarg ;;
770 -*) { echo "$as_me: error: unrecognized option: $ac_option
771 Try \`$0 --help' for more information." >&2
772 { (exit 1); exit 1; }; }
776 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
777 # Reject names that are not valid shell variable names.
778 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
779 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
780 { (exit 1); exit 1; }; }
781 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
782 eval "$ac_envvar='$ac_optarg'"
786 # FIXME: should be removed in autoconf 3.0.
787 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
788 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
789 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
790 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796 if test -n "$ac_prev"; then
797 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
798 { echo "$as_me: error: missing argument to $ac_option" >&2
799 { (exit 1); exit 1; }; }
802 # Be sure to have absolute paths.
803 for ac_var in exec_prefix prefix
805 eval ac_val=$`echo $ac_var`
807 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
808 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
809 { (exit 1); exit 1; }; };;
813 # Be sure to have absolute paths.
814 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
815 localstatedir libdir includedir oldincludedir infodir mandir
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # There might be people who depend on the old broken behavior: `$host'
826 # used to hold the argument of --host etc.
827 # FIXME: To remove some day.
832 # FIXME: To remove some day.
833 if test "x$host_alias" != x; then
834 if test "x$build_alias" = x; then
835 cross_compiling=maybe
836 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
837 If a cross compiler is detected then cross compile mode will be used." >&2
838 elif test "x$build_alias" != "x$host_alias"; then
844 test -n "$host_alias" && ac_tool_prefix=$host_alias-
846 test "$silent" = yes && exec 6>/dev/null
849 # Find the source files, if location was not specified.
850 if test -z "$srcdir"; then
851 ac_srcdir_defaulted=yes
852 # Try the directory containing this script, then its parent.
853 ac_confdir=`(dirname "$0") 2>/dev/null ||
854 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
855 X"$0" : 'X\(//\)[^/]' \| \
856 X"$0" : 'X\(//\)$' \| \
857 X"$0" : 'X\(/\)' \| \
858 . : '\(.\)' 2>/dev/null ||
860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
862 /^X\(\/\/\)$/{ s//\1/; q; }
863 /^X\(\/\).*/{ s//\1/; q; }
866 if test ! -r $srcdir/$ac_unique_file; then
870 ac_srcdir_defaulted=no
872 if test ! -r $srcdir/$ac_unique_file; then
873 if test "$ac_srcdir_defaulted" = yes; then
874 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
875 { (exit 1); exit 1; }; }
877 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
878 { (exit 1); exit 1; }; }
881 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
882 ac_env_build_alias_set=${build_alias+set}
883 ac_env_build_alias_value=$build_alias
884 ac_cv_env_build_alias_set=${build_alias+set}
885 ac_cv_env_build_alias_value=$build_alias
886 ac_env_host_alias_set=${host_alias+set}
887 ac_env_host_alias_value=$host_alias
888 ac_cv_env_host_alias_set=${host_alias+set}
889 ac_cv_env_host_alias_value=$host_alias
890 ac_env_target_alias_set=${target_alias+set}
891 ac_env_target_alias_value=$target_alias
892 ac_cv_env_target_alias_set=${target_alias+set}
893 ac_cv_env_target_alias_value=$target_alias
894 ac_env_CC_set=${CC+set}
896 ac_cv_env_CC_set=${CC+set}
897 ac_cv_env_CC_value=$CC
898 ac_env_CFLAGS_set=${CFLAGS+set}
899 ac_env_CFLAGS_value=$CFLAGS
900 ac_cv_env_CFLAGS_set=${CFLAGS+set}
901 ac_cv_env_CFLAGS_value=$CFLAGS
902 ac_env_LDFLAGS_set=${LDFLAGS+set}
903 ac_env_LDFLAGS_value=$LDFLAGS
904 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
905 ac_cv_env_LDFLAGS_value=$LDFLAGS
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CPP_set=${CPP+set}
911 ac_env_CPP_value=$CPP
912 ac_cv_env_CPP_set=${CPP+set}
913 ac_cv_env_CPP_value=$CPP
914 ac_env_CXX_set=${CXX+set}
915 ac_env_CXX_value=$CXX
916 ac_cv_env_CXX_set=${CXX+set}
917 ac_cv_env_CXX_value=$CXX
918 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
919 ac_env_CXXFLAGS_value=$CXXFLAGS
920 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
921 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
922 ac_env_CXXCPP_set=${CXXCPP+set}
923 ac_env_CXXCPP_value=$CXXCPP
924 ac_cv_env_CXXCPP_set=${CXXCPP+set}
925 ac_cv_env_CXXCPP_value=$CXXCPP
928 # Report the --help message.
930 if test "$ac_init_help" = "long"; then
931 # Omit some internal or obsolete options to make the list less imposing.
932 # This message is too long to be a string in the A/UX 3.1 sh.
934 \`configure' configures salome 0.1 to adapt to many kinds of systems.
936 Usage: $0 [OPTION]... [VAR=VALUE]...
938 To assign environment variables (e.g., CC, CFLAGS...), specify them as
939 VAR=VALUE. See below for descriptions of some of the useful variables.
941 Defaults for the options are specified in brackets.
944 -h, --help display this help and exit
945 --help=short display options specific to this package
946 --help=recursive display the short help of all the included packages
947 -V, --version display version information and exit
948 -q, --quiet, --silent do not print \`checking...' messages
949 --cache-file=FILE cache test results in FILE [disabled]
950 -C, --config-cache alias for \`--cache-file=config.cache'
951 -n, --no-create do not create output files
952 --srcdir=DIR find the sources in DIR [configure dir or \`..']
957 Installation directories:
958 --prefix=PREFIX install architecture-independent files in PREFIX
960 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
963 By default, \`make install' will install all the files in
964 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
965 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
966 for instance \`--prefix=\$HOME'.
968 For better control, use the options below.
970 Fine tuning of the installation directories:
971 --bindir=DIR user executables [EPREFIX/bin]
972 --sbindir=DIR system admin executables [EPREFIX/sbin]
973 --libexecdir=DIR program executables [EPREFIX/libexec]
974 --datadir=DIR read-only architecture-independent data [PREFIX/share]
975 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
976 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
977 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
978 --libdir=DIR object code libraries [EPREFIX/lib]
979 --includedir=DIR C header files [PREFIX/include]
980 --oldincludedir=DIR C header files for non-gcc [/usr/include]
981 --infodir=DIR info documentation [PREFIX/info]
982 --mandir=DIR man documentation [PREFIX/man]
988 --program-prefix=PREFIX prepend PREFIX to installed program names
989 --program-suffix=SUFFIX append SUFFIX to installed program names
990 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
993 --build=BUILD configure for building on BUILD [guessed]
994 --host=HOST cross-compile to build programs to run on HOST [BUILD]
998 if test -n "$ac_init_help"; then
999 case $ac_init_help in
1000 short | recursive ) echo "Configuration of salome 0.1:";;
1005 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1006 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1007 --enable-shared=PKGS build shared libraries default=yes
1008 --enable-static=PKGS build static libraries default=yes
1009 --enable-fast-install=PKGS optimize for fast installation default=yes
1010 --disable-dependency-tracking Speeds up one-time builds
1011 --enable-dependency-tracking Do not reject slow dependency extractors
1012 --disable-libtool-lock avoid locking (might break parallel builds)
1013 --enable-static=PKGS build static libraries default=no
1016 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1017 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1018 --with-gnu-ld assume the C compiler uses GNU ld default=no
1019 --with-pic try to use only PIC/non-PIC objects default=use both
1020 --with-python=DIR root directory path of python installation
1021 --with-python-site=DIR Use DIR for installing platform independent
1022 Python site-packages
1023 --with-python-site-exec=DIR Use DIR for installing platform dependent
1024 Python site-packages
1025 --with-swig=EXEC swig executable
1026 --with-kernel=DIR root directory path of KERNEL build or installation
1027 --with-hdf5=DIR root directory path to hdf5 installation
1028 --with-med2=DIR root directory path to med2 installation
1029 --with-med=DIR root directory path of MED installation
1031 Some influential environment variables:
1032 CC C compiler command
1033 CFLAGS C compiler flags
1034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1035 nonstandard directory <lib dir>
1036 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1037 headers in a nonstandard directory <include dir>
1039 CXX C++ compiler command
1040 CXXFLAGS C++ compiler flags
1041 CXXCPP C++ preprocessor
1043 Use these variables to override the choices made by `configure' or to help
1044 it to find libraries and programs with nonstandard names/locations.
1049 if test "$ac_init_help" = "recursive"; then
1050 # If there are subdirs, report their specific --help.
1052 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1053 test -d $ac_dir || continue
1056 if test "$ac_dir" != .; then
1057 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1058 # A "../" for each directory in $ac_dir_suffix.
1059 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1061 ac_dir_suffix= ac_top_builddir=
1065 .) # No --srcdir option. We are building in place.
1067 if test -z "$ac_top_builddir"; then
1070 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1072 [\\/]* | ?:[\\/]* ) # Absolute path.
1073 ac_srcdir=$srcdir$ac_dir_suffix;
1074 ac_top_srcdir=$srcdir ;;
1076 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1077 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1079 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1081 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1082 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1083 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1084 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1087 # Check for guested configure; otherwise get Cygnus style configure.
1088 if test -f $ac_srcdir/configure.gnu; then
1090 $SHELL $ac_srcdir/configure.gnu --help=recursive
1091 elif test -f $ac_srcdir/configure; then
1093 $SHELL $ac_srcdir/configure --help=recursive
1094 elif test -f $ac_srcdir/configure.ac ||
1095 test -f $ac_srcdir/configure.in; then
1097 $ac_configure --help
1099 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1105 test -n "$ac_init_help" && exit 0
1106 if $ac_init_version; then
1108 salome configure 0.1
1109 generated by GNU Autoconf 2.53
1111 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1112 Free Software Foundation, Inc.
1113 This configure script is free software; the Free Software Foundation
1114 gives unlimited permission to copy, distribute and modify it.
1120 This file contains any messages produced by compilers while
1121 running configure, to aid debugging if configure makes a mistake.
1123 It was created by salome $as_me 0.1, which was
1124 generated by GNU Autoconf 2.53. Invocation command line was
1135 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1136 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1137 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1138 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1139 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1141 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1142 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1144 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1145 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1146 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1147 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1148 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1149 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1150 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1158 test -z "$as_dir" && as_dir=.
1159 echo "PATH: $as_dir"
1174 # Keep a trace of the command line.
1175 # Strip out --no-create and --no-recursion so they do not pile up.
1176 # Also quote any args containing shell meta-characters.
1182 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183 | --no-cr | --no-c | -n ) continue ;;
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1188 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1190 case " $ac_configure_args " in
1191 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1192 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1195 # Get rid of the leading space.
1198 # When interrupted or exit'd, cleanup temporary files, and complete
1199 # config.log. We remove comments because anyway the quotes in there
1200 # would cause problems or look ugly.
1201 # WARNING: Be sure not to use single quotes in there, as some shells,
1202 # such as our DU 5.0 friend, will then `close' the trap.
1203 trap 'exit_status=$?
1204 # Save into config.log some information that might help in debugging.
1208 ## ---------------- ##
1209 ## Cache variables. ##
1210 ## ---------------- ##
1213 # The following way of writing the cache mishandles newlines in values,
1216 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1219 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1220 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1224 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1229 if test -s confdefs.h; then
1236 sed "/^$/d" confdefs.h
1239 test "$ac_signal" != 0 &&
1240 echo "$as_me: caught signal $ac_signal"
1241 echo "$as_me: exit $exit_status"
1243 rm -f core core.* *.core &&
1244 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1247 for ac_signal in 1 2 13 15; do
1248 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1253 rm -rf conftest* confdefs.h
1254 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 # Predefined preprocessor variables.
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_NAME "$PACKAGE_NAME"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_STRING "$PACKAGE_STRING"
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1284 # Let the site file select an alternate cache file if it wants to.
1285 # Prefer explicitly selected file to automatically selected ones.
1286 if test -z "$CONFIG_SITE"; then
1287 if test "x$prefix" != xNONE; then
1288 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1290 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293 for ac_site_file in $CONFIG_SITE; do
1294 if test -r "$ac_site_file"; then
1295 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1296 echo "$as_me: loading site script $ac_site_file" >&6;}
1297 sed 's/^/| /' "$ac_site_file" >&5
1302 if test -r "$cache_file"; then
1303 # Some versions of bash will fail to source /dev/null (special
1304 # files actually), so we avoid doing that.
1305 if test -f "$cache_file"; then
1306 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1307 echo "$as_me: loading cache $cache_file" >&6;}
1309 [\\/]* | ?:[\\/]* ) . $cache_file;;
1310 *) . ./$cache_file;;
1314 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1315 echo "$as_me: creating cache $cache_file" >&6;}
1319 # Check that the precious variables saved in the cache have kept the same
1321 ac_cache_corrupted=false
1322 for ac_var in `(set) 2>&1 |
1323 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1324 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1325 eval ac_new_set=\$ac_env_${ac_var}_set
1326 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1327 eval ac_new_val="\$ac_env_${ac_var}_value"
1328 case $ac_old_set,$ac_new_set in
1330 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1331 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1332 ac_cache_corrupted=: ;;
1334 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1336 ac_cache_corrupted=: ;;
1339 if test "x$ac_old_val" != "x$ac_new_val"; then
1340 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1341 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1342 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1343 echo "$as_me: former value: $ac_old_val" >&2;}
1344 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1345 echo "$as_me: current value: $ac_new_val" >&2;}
1346 ac_cache_corrupted=:
1349 # Pass precious variables to config.status.
1350 if test "$ac_new_set" = set; then
1352 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1353 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1354 *) ac_arg=$ac_var=$ac_new_val ;;
1356 case " $ac_configure_args " in
1357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1358 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1362 if $ac_cache_corrupted; then
1363 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1364 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1365 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1366 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1367 { (exit 1); exit 1; }; }
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 am__api_version="1.6"
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405 if test -f $ac_dir/install-sh; then
1407 ac_install_sh="$ac_aux_dir/install-sh -c"
1409 elif test -f $ac_dir/install.sh; then
1411 ac_install_sh="$ac_aux_dir/install.sh -c"
1413 elif test -f $ac_dir/shtool; then
1415 ac_install_sh="$ac_aux_dir/shtool install -c"
1419 if test -z "$ac_aux_dir"; then
1420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422 { (exit 1); exit 1; }; }
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1428 # Find a good install program. We prefer a C program (faster),
1429 # so one script is as good as another. But avoid the broken or
1430 # incompatible versions:
1431 # SysV /etc/install, /usr/sbin/install
1432 # SunOS /usr/etc/install
1433 # IRIX /sbin/install
1435 # AmigaOS /C/install, which installs bootblocks on floppy discs
1436 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1437 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1438 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1439 # ./install, which can be erroneously created by make from ./install.sh.
1440 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1442 if test -z "$INSTALL"; then
1443 if test "${ac_cv_path_install+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 # Account for people who put trailing slashes in PATH elements.
1453 ./ | .// | /cC/* | \
1454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1457 # OSF1 and SCO ODT 3.0 have their own names for install.
1458 # Don't use installbsd from OSF since it installs stuff as root
1460 for ac_prog in ginstall scoinst install; do
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1463 if test $ac_prog = install &&
1464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1465 # AIX install. It has an incompatible calling convention.
1467 elif test $ac_prog = install &&
1468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1469 # program-specific install script used by HP pwplus--don't use.
1472 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1484 if test "${ac_cv_path_install+set}" = set; then
1485 INSTALL=$ac_cv_path_install
1487 # As a last resort, use the slow shell script. We don't cache a
1488 # path for INSTALL within a source directory, because that will
1489 # break other packages using the cache if that directory is
1490 # removed, or if the path is relative.
1491 INSTALL=$ac_install_sh
1494 echo "$as_me:$LINENO: result: $INSTALL" >&5
1495 echo "${ECHO_T}$INSTALL" >&6
1497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1498 # It thinks the first close brace ends the variable substitution.
1499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1505 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1506 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1509 echo timestamp > conftest.file
1510 # Do `set' in a subshell so we don't clobber the current shell's
1511 # arguments. Must try -L first in case configure is actually a
1512 # symlink; some systems play weird games with the mod time of symlinks
1513 # (eg FreeBSD returns the mod time of the symlink's containing
1516 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1517 if test "$*" = "X"; then
1519 set X `ls -t $srcdir/configure conftest.file`
1522 if test "$*" != "X $srcdir/configure conftest.file" \
1523 && test "$*" != "X conftest.file $srcdir/configure"; then
1525 # If neither matched, then we have a broken ls. This can happen
1526 # if, for instance, CONFIG_SHELL is bash and it inherits a
1527 # broken ls alias from the environment. This has actually
1528 # happened. Such a system could not be considered "sane".
1529 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1530 alias in your environment" >&5
1531 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1532 alias in your environment" >&2;}
1533 { (exit 1); exit 1; }; }
1536 test "$2" = conftest.file
1542 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1543 Check your system clock" >&5
1544 echo "$as_me: error: newly created file is older than distributed files!
1545 Check your system clock" >&2;}
1546 { (exit 1); exit 1; }; }
1548 echo "$as_me:$LINENO: result: yes" >&5
1549 echo "${ECHO_T}yes" >&6
1550 test "$program_prefix" != NONE &&
1551 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1552 # Use a double $ so make ignores it.
1553 test "$program_suffix" != NONE &&
1554 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1555 # Double any \ or $. echo might interpret backslashes.
1556 # By default was `s,x,x', remove it if useless.
1557 cat <<\_ACEOF >conftest.sed
1558 s/[\\$]/&&/g;s/;s,x,x,$//
1560 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1564 # expand $ac_aux_dir to an absolute path
1565 am_aux_dir=`cd $ac_aux_dir && pwd`
1567 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1568 # Use eval to expand $SHELL
1569 if eval "$MISSING --run true"; then
1570 am_missing_run="$MISSING --run "
1573 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1574 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1577 for ac_prog in gawk mawk nawk awk
1579 # Extract the first word of "$ac_prog", so it can be a program name with args.
1580 set dummy $ac_prog; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_AWK+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 if test -n "$AWK"; then
1587 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 test -z "$as_dir" && as_dir=.
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596 ac_cv_prog_AWK="$ac_prog"
1597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606 if test -n "$AWK"; then
1607 echo "$as_me:$LINENO: result: $AWK" >&5
1608 echo "${ECHO_T}$AWK" >&6
1610 echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1614 test -n "$AWK" && break
1617 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1618 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1619 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1620 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 cat >conftest.make <<\_ACEOF
1625 @echo 'ac_maketemp="${MAKE}"'
1627 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1628 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1629 if test -n "$ac_maketemp"; then
1630 eval ac_cv_prog_make_${ac_make}_set=yes
1632 eval ac_cv_prog_make_${ac_make}_set=no
1636 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1637 echo "$as_me:$LINENO: result: yes" >&5
1638 echo "${ECHO_T}yes" >&6
1641 echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1643 SET_MAKE="MAKE=${MAKE-make}"
1646 # test to see if srcdir already configured
1647 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1648 test -f $srcdir/config.status; then
1649 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1650 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1651 { (exit 1); exit 1; }; }
1654 # Define the identity of the package.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE "$PACKAGE"
1664 cat >>confdefs.h <<_ACEOF
1665 #define VERSION "$VERSION"
1668 # Some tools Automake needs.
1670 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1673 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1676 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1679 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1682 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1685 AMTAR=${AMTAR-"${am_missing_run}tar"}
1687 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1689 # Installed binaries are usually stripped using `strip' when the user
1690 # run `make install-strip'. However `strip' might not be the right
1691 # tool to use in cross-compilation environments, therefore Automake
1692 # will honor the `STRIP' environment variable to overrule this program.
1693 if test "$cross_compiling" != no; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}strip; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_STRIP+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$STRIP"; then
1703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 STRIP=$ac_cv_prog_STRIP
1722 if test -n "$STRIP"; then
1723 echo "$as_me:$LINENO: result: $STRIP" >&5
1724 echo "${ECHO_T}$STRIP" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$ac_cv_prog_STRIP"; then
1733 # Extract the first word of "strip", so it can be a program name with args.
1734 set dummy strip; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_STRIP"; then
1741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_STRIP="strip"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1761 if test -n "$ac_ct_STRIP"; then
1762 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1763 echo "${ECHO_T}$ac_ct_STRIP" >&6
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1771 STRIP="$ac_cv_prog_STRIP"
1775 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1777 # We need awk for the "check" target. The system "awk" is bad on
1783 # Check whether --enable-shared or --disable-shared was given.
1784 if test "${enable_shared+set}" = set; then
1785 enableval="$enable_shared"
1786 p=${PACKAGE-default}
1788 yes) enable_shared=yes ;;
1789 no) enable_shared=no ;;
1792 # Look at the argument we got. We use all the common list separators.
1793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1794 for pkg in $enableval; do
1795 if test "X$pkg" = "X$p"; then
1805 # Check whether --enable-static or --disable-static was given.
1806 if test "${enable_static+set}" = set; then
1807 enableval="$enable_static"
1808 p=${PACKAGE-default}
1810 yes) enable_static=yes ;;
1811 no) enable_static=no ;;
1814 # Look at the argument we got. We use all the common list separators.
1815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1816 for pkg in $enableval; do
1817 if test "X$pkg" = "X$p"; then
1827 # Check whether --enable-fast-install or --disable-fast-install was given.
1828 if test "${enable_fast_install+set}" = set; then
1829 enableval="$enable_fast_install"
1830 p=${PACKAGE-default}
1832 yes) enable_fast_install=yes ;;
1833 no) enable_fast_install=no ;;
1835 enable_fast_install=no
1836 # Look at the argument we got. We use all the common list separators.
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1838 for pkg in $enableval; do
1839 if test "X$pkg" = "X$p"; then
1840 enable_fast_install=yes
1847 enable_fast_install=yes
1849 # Make sure we can run config.sub.
1850 $ac_config_sub sun4 >/dev/null 2>&1 ||
1851 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1852 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1853 { (exit 1); exit 1; }; }
1855 echo "$as_me:$LINENO: checking build system type" >&5
1856 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1857 if test "${ac_cv_build+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 ac_cv_build_alias=$build_alias
1861 test -z "$ac_cv_build_alias" &&
1862 ac_cv_build_alias=`$ac_config_guess`
1863 test -z "$ac_cv_build_alias" &&
1864 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1865 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1866 { (exit 1); exit 1; }; }
1867 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1868 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1869 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1870 { (exit 1); exit 1; }; }
1873 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1874 echo "${ECHO_T}$ac_cv_build" >&6
1876 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1877 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1878 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1881 echo "$as_me:$LINENO: checking host system type" >&5
1882 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1883 if test "${ac_cv_host+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 ac_cv_host_alias=$host_alias
1887 test -z "$ac_cv_host_alias" &&
1888 ac_cv_host_alias=$ac_cv_build_alias
1889 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1890 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1891 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1892 { (exit 1); exit 1; }; }
1895 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1896 echo "${ECHO_T}$ac_cv_host" >&6
1898 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1899 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1900 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1903 rm -f .deps 2>/dev/null
1904 mkdir .deps 2>/dev/null
1905 if test -d .deps; then
1908 # MS-DOS does not allow filenames that begin with a dot.
1911 rmdir .deps 2>/dev/null
1914 ac_config_commands="$ac_config_commands depfiles"
1917 am_make=${MAKE-make}
1918 cat > confinc << 'END'
1922 # If we don't find an include directive, just comment out the code.
1923 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1924 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1928 # First try GNU make style include.
1929 echo "include confinc" > confmf
1930 # We grep out `Entering directory' and `Leaving directory'
1931 # messages which can occur if `w' ends up in MAKEFLAGS.
1932 # In particular we don't look at `^make:' because GNU make might
1933 # be invoked under some other name (usually "gmake"), in which
1934 # case it prints its new name instead of `make'.
1935 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1940 # Now try BSD make style include.
1941 if test "$am__include" = "#"; then
1942 echo '.include "confinc"' > confmf
1943 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1944 am__include=.include
1951 echo "$as_me:$LINENO: result: $_am_result" >&5
1952 echo "${ECHO_T}$_am_result" >&6
1953 rm -f confinc confmf
1955 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1956 if test "${enable_dependency_tracking+set}" = set; then
1957 enableval="$enable_dependency_tracking"
1960 if test "x$enable_dependency_tracking" != xno; then
1961 am_depcomp="$ac_aux_dir/depcomp"
1966 if test "x$enable_dependency_tracking" != xno; then
1977 ac_cpp='$CPP $CPPFLAGS'
1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981 if test -n "$ac_tool_prefix"; then
1982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_CC+set}" = set; then
1987 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 if test -n "$CC"; then
1990 ac_cv_prog_CC="$CC" # Let the user override the test.
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 test -z "$as_dir" && as_dir=.
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 if test -n "$CC"; then
2010 echo "$as_me:$LINENO: result: $CC" >&5
2011 echo "${ECHO_T}$CC" >&6
2013 echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2018 if test -z "$ac_cv_prog_CC"; then
2020 # Extract the first word of "gcc", so it can be a program name with args.
2021 set dummy gcc; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$ac_ct_CC"; then
2028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_ac_ct_CC="gcc"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047 if test -n "$ac_ct_CC"; then
2048 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049 echo "${ECHO_T}$ac_ct_CC" >&6
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2060 if test -z "$CC"; then
2061 if test -n "$ac_tool_prefix"; then
2062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2063 set dummy ${ac_tool_prefix}cc; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 if test -n "$CC"; then
2070 ac_cv_prog_CC="$CC" # Let the user override the test.
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079 ac_cv_prog_CC="${ac_tool_prefix}cc"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 if test -n "$CC"; then
2090 echo "$as_me:$LINENO: result: $CC" >&5
2091 echo "${ECHO_T}$CC" >&6
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2098 if test -z "$ac_cv_prog_CC"; then
2100 # Extract the first word of "cc", so it can be a program name with args.
2101 set dummy cc; ac_word=$2
2102 echo "$as_me:$LINENO: checking for $ac_word" >&5
2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2104 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 if test -n "$ac_ct_CC"; then
2108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 test -z "$as_dir" && as_dir=.
2115 for ac_exec_ext in '' $ac_executable_extensions; do
2116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2117 ac_cv_prog_ac_ct_CC="cc"
2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2127 if test -n "$ac_ct_CC"; then
2128 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2129 echo "${ECHO_T}$ac_ct_CC" >&6
2131 echo "$as_me:$LINENO: result: no" >&5
2132 echo "${ECHO_T}no" >&6
2141 if test -z "$CC"; then
2142 # Extract the first word of "cc", so it can be a program name with args.
2143 set dummy cc; ac_word=$2
2144 echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2146 if test "${ac_cv_prog_CC+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 if test -n "$CC"; then
2150 ac_cv_prog_CC="$CC" # Let the user override the test.
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2161 ac_prog_rejected=yes
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 if test $ac_prog_rejected = yes; then
2172 # We found a bogon in the path, so make sure we never use it.
2173 set dummy $ac_cv_prog_CC
2175 if test $# != 0; then
2176 # We chose a different compiler from the bogus one.
2177 # However, it has the same basename, so the bogon will be chosen
2178 # first if we set CC to just the basename; use the full file name.
2180 set dummy "$as_dir/$ac_word" ${1+"$@"}
2188 if test -n "$CC"; then
2189 echo "$as_me:$LINENO: result: $CC" >&5
2190 echo "${ECHO_T}$CC" >&6
2192 echo "$as_me:$LINENO: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2197 if test -z "$CC"; then
2198 if test -n "$ac_tool_prefix"; then
2201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2203 echo "$as_me:$LINENO: checking for $ac_word" >&5
2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2205 if test "${ac_cv_prog_CC+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 test -z "$as_dir" && as_dir=.
2216 for ac_exec_ext in '' $ac_executable_extensions; do
2217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 if test -n "$CC"; then
2229 echo "$as_me:$LINENO: result: $CC" >&5
2230 echo "${ECHO_T}$CC" >&6
2232 echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6
2236 test -n "$CC" && break
2239 if test -z "$CC"; then
2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 if test -n "$ac_ct_CC"; then
2251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 test -z "$as_dir" && as_dir=.
2258 for ac_exec_ext in '' $ac_executable_extensions; do
2259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2260 ac_cv_prog_ac_ct_CC="$ac_prog"
2261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2270 if test -n "$ac_ct_CC"; then
2271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2272 echo "${ECHO_T}$ac_ct_CC" >&6
2274 echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2278 test -n "$ac_ct_CC" && break
2287 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2288 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2289 { (exit 1); exit 1; }; }
2291 # Provide some information about the compiler.
2292 echo "$as_me:$LINENO:" \
2293 "checking for C compiler version" >&5
2294 ac_compiler=`set X $ac_compile; echo $2`
2295 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2296 (eval $ac_compiler --version </dev/null >&5) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }
2300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2301 (eval $ac_compiler -v </dev/null >&5) 2>&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }
2305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2306 (eval $ac_compiler -V </dev/null >&5) 2>&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }
2311 cat >conftest.$ac_ext <<_ACEOF
2312 #line $LINENO "configure"
2313 #include "confdefs.h"
2315 #ifdef F77_DUMMY_MAIN
2319 int F77_DUMMY_MAIN() { return 1; }
2329 ac_clean_files_save=$ac_clean_files
2330 ac_clean_files="$ac_clean_files a.out a.exe"
2331 # Try to create an executable without -o first, disregard a.out.
2332 # It will help us diagnose broken compilers, and finding out an intuition
2334 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2335 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2336 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2337 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2338 (eval $ac_link_default) 2>&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; then
2342 # Find the output, starting from the most likely. This scheme is
2343 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2346 # Be careful to initialize this variable, since it used to be cached.
2347 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2349 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2350 ls a.out conftest 2>/dev/null;
2351 ls a.* conftest.* 2>/dev/null`; do
2353 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2354 a.out ) # We found the default executable, but exeext='' is most
2357 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2358 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2365 echo "$as_me: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2367 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2368 echo "$as_me: error: C compiler cannot create executables" >&2;}
2369 { (exit 77); exit 77; }; }
2372 ac_exeext=$ac_cv_exeext
2373 echo "$as_me:$LINENO: result: $ac_file" >&5
2374 echo "${ECHO_T}$ac_file" >&6
2376 # Check the compiler produces executables we can run. If not, either
2377 # the compiler is broken, or we cross compile.
2378 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2379 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2380 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2381 # If not cross compiling, check that we can run a simple program.
2382 if test "$cross_compiling" != yes; then
2383 if { ac_try='./$ac_file'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; }; then
2391 if test "$cross_compiling" = maybe; then
2394 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2395 If you meant to cross compile, use \`--host'." >&5
2396 echo "$as_me: error: cannot run C compiled programs.
2397 If you meant to cross compile, use \`--host'." >&2;}
2398 { (exit 1); exit 1; }; }
2402 echo "$as_me:$LINENO: result: yes" >&5
2403 echo "${ECHO_T}yes" >&6
2405 rm -f a.out a.exe conftest$ac_cv_exeext
2406 ac_clean_files=$ac_clean_files_save
2407 # Check the compiler produces executables we can run. If not, either
2408 # the compiler is broken, or we cross compile.
2409 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2410 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2411 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2412 echo "${ECHO_T}$cross_compiling" >&6
2414 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2415 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2417 (eval $ac_link) 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
2421 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2422 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2423 # work properly (i.e., refer to `conftest.exe'), while it won't with
2425 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2427 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2428 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2436 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2437 { (exit 1); exit 1; }; }
2440 rm -f conftest$ac_cv_exeext
2441 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2442 echo "${ECHO_T}$ac_cv_exeext" >&6
2444 rm -f conftest.$ac_ext
2445 EXEEXT=$ac_cv_exeext
2447 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2448 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2449 if test "${ac_cv_objext+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line $LINENO "configure"
2454 #include "confdefs.h"
2456 #ifdef F77_DUMMY_MAIN
2460 int F77_DUMMY_MAIN() { return 1; }
2470 rm -f conftest.o conftest.obj
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; then
2476 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2479 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2484 echo "$as_me: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2486 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2487 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2488 { (exit 1); exit 1; }; }
2491 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2493 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2494 echo "${ECHO_T}$ac_cv_objext" >&6
2495 OBJEXT=$ac_cv_objext
2497 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2498 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2499 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #line $LINENO "configure"
2504 #include "confdefs.h"
2506 #ifdef F77_DUMMY_MAIN
2510 int F77_DUMMY_MAIN() { return 1; }
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2537 echo "$as_me: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2541 rm -f conftest.$ac_objext conftest.$ac_ext
2542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2545 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2546 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2547 GCC=`test $ac_compiler_gnu = yes && echo yes`
2548 ac_test_CFLAGS=${CFLAGS+set}
2549 ac_save_CFLAGS=$CFLAGS
2551 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2552 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2553 if test "${ac_cv_prog_cc_g+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2558 #include "confdefs.h"
2560 #ifdef F77_DUMMY_MAIN
2564 int F77_DUMMY_MAIN() { return 1; }
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2588 echo "$as_me: failed program was:" >&5
2589 cat conftest.$ac_ext >&5
2592 rm -f conftest.$ac_objext conftest.$ac_ext
2594 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2595 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2596 if test "$ac_test_CFLAGS" = set; then
2597 CFLAGS=$ac_save_CFLAGS
2598 elif test $ac_cv_prog_cc_g = yes; then
2599 if test "$GCC" = yes; then
2605 if test "$GCC" = yes; then
2611 # Some people use a C++ compiler to compile C. Since we use `exit',
2612 # in C++ we need to declare it. In case someone uses the same compiler
2613 # for both compiling C and C++ we need to have the C++ compiler decide
2614 # the declaration of exit, since it's the most demanding environment.
2615 cat >conftest.$ac_ext <<_ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 for ac_declaration in \
2634 '#include <stdlib.h>' \
2635 'extern "C" void std::exit (int) throw (); using std::exit;' \
2636 'extern "C" void std::exit (int); using std::exit;' \
2637 'extern "C" void exit (int) throw ();' \
2638 'extern "C" void exit (int);' \
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2646 #ifdef F77_DUMMY_MAIN
2650 int F77_DUMMY_MAIN() { return 1; }
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2674 echo "$as_me: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2678 rm -f conftest.$ac_objext conftest.$ac_ext
2679 cat >conftest.$ac_ext <<_ACEOF
2680 #line $LINENO "configure"
2681 #include "confdefs.h"
2683 #ifdef F77_DUMMY_MAIN
2687 int F77_DUMMY_MAIN() { return 1; }
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2711 echo "$as_me: failed program was:" >&5
2712 cat conftest.$ac_ext >&5
2714 rm -f conftest.$ac_objext conftest.$ac_ext
2717 if test -n "$ac_declaration"; then
2718 echo '#ifdef __cplusplus' >>confdefs.h
2719 echo $ac_declaration >>confdefs.h
2720 echo '#endif' >>confdefs.h
2724 echo "$as_me: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2727 rm -f conftest.$ac_objext conftest.$ac_ext
2729 ac_cpp='$CPP $CPPFLAGS'
2730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 depcc="$CC" am_compiler_list=
2736 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2737 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2738 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2742 # We make a subdir and do the tests there. Otherwise we can end up
2743 # making bogus files that we don't know about and never remove. For
2744 # instance it was reported that on HP-UX the gcc test will end up
2745 # making a dummy file named `D' -- because `-MD' means `put the output
2748 # Copy depcomp to subdir because otherwise we won't find it if we're
2749 # using a relative directory.
2750 cp "$am_depcomp" conftest.dir
2753 am_cv_CC_dependencies_compiler_type=none
2754 if test "$am_compiler_list" = ""; then
2755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2757 for depmode in $am_compiler_list; do
2758 # We need to recreate these files for each test, as the compiler may
2759 # overwrite some of them when testing with obscure command lines.
2760 # This happens at least with the AIX C compiler.
2761 echo '#include "conftest.h"' > conftest.c
2762 echo 'int i;' > conftest.h
2763 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2767 # after this tag, mechanisms are not by side-effect, so they'll
2768 # only be used when explicitly requested
2769 if test "x$enable_dependency_tracking" = xyes; then
2777 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2778 # mode. It turns out that the SunPro C++ compiler does not properly
2779 # handle `-M -o', and we need to detect this.
2780 if depmode=$depmode \
2781 source=conftest.c object=conftest.o \
2782 depfile=conftest.Po tmpdepfile=conftest.TPo \
2783 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2784 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2785 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2786 am_cv_CC_dependencies_compiler_type=$depmode
2794 am_cv_CC_dependencies_compiler_type=none
2798 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2799 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2800 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2803 # Find the correct PATH separator. Usually this is `:', but
2804 # DJGPP uses `;' like DOS.
2805 if test "X${PATH_SEPARATOR+set}" != Xset; then
2806 UNAME=${UNAME-`uname 2>/dev/null`}
2808 *-DOS) lt_cv_sys_path_separator=';' ;;
2809 *) lt_cv_sys_path_separator=':' ;;
2811 PATH_SEPARATOR=$lt_cv_sys_path_separator
2815 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2816 if test "${with_gnu_ld+set}" = set; then
2817 withval="$with_gnu_ld"
2818 test "$withval" = no || with_gnu_ld=yes
2823 if test "$GCC" = yes; then
2824 # Check if gcc -print-prog-name=ld gives a path.
2825 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2826 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2829 # gcc leaves a trailing carriage return which upsets mingw
2830 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2832 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2835 # Accept absolute paths.
2836 [\\/]* | [A-Za-z]:[\\/]*)
2837 re_direlt='/[^/][^/]*/\.\./'
2838 # Canonicalize the path of ld
2839 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2840 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2841 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2843 test -z "$LD" && LD="$ac_prog"
2846 # If it fails, then pretend we aren't using GCC.
2850 # If it is relative, then search for the first ld in PATH.
2854 elif test "$with_gnu_ld" = yes; then
2855 echo "$as_me:$LINENO: checking for GNU ld" >&5
2856 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2858 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2859 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2861 if test "${lt_cv_path_LD+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 if test -z "$LD"; then
2865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2866 for ac_dir in $PATH; do
2867 test -z "$ac_dir" && ac_dir=.
2868 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2869 lt_cv_path_LD="$ac_dir/$ac_prog"
2870 # Check to see if the program is GNU ld. I'd rather use --version,
2871 # but apparently some GNU ld's only accept -v.
2872 # Break only if it was the GNU/non-GNU ld that we prefer.
2873 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2874 test "$with_gnu_ld" != no && break
2876 test "$with_gnu_ld" != yes && break
2882 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2887 if test -n "$LD"; then
2888 echo "$as_me:$LINENO: result: $LD" >&5
2889 echo "${ECHO_T}$LD" >&6
2891 echo "$as_me:$LINENO: result: no" >&5
2892 echo "${ECHO_T}no" >&6
2894 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2895 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2896 { (exit 1); exit 1; }; }
2897 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2898 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2899 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2903 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2904 lt_cv_prog_gnu_ld=yes
2906 lt_cv_prog_gnu_ld=no
2909 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2910 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2911 with_gnu_ld=$lt_cv_prog_gnu_ld
2914 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2915 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2916 if test "${lt_cv_ld_reload_flag+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 lt_cv_ld_reload_flag='-r'
2921 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2922 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2923 reload_flag=$lt_cv_ld_reload_flag
2924 test -n "$reload_flag" && reload_flag=" $reload_flag"
2926 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2927 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2928 if test "${lt_cv_path_NM+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 if test -n "$NM"; then
2932 # Let the user override the test.
2935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2936 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2937 test -z "$ac_dir" && ac_dir=.
2938 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2939 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2940 # Check to see if the nm accepts a BSD-compat flag.
2941 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2942 # nm: unknown option "B" ignored
2943 # Tru64's nm complains that /dev/null is an invalid object file
2944 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2945 lt_cv_path_NM="$tmp_nm -B"
2947 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2948 lt_cv_path_NM="$tmp_nm -p"
2951 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2952 continue # so that we can try to find one that supports BSD flags
2957 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2962 echo "$as_me:$LINENO: result: $NM" >&5
2963 echo "${ECHO_T}$NM" >&6
2965 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2966 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2968 if test "$LN_S" = "ln -s"; then
2969 echo "$as_me:$LINENO: result: yes" >&5
2970 echo "${ECHO_T}yes" >&6
2972 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2973 echo "${ECHO_T}no, using $LN_S" >&6
2976 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2977 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2978 if test "${lt_cv_deplibs_check_method+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 lt_cv_file_magic_cmd='$MAGIC_CMD'
2982 lt_cv_file_magic_test_file=
2983 lt_cv_deplibs_check_method='unknown'
2984 # Need to set the preceding variable on all platforms that support
2985 # interlibrary dependencies.
2986 # 'none' -- dependencies not supported.
2987 # `unknown' -- same as none, but documents that we really don't know.
2988 # 'pass_all' -- all dependencies passed with no checks.
2989 # 'test_compile' -- check by making test program.
2990 # 'file_magic [[regex]]' -- check by looking for files in library path
2991 # which responds to the $file_magic_cmd with a given egrep regex.
2992 # If you have `file' or equivalent on your system and you're not sure
2993 # whether `pass_all' will *always* work, you probably want this one.
2997 lt_cv_deplibs_check_method=pass_all
3001 lt_cv_deplibs_check_method=pass_all
3005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3006 lt_cv_file_magic_cmd='/usr/bin/file -L'
3007 lt_cv_file_magic_test_file=/shlib/libc.so
3010 cygwin* | mingw* | pw32*)
3011 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3012 lt_cv_file_magic_cmd='$OBJDUMP -f'
3015 darwin* | rhapsody*)
3016 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3017 lt_cv_file_magic_cmd='/usr/bin/file -L'
3019 rhapsody* | darwin1.[012])
3020 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3023 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3029 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3032 # Not sure whether the presence of OpenBSD here was a mistake.
3033 # Let's accept both of them until this is cleared up.
3034 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3035 lt_cv_file_magic_cmd=/usr/bin/file
3036 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3040 lt_cv_deplibs_check_method=pass_all
3045 lt_cv_deplibs_check_method=pass_all
3049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3050 lt_cv_file_magic_cmd=/usr/bin/file
3051 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3057 # this will be overridden with pass_all, but let us keep it just in case
3058 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3062 *-32|*"-32 ") libmagic=32-bit;;
3063 *-n32|*"-n32 ") libmagic=N32;;
3064 *-64|*"-64 ") libmagic=64-bit;;
3065 *) libmagic=never-match;;
3067 # this will be overridden with pass_all, but let us keep it just in case
3068 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3071 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3072 lt_cv_deplibs_check_method=pass_all
3075 # This must be Linux ELF.
3078 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3079 lt_cv_deplibs_check_method=pass_all ;;
3081 # glibc up to 2.1.1 does not perform some relocations on ARM
3082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3084 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3088 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3089 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3091 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3097 lt_cv_file_magic_cmd=/usr/bin/file
3098 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3102 lt_cv_file_magic_cmd=/usr/bin/file
3103 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3104 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3107 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3111 osf3* | osf4* | osf5*)
3112 # this will be overridden with pass_all, but let us keep it just in case
3113 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3114 lt_cv_file_magic_test_file=/shlib/libc.so
3115 lt_cv_deplibs_check_method=pass_all
3119 lt_cv_deplibs_check_method=pass_all
3123 lt_cv_deplibs_check_method=pass_all
3124 lt_cv_file_magic_test_file=/lib/libc.so
3127 sysv5uw[78]* | sysv4*uw2*)
3128 lt_cv_deplibs_check_method=pass_all
3131 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3132 case $host_vendor in
3134 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]'
3135 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3138 lt_cv_deplibs_check_method=pass_all
3141 lt_cv_file_magic_cmd='/bin/file'
3142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3145 lt_cv_file_magic_cmd='/bin/file'
3146 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3147 lt_cv_file_magic_test_file=/lib/libc.so
3154 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3155 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3156 file_magic_cmd=$lt_cv_file_magic_cmd
3157 deplibs_check_method=$lt_cv_deplibs_check_method
3166 # Check for command to grab the raw symbol name followed by C symbol from nm.
3167 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3168 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3169 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 # These are sane defaults that work on at least a few old systems.
3174 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3176 # Character class describing NM global symbol codes.
3177 symcode='[BCDEGRST]'
3179 # Regexp to match symbols that can be accessed directly from C.
3180 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3182 # Transform the above into a raw symbol and a C symbol.
3183 symxfrm='\1 \2\3 \3'
3185 # Transform an extracted symbol line into a proper C declaration
3186 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3188 # Transform an extracted symbol line into symbol name and symbol address
3189 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3191 # Define system-specific variables.
3196 cygwin* | mingw* | pw32*)
3197 symcode='[ABCDGISTW]'
3199 hpux*) # Its linker distinguishes data from code symbols
3200 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3201 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3204 symcode='[BCDEGRST]'
3214 # Handle CRLF in mingw tool chain
3218 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3222 # If we're using GNU nm, then use its standard symbol codes.
3223 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3224 symcode='[ABCDGISTW]'
3227 # Try without a prefix undercore, then with it.
3228 for ac_symprfx in "" "_"; do
3230 # Write the raw and C identifiers.
3231 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3233 # Check to see that the pipe works correctly.
3236 cat > conftest.$ac_ext <<EOF
3241 void nm_test_func(){}
3245 int main(){nm_test_var='a';nm_test_func();return(0);}
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; then
3253 # Now try to grab the symbols.
3255 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3256 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } && test -s "$nlist"; then
3260 # Try sorting and uniquifying the output.
3261 if sort "$nlist" | uniq > "$nlist"T; then
3262 mv -f "$nlist"T "$nlist"
3267 # Make sure that we snagged all the symbols we need.
3268 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3269 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3270 cat <<EOF > conftest.$ac_ext
3276 # Now generate the symbol file.
3277 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3279 cat <<EOF >> conftest.$ac_ext
3280 #if defined (__STDC__) && __STDC__
3281 # define lt_ptr void *
3283 # define lt_ptr char *
3287 /* The mapping between symbol names and symbols. */
3292 lt_preloaded_symbols[] =
3295 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3296 cat <<\EOF >> conftest.$ac_ext
3304 # Now try linking the two files.
3305 mv conftest.$ac_objext conftstm.$ac_objext
3307 save_CFLAGS="$CFLAGS"
3308 LIBS="conftstm.$ac_objext"
3309 CFLAGS="$CFLAGS$no_builtin_flag"
3310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3311 (eval $ac_link) 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } && test -s conftest; then
3318 CFLAGS="$save_CFLAGS"
3320 echo "cannot find nm_test_func in $nlist" >&5
3323 echo "cannot find nm_test_var in $nlist" >&5
3326 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3329 echo "$progname: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3332 rm -f conftest* conftst*
3334 # Do not use the global_symbol_pipe unless it works.
3335 if test "$pipe_works" = yes; then
3338 lt_cv_sys_global_symbol_pipe=
3344 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3345 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3346 global_symbol_to_cdecl=
3347 global_symbol_to_c_name_address=
3349 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3350 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3352 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3354 echo "$as_me:$LINENO: result: failed" >&5
3355 echo "${ECHO_T}failed" >&6
3357 echo "$as_me:$LINENO: result: ok" >&5
3358 echo "${ECHO_T}ok" >&6
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3372 if test -z "$CPP"; then
3373 if test "${ac_cv_prog_CPP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 # Double quotes because CPP needs to be expanded
3377 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3380 for ac_c_preproc_warn_flag in '' yes
3382 # Use a header file that comes with gcc, so configuring glibc
3383 # with a fresh cross-compiler works.
3384 # On the NeXT, cc -E runs the code through the compiler's parser,
3385 # not just through cpp. "Syntax error" is here to catch this case.
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3388 #include "confdefs.h"
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3395 egrep -v '^ *\+' conftest.er1 >conftest.err
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } >/dev/null; then
3400 if test -s conftest.err; then
3401 ac_cpp_err=$ac_c_preproc_warn_flag
3408 if test -z "$ac_cpp_err"; then
3411 echo "$as_me: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3413 # Broken: fails on valid input.
3416 rm -f conftest.err conftest.$ac_ext
3418 # OK, works on sane cases. Now check whether non-existent headers
3419 # can be detected and how.
3420 cat >conftest.$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3422 #include "confdefs.h"
3423 #include <ac_nonexistent.h>
3425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3428 egrep -v '^ *\+' conftest.er1 >conftest.err
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null; then
3433 if test -s conftest.err; then
3434 ac_cpp_err=$ac_c_preproc_warn_flag
3441 if test -z "$ac_cpp_err"; then
3442 # Broken: success on invalid input.
3445 echo "$as_me: failed program was:" >&5
3446 cat conftest.$ac_ext >&5
3447 # Passes both tests.
3451 rm -f conftest.err conftest.$ac_ext
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.err conftest.$ac_ext
3456 if $ac_preproc_ok; then
3468 echo "$as_me:$LINENO: result: $CPP" >&5
3469 echo "${ECHO_T}$CPP" >&6
3471 for ac_c_preproc_warn_flag in '' yes
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # On the NeXT, cc -E runs the code through the compiler's parser,
3476 # not just through cpp. "Syntax error" is here to catch this case.
3477 cat >conftest.$ac_ext <<_ACEOF
3478 #line $LINENO "configure"
3479 #include "confdefs.h"
3483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3486 egrep -v '^ *\+' conftest.er1 >conftest.err
3488 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev/null; then
3491 if test -s conftest.err; then
3492 ac_cpp_err=$ac_c_preproc_warn_flag
3499 if test -z "$ac_cpp_err"; then
3502 echo "$as_me: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 # Broken: fails on valid input.
3507 rm -f conftest.err conftest.$ac_ext
3509 # OK, works on sane cases. Now check whether non-existent headers
3510 # can be detected and how.
3511 cat >conftest.$ac_ext <<_ACEOF
3512 #line $LINENO "configure"
3513 #include "confdefs.h"
3514 #include <ac_nonexistent.h>
3516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3519 egrep -v '^ *\+' conftest.er1 >conftest.err
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } >/dev/null; then
3524 if test -s conftest.err; then
3525 ac_cpp_err=$ac_c_preproc_warn_flag
3532 if test -z "$ac_cpp_err"; then
3533 # Broken: success on invalid input.
3536 echo "$as_me: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 # Passes both tests.
3542 rm -f conftest.err conftest.$ac_ext
3545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546 rm -f conftest.err conftest.$ac_ext
3547 if $ac_preproc_ok; then
3550 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3551 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3552 { (exit 1); exit 1; }; }
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3563 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3564 if test "${ac_cv_header_stdc+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 cat >conftest.$ac_ext <<_ACEOF
3568 #line $LINENO "configure"
3569 #include "confdefs.h"
3576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3579 egrep -v '^ *\+' conftest.er1 >conftest.err
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } >/dev/null; then
3584 if test -s conftest.err; then
3585 ac_cpp_err=$ac_c_preproc_warn_flag
3592 if test -z "$ac_cpp_err"; then
3593 ac_cv_header_stdc=yes
3595 echo "$as_me: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3597 ac_cv_header_stdc=no
3599 rm -f conftest.err conftest.$ac_ext
3601 if test $ac_cv_header_stdc = yes; then
3602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3603 cat >conftest.$ac_ext <<_ACEOF
3604 #line $LINENO "configure"
3605 #include "confdefs.h"
3609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3610 egrep "memchr" >/dev/null 2>&1; then
3613 ac_cv_header_stdc=no
3619 if test $ac_cv_header_stdc = yes; then
3620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3621 cat >conftest.$ac_ext <<_ACEOF
3622 #line $LINENO "configure"
3623 #include "confdefs.h"
3627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3628 egrep "free" >/dev/null 2>&1; then
3631 ac_cv_header_stdc=no
3637 if test $ac_cv_header_stdc = yes; then
3638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3639 if test "$cross_compiling" = yes; then
3642 cat >conftest.$ac_ext <<_ACEOF
3643 #line $LINENO "configure"
3644 #include "confdefs.h"
3646 #if ((' ' & 0x0FF) == 0x020)
3647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3650 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3651 || ('j' <= (c) && (c) <= 'r') \
3652 || ('s' <= (c) && (c) <= 'z'))
3653 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3656 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3661 for (i = 0; i < 256; i++)
3662 if (XOR (islower (i), ISLOWER (i))
3663 || toupper (i) != TOUPPER (i))
3668 rm -f conftest$ac_exeext
3669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3670 (eval $ac_link) 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3681 echo "$as_me: program exited with status $ac_status" >&5
3682 echo "$as_me: failed program was:" >&5
3683 cat conftest.$ac_ext >&5
3685 ac_cv_header_stdc=no
3687 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3691 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3692 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3693 if test $ac_cv_header_stdc = yes; then
3695 cat >>confdefs.h <<\_ACEOF
3696 #define STDC_HEADERS 1
3701 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3711 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3712 inttypes.h stdint.h unistd.h
3714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3715 echo "$as_me:$LINENO: checking for $ac_header" >&5
3716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 cat >conftest.$ac_ext <<_ACEOF
3721 #line $LINENO "configure"
3722 #include "confdefs.h"
3723 $ac_includes_default
3725 #include <$ac_header>
3727 rm -f conftest.$ac_objext
3728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3729 (eval $ac_compile) 2>&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
3733 { ac_try='test -s conftest.$ac_objext'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; }; then
3739 eval "$as_ac_Header=yes"
3741 echo "$as_me: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3743 eval "$as_ac_Header=no"
3745 rm -f conftest.$ac_objext conftest.$ac_ext
3747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3750 cat >>confdefs.h <<_ACEOF
3751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3760 for ac_header in dlfcn.h
3762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3764 echo "$as_me:$LINENO: checking for $ac_header" >&5
3765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3772 # Is the header compilable?
3773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3775 cat >conftest.$ac_ext <<_ACEOF
3776 #line $LINENO "configure"
3777 #include "confdefs.h"
3778 $ac_includes_default
3779 #include <$ac_header>
3781 rm -f conftest.$ac_objext
3782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3783 (eval $ac_compile) 2>&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -s conftest.$ac_objext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 ac_header_compiler=yes
3795 echo "$as_me: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3797 ac_header_compiler=no
3799 rm -f conftest.$ac_objext conftest.$ac_ext
3800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3801 echo "${ECHO_T}$ac_header_compiler" >&6
3803 # Is the header present?
3804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3806 cat >conftest.$ac_ext <<_ACEOF
3807 #line $LINENO "configure"
3808 #include "confdefs.h"
3809 #include <$ac_header>
3811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3814 egrep -v '^ *\+' conftest.er1 >conftest.err
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } >/dev/null; then
3819 if test -s conftest.err; then
3820 ac_cpp_err=$ac_c_preproc_warn_flag
3827 if test -z "$ac_cpp_err"; then
3828 ac_header_preproc=yes
3830 echo "$as_me: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3832 ac_header_preproc=no
3834 rm -f conftest.err conftest.$ac_ext
3835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3836 echo "${ECHO_T}$ac_header_preproc" >&6
3838 # So? What about this header?
3839 case $ac_header_compiler:$ac_header_preproc in
3841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3853 echo "$as_me:$LINENO: checking for $ac_header" >&5
3854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 eval "$as_ac_Header=$ac_header_preproc"
3860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3865 cat >>confdefs.h <<_ACEOF
3866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3877 # Only perform the check for file, if the check method requires it
3878 case $deplibs_check_method in
3880 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3881 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3882 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3883 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3891 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3894 ac_save_MAGIC_CMD="$MAGIC_CMD"
3895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3896 ac_dummy="/usr/bin:$PATH"
3897 for ac_dir in $ac_dummy; do
3898 test -z "$ac_dir" && ac_dir=.
3899 if test -f $ac_dir/${ac_tool_prefix}file; then
3900 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3901 if test -n "$file_magic_test_file"; then
3902 case $deplibs_check_method in
3904 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3907 egrep "$file_magic_regex" > /dev/null; then
3912 *** Warning: the command libtool uses to detect shared libraries,
3913 *** $file_magic_cmd, produces output that libtool cannot recognize.
3914 *** The result is that libtool may fail to recognize shared libraries
3915 *** as such. This will affect the creation of libtool libraries that
3916 *** depend on shared libraries, but programs linked with such libtool
3917 *** libraries will work regardless of this problem. Nevertheless, you
3918 *** may want to report the problem to your system manager and/or to
3919 *** bug-libtool@gnu.org
3929 MAGIC_CMD="$ac_save_MAGIC_CMD"
3934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3935 if test -n "$MAGIC_CMD"; then
3936 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3937 echo "${ECHO_T}$MAGIC_CMD" >&6
3939 echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3943 if test -z "$lt_cv_path_MAGIC_CMD"; then
3944 if test -n "$ac_tool_prefix"; then
3945 echo "$as_me:$LINENO: checking for file" >&5
3946 echo $ECHO_N "checking for file... $ECHO_C" >&6
3947 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3955 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3958 ac_save_MAGIC_CMD="$MAGIC_CMD"
3959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3960 ac_dummy="/usr/bin:$PATH"
3961 for ac_dir in $ac_dummy; do
3962 test -z "$ac_dir" && ac_dir=.
3963 if test -f $ac_dir/file; then
3964 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3965 if test -n "$file_magic_test_file"; then
3966 case $deplibs_check_method in
3968 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3970 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3971 egrep "$file_magic_regex" > /dev/null; then
3976 *** Warning: the command libtool uses to detect shared libraries,
3977 *** $file_magic_cmd, produces output that libtool cannot recognize.
3978 *** The result is that libtool may fail to recognize shared libraries
3979 *** as such. This will affect the creation of libtool libraries that
3980 *** depend on shared libraries, but programs linked with such libtool
3981 *** libraries will work regardless of this problem. Nevertheless, you
3982 *** may want to report the problem to your system manager and/or to
3983 *** bug-libtool@gnu.org
3993 MAGIC_CMD="$ac_save_MAGIC_CMD"
3998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3999 if test -n "$MAGIC_CMD"; then
4000 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4001 echo "${ECHO_T}$MAGIC_CMD" >&6
4003 echo "$as_me:$LINENO: result: no" >&5
4004 echo "${ECHO_T}no" >&6
4016 if test -n "$ac_tool_prefix"; then
4017 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4018 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4019 echo "$as_me:$LINENO: checking for $ac_word" >&5
4020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4021 if test "${ac_cv_prog_RANLIB+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 if test -n "$RANLIB"; then
4025 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 test -z "$as_dir" && as_dir=.
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4034 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 RANLIB=$ac_cv_prog_RANLIB
4044 if test -n "$RANLIB"; then
4045 echo "$as_me:$LINENO: result: $RANLIB" >&5
4046 echo "${ECHO_T}$RANLIB" >&6
4048 echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6
4053 if test -z "$ac_cv_prog_RANLIB"; then
4054 ac_ct_RANLIB=$RANLIB
4055 # Extract the first word of "ranlib", so it can be a program name with args.
4056 set dummy ranlib; ac_word=$2
4057 echo "$as_me:$LINENO: checking for $ac_word" >&5
4058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4059 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 if test -n "$ac_ct_RANLIB"; then
4063 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072 ac_cv_prog_ac_ct_RANLIB="ranlib"
4073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4082 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4083 if test -n "$ac_ct_RANLIB"; then
4084 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4085 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4087 echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4091 RANLIB=$ac_ct_RANLIB
4093 RANLIB="$ac_cv_prog_RANLIB"
4096 if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4098 set dummy ${ac_tool_prefix}strip; ac_word=$2
4099 echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101 if test "${ac_cv_prog_STRIP+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 if test -n "$STRIP"; then
4105 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123 STRIP=$ac_cv_prog_STRIP
4124 if test -n "$STRIP"; then
4125 echo "$as_me:$LINENO: result: $STRIP" >&5
4126 echo "${ECHO_T}$STRIP" >&6
4128 echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4133 if test -z "$ac_cv_prog_STRIP"; then
4135 # Extract the first word of "strip", so it can be a program name with args.
4136 set dummy strip; ac_word=$2
4137 echo "$as_me:$LINENO: checking for $ac_word" >&5
4138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4139 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 if test -n "$ac_ct_STRIP"; then
4143 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 test -z "$as_dir" && as_dir=.
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4152 ac_cv_prog_ac_ct_STRIP="strip"
4153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4162 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4163 if test -n "$ac_ct_STRIP"; then
4164 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4165 echo "${ECHO_T}$ac_ct_STRIP" >&6
4167 echo "$as_me:$LINENO: result: no" >&5
4168 echo "${ECHO_T}no" >&6
4173 STRIP="$ac_cv_prog_STRIP"
4180 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4181 if test "${enable_libtool_lock+set}" = set; then
4182 enableval="$enable_libtool_lock"
4185 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4187 # Some flags need to be propagated to the compiler or linker for good
4191 # Find out which ABI we are using.
4192 echo '#line 4192 "configure"' > conftest.$ac_ext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; then
4198 case `/usr/bin/file conftest.$ac_objext` in
4214 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4215 SAVE_CFLAGS="$CFLAGS"
4216 CFLAGS="$CFLAGS -belf"
4217 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4218 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4219 if test "${lt_cv_cc_needs_belf+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 cat >conftest.$ac_ext <<_ACEOF
4231 #line $LINENO "configure"
4232 #include "confdefs.h"
4234 #ifdef F77_DUMMY_MAIN
4238 int F77_DUMMY_MAIN() { return 1; }
4248 rm -f conftest.$ac_objext conftest$ac_exeext
4249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4250 (eval $ac_link) 2>&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } &&
4254 { ac_try='test -s conftest$ac_exeext'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; }; then
4260 lt_cv_cc_needs_belf=yes
4262 echo "$as_me: failed program was:" >&5
4263 cat conftest.$ac_ext >&5
4264 lt_cv_cc_needs_belf=no
4266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4268 ac_cpp='$CPP $CPPFLAGS'
4269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4275 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4276 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4277 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4278 CFLAGS="$SAVE_CFLAGS"
4285 # Sed substitution that helps us do robust quoting. It backslashifies
4286 # metacharacters that are still active within double-quoted strings.
4287 Xsed='sed -e s/^X//'
4288 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4290 # Same as above, but do not quote variable references.
4291 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4293 # Sed substitution to delay expansion of an escaped shell variable in a
4294 # double_quote_subst'ed string.
4295 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4301 default_ofile=libtool
4302 can_build_shared=yes
4304 # All known linkers require a `.a' archive for static linking (except M$VC,
4305 # which needs '.lib').
4307 ltmain="$ac_aux_dir/ltmain.sh"
4308 ofile="$default_ofile"
4309 with_gnu_ld="$lt_cv_prog_gnu_ld"
4310 need_locks="$enable_libtool_lock"
4313 old_CFLAGS="$CFLAGS"
4315 # Set sane defaults for various variables
4316 test -z "$AR" && AR=ar
4317 test -z "$AR_FLAGS" && AR_FLAGS=cru
4318 test -z "$AS" && AS=as
4319 test -z "$CC" && CC=cc
4320 test -z "$DLLTOOL" && DLLTOOL=dlltool
4321 test -z "$LD" && LD=ld
4322 test -z "$LN_S" && LN_S="ln -s"
4323 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4324 test -z "$NM" && NM=nm
4325 test -z "$OBJDUMP" && OBJDUMP=objdump
4326 test -z "$RANLIB" && RANLIB=:
4327 test -z "$STRIP" && STRIP=:
4328 test -z "$ac_objext" && ac_objext=o
4330 if test x"$host" != x"$build"; then
4331 ac_tool_prefix=${host_alias}-
4336 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4339 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4344 # AIX sometimes has problems with the GCC collect2 program. For some
4345 # reason, if we set the COLLECT_NAMES environment variable, the problems
4346 # vanish in a puff of smoke.
4347 if test "X${COLLECT_NAMES+set}" != Xset; then
4349 export COLLECT_NAMES
4354 # Determine commands to create old-style static archives.
4355 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4356 old_postinstall_cmds='chmod 644 $oldlib'
4357 old_postuninstall_cmds=
4359 if test -n "$RANLIB"; then
4362 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4365 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4368 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4371 # Allow CC to be a program name with arguments.
4375 echo "$as_me:$LINENO: checking for objdir" >&5
4376 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4377 rm -f .libs 2>/dev/null
4378 mkdir .libs 2>/dev/null
4379 if test -d .libs; then
4382 # MS-DOS does not allow filenames that begin with a dot.
4385 rmdir .libs 2>/dev/null
4386 echo "$as_me:$LINENO: result: $objdir" >&5
4387 echo "${ECHO_T}$objdir" >&6
4391 # Check whether --with-pic or --without-pic was given.
4392 if test "${with_pic+set}" = set; then
4398 test -z "$pic_mode" && pic_mode=default
4400 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4401 # in isolation, and that seeing it set (from the cache) indicates that
4402 # the associated values are set (in the cache) correctly too.
4403 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4404 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4405 if test "${lt_cv_prog_cc_pic+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 lt_cv_prog_cc_shlib=
4411 lt_cv_prog_cc_static=
4412 lt_cv_prog_cc_no_builtin=
4413 lt_cv_prog_cc_can_build_shared=$can_build_shared
4415 if test "$GCC" = yes; then
4416 lt_cv_prog_cc_wl='-Wl,'
4417 lt_cv_prog_cc_static='-static'
4421 # Below there is a dirty hack to force normal static linking with -ldl
4422 # The problem is because libdl dynamically linked with both libc and
4423 # libC (AIX C++ library), which obviously doesn't included in libraries
4424 # list by gcc. This cause undefined symbols with -static flags.
4425 # This hack allows C programs to be linked with "-static -ldl", but
4426 # not sure about C++ programs.
4427 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4430 # FIXME: we need at least 68020 code to build shared libraries, but
4431 # adding the `-m68020' flag to GCC prevents building anything better,
4433 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4435 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4436 # PIC is the default for these OSes.
4438 darwin* | rhapsody*)
4439 # PIC is the default on this platform
4440 # Common symbols not allowed in MH_DYLIB files
4441 lt_cv_prog_cc_pic='-fno-common'
4443 cygwin* | mingw* | pw32* | os2*)
4444 # This hack is so that the source file can tell whether it is being
4445 # built for inclusion in a dll (and should export symbols for example).
4446 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4449 if test -d /usr/nec; then
4450 lt_cv_prog_cc_pic=-Kconform_pic
4454 lt_cv_prog_cc_pic='-fPIC'
4458 # PORTME Check for PIC flags for the system compiler.
4460 aix3* | aix4* | aix5*)
4461 lt_cv_prog_cc_wl='-Wl,'
4462 # All AIX code is PIC.
4463 if test "$host_cpu" = ia64; then
4464 # AIX 5 now supports IA64 processor
4465 lt_cv_prog_cc_static='-Bstatic'
4467 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4471 hpux9* | hpux10* | hpux11*)
4472 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4473 lt_cv_prog_cc_wl='-Wl,'
4474 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4475 lt_cv_prog_cc_pic='+Z'
4479 lt_cv_prog_cc_wl='-Wl,'
4480 lt_cv_prog_cc_static='-non_shared'
4481 # PIC (with -KPIC) is the default.
4484 cygwin* | mingw* | pw32* | os2*)
4485 # This hack is so that the source file can tell whether it is being
4486 # built for inclusion in a dll (and should export symbols for example).
4487 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4491 lt_cv_prog_cc_pic='-KPIC'
4492 lt_cv_prog_cc_static='-Bstatic'
4495 osf3* | osf4* | osf5*)
4496 # All OSF/1 code is PIC.
4497 lt_cv_prog_cc_wl='-Wl,'
4498 lt_cv_prog_cc_static='-non_shared'
4502 lt_cv_prog_cc_pic='-Kpic'
4503 lt_cv_prog_cc_static='-dn'
4504 lt_cv_prog_cc_shlib='-belf'
4508 lt_cv_prog_cc_pic='-KPIC'
4509 lt_cv_prog_cc_static='-Bstatic'
4510 lt_cv_prog_cc_wl='-Wl,'
4514 lt_cv_prog_cc_pic='-PIC'
4515 lt_cv_prog_cc_static='-Bstatic'
4516 lt_cv_prog_cc_wl='-Qoption ld '
4519 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4520 lt_cv_prog_cc_pic='-KPIC'
4521 lt_cv_prog_cc_static='-Bstatic'
4522 if test "x$host_vendor" = xsni; then
4523 lt_cv_prog_cc_wl='-LD'
4525 lt_cv_prog_cc_wl='-Wl,'
4530 lt_cv_prog_cc_pic='-pic'
4531 lt_cv_prog_cc_static='-Bstatic'
4535 if test -d /usr/nec ;then
4536 lt_cv_prog_cc_pic='-Kconform_pic'
4537 lt_cv_prog_cc_static='-Bstatic'
4542 lt_cv_prog_cc_can_build_shared=no
4549 if test -z "$lt_cv_prog_cc_pic"; then
4550 echo "$as_me:$LINENO: result: none" >&5
4551 echo "${ECHO_T}none" >&6
4553 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4554 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4556 # Check to make sure the pic_flag actually works.
4557 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4558 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4559 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 save_CFLAGS="$CFLAGS"
4563 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4564 cat >conftest.$ac_ext <<_ACEOF
4565 #line $LINENO "configure"
4566 #include "confdefs.h"
4568 #ifdef F77_DUMMY_MAIN
4572 int F77_DUMMY_MAIN() { return 1; }
4582 rm -f conftest.$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try='test -s conftest.$ac_objext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4595 hpux9* | hpux10* | hpux11*)
4596 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4597 # they create non-PIC objects. So, if there were any warnings, we
4598 # assume that PIC is not supported.
4599 if test -s conftest.err; then
4600 lt_cv_prog_cc_pic_works=no
4602 lt_cv_prog_cc_pic_works=yes
4606 lt_cv_prog_cc_pic_works=yes
4611 echo "$as_me: failed program was:" >&5
4612 cat conftest.$ac_ext >&5
4613 lt_cv_prog_cc_pic_works=no
4616 rm -f conftest.$ac_objext conftest.$ac_ext
4617 CFLAGS="$save_CFLAGS"
4622 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4624 lt_cv_prog_cc_can_build_shared=no
4626 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4629 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4630 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4633 # Check for any special shared library compilation flags.
4634 if test -n "$lt_cv_prog_cc_shlib"; then
4635 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4636 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4637 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4639 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4640 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4641 lt_cv_prog_cc_can_build_shared=no
4645 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4646 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4647 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 lt_cv_prog_cc_static_works=no
4651 save_LDFLAGS="$LDFLAGS"
4652 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4653 cat >conftest.$ac_ext <<_ACEOF
4654 #line $LINENO "configure"
4655 #include "confdefs.h"
4657 #ifdef F77_DUMMY_MAIN
4661 int F77_DUMMY_MAIN() { return 1; }
4671 rm -f conftest.$ac_objext conftest$ac_exeext
4672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4673 (eval $ac_link) 2>&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
4677 { ac_try='test -s conftest$ac_exeext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 lt_cv_prog_cc_static_works=yes
4685 echo "$as_me: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4689 LDFLAGS="$save_LDFLAGS"
4694 # Belt *and* braces to stop my trousers falling down:
4695 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4696 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4697 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4699 pic_flag="$lt_cv_prog_cc_pic"
4700 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4701 wl="$lt_cv_prog_cc_wl"
4702 link_static_flag="$lt_cv_prog_cc_static"
4703 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4704 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4707 # Check to see if options -o and -c are simultaneously supported by compiler
4708 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4709 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4710 if test "${lt_cv_compiler_c_o+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 $rm -r conftest 2>/dev/null
4717 echo "int some_variable = 0;" > conftest.$ac_ext
4719 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4720 # that will create temporary files in the current directory regardless of
4721 # the output directory. Thus, making CWD read-only will cause this test
4722 # to fail, enabling locking or at least warning the user not to do parallel
4725 save_CFLAGS="$CFLAGS"
4726 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4728 if { (eval echo configure:4728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4729 # The compiler can only warn and ignore the option if not recognized
4730 # So say no if there are warnings
4731 if test -s out/conftest.err; then
4732 lt_cv_compiler_c_o=no
4734 lt_cv_compiler_c_o=yes
4737 # Append any errors to the config.log.
4738 cat out/conftest.err 1>&5
4739 lt_cv_compiler_c_o=no
4741 CFLAGS="$save_CFLAGS"
4747 $rm -r conftest 2>/dev/null
4751 compiler_c_o=$lt_cv_compiler_c_o
4752 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4753 echo "${ECHO_T}$compiler_c_o" >&6
4755 if test x"$compiler_c_o" = x"yes"; then
4756 # Check to see if we can write to a .lo
4757 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4758 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4759 if test "${lt_cv_compiler_o_lo+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 lt_cv_compiler_o_lo=no
4764 save_CFLAGS="$CFLAGS"
4765 CFLAGS="$CFLAGS -c -o conftest.lo"
4766 save_objext="$ac_objext"
4768 cat >conftest.$ac_ext <<_ACEOF
4769 #line $LINENO "configure"
4770 #include "confdefs.h"
4772 #ifdef F77_DUMMY_MAIN
4776 int F77_DUMMY_MAIN() { return 1; }
4781 int some_variable = 0;
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788 (eval $ac_compile) 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); } &&
4792 { ac_try='test -s conftest.$ac_objext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4798 # The compiler can only warn and ignore the option if not recognized
4799 # So say no if there are warnings
4800 if test -s conftest.err; then
4801 lt_cv_compiler_o_lo=no
4803 lt_cv_compiler_o_lo=yes
4807 echo "$as_me: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4810 rm -f conftest.$ac_objext conftest.$ac_ext
4811 ac_objext="$save_objext"
4812 CFLAGS="$save_CFLAGS"
4816 compiler_o_lo=$lt_cv_compiler_o_lo
4817 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4818 echo "${ECHO_T}$compiler_o_lo" >&6
4823 # Check to see if we can do hard links to lock some files if needed
4824 hard_links="nottested"
4825 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4826 # do not overwrite the value of need_locks provided by the user
4827 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4828 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4833 ln conftest.a conftest.b 2>&5 || hard_links=no
4834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4835 echo "$as_me:$LINENO: result: $hard_links" >&5
4836 echo "${ECHO_T}$hard_links" >&6
4837 if test "$hard_links" = no; then
4838 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4839 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4846 if test "$GCC" = yes; then
4847 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4848 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4849 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4850 echo "int some_variable = 0;" > conftest.$ac_ext
4851 save_CFLAGS="$CFLAGS"
4852 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4853 compiler_rtti_exceptions=no
4854 cat >conftest.$ac_ext <<_ACEOF
4855 #line $LINENO "configure"
4856 #include "confdefs.h"
4858 #ifdef F77_DUMMY_MAIN
4862 int F77_DUMMY_MAIN() { return 1; }
4867 int some_variable = 0;
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -s conftest.$ac_objext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 # The compiler can only warn and ignore the option if not recognized
4885 # So say no if there are warnings
4886 if test -s conftest.err; then
4887 compiler_rtti_exceptions=no
4889 compiler_rtti_exceptions=yes
4893 echo "$as_me: failed program was:" >&5
4894 cat conftest.$ac_ext >&5
4896 rm -f conftest.$ac_objext conftest.$ac_ext
4897 CFLAGS="$save_CFLAGS"
4898 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4899 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4901 if test "$compiler_rtti_exceptions" = "yes"; then
4902 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4904 no_builtin_flag=' -fno-builtin'
4908 # See if the linker supports building shared libraries.
4909 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4910 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4912 allow_undefined_flag=
4914 need_lib_prefix=unknown
4915 need_version=unknown
4916 # when you set need_version to no, make sure it does not cause -set_version
4917 # flags to be left without arguments
4919 archive_expsym_cmds=
4920 old_archive_from_new_cmds=
4921 old_archive_from_expsyms_cmds=
4922 export_dynamic_flag_spec=
4923 whole_archive_flag_spec=
4924 thread_safe_flag_spec=
4925 hardcode_into_libs=no
4926 hardcode_libdir_flag_spec=
4927 hardcode_libdir_separator=
4930 hardcode_shlibpath_var=unsupported
4932 link_all_deplibs=unknown
4933 always_export_symbols=no
4934 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4935 # include_expsyms should be a list of space-separated symbols to be *always*
4936 # included in the symbol list
4938 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4939 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4940 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4941 # as well as any symbol that contains `d'.
4942 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4943 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4944 # platforms (ab)use it in PIC code, but their linkers get confused if
4945 # the symbol is explicitly referenced. Since portable code cannot
4946 # rely on this symbol name, it's probably fine to never include it in
4947 # preloaded symbol tables.
4948 extract_expsyms_cmds=
4951 cygwin* | mingw* | pw32*)
4952 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4953 # When not using gcc, we currently assume that we are using
4954 # Microsoft Visual C++.
4955 if test "$GCC" != yes; then
4965 if test "$with_gnu_ld" = yes; then
4966 # If archive_cmds runs LD, not CC, wlarc should be empty
4969 # See if GNU ld supports shared libraries.
4971 aix3* | aix4* | aix5*)
4972 # On AIX, the GNU linker is very broken
4973 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4977 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4978 *** to be unable to reliably create shared libraries on AIX.
4979 *** Therefore, libtool is disabling shared libraries support. If you
4980 *** really care for shared libraries, you may want to modify your PATH
4981 *** so that a non-GNU linker is found, and then restart.
4987 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)'
4988 hardcode_libdir_flag_spec='-L$libdir'
4989 hardcode_minus_L=yes
4991 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4992 # that the semantics of dynamic libraries on AmigaOS, at least up
4993 # to version 4, is to share data among multiple programs linked
4994 # with the same dynamic library. Since this doesn't match the
4995 # behavior of shared libraries on other platforms, we can use
5001 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5002 allow_undefined_flag=unsupported
5003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5004 # support --undefined. This deserves some investigation. FIXME
5005 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5011 cygwin* | mingw* | pw32*)
5012 # hardcode_libdir_flag_spec is actually meaningless, as there is
5013 # no search path for DLLs.
5014 hardcode_libdir_flag_spec='-L$libdir'
5015 allow_undefined_flag=unsupported
5016 always_export_symbols=yes
5018 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5019 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5020 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5021 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5022 else $CC -o impgen impgen.c ; fi)~
5023 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5025 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5027 # cygwin and mingw dlls have different entry points and sets of symbols
5029 # FIXME: what about values for MSVC?
5030 dll_entry=__cygwin_dll_entry@12
5031 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5035 dll_entry=_DllMainCRTStartup@12
5036 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5040 # mingw and cygwin differ, and it's simplest to just exclude the union
5041 # of the two symbol sets.
5042 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5044 # recent cygwin and mingw systems supply a stub DllMain which the user
5045 # can override, but on older systems we have to supply one (in ltdll.c)
5046 if test "x$lt_cv_need_dllmain" = "xyes"; then
5047 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5048 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5049 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5055 # Extract the symbol export list from an `--export-all' def file,
5056 # then regenerate the def file from the symbol export list, so that
5057 # the compiled dll only exports the symbol export list.
5058 # Be careful not to strip the DATA tag left be newer dlltools.
5059 export_symbols_cmds="$ltdll_cmds"'
5060 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5061 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5063 # If the export-symbols file already is a .def file (1st line
5064 # is EXPORTS), use it as is.
5065 # If DATA tags from a recent dlltool are present, honour them!
5066 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5067 cp $export_symbols $output_objdir/$soname-def;
5069 echo EXPORTS > $output_objdir/$soname-def;
5071 cat $export_symbols | while read symbol; do
5074 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5075 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5077 _lt_hint=`expr 1 + \$_lt_hint`;
5081 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5082 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5083 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5084 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5085 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5090 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5093 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5094 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5099 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5103 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5104 *** create shared libraries on Solaris systems. Therefore, libtool
5105 *** is disabling shared libraries support. We urge you to upgrade GNU
5106 *** binutils to release 2.9.1 or newer. Another option is to modify
5107 *** your PATH or compiler configuration so that the native linker is
5108 *** used, and then restart.
5111 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5113 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5120 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5123 hardcode_shlibpath_var=no
5127 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5129 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5136 if test "$ld_shlibs" = yes; then
5137 runpath_var=LD_RUN_PATH
5138 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5139 export_dynamic_flag_spec='${wl}--export-dynamic'
5141 cygwin* | mingw* | pw32*)
5142 # dlltool doesn't understand --whole-archive et. al.
5143 whole_archive_flag_spec=
5146 # ancient GNU ld didn't support --whole-archive et. al.
5147 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5148 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5150 whole_archive_flag_spec=
5156 # PORTME fill in a description of your system's linker (not GNU ld)
5159 allow_undefined_flag=unsupported
5160 always_export_symbols=yes
5161 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'
5162 # Note: this linker hardcodes the directories in LIBPATH if there
5163 # are no directories specified by -L.
5164 hardcode_minus_L=yes
5165 if test "$GCC" = yes && test -z "$link_static_flag"; then
5166 # Neither direct hardcoding nor static linking is supported with a
5168 hardcode_direct=unsupported
5173 if test "$host_cpu" = ia64; then
5174 # On IA64, the linker does run time linking by default, so we don't
5175 # have to do anything special.
5176 aix_use_runtimelinking=no
5177 exp_sym_flag='-Bexport'
5180 aix_use_runtimelinking=no
5182 # Test if we are trying to use run time linking or normal
5183 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5184 # need to do runtime linking.
5185 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5186 for ld_flag in $LDFLAGS; do
5187 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5188 aix_use_runtimelinking=yes
5194 exp_sym_flag='-bexport'
5195 no_entry_flag='-bnoentry'
5198 # When large executables or shared objects are built, AIX ld can
5199 # have problems creating the table of contents. If linking a library
5200 # or program results in "error TOC overflow" add -mminimal-toc to
5201 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5202 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5206 hardcode_libdir_separator=':'
5207 if test "$GCC" = yes; then
5208 case $host_os in aix4.[012]|aix4.[012].*)
5209 collect2name=`${CC} -print-prog-name=collect2`
5210 if test -f "$collect2name" && \
5211 strings "$collect2name" | grep resolve_lib_name >/dev/null
5213 # We have reworked collect2
5216 # We have old collect2
5217 hardcode_direct=unsupported
5218 # It fails to find uninstalled libraries when the uninstalled
5219 # path is not listed in the libpath. Setting hardcode_minus_L
5220 # to unsupported forces relinking
5221 hardcode_minus_L=yes
5222 hardcode_libdir_flag_spec='-L$libdir'
5223 hardcode_libdir_separator=
5227 shared_flag='-shared'
5230 if test "$host_cpu" = ia64; then
5231 shared_flag='${wl}-G'
5233 if test "$aix_use_runtimelinking" = yes; then
5234 shared_flag='${wl}-G'
5236 shared_flag='${wl}-bM:SRE'
5241 # It seems that -bexpall can do strange things, so it is better to
5242 # generate a list of symbols to export.
5243 always_export_symbols=yes
5244 if test "$aix_use_runtimelinking" = yes; then
5245 # Warning - without using the other runtime loading flags (-brtl),
5246 # -berok will link without error, but may produce a broken library.
5247 allow_undefined_flag='-berok'
5248 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5249 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5251 if test "$host_cpu" = ia64; then
5252 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5253 allow_undefined_flag="-z nodefs"
5254 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5256 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5257 # Warning - without using the other run time loading flags,
5258 # -berok will link without error, but may produce a broken library.
5259 allow_undefined_flag='${wl}-berok'
5260 # This is a bit strange, but is similar to how AIX traditionally builds
5261 # it's shared libraries.
5262 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5268 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)'
5269 hardcode_libdir_flag_spec='-L$libdir'
5270 hardcode_minus_L=yes
5271 # see comment about different semantics on the GNU ld section
5275 cygwin* | mingw* | pw32*)
5276 # When not using gcc, we currently assume that we are using
5277 # Microsoft Visual C++.
5278 # hardcode_libdir_flag_spec is actually meaningless, as there is
5279 # no search path for DLLs.
5280 hardcode_libdir_flag_spec=' '
5281 allow_undefined_flag=unsupported
5282 # Tell ltmain to make .lib files, not .a files.
5284 # FIXME: Setting linknames here is a bad hack.
5285 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5286 # The linker will automatically build a .lib file if we build a DLL.
5287 old_archive_from_new_cmds='true'
5288 # FIXME: Should let the user specify the lib program.
5289 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5290 fix_srcfile_path='`cygpath -w "$srcfile"`'
5293 darwin* | rhapsody*)
5295 rhapsody* | darwin1.[012])
5296 allow_undefined_flag='-undefined suppress'
5299 allow_undefined_flag='-flat_namespace -undefined suppress'
5302 # FIXME: Relying on posixy $() will cause problems for
5303 # cross-compilation, but unfortunately the echo tests do not
5304 # yet detect zsh echo's removal of \ escapes.
5305 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5306 # We need to add '_' to the symbols in $export_symbols first
5307 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5309 hardcode_shlibpath_var=no
5310 whole_archive_flag_spec='-all_load $convenience'
5317 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5318 # support. Future versions do this automatically, but an explicit c++rt0.o
5319 # does not break anything, and helps significantly (at the cost of a little
5322 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5323 hardcode_libdir_flag_spec='-R$libdir'
5325 hardcode_shlibpath_var=no
5328 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5330 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5332 hardcode_minus_L=yes
5333 hardcode_shlibpath_var=no
5336 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5338 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5339 hardcode_libdir_flag_spec='-R$libdir'
5341 hardcode_shlibpath_var=no
5344 hpux9* | hpux10* | hpux11*)
5346 hpux9*) 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' ;;
5347 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5349 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5350 hardcode_libdir_separator=:
5352 hardcode_minus_L=yes # Not in the search PATH, but as the default
5353 # location of the library.
5354 export_dynamic_flag_spec='${wl}-E'
5358 if test "$GCC" = yes; then
5359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5361 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5364 hardcode_libdir_separator=:
5365 link_all_deplibs=yes
5369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5372 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5374 hardcode_libdir_flag_spec='-R$libdir'
5376 hardcode_shlibpath_var=no
5380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5383 hardcode_libdir_separator=:
5384 hardcode_shlibpath_var=no
5389 hardcode_shlibpath_var=no
5390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5391 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5393 export_dynamic_flag_spec='${wl}-E'
5396 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5398 hardcode_libdir_flag_spec='-R$libdir'
5401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5402 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5409 hardcode_libdir_flag_spec='-L$libdir'
5410 hardcode_minus_L=yes
5411 allow_undefined_flag=unsupported
5412 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'
5413 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5417 if test "$GCC" = yes; then
5418 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5419 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5421 allow_undefined_flag=' -expect_unresolved \*'
5422 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5425 hardcode_libdir_separator=:
5428 osf4* | osf5*) # as osf3* with the addition of -msym flag
5429 if test "$GCC" = yes; then
5430 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5431 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5432 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5434 allow_undefined_flag=' -expect_unresolved \*'
5435 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5436 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5437 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5439 #Both c and cxx compiler support -rpath directly
5440 hardcode_libdir_flag_spec='-rpath $libdir'
5442 hardcode_libdir_separator=:
5446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5447 hardcode_shlibpath_var=no
5448 runpath_var=LD_RUN_PATH
5449 hardcode_runpath_var=yes
5450 export_dynamic_flag_spec='${wl}-Bexport'
5454 # gcc --version < 3.0 without binutils cannot create self contained
5455 # shared libraries reliably, requiring libgcc.a to resolve some of
5456 # the object symbols generated in some cases. Libraries that use
5457 # assert need libgcc.a to resolve __eprintf, for example. Linking
5458 # a copy of libgcc.a into every shared library to guarantee resolving
5459 # such symbols causes other problems: According to Tim Van Holder
5460 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5461 # (to the application) exception stack for one thing.
5462 no_undefined_flag=' -z defs'
5463 if test "$GCC" = yes; then
5464 case `$CC --version 2>/dev/null` in
5468 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5469 *** create self contained shared libraries on Solaris systems, without
5470 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5471 *** -no-undefined support, which will at least allow you to build shared
5472 *** libraries. However, you may find that when you link such libraries
5473 *** into an application without using GCC, you have to manually add
5474 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5475 *** upgrade to a newer version of GCC. Another option is to rebuild your
5476 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5483 # $CC -shared without GNU ld will not create a library from C++
5484 # object files and a static libstdc++, better avoid it by now
5485 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5486 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5487 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5488 hardcode_libdir_flag_spec='-R$libdir'
5489 hardcode_shlibpath_var=no
5491 solaris2.[0-5] | solaris2.[0-5].*) ;;
5492 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5493 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5495 link_all_deplibs=yes
5499 if test "x$host_vendor" = xsequent; then
5500 # Use $CC to link under sequent, because it throws in some extra .o
5501 # files that make .init and .fini sections work.
5502 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5504 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5506 hardcode_libdir_flag_spec='-L$libdir'
5508 hardcode_minus_L=yes
5509 hardcode_shlibpath_var=no
5513 if test "x$host_vendor" = xsno; then
5514 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5515 hardcode_direct=yes # is this really true???
5517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5518 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5520 runpath_var='LD_RUN_PATH'
5521 hardcode_shlibpath_var=no
5525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5526 hardcode_shlibpath_var=no
5527 export_dynamic_flag_spec='-Bexport'
5531 no_undefined_flag=' -z text'
5532 # $CC -shared without GNU ld will not create a library from C++
5533 # object files and a static libstdc++, better avoid it by now
5534 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5535 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5536 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5537 hardcode_libdir_flag_spec=
5538 hardcode_shlibpath_var=no
5539 runpath_var='LD_RUN_PATH'
5543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5544 hardcode_libdir_flag_spec='-L$libdir'
5545 hardcode_shlibpath_var=no
5549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5550 hardcode_libdir_flag_spec='-L$libdir'
5551 hardcode_shlibpath_var=no
5555 if test -d /usr/nec; then
5556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5557 hardcode_shlibpath_var=no
5558 runpath_var=LD_RUN_PATH
5559 hardcode_runpath_var=yes
5565 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5568 hardcode_shlibpath_var=no
5569 hardcode_runpath_var=yes
5570 runpath_var=LD_RUN_PATH
5573 sysv5uw7* | unixware7*)
5574 no_undefined_flag='${wl}-z ${wl}text'
5575 if test "$GCC" = yes; then
5576 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5578 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5580 runpath_var='LD_RUN_PATH'
5581 hardcode_shlibpath_var=no
5589 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5590 echo "${ECHO_T}$ld_shlibs" >&6
5591 test "$ld_shlibs" = no && can_build_shared=no
5593 # Check hardcoding attributes.
5594 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5595 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5597 if test -n "$hardcode_libdir_flag_spec" || \
5598 test -n "$runpath_var"; then
5600 # We can hardcode non-existant directories.
5601 if test "$hardcode_direct" != no &&
5602 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5603 # have to relink, otherwise we might link with an installed library
5604 # when we should be linking with a yet-to-be-installed one
5605 ## test "$hardcode_shlibpath_var" != no &&
5606 test "$hardcode_minus_L" != no; then
5607 # Linking always hardcodes the temporary library directory.
5608 hardcode_action=relink
5610 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5611 hardcode_action=immediate
5614 # We cannot hardcode anything, or else we can only hardcode existing
5616 hardcode_action=unsupported
5618 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5619 echo "${ECHO_T}$hardcode_action" >&6
5623 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5624 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5625 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5626 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5627 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5628 echo "$as_me:$LINENO: result: yes" >&5
5629 echo "${ECHO_T}yes" >&6
5631 echo "$as_me:$LINENO: result: no" >&5
5632 echo "${ECHO_T}no" >&6
5635 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5638 # PORTME Fill in your ld.so characteristics
5639 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5640 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5642 libname_spec='lib$name'
5649 shlibpath_overrides_runpath=unknown
5651 dynamic_linker="$host_os ld.so"
5652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5653 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5658 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5659 shlibpath_var=LIBPATH
5661 # AIX has no versioning support, so we append a major version to the name.
5662 soname_spec='${libname}${release}.so$major'
5667 if test "$host_cpu" = ia64; then
5668 # AIX 5 supports IA64
5669 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5670 shlibpath_var=LD_LIBRARY_PATH
5672 # With GCC up to 2.95.x, collect2 would create an import file
5673 # for dependence libraries. The import file would start with
5674 # the line `#! .'. This would cause the generated library to
5675 # depend on `.', always an invalid library. This was fixed in
5676 # development snapshots of GCC prior to 3.0.
5678 aix4 | aix4.[01] | aix4.[01].*)
5679 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5681 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5688 # AIX (on Power*) has no versioning support, so currently we can
5689 # not hardcode correct soname into executable. Probably we can
5690 # add versioning support to collect2, so additional links can
5691 # be useful in future.
5692 if test "$aix_use_runtimelinking" = yes; then
5693 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5694 # instead of lib<name>.a to let people know that these are not
5695 # typical AIX shared libraries.
5696 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5698 # We preserve .a as extension for shared libraries through AIX4.2
5699 # and later when we are not doing run time linking.
5700 library_names_spec='${libname}${release}.a $libname.a'
5701 soname_spec='${libname}${release}.so$major'
5703 shlibpath_var=LIBPATH
5708 library_names_spec='$libname.ixlibrary $libname.a'
5709 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5710 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'
5714 library_names_spec='${libname}.so'
5715 dynamic_linker="$host_os ld.so"
5716 shlibpath_var=LIBRARY_PATH
5722 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5723 soname_spec='${libname}${release}.so$major'
5724 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5725 shlibpath_var=LD_LIBRARY_PATH
5726 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5727 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5728 export_dynamic_flag_spec=-rdynamic
5729 # the default ld.so.conf also contains /usr/contrib/lib and
5730 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5731 # libtool to hard-code these into programs
5734 cygwin* | mingw* | pw32*)
5735 version_type=windows
5738 case $GCC,$host_os in
5740 library_names_spec='$libname.dll.a'
5741 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5742 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5743 dldir=$destdir/`dirname \$dlpath`~
5744 test -d \$dldir || mkdir -p \$dldir~
5745 $install_prog .libs/$dlname \$dldir/$dlname'
5746 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5747 dlpath=$dir/\$dldll~
5751 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5752 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5758 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5761 dynamic_linker='Win32 ld.exe'
5762 # FIXME: first we should search . and the directory the executable is in
5766 darwin* | rhapsody*)
5767 dynamic_linker="$host_os dyld"
5771 # FIXME: Relying on posixy $() will cause problems for
5772 # cross-compilation, but unfortunately the echo tests do not
5773 # yet detect zsh echo's removal of \ escapes.
5774 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5775 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5776 shlibpath_overrides_runpath=yes
5777 shlibpath_var=DYLD_LIBRARY_PATH
5785 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5786 version_type=freebsd-$objformat
5787 case $version_type in
5789 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5794 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5798 shlibpath_var=LD_LIBRARY_PATH
5801 shlibpath_overrides_runpath=yes
5804 shlibpath_overrides_runpath=no
5805 hardcode_into_libs=yes
5814 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5815 soname_spec='${libname}${release}.so$major'
5816 shlibpath_var=LD_LIBRARY_PATH
5817 hardcode_into_libs=yes
5820 hpux9* | hpux10* | hpux11*)
5821 # Give a soname corresponding to the major version so that dld.sl refuses to
5822 # link against other versions.
5823 dynamic_linker="$host_os dld.sl"
5827 shlibpath_var=SHLIB_PATH
5828 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5829 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5830 soname_spec='${libname}${release}.sl$major'
5831 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5832 postinstall_cmds='chmod 555 $lib'
5839 soname_spec='${libname}${release}.so$major'
5840 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5846 case $LD in # libtool.m4 will add one of these switches to LD
5847 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5848 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5849 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5850 *) libsuff= shlibsuff= libmagic=never-match;;
5854 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5855 shlibpath_overrides_runpath=no
5856 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5857 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5860 # No shared lib support for Linux oldld, aout, or coff.
5861 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5865 # This must be Linux ELF.
5870 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5871 soname_spec='${libname}${release}.so$major'
5872 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5873 shlibpath_var=LD_LIBRARY_PATH
5874 shlibpath_overrides_runpath=no
5875 # This implies no fast_install, which is unacceptable.
5876 # Some rework will be needed to allow for fast_install
5877 # before this can be enabled.
5878 hardcode_into_libs=yes
5880 # We used to test for /lib/ld.so.1 and disable shared libraries on
5881 # powerpc, because MkLinux only supported shared libraries with the
5882 # GNU dynamic linker. Since this was broken with cross compilers,
5883 # most powerpc-linux boxes support dynamic linking these days and
5884 # people can always --disable-shared, the test was removed, and we
5885 # assume the GNU/Linux dynamic linker is in use.
5886 dynamic_linker='GNU/Linux ld.so'
5893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5894 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5896 dynamic_linker='NetBSD (a.out) ld.so'
5898 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5899 soname_spec='${libname}${release}.so$major'
5900 dynamic_linker='NetBSD ld.elf_so'
5902 shlibpath_var=LD_LIBRARY_PATH
5903 shlibpath_overrides_runpath=yes
5904 hardcode_into_libs=yes
5909 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5910 shlibpath_var=LD_LIBRARY_PATH
5911 shlibpath_overrides_runpath=yes
5918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5920 openbsd2.[89] | openbsd2.[89].*)
5921 shlibpath_overrides_runpath=no
5924 shlibpath_overrides_runpath=yes
5928 shlibpath_overrides_runpath=yes
5930 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5932 shlibpath_var=LD_LIBRARY_PATH
5936 libname_spec='$name'
5938 library_names_spec='$libname.dll $libname.a'
5939 dynamic_linker='OS/2 ld.exe'
5940 shlibpath_var=LIBPATH
5943 osf3* | osf4* | osf5*)
5946 soname_spec='${libname}${release}.so'
5947 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5948 shlibpath_var=LD_LIBRARY_PATH
5949 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5950 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5955 soname_spec='${libname}${release}.so$major'
5956 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5957 shlibpath_var=LD_LIBRARY_PATH
5964 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5965 soname_spec='${libname}${release}.so$major'
5966 shlibpath_var=LD_LIBRARY_PATH
5967 shlibpath_overrides_runpath=yes
5968 hardcode_into_libs=yes
5969 # ldd complains unless libraries are executable
5970 postinstall_cmds='chmod +x $lib'
5975 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5976 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5977 shlibpath_var=LD_LIBRARY_PATH
5978 shlibpath_overrides_runpath=yes
5979 if test "$with_gnu_ld" = yes; then
5985 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5987 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5988 soname_spec='${libname}${release}.so$major'
5989 shlibpath_var=LD_LIBRARY_PATH
5990 case $host_vendor in
5992 shlibpath_overrides_runpath=no
5997 shlibpath_overrides_runpath=no
5998 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6005 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6006 soname_spec='${libname}${release}.so$major'
6007 shlibpath_var=LD_LIBRARY_PATH
6014 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6015 soname_spec='${libname}${release}.so$major'
6016 shlibpath_var=LD_LIBRARY_PATH
6020 if test -d /usr/nec ;then
6022 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6023 soname_spec='$libname.so.$major'
6024 shlibpath_var=LD_LIBRARY_PATH
6032 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6033 echo "${ECHO_T}$dynamic_linker" >&6
6034 test "$dynamic_linker" = no && can_build_shared=no
6036 # Report the final consequences.
6037 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6038 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6039 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6040 echo "${ECHO_T}$can_build_shared" >&6
6042 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6043 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6044 test "$can_build_shared" = "no" && enable_shared=no
6046 # On AIX, shared libraries and static libraries use the same namespace, and
6047 # are all built from PIC.
6050 test "$enable_shared" = yes && enable_static=no
6051 if test -n "$RANLIB"; then
6052 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6053 postinstall_cmds='$RANLIB $lib'
6058 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6059 test "$enable_shared" = yes && enable_static=no
6063 echo "$as_me:$LINENO: result: $enable_shared" >&5
6064 echo "${ECHO_T}$enable_shared" >&6
6066 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6067 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6068 # Make sure either enable_shared or enable_static is yes.
6069 test "$enable_shared" = yes || enable_static=yes
6070 echo "$as_me:$LINENO: result: $enable_static" >&5
6071 echo "${ECHO_T}$enable_static" >&6
6073 if test "$hardcode_action" = relink; then
6074 # Fast installation is not supported
6075 enable_fast_install=no
6076 elif test "$shlibpath_overrides_runpath" = yes ||
6077 test "$enable_shared" = no; then
6078 # Fast installation is not necessary
6079 enable_fast_install=needless
6082 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6083 if test "$GCC" = yes; then
6084 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6087 if test "x$enable_dlopen" != xyes; then
6088 enable_dlopen=unknown
6089 enable_dlopen_self=unknown
6090 enable_dlopen_self_static=unknown
6097 lt_cv_dlopen="load_add_on"
6099 lt_cv_dlopen_self=yes
6102 cygwin* | mingw* | pw32*)
6103 lt_cv_dlopen="LoadLibrary"
6108 echo "$as_me:$LINENO: checking for shl_load" >&5
6109 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6110 if test "${ac_cv_func_shl_load+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 cat >conftest.$ac_ext <<_ACEOF
6114 #line $LINENO "configure"
6115 #include "confdefs.h"
6116 /* System header to define __stub macros and hopefully few prototypes,
6117 which can conflict with char shl_load (); below. */
6119 /* Override any gcc2 internal prototype to avoid an error. */
6123 /* We use char because int might match the return type of a gcc2
6124 builtin and then its argument prototype would still apply. */
6128 #ifdef F77_DUMMY_MAIN
6132 int F77_DUMMY_MAIN() { return 1; }
6137 /* The GNU C library defines this for functions which it implements
6138 to always fail with ENOSYS. Some functions are actually named
6139 something starting with __ and the normal name is an alias. */
6140 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } &&
6156 { ac_try='test -s conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_func_shl_load=yes
6164 echo "$as_me: failed program was:" >&5
6165 cat conftest.$ac_ext >&5
6166 ac_cv_func_shl_load=no
6168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6170 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6171 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6172 if test $ac_cv_func_shl_load = yes; then
6173 lt_cv_dlopen="shl_load"
6175 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6176 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6177 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 ac_check_lib_save_LIBS=$LIBS
6182 cat >conftest.$ac_ext <<_ACEOF
6183 #line $LINENO "configure"
6184 #include "confdefs.h"
6186 /* Override any gcc2 internal prototype to avoid an error. */
6190 /* We use char because int might match the return type of a gcc2
6191 builtin and then its argument prototype would still apply. */
6193 #ifdef F77_DUMMY_MAIN
6197 int F77_DUMMY_MAIN() { return 1; }
6207 rm -f conftest.$ac_objext conftest$ac_exeext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6209 (eval $ac_link) 2>&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -s conftest$ac_exeext'
6214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6219 ac_cv_lib_dld_shl_load=yes
6221 echo "$as_me: failed program was:" >&5
6222 cat conftest.$ac_ext >&5
6223 ac_cv_lib_dld_shl_load=no
6225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6226 LIBS=$ac_check_lib_save_LIBS
6228 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6229 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6230 if test $ac_cv_lib_dld_shl_load = yes; then
6231 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6233 echo "$as_me:$LINENO: checking for dlopen" >&5
6234 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6235 if test "${ac_cv_func_dlopen+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 cat >conftest.$ac_ext <<_ACEOF
6239 #line $LINENO "configure"
6240 #include "confdefs.h"
6241 /* System header to define __stub macros and hopefully few prototypes,
6242 which can conflict with char dlopen (); below. */
6244 /* Override any gcc2 internal prototype to avoid an error. */
6248 /* We use char because int might match the return type of a gcc2
6249 builtin and then its argument prototype would still apply. */
6253 #ifdef F77_DUMMY_MAIN
6257 int F77_DUMMY_MAIN() { return 1; }
6262 /* The GNU C library defines this for functions which it implements
6263 to always fail with ENOSYS. Some functions are actually named
6264 something starting with __ and the normal name is an alias. */
6265 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6275 rm -f conftest.$ac_objext conftest$ac_exeext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6277 (eval $ac_link) 2>&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -s conftest$ac_exeext'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287 ac_cv_func_dlopen=yes
6289 echo "$as_me: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6291 ac_cv_func_dlopen=no
6293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6295 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6296 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6297 if test $ac_cv_func_dlopen = yes; then
6298 lt_cv_dlopen="dlopen"
6300 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6301 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6302 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 ac_check_lib_save_LIBS=$LIBS
6307 cat >conftest.$ac_ext <<_ACEOF
6308 #line $LINENO "configure"
6309 #include "confdefs.h"
6311 /* Override any gcc2 internal prototype to avoid an error. */
6315 /* We use char because int might match the return type of a gcc2
6316 builtin and then its argument prototype would still apply. */
6318 #ifdef F77_DUMMY_MAIN
6322 int F77_DUMMY_MAIN() { return 1; }
6332 rm -f conftest.$ac_objext conftest$ac_exeext
6333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6334 (eval $ac_link) 2>&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } &&
6338 { ac_try='test -s conftest$ac_exeext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_cv_lib_dl_dlopen=yes
6346 echo "$as_me: failed program was:" >&5
6347 cat conftest.$ac_ext >&5
6348 ac_cv_lib_dl_dlopen=no
6350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6351 LIBS=$ac_check_lib_save_LIBS
6353 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6354 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6355 if test $ac_cv_lib_dl_dlopen = yes; then
6356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6358 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6359 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6360 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 ac_check_lib_save_LIBS=$LIBS
6365 cat >conftest.$ac_ext <<_ACEOF
6366 #line $LINENO "configure"
6367 #include "confdefs.h"
6369 /* Override any gcc2 internal prototype to avoid an error. */
6373 /* We use char because int might match the return type of a gcc2
6374 builtin and then its argument prototype would still apply. */
6376 #ifdef F77_DUMMY_MAIN
6380 int F77_DUMMY_MAIN() { return 1; }
6390 rm -f conftest.$ac_objext conftest$ac_exeext
6391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6392 (eval $ac_link) 2>&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -s conftest$ac_exeext'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 ac_cv_lib_svld_dlopen=yes
6404 echo "$as_me: failed program was:" >&5
6405 cat conftest.$ac_ext >&5
6406 ac_cv_lib_svld_dlopen=no
6408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6409 LIBS=$ac_check_lib_save_LIBS
6411 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6412 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6413 if test $ac_cv_lib_svld_dlopen = yes; then
6414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6416 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6417 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6418 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 ac_check_lib_save_LIBS=$LIBS
6423 cat >conftest.$ac_ext <<_ACEOF
6424 #line $LINENO "configure"
6425 #include "confdefs.h"
6427 /* Override any gcc2 internal prototype to avoid an error. */
6431 /* We use char because int might match the return type of a gcc2
6432 builtin and then its argument prototype would still apply. */
6434 #ifdef F77_DUMMY_MAIN
6438 int F77_DUMMY_MAIN() { return 1; }
6448 rm -f conftest.$ac_objext conftest$ac_exeext
6449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6450 (eval $ac_link) 2>&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 ac_cv_lib_dld_dld_link=yes
6462 echo "$as_me: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6464 ac_cv_lib_dld_dld_link=no
6466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6467 LIBS=$ac_check_lib_save_LIBS
6469 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6470 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6471 if test $ac_cv_lib_dld_dld_link = yes; then
6472 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6493 if test "x$lt_cv_dlopen" != xno; then
6499 case $lt_cv_dlopen in
6501 save_CPPFLAGS="$CPPFLAGS"
6502 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6504 save_LDFLAGS="$LDFLAGS"
6505 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6508 LIBS="$lt_cv_dlopen_libs $LIBS"
6510 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6511 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6512 if test "${lt_cv_dlopen_self+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 if test "$cross_compiling" = yes; then :
6516 lt_cv_dlopen_self=cross
6518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6519 lt_status=$lt_dlunknown
6520 cat > conftest.$ac_ext <<EOF
6521 #line 6521 "configure"
6522 #include "confdefs.h"
6531 # define LT_DLGLOBAL RTLD_GLOBAL
6534 # define LT_DLGLOBAL DL_GLOBAL
6536 # define LT_DLGLOBAL 0
6540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6541 find out it does not work in some platform. */
6542 #ifndef LT_DLLAZY_OR_NOW
6544 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6547 # define LT_DLLAZY_OR_NOW DL_LAZY
6550 # define LT_DLLAZY_OR_NOW RTLD_NOW
6553 # define LT_DLLAZY_OR_NOW DL_NOW
6555 # define LT_DLLAZY_OR_NOW 0
6563 extern "C" void exit (int);
6566 void fnord() { int i=42;}
6569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6570 int status = $lt_dlunknown;
6574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6575 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6576 /* dlclose (self); */
6582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6583 (eval $ac_link) 2>&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6587 (./conftest; exit; ) 2>/dev/null
6590 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6591 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6592 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6595 # compilation failed
6596 lt_cv_dlopen_self=no
6603 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6604 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6606 if test "x$lt_cv_dlopen_self" = xyes; then
6607 LDFLAGS="$LDFLAGS $link_static_flag"
6608 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6609 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6610 if test "${lt_cv_dlopen_self_static+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 if test "$cross_compiling" = yes; then :
6614 lt_cv_dlopen_self_static=cross
6616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6617 lt_status=$lt_dlunknown
6618 cat > conftest.$ac_ext <<EOF
6619 #line 6619 "configure"
6620 #include "confdefs.h"
6629 # define LT_DLGLOBAL RTLD_GLOBAL
6632 # define LT_DLGLOBAL DL_GLOBAL
6634 # define LT_DLGLOBAL 0
6638 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6639 find out it does not work in some platform. */
6640 #ifndef LT_DLLAZY_OR_NOW
6642 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6645 # define LT_DLLAZY_OR_NOW DL_LAZY
6648 # define LT_DLLAZY_OR_NOW RTLD_NOW
6651 # define LT_DLLAZY_OR_NOW DL_NOW
6653 # define LT_DLLAZY_OR_NOW 0
6661 extern "C" void exit (int);
6664 void fnord() { int i=42;}
6667 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6668 int status = $lt_dlunknown;
6672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6673 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6674 /* dlclose (self); */
6680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6681 (eval $ac_link) 2>&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6685 (./conftest; exit; ) 2>/dev/null
6688 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6689 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6690 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6693 # compilation failed
6694 lt_cv_dlopen_self_static=no
6701 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6702 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6705 CPPFLAGS="$save_CPPFLAGS"
6706 LDFLAGS="$save_LDFLAGS"
6711 case $lt_cv_dlopen_self in
6712 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6713 *) enable_dlopen_self=unknown ;;
6716 case $lt_cv_dlopen_self_static in
6717 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6718 *) enable_dlopen_self_static=unknown ;;
6723 if test "$enable_shared" = yes && test "$GCC" = yes; then
6724 case $archive_cmds in
6726 # FIXME: we may have to deal with multi-command sequences.
6729 # Test whether the compiler implicitly links with -lc since on some
6730 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6731 # to ld, don't add -lc before -lgcc.
6732 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6733 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6734 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 echo 'static int dummy;' > conftest.$ac_ext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6741 (eval $ac_compile) 2>&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; then
6747 libobjs=conftest.$ac_objext
6749 wl=$lt_cv_prog_cc_wl
6755 save_allow_undefined_flag=$allow_undefined_flag
6756 allow_undefined_flag=
6757 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6758 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }
6763 lt_cv_archive_cmds_need_lc=no
6765 lt_cv_archive_cmds_need_lc=yes
6767 allow_undefined_flag=$save_allow_undefined_flag
6769 cat conftest.err 1>&5
6773 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6774 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6778 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6780 # The second clause should only fire when bootstrapping the
6781 # libtool distribution, otherwise you forgot to ship ltmain.sh
6782 # with your package, and you will get complaints that there are
6783 # no rules to generate ltmain.sh.
6784 if test -f "$ltmain"; then
6787 # If there is no Makefile yet, we rely on a make rule to execute
6788 # `config.status --recheck' to rerun these tests and create the
6789 # libtool script then.
6790 test -f Makefile && make "$ltmain"
6793 if test -f "$ltmain"; then
6794 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6797 echo creating $ofile
6799 # Now quote all the things that may contain metacharacters while being
6800 # careful not to overquote the AC_SUBSTed values. We take copies of the
6801 # variables and quote the copies for generation of the libtool script.
6802 for var in echo old_CC old_CFLAGS \
6803 AR AR_FLAGS CC LD LN_S NM SHELL \
6804 reload_flag reload_cmds wl \
6805 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6806 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6807 library_names_spec soname_spec \
6808 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6809 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6810 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6811 old_striplib striplib file_magic_cmd export_symbols_cmds \
6812 deplibs_check_method allow_undefined_flag no_undefined_flag \
6813 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6814 global_symbol_to_c_name_address \
6815 hardcode_libdir_flag_spec hardcode_libdir_separator \
6816 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6817 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6820 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6821 old_postinstall_cmds | old_postuninstall_cmds | \
6822 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6823 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6824 postinstall_cmds | postuninstall_cmds | \
6825 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6826 # Double-quote double-evaled strings.
6827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6830 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6835 cat <<__EOF__ > "${ofile}T"
6838 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6839 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6840 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6842 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6843 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6845 # This program is free software; you can redistribute it and/or modify
6846 # it under the terms of the GNU General Public License as published by
6847 # the Free Software Foundation; either version 2 of the License, or
6848 # (at your option) any later version.
6850 # This program is distributed in the hope that it will be useful, but
6851 # WITHOUT ANY WARRANTY; without even the implied warranty of
6852 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6853 # General Public License for more details.
6855 # You should have received a copy of the GNU General Public License
6856 # along with this program; if not, write to the Free Software
6857 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6859 # As a special exception to the GNU General Public License, if you
6860 # distribute this file as part of a program that contains a
6861 # configuration script generated by Autoconf, you may include it under
6862 # the same distribution terms that you use for the rest of that program.
6864 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6865 Xsed="sed -e s/^X//"
6867 # The HP-UX ksh and POSIX shell print the target directory to stdout
6869 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6871 # ### BEGIN LIBTOOL CONFIG
6873 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6875 # Shell to use when invoking shell scripts.
6878 # Whether or not to build shared libraries.
6879 build_libtool_libs=$enable_shared
6881 # Whether or not to build static libraries.
6882 build_old_libs=$enable_static
6884 # Whether or not to add -lc for building shared libraries.
6885 build_libtool_need_lc=$need_lc
6887 # Whether or not to optimize for fast installation.
6888 fast_install=$enable_fast_install
6891 host_alias=$host_alias
6894 # An echo program that does not interpret backslashes.
6899 AR_FLAGS=$lt_AR_FLAGS
6901 # The default C compiler.
6904 # Is the compiler the GNU C compiler?
6907 # The linker used to build libraries.
6910 # Whether we need hard or soft links.
6913 # A BSD-compatible nm program.
6916 # A symbol stripping program
6919 # Used to examine libraries when file_magic_cmd begins "file"
6920 MAGIC_CMD=$MAGIC_CMD
6922 # Used on cygwin: DLL creation program.
6925 # Used on cygwin: object dumper.
6928 # Used on cygwin: assembler.
6931 # The name of the directory that contains temporary libtool files.
6934 # How to create reloadable object files.
6935 reload_flag=$lt_reload_flag
6936 reload_cmds=$lt_reload_cmds
6938 # How to pass a linker flag through the compiler.
6941 # Object file suffix (normally "o").
6944 # Old archive suffix (normally "a").
6947 # Executable file suffix (normally "").
6950 # Additional compiler flags for building library objects.
6951 pic_flag=$lt_pic_flag
6954 # Does compiler simultaneously support -c and -o options?
6955 compiler_c_o=$lt_compiler_c_o
6957 # Can we write directly to a .lo ?
6958 compiler_o_lo=$lt_compiler_o_lo
6960 # Must we lock files when doing compilation ?
6961 need_locks=$lt_need_locks
6963 # Do we need the lib prefix for modules?
6964 need_lib_prefix=$need_lib_prefix
6966 # Do we need a version for libraries?
6967 need_version=$need_version
6969 # Whether dlopen is supported.
6970 dlopen_support=$enable_dlopen
6972 # Whether dlopen of programs is supported.
6973 dlopen_self=$enable_dlopen_self
6975 # Whether dlopen of statically linked programs is supported.
6976 dlopen_self_static=$enable_dlopen_self_static
6978 # Compiler flag to prevent dynamic linking.
6979 link_static_flag=$lt_link_static_flag
6981 # Compiler flag to turn off builtin functions.
6982 no_builtin_flag=$lt_no_builtin_flag
6984 # Compiler flag to allow reflexive dlopens.
6985 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6987 # Compiler flag to generate shared objects directly from archives.
6988 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6990 # Compiler flag to generate thread-safe objects.
6991 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6993 # Library versioning type.
6994 version_type=$version_type
6996 # Format of library name prefix.
6997 libname_spec=$lt_libname_spec
6999 # List of archive names. First name is the real one, the rest are links.
7000 # The last name is the one that the linker finds with -lNAME.
7001 library_names_spec=$lt_library_names_spec
7003 # The coded name of the library, if different from the real name.
7004 soname_spec=$lt_soname_spec
7006 # Commands used to build and install an old-style archive.
7008 old_archive_cmds=$lt_old_archive_cmds
7009 old_postinstall_cmds=$lt_old_postinstall_cmds
7010 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7012 # Create an old-style archive from a shared archive.
7013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7015 # Create a temporary old-style archive to link instead of a shared archive.
7016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7018 # Commands used to build and install a shared archive.
7019 archive_cmds=$lt_archive_cmds
7020 archive_expsym_cmds=$lt_archive_expsym_cmds
7021 postinstall_cmds=$lt_postinstall_cmds
7022 postuninstall_cmds=$lt_postuninstall_cmds
7024 # Commands to strip libraries.
7025 old_striplib=$lt_old_striplib
7026 striplib=$lt_striplib
7028 # Method to check whether dependent libraries are shared objects.
7029 deplibs_check_method=$lt_deplibs_check_method
7031 # Command to use when deplibs_check_method == file_magic.
7032 file_magic_cmd=$lt_file_magic_cmd
7034 # Flag that allows shared libraries with undefined symbols to be built.
7035 allow_undefined_flag=$lt_allow_undefined_flag
7037 # Flag that forces no undefined symbols.
7038 no_undefined_flag=$lt_no_undefined_flag
7040 # Commands used to finish a libtool library installation in a directory.
7041 finish_cmds=$lt_finish_cmds
7043 # Same as above, but a single script fragment to be evaled but not shown.
7044 finish_eval=$lt_finish_eval
7046 # Take the output of nm and produce a listing of raw symbols and C names.
7047 global_symbol_pipe=$lt_global_symbol_pipe
7049 # Transform the output of nm in a proper C declaration
7050 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7052 # Transform the output of nm in a C name address pair
7053 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7055 # This is the shared library runtime path variable.
7056 runpath_var=$runpath_var
7058 # This is the shared library path variable.
7059 shlibpath_var=$shlibpath_var
7061 # Is shlibpath searched before the hard-coded library search path?
7062 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7064 # How to hardcode a shared library path into an executable.
7065 hardcode_action=$hardcode_action
7067 # Whether we should hardcode library paths into libraries.
7068 hardcode_into_libs=$hardcode_into_libs
7070 # Flag to hardcode \$libdir into a binary during linking.
7071 # This must work even if \$libdir does not exist.
7072 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7074 # Whether we need a single -rpath flag with a separated argument.
7075 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7077 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7079 hardcode_direct=$hardcode_direct
7081 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7083 hardcode_minus_L=$hardcode_minus_L
7085 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7086 # the resulting binary.
7087 hardcode_shlibpath_var=$hardcode_shlibpath_var
7089 # Variables whose values should be saved in libtool wrapper scripts and
7090 # restored at relink time.
7091 variables_saved_for_relink="$variables_saved_for_relink"
7093 # Whether libtool must link a program against all its dependency libraries.
7094 link_all_deplibs=$link_all_deplibs
7096 # Compile-time system search path for libraries
7097 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7099 # Run-time system search path for libraries
7100 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7102 # Fix the shell variable \$srcfile for the compiler.
7103 fix_srcfile_path="$fix_srcfile_path"
7105 # Set to yes if exported symbols are required.
7106 always_export_symbols=$always_export_symbols
7108 # The commands to list exported symbols.
7109 export_symbols_cmds=$lt_export_symbols_cmds
7111 # The commands to extract the exported symbol list from a shared archive.
7112 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7114 # Symbols that should not be listed in the preloaded symbols.
7115 exclude_expsyms=$lt_exclude_expsyms
7117 # Symbols that must always be exported.
7118 include_expsyms=$lt_include_expsyms
7120 # ### END LIBTOOL CONFIG
7126 cat <<\EOF >> "${ofile}T"
7128 # AIX sometimes has problems with the GCC collect2 program. For some
7129 # reason, if we set the COLLECT_NAMES environment variable, the problems
7130 # vanish in a puff of smoke.
7131 if test "X${COLLECT_NAMES+set}" != Xset; then
7133 export COLLECT_NAMES
7140 cygwin* | mingw* | pw32* | os2*)
7141 cat <<'EOF' >> "${ofile}T"
7142 # This is a source program that is used to create dlls on Windows
7143 # Don't remove nor modify the starting and closing comments
7144 # /* ltdll.c starts here */
7145 # #define WIN32_LEAN_AND_MEAN
7146 # #include <windows.h>
7147 # #undef WIN32_LEAN_AND_MEAN
7148 # #include <stdio.h>
7150 # #ifndef __CYGWIN__
7151 # # ifdef __CYGWIN32__
7152 # # define __CYGWIN__ __CYGWIN32__
7156 # #ifdef __cplusplus
7159 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7160 # #ifdef __cplusplus
7165 # #include <cygwin/cygwin_dll.h>
7166 # DECLARE_CYGWIN_DLL( DllMain );
7168 # HINSTANCE __hDllInstance_base;
7171 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7173 # __hDllInstance_base = hInst;
7176 # /* ltdll.c ends here */
7177 # This is a source program that is used to create import libraries
7178 # on Windows for dlls which lack them. Don't remove nor modify the
7179 # starting and closing comments
7180 # /* impgen.c starts here */
7181 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7183 # This file is part of GNU libtool.
7185 # This program is free software; you can redistribute it and/or modify
7186 # it under the terms of the GNU General Public License as published by
7187 # the Free Software Foundation; either version 2 of the License, or
7188 # (at your option) any later version.
7190 # This program is distributed in the hope that it will be useful,
7191 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7192 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7193 # GNU General Public License for more details.
7195 # You should have received a copy of the GNU General Public License
7196 # along with this program; if not, write to the Free Software
7197 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7200 # #include <stdio.h> /* for printf() */
7201 # #include <unistd.h> /* for open(), lseek(), read() */
7202 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7203 # #include <string.h> /* for strdup() */
7205 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7207 # #define O_BINARY 0
7210 # static unsigned int
7211 # pe_get16 (fd, offset)
7215 # unsigned char b[2];
7216 # lseek (fd, offset, SEEK_SET);
7218 # return b[0] + (b[1]<<8);
7221 # static unsigned int
7222 # pe_get32 (fd, offset)
7226 # unsigned char b[4];
7227 # lseek (fd, offset, SEEK_SET);
7229 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7232 # static unsigned int
7236 # unsigned char *b = ptr;
7237 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7246 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7247 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7248 # unsigned long name_rvas, nexp;
7249 # unsigned char *expdata, *erva;
7250 # char *filename, *dll_name;
7252 # filename = argv[1];
7254 # dll = open(filename, O_RDONLY|O_BINARY);
7258 # dll_name = filename;
7260 # for (i=0; filename[i]; i++)
7261 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7262 # dll_name = filename + i +1;
7264 # pe_header_offset = pe_get32 (dll, 0x3c);
7265 # opthdr_ofs = pe_header_offset + 4 + 20;
7266 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7268 # if (num_entries < 1) /* no exports */
7271 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7272 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7273 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7274 # secptr = (pe_header_offset + 4 + 20 +
7275 # pe_get16 (dll, pe_header_offset + 4 + 16));
7278 # for (i = 0; i < nsections; i++)
7281 # unsigned long secptr1 = secptr + 40 * i;
7282 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7283 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7284 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7285 # lseek(dll, secptr1, SEEK_SET);
7286 # read(dll, sname, 8);
7287 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7289 # expptr = fptr + (export_rva - vaddr);
7290 # if (export_rva + export_size > vaddr + vsize)
7291 # export_size = vsize - (export_rva - vaddr);
7296 # expdata = (unsigned char*)malloc(export_size);
7297 # lseek (dll, expptr, SEEK_SET);
7298 # read (dll, expdata, export_size);
7299 # erva = expdata - export_rva;
7301 # nexp = pe_as32 (expdata+24);
7302 # name_rvas = pe_as32 (expdata+32);
7304 # printf ("EXPORTS\n");
7305 # for (i = 0; i<nexp; i++)
7307 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7308 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7313 # /* impgen.c ends here */
7319 # We use sed instead of cat because bash on DJGPP gets confused if
7320 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7321 # text mode, it properly converts lines to CR/LF. This bash problem
7322 # is reportedly fixed, but why not run on old versions too?
7323 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7325 mv -f "${ofile}T" "$ofile" || \
7326 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7334 # This can be used to rebuild libtool when needed
7335 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7337 # Always use our own libtool.
7338 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7340 # Prevent multiple expansion
7344 ac_cpp='$CXXCPP $CPPFLAGS'
7345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7348 if test -n "$ac_tool_prefix"; then
7349 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7353 echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7355 if test "${ac_cv_prog_CXX+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 if test -n "$CXX"; then
7359 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 if test -n "$CXX"; then
7379 echo "$as_me:$LINENO: result: $CXX" >&5
7380 echo "${ECHO_T}$CXX" >&6
7382 echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7386 test -n "$CXX" && break
7389 if test -z "$CXX"; then
7391 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7393 # Extract the first word of "$ac_prog", so it can be a program name with args.
7394 set dummy $ac_prog; ac_word=$2
7395 echo "$as_me:$LINENO: checking for $ac_word" >&5
7396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7397 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 if test -n "$ac_ct_CXX"; then
7401 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410 ac_cv_prog_ac_ct_CXX="$ac_prog"
7411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7420 if test -n "$ac_ct_CXX"; then
7421 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7422 echo "${ECHO_T}$ac_ct_CXX" >&6
7424 echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6
7428 test -n "$ac_ct_CXX" && break
7430 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7436 # Provide some information about the compiler.
7437 echo "$as_me:$LINENO:" \
7438 "checking for C++ compiler version" >&5
7439 ac_compiler=`set X $ac_compile; echo $2`
7440 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7441 (eval $ac_compiler --version </dev/null >&5) 2>&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }
7445 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7446 (eval $ac_compiler -v </dev/null >&5) 2>&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }
7450 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7451 (eval $ac_compiler -V </dev/null >&5) 2>&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }
7456 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7457 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7458 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 cat >conftest.$ac_ext <<_ACEOF
7462 #line $LINENO "configure"
7463 #include "confdefs.h"
7465 #ifdef F77_DUMMY_MAIN
7469 int F77_DUMMY_MAIN() { return 1; }
7482 rm -f conftest.$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484 (eval $ac_compile) 2>&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } &&
7488 { ac_try='test -s conftest.$ac_objext'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7496 echo "$as_me: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7500 rm -f conftest.$ac_objext conftest.$ac_ext
7501 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7504 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7505 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7506 GXX=`test $ac_compiler_gnu = yes && echo yes`
7507 ac_test_CXXFLAGS=${CXXFLAGS+set}
7508 ac_save_CXXFLAGS=$CXXFLAGS
7510 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7511 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7512 if test "${ac_cv_prog_cxx_g+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 cat >conftest.$ac_ext <<_ACEOF
7516 #line $LINENO "configure"
7517 #include "confdefs.h"
7519 #ifdef F77_DUMMY_MAIN
7523 int F77_DUMMY_MAIN() { return 1; }
7533 rm -f conftest.$ac_objext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7535 (eval $ac_compile) 2>&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 ac_cv_prog_cxx_g=yes
7547 echo "$as_me: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7551 rm -f conftest.$ac_objext conftest.$ac_ext
7553 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7554 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7555 if test "$ac_test_CXXFLAGS" = set; then
7556 CXXFLAGS=$ac_save_CXXFLAGS
7557 elif test $ac_cv_prog_cxx_g = yes; then
7558 if test "$GXX" = yes; then
7564 if test "$GXX" = yes; then
7570 for ac_declaration in \
7572 '#include <stdlib.h>' \
7573 'extern "C" void std::exit (int) throw (); using std::exit;' \
7574 'extern "C" void std::exit (int); using std::exit;' \
7575 'extern "C" void exit (int) throw ();' \
7576 'extern "C" void exit (int);' \
7579 cat >conftest.$ac_ext <<_ACEOF
7580 #line $LINENO "configure"
7581 #include "confdefs.h"
7584 #ifdef F77_DUMMY_MAIN
7588 int F77_DUMMY_MAIN() { return 1; }
7598 rm -f conftest.$ac_objext
7599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7600 (eval $ac_compile) 2>&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } &&
7604 { ac_try='test -s conftest.$ac_objext'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7612 echo "$as_me: failed program was:" >&5
7613 cat conftest.$ac_ext >&5
7616 rm -f conftest.$ac_objext conftest.$ac_ext
7617 cat >conftest.$ac_ext <<_ACEOF
7618 #line $LINENO "configure"
7619 #include "confdefs.h"
7621 #ifdef F77_DUMMY_MAIN
7625 int F77_DUMMY_MAIN() { return 1; }
7635 rm -f conftest.$ac_objext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637 (eval $ac_compile) 2>&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } &&
7641 { ac_try='test -s conftest.$ac_objext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7649 echo "$as_me: failed program was:" >&5
7650 cat conftest.$ac_ext >&5
7652 rm -f conftest.$ac_objext conftest.$ac_ext
7655 if test -n "$ac_declaration"; then
7656 echo '#ifdef __cplusplus' >>confdefs.h
7657 echo $ac_declaration >>confdefs.h
7658 echo '#endif' >>confdefs.h
7662 ac_cpp='$CPP $CPPFLAGS'
7663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7667 depcc="$CXX" am_compiler_list=
7669 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7670 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7671 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7675 # We make a subdir and do the tests there. Otherwise we can end up
7676 # making bogus files that we don't know about and never remove. For
7677 # instance it was reported that on HP-UX the gcc test will end up
7678 # making a dummy file named `D' -- because `-MD' means `put the output
7681 # Copy depcomp to subdir because otherwise we won't find it if we're
7682 # using a relative directory.
7683 cp "$am_depcomp" conftest.dir
7686 am_cv_CXX_dependencies_compiler_type=none
7687 if test "$am_compiler_list" = ""; then
7688 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7690 for depmode in $am_compiler_list; do
7691 # We need to recreate these files for each test, as the compiler may
7692 # overwrite some of them when testing with obscure command lines.
7693 # This happens at least with the AIX C compiler.
7694 echo '#include "conftest.h"' > conftest.c
7695 echo 'int i;' > conftest.h
7696 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
7700 # after this tag, mechanisms are not by side-effect, so they'll
7701 # only be used when explicitly requested
7702 if test "x$enable_dependency_tracking" = xyes; then
7710 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7711 # mode. It turns out that the SunPro C++ compiler does not properly
7712 # handle `-M -o', and we need to detect this.
7713 if depmode=$depmode \
7714 source=conftest.c object=conftest.o \
7715 depfile=conftest.Po tmpdepfile=conftest.TPo \
7716 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
7717 grep conftest.h conftest.Po > /dev/null 2>&1 &&
7718 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7719 am_cv_CXX_dependencies_compiler_type=$depmode
7727 am_cv_CXX_dependencies_compiler_type=none
7731 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7732 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7733 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7737 ac_cpp='$CXXCPP $CPPFLAGS'
7738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7741 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7742 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7743 if test -z "$CXXCPP"; then
7744 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 # Double quotes because CXXCPP needs to be expanded
7748 for CXXCPP in "$CXX -E" "/lib/cpp"
7751 for ac_cxx_preproc_warn_flag in '' yes
7753 # Use a header file that comes with gcc, so configuring glibc
7754 # with a fresh cross-compiler works.
7755 # On the NeXT, cc -E runs the code through the compiler's parser,
7756 # not just through cpp. "Syntax error" is here to catch this case.
7757 cat >conftest.$ac_ext <<_ACEOF
7758 #line $LINENO "configure"
7759 #include "confdefs.h"
7763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7766 egrep -v '^ *\+' conftest.er1 >conftest.err
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } >/dev/null; then
7771 if test -s conftest.err; then
7772 ac_cpp_err=$ac_cxx_preproc_warn_flag
7779 if test -z "$ac_cpp_err"; then
7782 echo "$as_me: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7784 # Broken: fails on valid input.
7787 rm -f conftest.err conftest.$ac_ext
7789 # OK, works on sane cases. Now check whether non-existent headers
7790 # can be detected and how.
7791 cat >conftest.$ac_ext <<_ACEOF
7792 #line $LINENO "configure"
7793 #include "confdefs.h"
7794 #include <ac_nonexistent.h>
7796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7799 egrep -v '^ *\+' conftest.er1 >conftest.err
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } >/dev/null; then
7804 if test -s conftest.err; then
7805 ac_cpp_err=$ac_cxx_preproc_warn_flag
7812 if test -z "$ac_cpp_err"; then
7813 # Broken: success on invalid input.
7816 echo "$as_me: failed program was:" >&5
7817 cat conftest.$ac_ext >&5
7818 # Passes both tests.
7822 rm -f conftest.err conftest.$ac_ext
7825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7826 rm -f conftest.err conftest.$ac_ext
7827 if $ac_preproc_ok; then
7832 ac_cv_prog_CXXCPP=$CXXCPP
7835 CXXCPP=$ac_cv_prog_CXXCPP
7837 ac_cv_prog_CXXCPP=$CXXCPP
7839 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7840 echo "${ECHO_T}$CXXCPP" >&6
7842 for ac_cxx_preproc_warn_flag in '' yes
7844 # Use a header file that comes with gcc, so configuring glibc
7845 # with a fresh cross-compiler works.
7846 # On the NeXT, cc -E runs the code through the compiler's parser,
7847 # not just through cpp. "Syntax error" is here to catch this case.
7848 cat >conftest.$ac_ext <<_ACEOF
7849 #line $LINENO "configure"
7850 #include "confdefs.h"
7854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7857 egrep -v '^ *\+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } >/dev/null; then
7862 if test -s conftest.err; then
7863 ac_cpp_err=$ac_cxx_preproc_warn_flag
7870 if test -z "$ac_cpp_err"; then
7873 echo "$as_me: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7875 # Broken: fails on valid input.
7878 rm -f conftest.err conftest.$ac_ext
7880 # OK, works on sane cases. Now check whether non-existent headers
7881 # can be detected and how.
7882 cat >conftest.$ac_ext <<_ACEOF
7883 #line $LINENO "configure"
7884 #include "confdefs.h"
7885 #include <ac_nonexistent.h>
7887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7890 egrep -v '^ *\+' conftest.er1 >conftest.err
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } >/dev/null; then
7895 if test -s conftest.err; then
7896 ac_cpp_err=$ac_cxx_preproc_warn_flag
7903 if test -z "$ac_cpp_err"; then
7904 # Broken: success on invalid input.
7907 echo "$as_me: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7909 # Passes both tests.
7913 rm -f conftest.err conftest.$ac_ext
7916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7917 rm -f conftest.err conftest.$ac_ext
7918 if $ac_preproc_ok; then
7921 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
7922 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
7923 { (exit 1); exit 1; }; }
7927 ac_cpp='$CPP $CPPFLAGS'
7928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934 # Check whether --with-python or --without-python was given.
7935 if test "${with_python+set}" = set; then
7936 withval="$with_python"
7937 PYTHON="$withval/bin/python"
7938 echo "$as_me:$LINENO: result: \"select python distribution in $withval\"" >&5
7939 echo "${ECHO_T}\"select python distribution in $withval\"" >&6
7943 # Extract the first word of "python", so it can be a program name with args.
7944 set dummy python; ac_word=$2
7945 echo "$as_me:$LINENO: checking for $ac_word" >&5
7946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7947 if test "${ac_cv_path_PYTHON+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 PYTHON=$ac_cv_path_PYTHON
7974 if test -n "$PYTHON"; then
7975 echo "$as_me:$LINENO: result: $PYTHON" >&5
7976 echo "${ECHO_T}$PYTHON" >&6
7978 echo "$as_me:$LINENO: result: no" >&5
7979 echo "${ECHO_T}no" >&6
7985 { echo "$as_me:$LINENO: checking local Python configuration..." >&5
7986 echo "$as_me: checking local Python configuration..." >&6;}
7987 PYTHON_PREFIX=`echo $PYTHON | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
7988 PYTHON_PREFIX=`echo $PYTHON_PREFIX | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
7989 PYTHONHOME=$PYTHON_PREFIX
7994 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
7997 PY_MAKEFILE=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config/Makefile
7998 if test ! -f "$PY_MAKEFILE"; then
7999 { { echo "$as_me:$LINENO: error: *** Couldn't find ${PY_MAKEFILE}. Maybe you are
8000 *** missing the development portion of the python installation" >&5
8001 echo "$as_me: error: *** Couldn't find ${PY_MAKEFILE}. Maybe you are
8002 *** missing the development portion of the python installation" >&2;}
8003 { (exit 1); exit 1; }; }
8009 PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION
8010 PYTHON_LIBS="-L${PYTHON_PREFIX}/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
8011 PYTHON_LIB=$PYTHON_LIBS
8012 PYTHON_LIBA=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
8016 PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
8020 # Check whether --with-python-site or --without-python-site was given.
8021 if test "${with_python_site+set}" = set; then
8022 withval="$with_python_site"
8025 PYTHON_SITE="$withval"
8026 python_site_given=yes
8028 PYTHON_SITE=$prefix"/lib/python"$PYTHON_VERSION/site-packages
8029 python_site_given=no
8033 PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE
8039 # Check whether --with-python-site-exec or --without-python-site-exec was given.
8040 if test "${with_python_site_exec+set}" = set; then
8041 withval="$with_python_site_exec"
8042 PYTHON_SITE_EXEC="$withval"
8044 if test "$python_site_given" = yes; then
8045 PYTHON_SITE_EXEC=$PYTHON_SITE
8047 PYTHON_SITE_EXEC=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
8051 PYTHON_SITE_INSTALL=$PYTHON_SITE_PACKAGE
8055 pythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/
8058 echo "$as_me:$LINENO: checking if we need libdb" >&5
8059 echo $ECHO_N "checking if we need libdb... $ECHO_C" >&6
8060 PY_NEEDOPENDB=`nm $PYTHON_LIBA | grep dbopen | grep U`
8061 if test "x$PY_NEEDOPENDB" != "x"; then
8062 PYTHON_LIBS="$PYTHON_LIBS -ldb"
8063 echo "$as_me:$LINENO: result: yes" >&5
8064 echo "${ECHO_T}yes" >&6
8066 echo "$as_me:$LINENO: result: no" >&5
8067 echo "${ECHO_T}no" >&6
8070 echo "$as_me:$LINENO: checking if we need libdl" >&5
8071 echo $ECHO_N "checking if we need libdl... $ECHO_C" >&6
8072 PY_NEEDOPENDL=`nm $PYTHON_LIBA | grep dlopen | grep U`
8073 if test "x$PY_NEEDOPENDL" != "x"; then
8074 PYTHON_LIBS="$PYTHON_LIBS -ldl"
8075 echo "$as_me:$LINENO: result: yes" >&5
8076 echo "${ECHO_T}yes" >&6
8078 echo "$as_me:$LINENO: result: no" >&5
8079 echo "${ECHO_T}no" >&6
8082 echo "$as_me:$LINENO: checking if we need libutil" >&5
8083 echo $ECHO_N "checking if we need libutil... $ECHO_C" >&6
8084 PY_NEEDOPENPTY=`nm $PYTHON_LIBA | grep openpty | grep U`
8085 if test "x$PY_NEEDOPENPTY" != "x"; then
8086 PYTHON_LIBS="$PYTHON_LIBS -lutil"
8087 echo "$as_me:$LINENO: result: yes" >&5
8088 echo "${ECHO_T}yes" >&6
8090 echo "$as_me:$LINENO: result: no" >&5
8091 echo "${ECHO_T}no" >&6
8094 echo "$as_me:$LINENO: checking if we need tcltk" >&5
8095 echo $ECHO_N "checking if we need tcltk... $ECHO_C" >&6
8096 PY_NEEDTCLTK=`nm $PYTHON_LIBA | grep Tcl_Init | grep U`
8097 if test "x$PY_NEEDTCLTK" != "x"; then
8098 PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk"
8099 echo "$as_me:$LINENO: result: yes" >&5
8100 echo "${ECHO_T}yes" >&6
8102 echo "$as_me:$LINENO: result: no" >&5
8103 echo "${ECHO_T}no" >&6
8107 echo "$as_me:$LINENO: result: looks good" >&5
8108 echo "${ECHO_T}looks good" >&6
8113 if test -n "$PYTHON"; then
8114 # If the user set $PYTHON, use it and don't search something else.
8115 echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
8116 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6
8117 prog="import sys, string
8118 # split strings by '.' and convert to numeric. Append some zeros
8119 # because we need at least 4 digits for the hex conversion.
8120 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
8122 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
8123 sys.exit(sys.hexversion < minverhex)"
8124 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
8125 ($PYTHON -c "$prog") >&5 2>&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; then
8129 echo "$as_me:$LINENO: result: yes" >&5
8130 echo "${ECHO_T}yes" >&6
8132 { { echo "$as_me:$LINENO: error: too old" >&5
8133 echo "$as_me: error: too old" >&2;}
8134 { (exit 1); exit 1; }; }
8138 # Otherwise, try each interpreter until we find one that satisfies
8140 echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
8141 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6
8142 if test "${am_cv_pathless_PYTHON+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 for am_cv_pathless_PYTHON in python python2 python2.2 python2.1 python2.0 python1.6 python1.5 : ; do
8147 if test "$am_cv_pathless_PYTHON" = : ; then
8148 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
8149 echo "$as_me: error: no suitable Python interpreter found" >&2;}
8150 { (exit 1); exit 1; }; }
8152 prog="import sys, string
8153 # split strings by '.' and convert to numeric. Append some zeros
8154 # because we need at least 4 digits for the hex conversion.
8155 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
8157 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
8158 sys.exit(sys.hexversion < minverhex)"
8159 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
8160 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; then
8169 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
8170 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
8171 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
8172 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
8173 set dummy $am_cv_pathless_PYTHON; ac_word=$2
8174 echo "$as_me:$LINENO: checking for $ac_word" >&5
8175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8176 if test "${ac_cv_path_PYTHON+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8191 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 PYTHON=$ac_cv_path_PYTHON
8203 if test -n "$PYTHON"; then
8204 echo "$as_me:$LINENO: result: $PYTHON" >&5
8205 echo "${ECHO_T}$PYTHON" >&6
8207 echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6
8215 echo "$as_me:$LINENO: checking for $am_cv_pathless_PYTHON version" >&5
8216 echo $ECHO_N "checking for $am_cv_pathless_PYTHON version... $ECHO_C" >&6
8217 if test "${am_cv_python_version+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
8222 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
8223 echo "${ECHO_T}$am_cv_python_version" >&6
8224 PYTHON_VERSION=$am_cv_python_version
8228 PYTHON_PREFIX='${prefix}'
8230 PYTHON_EXEC_PREFIX='${exec_prefix}'
8234 echo "$as_me:$LINENO: checking for $am_cv_pathless_PYTHON platform" >&5
8235 echo $ECHO_N "checking for $am_cv_pathless_PYTHON platform... $ECHO_C" >&6
8236 if test "${am_cv_python_platform+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
8241 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
8242 echo "${ECHO_T}$am_cv_python_platform" >&6
8243 PYTHON_PLATFORM=$am_cv_python_platform
8249 pythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
8253 pkgpythondir=\${pythondir}/$PACKAGE
8257 pyexecdir=${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages
8261 pkgpyexecdir=\${pyexecdir}/$PACKAGE
8270 # Check whether --with-swig or --without-swig was given.
8271 if test "${with_swig+set}" = set; then
8272 withval="$with_swig"
8274 echo "$as_me:$LINENO: result: \"select $withval as swig executable\"" >&5
8275 echo "${ECHO_T}\"select $withval as swig executable\"" >&6
8279 # Extract the first word of "swig", so it can be a program name with args.
8280 set dummy swig; ac_word=$2
8281 echo "$as_me:$LINENO: checking for $ac_word" >&5
8282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8283 if test "${ac_cv_path_SWIG+set}" = set; then
8284 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8298 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
8299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 SWIG=$ac_cv_path_SWIG
8310 if test -n "$SWIG"; then
8311 echo "$as_me:$LINENO: result: $SWIG" >&5
8312 echo "${ECHO_T}$SWIG" >&6
8314 echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6
8321 if test "x$SWIG" = "x"
8324 echo "$as_me:$LINENO: result: swig not in PATH variable" >&5
8325 echo "${ECHO_T}swig not in PATH variable" >&6
8328 if test "x$swig_ok" = "xyes"
8330 echo "$as_me:$LINENO: checking python wrapper generation with swig" >&5
8331 echo $ECHO_N "checking python wrapper generation with swig... $ECHO_C" >&6
8332 cat > conftest.h << EOF
8336 $SWIG -module conftest -python conftest.h >/dev/null 2>&1
8337 if test -f conftest_wrap.c
8339 SWIG_FLAGS="-c++ -python -shadow"
8344 echo "$as_me:$LINENO: result: $swig_ok" >&5
8345 echo "${ECHO_T}$swig_ok" >&6
8351 echo "$as_me:$LINENO: result: for swig: $swig_ok" >&5
8352 echo "${ECHO_T}for swig: $swig_ok" >&6
8357 { echo "$as_me:$LINENO: checking for Kernel..." >&5
8358 echo "$as_me: checking for Kernel..." >&6;}
8363 # Check whether --with-kernel or --without-kernel was given.
8364 if test "${with_kernel+set}" = set; then
8365 withval="$with_kernel"
8366 KERNEL_DIR="$withval"
8371 if test "x$KERNEL_DIR" = "x" ; then
8373 # no --with-kernel-dir option used
8375 if test "x$KERNEL_ROOT_DIR" != "x" ; then
8377 # KERNEL_ROOT_DIR environment variable defined
8378 KERNEL_DIR=$KERNEL_ROOT_DIR
8382 # search Kernel binaries in PATH variable
8383 # Extract the first word of "runSalome", so it can be a program name with args.
8384 set dummy runSalome; ac_word=$2
8385 echo "$as_me:$LINENO: checking for $ac_word" >&5
8386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8387 if test "${ac_cv_path_TEMP+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402 ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
8403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 TEMP=$ac_cv_path_TEMP
8414 if test -n "$TEMP"; then
8415 echo "$as_me:$LINENO: result: $TEMP" >&5
8416 echo "${ECHO_T}$TEMP" >&6
8418 echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6
8422 if test "x$TEMP" != "x" ; then
8423 KERNEL_BIN_DIR=`dirname $TEMP`
8424 KERNEL_DIR=`dirname $KERNEL_BIN_DIR`
8431 if test -f ${KERNEL_DIR}/bin/salome/runSalome ; then
8433 echo "$as_me:$LINENO: result: Using Kernel module distribution in ${KERNEL_DIR}" >&5
8434 echo "${ECHO_T}Using Kernel module distribution in ${KERNEL_DIR}" >&6
8436 if test "x$KERNEL_ROOT_DIR" = "x" ; then
8437 KERNEL_ROOT_DIR=${KERNEL_DIR}
8439 if test "x$KERNEL_SITE_DIR" = "x" ; then
8440 KERNEL_SITE_DIR=${KERNEL_ROOT_DIR}
8446 { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled Kernel module distribution\"" >&5
8447 echo "$as_me: WARNING: \"Cannot find compiled Kernel module distribution\"" >&2;}
8450 echo "$as_me:$LINENO: result: for Kernel: $Kernel_ok" >&5
8451 echo "${ECHO_T}for Kernel: $Kernel_ok" >&6
8458 { echo "$as_me:$LINENO: checking for HDF5..." >&5
8459 echo "$as_me: checking for HDF5..." >&6;}
8462 # Check whether --with-hdf5 or --without-hdf5 was given.
8463 if test "${with_hdf5+set}" = set; then
8464 withval="$with_hdf5"
8466 echo "$as_me:$LINENO: result: \"select $withval as path to hdf5\"" >&5
8467 echo "${ECHO_T}\"select $withval as path to hdf5\"" >&6
8484 if test -z $HDF5HOME
8486 { echo "$as_me:$LINENO: WARNING: undefined HDF5HOME variable which specify hdf5 installation directory" >&5
8487 echo "$as_me: WARNING: undefined HDF5HOME variable which specify hdf5 installation directory" >&2;}
8489 LOCAL_INCLUDES="-I$HDF5HOME/include"
8490 LOCAL_LIBS="-L$HDF5HOME/lib"
8494 CPPFLAGS_old="$CPPFLAGS"
8495 CPPFLAGS="$CPPFLAGS $LOCAL_INCLUDES"
8496 if test "${ac_cv_header_hdf5_h+set}" = set; then
8497 echo "$as_me:$LINENO: checking for hdf5.h" >&5
8498 echo $ECHO_N "checking for hdf5.h... $ECHO_C" >&6
8499 if test "${ac_cv_header_hdf5_h+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 echo "$as_me:$LINENO: result: $ac_cv_header_hdf5_h" >&5
8503 echo "${ECHO_T}$ac_cv_header_hdf5_h" >&6
8505 # Is the header compilable?
8506 echo "$as_me:$LINENO: checking hdf5.h usability" >&5
8507 echo $ECHO_N "checking hdf5.h usability... $ECHO_C" >&6
8508 cat >conftest.$ac_ext <<_ACEOF
8509 #line $LINENO "configure"
8510 #include "confdefs.h"
8511 $ac_includes_default
8514 rm -f conftest.$ac_objext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8516 (eval $ac_compile) 2>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try='test -s conftest.$ac_objext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_header_compiler=yes
8528 echo "$as_me: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8530 ac_header_compiler=no
8532 rm -f conftest.$ac_objext conftest.$ac_ext
8533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8534 echo "${ECHO_T}$ac_header_compiler" >&6
8536 # Is the header present?
8537 echo "$as_me:$LINENO: checking hdf5.h presence" >&5
8538 echo $ECHO_N "checking hdf5.h presence... $ECHO_C" >&6
8539 cat >conftest.$ac_ext <<_ACEOF
8540 #line $LINENO "configure"
8541 #include "confdefs.h"
8544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8547 egrep -v '^ *\+' conftest.er1 >conftest.err
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } >/dev/null; then
8552 if test -s conftest.err; then
8553 ac_cpp_err=$ac_c_preproc_warn_flag
8560 if test -z "$ac_cpp_err"; then
8561 ac_header_preproc=yes
8563 echo "$as_me: failed program was:" >&5
8564 cat conftest.$ac_ext >&5
8565 ac_header_preproc=no
8567 rm -f conftest.err conftest.$ac_ext
8568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8569 echo "${ECHO_T}$ac_header_preproc" >&6
8571 # So? What about this header?
8572 case $ac_header_compiler:$ac_header_preproc in
8574 { echo "$as_me:$LINENO: WARNING: hdf5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8575 echo "$as_me: WARNING: hdf5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: hdf5.h: proceeding with the preprocessor's result" >&5
8577 echo "$as_me: WARNING: hdf5.h: proceeding with the preprocessor's result" >&2;};;
8579 { echo "$as_me:$LINENO: WARNING: hdf5.h: present but cannot be compiled" >&5
8580 echo "$as_me: WARNING: hdf5.h: present but cannot be compiled" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: hdf5.h: check for missing prerequisite headers?" >&5
8582 echo "$as_me: WARNING: hdf5.h: check for missing prerequisite headers?" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: hdf5.h: proceeding with the preprocessor's result" >&5
8584 echo "$as_me: WARNING: hdf5.h: proceeding with the preprocessor's result" >&2;};;
8586 echo "$as_me:$LINENO: checking for hdf5.h" >&5
8587 echo $ECHO_N "checking for hdf5.h... $ECHO_C" >&6
8588 if test "${ac_cv_header_hdf5_h+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 ac_cv_header_hdf5_h=$ac_header_preproc
8593 echo "$as_me:$LINENO: result: $ac_cv_header_hdf5_h" >&5
8594 echo "${ECHO_T}$ac_cv_header_hdf5_h" >&6
8597 if test $ac_cv_header_hdf5_h = yes; then
8604 CPPFLAGS="$CPPFLAGS_old"
8607 if test "x$hdf5_ok" = "xyes"
8612 LIBS="$LIBS $LOCAL_LIBS"
8613 echo "$as_me:$LINENO: checking for H5open in -lhdf5" >&5
8614 echo $ECHO_N "checking for H5open in -lhdf5... $ECHO_C" >&6
8615 if test "${ac_cv_lib_hdf5_H5open+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 ac_check_lib_save_LIBS=$LIBS
8620 cat >conftest.$ac_ext <<_ACEOF
8621 #line $LINENO "configure"
8622 #include "confdefs.h"
8624 /* Override any gcc2 internal prototype to avoid an error. */
8628 /* We use char because int might match the return type of a gcc2
8629 builtin and then its argument prototype would still apply. */
8631 #ifdef F77_DUMMY_MAIN
8635 int F77_DUMMY_MAIN() { return 1; }
8645 rm -f conftest.$ac_objext conftest$ac_exeext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8647 (eval $ac_link) 2>&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try='test -s conftest$ac_exeext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8657 ac_cv_lib_hdf5_H5open=yes
8659 echo "$as_me: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8661 ac_cv_lib_hdf5_H5open=no
8663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8664 LIBS=$ac_check_lib_save_LIBS
8666 echo "$as_me:$LINENO: result: $ac_cv_lib_hdf5_H5open" >&5
8667 echo "${ECHO_T}$ac_cv_lib_hdf5_H5open" >&6
8668 if test $ac_cv_lib_hdf5_H5open = yes; then
8678 if test "x$hdf5_ok" = "xyes"
8680 HDF5_INCLUDES="$LOCAL_INCLUDES"
8681 HDF5_LIBS="$LOCAL_LIBS -lhdf5"
8682 HDF5_MT_LIBS="$LOCAL_LIBS -lhdf5"
8685 echo "$as_me:$LINENO: result: for hdf5: $hdf5_ok" >&5
8686 echo "${ECHO_T}for hdf5: $hdf5_ok" >&6
8691 { echo "$as_me:$LINENO: checking for MED2..." >&5
8692 echo "$as_me: checking for MED2..." >&6;}
8695 # Check whether --with-med2 or --without-med2 was given.
8696 if test "${with_med2+set}" = set; then
8697 withval="$with_med2"
8699 echo "$as_me:$LINENO: result: \"select $withval as path to med2\"" >&5
8700 echo "${ECHO_T}\"select $withval as path to med2\"" >&6
8714 LOCAL_INCLUDES="$HDF5_INCLUDES"
8715 LOCAL_LIBS="-lmed $HDF5_LIBS"
8717 if test -z $MED2HOME
8719 { echo "$as_me:$LINENO: WARNING: undefined MED2HOME variable which specify med2 installation directory" >&5
8720 echo "$as_me: WARNING: undefined MED2HOME variable which specify med2 installation directory" >&2;}
8722 LOCAL_INCLUDES="$LOCAL_INCLUDES -I$MED2HOME/include"
8723 LOCAL_LIBS="-L$MED2HOME/lib $LOCAL_LIBS"
8727 CPPFLAGS_old="$CPPFLAGS"
8728 CPPFLAGS="$CPPFLAGS -DPCLINUX $LOCAL_INCLUDES"
8729 if test "${ac_cv_header_med_h+set}" = set; then
8730 echo "$as_me:$LINENO: checking for med.h" >&5
8731 echo $ECHO_N "checking for med.h... $ECHO_C" >&6
8732 if test "${ac_cv_header_med_h+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 echo "$as_me:$LINENO: result: $ac_cv_header_med_h" >&5
8736 echo "${ECHO_T}$ac_cv_header_med_h" >&6
8738 # Is the header compilable?
8739 echo "$as_me:$LINENO: checking med.h usability" >&5
8740 echo $ECHO_N "checking med.h usability... $ECHO_C" >&6
8741 cat >conftest.$ac_ext <<_ACEOF
8742 #line $LINENO "configure"
8743 #include "confdefs.h"
8744 $ac_includes_default
8747 rm -f conftest.$ac_objext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -s conftest.$ac_objext'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; }; then
8759 ac_header_compiler=yes
8761 echo "$as_me: failed program was:" >&5
8762 cat conftest.$ac_ext >&5
8763 ac_header_compiler=no
8765 rm -f conftest.$ac_objext conftest.$ac_ext
8766 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8767 echo "${ECHO_T}$ac_header_compiler" >&6
8769 # Is the header present?
8770 echo "$as_me:$LINENO: checking med.h presence" >&5
8771 echo $ECHO_N "checking med.h presence... $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8774 #include "confdefs.h"
8777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8780 egrep -v '^ *\+' conftest.er1 >conftest.err
8782 cat conftest.err >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } >/dev/null; then
8785 if test -s conftest.err; then
8786 ac_cpp_err=$ac_c_preproc_warn_flag
8793 if test -z "$ac_cpp_err"; then
8794 ac_header_preproc=yes
8796 echo "$as_me: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8798 ac_header_preproc=no
8800 rm -f conftest.err conftest.$ac_ext
8801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8802 echo "${ECHO_T}$ac_header_preproc" >&6
8804 # So? What about this header?
8805 case $ac_header_compiler:$ac_header_preproc in
8807 { echo "$as_me:$LINENO: WARNING: med.h: accepted by the compiler, rejected by the preprocessor!" >&5
8808 echo "$as_me: WARNING: med.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: med.h: proceeding with the preprocessor's result" >&5
8810 echo "$as_me: WARNING: med.h: proceeding with the preprocessor's result" >&2;};;
8812 { echo "$as_me:$LINENO: WARNING: med.h: present but cannot be compiled" >&5
8813 echo "$as_me: WARNING: med.h: present but cannot be compiled" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: med.h: check for missing prerequisite headers?" >&5
8815 echo "$as_me: WARNING: med.h: check for missing prerequisite headers?" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: med.h: proceeding with the preprocessor's result" >&5
8817 echo "$as_me: WARNING: med.h: proceeding with the preprocessor's result" >&2;};;
8819 echo "$as_me:$LINENO: checking for med.h" >&5
8820 echo $ECHO_N "checking for med.h... $ECHO_C" >&6
8821 if test "${ac_cv_header_med_h+set}" = set; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 ac_cv_header_med_h=$ac_header_preproc
8826 echo "$as_me:$LINENO: result: $ac_cv_header_med_h" >&5
8827 echo "${ECHO_T}$ac_cv_header_med_h" >&6
8830 if test $ac_cv_header_med_h = yes; then
8837 CPPFLAGS="$CPPFLAGS_old"
8839 if test "x$med2_ok" = "xyes"
8844 LIBS="$LIBS $LOCAL_LIBS"
8845 echo "$as_me:$LINENO: checking for MEDouvrir in -lmed" >&5
8846 echo $ECHO_N "checking for MEDouvrir in -lmed... $ECHO_C" >&6
8847 if test "${ac_cv_lib_med_MEDouvrir+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 ac_check_lib_save_LIBS=$LIBS
8852 cat >conftest.$ac_ext <<_ACEOF
8853 #line $LINENO "configure"
8854 #include "confdefs.h"
8856 /* Override any gcc2 internal prototype to avoid an error. */
8860 /* We use char because int might match the return type of a gcc2
8861 builtin and then its argument prototype would still apply. */
8863 #ifdef F77_DUMMY_MAIN
8867 int F77_DUMMY_MAIN() { return 1; }
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879 (eval $ac_link) 2>&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } &&
8883 { ac_try='test -s conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_cv_lib_med_MEDouvrir=yes
8891 echo "$as_me: failed program was:" >&5
8892 cat conftest.$ac_ext >&5
8893 ac_cv_lib_med_MEDouvrir=no
8895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8896 LIBS=$ac_check_lib_save_LIBS
8898 echo "$as_me:$LINENO: result: $ac_cv_lib_med_MEDouvrir" >&5
8899 echo "${ECHO_T}$ac_cv_lib_med_MEDouvrir" >&6
8900 if test $ac_cv_lib_med_MEDouvrir = yes; then
8910 if test "x$med2_ok" = "xyes"
8912 MED2_INCLUDES="-DPCLINUX $LOCAL_INCLUDES"
8913 MED2_LIBS="$LOCAL_LIBS"
8914 MED2_MT_LIBS="$LOCAL_LIBS"
8917 echo "$as_me:$LINENO: result: for med2: $med2_ok" >&5
8918 echo "${ECHO_T}for med2: $med2_ok" >&6
8922 { echo "$as_me:$LINENO: checking for Med..." >&5
8923 echo "$as_me: checking for Med..." >&6;}
8928 # Check whether --with-med or --without-med was given.
8929 if test "${with_med+set}" = set; then
8936 if test "x$MED_DIR" == "x" ; then
8938 # no --with-med-dir option used
8940 if test "x$MED_ROOT_DIR" != "x" ; then
8942 # MED_ROOT_DIR environment variable defined
8943 MED_DIR=$MED_ROOT_DIR
8947 # search Med binaries in PATH variable
8948 # Extract the first word of "libMEDMEM_Swig.py", so it can be a program name with args.
8949 set dummy libMEDMEM_Swig.py; ac_word=$2
8950 echo "$as_me:$LINENO: checking for $ac_word" >&5
8951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8952 if test "${ac_cv_path_TEMP+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
8960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8964 test -z "$as_dir" && as_dir=.
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8967 ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
8968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 TEMP=$ac_cv_path_TEMP
8979 if test -n "$TEMP"; then
8980 echo "$as_me:$LINENO: result: $TEMP" >&5
8981 echo "${ECHO_T}$TEMP" >&6
8983 echo "$as_me:$LINENO: result: no" >&5
8984 echo "${ECHO_T}no" >&6
8987 if test "x$TEMP" != "x" ; then
8988 MED_BIN_DIR=`dirname $TEMP`
8989 MED_DIR=`dirname $MED_BIN_DIR`
8996 if test -f ${MED_DIR}/bin/salome/libMEDMEM_Swig.py ; then
8998 echo "$as_me:$LINENO: result: Using Med module distribution in ${MED_DIR}" >&5
8999 echo "${ECHO_T}Using Med module distribution in ${MED_DIR}" >&6
9001 if test "x$MED_ROOT_DIR" == "x" ; then
9002 MED_ROOT_DIR=${MED_DIR}
9005 MED_INCLUDES="-I${MED_ROOT_DIR}/include/salome ${MED2_INCLUDES} ${HDF5_INCLUDES} -I${KERNEL_ROOT_DIR}/include/salome"
9006 MED_LIBS="-L${MED_ROOT_DIR}/lib/salome -lmedmem ${MED2_LIBS} ${HDF5_LIBS} -L${KERNEL_ROOT_DIR}/lib/salome -lSALOMELocalTrace"
9011 { echo "$as_me:$LINENO: WARNING: \"Cannot find Med module sources\"" >&5
9012 echo "$as_me: WARNING: \"Cannot find Med module sources\"" >&2;}
9015 echo "$as_me:$LINENO: result: for Med: $Med_ok" >&5
9016 echo "${ECHO_T}for Med: $Med_ok" >&6
9020 # Check whether --enable-static or --disable-static was given.
9021 if test "${enable_static+set}" = set; then
9022 enableval="$enable_static"
9023 p=${PACKAGE-default}
9025 yes) enable_static=yes ;;
9026 no) enable_static=no ;;
9029 # Look at the argument we got. We use all the common list separators.
9030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
9031 for pkg in $enableval; do
9032 if test "X$pkg" = "X$p"; then
9043 CXXFLAGS="${CXXFLAGS} -g"
9045 ac_config_files="$ac_config_files Makefile src/Makefile src/CALCUL/Makefile src/CALCUL/CALCUL_CXX/Makefile src/CALCUL/CALCUL_SWIG/Makefile src/CALCUL/CALCUL_TEST/Makefile src/CALCULATOR/Makefile src/CALCULATOR/CALCULATOR_CXX/Makefile src/CALCULATOR/CALCULATOR_SWIG/Makefile src/CALCULATOR/CALCULATOR_TEST/Makefile"
9046 cat >confcache <<\_ACEOF
9047 # This file is a shell script that caches the results of configure
9048 # tests run on this system so they can be shared between configure
9049 # scripts and configure runs, see configure's option --config-cache.
9050 # It is not useful on other systems. If it contains results you don't
9051 # want to keep, you may remove or edit it.
9053 # config.status only pays attention to the cache file if you give it
9054 # the --recheck option to rerun configure.
9056 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9057 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9062 # The following way of writing the cache mishandles newlines in values,
9063 # but we know of no workaround that is simple, portable, and efficient.
9064 # So, don't put newlines in cache variables' values.
9065 # Ultrix sh set writes to stderr and can't be redirected directly,
9066 # and sets the high bit in the cache file unless we assign to the vars.
9069 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9071 # `set' does not quote correctly, so add quotes (double-quote
9072 # substitution turns \\\\ into \\, and sed turns \\ into \).
9075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9078 # `set' quotes correctly as required by POSIX, so do not add quotes.
9080 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9089 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9091 if cmp -s $cache_file confcache; then :; else
9092 if test -w $cache_file; then
9093 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9094 cat confcache >$cache_file
9096 echo "not updating unwritable cache $cache_file"
9101 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9102 # Let make expand exec_prefix.
9103 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9105 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9106 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9107 # trailing colons and then remove the whole line if VPATH becomes empty
9108 # (actually we leave an empty line to preserve line numbers).
9109 if test "x$srcdir" = x.; then
9110 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9111 s/:*\$(srcdir):*/:/;
9112 s/:*\${srcdir}:*/:/;
9114 s/^\([^=]*=[ ]*\):*/\1/;
9120 # Transform confdefs.h into DEFS.
9121 # Protect against shell expansion while executing Makefile rules.
9122 # Protect against Makefile macro expansion.
9124 # If the first sed substitution is executed (which looks for macros that
9125 # take arguments), then we branch to the quote section. Otherwise,
9126 # look for a macro that doesn't take arguments.
9127 cat >confdef2opt.sed <<\_ACEOF
9130 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
9132 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
9136 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
9142 # We use echo to avoid assuming a particular line-breaking character.
9143 # The extra dot is to prevent the shell from consuming trailing
9144 # line-breaks from the sub-command output. A line-break within
9145 # single-quotes doesn't work because, if this script is created in a
9146 # platform that uses two characters for line-breaks (e.g., DOS), tr
9148 ac_LF_and_DOT=`echo; echo .`
9149 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
9150 rm -f confdef2opt.sed
9153 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9154 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9155 Usually this means the macro was only invoked conditionally." >&5
9156 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9157 Usually this means the macro was only invoked conditionally." >&2;}
9158 { (exit 1); exit 1; }; }
9161 : ${CONFIG_STATUS=./config.status}
9162 ac_clean_files_save=$ac_clean_files
9163 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9164 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9165 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9166 cat >$CONFIG_STATUS <<_ACEOF
9168 # Generated by $as_me.
9169 # Run this file to recreate the current configuration.
9170 # Compiler output produced by configure, useful for debugging
9171 # configure, is in config.log if it exists.
9174 SHELL=\${CONFIG_SHELL-$SHELL}
9177 cat >>$CONFIG_STATUS <<\_ACEOF
9179 ## --------------------- ##
9180 ## M4sh Initialization. ##
9181 ## --------------------- ##
9183 # Be Bourne compatible
9184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9187 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9192 # Support unset when possible.
9193 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9199 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9200 { $as_unset LANG || test "${LANG+set}" != set; } ||
9201 { LANG=C; export LANG; }
9202 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9203 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9204 { LC_ALL=C; export LC_ALL; }
9205 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9206 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9207 { LC_TIME=C; export LC_TIME; }
9208 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9209 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9210 { LC_CTYPE=C; export LC_CTYPE; }
9211 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9212 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9213 { LANGUAGE=C; export LANGUAGE; }
9214 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9215 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9216 { LC_COLLATE=C; export LC_COLLATE; }
9217 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9218 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9219 { LC_NUMERIC=C; export LC_NUMERIC; }
9220 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9221 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9222 { LC_MESSAGES=C; export LC_MESSAGES; }
9225 # Name of the executable.
9226 as_me=`(basename "$0") 2>/dev/null ||
9227 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9228 X"$0" : 'X\(//\)$' \| \
9229 X"$0" : 'X\(/\)$' \| \
9230 . : '\(.\)' 2>/dev/null ||
9232 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9233 /^X\/\(\/\/\)$/{ s//\1/; q; }
9234 /^X\/\(\/\).*/{ s//\1/; q; }
9237 # PATH needs CR, and LINENO needs CR and PATH.
9238 # Avoid depending upon Character Ranges.
9239 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9240 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9241 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9242 as_cr_digits='0123456789'
9243 as_cr_alnum=$as_cr_Letters$as_cr_digits
9245 # The user is always right.
9246 if test "${PATH_SEPARATOR+set}" != set; then
9247 echo "#! /bin/sh" >conftest.sh
9248 echo "exit 0" >>conftest.sh
9249 chmod +x conftest.sh
9250 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9261 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9262 test "x$as_lineno_1" != "x$as_lineno_2" &&
9263 test "x$as_lineno_3" = "x$as_lineno_2" || {
9264 # Find who we are. Look in the path if we contain no path at all
9267 *[\\/]* ) as_myself=$0 ;;
9268 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272 test -z "$as_dir" && as_dir=.
9273 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9278 # We did not find ourselves, most probably we were run as `sh COMMAND'
9279 # in which case we are not to be found in the path.
9280 if test "x$as_myself" = x; then
9283 if test ! -f "$as_myself"; then
9284 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9285 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9286 { (exit 1); exit 1; }; }
9288 case $CONFIG_SHELL in
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9294 test -z "$as_dir" && as_dir=.
9295 for as_base in sh bash ksh sh5; do
9298 if ("$as_dir/$as_base" -c '
9301 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9302 test "x$as_lineno_1" != "x$as_lineno_2" &&
9303 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9304 CONFIG_SHELL=$as_dir/$as_base
9306 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9314 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9315 # uniformly replaced by the line number. The first 'sed' inserts a
9316 # line-number line before each line; the second 'sed' does the real
9317 # work. The second script uses 'N' to pair each line-number line
9318 # with the numbered line, and appends trailing '-' during
9319 # substitution so that $LINENO is not a special case at line end.
9320 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9321 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9322 sed '=' <$as_myself |
9327 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9330 s,^['$as_cr_digits']*\n,,
9332 chmod +x $as_me.lineno ||
9333 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9334 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9335 { (exit 1); exit 1; }; }
9337 # Don't try to exec as it changes $[0], causing all sort of problems
9338 # (the dirname of $[0] is not the place where we might find the
9339 # original and so on. Autoconf is especially sensible to this).
9341 # Exit status is that of the last command.
9346 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9347 *c*,-n*) ECHO_N= ECHO_C='
9349 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9350 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9353 if expr a : '\(a\)' >/dev/null 2>&1; then
9359 rm -f conf$$ conf$$.exe conf$$.file
9361 if ln -s conf$$.file conf$$ 2>/dev/null; then
9362 # We could just check for DJGPP; but this test a) works b) is more generic
9363 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9364 if test -f conf$$.exe; then
9365 # Don't use ln at all; we don't have any links
9370 elif ln conf$$.file conf$$ 2>/dev/null; then
9375 rm -f conf$$ conf$$.exe conf$$.file
9377 as_executable_p="test -f"
9379 # Sed expression to map a string onto a valid CPP name.
9380 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9382 # Sed expression to map a string onto a valid variable name.
9383 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9387 # We need space, tab and new line, in precisely that order.
9393 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9397 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9398 # report actual input values of CONFIG_FILES etc. instead of their
9399 # values after options handling. Logging --version etc. is OK.
9403 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9404 ## Running $as_me. ##
9409 This file was extended by salome $as_me 0.1, which was
9410 generated by GNU Autoconf 2.53. Invocation command line was
9412 CONFIG_FILES = $CONFIG_FILES
9413 CONFIG_HEADERS = $CONFIG_HEADERS
9414 CONFIG_LINKS = $CONFIG_LINKS
9415 CONFIG_COMMANDS = $CONFIG_COMMANDS
9419 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9423 # Files that config.status was made for.
9424 if test -n "$ac_config_files"; then
9425 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9428 if test -n "$ac_config_headers"; then
9429 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9432 if test -n "$ac_config_links"; then
9433 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9436 if test -n "$ac_config_commands"; then
9437 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9440 cat >>$CONFIG_STATUS <<\_ACEOF
9443 \`$as_me' instantiates files from templates according to the
9444 current configuration.
9446 Usage: $0 [OPTIONS] [FILE]...
9448 -h, --help print this help, then exit
9449 -V, --version print version number, then exit
9450 -d, --debug don't remove temporary files
9451 --recheck update $as_me by reconfiguring in the same conditions
9452 --file=FILE[:TEMPLATE]
9453 instantiate the configuration file FILE
9455 Configuration files:
9458 Configuration commands:
9461 Report bugs to <bug-autoconf@gnu.org>."
9464 cat >>$CONFIG_STATUS <<_ACEOF
9466 salome config.status 0.1
9467 configured by $0, generated by GNU Autoconf 2.53,
9468 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9470 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9471 Free Software Foundation, Inc.
9472 This config.status script is free software; the Free Software Foundation
9473 gives unlimited permission to copy, distribute and modify it."
9478 cat >>$CONFIG_STATUS <<\_ACEOF
9479 # If no file are specified by the user, then we need to provide default
9480 # value. By we need to know if files were specified by the user.
9486 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9487 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9489 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9493 *) # This is not an option, so the user has probably given explicit
9495 ac_need_defaults=false;;
9499 # Handling of the options.
9501 cat >>$CONFIG_STATUS <<_ACEOF
9502 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9503 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9504 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9506 cat >>$CONFIG_STATUS <<\_ACEOF
9507 --version | --vers* | -V )
9508 echo "$ac_cs_version"; exit 0 ;;
9510 # Conflict between --help and --header
9511 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9512 Try \`$0 --help' for more information." >&5
9513 echo "$as_me: error: ambiguous option: $1
9514 Try \`$0 --help' for more information." >&2;}
9515 { (exit 1); exit 1; }; };;
9516 --help | --hel | -h )
9517 echo "$ac_cs_usage"; exit 0 ;;
9518 --debug | --d* | -d )
9520 --file | --fil | --fi | --f )
9522 CONFIG_FILES="$CONFIG_FILES $1"
9523 ac_need_defaults=false;;
9524 --header | --heade | --head | --hea )
9526 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9527 ac_need_defaults=false;;
9530 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9531 Try \`$0 --help' for more information." >&5
9532 echo "$as_me: error: unrecognized option: $1
9533 Try \`$0 --help' for more information." >&2;}
9534 { (exit 1); exit 1; }; } ;;
9536 *) ac_config_targets="$ac_config_targets $1" ;;
9544 cat >>$CONFIG_STATUS <<_ACEOF
9546 # INIT-COMMANDS section.
9549 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9555 cat >>$CONFIG_STATUS <<\_ACEOF
9556 for ac_config_target in $ac_config_targets
9558 case "$ac_config_target" in
9559 # Handling of arguments.
9560 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9561 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9562 "src/CALCUL/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CALCUL/Makefile" ;;
9563 "src/CALCUL/CALCUL_CXX/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CALCUL/CALCUL_CXX/Makefile" ;;
9564 "src/CALCUL/CALCUL_SWIG/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CALCUL/CALCUL_SWIG/Makefile" ;;
9565 "src/CALCUL/CALCUL_TEST/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CALCUL/CALCUL_TEST/Makefile" ;;
9566 "src/CALCULATOR/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CALCULATOR/Makefile" ;;
9567 "src/CALCULATOR/CALCULATOR_CXX/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CALCULATOR/CALCULATOR_CXX/Makefile" ;;
9568 "src/CALCULATOR/CALCULATOR_SWIG/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CALCULATOR/CALCULATOR_SWIG/Makefile" ;;
9569 "src/CALCULATOR/CALCULATOR_TEST/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/CALCULATOR/CALCULATOR_TEST/Makefile" ;;
9570 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9571 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9572 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9573 { (exit 1); exit 1; }; };;
9577 # If the user did not use the arguments to specify the items to instantiate,
9578 # then the envvar interface is used. Set only those that are not.
9579 # We use the long form for the default assignment because of an extremely
9580 # bizarre bug on SunOS 4.1.3.
9581 if $ac_need_defaults; then
9582 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9583 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9586 # Create a temporary directory, and hook for its removal unless debugging.
9589 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9590 trap '{ (exit 1); exit 1; }' 1 2 13 15
9593 # Create a (secure) tmp directory for tmp files.
9596 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9597 test -n "$tmp" && test -d "$tmp"
9600 tmp=$TMPDIR/cs$$-$RANDOM
9601 (umask 077 && mkdir $tmp)
9604 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9605 { (exit 1); exit 1; }
9610 cat >>$CONFIG_STATUS <<_ACEOF
9613 # CONFIG_FILES section.
9616 # No need to generate the scripts if there are no CONFIG_FILES.
9617 # This happens for instance when ./config.status config.h
9618 if test -n "\$CONFIG_FILES"; then
9619 # Protect against being on the right side of a sed subst in config.status.
9620 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9621 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9622 s,@SHELL@,$SHELL,;t t
9623 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9624 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9625 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9626 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9627 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9628 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9629 s,@exec_prefix@,$exec_prefix,;t t
9630 s,@prefix@,$prefix,;t t
9631 s,@program_transform_name@,$program_transform_name,;t t
9632 s,@bindir@,$bindir,;t t
9633 s,@sbindir@,$sbindir,;t t
9634 s,@libexecdir@,$libexecdir,;t t
9635 s,@datadir@,$datadir,;t t
9636 s,@sysconfdir@,$sysconfdir,;t t
9637 s,@sharedstatedir@,$sharedstatedir,;t t
9638 s,@localstatedir@,$localstatedir,;t t
9639 s,@libdir@,$libdir,;t t
9640 s,@includedir@,$includedir,;t t
9641 s,@oldincludedir@,$oldincludedir,;t t
9642 s,@infodir@,$infodir,;t t
9643 s,@mandir@,$mandir,;t t
9644 s,@build_alias@,$build_alias,;t t
9645 s,@host_alias@,$host_alias,;t t
9646 s,@target_alias@,$target_alias,;t t
9648 s,@ECHO_C@,$ECHO_C,;t t
9649 s,@ECHO_N@,$ECHO_N,;t t
9650 s,@ECHO_T@,$ECHO_T,;t t
9652 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9653 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9654 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9655 s,@PACKAGE@,$PACKAGE,;t t
9656 s,@VERSION@,$VERSION,;t t
9657 s,@ACLOCAL@,$ACLOCAL,;t t
9658 s,@AUTOCONF@,$AUTOCONF,;t t
9659 s,@AUTOMAKE@,$AUTOMAKE,;t t
9660 s,@AUTOHEADER@,$AUTOHEADER,;t t
9661 s,@MAKEINFO@,$MAKEINFO,;t t
9662 s,@AMTAR@,$AMTAR,;t t
9663 s,@install_sh@,$install_sh,;t t
9664 s,@STRIP@,$STRIP,;t t
9665 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9666 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9668 s,@SET_MAKE@,$SET_MAKE,;t t
9669 s,@build@,$build,;t t
9670 s,@build_cpu@,$build_cpu,;t t
9671 s,@build_vendor@,$build_vendor,;t t
9672 s,@build_os@,$build_os,;t t
9674 s,@host_cpu@,$host_cpu,;t t
9675 s,@host_vendor@,$host_vendor,;t t
9676 s,@host_os@,$host_os,;t t
9678 s,@CFLAGS@,$CFLAGS,;t t
9679 s,@LDFLAGS@,$LDFLAGS,;t t
9680 s,@CPPFLAGS@,$CPPFLAGS,;t t
9681 s,@ac_ct_CC@,$ac_ct_CC,;t t
9682 s,@EXEEXT@,$EXEEXT,;t t
9683 s,@OBJEXT@,$OBJEXT,;t t
9684 s,@DEPDIR@,$DEPDIR,;t t
9685 s,@am__include@,$am__include,;t t
9686 s,@am__quote@,$am__quote,;t t
9687 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9688 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9689 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9690 s,@CCDEPMODE@,$CCDEPMODE,;t t
9693 s,@RANLIB@,$RANLIB,;t t
9694 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9696 s,@LIBTOOL@,$LIBTOOL,;t t
9698 s,@CXXFLAGS@,$CXXFLAGS,;t t
9699 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9700 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9701 s,@CXXCPP@,$CXXCPP,;t t
9702 s,@PYTHON@,$PYTHON,;t t
9703 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
9704 s,@PYTHONHOME@,$PYTHONHOME,;t t
9705 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
9706 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
9707 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
9708 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
9709 s,@PYTHON_SITE@,$PYTHON_SITE,;t t
9710 s,@PYTHON_SITE_PACKAGE@,$PYTHON_SITE_PACKAGE,;t t
9711 s,@PYTHON_SITE_EXEC@,$PYTHON_SITE_EXEC,;t t
9712 s,@PYTHON_SITE_INSTALL@,$PYTHON_SITE_INSTALL,;t t
9713 s,@pythondir@,$pythondir,;t t
9714 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
9715 s,@pkgpythondir@,$pkgpythondir,;t t
9716 s,@pyexecdir@,$pyexecdir,;t t
9717 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
9719 s,@SWIG_FLAGS@,$SWIG_FLAGS,;t t
9721 s,@KERNEL_ROOT_DIR@,$KERNEL_ROOT_DIR,;t t
9722 s,@KERNEL_SITE_DIR@,$KERNEL_SITE_DIR,;t t
9723 s,@HDF5_INCLUDES@,$HDF5_INCLUDES,;t t
9724 s,@HDF5_LIBS@,$HDF5_LIBS,;t t
9725 s,@HDF5_MT_LIBS@,$HDF5_MT_LIBS,;t t
9726 s,@MED2_INCLUDES@,$MED2_INCLUDES,;t t
9727 s,@MED2_LIBS@,$MED2_LIBS,;t t
9728 s,@MED2_MT_LIBS@,$MED2_MT_LIBS,;t t
9729 s,@MED_ROOT_DIR@,$MED_ROOT_DIR,;t t
9730 s,@MED_INCLUDES@,$MED_INCLUDES,;t t
9731 s,@MED_LIBS@,$MED_LIBS,;t t
9736 cat >>$CONFIG_STATUS <<\_ACEOF
9737 # Split the substitutions into bite-sized pieces for seds with
9738 # small command number limits, like on Digital OSF/1 and HP-UX.
9740 ac_sed_frag=1 # Number of current file.
9741 ac_beg=1 # First line for current file.
9742 ac_end=$ac_max_sed_lines # Line after last line for current file.
9745 while $ac_more_lines; do
9746 if test $ac_beg -gt 1; then
9747 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9749 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9751 if test ! -s $tmp/subs.frag; then
9754 # The purpose of the label and of the branching condition is to
9755 # speed up the sed processing (if there are no `@' at all, there
9756 # is no need to browse any of the substitutions).
9757 # These are the two extra sed commands mentioned above.
9759 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9760 if test -z "$ac_sed_cmds"; then
9761 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9763 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9765 ac_sed_frag=`expr $ac_sed_frag + 1`
9767 ac_end=`expr $ac_end + $ac_max_sed_lines`
9770 if test -z "$ac_sed_cmds"; then
9773 fi # test -n "$CONFIG_FILES"
9776 cat >>$CONFIG_STATUS <<\_ACEOF
9777 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9778 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9780 - | *:- | *:-:* ) # input from stdin
9782 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9783 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9784 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9785 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9786 * ) ac_file_in=$ac_file.in ;;
9789 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9790 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9791 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9792 X"$ac_file" : 'X\(//\)[^/]' \| \
9793 X"$ac_file" : 'X\(//\)$' \| \
9794 X"$ac_file" : 'X\(/\)' \| \
9795 . : '\(.\)' 2>/dev/null ||
9797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9798 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9799 /^X\(\/\/\)$/{ s//\1/; q; }
9800 /^X\(\/\).*/{ s//\1/; q; }
9803 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9807 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9808 case $as_mkdir_dir in
9809 # Skip DOS drivespec
9810 ?:) as_incr_dir=$as_mkdir_dir ;;
9812 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9813 test -d "$as_incr_dir" ||
9814 mkdir "$as_incr_dir" ||
9815 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
9816 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
9817 { (exit 1); exit 1; }; }
9824 if test "$ac_dir" != .; then
9825 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9826 # A "../" for each directory in $ac_dir_suffix.
9827 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9829 ac_dir_suffix= ac_top_builddir=
9833 .) # No --srcdir option. We are building in place.
9835 if test -z "$ac_top_builddir"; then
9838 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9840 [\\/]* | ?:[\\/]* ) # Absolute path.
9841 ac_srcdir=$srcdir$ac_dir_suffix;
9842 ac_top_srcdir=$srcdir ;;
9844 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9845 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9847 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9849 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9850 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9851 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9852 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9856 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9857 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9860 if test x"$ac_file" != x-; then
9861 { echo "$as_me:$LINENO: creating $ac_file" >&5
9862 echo "$as_me: creating $ac_file" >&6;}
9865 # Let's still pretend it is `configure' which instantiates (i.e., don't
9866 # use $as_me), people would be surprised to read:
9867 # /* config.h. Generated by config.status. */
9868 if test x"$ac_file" = x-; then
9871 configure_input="$ac_file. "
9873 configure_input=$configure_input"Generated from `echo $ac_file_in |
9874 sed 's,.*/,,'` by configure."
9876 # First look for the input files in the build tree, otherwise in the
9878 ac_file_inputs=`IFS=:
9879 for f in $ac_file_in; do
9881 -) echo $tmp/stdin ;;
9883 # Absolute (can't be DOS-style, as IFS=:)
9884 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9885 echo "$as_me: error: cannot find input file: $f" >&2;}
9886 { (exit 1); exit 1; }; }
9889 if test -f "$f"; then
9892 elif test -f "$srcdir/$f"; then
9897 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9898 echo "$as_me: error: cannot find input file: $f" >&2;}
9899 { (exit 1); exit 1; }; }
9902 done` || { (exit 1); exit 1; }
9904 cat >>$CONFIG_STATUS <<_ACEOF
9908 cat >>$CONFIG_STATUS <<\_ACEOF
9910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9911 s,@configure_input@,$configure_input,;t t
9912 s,@srcdir@,$ac_srcdir,;t t
9913 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9914 s,@top_srcdir@,$ac_top_srcdir,;t t
9915 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9916 s,@builddir@,$ac_builddir,;t t
9917 s,@abs_builddir@,$ac_abs_builddir,;t t
9918 s,@top_builddir@,$ac_top_builddir,;t t
9919 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9920 s,@INSTALL@,$ac_INSTALL,;t t
9921 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9923 if test x"$ac_file" != x-; then
9924 mv $tmp/out $ac_file
9932 cat >>$CONFIG_STATUS <<\_ACEOF
9935 # CONFIG_COMMANDS section.
9937 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9938 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9939 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9940 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9941 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9942 X"$ac_dest" : 'X\(//\)[^/]' \| \
9943 X"$ac_dest" : 'X\(//\)$' \| \
9944 X"$ac_dest" : 'X\(/\)' \| \
9945 . : '\(.\)' 2>/dev/null ||
9947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9948 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9949 /^X\(\/\/\)$/{ s//\1/; q; }
9950 /^X\(\/\).*/{ s//\1/; q; }
9954 if test "$ac_dir" != .; then
9955 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9956 # A "../" for each directory in $ac_dir_suffix.
9957 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9959 ac_dir_suffix= ac_top_builddir=
9963 .) # No --srcdir option. We are building in place.
9965 if test -z "$ac_top_builddir"; then
9968 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9970 [\\/]* | ?:[\\/]* ) # Absolute path.
9971 ac_srcdir=$srcdir$ac_dir_suffix;
9972 ac_top_srcdir=$srcdir ;;
9974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9977 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9979 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9980 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
9981 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9982 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9985 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9986 echo "$as_me: executing $ac_dest commands" >&6;}
9988 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9989 # Strip MF so we end up with the name of the file.
9990 mf=`echo "$mf" | sed -e 's/:.*$//'`
9991 # Check whether this is an Automake generated Makefile or not.
9992 # We used to match only the files named `Makefile.in', but
9993 # some people rename them; so instead we look at the file content.
9994 # Grep'ing the first line is not enough: some people post-process
9995 # each Makefile.in and add a new line on top of each file to say so.
9996 # So let's grep whole file.
9997 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9998 dirpart=`(dirname "$mf") 2>/dev/null ||
9999 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10000 X"$mf" : 'X\(//\)[^/]' \| \
10001 X"$mf" : 'X\(//\)$' \| \
10002 X"$mf" : 'X\(/\)' \| \
10003 . : '\(.\)' 2>/dev/null ||
10005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10006 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10007 /^X\(\/\/\)$/{ s//\1/; q; }
10008 /^X\(\/\).*/{ s//\1/; q; }
10013 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10014 # Extract the definition of DEP_FILES from the Makefile without
10016 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10017 test -z "$DEPDIR" && continue
10018 # When using ansi2knr, U may be empty or an underscore; expand it
10019 U=`sed -n -e '/^U = / s///p' < "$mf"`
10020 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10021 # We invoke sed twice because it is the simplest approach to
10022 # changing $(DEPDIR) to its actual value in the expansion.
10023 for file in `sed -n -e '
10024 /^DEP_FILES = .*\\\\$/ {
10033 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10034 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10035 # Make sure the directory exists.
10036 test -f "$dirpart/$file" && continue
10037 fdir=`(dirname "$file") 2>/dev/null ||
10038 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10039 X"$file" : 'X\(//\)[^/]' \| \
10040 X"$file" : 'X\(//\)$' \| \
10041 X"$file" : 'X\(/\)' \| \
10042 . : '\(.\)' 2>/dev/null ||
10044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10046 /^X\(\/\/\)$/{ s//\1/; q; }
10047 /^X\(\/\).*/{ s//\1/; q; }
10049 { case $dirpart/$fdir in
10050 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10053 as_dummy=$dirpart/$fdir
10054 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10055 case $as_mkdir_dir in
10056 # Skip DOS drivespec
10057 ?:) as_incr_dir=$as_mkdir_dir ;;
10059 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10060 test -d "$as_incr_dir" ||
10061 mkdir "$as_incr_dir" ||
10062 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
10063 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
10064 { (exit 1); exit 1; }; }
10069 # echo "creating $dirpart/$file"
10070 echo '# dummy' > "$dirpart/$file"
10078 cat >>$CONFIG_STATUS <<\_ACEOF
10080 { (exit 0); exit 0; }
10082 chmod +x $CONFIG_STATUS
10083 ac_clean_files=$ac_clean_files_save
10086 # configure is writing to config.log, and then calls config.status.
10087 # config.status does its own redirection, appending to config.log.
10088 # Unfortunately, on DOS this fails, as config.log is still kept open
10089 # by configure, so config.status won't be able to write to it; its
10090 # output is simply discarded. So we exec the FD to /dev/null,
10091 # effectively closing config.log, so it can be properly (re)opened and
10092 # appended to by config.status. When coming back to configure, we
10093 # need to make the FD available again.
10094 if test "$no_create" != yes; then
10097 $SHELL $CONFIG_STATUS || ac_cs_success=false
10099 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10100 # would make configure fail if this is the last instruction.
10101 $ac_cs_success || { (exit 1); exit 1; }