2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Salome6 Project HEXABLOCK module 5.1.2.
5 # Report bugs to <webmaster.salome@opencascade.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='Salome6 Project HEXABLOCK module'
730 PACKAGE_TARNAME='SalomeHEXABLOCK'
731 PACKAGE_VERSION='5.1.2'
732 PACKAGE_STRING='Salome6 Project HEXABLOCK module 5.1.2'
733 PACKAGE_BUGREPORT='webmaster.salome@opencascade.com'
735 # Factoring default headers for most tests.
736 ac_includes_default="\
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
748 # ifdef HAVE_STDLIB_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
780 program_transform_name
834 INSTALL_STRIP_PROGRAM
921 QT_ASSISTANT_INCLUDES
938 BOOST_PROGRAM_OPTIONS_LIB
1000 ac_subst_files='CORBA'
1001 ac_precious_vars='build_alias
1018 # Initialize some variables set by options.
1020 ac_init_version=false
1021 # The variables have the same names as the options, with
1022 # dashes changed to underlines.
1023 cache_file=/dev/null
1030 program_transform_name=s,x,x,
1038 # Installation directory options.
1039 # These are left unexpanded so users can "make install exec_prefix=/foo"
1040 # and all the variables that are supposed to be based on exec_prefix
1041 # by default will actually change.
1042 # Use braces instead of parens because sh, perl, etc. also accept them.
1043 # (The list follows the same order as the GNU Coding Standards.)
1044 bindir='${exec_prefix}/bin'
1045 sbindir='${exec_prefix}/sbin'
1046 libexecdir='${exec_prefix}/libexec'
1047 datarootdir='${prefix}/share'
1048 datadir='${datarootdir}'
1049 sysconfdir='${prefix}/etc'
1050 sharedstatedir='${prefix}/com'
1051 localstatedir='${prefix}/var'
1052 includedir='${prefix}/include'
1053 oldincludedir='/usr/include'
1054 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1055 infodir='${datarootdir}/info'
1060 libdir='${exec_prefix}/lib'
1061 localedir='${datarootdir}/locale'
1062 mandir='${datarootdir}/man'
1068 # If the previous option needs an argument, assign it.
1069 if test -n "$ac_prev"; then
1070 eval $ac_prev=\$ac_option
1076 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1080 # Accept the important Cygnus configure options, so we can diagnose typos.
1082 case $ac_dashdash$ac_option in
1086 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1088 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1089 bindir=$ac_optarg ;;
1091 -build | --build | --buil | --bui | --bu)
1092 ac_prev=build_alias ;;
1093 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1094 build_alias=$ac_optarg ;;
1096 -cache-file | --cache-file | --cache-fil | --cache-fi \
1097 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1098 ac_prev=cache_file ;;
1099 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1101 cache_file=$ac_optarg ;;
1103 --config-cache | -C)
1104 cache_file=config.cache ;;
1106 -datadir | --datadir | --datadi | --datad)
1108 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1109 datadir=$ac_optarg ;;
1111 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1112 | --dataroo | --dataro | --datar)
1113 ac_prev=datarootdir ;;
1114 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1115 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1116 datarootdir=$ac_optarg ;;
1118 -disable-* | --disable-*)
1119 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1123 { (exit 1); exit 1; }; }
1124 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1125 eval enable_$ac_feature=no ;;
1127 -docdir | --docdir | --docdi | --doc | --do)
1129 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130 docdir=$ac_optarg ;;
1132 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1134 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135 dvidir=$ac_optarg ;;
1137 -enable-* | --enable-*)
1138 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1144 eval enable_$ac_feature=\$ac_optarg ;;
1146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1148 | --exec | --exe | --ex)
1149 ac_prev=exec_prefix ;;
1150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1152 | --exec=* | --exe=* | --ex=*)
1153 exec_prefix=$ac_optarg ;;
1155 -gas | --gas | --ga | --g)
1156 # Obsolete; use --with-gas.
1159 -help | --help | --hel | --he | -h)
1160 ac_init_help=long ;;
1161 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1162 ac_init_help=recursive ;;
1163 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1164 ac_init_help=short ;;
1166 -host | --host | --hos | --ho)
1167 ac_prev=host_alias ;;
1168 -host=* | --host=* | --hos=* | --ho=*)
1169 host_alias=$ac_optarg ;;
1171 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1173 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1175 htmldir=$ac_optarg ;;
1177 -includedir | --includedir | --includedi | --included | --include \
1178 | --includ | --inclu | --incl | --inc)
1179 ac_prev=includedir ;;
1180 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1181 | --includ=* | --inclu=* | --incl=* | --inc=*)
1182 includedir=$ac_optarg ;;
1184 -infodir | --infodir | --infodi | --infod | --info | --inf)
1186 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1187 infodir=$ac_optarg ;;
1189 -libdir | --libdir | --libdi | --libd)
1191 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1192 libdir=$ac_optarg ;;
1194 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1195 | --libexe | --libex | --libe)
1196 ac_prev=libexecdir ;;
1197 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1198 | --libexe=* | --libex=* | --libe=*)
1199 libexecdir=$ac_optarg ;;
1201 -localedir | --localedir | --localedi | --localed | --locale)
1202 ac_prev=localedir ;;
1203 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1204 localedir=$ac_optarg ;;
1206 -localstatedir | --localstatedir | --localstatedi | --localstated \
1207 | --localstate | --localstat | --localsta | --localst | --locals)
1208 ac_prev=localstatedir ;;
1209 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1210 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1211 localstatedir=$ac_optarg ;;
1213 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1215 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1216 mandir=$ac_optarg ;;
1218 -nfp | --nfp | --nf)
1219 # Obsolete; use --without-fp.
1222 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1223 | --no-cr | --no-c | -n)
1226 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1227 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1230 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1231 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1232 | --oldin | --oldi | --old | --ol | --o)
1233 ac_prev=oldincludedir ;;
1234 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1235 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1236 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1237 oldincludedir=$ac_optarg ;;
1239 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1241 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1242 prefix=$ac_optarg ;;
1244 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1245 | --program-pre | --program-pr | --program-p)
1246 ac_prev=program_prefix ;;
1247 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1248 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1249 program_prefix=$ac_optarg ;;
1251 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1252 | --program-suf | --program-su | --program-s)
1253 ac_prev=program_suffix ;;
1254 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1255 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1256 program_suffix=$ac_optarg ;;
1258 -program-transform-name | --program-transform-name \
1259 | --program-transform-nam | --program-transform-na \
1260 | --program-transform-n | --program-transform- \
1261 | --program-transform | --program-transfor \
1262 | --program-transfo | --program-transf \
1263 | --program-trans | --program-tran \
1264 | --progr-tra | --program-tr | --program-t)
1265 ac_prev=program_transform_name ;;
1266 -program-transform-name=* | --program-transform-name=* \
1267 | --program-transform-nam=* | --program-transform-na=* \
1268 | --program-transform-n=* | --program-transform-=* \
1269 | --program-transform=* | --program-transfor=* \
1270 | --program-transfo=* | --program-transf=* \
1271 | --program-trans=* | --program-tran=* \
1272 | --progr-tra=* | --program-tr=* | --program-t=*)
1273 program_transform_name=$ac_optarg ;;
1275 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1277 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1278 pdfdir=$ac_optarg ;;
1280 -psdir | --psdir | --psdi | --psd | --ps)
1282 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286 | -silent | --silent | --silen | --sile | --sil)
1289 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1291 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1293 sbindir=$ac_optarg ;;
1295 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1296 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1297 | --sharedst | --shareds | --shared | --share | --shar \
1299 ac_prev=sharedstatedir ;;
1300 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1301 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1302 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1304 sharedstatedir=$ac_optarg ;;
1306 -site | --site | --sit)
1308 -site=* | --site=* | --sit=*)
1311 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1313 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1314 srcdir=$ac_optarg ;;
1316 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1317 | --syscon | --sysco | --sysc | --sys | --sy)
1318 ac_prev=sysconfdir ;;
1319 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1320 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1321 sysconfdir=$ac_optarg ;;
1323 -target | --target | --targe | --targ | --tar | --ta | --t)
1324 ac_prev=target_alias ;;
1325 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1326 target_alias=$ac_optarg ;;
1328 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1331 -version | --version | --versio | --versi | --vers | -V)
1332 ac_init_version=: ;;
1335 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338 { echo "$as_me: error: invalid package name: $ac_package" >&2
1339 { (exit 1); exit 1; }; }
1340 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1341 eval with_$ac_package=\$ac_optarg ;;
1343 -without-* | --without-*)
1344 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 { echo "$as_me: error: invalid package name: $ac_package" >&2
1348 { (exit 1); exit 1; }; }
1349 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1350 eval with_$ac_package=no ;;
1353 # Obsolete; use --with-x.
1356 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1357 | --x-incl | --x-inc | --x-in | --x-i)
1358 ac_prev=x_includes ;;
1359 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1360 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1361 x_includes=$ac_optarg ;;
1363 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1364 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1365 ac_prev=x_libraries ;;
1366 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1367 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1368 x_libraries=$ac_optarg ;;
1370 -*) { echo "$as_me: error: unrecognized option: $ac_option
1371 Try \`$0 --help' for more information." >&2
1372 { (exit 1); exit 1; }; }
1376 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1377 # Reject names that are not valid shell variable names.
1378 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1379 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1380 { (exit 1); exit 1; }; }
1381 eval $ac_envvar=\$ac_optarg
1382 export $ac_envvar ;;
1385 # FIXME: should be removed in autoconf 3.0.
1386 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1387 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1389 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1395 if test -n "$ac_prev"; then
1396 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1397 { echo "$as_me: error: missing argument to $ac_option" >&2
1398 { (exit 1); exit 1; }; }
1401 # Be sure to have absolute directory names.
1402 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1403 datadir sysconfdir sharedstatedir localstatedir includedir \
1404 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1405 libdir localedir mandir
1407 eval ac_val=\$$ac_var
1409 [\\/$]* | ?:[\\/]* ) continue;;
1410 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1412 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1413 { (exit 1); exit 1; }; }
1416 # There might be people who depend on the old broken behavior: `$host'
1417 # used to hold the argument of --host etc.
1418 # FIXME: To remove some day.
1421 target=$target_alias
1423 # FIXME: To remove some day.
1424 if test "x$host_alias" != x; then
1425 if test "x$build_alias" = x; then
1426 cross_compiling=maybe
1427 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1428 If a cross compiler is detected then cross compile mode will be used." >&2
1429 elif test "x$build_alias" != "x$host_alias"; then
1435 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1437 test "$silent" = yes && exec 6>/dev/null
1440 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441 ac_ls_di=`ls -di .` &&
1442 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443 { echo "$as_me: error: Working directory cannot be determined" >&2
1444 { (exit 1); exit 1; }; }
1445 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1446 { echo "$as_me: error: pwd does not report name of working directory" >&2
1447 { (exit 1); exit 1; }; }
1450 # Find the source files, if location was not specified.
1451 if test -z "$srcdir"; then
1452 ac_srcdir_defaulted=yes
1453 # Try the directory containing this script, then the parent directory.
1454 ac_confdir=`$as_dirname -- "$0" ||
1455 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1456 X"$0" : 'X\(//\)[^/]' \| \
1457 X"$0" : 'X\(//\)$' \| \
1458 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1482 ac_srcdir_defaulted=no
1484 if test ! -r "$srcdir/$ac_unique_file"; then
1485 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1486 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1487 { (exit 1); exit 1; }; }
1489 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1491 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1492 { (exit 1); exit 1; }; }
1494 # When building in place, set srcdir=.
1495 if test "$ac_abs_confdir" = "$ac_pwd"; then
1498 # Remove unnecessary trailing slashes from srcdir.
1499 # Double slashes in file names in object file debugging info
1500 # mess up M-x gdb in Emacs.
1502 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1504 for ac_var in $ac_precious_vars; do
1505 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1506 eval ac_env_${ac_var}_value=\$${ac_var}
1507 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1508 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1512 # Report the --help message.
1514 if test "$ac_init_help" = "long"; then
1515 # Omit some internal or obsolete options to make the list less imposing.
1516 # This message is too long to be a string in the A/UX 3.1 sh.
1518 \`configure' configures Salome6 Project HEXABLOCK module 5.1.2 to adapt to many kinds of systems.
1520 Usage: $0 [OPTION]... [VAR=VALUE]...
1522 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1523 VAR=VALUE. See below for descriptions of some of the useful variables.
1525 Defaults for the options are specified in brackets.
1528 -h, --help display this help and exit
1529 --help=short display options specific to this package
1530 --help=recursive display the short help of all the included packages
1531 -V, --version display version information and exit
1532 -q, --quiet, --silent do not print \`checking...' messages
1533 --cache-file=FILE cache test results in FILE [disabled]
1534 -C, --config-cache alias for \`--cache-file=config.cache'
1535 -n, --no-create do not create output files
1536 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1538 Installation directories:
1539 --prefix=PREFIX install architecture-independent files in PREFIX
1540 [$ac_default_prefix]
1541 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1544 By default, \`make install' will install all the files in
1545 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1546 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1547 for instance \`--prefix=\$HOME'.
1549 For better control, use the options below.
1551 Fine tuning of the installation directories:
1552 --bindir=DIR user executables [EPREFIX/bin]
1553 --sbindir=DIR system admin executables [EPREFIX/sbin]
1554 --libexecdir=DIR program executables [EPREFIX/libexec]
1555 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1556 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1557 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1558 --libdir=DIR object code libraries [EPREFIX/lib]
1559 --includedir=DIR C header files [PREFIX/include]
1560 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1561 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1562 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1563 --infodir=DIR info documentation [DATAROOTDIR/info]
1564 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1565 --mandir=DIR man documentation [DATAROOTDIR/man]
1566 --docdir=DIR documentation root [DATAROOTDIR/doc/SalomeHEXABLOCK]
1567 --htmldir=DIR html documentation [DOCDIR]
1568 --dvidir=DIR dvi documentation [DOCDIR]
1569 --pdfdir=DIR pdf documentation [DOCDIR]
1570 --psdir=DIR ps documentation [DOCDIR]
1576 --program-prefix=PREFIX prepend PREFIX to installed program names
1577 --program-suffix=SUFFIX append SUFFIX to installed program names
1578 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1581 --build=BUILD configure for building on BUILD [guessed]
1582 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1583 --target=TARGET configure for building compilers for TARGET [HOST]
1587 if test -n "$ac_init_help"; then
1588 case $ac_init_help in
1589 short | recursive ) echo "Configuration of Salome6 Project HEXABLOCK module 5.1.2:";;
1594 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1595 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1596 --enable-debug build with debug and trace information [default=yes]
1597 --enable-production compile in optimized mode [default=no]
1598 --enable-static[=PKGS] build static libraries [default=no]
1599 --enable-shared[=PKGS] build shared libraries [default=yes]
1600 --enable-fast-install[=PKGS]
1601 optimize for fast installation [default=yes]
1602 --disable-dependency-tracking speeds up one-time build
1603 --enable-dependency-tracking do not reject slow dependency extractors
1604 --disable-libtool-lock avoid locking (might break parallel builds)
1607 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1608 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1609 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1610 --with-pic try to use only PIC/non-PIC objects [default=use
1612 --with-tags[=TAGS] include additional configurations [automatic]
1613 --with-python=DIR root directory path of python installation
1614 --with-python-site=DIR Use DIR for installing platform independent Python
1616 --with-python-site-exec=DIR
1617 Use DIR for installing platform dependent Python
1619 --with-opengl=DIR root directory path of OpenGL installation
1620 --with-qt Possible usage: "Qt_Install_Path" - prefix to path
1621 where Qt was installd; "" or "yes" or "auto" - means
1622 seaching installed Qt product in the system
1623 (checking $QTDIR and then - standard system paths );
1624 "no" - not use Qt product (is not supported) By
1625 default "" option is used)
1626 --with-boost=DIR root directory path to BOOST library installation
1627 --with-cppunit=DIR directory path to CPPUNIT installation
1628 --with-cppunit_inc=DIR directory path to CPPUNIT includes
1629 --with-kernel=DIR root directory path of KERNEL build or installation
1630 --with-geom=DIR root directory path of GEOM installation
1631 --with-gui=DIR root directory path of SALOME GUI installation
1633 Some influential environment variables:
1634 CC C compiler command
1635 CFLAGS C compiler flags
1636 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1637 nonstandard directory <lib dir>
1638 LIBS libraries to pass to the linker, e.g. -l<library>
1639 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1640 you have headers in a nonstandard directory <include dir>
1642 CXX C++ compiler command
1643 CXXFLAGS C++ compiler flags
1644 CXXCPP C++ preprocessor
1645 F77 Fortran 77 compiler command
1646 FFLAGS Fortran 77 compiler flags
1648 Use these variables to override the choices made by `configure' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1651 Report bugs to <webmaster.salome@opencascade.com>.
1656 if test "$ac_init_help" = "recursive"; then
1657 # If there are subdirs, report their specific --help.
1658 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1659 test -d "$ac_dir" || continue
1663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1666 # A ".." for each directory in $ac_dir_suffix.
1667 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1668 case $ac_top_builddir_sub in
1669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1673 ac_abs_top_builddir=$ac_pwd
1674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1675 # for backward compatibility:
1676 ac_top_builddir=$ac_top_build_prefix
1679 .) # We are building in place.
1681 ac_top_srcdir=$ac_top_builddir_sub
1682 ac_abs_top_srcdir=$ac_pwd ;;
1683 [\\/]* | ?:[\\/]* ) # Absolute name.
1684 ac_srcdir=$srcdir$ac_dir_suffix;
1685 ac_top_srcdir=$srcdir
1686 ac_abs_top_srcdir=$srcdir ;;
1688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1689 ac_top_srcdir=$ac_top_build_prefix$srcdir
1690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1694 cd "$ac_dir" || { ac_status=$?; continue; }
1695 # Check for guested configure.
1696 if test -f "$ac_srcdir/configure.gnu"; then
1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699 elif test -f "$ac_srcdir/configure"; then
1701 $SHELL "$ac_srcdir/configure" --help=recursive
1703 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1705 cd "$ac_pwd" || { ac_status=$?; break; }
1709 test -n "$ac_init_help" && exit $ac_status
1710 if $ac_init_version; then
1712 Salome6 Project HEXABLOCK module configure 5.1.2
1713 generated by GNU Autoconf 2.61
1715 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1716 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1717 This configure script is free software; the Free Software Foundation
1718 gives unlimited permission to copy, distribute and modify it.
1722 cat >config.log <<_ACEOF
1723 This file contains any messages produced by compilers while
1724 running configure, to aid debugging if configure makes a mistake.
1726 It was created by Salome6 Project HEXABLOCK module $as_me 5.1.2, which was
1727 generated by GNU Autoconf 2.61. Invocation command line was
1739 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1740 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1741 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1742 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1743 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1745 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1746 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1748 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1749 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1750 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1751 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1752 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1753 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1754 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 test -z "$as_dir" && as_dir=.
1763 echo "PATH: $as_dir"
1779 # Keep a trace of the command line.
1780 # Strip out --no-create and --no-recursion so they do not pile up.
1781 # Strip out --silent because we don't want to record it for future runs.
1782 # Also quote any args containing shell meta-characters.
1783 # Make two passes to allow for proper duplicate-argument suppression.
1787 ac_must_keep_next=false
1793 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1794 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1795 | -silent | --silent | --silen | --sile | --sil)
1798 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1801 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1803 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1804 if test $ac_must_keep_next = true; then
1805 ac_must_keep_next=false # Got value, back to normal.
1808 *=* | --config-cache | -C | -disable-* | --disable-* \
1809 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1810 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1811 | -with-* | --with-* | -without-* | --without-* | --x)
1812 case "$ac_configure_args0 " in
1813 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1816 -* ) ac_must_keep_next=true ;;
1819 ac_configure_args="$ac_configure_args '$ac_arg'"
1824 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1825 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1827 # When interrupted or exit'd, cleanup temporary files, and complete
1828 # config.log. We remove comments because anyway the quotes in there
1829 # would cause problems or look ugly.
1830 # WARNING: Use '\'' to represent an apostrophe within the trap.
1831 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1832 trap 'exit_status=$?
1833 # Save into config.log some information that might help in debugging.
1838 ## ---------------- ##
1839 ## Cache variables. ##
1840 ## ---------------- ##
1843 # The following way of writing the cache mishandles newlines in values,
1845 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1846 eval ac_val=\$$ac_var
1850 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1851 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1854 _ | IFS | as_nl) ;; #(
1855 *) $as_unset $ac_var ;;
1860 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1861 *${as_nl}ac_space=\ *)
1863 "s/'\''/'\''\\\\'\'''\''/g;
1864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1867 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1875 ## ----------------- ##
1876 ## Output variables. ##
1877 ## ----------------- ##
1880 for ac_var in $ac_subst_vars
1882 eval ac_val=\$$ac_var
1884 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1886 echo "$ac_var='\''$ac_val'\''"
1890 if test -n "$ac_subst_files"; then
1892 ## ------------------- ##
1893 ## File substitutions. ##
1894 ## ------------------- ##
1897 for ac_var in $ac_subst_files
1899 eval ac_val=\$$ac_var
1901 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903 echo "$ac_var='\''$ac_val'\''"
1908 if test -s confdefs.h; then
1918 test "$ac_signal" != 0 &&
1919 echo "$as_me: caught signal $ac_signal"
1920 echo "$as_me: exit $exit_status"
1922 rm -f core *.core core.conftest.* &&
1923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926 for ac_signal in 1 2 13 15; do
1927 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1931 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1932 rm -f -r conftest* confdefs.h
1934 # Predefined preprocessor variables.
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_NAME "$PACKAGE_NAME"
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_STRING "$PACKAGE_STRING"
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1961 # Let the site file select an alternate cache file if it wants to.
1962 # Prefer explicitly selected file to automatically selected ones.
1963 if test -n "$CONFIG_SITE"; then
1964 set x "$CONFIG_SITE"
1965 elif test "x$prefix" != xNONE; then
1966 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1968 set x "$ac_default_prefix/share/config.site" \
1969 "$ac_default_prefix/etc/config.site"
1974 if test -r "$ac_site_file"; then
1975 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1976 echo "$as_me: loading site script $ac_site_file" >&6;}
1977 sed 's/^/| /' "$ac_site_file" >&5
1982 if test -r "$cache_file"; then
1983 # Some versions of bash will fail to source /dev/null (special
1984 # files actually), so we avoid doing that.
1985 if test -f "$cache_file"; then
1986 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1987 echo "$as_me: loading cache $cache_file" >&6;}
1989 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1990 *) . "./$cache_file";;
1994 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1995 echo "$as_me: creating cache $cache_file" >&6;}
1999 # Check that the precious variables saved in the cache have kept the same
2001 ac_cache_corrupted=false
2002 for ac_var in $ac_precious_vars; do
2003 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2004 eval ac_new_set=\$ac_env_${ac_var}_set
2005 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2006 eval ac_new_val=\$ac_env_${ac_var}_value
2007 case $ac_old_set,$ac_new_set in
2009 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2010 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2011 ac_cache_corrupted=: ;;
2013 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2014 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2015 ac_cache_corrupted=: ;;
2018 if test "x$ac_old_val" != "x$ac_new_val"; then
2019 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2020 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2021 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2022 echo "$as_me: former value: $ac_old_val" >&2;}
2023 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2024 echo "$as_me: current value: $ac_new_val" >&2;}
2025 ac_cache_corrupted=:
2028 # Pass precious variables to config.status.
2029 if test "$ac_new_set" = set; then
2031 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 *) ac_arg=$ac_var=$ac_new_val ;;
2034 case " $ac_configure_args " in
2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2036 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2040 if $ac_cache_corrupted; then
2041 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2042 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2043 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2044 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2045 { (exit 1); exit 1; }; }
2073 ac_cpp='$CPP $CPPFLAGS'
2074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2080 for ac_dir in adm_local/unix/config_files "$srcdir"/adm_local/unix/config_files; do
2081 if test -f "$ac_dir/install-sh"; then
2083 ac_install_sh="$ac_aux_dir/install-sh -c"
2085 elif test -f "$ac_dir/install.sh"; then
2087 ac_install_sh="$ac_aux_dir/install.sh -c"
2089 elif test -f "$ac_dir/shtool"; then
2091 ac_install_sh="$ac_aux_dir/shtool install -c"
2095 if test -z "$ac_aux_dir"; then
2096 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in adm_local/unix/config_files \"$srcdir\"/adm_local/unix/config_files" >&5
2097 echo "$as_me: error: cannot find install-sh or install.sh in adm_local/unix/config_files \"$srcdir\"/adm_local/unix/config_files" >&2;}
2098 { (exit 1); exit 1; }; }
2101 # These three variables are undocumented and unsupported,
2102 # and are intended to be withdrawn in a future Autoconf release.
2103 # They can cause serious problems if a builder's source tree is in a directory
2104 # whose full name contains unusual characters.
2105 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2106 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2107 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2110 # Make sure we can run config.sub.
2111 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2112 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2113 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2114 { (exit 1); exit 1; }; }
2116 { echo "$as_me:$LINENO: checking build system type" >&5
2117 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2118 if test "${ac_cv_build+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 ac_build_alias=$build_alias
2122 test "x$ac_build_alias" = x &&
2123 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2124 test "x$ac_build_alias" = x &&
2125 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2126 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2127 { (exit 1); exit 1; }; }
2128 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2129 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2130 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2131 { (exit 1); exit 1; }; }
2134 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2135 echo "${ECHO_T}$ac_cv_build" >&6; }
2136 case $ac_cv_build in
2138 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2139 echo "$as_me: error: invalid value of canonical build" >&2;}
2140 { (exit 1); exit 1; }; };;
2143 ac_save_IFS=$IFS; IFS='-'
2149 # Remember, the first character of IFS is used to create $*,
2150 # except with old shells:
2153 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2156 { echo "$as_me:$LINENO: checking host system type" >&5
2157 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2158 if test "${ac_cv_host+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test "x$host_alias" = x; then
2162 ac_cv_host=$ac_cv_build
2164 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2165 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2166 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2167 { (exit 1); exit 1; }; }
2171 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2172 echo "${ECHO_T}$ac_cv_host" >&6; }
2175 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2176 echo "$as_me: error: invalid value of canonical host" >&2;}
2177 { (exit 1); exit 1; }; };;
2180 ac_save_IFS=$IFS; IFS='-'
2186 # Remember, the first character of IFS is used to create $*,
2187 # except with old shells:
2190 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2193 { echo "$as_me:$LINENO: checking target system type" >&5
2194 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2195 if test "${ac_cv_target+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 if test "x$target_alias" = x; then
2199 ac_cv_target=$ac_cv_host
2201 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2202 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2203 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2204 { (exit 1); exit 1; }; }
2208 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2209 echo "${ECHO_T}$ac_cv_target" >&6; }
2210 case $ac_cv_target in
2212 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2213 echo "$as_me: error: invalid value of canonical target" >&2;}
2214 { (exit 1); exit 1; }; };;
2216 target=$ac_cv_target
2217 ac_save_IFS=$IFS; IFS='-'
2223 # Remember, the first character of IFS is used to create $*,
2224 # except with old shells:
2227 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2230 # The aliases save the names the user supplied, while $host etc.
2231 # will get canonicalized.
2232 test -n "$target_alias" &&
2233 test "$program_prefix$program_suffix$program_transform_name" = \
2235 program_prefix=${target_alias}-
2236 am__api_version='1.10'
2238 # Find a good install program. We prefer a C program (faster),
2239 # so one script is as good as another. But avoid the broken or
2240 # incompatible versions:
2241 # SysV /etc/install, /usr/sbin/install
2242 # SunOS /usr/etc/install
2243 # IRIX /sbin/install
2245 # AmigaOS /C/install, which installs bootblocks on floppy discs
2246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2249 # OS/2's system install, which has a completely different semantic
2250 # ./install, which can be erroneously created by make from ./install.sh.
2251 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2252 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2253 if test -z "$INSTALL"; then
2254 if test "${ac_cv_path_install+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 test -z "$as_dir" && as_dir=.
2262 # Account for people who put trailing slashes in PATH elements.
2264 ./ | .// | /cC/* | \
2265 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2266 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2269 # OSF1 and SCO ODT 3.0 have their own names for install.
2270 # Don't use installbsd from OSF since it installs stuff as root
2272 for ac_prog in ginstall scoinst install; do
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2275 if test $ac_prog = install &&
2276 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2277 # AIX install. It has an incompatible calling convention.
2279 elif test $ac_prog = install &&
2280 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2281 # program-specific install script used by HP pwplus--don't use.
2284 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2297 if test "${ac_cv_path_install+set}" = set; then
2298 INSTALL=$ac_cv_path_install
2300 # As a last resort, use the slow shell script. Don't cache a
2301 # value for INSTALL within a source directory, because that will
2302 # break other packages using the cache if that directory is
2303 # removed, or if the value is a relative name.
2304 INSTALL=$ac_install_sh
2307 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2308 echo "${ECHO_T}$INSTALL" >&6; }
2310 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2311 # It thinks the first close brace ends the variable substitution.
2312 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2314 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2316 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2318 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2319 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2322 echo timestamp > conftest.file
2323 # Do `set' in a subshell so we don't clobber the current shell's
2324 # arguments. Must try -L first in case configure is actually a
2325 # symlink; some systems play weird games with the mod time of symlinks
2326 # (eg FreeBSD returns the mod time of the symlink's containing
2329 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2330 if test "$*" = "X"; then
2332 set X `ls -t $srcdir/configure conftest.file`
2335 if test "$*" != "X $srcdir/configure conftest.file" \
2336 && test "$*" != "X conftest.file $srcdir/configure"; then
2338 # If neither matched, then we have a broken ls. This can happen
2339 # if, for instance, CONFIG_SHELL is bash and it inherits a
2340 # broken ls alias from the environment. This has actually
2341 # happened. Such a system could not be considered "sane".
2342 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2343 alias in your environment" >&5
2344 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2345 alias in your environment" >&2;}
2346 { (exit 1); exit 1; }; }
2349 test "$2" = conftest.file
2355 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2356 Check your system clock" >&5
2357 echo "$as_me: error: newly created file is older than distributed files!
2358 Check your system clock" >&2;}
2359 { (exit 1); exit 1; }; }
2361 { echo "$as_me:$LINENO: result: yes" >&5
2362 echo "${ECHO_T}yes" >&6; }
2363 test "$program_prefix" != NONE &&
2364 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2365 # Use a double $ so make ignores it.
2366 test "$program_suffix" != NONE &&
2367 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2368 # Double any \ or $. echo might interpret backslashes.
2369 # By default was `s,x,x', remove it if useless.
2370 cat <<\_ACEOF >conftest.sed
2371 s/[\\$]/&&/g;s/;s,x,x,$//
2373 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2376 # expand $ac_aux_dir to an absolute path
2377 am_aux_dir=`cd $ac_aux_dir && pwd`
2379 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2380 # Use eval to expand $SHELL
2381 if eval "$MISSING --run true"; then
2382 am_missing_run="$MISSING --run "
2385 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2386 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2389 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2390 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2391 if test -z "$MKDIR_P"; then
2392 if test "${ac_cv_path_mkdir+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2399 test -z "$as_dir" && as_dir=.
2400 for ac_prog in mkdir gmkdir; do
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2403 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2404 'mkdir (GNU coreutils) '* | \
2405 'mkdir (coreutils) '* | \
2406 'mkdir (fileutils) '4.1*)
2407 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2417 if test "${ac_cv_path_mkdir+set}" = set; then
2418 MKDIR_P="$ac_cv_path_mkdir -p"
2420 # As a last resort, use the slow shell script. Don't cache a
2421 # value for MKDIR_P within a source directory, because that will
2422 # break other packages using the cache if that directory is
2423 # removed, or if the value is a relative name.
2424 test -d ./--version && rmdir ./--version
2425 MKDIR_P="$ac_install_sh -d"
2428 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2429 echo "${ECHO_T}$MKDIR_P" >&6; }
2433 [\\/$]* | ?:[\\/]*) ;;
2434 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2437 for ac_prog in gawk mawk nawk awk
2439 # Extract the first word of "$ac_prog", so it can be a program name with args.
2440 set dummy $ac_prog; ac_word=$2
2441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2443 if test "${ac_cv_prog_AWK+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2446 if test -n "$AWK"; then
2447 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2456 ac_cv_prog_AWK="$ac_prog"
2457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 if test -n "$AWK"; then
2468 { echo "$as_me:$LINENO: result: $AWK" >&5
2469 echo "${ECHO_T}$AWK" >&6; }
2471 { echo "$as_me:$LINENO: result: no" >&5
2472 echo "${ECHO_T}no" >&6; }
2476 test -n "$AWK" && break
2479 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2480 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2481 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2482 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 cat >conftest.make <<\_ACEOF
2488 @echo '@@@%%%=$(MAKE)=@@@%%%'
2490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2493 eval ac_cv_prog_make_${ac_make}_set=yes;;
2495 eval ac_cv_prog_make_${ac_make}_set=no;;
2499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2500 { echo "$as_me:$LINENO: result: yes" >&5
2501 echo "${ECHO_T}yes" >&6; }
2504 { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2506 SET_MAKE="MAKE=${MAKE-make}"
2509 rm -rf .tst 2>/dev/null
2510 mkdir .tst 2>/dev/null
2511 if test -d .tst; then
2516 rmdir .tst 2>/dev/null
2518 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2519 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2520 # is not polluted with repeated "-I."
2521 am__isrc=' -I$(srcdir)'
2522 # test to see if srcdir already configured
2523 if test -f $srcdir/config.status; then
2524 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2525 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2526 { (exit 1); exit 1; }; }
2530 # test whether we have cygpath
2531 if test -z "$CYGPATH_W"; then
2532 if (cygpath --version) >/dev/null 2>/dev/null; then
2533 CYGPATH_W='cygpath -w'
2540 # Define the identity of the package.
2541 PACKAGE='SalomeHEXABLOCK'
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE "$PACKAGE"
2550 cat >>confdefs.h <<_ACEOF
2551 #define VERSION "$VERSION"
2554 # Some tools Automake needs.
2556 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2559 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2562 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2565 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2568 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2570 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2572 # Installed binaries are usually stripped using `strip' when the user
2573 # run `make install-strip'. However `strip' might not be the right
2574 # tool to use in cross-compilation environments, therefore Automake
2575 # will honor the `STRIP' environment variable to overrule this program.
2576 if test "$cross_compiling" != no; then
2577 if test -n "$ac_tool_prefix"; then
2578 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2579 set dummy ${ac_tool_prefix}strip; ac_word=$2
2580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2582 if test "${ac_cv_prog_STRIP+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 if test -n "$STRIP"; then
2586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 STRIP=$ac_cv_prog_STRIP
2606 if test -n "$STRIP"; then
2607 { echo "$as_me:$LINENO: result: $STRIP" >&5
2608 echo "${ECHO_T}$STRIP" >&6; }
2610 { echo "$as_me:$LINENO: result: no" >&5
2611 echo "${ECHO_T}no" >&6; }
2616 if test -z "$ac_cv_prog_STRIP"; then
2618 # Extract the first word of "strip", so it can be a program name with args.
2619 set dummy strip; ac_word=$2
2620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2622 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 if test -n "$ac_ct_STRIP"; then
2626 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635 ac_cv_prog_ac_ct_STRIP="strip"
2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2646 if test -n "$ac_ct_STRIP"; then
2647 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2648 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2650 { echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6; }
2654 if test "x$ac_ct_STRIP" = x; then
2657 case $cross_compiling:$ac_tool_warned in
2659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2660 whose name does not start with the host triplet. If you think this
2661 configuration is useful to you, please write to autoconf@gnu.org." >&5
2662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2663 whose name does not start with the host triplet. If you think this
2664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2665 ac_tool_warned=yes ;;
2670 STRIP="$ac_cv_prog_STRIP"
2674 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2676 # We need awk for the "check" target. The system "awk" is bad on
2678 # Always define AMTAR for backward compatibility.
2680 AMTAR=${AMTAR-"${am_missing_run}tar"}
2682 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2689 XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
2692 # set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
2693 MODULE_NAME=hexablock
2698 ROOT_SRCDIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
2707 echo Source root directory : $ROOT_SRCDIR
2708 echo Build root directory : $ROOT_BUILDDIR
2712 # Extract the first word of "sh", so it can be a program name with args.
2713 set dummy sh; ac_word=$2
2714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2716 if test "${ac_cv_prog_SHELL+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 if test -n "$SHELL"; then
2720 ac_cv_prog_SHELL="$SHELL" # Let the user override the test.
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 SHELL=$ac_cv_prog_SHELL
2740 if test -n "$SHELL"; then
2741 { echo "$as_me:$LINENO: result: $SHELL" >&5
2742 echo "${ECHO_T}$SHELL" >&6; }
2744 { echo "$as_me:$LINENO: result: no" >&5
2745 echo "${ECHO_T}no" >&6; }
2751 if test -z "$AR"; then
2752 for ac_prog in ar xar
2754 # Extract the first word of "$ac_prog", so it can be a program name with args.
2755 set dummy $ac_prog; ac_word=$2
2756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2758 if test "${ac_cv_prog_AR+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 if test -n "$AR"; then
2762 ac_cv_prog_AR="$AR" # Let the user override the test.
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_AR="$ac_prog"
2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 if test -n "$AR"; then
2783 { echo "$as_me:$LINENO: result: $AR" >&5
2784 echo "${ECHO_T}$AR" >&6; }
2786 { echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6; }
2791 test -n "$AR" && break
2793 test -n "$AR" || AR=":"
2801 echo ---------------------------------------------
2803 echo ---------------------------------------------
2806 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2807 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2808 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2809 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 cat >conftest.make <<\_ACEOF
2815 @echo '@@@%%%=$(MAKE)=@@@%%%'
2817 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2818 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2820 eval ac_cv_prog_make_${ac_make}_set=yes;;
2822 eval ac_cv_prog_make_${ac_make}_set=no;;
2826 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2827 { echo "$as_me:$LINENO: result: yes" >&5
2828 echo "${ECHO_T}yes" >&6; }
2831 { echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6; }
2833 SET_MAKE="MAKE=${MAKE-make}"
2836 # Find a good install program. We prefer a C program (faster),
2837 # so one script is as good as another. But avoid the broken or
2838 # incompatible versions:
2839 # SysV /etc/install, /usr/sbin/install
2840 # SunOS /usr/etc/install
2841 # IRIX /sbin/install
2843 # AmigaOS /C/install, which installs bootblocks on floppy discs
2844 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2845 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2847 # OS/2's system install, which has a completely different semantic
2848 # ./install, which can be erroneously created by make from ./install.sh.
2849 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2850 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2851 if test -z "$INSTALL"; then
2852 if test "${ac_cv_path_install+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 test -z "$as_dir" && as_dir=.
2860 # Account for people who put trailing slashes in PATH elements.
2862 ./ | .// | /cC/* | \
2863 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2864 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2867 # OSF1 and SCO ODT 3.0 have their own names for install.
2868 # Don't use installbsd from OSF since it installs stuff as root
2870 for ac_prog in ginstall scoinst install; do
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2873 if test $ac_prog = install &&
2874 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2875 # AIX install. It has an incompatible calling convention.
2877 elif test $ac_prog = install &&
2878 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2879 # program-specific install script used by HP pwplus--don't use.
2882 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2895 if test "${ac_cv_path_install+set}" = set; then
2896 INSTALL=$ac_cv_path_install
2898 # As a last resort, use the slow shell script. Don't cache a
2899 # value for INSTALL within a source directory, because that will
2900 # break other packages using the cache if that directory is
2901 # removed, or if the value is a relative name.
2902 INSTALL=$ac_install_sh
2905 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2906 echo "${ECHO_T}$INSTALL" >&6; }
2908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2909 # It thinks the first close brace ends the variable substitution.
2910 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2912 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2914 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2917 # Check whether --enable-debug was given.
2918 if test "${enable_debug+set}" = set; then
2919 enableval=$enable_debug;
2920 enable_debug=$enableval
2927 if test "X$enable_debug" = "Xyes"; then
2928 CFLAGS="$CFLAGS -g -D_DEBUG_ "
2929 CXXFLAGS="$CXXFLAGS -g -D_DEBUG_ "
2932 # Check whether --enable-production was given.
2933 if test "${enable_production+set}" = set; then
2934 enableval=$enable_production;
2935 enable_production=$enableval
2938 enable_production=no
2943 { echo "$as_me:$LINENO: checking wether $CXX accepts -Wparentheses" >&5
2944 echo $ECHO_N "checking wether $CXX accepts -Wparentheses... $ECHO_C" >&6; }
2945 cat > conftest.cxx <<EOF
2946 int main() { return 0; }
2948 $CXX -Wparentheses conftest.cxx > conftest.log 2>&1
2949 var=`echo -Wparentheses | sed -e "s, .*$,," | sed -e "s,^-,,"`
2950 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
2951 if grep -e $var conftest.log > /dev/null 2>&1 ; then
2952 { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2956 { echo "$as_me:$LINENO: result: yes" >&5
2957 echo "${ECHO_T}yes" >&6; }
2958 CXXFLAGS="${CXXFLAGS} -Wparentheses"
2963 { echo "$as_me:$LINENO: checking wether $CXX accepts -Wreturn-type" >&5
2964 echo $ECHO_N "checking wether $CXX accepts -Wreturn-type... $ECHO_C" >&6; }
2965 cat > conftest.cxx <<EOF
2966 int main() { return 0; }
2968 $CXX -Wreturn-type conftest.cxx > conftest.log 2>&1
2969 var=`echo -Wreturn-type | sed -e "s, .*$,," | sed -e "s,^-,,"`
2970 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
2971 if grep -e $var conftest.log > /dev/null 2>&1 ; then
2972 { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2976 { echo "$as_me:$LINENO: result: yes" >&5
2977 echo "${ECHO_T}yes" >&6; }
2978 CXXFLAGS="${CXXFLAGS} -Wreturn-type"
2983 { echo "$as_me:$LINENO: checking wether $CXX accepts -Wmissing-declarations" >&5
2984 echo $ECHO_N "checking wether $CXX accepts -Wmissing-declarations... $ECHO_C" >&6; }
2985 cat > conftest.cxx <<EOF
2986 int main() { return 0; }
2988 $CXX -Wmissing-declarations conftest.cxx > conftest.log 2>&1
2989 var=`echo -Wmissing-declarations | sed -e "s, .*$,," | sed -e "s,^-,,"`
2990 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
2991 if grep -e $var conftest.log > /dev/null 2>&1 ; then
2992 { echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6; }
2996 { echo "$as_me:$LINENO: result: yes" >&5
2997 echo "${ECHO_T}yes" >&6; }
2998 CXXFLAGS="${CXXFLAGS} -Wmissing-declarations"
3003 { echo "$as_me:$LINENO: checking wether $CXX accepts -fmessage-length=0" >&5
3004 echo $ECHO_N "checking wether $CXX accepts -fmessage-length=0... $ECHO_C" >&6; }
3005 cat > conftest.cxx <<EOF
3006 int main() { return 0; }
3008 $CXX -fmessage-length=0 conftest.cxx > conftest.log 2>&1
3009 var=`echo -fmessage-length=0 | sed -e "s, .*$,," | sed -e "s,^-,,"`
3010 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
3011 if grep -e $var conftest.log > /dev/null 2>&1 ; then
3012 { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3016 { echo "$as_me:$LINENO: result: yes" >&5
3017 echo "${ECHO_T}yes" >&6; }
3018 CXXFLAGS="${CXXFLAGS} -fmessage-length=0"
3023 { echo "$as_me:$LINENO: checking wether $CXX accepts -Wunused" >&5
3024 echo $ECHO_N "checking wether $CXX accepts -Wunused... $ECHO_C" >&6; }
3025 cat > conftest.cxx <<EOF
3026 int main() { return 0; }
3028 $CXX -Wunused conftest.cxx > conftest.log 2>&1
3029 var=`echo -Wunused | sed -e "s, .*$,," | sed -e "s,^-,,"`
3030 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
3031 if grep -e $var conftest.log > /dev/null 2>&1 ; then
3032 { echo "$as_me:$LINENO: result: no" >&5
3033 echo "${ECHO_T}no" >&6; }
3036 { echo "$as_me:$LINENO: result: yes" >&5
3037 echo "${ECHO_T}yes" >&6; }
3038 CXXFLAGS="${CXXFLAGS} -Wunused"
3043 { echo "$as_me:$LINENO: checking wether $CXX accepts -pipe" >&5
3044 echo $ECHO_N "checking wether $CXX accepts -pipe... $ECHO_C" >&6; }
3045 cat > conftest.cxx <<EOF
3046 int main() { return 0; }
3048 $CXX -pipe conftest.cxx > conftest.log 2>&1
3049 var=`echo -pipe | sed -e "s, .*$,," | sed -e "s,^-,,"`
3050 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
3051 if grep -e $var conftest.log > /dev/null 2>&1 ; then
3052 { echo "$as_me:$LINENO: result: no" >&5
3053 echo "${ECHO_T}no" >&6; }
3056 { echo "$as_me:$LINENO: result: yes" >&5
3057 echo "${ECHO_T}yes" >&6; }
3058 CXXFLAGS="${CXXFLAGS} -pipe"
3063 if test "X$enable_production" = "Xyes"; then
3066 { echo "$as_me:$LINENO: checking wether $CXX accepts -Wuninitialized" >&5
3067 echo $ECHO_N "checking wether $CXX accepts -Wuninitialized... $ECHO_C" >&6; }
3068 cat > conftest.cxx <<EOF
3069 int main() { return 0; }
3071 $CXX -Wuninitialized conftest.cxx > conftest.log 2>&1
3072 var=`echo -Wuninitialized | sed -e "s, .*$,," | sed -e "s,^-,,"`
3073 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
3074 if grep -e $var conftest.log > /dev/null 2>&1 ; then
3075 { echo "$as_me:$LINENO: result: no" >&5
3076 echo "${ECHO_T}no" >&6; }
3079 { echo "$as_me:$LINENO: result: yes" >&5
3080 echo "${ECHO_T}yes" >&6; }
3081 CXXFLAGS="${CXXFLAGS} -Wuninitialized"
3085 CXXFLAGS="$CXXFLAGS -O "
3088 CXXFLAGS="$CXXFLAGS -g"
3092 echo ---------------------------------------------
3093 echo testing libtool
3094 echo ---------------------------------------------
3096 # Check whether --enable-static was given.
3097 if test "${enable_static+set}" = set; then
3098 enableval=$enable_static; p=${PACKAGE-default}
3100 yes) enable_static=yes ;;
3101 no) enable_static=no ;;
3104 # Look at the argument we got. We use all the common list separators.
3105 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3106 for pkg in $enableval; do
3108 if test "X$pkg" = "X$p"; then
3123 # Check whether --enable-shared was given.
3124 if test "${enable_shared+set}" = set; then
3125 enableval=$enable_shared; p=${PACKAGE-default}
3127 yes) enable_shared=yes ;;
3128 no) enable_shared=no ;;
3131 # Look at the argument we got. We use all the common list separators.
3132 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3133 for pkg in $enableval; do
3135 if test "X$pkg" = "X$p"; then
3147 # Check whether --enable-fast-install was given.
3148 if test "${enable_fast_install+set}" = set; then
3149 enableval=$enable_fast_install; p=${PACKAGE-default}
3151 yes) enable_fast_install=yes ;;
3152 no) enable_fast_install=no ;;
3154 enable_fast_install=no
3155 # Look at the argument we got. We use all the common list separators.
3156 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3157 for pkg in $enableval; do
3159 if test "X$pkg" = "X$p"; then
3160 enable_fast_install=yes
3167 enable_fast_install=yes
3171 DEPDIR="${am__leading_dot}deps"
3173 ac_config_commands="$ac_config_commands depfiles"
3176 am_make=${MAKE-make}
3177 cat > confinc << 'END'
3182 # If we don't find an include directive, just comment out the code.
3183 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3184 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3188 # First try GNU make style include.
3189 echo "include confinc" > confmf
3190 # We grep out `Entering directory' and `Leaving directory'
3191 # messages which can occur if `w' ends up in MAKEFLAGS.
3192 # In particular we don't look at `^make:' because GNU make might
3193 # be invoked under some other name (usually "gmake"), in which
3194 # case it prints its new name instead of `make'.
3195 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3200 # Now try BSD make style include.
3201 if test "$am__include" = "#"; then
3202 echo '.include "confinc"' > confmf
3203 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3204 am__include=.include
3211 { echo "$as_me:$LINENO: result: $_am_result" >&5
3212 echo "${ECHO_T}$_am_result" >&6; }
3213 rm -f confinc confmf
3215 # Check whether --enable-dependency-tracking was given.
3216 if test "${enable_dependency_tracking+set}" = set; then
3217 enableval=$enable_dependency_tracking;
3220 if test "x$enable_dependency_tracking" != xno; then
3221 am_depcomp="$ac_aux_dir/depcomp"
3224 if test "x$enable_dependency_tracking" != xno; then
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 if test -n "$ac_tool_prefix"; then
3239 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3240 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3243 if test "${ac_cv_prog_CC+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 if test -n "$CC"; then
3247 ac_cv_prog_CC="$CC" # Let the user override the test.
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 if test -n "$CC"; then
3268 { echo "$as_me:$LINENO: result: $CC" >&5
3269 echo "${ECHO_T}$CC" >&6; }
3271 { echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6; }
3277 if test -z "$ac_cv_prog_CC"; then
3279 # Extract the first word of "gcc", so it can be a program name with args.
3280 set dummy gcc; ac_word=$2
3281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 if test -n "$ac_ct_CC"; then
3287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_ac_ct_CC="gcc"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3307 if test -n "$ac_ct_CC"; then
3308 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3309 echo "${ECHO_T}$ac_ct_CC" >&6; }
3311 { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3315 if test "x$ac_ct_CC" = x; then
3318 case $cross_compiling:$ac_tool_warned in
3320 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3321 whose name does not start with the host triplet. If you think this
3322 configuration is useful to you, please write to autoconf@gnu.org." >&5
3323 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3324 whose name does not start with the host triplet. If you think this
3325 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3326 ac_tool_warned=yes ;;
3334 if test -z "$CC"; then
3335 if test -n "$ac_tool_prefix"; then
3336 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3337 set dummy ${ac_tool_prefix}cc; ac_word=$2
3338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3340 if test "${ac_cv_prog_CC+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 if test -n "$CC"; then
3344 ac_cv_prog_CC="$CC" # Let the user override the test.
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353 ac_cv_prog_CC="${ac_tool_prefix}cc"
3354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 if test -n "$CC"; then
3365 { echo "$as_me:$LINENO: result: $CC" >&5
3366 echo "${ECHO_T}$CC" >&6; }
3368 { echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6; }
3375 if test -z "$CC"; then
3376 # Extract the first word of "cc", so it can be a program name with args.
3377 set dummy cc; ac_word=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_CC+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 if test -n "$CC"; then
3384 ac_cv_prog_CC="$CC" # Let the user override the test.
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3395 ac_prog_rejected=yes
3399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 if test $ac_prog_rejected = yes; then
3407 # We found a bogon in the path, so make sure we never use it.
3408 set dummy $ac_cv_prog_CC
3410 if test $# != 0; then
3411 # We chose a different compiler from the bogus one.
3412 # However, it has the same basename, so the bogon will be chosen
3413 # first if we set CC to just the basename; use the full file name.
3415 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3421 if test -n "$CC"; then
3422 { echo "$as_me:$LINENO: result: $CC" >&5
3423 echo "${ECHO_T}$CC" >&6; }
3425 { echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6; }
3431 if test -z "$CC"; then
3432 if test -n "$ac_tool_prefix"; then
3433 for ac_prog in cl.exe
3435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3439 if test "${ac_cv_prog_CC+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 if test -n "$CC"; then
3464 { echo "$as_me:$LINENO: result: $CC" >&5
3465 echo "${ECHO_T}$CC" >&6; }
3467 { echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6; }
3472 test -n "$CC" && break
3475 if test -z "$CC"; then
3477 for ac_prog in cl.exe
3479 # Extract the first word of "$ac_prog", so it can be a program name with args.
3480 set dummy $ac_prog; ac_word=$2
3481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 if test -n "$ac_ct_CC"; then
3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_ac_ct_CC="$ac_prog"
3497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507 if test -n "$ac_ct_CC"; then
3508 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3509 echo "${ECHO_T}$ac_ct_CC" >&6; }
3511 { echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6; }
3516 test -n "$ac_ct_CC" && break
3519 if test "x$ac_ct_CC" = x; then
3522 case $cross_compiling:$ac_tool_warned in
3524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3525 whose name does not start with the host triplet. If you think this
3526 configuration is useful to you, please write to autoconf@gnu.org." >&5
3527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3528 whose name does not start with the host triplet. If you think this
3529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3530 ac_tool_warned=yes ;;
3539 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3540 See \`config.log' for more details." >&5
3541 echo "$as_me: error: no acceptable C compiler found in \$PATH
3542 See \`config.log' for more details." >&2;}
3543 { (exit 1); exit 1; }; }
3545 # Provide some information about the compiler.
3546 echo "$as_me:$LINENO: checking for C compiler version" >&5
3547 ac_compiler=`set X $ac_compile; echo $2`
3548 { (ac_try="$ac_compiler --version >&5"
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554 (eval "$ac_compiler --version >&5") 2>&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }
3558 { (ac_try="$ac_compiler -v >&5"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_compiler -v >&5") 2>&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }
3568 { (ac_try="$ac_compiler -V >&5"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_compiler -V >&5") 2>&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }
3579 cat >conftest.$ac_ext <<_ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3594 ac_clean_files_save=$ac_clean_files
3595 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3596 # Try to create an executable without -o first, disregard a.out.
3597 # It will help us diagnose broken compilers, and finding out an intuition
3599 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3600 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3601 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3603 # List of possible output files, starting from the most likely.
3604 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3605 # only as a last resort. b.out is created by i960 compilers.
3606 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3608 # The IRIX 6 linker writes into existing files which may not be
3609 # executable, retaining their permissions. Remove them first so a
3610 # subsequent execution test works.
3612 for ac_file in $ac_files
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3616 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3621 if { (ac_try="$ac_link_default"
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_link_default") 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; then
3631 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3632 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3633 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3634 # so that the user can short-circuit this test for compilers unknown to
3636 for ac_file in $ac_files ''
3638 test -f "$ac_file" || continue
3640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3643 # We found the default executable, but exeext='' is most
3647 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3649 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3651 # We set ac_cv_exeext here because the later test for it is not
3652 # safe: cross compilers may not add the suffix if given an `-o'
3653 # argument, so we may need to know it at that point already.
3654 # Even if this section looks crufty: it has the advantage of
3661 test "$ac_cv_exeext" = no && ac_cv_exeext=
3667 { echo "$as_me:$LINENO: result: $ac_file" >&5
3668 echo "${ECHO_T}$ac_file" >&6; }
3669 if test -z "$ac_file"; then
3670 echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3673 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3674 See \`config.log' for more details." >&5
3675 echo "$as_me: error: C compiler cannot create executables
3676 See \`config.log' for more details." >&2;}
3677 { (exit 77); exit 77; }; }
3680 ac_exeext=$ac_cv_exeext
3682 # Check that the compiler produces executables we can run. If not, either
3683 # the compiler is broken, or we cross compile.
3684 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3685 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3686 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3687 # If not cross compiling, check that we can run a simple program.
3688 if test "$cross_compiling" != yes; then
3689 if { ac_try='./$ac_file'
3690 { (case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695 (eval "$ac_try") 2>&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; }; then
3701 if test "$cross_compiling" = maybe; then
3704 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3705 If you meant to cross compile, use \`--host'.
3706 See \`config.log' for more details." >&5
3707 echo "$as_me: error: cannot run C compiled programs.
3708 If you meant to cross compile, use \`--host'.
3709 See \`config.log' for more details." >&2;}
3710 { (exit 1); exit 1; }; }
3714 { echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6; }
3717 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3718 ac_clean_files=$ac_clean_files_save
3719 # Check that the compiler produces executables we can run. If not, either
3720 # the compiler is broken, or we cross compile.
3721 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3722 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3723 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3724 echo "${ECHO_T}$cross_compiling" >&6; }
3726 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3727 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3728 if { (ac_try="$ac_link"
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734 (eval "$ac_link") 2>&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; then
3738 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3739 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3740 # work properly (i.e., refer to `conftest.exe'), while it won't with
3742 for ac_file in conftest.exe conftest conftest.*; do
3743 test -f "$ac_file" || continue
3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3752 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3753 See \`config.log' for more details." >&5
3754 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3755 See \`config.log' for more details." >&2;}
3756 { (exit 1); exit 1; }; }
3759 rm -f conftest$ac_cv_exeext
3760 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3761 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3763 rm -f conftest.$ac_ext
3764 EXEEXT=$ac_cv_exeext
3766 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3767 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3768 if test "${ac_cv_objext+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 cat >conftest.$ac_ext <<_ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3786 rm -f conftest.o conftest.obj
3787 if { (ac_try="$ac_compile"
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793 (eval "$ac_compile") 2>&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; then
3797 for ac_file in conftest.o conftest.obj conftest.*; do
3798 test -f "$ac_file" || continue;
3800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3801 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3810 See \`config.log' for more details." >&5
3811 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3812 See \`config.log' for more details." >&2;}
3813 { (exit 1); exit 1; }; }
3816 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3818 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3819 echo "${ECHO_T}$ac_cv_objext" >&6; }
3820 OBJEXT=$ac_cv_objext
3822 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3823 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3824 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 cat >conftest.$ac_ext <<_ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3845 rm -f conftest.$ac_objext
3846 if { (ac_try="$ac_compile"
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_compile") 2>conftest.er1
3854 grep -v '^ *+' conftest.er1 >conftest.err
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } && {
3859 test -z "$ac_c_werror_flag" ||
3860 test ! -s conftest.err
3861 } && test -s conftest.$ac_objext; then
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3874 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3875 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3876 GCC=`test $ac_compiler_gnu = yes && echo yes`
3877 ac_test_CFLAGS=${CFLAGS+set}
3878 ac_save_CFLAGS=$CFLAGS
3879 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3880 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3881 if test "${ac_cv_prog_cc_g+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 ac_save_c_werror_flag=$ac_c_werror_flag
3885 ac_c_werror_flag=yes
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_compile") 2>conftest.er1
3912 grep -v '^ *+' conftest.er1 >conftest.err
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } && {
3917 test -z "$ac_c_werror_flag" ||
3918 test ! -s conftest.err
3919 } && test -s conftest.$ac_objext; then
3922 echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3926 cat >conftest.$ac_ext <<_ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3941 rm -f conftest.$ac_objext
3942 if { (ac_try="$ac_compile"
3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945 *) ac_try_echo=$ac_try;;
3947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3948 (eval "$ac_compile") 2>conftest.er1
3950 grep -v '^ *+' conftest.er1 >conftest.err
3952 cat conftest.err >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } && {
3955 test -z "$ac_c_werror_flag" ||
3956 test ! -s conftest.err
3957 } && test -s conftest.$ac_objext; then
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3963 ac_c_werror_flag=$ac_save_c_werror_flag
3965 cat >conftest.$ac_ext <<_ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3980 rm -f conftest.$ac_objext
3981 if { (ac_try="$ac_compile"
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_compile") 2>conftest.er1
3989 grep -v '^ *+' conftest.er1 >conftest.err
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } && {
3994 test -z "$ac_c_werror_flag" ||
3995 test ! -s conftest.err
3996 } && test -s conftest.$ac_objext; then
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 ac_c_werror_flag=$ac_save_c_werror_flag
4014 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4015 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4016 if test "$ac_test_CFLAGS" = set; then
4017 CFLAGS=$ac_save_CFLAGS
4018 elif test $ac_cv_prog_cc_g = yes; then
4019 if test "$GCC" = yes; then
4025 if test "$GCC" = yes; then
4031 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4032 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4033 if test "${ac_cv_prog_cc_c89+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 ac_cv_prog_cc_c89=no
4038 cat >conftest.$ac_ext <<_ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h. */
4046 #include <sys/types.h>
4047 #include <sys/stat.h>
4048 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4049 struct buf { int x; };
4050 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4051 static char *e (p, i)
4057 static char *f (char * (*g) (char **, int), char **p, ...)
4062 s = g (p, va_arg (v,int));
4067 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4068 function prototypes and stuff, but not '\xHH' hex character constants.
4069 These don't provoke an error unfortunately, instead are silently treated
4070 as 'x'. The following induces an error, until -std is added to get
4071 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4072 array size at least. It's necessary to write '\x00'==0 to get something
4073 that's true only with -std. */
4074 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4076 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4077 inside strings and character constants. */
4079 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4081 int test (int i, double x);
4082 struct s1 {int (*f) (int a);};
4083 struct s2 {int (*f) (double a);};
4084 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4090 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4095 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4096 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4098 CC="$ac_save_CC $ac_arg"
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_compile") 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } && {
4113 test -z "$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4115 } && test -s conftest.$ac_objext; then
4116 ac_cv_prog_cc_c89=$ac_arg
4118 echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4124 rm -f core conftest.err conftest.$ac_objext
4125 test "x$ac_cv_prog_cc_c89" != "xno" && break
4127 rm -f conftest.$ac_ext
4132 case "x$ac_cv_prog_cc_c89" in
4134 { echo "$as_me:$LINENO: result: none needed" >&5
4135 echo "${ECHO_T}none needed" >&6; } ;;
4137 { echo "$as_me:$LINENO: result: unsupported" >&5
4138 echo "${ECHO_T}unsupported" >&6; } ;;
4140 CC="$CC $ac_cv_prog_cc_c89"
4141 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4142 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152 depcc="$CC" am_compiler_list=
4154 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4155 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4156 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4160 # We make a subdir and do the tests there. Otherwise we can end up
4161 # making bogus files that we don't know about and never remove. For
4162 # instance it was reported that on HP-UX the gcc test will end up
4163 # making a dummy file named `D' -- because `-MD' means `put the output
4166 # Copy depcomp to subdir because otherwise we won't find it if we're
4167 # using a relative directory.
4168 cp "$am_depcomp" conftest.dir
4170 # We will build objects and dependencies in a subdirectory because
4171 # it helps to detect inapplicable dependency modes. For instance
4172 # both Tru64's cc and ICC support -MD to output dependencies as a
4173 # side effect of compilation, but ICC will put the dependencies in
4174 # the current directory while Tru64 will put them in the object
4178 am_cv_CC_dependencies_compiler_type=none
4179 if test "$am_compiler_list" = ""; then
4180 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4182 for depmode in $am_compiler_list; do
4183 # Setup a source with many dependencies, because some compilers
4184 # like to wrap large dependency lists on column 80 (with \), and
4185 # we should not choose a depcomp mode which is confused by this.
4187 # We need to recreate these files for each test, as the compiler may
4188 # overwrite some of them when testing with obscure command lines.
4189 # This happens at least with the AIX C compiler.
4191 for i in 1 2 3 4 5 6; do
4192 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4193 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4194 # Solaris 8's {/usr,}/bin/sh.
4195 touch sub/conftst$i.h
4197 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4201 # after this tag, mechanisms are not by side-effect, so they'll
4202 # only be used when explicitly requested
4203 if test "x$enable_dependency_tracking" = xyes; then
4211 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4212 # mode. It turns out that the SunPro C++ compiler does not properly
4213 # handle `-M -o', and we need to detect this.
4214 if depmode=$depmode \
4215 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4216 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4217 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4218 >/dev/null 2>conftest.err &&
4219 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4221 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4223 # icc doesn't choke on unknown options, it will just issue warnings
4224 # or remarks (even with -Werror). So we grep stderr for any message
4225 # that says an option was ignored or not supported.
4226 # When given -MP, icc 7.0 and 7.1 complain thusly:
4227 # icc: Command line warning: ignoring option '-M'; no argument required
4228 # The diagnosis changed in icc 8.0:
4229 # icc: Command line remark: option '-MP' not supported
4230 if (grep 'ignoring option' conftest.err ||
4231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4232 am_cv_CC_dependencies_compiler_type=$depmode
4241 am_cv_CC_dependencies_compiler_type=none
4245 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4246 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4247 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4250 test "x$enable_dependency_tracking" != xno \
4251 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4253 am__fastdepCC_FALSE='#'
4255 am__fastdepCC_TRUE='#'
4256 am__fastdepCC_FALSE=
4260 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4261 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4262 if test "${lt_cv_path_SED+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 # Loop through the user's path and test for sed and gsed.
4266 # Then use that list of sed's as ones to test for truncation.
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 test -z "$as_dir" && as_dir=.
4272 for lt_ac_prog in sed gsed; do
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4275 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4282 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4283 # along with /bin/sed that truncates output.
4284 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4285 test ! -f $lt_ac_sed && continue
4286 cat /dev/null > conftest.in
4288 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4289 # Check for GNU sed and select it if it is found.
4290 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4291 lt_cv_path_SED=$lt_ac_sed
4295 cat conftest.in conftest.in >conftest.tmp
4296 mv conftest.tmp conftest.in
4297 cp conftest.in conftest.nl
4299 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4300 cmp -s conftest.out conftest.nl || break
4301 # 10000 chars as input seems more than enough
4302 test $lt_ac_count -gt 10 && break
4303 lt_ac_count=`expr $lt_ac_count + 1`
4304 if test $lt_ac_count -gt $lt_ac_max; then
4305 lt_ac_max=$lt_ac_count
4306 lt_cv_path_SED=$lt_ac_sed
4314 { echo "$as_me:$LINENO: result: $SED" >&5
4315 echo "${ECHO_T}$SED" >&6; }
4317 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4318 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4319 if test "${ac_cv_path_GREP+set}" = set; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 # Extract the first word of "grep ggrep" to use in msg output
4323 if test -z "$GREP"; then
4324 set dummy grep ggrep; ac_prog_name=$2
4325 if test "${ac_cv_path_GREP+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 ac_path_GREP_found=false
4329 # Loop through the user's path and test for each of PROGNAME-LIST
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4334 test -z "$as_dir" && as_dir=.
4335 for ac_prog in grep ggrep; do
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4338 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4339 # Check for GNU ac_path_GREP and select it if it is found.
4340 # Check for GNU $ac_path_GREP
4341 case `"$ac_path_GREP" --version 2>&1` in
4343 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4346 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4349 cat "conftest.in" "conftest.in" >"conftest.tmp"
4350 mv "conftest.tmp" "conftest.in"
4351 cp "conftest.in" "conftest.nl"
4352 echo 'GREP' >> "conftest.nl"
4353 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4355 ac_count=`expr $ac_count + 1`
4356 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4357 # Best one so far, save it but keep looking for a better one
4358 ac_cv_path_GREP="$ac_path_GREP"
4359 ac_path_GREP_max=$ac_count
4361 # 10*(2^10) chars as input seems more than enough
4362 test $ac_count -gt 10 && break
4364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4368 $ac_path_GREP_found && break 3
4378 GREP="$ac_cv_path_GREP"
4379 if test -z "$GREP"; then
4380 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4381 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4382 { (exit 1); exit 1; }; }
4386 ac_cv_path_GREP=$GREP
4391 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4392 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4393 GREP="$ac_cv_path_GREP"
4396 { echo "$as_me:$LINENO: checking for egrep" >&5
4397 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4398 if test "${ac_cv_path_EGREP+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4402 then ac_cv_path_EGREP="$GREP -E"
4404 # Extract the first word of "egrep" to use in msg output
4405 if test -z "$EGREP"; then
4406 set dummy egrep; ac_prog_name=$2
4407 if test "${ac_cv_path_EGREP+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 ac_path_EGREP_found=false
4411 # Loop through the user's path and test for each of PROGNAME-LIST
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4416 test -z "$as_dir" && as_dir=.
4417 for ac_prog in egrep; do
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4420 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4421 # Check for GNU ac_path_EGREP and select it if it is found.
4422 # Check for GNU $ac_path_EGREP
4423 case `"$ac_path_EGREP" --version 2>&1` in
4425 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4428 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4431 cat "conftest.in" "conftest.in" >"conftest.tmp"
4432 mv "conftest.tmp" "conftest.in"
4433 cp "conftest.in" "conftest.nl"
4434 echo 'EGREP' >> "conftest.nl"
4435 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4437 ac_count=`expr $ac_count + 1`
4438 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4439 # Best one so far, save it but keep looking for a better one
4440 ac_cv_path_EGREP="$ac_path_EGREP"
4441 ac_path_EGREP_max=$ac_count
4443 # 10*(2^10) chars as input seems more than enough
4444 test $ac_count -gt 10 && break
4446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450 $ac_path_EGREP_found && break 3
4460 EGREP="$ac_cv_path_EGREP"
4461 if test -z "$EGREP"; then
4462 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4463 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4464 { (exit 1); exit 1; }; }
4468 ac_cv_path_EGREP=$EGREP
4474 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4475 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4476 EGREP="$ac_cv_path_EGREP"
4480 # Check whether --with-gnu-ld was given.
4481 if test "${with_gnu_ld+set}" = set; then
4482 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4488 if test "$GCC" = yes; then
4489 # Check if gcc -print-prog-name=ld gives a path.
4490 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4491 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4494 # gcc leaves a trailing carriage return which upsets mingw
4495 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4497 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4500 # Accept absolute paths.
4502 re_direlt='/[^/][^/]*/\.\./'
4503 # Canonicalize the pathname of ld
4504 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4505 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4506 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4508 test -z "$LD" && LD="$ac_prog"
4511 # If it fails, then pretend we aren't using GCC.
4515 # If it is relative, then search for the first ld in PATH.
4519 elif test "$with_gnu_ld" = yes; then
4520 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4521 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4523 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4524 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4526 if test "${lt_cv_path_LD+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 if test -z "$LD"; then
4530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4531 for ac_dir in $PATH; do
4533 test -z "$ac_dir" && ac_dir=.
4534 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4535 lt_cv_path_LD="$ac_dir/$ac_prog"
4536 # Check to see if the program is GNU ld. I'd rather use --version,
4537 # but apparently some variants of GNU ld only accept -v.
4538 # Break only if it was the GNU/non-GNU ld that we prefer.
4539 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4540 *GNU* | *'with BFD'*)
4541 test "$with_gnu_ld" != no && break
4544 test "$with_gnu_ld" != yes && break
4551 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4556 if test -n "$LD"; then
4557 { echo "$as_me:$LINENO: result: $LD" >&5
4558 echo "${ECHO_T}$LD" >&6; }
4560 { echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6; }
4563 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4564 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4565 { (exit 1); exit 1; }; }
4566 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4567 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4568 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4572 case `$LD -v 2>&1 </dev/null` in
4573 *GNU* | *'with BFD'*)
4574 lt_cv_prog_gnu_ld=yes
4577 lt_cv_prog_gnu_ld=no
4581 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4582 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4583 with_gnu_ld=$lt_cv_prog_gnu_ld
4586 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4587 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4588 if test "${lt_cv_ld_reload_flag+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 lt_cv_ld_reload_flag='-r'
4593 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4594 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4595 reload_flag=$lt_cv_ld_reload_flag
4596 case $reload_flag in
4598 *) reload_flag=" $reload_flag" ;;
4600 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4603 if test "$GCC" = yes; then
4604 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4606 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4611 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4612 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4613 if test "${lt_cv_path_NM+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 if test -n "$NM"; then
4617 # Let the user override the test.
4620 lt_nm_to_check="${ac_tool_prefix}nm"
4621 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4622 lt_nm_to_check="$lt_nm_to_check nm"
4624 for lt_tmp_nm in $lt_nm_to_check; do
4625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4626 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4628 test -z "$ac_dir" && ac_dir=.
4629 tmp_nm="$ac_dir/$lt_tmp_nm"
4630 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4631 # Check to see if the nm accepts a BSD-compat flag.
4632 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4633 # nm: unknown option "B" ignored
4634 # Tru64's nm complains that /dev/null is an invalid object file
4635 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4636 */dev/null* | *'Invalid file or object type'*)
4637 lt_cv_path_NM="$tmp_nm -B"
4641 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4643 lt_cv_path_NM="$tmp_nm -p"
4647 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4648 continue # so that we can try to find one that supports BSD flags
4657 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4660 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4661 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4664 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4665 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4667 if test "$LN_S" = "ln -s"; then
4668 { echo "$as_me:$LINENO: result: yes" >&5
4669 echo "${ECHO_T}yes" >&6; }
4671 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4672 echo "${ECHO_T}no, using $LN_S" >&6; }
4675 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4676 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4677 if test "${lt_cv_deplibs_check_method+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 lt_cv_file_magic_cmd='$MAGIC_CMD'
4681 lt_cv_file_magic_test_file=
4682 lt_cv_deplibs_check_method='unknown'
4683 # Need to set the preceding variable on all platforms that support
4684 # interlibrary dependencies.
4685 # 'none' -- dependencies not supported.
4686 # `unknown' -- same as none, but documents that we really don't know.
4687 # 'pass_all' -- all dependencies passed with no checks.
4688 # 'test_compile' -- check by making test program.
4689 # 'file_magic [[regex]]' -- check by looking for files in library path
4690 # which responds to the $file_magic_cmd with a given extended regex.
4691 # If you have `file' or equivalent on your system and you're not sure
4692 # whether `pass_all' will *always* work, you probably want this one.
4696 lt_cv_deplibs_check_method=pass_all
4700 lt_cv_deplibs_check_method=pass_all
4704 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4705 lt_cv_file_magic_cmd='/usr/bin/file -L'
4706 lt_cv_file_magic_test_file=/shlib/libc.so
4710 # func_win32_libid is a shell function defined in ltmain.sh
4711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4712 lt_cv_file_magic_cmd='func_win32_libid'
4716 # Base MSYS/MinGW do not provide the 'file' command needed by
4717 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4718 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4719 lt_cv_file_magic_cmd='$OBJDUMP -f'
4722 darwin* | rhapsody*)
4723 lt_cv_deplibs_check_method=pass_all
4726 freebsd* | kfreebsd*-gnu | dragonfly*)
4727 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4730 # Not sure whether the presence of OpenBSD here was a mistake.
4731 # Let's accept both of them until this is cleared up.
4732 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4733 lt_cv_file_magic_cmd=/usr/bin/file
4734 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4738 lt_cv_deplibs_check_method=pass_all
4743 lt_cv_deplibs_check_method=pass_all
4746 hpux10.20* | hpux11*)
4747 lt_cv_file_magic_cmd=/usr/bin/file
4750 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4751 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4754 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4755 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4758 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4759 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4765 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4766 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4769 irix5* | irix6* | nonstopux*)
4771 *-32|*"-32 ") libmagic=32-bit;;
4772 *-n32|*"-n32 ") libmagic=N32;;
4773 *-64|*"-64 ") libmagic=64-bit;;
4774 *) libmagic=never-match;;
4776 lt_cv_deplibs_check_method=pass_all
4779 # This must be Linux ELF.
4781 lt_cv_deplibs_check_method=pass_all
4785 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4786 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4794 lt_cv_file_magic_cmd=/usr/bin/file
4795 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4799 lt_cv_deplibs_check_method=unknown
4803 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4804 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4810 osf3* | osf4* | osf5*)
4811 lt_cv_deplibs_check_method=pass_all
4815 lt_cv_deplibs_check_method=pass_all
4819 case $host_vendor in
4821 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]'
4822 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4825 lt_cv_deplibs_check_method=pass_all
4828 lt_cv_file_magic_cmd='/bin/file'
4829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4832 lt_cv_file_magic_cmd='/bin/file'
4833 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4834 lt_cv_file_magic_test_file=/lib/libc.so
4837 lt_cv_deplibs_check_method=pass_all
4840 lt_cv_deplibs_check_method=pass_all
4845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4846 lt_cv_deplibs_check_method=pass_all
4851 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4852 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4853 file_magic_cmd=$lt_cv_file_magic_cmd
4854 deplibs_check_method=$lt_cv_deplibs_check_method
4855 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4860 # If no C compiler was specified, use CC.
4863 # If no C compiler flags were specified, use CFLAGS.
4864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4866 # Allow CC to be a program name with arguments.
4870 # Check whether --enable-libtool-lock was given.
4871 if test "${enable_libtool_lock+set}" = set; then
4872 enableval=$enable_libtool_lock;
4875 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4877 # Some flags need to be propagated to the compiler or linker for good
4881 # Find out which ABI we are using.
4882 echo 'int i;' > conftest.$ac_ext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4884 (eval $ac_compile) 2>&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }; then
4888 case `/usr/bin/file conftest.$ac_objext` in
4900 # Find out which ABI we are using.
4901 echo '#line 4901 "configure"' > conftest.$ac_ext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; then
4907 if test "$lt_cv_prog_gnu_ld" = yes; then
4908 case `/usr/bin/file conftest.$ac_objext` in
4910 LD="${LD-ld} -melf32bsmip"
4913 LD="${LD-ld} -melf32bmipn32"
4916 LD="${LD-ld} -melf64bmip"
4920 case `/usr/bin/file conftest.$ac_objext` in
4936 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4937 # Find out which ABI we are using.
4938 echo 'int i;' > conftest.$ac_ext
4939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4940 (eval $ac_compile) 2>&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; then
4944 case `/usr/bin/file conftest.o` in
4948 LD="${LD-ld} -m elf_i386"
4950 ppc64-*linux*|powerpc64-*linux*)
4951 LD="${LD-ld} -m elf32ppclinux"
4954 LD="${LD-ld} -m elf_s390"
4957 LD="${LD-ld} -m elf32_sparc"
4964 LD="${LD-ld} -m elf_x86_64"
4966 ppc*-*linux*|powerpc*-*linux*)
4967 LD="${LD-ld} -m elf64ppc"
4970 LD="${LD-ld} -m elf64_s390"
4973 LD="${LD-ld} -m elf64_sparc"
4983 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4984 SAVE_CFLAGS="$CFLAGS"
4985 CFLAGS="$CFLAGS -belf"
4986 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4987 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4988 if test "${lt_cv_cc_needs_belf+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 ac_cpp='$CPP $CPPFLAGS'
4993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997 cat >conftest.$ac_ext <<_ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5012 rm -f conftest.$ac_objext conftest$ac_exeext
5013 if { (ac_try="$ac_link"
5015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5016 *) ac_try_echo=$ac_try;;
5018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5019 (eval "$ac_link") 2>conftest.er1
5021 grep -v '^ *+' conftest.er1 >conftest.err
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } && {
5026 test -z "$ac_c_werror_flag" ||
5027 test ! -s conftest.err
5028 } && test -s conftest$ac_exeext &&
5029 $as_test_x conftest$ac_exeext; then
5030 lt_cv_cc_needs_belf=yes
5032 echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5035 lt_cv_cc_needs_belf=no
5038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5039 conftest$ac_exeext conftest.$ac_ext
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5048 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5049 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5050 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5051 CFLAGS="$SAVE_CFLAGS"
5055 # Find out which ABI we are using.
5056 echo 'int i;' > conftest.$ac_ext
5057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058 (eval $ac_compile) 2>&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; then
5062 case `/usr/bin/file conftest.o` in
5064 case $lt_cv_prog_gnu_ld in
5065 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5066 *) LD="${LD-ld} -64" ;;
5077 need_locks="$enable_libtool_lock"
5081 ac_cpp='$CPP $CPPFLAGS'
5082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5086 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5087 # On Suns, sometimes $CPP names a directory.
5088 if test -n "$CPP" && test -d "$CPP"; then
5091 if test -z "$CPP"; then
5092 if test "${ac_cv_prog_CPP+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 # Double quotes because CPP needs to be expanded
5096 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5099 for ac_c_preproc_warn_flag in '' yes
5101 # Use a header file that comes with gcc, so configuring glibc
5102 # with a fresh cross-compiler works.
5103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5104 # <limits.h> exists even on freestanding compilers.
5105 # On the NeXT, cc -E runs the code through the compiler's parser,
5106 # not just through cpp. "Syntax error" is here to catch this case.
5107 cat >conftest.$ac_ext <<_ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5114 # include <limits.h>
5116 # include <assert.h>
5120 if { (ac_try="$ac_cpp conftest.$ac_ext"
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5128 grep -v '^ *+' conftest.er1 >conftest.err
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } >/dev/null && {
5133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5138 echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 # Broken: fails on valid input.
5145 rm -f conftest.err conftest.$ac_ext
5147 # OK, works on sane cases. Now check whether nonexistent headers
5148 # can be detected and how.
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 #include <ac_nonexistent.h>
5157 if { (ac_try="$ac_cpp conftest.$ac_ext"
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5165 grep -v '^ *+' conftest.er1 >conftest.err
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } >/dev/null && {
5170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5171 test ! -s conftest.err
5173 # Broken: success on invalid input.
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 # Passes both tests.
5184 rm -f conftest.err conftest.$ac_ext
5187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188 rm -f conftest.err conftest.$ac_ext
5189 if $ac_preproc_ok; then
5201 { echo "$as_me:$LINENO: result: $CPP" >&5
5202 echo "${ECHO_T}$CPP" >&6; }
5204 for ac_c_preproc_warn_flag in '' yes
5206 # Use a header file that comes with gcc, so configuring glibc
5207 # with a fresh cross-compiler works.
5208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5209 # <limits.h> exists even on freestanding compilers.
5210 # On the NeXT, cc -E runs the code through the compiler's parser,
5211 # not just through cpp. "Syntax error" is here to catch this case.
5212 cat >conftest.$ac_ext <<_ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5219 # include <limits.h>
5221 # include <assert.h>
5225 if { (ac_try="$ac_cpp conftest.$ac_ext"
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5233 grep -v '^ *+' conftest.er1 >conftest.err
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } >/dev/null && {
5238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5239 test ! -s conftest.err
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 # Broken: fails on valid input.
5250 rm -f conftest.err conftest.$ac_ext
5252 # OK, works on sane cases. Now check whether nonexistent headers
5253 # can be detected and how.
5254 cat >conftest.$ac_ext <<_ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5260 #include <ac_nonexistent.h>
5262 if { (ac_try="$ac_cpp conftest.$ac_ext"
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5270 grep -v '^ *+' conftest.er1 >conftest.err
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } >/dev/null && {
5275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5276 test ! -s conftest.err
5278 # Broken: success on invalid input.
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5284 # Passes both tests.
5289 rm -f conftest.err conftest.$ac_ext
5292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5293 rm -f conftest.err conftest.$ac_ext
5294 if $ac_preproc_ok; then
5297 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5298 See \`config.log' for more details." >&5
5299 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5300 See \`config.log' for more details." >&2;}
5301 { (exit 1); exit 1; }; }
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5312 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5313 if test "${ac_cv_header_stdc+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5335 rm -f conftest.$ac_objext
5336 if { (ac_try="$ac_compile"
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_compile") 2>conftest.er1
5344 grep -v '^ *+' conftest.er1 >conftest.err
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } && {
5349 test -z "$ac_c_werror_flag" ||
5350 test ! -s conftest.err
5351 } && test -s conftest.$ac_objext; then
5352 ac_cv_header_stdc=yes
5354 echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5357 ac_cv_header_stdc=no
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 if test $ac_cv_header_stdc = yes; then
5363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5374 $EGREP "memchr" >/dev/null 2>&1; then
5377 ac_cv_header_stdc=no
5383 if test $ac_cv_header_stdc = yes; then
5384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5385 cat >conftest.$ac_ext <<_ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395 $EGREP "free" >/dev/null 2>&1; then
5398 ac_cv_header_stdc=no
5404 if test $ac_cv_header_stdc = yes; then
5405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5406 if test "$cross_compiling" = yes; then
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5417 #if ((' ' & 0x0FF) == 0x020)
5418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5421 # define ISLOWER(c) \
5422 (('a' <= (c) && (c) <= 'i') \
5423 || ('j' <= (c) && (c) <= 'r') \
5424 || ('s' <= (c) && (c) <= 'z'))
5425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5433 for (i = 0; i < 256; i++)
5434 if (XOR (islower (i), ISLOWER (i))
5435 || toupper (i) != TOUPPER (i))
5440 rm -f conftest$ac_exeext
5441 if { (ac_try="$ac_link"
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_link") 2>&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5451 { (case "(($ac_try" in
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_try") 2>&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5462 echo "$as_me: program exited with status $ac_status" >&5
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5467 ac_cv_header_stdc=no
5469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5475 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5476 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5477 if test $ac_cv_header_stdc = yes; then
5479 cat >>confdefs.h <<\_ACEOF
5480 #define STDC_HEADERS 1
5485 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5495 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5496 inttypes.h stdint.h unistd.h
5498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 $ac_includes_default
5512 #include <$ac_header>
5514 rm -f conftest.$ac_objext
5515 if { (ac_try="$ac_compile"
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_compile") 2>conftest.er1
5523 grep -v '^ *+' conftest.er1 >conftest.err
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } && {
5528 test -z "$ac_c_werror_flag" ||
5529 test ! -s conftest.err
5530 } && test -s conftest.$ac_objext; then
5531 eval "$as_ac_Header=yes"
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 eval "$as_ac_Header=no"
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541 ac_res=`eval echo '${'$as_ac_Header'}'`
5542 { echo "$as_me:$LINENO: result: $ac_res" >&5
5543 echo "${ECHO_T}$ac_res" >&6; }
5544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5545 cat >>confdefs.h <<_ACEOF
5546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5555 for ac_header in dlfcn.h
5557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 ac_res=`eval echo '${'$as_ac_Header'}'`
5565 { echo "$as_me:$LINENO: result: $ac_res" >&5
5566 echo "${ECHO_T}$ac_res" >&6; }
5568 # Is the header compilable?
5569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 $ac_includes_default
5578 #include <$ac_header>
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5589 grep -v '^ *+' conftest.er1 >conftest.err
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest.$ac_objext; then
5597 ac_header_compiler=yes
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5602 ac_header_compiler=no
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5607 echo "${ECHO_T}$ac_header_compiler" >&6; }
5609 # Is the header present?
5610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5612 cat >conftest.$ac_ext <<_ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 #include <$ac_header>
5620 if { (ac_try="$ac_cpp conftest.$ac_ext"
5622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5628 grep -v '^ *+' conftest.er1 >conftest.err
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } >/dev/null && {
5633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5636 ac_header_preproc=yes
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 ac_header_preproc=no
5644 rm -f conftest.err conftest.$ac_ext
5645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5646 echo "${ECHO_T}$ac_header_preproc" >&6; }
5648 # So? What about this header?
5649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5655 ac_header_preproc=yes
5658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5671 ## ----------------------------------------------- ##
5672 ## Report this to webmaster.salome@opencascade.com ##
5673 ## ----------------------------------------------- ##
5675 ) | sed "s/^/$as_me: WARNING: /" >&2
5678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 eval "$as_ac_Header=\$ac_header_preproc"
5685 ac_res=`eval echo '${'$as_ac_Header'}'`
5686 { echo "$as_me:$LINENO: result: $ac_res" >&5
5687 echo "${ECHO_T}$ac_res" >&6; }
5690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5691 cat >>confdefs.h <<_ACEOF
5692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5700 ac_cpp='$CXXCPP $CPPFLAGS'
5701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5704 if test -z "$CXX"; then
5705 if test -n "$CCC"; then
5708 if test -n "$ac_tool_prefix"; then
5709 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5715 if test "${ac_cv_prog_CXX+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 if test -n "$CXX"; then
5719 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 if test -n "$CXX"; then
5740 { echo "$as_me:$LINENO: result: $CXX" >&5
5741 echo "${ECHO_T}$CXX" >&6; }
5743 { echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6; }
5748 test -n "$CXX" && break
5751 if test -z "$CXX"; then
5753 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5755 # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5759 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 if test -n "$ac_ct_CXX"; then
5763 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_prog_ac_ct_CXX="$ac_prog"
5773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5783 if test -n "$ac_ct_CXX"; then
5784 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5785 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5787 { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5792 test -n "$ac_ct_CXX" && break
5795 if test "x$ac_ct_CXX" = x; then
5798 case $cross_compiling:$ac_tool_warned in
5800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5801 whose name does not start with the host triplet. If you think this
5802 configuration is useful to you, please write to autoconf@gnu.org." >&5
5803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5804 whose name does not start with the host triplet. If you think this
5805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5806 ac_tool_warned=yes ;;
5814 # Provide some information about the compiler.
5815 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5816 ac_compiler=`set X $ac_compile; echo $2`
5817 { (ac_try="$ac_compiler --version >&5"
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compiler --version >&5") 2>&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }
5827 { (ac_try="$ac_compiler -v >&5"
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compiler -v >&5") 2>&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }
5837 { (ac_try="$ac_compiler -V >&5"
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compiler -V >&5") 2>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }
5848 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5849 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5850 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 cat >conftest.$ac_ext <<_ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5880 grep -v '^ *+' conftest.er1 >conftest.err
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && {
5885 test -z "$ac_cxx_werror_flag" ||
5886 test ! -s conftest.err
5887 } && test -s conftest.$ac_objext; then
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5900 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5901 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5902 GXX=`test $ac_compiler_gnu = yes && echo yes`
5903 ac_test_CXXFLAGS=${CXXFLAGS+set}
5904 ac_save_CXXFLAGS=$CXXFLAGS
5905 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5906 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5907 if test "${ac_cv_prog_cxx_g+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5911 ac_cxx_werror_flag=yes
5914 cat >conftest.$ac_ext <<_ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5929 rm -f conftest.$ac_objext
5930 if { (ac_try="$ac_compile"
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_compile") 2>conftest.er1
5938 grep -v '^ *+' conftest.er1 >conftest.err
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && {
5943 test -z "$ac_cxx_werror_flag" ||
5944 test ! -s conftest.err
5945 } && test -s conftest.$ac_objext; then
5946 ac_cv_prog_cxx_g=yes
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5952 cat >conftest.$ac_ext <<_ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5967 rm -f conftest.$ac_objext
5968 if { (ac_try="$ac_compile"
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_compile") 2>conftest.er1
5976 grep -v '^ *+' conftest.er1 >conftest.err
5978 cat conftest.err >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } && {
5981 test -z "$ac_cxx_werror_flag" ||
5982 test ! -s conftest.err
5983 } && test -s conftest.$ac_objext; then
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6015 grep -v '^ *+' conftest.er1 >conftest.err
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && {
6020 test -z "$ac_cxx_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
6023 ac_cv_prog_cxx_g=yes
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6040 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6041 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6042 if test "$ac_test_CXXFLAGS" = set; then
6043 CXXFLAGS=$ac_save_CXXFLAGS
6044 elif test $ac_cv_prog_cxx_g = yes; then
6045 if test "$GXX" = yes; then
6051 if test "$GXX" = yes; then
6058 ac_cpp='$CXXCPP $CPPFLAGS'
6059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6063 depcc="$CXX" am_compiler_list=
6065 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6066 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6067 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6071 # We make a subdir and do the tests there. Otherwise we can end up
6072 # making bogus files that we don't know about and never remove. For
6073 # instance it was reported that on HP-UX the gcc test will end up
6074 # making a dummy file named `D' -- because `-MD' means `put the output
6077 # Copy depcomp to subdir because otherwise we won't find it if we're
6078 # using a relative directory.
6079 cp "$am_depcomp" conftest.dir
6081 # We will build objects and dependencies in a subdirectory because
6082 # it helps to detect inapplicable dependency modes. For instance
6083 # both Tru64's cc and ICC support -MD to output dependencies as a
6084 # side effect of compilation, but ICC will put the dependencies in
6085 # the current directory while Tru64 will put them in the object
6089 am_cv_CXX_dependencies_compiler_type=none
6090 if test "$am_compiler_list" = ""; then
6091 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6093 for depmode in $am_compiler_list; do
6094 # Setup a source with many dependencies, because some compilers
6095 # like to wrap large dependency lists on column 80 (with \), and
6096 # we should not choose a depcomp mode which is confused by this.
6098 # We need to recreate these files for each test, as the compiler may
6099 # overwrite some of them when testing with obscure command lines.
6100 # This happens at least with the AIX C compiler.
6102 for i in 1 2 3 4 5 6; do
6103 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6104 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6105 # Solaris 8's {/usr,}/bin/sh.
6106 touch sub/conftst$i.h
6108 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6112 # after this tag, mechanisms are not by side-effect, so they'll
6113 # only be used when explicitly requested
6114 if test "x$enable_dependency_tracking" = xyes; then
6122 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6123 # mode. It turns out that the SunPro C++ compiler does not properly
6124 # handle `-M -o', and we need to detect this.
6125 if depmode=$depmode \
6126 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6127 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6128 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6129 >/dev/null 2>conftest.err &&
6130 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6131 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6132 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6134 # icc doesn't choke on unknown options, it will just issue warnings
6135 # or remarks (even with -Werror). So we grep stderr for any message
6136 # that says an option was ignored or not supported.
6137 # When given -MP, icc 7.0 and 7.1 complain thusly:
6138 # icc: Command line warning: ignoring option '-M'; no argument required
6139 # The diagnosis changed in icc 8.0:
6140 # icc: Command line remark: option '-MP' not supported
6141 if (grep 'ignoring option' conftest.err ||
6142 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6143 am_cv_CXX_dependencies_compiler_type=$depmode
6152 am_cv_CXX_dependencies_compiler_type=none
6156 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6157 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6158 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6161 test "x$enable_dependency_tracking" != xno \
6162 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6163 am__fastdepCXX_TRUE=
6164 am__fastdepCXX_FALSE='#'
6166 am__fastdepCXX_TRUE='#'
6167 am__fastdepCXX_FALSE=
6173 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6174 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6175 (test "X$CXX" != "Xg++"))) ; then
6177 ac_cpp='$CXXCPP $CPPFLAGS'
6178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6181 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6182 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6183 if test -z "$CXXCPP"; then
6184 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 # Double quotes because CXXCPP needs to be expanded
6188 for CXXCPP in "$CXX -E" "/lib/cpp"
6191 for ac_cxx_preproc_warn_flag in '' yes
6193 # Use a header file that comes with gcc, so configuring glibc
6194 # with a fresh cross-compiler works.
6195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6196 # <limits.h> exists even on freestanding compilers.
6197 # On the NeXT, cc -E runs the code through the compiler's parser,
6198 # not just through cpp. "Syntax error" is here to catch this case.
6199 cat >conftest.$ac_ext <<_ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6206 # include <limits.h>
6208 # include <assert.h>
6212 if { (ac_try="$ac_cpp conftest.$ac_ext"
6214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6215 *) ac_try_echo=$ac_try;;
6217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6220 grep -v '^ *+' conftest.er1 >conftest.err
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } >/dev/null && {
6225 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6226 test ! -s conftest.err
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6233 # Broken: fails on valid input.
6237 rm -f conftest.err conftest.$ac_ext
6239 # OK, works on sane cases. Now check whether nonexistent headers
6240 # can be detected and how.
6241 cat >conftest.$ac_ext <<_ACEOF
6244 cat confdefs.h >>conftest.$ac_ext
6245 cat >>conftest.$ac_ext <<_ACEOF
6246 /* end confdefs.h. */
6247 #include <ac_nonexistent.h>
6249 if { (ac_try="$ac_cpp conftest.$ac_ext"
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6257 grep -v '^ *+' conftest.er1 >conftest.err
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } >/dev/null && {
6262 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6263 test ! -s conftest.err
6265 # Broken: success on invalid input.
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6271 # Passes both tests.
6276 rm -f conftest.err conftest.$ac_ext
6279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6280 rm -f conftest.err conftest.$ac_ext
6281 if $ac_preproc_ok; then
6286 ac_cv_prog_CXXCPP=$CXXCPP
6289 CXXCPP=$ac_cv_prog_CXXCPP
6291 ac_cv_prog_CXXCPP=$CXXCPP
6293 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6294 echo "${ECHO_T}$CXXCPP" >&6; }
6296 for ac_cxx_preproc_warn_flag in '' yes
6298 # Use a header file that comes with gcc, so configuring glibc
6299 # with a fresh cross-compiler works.
6300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6301 # <limits.h> exists even on freestanding compilers.
6302 # On the NeXT, cc -E runs the code through the compiler's parser,
6303 # not just through cpp. "Syntax error" is here to catch this case.
6304 cat >conftest.$ac_ext <<_ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6311 # include <limits.h>
6313 # include <assert.h>
6317 if { (ac_try="$ac_cpp conftest.$ac_ext"
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6325 grep -v '^ *+' conftest.er1 >conftest.err
6327 cat conftest.err >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } >/dev/null && {
6330 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6331 test ! -s conftest.err
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6338 # Broken: fails on valid input.
6342 rm -f conftest.err conftest.$ac_ext
6344 # OK, works on sane cases. Now check whether nonexistent headers
6345 # can be detected and how.
6346 cat >conftest.$ac_ext <<_ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 #include <ac_nonexistent.h>
6354 if { (ac_try="$ac_cpp conftest.$ac_ext"
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6362 grep -v '^ *+' conftest.er1 >conftest.err
6364 cat conftest.err >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } >/dev/null && {
6367 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6368 test ! -s conftest.err
6370 # Broken: success on invalid input.
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 # Passes both tests.
6381 rm -f conftest.err conftest.$ac_ext
6384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6385 rm -f conftest.err conftest.$ac_ext
6386 if $ac_preproc_ok; then
6389 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6390 See \`config.log' for more details." >&5
6391 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6392 See \`config.log' for more details." >&2;}
6393 { (exit 1); exit 1; }; }
6397 ac_cpp='$CXXCPP $CPPFLAGS'
6398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6406 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6407 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6409 if test -n "$ac_tool_prefix"; then
6410 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6413 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416 if test "${ac_cv_prog_F77+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 if test -n "$F77"; then
6420 ac_cv_prog_F77="$F77" # Let the user override the test.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 if test -n "$F77"; then
6441 { echo "$as_me:$LINENO: result: $F77" >&5
6442 echo "${ECHO_T}$F77" >&6; }
6444 { echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6; }
6449 test -n "$F77" && break
6452 if test -z "$F77"; then
6454 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6456 # Extract the first word of "$ac_prog", so it can be a program name with args.
6457 set dummy $ac_prog; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 if test -n "$ac_ct_F77"; then
6464 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_prog_ac_ct_F77="$ac_prog"
6474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6484 if test -n "$ac_ct_F77"; then
6485 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6486 echo "${ECHO_T}$ac_ct_F77" >&6; }
6488 { echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6; }
6493 test -n "$ac_ct_F77" && break
6496 if test "x$ac_ct_F77" = x; then
6499 case $cross_compiling:$ac_tool_warned in
6501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6502 whose name does not start with the host triplet. If you think this
6503 configuration is useful to you, please write to autoconf@gnu.org." >&5
6504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6505 whose name does not start with the host triplet. If you think this
6506 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6507 ac_tool_warned=yes ;;
6514 # Provide some information about the compiler.
6515 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6516 ac_compiler=`set X $ac_compile; echo $2`
6517 { (ac_try="$ac_compiler --version >&5"
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523 (eval "$ac_compiler --version >&5") 2>&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }
6527 { (ac_try="$ac_compiler -v >&5"
6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530 *) ac_try_echo=$ac_try;;
6532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533 (eval "$ac_compiler -v >&5") 2>&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }
6537 { (ac_try="$ac_compiler -V >&5"
6539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_compiler -V >&5") 2>&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }
6549 # If we don't use `.F' as extension, the preprocessor is not run on the
6550 # input file. (Note that this only needs to work for GNU compilers.)
6553 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6554 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6555 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 cat >conftest.$ac_ext <<_ACEOF
6566 rm -f conftest.$ac_objext
6567 if { (ac_try="$ac_compile"
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6573 (eval "$ac_compile") 2>conftest.er1
6575 grep -v '^ *+' conftest.er1 >conftest.err
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } && {
6580 test -z "$ac_f77_werror_flag" ||
6581 test ! -s conftest.err
6582 } && test -s conftest.$ac_objext; then
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6595 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6596 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6598 ac_test_FFLAGS=${FFLAGS+set}
6599 ac_save_FFLAGS=$FFLAGS
6601 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6602 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6603 if test "${ac_cv_prog_f77_g+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 cat >conftest.$ac_ext <<_ACEOF
6612 rm -f conftest.$ac_objext
6613 if { (ac_try="$ac_compile"
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_compile") 2>conftest.er1
6621 grep -v '^ *+' conftest.er1 >conftest.err
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } && {
6626 test -z "$ac_f77_werror_flag" ||
6627 test ! -s conftest.err
6628 } && test -s conftest.$ac_objext; then
6629 ac_cv_prog_f77_g=yes
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6641 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6642 if test "$ac_test_FFLAGS" = set; then
6643 FFLAGS=$ac_save_FFLAGS
6644 elif test $ac_cv_prog_f77_g = yes; then
6645 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6651 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6658 G77=`test $ac_compiler_gnu = yes && echo yes`
6660 ac_cpp='$CPP $CPPFLAGS'
6661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6667 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6669 # find the maximum length of command line arguments
6670 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6671 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6672 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 # On DJGPP, this test can blow up pretty badly due to problems in libc
6681 # (any single argument exceeding 2000 bytes causes a buffer overrun
6682 # during glob expansion). Even if it were fixed, the result of this
6683 # check would be larger than it should be.
6684 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6688 # Under GNU Hurd, this test is not required because there is
6689 # no limit to the length of command line arguments.
6690 # Libtool will interpret -1 as no limit whatsoever
6691 lt_cv_sys_max_cmd_len=-1;
6695 # On Win9x/ME, this test blows up -- it succeeds, but takes
6696 # about 5 minutes as the teststring grows exponentially.
6697 # Worse, since 9x/ME are not pre-emptively multitasking,
6698 # you end up with a "frozen" computer, even though with patience
6699 # the test eventually succeeds (with a max line length of 256k).
6700 # Instead, let's just punt: use the minimum linelength reported by
6701 # all of the supported platforms: 8192 (on NT/2K/XP).
6702 lt_cv_sys_max_cmd_len=8192;
6706 # On AmigaOS with pdksh, this test takes hours, literally.
6707 # So we just punt and use a minimum line length of 8192.
6708 lt_cv_sys_max_cmd_len=8192;
6711 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6712 # This has been around since 386BSD, at least. Likely further.
6713 if test -x /sbin/sysctl; then
6714 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6715 elif test -x /usr/sbin/sysctl; then
6716 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6718 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6720 # And add a safety zone
6721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6726 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6727 lt_cv_sys_max_cmd_len=196608
6731 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6732 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6733 # nice to cause kernel panics so lets avoid the loop below.
6734 # First set a reasonable default.
6735 lt_cv_sys_max_cmd_len=16384
6737 if test -x /sbin/sysconfig; then
6738 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6739 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6744 lt_cv_sys_max_cmd_len=102400
6746 sysv5* | sco5v6* | sysv4.2uw2*)
6747 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6748 if test -n "$kargmax"; then
6749 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6751 lt_cv_sys_max_cmd_len=32768
6755 # If test is not a shell built-in, we'll probably end up computing a
6756 # maximum length that is only half of the actual maximum length, but
6758 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6759 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6760 = "XX$teststring") >/dev/null 2>&1 &&
6761 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6762 lt_cv_sys_max_cmd_len=$new_result &&
6763 test $i != 17 # 1/2 MB should be enough
6766 teststring=$teststring$teststring
6769 # Add a significant safety factor because C++ compilers can tack on massive
6770 # amounts of additional arguments before passing them to the linker.
6771 # It appears as though 1/2 is a usable value.
6772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6778 if test -n $lt_cv_sys_max_cmd_len ; then
6779 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6780 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6782 { echo "$as_me:$LINENO: result: none" >&5
6783 echo "${ECHO_T}none" >&6; }
6789 # Check for command to grab the raw symbol name followed by C symbol from nm.
6790 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6791 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6792 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 # These are sane defaults that work on at least a few old systems.
6797 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6799 # Character class describing NM global symbol codes.
6800 symcode='[BCDEGRST]'
6802 # Regexp to match symbols that can be accessed directly from C.
6803 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6805 # Transform an extracted symbol line into a proper C declaration
6806 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6808 # Transform an extracted symbol line into symbol name and symbol address
6809 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6811 # Define system-specific variables.
6816 cygwin* | mingw* | pw32*)
6817 symcode='[ABCDGISTW]'
6819 hpux*) # Its linker distinguishes data from code symbols
6820 if test "$host_cpu" = ia64; then
6821 symcode='[ABCDEGRST]'
6823 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6824 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6827 if test "$host_cpu" = ia64; then
6828 symcode='[ABCDGIRSTW]'
6829 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6830 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6834 symcode='[BCDEGRST]'
6837 symcode='[BCDEGQRST]'
6848 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6856 # Handle CRLF in mingw tool chain
6860 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6864 # If we're using GNU nm, then use its standard symbol codes.
6865 case `$NM -V 2>&1` in
6866 *GNU* | *'with BFD'*)
6867 symcode='[ABCDGIRSTW]' ;;
6870 # Try without a prefix undercore, then with it.
6871 for ac_symprfx in "" "_"; do
6873 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6874 symxfrm="\\1 $ac_symprfx\\2 \\2"
6876 # Write the raw and C identifiers.
6877 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6879 # Check to see that the pipe works correctly.
6883 cat > conftest.$ac_ext <<EOF
6888 void nm_test_func(){}
6892 int main(){nm_test_var='a';nm_test_func();return(0);}
6895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896 (eval $ac_compile) 2>&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; then
6900 # Now try to grab the symbols.
6902 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6903 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); } && test -s "$nlist"; then
6907 # Try sorting and uniquifying the output.
6908 if sort "$nlist" | uniq > "$nlist"T; then
6909 mv -f "$nlist"T "$nlist"
6914 # Make sure that we snagged all the symbols we need.
6915 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6916 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6917 cat <<EOF > conftest.$ac_ext
6923 # Now generate the symbol file.
6924 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6926 cat <<EOF >> conftest.$ac_ext
6927 #if defined (__STDC__) && __STDC__
6928 # define lt_ptr_t void *
6930 # define lt_ptr_t char *
6934 /* The mapping between symbol names and symbols. */
6939 lt_preloaded_symbols[] =
6942 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6943 cat <<\EOF >> conftest.$ac_ext
6951 # Now try linking the two files.
6952 mv conftest.$ac_objext conftstm.$ac_objext
6953 lt_save_LIBS="$LIBS"
6954 lt_save_CFLAGS="$CFLAGS"
6955 LIBS="conftstm.$ac_objext"
6956 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6964 LIBS="$lt_save_LIBS"
6965 CFLAGS="$lt_save_CFLAGS"
6967 echo "cannot find nm_test_func in $nlist" >&5
6970 echo "cannot find nm_test_var in $nlist" >&5
6973 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6976 echo "$progname: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6979 rm -f conftest* conftst*
6981 # Do not use the global_symbol_pipe unless it works.
6982 if test "$pipe_works" = yes; then
6985 lt_cv_sys_global_symbol_pipe=
6991 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6992 lt_cv_sys_global_symbol_to_cdecl=
6994 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6995 { echo "$as_me:$LINENO: result: failed" >&5
6996 echo "${ECHO_T}failed" >&6; }
6998 { echo "$as_me:$LINENO: result: ok" >&5
6999 echo "${ECHO_T}ok" >&6; }
7002 { echo "$as_me:$LINENO: checking for objdir" >&5
7003 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7004 if test "${lt_cv_objdir+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 rm -f .libs 2>/dev/null
7008 mkdir .libs 2>/dev/null
7009 if test -d .libs; then
7012 # MS-DOS does not allow filenames that begin with a dot.
7015 rmdir .libs 2>/dev/null
7017 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7018 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7019 objdir=$lt_cv_objdir
7027 # AIX sometimes has problems with the GCC collect2 program. For some
7028 # reason, if we set the COLLECT_NAMES environment variable, the problems
7029 # vanish in a puff of smoke.
7030 if test "X${COLLECT_NAMES+set}" != Xset; then
7032 export COLLECT_NAMES
7037 # Sed substitution that helps us do robust quoting. It backslashifies
7038 # metacharacters that are still active within double-quoted strings.
7039 Xsed='sed -e 1s/^X//'
7040 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7042 # Same as above, but do not quote variable references.
7043 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7045 # Sed substitution to delay expansion of an escaped shell variable in a
7046 # double_quote_subst'ed string.
7047 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7049 # Sed substitution to avoid accidental globbing in evaled expressions
7050 no_glob_subst='s/\*/\\\*/g'
7056 default_ofile=libtool
7057 can_build_shared=yes
7059 # All known linkers require a `.a' archive for static linking (except MSVC,
7060 # which needs '.lib').
7062 ltmain="$ac_aux_dir/ltmain.sh"
7063 ofile="$default_ofile"
7064 with_gnu_ld="$lt_cv_prog_gnu_ld"
7066 if test -n "$ac_tool_prefix"; then
7067 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}ar; ac_word=$2
7069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7071 if test "${ac_cv_prog_AR+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 if test -n "$AR"; then
7075 ac_cv_prog_AR="$AR" # Let the user override the test.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_prog_AR="${ac_tool_prefix}ar"
7085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 if test -n "$AR"; then
7096 { echo "$as_me:$LINENO: result: $AR" >&5
7097 echo "${ECHO_T}$AR" >&6; }
7099 { echo "$as_me:$LINENO: result: no" >&5
7100 echo "${ECHO_T}no" >&6; }
7105 if test -z "$ac_cv_prog_AR"; then
7107 # Extract the first word of "ar", so it can be a program name with args.
7108 set dummy ar; ac_word=$2
7109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7111 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 if test -n "$ac_ct_AR"; then
7115 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_prog_ac_ct_AR="ar"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7135 if test -n "$ac_ct_AR"; then
7136 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7137 echo "${ECHO_T}$ac_ct_AR" >&6; }
7139 { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7143 if test "x$ac_ct_AR" = x; then
7146 case $cross_compiling:$ac_tool_warned in
7148 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7149 whose name does not start with the host triplet. If you think this
7150 configuration is useful to you, please write to autoconf@gnu.org." >&5
7151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7152 whose name does not start with the host triplet. If you think this
7153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7154 ac_tool_warned=yes ;;
7162 if test -n "$ac_tool_prefix"; then
7163 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7164 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_prog_RANLIB+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 if test -n "$RANLIB"; then
7171 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 RANLIB=$ac_cv_prog_RANLIB
7191 if test -n "$RANLIB"; then
7192 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7193 echo "${ECHO_T}$RANLIB" >&6; }
7195 { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7201 if test -z "$ac_cv_prog_RANLIB"; then
7202 ac_ct_RANLIB=$RANLIB
7203 # Extract the first word of "ranlib", so it can be a program name with args.
7204 set dummy ranlib; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 if test -n "$ac_ct_RANLIB"; then
7211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_prog_ac_ct_RANLIB="ranlib"
7221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7231 if test -n "$ac_ct_RANLIB"; then
7232 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7233 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7235 { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7239 if test "x$ac_ct_RANLIB" = x; then
7242 case $cross_compiling:$ac_tool_warned in
7244 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7245 whose name does not start with the host triplet. If you think this
7246 configuration is useful to you, please write to autoconf@gnu.org." >&5
7247 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7248 whose name does not start with the host triplet. If you think this
7249 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7250 ac_tool_warned=yes ;;
7252 RANLIB=$ac_ct_RANLIB
7255 RANLIB="$ac_cv_prog_RANLIB"
7258 if test -n "$ac_tool_prefix"; then
7259 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7260 set dummy ${ac_tool_prefix}strip; ac_word=$2
7261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263 if test "${ac_cv_prog_STRIP+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 if test -n "$STRIP"; then
7267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 STRIP=$ac_cv_prog_STRIP
7287 if test -n "$STRIP"; then
7288 { echo "$as_me:$LINENO: result: $STRIP" >&5
7289 echo "${ECHO_T}$STRIP" >&6; }
7291 { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7297 if test -z "$ac_cv_prog_STRIP"; then
7299 # Extract the first word of "strip", so it can be a program name with args.
7300 set dummy strip; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 if test -n "$ac_ct_STRIP"; then
7307 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316 ac_cv_prog_ac_ct_STRIP="strip"
7317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7327 if test -n "$ac_ct_STRIP"; then
7328 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7329 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7331 { echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6; }
7335 if test "x$ac_ct_STRIP" = x; then
7338 case $cross_compiling:$ac_tool_warned in
7340 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7341 whose name does not start with the host triplet. If you think this
7342 configuration is useful to you, please write to autoconf@gnu.org." >&5
7343 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7344 whose name does not start with the host triplet. If you think this
7345 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7346 ac_tool_warned=yes ;;
7351 STRIP="$ac_cv_prog_STRIP"
7356 old_CFLAGS="$CFLAGS"
7358 # Set sane defaults for various variables
7359 test -z "$AR" && AR=ar
7360 test -z "$AR_FLAGS" && AR_FLAGS=cru
7361 test -z "$AS" && AS=as
7362 test -z "$CC" && CC=cc
7363 test -z "$LTCC" && LTCC=$CC
7364 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7365 test -z "$DLLTOOL" && DLLTOOL=dlltool
7366 test -z "$LD" && LD=ld
7367 test -z "$LN_S" && LN_S="ln -s"
7368 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7369 test -z "$NM" && NM=nm
7370 test -z "$SED" && SED=sed
7371 test -z "$OBJDUMP" && OBJDUMP=objdump
7372 test -z "$RANLIB" && RANLIB=:
7373 test -z "$STRIP" && STRIP=:
7374 test -z "$ac_objext" && ac_objext=o
7376 # Determine commands to create old-style static archives.
7377 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7378 old_postinstall_cmds='chmod 644 $oldlib'
7379 old_postuninstall_cmds=
7381 if test -n "$RANLIB"; then
7384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7387 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7390 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7393 for cc_temp in $compiler""; do
7395 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7396 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7401 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7404 # Only perform the check for file, if the check method requires it
7405 case $deplibs_check_method in
7407 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7408 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7409 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7410 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7418 lt_save_MAGIC_CMD="$MAGIC_CMD"
7419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7420 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7421 for ac_dir in $ac_dummy; do
7423 test -z "$ac_dir" && ac_dir=.
7424 if test -f $ac_dir/${ac_tool_prefix}file; then
7425 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7426 if test -n "$file_magic_test_file"; then
7427 case $deplibs_check_method in
7429 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7432 $EGREP "$file_magic_regex" > /dev/null; then
7437 *** Warning: the command libtool uses to detect shared libraries,
7438 *** $file_magic_cmd, produces output that libtool cannot recognize.
7439 *** The result is that libtool may fail to recognize shared libraries
7440 *** as such. This will affect the creation of libtool libraries that
7441 *** depend on shared libraries, but programs linked with such libtool
7442 *** libraries will work regardless of this problem. Nevertheless, you
7443 *** may want to report the problem to your system manager and/or to
7444 *** bug-libtool@gnu.org
7454 MAGIC_CMD="$lt_save_MAGIC_CMD"
7459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7460 if test -n "$MAGIC_CMD"; then
7461 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7462 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7464 { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7468 if test -z "$lt_cv_path_MAGIC_CMD"; then
7469 if test -n "$ac_tool_prefix"; then
7470 { echo "$as_me:$LINENO: checking for file" >&5
7471 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7472 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7480 lt_save_MAGIC_CMD="$MAGIC_CMD"
7481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7482 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7483 for ac_dir in $ac_dummy; do
7485 test -z "$ac_dir" && ac_dir=.
7486 if test -f $ac_dir/file; then
7487 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7488 if test -n "$file_magic_test_file"; then
7489 case $deplibs_check_method in
7491 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7492 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7493 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7494 $EGREP "$file_magic_regex" > /dev/null; then
7499 *** Warning: the command libtool uses to detect shared libraries,
7500 *** $file_magic_cmd, produces output that libtool cannot recognize.
7501 *** The result is that libtool may fail to recognize shared libraries
7502 *** as such. This will affect the creation of libtool libraries that
7503 *** depend on shared libraries, but programs linked with such libtool
7504 *** libraries will work regardless of this problem. Nevertheless, you
7505 *** may want to report the problem to your system manager and/or to
7506 *** bug-libtool@gnu.org
7516 MAGIC_CMD="$lt_save_MAGIC_CMD"
7521 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7522 if test -n "$MAGIC_CMD"; then
7523 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7524 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7526 { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7542 # Check whether --enable-libtool-lock was given.
7543 if test "${enable_libtool_lock+set}" = set; then
7544 enableval=$enable_libtool_lock;
7547 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7550 # Check whether --with-pic was given.
7551 if test "${with_pic+set}" = set; then
7552 withval=$with_pic; pic_mode="$withval"
7557 test -z "$pic_mode" && pic_mode=default
7559 # Use C for the default configuration in the libtool script
7563 ac_cpp='$CPP $CPPFLAGS'
7564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7569 # Source file extension for C test sources.
7572 # Object file extension for compiled C test sources.
7576 # Code to be used in simple compile tests
7577 lt_simple_compile_test_code="int some_variable = 0;\n"
7579 # Code to be used in simple link tests
7580 lt_simple_link_test_code='int main(){return(0);}\n'
7583 # If no C compiler was specified, use CC.
7586 # If no C compiler flags were specified, use CFLAGS.
7587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7589 # Allow CC to be a program name with arguments.
7593 # save warnings/boilerplate of simple test code
7594 ac_outfile=conftest.$ac_objext
7595 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7596 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7597 _lt_compiler_boilerplate=`cat conftest.err`
7600 ac_outfile=conftest.$ac_objext
7601 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7602 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7603 _lt_linker_boilerplate=`cat conftest.err`
7608 lt_prog_compiler_no_builtin_flag=
7610 if test "$GCC" = yes; then
7611 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7614 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7615 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7616 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 lt_cv_prog_compiler_rtti_exceptions=no
7620 ac_outfile=conftest.$ac_objext
7621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7622 lt_compiler_flag="-fno-rtti -fno-exceptions"
7623 # Insert the option either (1) after the last *FLAGS variable, or
7624 # (2) before a word containing "conftest.", or (3) at the end.
7625 # Note that $ac_compile itself does not contain backslashes and begins
7626 # with a dollar sign (not a hyphen), so the echo should work correctly.
7627 # The option is referenced via a variable to avoid confusing sed.
7628 lt_compile=`echo "$ac_compile" | $SED \
7629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7631 -e 's:$: $lt_compiler_flag:'`
7632 (eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
7633 (eval "$lt_compile" 2>conftest.err)
7635 cat conftest.err >&5
7636 echo "$as_me:7636: \$? = $ac_status" >&5
7637 if (exit $ac_status) && test -s "$ac_outfile"; then
7638 # The compiler can only warn and ignore the option if not recognized
7639 # So say no if there are warnings other than the usual output.
7640 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7643 lt_cv_prog_compiler_rtti_exceptions=yes
7649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7650 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7652 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7653 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7660 lt_prog_compiler_wl=
7661 lt_prog_compiler_pic=
7662 lt_prog_compiler_static=
7664 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7665 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7667 if test "$GCC" = yes; then
7668 lt_prog_compiler_wl='-Wl,'
7669 lt_prog_compiler_static='-static'
7673 # All AIX code is PIC.
7674 if test "$host_cpu" = ia64; then
7675 # AIX 5 now supports IA64 processor
7676 lt_prog_compiler_static='-Bstatic'
7681 # FIXME: we need at least 68020 code to build shared libraries, but
7682 # adding the `-m68020' flag to GCC prevents building anything better,
7684 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7687 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7688 # PIC is the default for these OSes.
7691 mingw* | pw32* | os2*)
7692 # This hack is so that the source file can tell whether it is being
7693 # built for inclusion in a dll (and should export symbols for example).
7694 lt_prog_compiler_pic='-DDLL_EXPORT'
7697 darwin* | rhapsody*)
7698 # PIC is the default on this platform
7699 # Common symbols not allowed in MH_DYLIB files
7700 lt_prog_compiler_pic='-fno-common'
7704 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7705 # Instead, we relocate shared libraries at runtime.
7709 # Just because we use GCC doesn't mean we suddenly get shared libraries
7710 # on systems that don't support them.
7711 lt_prog_compiler_can_build_shared=no
7716 if test -d /usr/nec; then
7717 lt_prog_compiler_pic=-Kconform_pic
7722 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7729 lt_prog_compiler_pic='-fPIC'
7735 lt_prog_compiler_pic='-fPIC'
7739 # PORTME Check for flag to pass linker flags through the system compiler.
7742 lt_prog_compiler_wl='-Wl,'
7743 if test "$host_cpu" = ia64; then
7744 # AIX 5 now supports IA64 processor
7745 lt_prog_compiler_static='-Bstatic'
7747 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7751 # PIC is the default on this platform
7752 # Common symbols not allowed in MH_DYLIB files
7753 case $cc_basename in
7755 lt_prog_compiler_pic='-qnocommon'
7756 lt_prog_compiler_wl='-Wl,'
7761 mingw* | pw32* | os2*)
7762 # This hack is so that the source file can tell whether it is being
7763 # built for inclusion in a dll (and should export symbols for example).
7764 lt_prog_compiler_pic='-DDLL_EXPORT'
7767 hpux9* | hpux10* | hpux11*)
7768 lt_prog_compiler_wl='-Wl,'
7769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7776 lt_prog_compiler_pic='+Z'
7779 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7780 lt_prog_compiler_static='${wl}-a ${wl}archive'
7783 irix5* | irix6* | nonstopux*)
7784 lt_prog_compiler_wl='-Wl,'
7785 # PIC (with -KPIC) is the default.
7786 lt_prog_compiler_static='-non_shared'
7790 lt_prog_compiler_pic='-KPIC'
7791 lt_prog_compiler_static='-Bstatic'
7795 case $cc_basename in
7797 lt_prog_compiler_wl='-Wl,'
7798 lt_prog_compiler_pic='-KPIC'
7799 lt_prog_compiler_static='-static'
7801 pgcc* | pgf77* | pgf90* | pgf95*)
7802 # Portland Group compilers (*not* the Pentium gcc compiler,
7803 # which looks to be a dead project)
7804 lt_prog_compiler_wl='-Wl,'
7805 lt_prog_compiler_pic='-fpic'
7806 lt_prog_compiler_static='-Bstatic'
7809 lt_prog_compiler_wl='-Wl,'
7810 # All Alpha code is PIC.
7811 lt_prog_compiler_static='-non_shared'
7816 osf3* | osf4* | osf5*)
7817 lt_prog_compiler_wl='-Wl,'
7818 # All OSF/1 code is PIC.
7819 lt_prog_compiler_static='-non_shared'
7823 lt_prog_compiler_pic='-KPIC'
7824 lt_prog_compiler_static='-Bstatic'
7825 case $cc_basename in
7827 lt_prog_compiler_wl='-Qoption ld ';;
7829 lt_prog_compiler_wl='-Wl,';;
7834 lt_prog_compiler_wl='-Qoption ld '
7835 lt_prog_compiler_pic='-PIC'
7836 lt_prog_compiler_static='-Bstatic'
7839 sysv4 | sysv4.2uw2* | sysv4.3*)
7840 lt_prog_compiler_wl='-Wl,'
7841 lt_prog_compiler_pic='-KPIC'
7842 lt_prog_compiler_static='-Bstatic'
7846 if test -d /usr/nec ;then
7847 lt_prog_compiler_pic='-Kconform_pic'
7848 lt_prog_compiler_static='-Bstatic'
7852 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_pic='-KPIC'
7855 lt_prog_compiler_static='-Bstatic'
7859 lt_prog_compiler_wl='-Wl,'
7860 lt_prog_compiler_can_build_shared=no
7864 lt_prog_compiler_pic='-pic'
7865 lt_prog_compiler_static='-Bstatic'
7869 lt_prog_compiler_can_build_shared=no
7874 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7875 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7878 # Check to make sure the PIC flag actually works.
7880 if test -n "$lt_prog_compiler_pic"; then
7882 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7883 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7884 if test "${lt_prog_compiler_pic_works+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 lt_prog_compiler_pic_works=no
7888 ac_outfile=conftest.$ac_objext
7889 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7890 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7891 # Insert the option either (1) after the last *FLAGS variable, or
7892 # (2) before a word containing "conftest.", or (3) at the end.
7893 # Note that $ac_compile itself does not contain backslashes and begins
7894 # with a dollar sign (not a hyphen), so the echo should work correctly.
7895 # The option is referenced via a variable to avoid confusing sed.
7896 lt_compile=`echo "$ac_compile" | $SED \
7897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7899 -e 's:$: $lt_compiler_flag:'`
7900 (eval echo "\"\$as_me:7900: $lt_compile\"" >&5)
7901 (eval "$lt_compile" 2>conftest.err)
7903 cat conftest.err >&5
7904 echo "$as_me:7904: \$? = $ac_status" >&5
7905 if (exit $ac_status) && test -s "$ac_outfile"; then
7906 # The compiler can only warn and ignore the option if not recognized
7907 # So say no if there are warnings other than the usual output.
7908 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7910 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7911 lt_prog_compiler_pic_works=yes
7917 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7918 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7920 if test x"$lt_prog_compiler_pic_works" = xyes; then
7921 case $lt_prog_compiler_pic in
7923 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7926 lt_prog_compiler_pic=
7927 lt_prog_compiler_can_build_shared=no
7932 # For platforms which do not support PIC, -DPIC is meaningless:
7934 lt_prog_compiler_pic=
7937 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7942 # Check to make sure the static flag actually works.
7944 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7945 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7946 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7947 if test "${lt_prog_compiler_static_works+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 lt_prog_compiler_static_works=no
7951 save_LDFLAGS="$LDFLAGS"
7952 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7953 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7954 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7955 # The linker can only warn and ignore the option if not recognized
7956 # So say no if there are warnings
7957 if test -s conftest.err; then
7958 # Append any errors to the config.log.
7959 cat conftest.err 1>&5
7960 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7962 if diff conftest.exp conftest.er2 >/dev/null; then
7963 lt_prog_compiler_static_works=yes
7966 lt_prog_compiler_static_works=yes
7970 LDFLAGS="$save_LDFLAGS"
7973 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7974 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7976 if test x"$lt_prog_compiler_static_works" = xyes; then
7979 lt_prog_compiler_static=
7983 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7984 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7985 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 lt_cv_prog_compiler_c_o=no
7989 $rm -r conftest 2>/dev/null
7993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7995 lt_compiler_flag="-o out/conftest2.$ac_objext"
7996 # Insert the option either (1) after the last *FLAGS variable, or
7997 # (2) before a word containing "conftest.", or (3) at the end.
7998 # Note that $ac_compile itself does not contain backslashes and begins
7999 # with a dollar sign (not a hyphen), so the echo should work correctly.
8000 lt_compile=`echo "$ac_compile" | $SED \
8001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8003 -e 's:$: $lt_compiler_flag:'`
8004 (eval echo "\"\$as_me:8004: $lt_compile\"" >&5)
8005 (eval "$lt_compile" 2>out/conftest.err)
8007 cat out/conftest.err >&5
8008 echo "$as_me:8008: \$? = $ac_status" >&5
8009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8011 # The compiler can only warn and ignore the option if not recognized
8012 # So say no if there are warnings
8013 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8016 lt_cv_prog_compiler_c_o=yes
8021 # SGI C++ compiler will create directory out/ii_files/ for
8022 # template instantiation
8023 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8024 $rm out/* && rmdir out
8030 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8031 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8034 hard_links="nottested"
8035 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8036 # do not overwrite the value of need_locks provided by the user
8037 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8038 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8043 ln conftest.a conftest.b 2>&5 || hard_links=no
8044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8045 { echo "$as_me:$LINENO: result: $hard_links" >&5
8046 echo "${ECHO_T}$hard_links" >&6; }
8047 if test "$hard_links" = no; then
8048 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8049 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8056 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8057 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8060 allow_undefined_flag=
8061 enable_shared_with_static_runtimes=no
8063 archive_expsym_cmds=
8064 old_archive_From_new_cmds=
8065 old_archive_from_expsyms_cmds=
8066 export_dynamic_flag_spec=
8067 whole_archive_flag_spec=
8068 thread_safe_flag_spec=
8069 hardcode_libdir_flag_spec=
8070 hardcode_libdir_flag_spec_ld=
8071 hardcode_libdir_separator=
8074 hardcode_shlibpath_var=unsupported
8075 link_all_deplibs=unknown
8076 hardcode_automatic=no
8079 always_export_symbols=no
8080 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8081 # include_expsyms should be a list of space-separated symbols to be *always*
8082 # included in the symbol list
8084 # exclude_expsyms can be an extended regexp of symbols to exclude
8085 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8086 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8087 # as well as any symbol that contains `d'.
8088 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8089 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8090 # platforms (ab)use it in PIC code, but their linkers get confused if
8091 # the symbol is explicitly referenced. Since portable code cannot
8092 # rely on this symbol name, it's probably fine to never include it in
8093 # preloaded symbol tables.
8094 extract_expsyms_cmds=
8095 # Just being paranoid about ensuring that cc_basename is set.
8096 for cc_temp in $compiler""; do
8098 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8099 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8104 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8107 cygwin* | mingw* | pw32*)
8108 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8109 # When not using gcc, we currently assume that we are using
8110 # Microsoft Visual C++.
8111 if test "$GCC" != yes; then
8116 # we just hope/assume this is gcc and not c89 (= MSVC++)
8125 if test "$with_gnu_ld" = yes; then
8126 # If archive_cmds runs LD, not CC, wlarc should be empty
8129 # Set some defaults for GNU ld with shared library support. These
8130 # are reset later if shared libraries are not supported. Putting them
8131 # here allows them to be overridden if necessary.
8132 runpath_var=LD_RUN_PATH
8133 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8134 export_dynamic_flag_spec='${wl}--export-dynamic'
8135 # ancient GNU ld didn't support --whole-archive et. al.
8136 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8137 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8139 whole_archive_flag_spec=
8141 supports_anon_versioning=no
8142 case `$LD -v 2>/dev/null` in
8143 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8144 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8145 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8146 *\ 2.11.*) ;; # other 2.11 versions
8147 *) supports_anon_versioning=yes ;;
8150 # See if GNU ld supports shared libraries.
8152 aix3* | aix4* | aix5*)
8153 # On AIX/PPC, the GNU linker is very broken
8154 if test "$host_cpu" != ia64; then
8158 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8159 *** to be unable to reliably create shared libraries on AIX.
8160 *** Therefore, libtool is disabling shared libraries support. If you
8161 *** really care for shared libraries, you may want to modify your PATH
8162 *** so that a non-GNU linker is found, and then restart.
8169 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)'
8170 hardcode_libdir_flag_spec='-L$libdir'
8171 hardcode_minus_L=yes
8173 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8174 # that the semantics of dynamic libraries on AmigaOS, at least up
8175 # to version 4, is to share data among multiple programs linked
8176 # with the same dynamic library. Since this doesn't match the
8177 # behavior of shared libraries on other platforms, we can't use
8183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8184 allow_undefined_flag=unsupported
8185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8186 # support --undefined. This deserves some investigation. FIXME
8187 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8193 cygwin* | mingw* | pw32*)
8194 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8195 # as there is no search path for DLLs.
8196 hardcode_libdir_flag_spec='-L$libdir'
8197 allow_undefined_flag=unsupported
8198 always_export_symbols=no
8199 enable_shared_with_static_runtimes=yes
8200 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8202 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8204 # If the export-symbols file already is a .def file (1st line
8205 # is EXPORTS), use it as is; otherwise, prepend...
8206 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8207 cp $export_symbols $output_objdir/$soname.def;
8209 echo EXPORTS > $output_objdir/$soname.def;
8210 cat $export_symbols >> $output_objdir/$soname.def;
8212 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8220 hardcode_shlibpath_var=no
8221 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8222 export_dynamic_flag_spec='${wl}-E'
8223 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8224 # Instead, shared libraries are loaded at an image base (0x10000000 by
8225 # default) and relocated if they conflict, which is a slow very memory
8226 # consuming and fragmenting process. To avoid this, we pick a random,
8227 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8228 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8229 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8230 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8236 case $cc_basename,$host_cpu in
8237 pgcc*) # Portland Group C compiler
8238 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8239 tmp_addflag=' $pic_flag'
8241 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8242 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8243 tmp_addflag=' $pic_flag -Mnomain' ;;
8244 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8245 tmp_addflag=' -i_dynamic' ;;
8246 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8247 tmp_addflag=' -i_dynamic -nofor_main' ;;
8248 ifc* | ifort*) # Intel Fortran compiler
8249 tmp_addflag=' -nofor_main' ;;
8251 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8253 if test $supports_anon_versioning = yes; then
8254 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8256 $echo "local: *; };" >> $output_objdir/$libname.ver~
8257 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8265 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8266 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8275 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8279 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8280 *** create shared libraries on Solaris systems. Therefore, libtool
8281 *** is disabling shared libraries support. We urge you to upgrade GNU
8282 *** binutils to release 2.9.1 or newer. Another option is to modify
8283 *** your PATH or compiler configuration so that the native linker is
8284 *** used, and then restart.
8287 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8296 case `$LD -v 2>&1` in
8297 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8301 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8302 *** reliably create shared libraries on SCO systems. Therefore, libtool
8303 *** is disabling shared libraries support. We urge you to upgrade GNU
8304 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8305 *** your PATH or compiler configuration so that the native linker is
8306 *** used, and then restart.
8311 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8312 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8323 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8326 hardcode_shlibpath_var=no
8330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8339 if test "$ld_shlibs" = no; then
8341 hardcode_libdir_flag_spec=
8342 export_dynamic_flag_spec=
8343 whole_archive_flag_spec=
8346 # PORTME fill in a description of your system's linker (not GNU ld)
8349 allow_undefined_flag=unsupported
8350 always_export_symbols=yes
8351 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'
8352 # Note: this linker hardcodes the directories in LIBPATH if there
8353 # are no directories specified by -L.
8354 hardcode_minus_L=yes
8355 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8356 # Neither direct hardcoding nor static linking is supported with a
8358 hardcode_direct=unsupported
8363 if test "$host_cpu" = ia64; then
8364 # On IA64, the linker does run time linking by default, so we don't
8365 # have to do anything special.
8366 aix_use_runtimelinking=no
8367 exp_sym_flag='-Bexport'
8370 # If we're using GNU nm, then we don't want the "-C" option.
8371 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8372 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8373 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8375 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8377 aix_use_runtimelinking=no
8379 # Test if we are trying to use run time linking or normal
8380 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8381 # need to do runtime linking.
8382 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8383 for ld_flag in $LDFLAGS; do
8384 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8385 aix_use_runtimelinking=yes
8392 exp_sym_flag='-bexport'
8393 no_entry_flag='-bnoentry'
8396 # When large executables or shared objects are built, AIX ld can
8397 # have problems creating the table of contents. If linking a library
8398 # or program results in "error TOC overflow" add -mminimal-toc to
8399 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8400 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8404 hardcode_libdir_separator=':'
8405 link_all_deplibs=yes
8407 if test "$GCC" = yes; then
8408 case $host_os in aix4.[012]|aix4.[012].*)
8409 # We only want to do this on AIX 4.2 and lower, the check
8410 # below for broken collect2 doesn't work under 4.3+
8411 collect2name=`${CC} -print-prog-name=collect2`
8412 if test -f "$collect2name" && \
8413 strings "$collect2name" | grep resolve_lib_name >/dev/null
8415 # We have reworked collect2
8418 # We have old collect2
8419 hardcode_direct=unsupported
8420 # It fails to find uninstalled libraries when the uninstalled
8421 # path is not listed in the libpath. Setting hardcode_minus_L
8422 # to unsupported forces relinking
8423 hardcode_minus_L=yes
8424 hardcode_libdir_flag_spec='-L$libdir'
8425 hardcode_libdir_separator=
8429 shared_flag='-shared'
8430 if test "$aix_use_runtimelinking" = yes; then
8431 shared_flag="$shared_flag "'${wl}-G'
8435 if test "$host_cpu" = ia64; then
8436 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8437 # chokes on -Wl,-G. The following line is correct:
8440 if test "$aix_use_runtimelinking" = yes; then
8441 shared_flag='${wl}-G'
8443 shared_flag='${wl}-bM:SRE'
8448 # It seems that -bexpall does not export symbols beginning with
8449 # underscore (_), so it is better to generate a list of symbols to export.
8450 always_export_symbols=yes
8451 if test "$aix_use_runtimelinking" = yes; then
8452 # Warning - without using the other runtime loading flags (-brtl),
8453 # -berok will link without error, but may produce a broken library.
8454 allow_undefined_flag='-berok'
8455 # Determine the default libpath from the value encoded in an empty executable.
8456 cat >conftest.$ac_ext <<_ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (ac_try="$ac_link"
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_link") 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } && {
8485 test -z "$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8487 } && test -s conftest$ac_exeext &&
8488 $as_test_x conftest$ac_exeext; then
8490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8492 # Check for a 64-bit object if we didn't find anything.
8493 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8503 conftest$ac_exeext conftest.$ac_ext
8504 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8507 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8509 if test "$host_cpu" = ia64; then
8510 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8511 allow_undefined_flag="-z nodefs"
8512 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8514 # Determine the default libpath from the value encoded in an empty executable.
8515 cat >conftest.$ac_ext <<_ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (ac_try="$ac_link"
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_link") 2>conftest.er1
8539 grep -v '^ *+' conftest.er1 >conftest.err
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } && {
8544 test -z "$ac_c_werror_flag" ||
8545 test ! -s conftest.err
8546 } && test -s conftest$ac_exeext &&
8547 $as_test_x conftest$ac_exeext; then
8549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8551 # Check for a 64-bit object if we didn't find anything.
8552 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8562 conftest$ac_exeext conftest.$ac_ext
8563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8565 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8566 # Warning - without using the other run time loading flags,
8567 # -berok will link without error, but may produce a broken library.
8568 no_undefined_flag=' ${wl}-bernotok'
8569 allow_undefined_flag=' ${wl}-berok'
8570 # Exported symbols can be pulled into shared objects from archives
8571 whole_archive_flag_spec='$convenience'
8572 archive_cmds_need_lc=yes
8573 # This is similar to how AIX traditionally builds its shared libraries.
8574 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8580 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)'
8581 hardcode_libdir_flag_spec='-L$libdir'
8582 hardcode_minus_L=yes
8583 # see comment about different semantics on the GNU ld section
8588 export_dynamic_flag_spec=-rdynamic
8591 cygwin* | mingw* | pw32*)
8592 # When not using gcc, we currently assume that we are using
8593 # Microsoft Visual C++.
8594 # hardcode_libdir_flag_spec is actually meaningless, as there is
8595 # no search path for DLLs.
8596 hardcode_libdir_flag_spec=' '
8597 allow_undefined_flag=unsupported
8598 # Tell ltmain to make .lib files, not .a files.
8600 # Tell ltmain to make .dll files, not .so files.
8602 # FIXME: Setting linknames here is a bad hack.
8603 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8604 # The linker will automatically build a .lib file if we build a DLL.
8605 old_archive_From_new_cmds='true'
8606 # FIXME: Should let the user specify the lib program.
8607 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8608 fix_srcfile_path='`cygpath -w "$srcfile"`'
8609 enable_shared_with_static_runtimes=yes
8612 darwin* | rhapsody*)
8614 rhapsody* | darwin1.[012])
8615 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8618 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8619 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8621 case ${MACOSX_DEPLOYMENT_TARGET} in
8623 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8626 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8632 archive_cmds_need_lc=no
8634 hardcode_automatic=yes
8635 hardcode_shlibpath_var=unsupported
8636 whole_archive_flag_spec=''
8637 link_all_deplibs=yes
8638 if test "$GCC" = yes ; then
8639 output_verbose_link_cmd='echo'
8640 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8641 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8642 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8643 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8644 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8646 case $cc_basename in
8648 output_verbose_link_cmd='echo'
8649 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8650 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8651 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8652 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8653 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_libdir_flag_spec='-L$libdir'
8665 hardcode_shlibpath_var=no
8672 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8673 # support. Future versions do this automatically, but an explicit c++rt0.o
8674 # does not break anything, and helps significantly (at the cost of a little
8677 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8678 hardcode_libdir_flag_spec='-R$libdir'
8680 hardcode_shlibpath_var=no
8683 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8687 hardcode_minus_L=yes
8688 hardcode_shlibpath_var=no
8691 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8692 freebsd* | kfreebsd*-gnu | dragonfly*)
8693 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8694 hardcode_libdir_flag_spec='-R$libdir'
8696 hardcode_shlibpath_var=no
8700 if test "$GCC" = yes; then
8701 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8703 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'
8705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8706 hardcode_libdir_separator=:
8709 # hardcode_minus_L: Not really in the search PATH,
8710 # but as the default location of the library.
8711 hardcode_minus_L=yes
8712 export_dynamic_flag_spec='${wl}-E'
8716 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8717 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8719 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8721 if test "$with_gnu_ld" = no; then
8722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8723 hardcode_libdir_separator=:
8726 export_dynamic_flag_spec='${wl}-E'
8728 # hardcode_minus_L: Not really in the search PATH,
8729 # but as the default location of the library.
8730 hardcode_minus_L=yes
8735 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8738 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8741 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8744 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8750 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8753 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8756 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8760 if test "$with_gnu_ld" = no; then
8761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8762 hardcode_libdir_separator=:
8766 hardcode_libdir_flag_spec_ld='+b $libdir'
8768 hardcode_shlibpath_var=no
8772 export_dynamic_flag_spec='${wl}-E'
8774 # hardcode_minus_L: Not really in the search PATH,
8775 # but as the default location of the library.
8776 hardcode_minus_L=yes
8782 irix5* | irix6* | nonstopux*)
8783 if test "$GCC" = yes; then
8784 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'
8786 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'
8787 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8790 hardcode_libdir_separator=:
8791 link_all_deplibs=yes
8795 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8798 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8800 hardcode_libdir_flag_spec='-R$libdir'
8802 hardcode_shlibpath_var=no
8806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8809 hardcode_libdir_separator=:
8810 hardcode_shlibpath_var=no
8815 hardcode_shlibpath_var=no
8816 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8818 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8819 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8820 export_dynamic_flag_spec='${wl}-E'
8823 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8825 hardcode_libdir_flag_spec='-R$libdir'
8828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8836 hardcode_libdir_flag_spec='-L$libdir'
8837 hardcode_minus_L=yes
8838 allow_undefined_flag=unsupported
8839 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'
8840 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8844 if test "$GCC" = yes; then
8845 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8846 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'
8848 allow_undefined_flag=' -expect_unresolved \*'
8849 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'
8851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8852 hardcode_libdir_separator=:
8855 osf4* | osf5*) # as osf3* with the addition of -msym flag
8856 if test "$GCC" = yes; then
8857 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858 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'
8859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8861 allow_undefined_flag=' -expect_unresolved \*'
8862 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'
8863 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8864 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8866 # Both c and cxx compiler support -rpath directly
8867 hardcode_libdir_flag_spec='-rpath $libdir'
8869 hardcode_libdir_separator=:
8873 no_undefined_flag=' -z text'
8874 if test "$GCC" = yes; then
8876 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8878 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8881 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8883 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8885 hardcode_libdir_flag_spec='-R$libdir'
8886 hardcode_shlibpath_var=no
8888 solaris2.[0-5] | solaris2.[0-5].*) ;;
8890 # The compiler driver will combine linker options so we
8891 # cannot just pass the convience library names through
8892 # without $wl, iff we do not link with $LD.
8893 # Luckily, gcc supports the same syntax we need for Sun Studio.
8894 # Supported since Solaris 2.6 (maybe 2.5.1?)
8897 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8899 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8902 link_all_deplibs=yes
8906 if test "x$host_vendor" = xsequent; then
8907 # Use $CC to link under sequent, because it throws in some extra .o
8908 # files that make .init and .fini sections work.
8909 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8911 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8913 hardcode_libdir_flag_spec='-L$libdir'
8915 hardcode_minus_L=yes
8916 hardcode_shlibpath_var=no
8920 case $host_vendor in
8922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923 hardcode_direct=yes # is this really true???
8926 ## LD is ld it makes a PLAMLIB
8927 ## CC just makes a GrossModule.
8928 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8929 reload_cmds='$CC -r -o $output$reload_objs'
8933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8937 runpath_var='LD_RUN_PATH'
8938 hardcode_shlibpath_var=no
8942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8943 hardcode_shlibpath_var=no
8944 export_dynamic_flag_spec='-Bexport'
8948 if test -d /usr/nec; then
8949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950 hardcode_shlibpath_var=no
8951 runpath_var=LD_RUN_PATH
8952 hardcode_runpath_var=yes
8957 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8958 no_undefined_flag='${wl}-z,text'
8959 archive_cmds_need_lc=no
8960 hardcode_shlibpath_var=no
8961 runpath_var='LD_RUN_PATH'
8963 if test "$GCC" = yes; then
8964 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8965 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8967 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8968 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8972 sysv5* | sco3.2v5* | sco5v6*)
8973 # Note: We can NOT use -z defs as we might desire, because we do not
8974 # link with -lc, and that would cause any symbols used from libc to
8975 # always be unresolved, which means just about no library would
8976 # ever link correctly. If we're not using GNU ld we use -z text
8977 # though, which does catch some bad symbols but isn't as heavy-handed
8979 no_undefined_flag='${wl}-z,text'
8980 allow_undefined_flag='${wl}-z,nodefs'
8981 archive_cmds_need_lc=no
8982 hardcode_shlibpath_var=no
8983 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8984 hardcode_libdir_separator=':'
8985 link_all_deplibs=yes
8986 export_dynamic_flag_spec='${wl}-Bexport'
8987 runpath_var='LD_RUN_PATH'
8989 if test "$GCC" = yes; then
8990 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8991 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8994 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000 hardcode_libdir_flag_spec='-L$libdir'
9001 hardcode_shlibpath_var=no
9010 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9011 echo "${ECHO_T}$ld_shlibs" >&6; }
9012 test "$ld_shlibs" = no && can_build_shared=no
9015 # Do we need to explicitly link libc?
9017 case "x$archive_cmds_need_lc" in
9019 # Assume -lc should be added
9020 archive_cmds_need_lc=yes
9022 if test "$enable_shared" = yes && test "$GCC" = yes; then
9023 case $archive_cmds in
9025 # FIXME: we may have to deal with multi-command sequences.
9028 # Test whether the compiler implicitly links with -lc since on some
9029 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9030 # to ld, don't add -lc before -lgcc.
9031 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9032 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9034 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9037 (eval $ac_compile) 2>&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } 2>conftest.err; then
9043 libobjs=conftest.$ac_objext
9045 wl=$lt_prog_compiler_wl
9046 pic_flag=$lt_prog_compiler_pic
9052 lt_save_allow_undefined_flag=$allow_undefined_flag
9053 allow_undefined_flag=
9054 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9055 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }
9060 archive_cmds_need_lc=no
9062 archive_cmds_need_lc=yes
9064 allow_undefined_flag=$lt_save_allow_undefined_flag
9066 cat conftest.err 1>&5
9069 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9070 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9077 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9078 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9080 libname_spec='lib$name'
9088 shlibpath_overrides_runpath=unknown
9090 dynamic_linker="$host_os ld.so"
9091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9092 if test "$GCC" = yes; then
9093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9094 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9095 # if the path contains ";" then we assume it to be the separator
9096 # otherwise default to the standard path separator (i.e. ":") - it is
9097 # assumed that no part of a normal pathname contains ";" but that should
9098 # okay in the real world where ";" in dirpaths is itself problematic.
9099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9106 need_lib_prefix=unknown
9107 hardcode_into_libs=no
9109 # when you set need_version to no, make sure it does not cause -set_version
9110 # flags to be left without arguments
9111 need_version=unknown
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9117 shlibpath_var=LIBPATH
9119 # AIX 3 has no versioning support, so we append a major version to the name.
9120 soname_spec='${libname}${release}${shared_ext}$major'
9127 hardcode_into_libs=yes
9128 if test "$host_cpu" = ia64; then
9129 # AIX 5 supports IA64
9130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9131 shlibpath_var=LD_LIBRARY_PATH
9133 # With GCC up to 2.95.x, collect2 would create an import file
9134 # for dependence libraries. The import file would start with
9135 # the line `#! .'. This would cause the generated library to
9136 # depend on `.', always an invalid library. This was fixed in
9137 # development snapshots of GCC prior to 3.0.
9139 aix4 | aix4.[01] | aix4.[01].*)
9140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9142 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9150 # soname into executable. Probably we can add versioning support to
9151 # collect2, so additional links can be useful in future.
9152 if test "$aix_use_runtimelinking" = yes; then
9153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9154 # instead of lib<name>.a to let people know that these are not
9155 # typical AIX shared libraries.
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 # We preserve .a as extension for shared libraries through AIX4.2
9159 # and later when we are not doing run time linking.
9160 library_names_spec='${libname}${release}.a $libname.a'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9163 shlibpath_var=LIBPATH
9168 library_names_spec='$libname.ixlibrary $libname.a'
9169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9170 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'
9174 library_names_spec='${libname}${shared_ext}'
9175 dynamic_linker="$host_os ld.so"
9176 shlibpath_var=LIBRARY_PATH
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9188 # the default ld.so.conf also contains /usr/contrib/lib and
9189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9190 # libtool to hard-code these into programs
9193 cygwin* | mingw* | pw32*)
9194 version_type=windows
9199 case $GCC,$host_os in
9200 yes,cygwin* | yes,mingw* | yes,pw32*)
9201 library_names_spec='$libname.dll.a'
9202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9203 postinstall_cmds='base_file=`basename \${file}`~
9204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9205 dldir=$destdir/`dirname \$dlpath`~
9206 test -d \$dldir || mkdir -p \$dldir~
9207 $install_prog $dir/$dlname \$dldir/$dlname~
9208 chmod a+x \$dldir/$dlname'
9209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9210 dlpath=$dir/\$dldll~
9212 shlibpath_overrides_runpath=yes
9216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9221 # MinGW DLLs use traditional 'lib' prefix
9222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9224 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9225 # It is most probably a Windows format PATH printed by
9226 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9227 # path with ; separators, and with drive letters. We can handle the
9228 # drive letters (cygwin fileutils understands them), so leave them,
9229 # especially as we might pass files found there to a mingw objdump,
9230 # which wouldn't understand a cygwinified path. Ahh.
9231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9237 # pw32 DLLs use 'pw' prefix rather than 'lib'
9238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9247 dynamic_linker='Win32 ld.exe'
9248 # FIXME: first we should search . and the directory the executable is in
9252 darwin* | rhapsody*)
9253 dynamic_linker="$host_os dyld"
9257 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9258 soname_spec='${libname}${release}${major}$shared_ext'
9259 shlibpath_overrides_runpath=yes
9260 shlibpath_var=DYLD_LIBRARY_PATH
9261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9262 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9263 if test "$GCC" = yes; then
9264 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9266 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 shlibpath_var=LD_LIBRARY_PATH
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=no
9292 hardcode_into_libs=yes
9293 dynamic_linker='GNU ld.so'
9296 freebsd* | dragonfly*)
9297 # DragonFly does not have aout. When/if they implement a new
9298 # versioning mechanism, adjust this.
9299 if test -x /usr/bin/objformat; then
9300 objformat=`/usr/bin/objformat`
9303 freebsd[123]*) objformat=aout ;;
9307 version_type=freebsd-$objformat
9308 case $version_type in
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9319 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=yes
9324 freebsd3.[01]* | freebsdelf3.[01]*)
9325 shlibpath_overrides_runpath=yes
9326 hardcode_into_libs=yes
9328 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9329 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9330 shlibpath_overrides_runpath=no
9331 hardcode_into_libs=yes
9333 freebsd*) # from 4.6 on
9334 shlibpath_overrides_runpath=yes
9335 hardcode_into_libs=yes
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 shlibpath_var=LD_LIBRARY_PATH
9347 hardcode_into_libs=yes
9350 hpux9* | hpux10* | hpux11*)
9351 # Give a soname corresponding to the major version so that dld.sl refuses to
9352 # link against other versions.
9359 hardcode_into_libs=yes
9360 dynamic_linker="$host_os dld.so"
9361 shlibpath_var=LD_LIBRARY_PATH
9362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 if test "X$HPUX_IA64_MODE" = X32; then
9366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9374 hardcode_into_libs=yes
9375 dynamic_linker="$host_os dld.sl"
9376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9385 dynamic_linker="$host_os dld.sl"
9386 shlibpath_var=SHLIB_PATH
9387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9393 postinstall_cmds='chmod 555 $lib'
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9401 soname_spec='${libname}${release}${shared_ext}$major'
9402 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 shlibpath_overrides_runpath=no
9405 hardcode_into_libs=yes
9408 irix5* | irix6* | nonstopux*)
9410 nonstopux*) version_type=nonstopux ;;
9412 if test "$lt_cv_prog_gnu_ld" = yes; then
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9423 irix5* | nonstopux*)
9427 case $LD in # libtool.m4 will add one of these switches to LD
9428 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9429 libsuff= shlibsuff= libmagic=32-bit;;
9430 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9431 libsuff=32 shlibsuff=N32 libmagic=N32;;
9432 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9433 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9434 *) libsuff= shlibsuff= libmagic=never-match;;
9438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9439 shlibpath_overrides_runpath=no
9440 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9441 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9442 hardcode_into_libs=yes
9445 # No shared lib support for Linux oldld, aout, or coff.
9446 linux*oldld* | linux*aout* | linux*coff*)
9450 # This must be Linux ELF.
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=no
9460 # This implies no fast_install, which is unacceptable.
9461 # Some rework will be needed to allow for fast_install
9462 # before this can be enabled.
9463 hardcode_into_libs=yes
9465 # find out which ABI we are using
9468 x86_64*|s390x*|powerpc64*)
9469 echo '#line 9469 "configure"' > conftest.$ac_ext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9471 (eval $ac_compile) 2>&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); }; then
9475 case `/usr/bin/file conftest.$ac_objext` in
9478 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9486 # Append ld.so.conf contents to the search path
9487 if test -f /etc/ld.so.conf; then
9488 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9489 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9492 # We used to test for /lib/ld.so.1 and disable shared libraries on
9493 # powerpc, because MkLinux only supported shared libraries with the
9494 # GNU dynamic linker. Since this was broken with cross compilers,
9495 # most powerpc-linux boxes support dynamic linking these days and
9496 # people can always --disable-shared, the test was removed, and we
9497 # assume the GNU/Linux dynamic linker is in use.
9498 dynamic_linker='GNU/Linux ld.so'
9505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9506 soname_spec='${libname}${release}${shared_ext}$major'
9507 shlibpath_var=LD_LIBRARY_PATH
9508 shlibpath_overrides_runpath=no
9509 hardcode_into_libs=yes
9510 dynamic_linker='GNU ld.so'
9517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9520 dynamic_linker='NetBSD (a.out) ld.so'
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9524 dynamic_linker='NetBSD ld.elf_so'
9526 shlibpath_var=LD_LIBRARY_PATH
9527 shlibpath_overrides_runpath=yes
9528 hardcode_into_libs=yes
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534 shlibpath_var=LD_LIBRARY_PATH
9535 shlibpath_overrides_runpath=yes
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 soname_spec='${libname}${release}${shared_ext}$major'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 shlibpath_overrides_runpath=yes
9550 sys_lib_dlsearch_path_spec="/usr/lib"
9552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9554 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9555 *) need_version=no ;;
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9559 shlibpath_var=LD_LIBRARY_PATH
9560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9562 openbsd2.[89] | openbsd2.[89].*)
9563 shlibpath_overrides_runpath=no
9566 shlibpath_overrides_runpath=yes
9570 shlibpath_overrides_runpath=yes
9575 libname_spec='$name'
9578 library_names_spec='$libname${shared_ext} $libname.a'
9579 dynamic_linker='OS/2 ld.exe'
9580 shlibpath_var=LIBPATH
9583 osf3* | osf4* | osf5*)
9587 soname_spec='${libname}${release}${shared_ext}$major'
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 soname_spec='${libname}${release}${shared_ext}$major'
9600 shlibpath_var=LD_LIBRARY_PATH
9601 shlibpath_overrides_runpath=yes
9602 hardcode_into_libs=yes
9603 # ldd complains unless libraries are executable
9604 postinstall_cmds='chmod +x $lib'
9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9610 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9611 shlibpath_var=LD_LIBRARY_PATH
9612 shlibpath_overrides_runpath=yes
9613 if test "$with_gnu_ld" = yes; then
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622 soname_spec='${libname}${release}${shared_ext}$major'
9623 shlibpath_var=LD_LIBRARY_PATH
9624 case $host_vendor in
9626 shlibpath_overrides_runpath=no
9628 export_dynamic_flag_spec='${wl}-Blargedynsym'
9629 runpath_var=LD_RUN_PATH
9637 shlibpath_overrides_runpath=no
9638 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9644 if test -d /usr/nec ;then
9646 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9647 soname_spec='$libname${shared_ext}.$major'
9648 shlibpath_var=LD_LIBRARY_PATH
9652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9653 version_type=freebsd-elf
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 shlibpath_var=LD_LIBRARY_PATH
9659 hardcode_into_libs=yes
9660 if test "$with_gnu_ld" = yes; then
9661 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9662 shlibpath_overrides_runpath=no
9664 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9665 shlibpath_overrides_runpath=yes
9668 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9672 sys_lib_dlsearch_path_spec='/usr/lib'
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 soname_spec='${libname}${release}${shared_ext}$major'
9679 shlibpath_var=LD_LIBRARY_PATH
9686 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9687 echo "${ECHO_T}$dynamic_linker" >&6; }
9688 test "$dynamic_linker" = no && can_build_shared=no
9690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9691 if test "$GCC" = yes; then
9692 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9695 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9696 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9698 if test -n "$hardcode_libdir_flag_spec" || \
9699 test -n "$runpath_var" || \
9700 test "X$hardcode_automatic" = "Xyes" ; then
9702 # We can hardcode non-existant directories.
9703 if test "$hardcode_direct" != no &&
9704 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9705 # have to relink, otherwise we might link with an installed library
9706 # when we should be linking with a yet-to-be-installed one
9707 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9708 test "$hardcode_minus_L" != no; then
9709 # Linking always hardcodes the temporary library directory.
9710 hardcode_action=relink
9712 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9713 hardcode_action=immediate
9716 # We cannot hardcode anything, or else we can only hardcode existing
9718 hardcode_action=unsupported
9720 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9721 echo "${ECHO_T}$hardcode_action" >&6; }
9723 if test "$hardcode_action" = relink; then
9724 # Fast installation is not supported
9725 enable_fast_install=no
9726 elif test "$shlibpath_overrides_runpath" = yes ||
9727 test "$enable_shared" = no; then
9728 # Fast installation is not necessary
9729 enable_fast_install=needless
9734 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9735 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9736 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9737 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9738 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9739 { echo "$as_me:$LINENO: result: yes" >&5
9740 echo "${ECHO_T}yes" >&6; }
9742 # FIXME - insert some real tests, host_os isn't really good enough
9745 if test -n "$STRIP" ; then
9746 striplib="$STRIP -x"
9747 { echo "$as_me:$LINENO: result: yes" >&5
9748 echo "${ECHO_T}yes" >&6; }
9750 { echo "$as_me:$LINENO: result: no" >&5
9751 echo "${ECHO_T}no" >&6; }
9755 { echo "$as_me:$LINENO: result: no" >&5
9756 echo "${ECHO_T}no" >&6; }
9761 if test "x$enable_dlopen" != xyes; then
9762 enable_dlopen=unknown
9763 enable_dlopen_self=unknown
9764 enable_dlopen_self_static=unknown
9771 lt_cv_dlopen="load_add_on"
9773 lt_cv_dlopen_self=yes
9777 lt_cv_dlopen="LoadLibrary"
9782 lt_cv_dlopen="dlopen"
9787 # if libdl is installed we need to link against it
9788 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9789 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9790 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 ac_check_lib_save_LIBS=$LIBS
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9802 /* Override any GCC internal prototype to avoid an error.
9803 Use char because int might match the return type of a GCC
9804 builtin and then its argument prototype would still apply. */
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest$ac_exeext &&
9834 $as_test_x conftest$ac_exeext; then
9835 ac_cv_lib_dl_dlopen=yes
9837 echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.$ac_ext >&5
9840 ac_cv_lib_dl_dlopen=no
9843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9844 conftest$ac_exeext conftest.$ac_ext
9845 LIBS=$ac_check_lib_save_LIBS
9847 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9848 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9849 if test $ac_cv_lib_dl_dlopen = yes; then
9850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9855 lt_cv_dlopen_self=yes
9862 { echo "$as_me:$LINENO: checking for shl_load" >&5
9863 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9864 if test "${ac_cv_func_shl_load+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9875 #define shl_load innocuous_shl_load
9877 /* System header to define __stub macros and hopefully few prototypes,
9878 which can conflict with char shl_load (); below.
9879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9880 <limits.h> exists even on freestanding compilers. */
9883 # include <limits.h>
9885 # include <assert.h>
9890 /* Override any GCC internal prototype to avoid an error.
9891 Use char because int might match the return type of a GCC
9892 builtin and then its argument prototype would still apply. */
9897 /* The GNU C library defines this for functions which it implements
9898 to always fail with ENOSYS. Some functions are actually named
9899 something starting with __ and the normal name is an alias. */
9900 #if defined __stub_shl_load || defined __stub___shl_load
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (ac_try="$ac_link"
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_link") 2>conftest.er1
9921 grep -v '^ *+' conftest.er1 >conftest.err
9923 cat conftest.err >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } && {
9926 test -z "$ac_c_werror_flag" ||
9927 test ! -s conftest.err
9928 } && test -s conftest$ac_exeext &&
9929 $as_test_x conftest$ac_exeext; then
9930 ac_cv_func_shl_load=yes
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9935 ac_cv_func_shl_load=no
9938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9939 conftest$ac_exeext conftest.$ac_ext
9941 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9942 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9943 if test $ac_cv_func_shl_load = yes; then
9944 lt_cv_dlopen="shl_load"
9946 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9947 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9948 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 ac_check_lib_save_LIBS=$LIBS
9953 cat >conftest.$ac_ext <<_ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9960 /* Override any GCC internal prototype to avoid an error.
9961 Use char because int might match the return type of a GCC
9962 builtin and then its argument prototype would still apply. */
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (ac_try="$ac_link"
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_link") 2>conftest.er1
9984 grep -v '^ *+' conftest.er1 >conftest.err
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && {
9989 test -z "$ac_c_werror_flag" ||
9990 test ! -s conftest.err
9991 } && test -s conftest$ac_exeext &&
9992 $as_test_x conftest$ac_exeext; then
9993 ac_cv_lib_dld_shl_load=yes
9995 echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9998 ac_cv_lib_dld_shl_load=no
10001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10002 conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10005 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10006 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10007 if test $ac_cv_lib_dld_shl_load = yes; then
10008 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10010 { echo "$as_me:$LINENO: checking for dlopen" >&5
10011 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10012 if test "${ac_cv_func_dlopen+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 cat >conftest.$ac_ext <<_ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10023 #define dlopen innocuous_dlopen
10025 /* System header to define __stub macros and hopefully few prototypes,
10026 which can conflict with char dlopen (); below.
10027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10028 <limits.h> exists even on freestanding compilers. */
10031 # include <limits.h>
10033 # include <assert.h>
10038 /* Override any GCC internal prototype to avoid an error.
10039 Use char because int might match the return type of a GCC
10040 builtin and then its argument prototype would still apply. */
10045 /* The GNU C library defines this for functions which it implements
10046 to always fail with ENOSYS. Some functions are actually named
10047 something starting with __ and the normal name is an alias. */
10048 #if defined __stub_dlopen || defined __stub___dlopen
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (ac_try="$ac_link"
10062 case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_link") 2>conftest.er1
10069 grep -v '^ *+' conftest.er1 >conftest.err
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && {
10074 test -z "$ac_c_werror_flag" ||
10075 test ! -s conftest.err
10076 } && test -s conftest$ac_exeext &&
10077 $as_test_x conftest$ac_exeext; then
10078 ac_cv_func_dlopen=yes
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10083 ac_cv_func_dlopen=no
10086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10087 conftest$ac_exeext conftest.$ac_ext
10089 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10090 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10091 if test $ac_cv_func_dlopen = yes; then
10092 lt_cv_dlopen="dlopen"
10094 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10095 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10096 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
10099 ac_check_lib_save_LIBS=$LIBS
10101 cat >conftest.$ac_ext <<_ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h. */
10108 /* Override any GCC internal prototype to avoid an error.
10109 Use char because int might match the return type of a GCC
10110 builtin and then its argument prototype would still apply. */
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (ac_try="$ac_link"
10125 case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_link") 2>conftest.er1
10132 grep -v '^ *+' conftest.er1 >conftest.err
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && {
10137 test -z "$ac_c_werror_flag" ||
10138 test ! -s conftest.err
10139 } && test -s conftest$ac_exeext &&
10140 $as_test_x conftest$ac_exeext; then
10141 ac_cv_lib_dl_dlopen=yes
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_cv_lib_dl_dlopen=no
10149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10150 conftest$ac_exeext conftest.$ac_ext
10151 LIBS=$ac_check_lib_save_LIBS
10153 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10154 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10155 if test $ac_cv_lib_dl_dlopen = yes; then
10156 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10158 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10159 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10160 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 ac_check_lib_save_LIBS=$LIBS
10164 LIBS="-lsvld $LIBS"
10165 cat >conftest.$ac_ext <<_ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10172 /* Override any GCC internal prototype to avoid an error.
10173 Use char because int might match the return type of a GCC
10174 builtin and then its argument prototype would still apply. */
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_link") 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest$ac_exeext &&
10204 $as_test_x conftest$ac_exeext; then
10205 ac_cv_lib_svld_dlopen=yes
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 ac_cv_lib_svld_dlopen=no
10213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10214 conftest$ac_exeext conftest.$ac_ext
10215 LIBS=$ac_check_lib_save_LIBS
10217 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10218 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10219 if test $ac_cv_lib_svld_dlopen = yes; then
10220 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10222 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10223 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10224 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 ac_check_lib_save_LIBS=$LIBS
10229 cat >conftest.$ac_ext <<_ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h. */
10236 /* Override any GCC internal prototype to avoid an error.
10237 Use char because int might match the return type of a GCC
10238 builtin and then its argument prototype would still apply. */
10246 return dld_link ();
10251 rm -f conftest.$ac_objext conftest$ac_exeext
10252 if { (ac_try="$ac_link"
10253 case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_link") 2>conftest.er1
10260 grep -v '^ *+' conftest.er1 >conftest.err
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } && {
10265 test -z "$ac_c_werror_flag" ||
10266 test ! -s conftest.err
10267 } && test -s conftest$ac_exeext &&
10268 $as_test_x conftest$ac_exeext; then
10269 ac_cv_lib_dld_dld_link=yes
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10274 ac_cv_lib_dld_dld_link=no
10277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10278 conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10281 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10282 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10283 if test $ac_cv_lib_dld_dld_link = yes; then
10284 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10305 if test "x$lt_cv_dlopen" != xno; then
10311 case $lt_cv_dlopen in
10313 save_CPPFLAGS="$CPPFLAGS"
10314 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10316 save_LDFLAGS="$LDFLAGS"
10317 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10320 LIBS="$lt_cv_dlopen_libs $LIBS"
10322 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10323 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10324 if test "${lt_cv_dlopen_self+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 if test "$cross_compiling" = yes; then :
10328 lt_cv_dlopen_self=cross
10330 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10331 lt_status=$lt_dlunknown
10332 cat > conftest.$ac_ext <<EOF
10333 #line 10333 "configure"
10334 #include "confdefs.h"
10343 # define LT_DLGLOBAL RTLD_GLOBAL
10346 # define LT_DLGLOBAL DL_GLOBAL
10348 # define LT_DLGLOBAL 0
10352 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10353 find out it does not work in some platform. */
10354 #ifndef LT_DLLAZY_OR_NOW
10356 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10359 # define LT_DLLAZY_OR_NOW DL_LAZY
10362 # define LT_DLLAZY_OR_NOW RTLD_NOW
10365 # define LT_DLLAZY_OR_NOW DL_NOW
10367 # define LT_DLLAZY_OR_NOW 0
10375 extern "C" void exit (int);
10378 void fnord() { int i=42;}
10381 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10382 int status = $lt_dlunknown;
10386 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10387 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10388 /* dlclose (self); */
10396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10397 (eval $ac_link) 2>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10401 (./conftest; exit; ) >&5 2>/dev/null
10403 case x$lt_status in
10404 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10405 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10406 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10409 # compilation failed
10410 lt_cv_dlopen_self=no
10417 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10418 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10420 if test "x$lt_cv_dlopen_self" = xyes; then
10421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10422 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10423 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10424 if test "${lt_cv_dlopen_self_static+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 if test "$cross_compiling" = yes; then :
10428 lt_cv_dlopen_self_static=cross
10430 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10431 lt_status=$lt_dlunknown
10432 cat > conftest.$ac_ext <<EOF
10433 #line 10433 "configure"
10434 #include "confdefs.h"
10443 # define LT_DLGLOBAL RTLD_GLOBAL
10446 # define LT_DLGLOBAL DL_GLOBAL
10448 # define LT_DLGLOBAL 0
10452 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10453 find out it does not work in some platform. */
10454 #ifndef LT_DLLAZY_OR_NOW
10456 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10459 # define LT_DLLAZY_OR_NOW DL_LAZY
10462 # define LT_DLLAZY_OR_NOW RTLD_NOW
10465 # define LT_DLLAZY_OR_NOW DL_NOW
10467 # define LT_DLLAZY_OR_NOW 0
10475 extern "C" void exit (int);
10478 void fnord() { int i=42;}
10481 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10482 int status = $lt_dlunknown;
10486 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10487 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10488 /* dlclose (self); */
10496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497 (eval $ac_link) 2>&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10501 (./conftest; exit; ) >&5 2>/dev/null
10503 case x$lt_status in
10504 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10505 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10506 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10509 # compilation failed
10510 lt_cv_dlopen_self_static=no
10517 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10518 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10521 CPPFLAGS="$save_CPPFLAGS"
10522 LDFLAGS="$save_LDFLAGS"
10527 case $lt_cv_dlopen_self in
10528 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10529 *) enable_dlopen_self=unknown ;;
10532 case $lt_cv_dlopen_self_static in
10533 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10534 *) enable_dlopen_self_static=unknown ;;
10539 # Report which library types will actually be built
10540 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10541 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10542 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10543 echo "${ECHO_T}$can_build_shared" >&6; }
10545 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10546 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10547 test "$can_build_shared" = "no" && enable_shared=no
10549 # On AIX, shared libraries and static libraries use the same namespace, and
10550 # are all built from PIC.
10553 test "$enable_shared" = yes && enable_static=no
10554 if test -n "$RANLIB"; then
10555 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10556 postinstall_cmds='$RANLIB $lib'
10561 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10562 test "$enable_shared" = yes && enable_static=no
10566 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10567 echo "${ECHO_T}$enable_shared" >&6; }
10569 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10570 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10571 # Make sure either enable_shared or enable_static is yes.
10572 test "$enable_shared" = yes || enable_static=yes
10573 { echo "$as_me:$LINENO: result: $enable_static" >&5
10574 echo "${ECHO_T}$enable_static" >&6; }
10576 # The else clause should only fire when bootstrapping the
10577 # libtool distribution, otherwise you forgot to ship ltmain.sh
10578 # with your package, and you will get complaints that there are
10579 # no rules to generate ltmain.sh.
10580 if test -f "$ltmain"; then
10581 # See if we are running on zsh, and set the options which allow our commands through
10582 # without removal of \ escapes.
10583 if test -n "${ZSH_VERSION+set}" ; then
10584 setopt NO_GLOB_SUBST
10586 # Now quote all the things that may contain metacharacters while being
10587 # careful not to overquote the AC_SUBSTed values. We take copies of the
10588 # variables and quote the copies for generation of the libtool script.
10589 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10591 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10592 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10593 deplibs_check_method reload_flag reload_cmds need_locks \
10594 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10595 lt_cv_sys_global_symbol_to_c_name_address \
10596 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10597 old_postinstall_cmds old_postuninstall_cmds \
10601 lt_prog_compiler_wl \
10602 lt_prog_compiler_pic \
10603 lt_prog_compiler_static \
10604 lt_prog_compiler_no_builtin_flag \
10605 export_dynamic_flag_spec \
10606 thread_safe_flag_spec \
10607 whole_archive_flag_spec \
10608 enable_shared_with_static_runtimes \
10610 old_archive_from_new_cmds \
10615 compiler_lib_search_path \
10617 archive_expsym_cmds \
10619 postuninstall_cmds \
10620 old_archive_from_expsyms_cmds \
10621 allow_undefined_flag \
10622 no_undefined_flag \
10623 export_symbols_cmds \
10624 hardcode_libdir_flag_spec \
10625 hardcode_libdir_flag_spec_ld \
10626 hardcode_libdir_separator \
10627 hardcode_automatic \
10629 module_expsym_cmds \
10630 lt_cv_prog_compiler_c_o \
10632 include_expsyms; do
10635 old_archive_cmds | \
10636 old_archive_from_new_cmds | \
10638 archive_expsym_cmds | \
10640 module_expsym_cmds | \
10641 old_archive_from_expsyms_cmds | \
10642 export_symbols_cmds | \
10643 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10644 postinstall_cmds | postuninstall_cmds | \
10645 old_postinstall_cmds | old_postuninstall_cmds | \
10646 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10647 # Double-quote double-evaled strings.
10648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10651 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10657 *'\$0 --fallback-echo"')
10658 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10662 cfgfile="${ofile}T"
10663 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10665 { echo "$as_me:$LINENO: creating $ofile" >&5
10666 echo "$as_me: creating $ofile" >&6;}
10668 cat <<__EOF__ >> "$cfgfile"
10671 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10672 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10673 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10675 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10676 # Free Software Foundation, Inc.
10678 # This file is part of GNU Libtool:
10679 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10681 # This program is free software; you can redistribute it and/or modify
10682 # it under the terms of the GNU General Public License as published by
10683 # the Free Software Foundation; either version 2 of the License, or
10684 # (at your option) any later version.
10686 # This program is distributed in the hope that it will be useful, but
10687 # WITHOUT ANY WARRANTY; without even the implied warranty of
10688 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10689 # General Public License for more details.
10691 # You should have received a copy of the GNU General Public License
10692 # along with this program; if not, write to the Free Software
10693 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10695 # As a special exception to the GNU General Public License, if you
10696 # distribute this file as part of a program that contains a
10697 # configuration script generated by Autoconf, you may include it under
10698 # the same distribution terms that you use for the rest of that program.
10700 # A sed program that does not truncate output.
10703 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10704 Xsed="$SED -e 1s/^X//"
10706 # The HP-UX ksh and POSIX shell print the target directory to stdout
10707 # if CDPATH is set.
10708 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10710 # The names of the tagged configurations supported by this script.
10713 # ### BEGIN LIBTOOL CONFIG
10715 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10717 # Shell to use when invoking shell scripts.
10720 # Whether or not to build shared libraries.
10721 build_libtool_libs=$enable_shared
10723 # Whether or not to build static libraries.
10724 build_old_libs=$enable_static
10726 # Whether or not to add -lc for building shared libraries.
10727 build_libtool_need_lc=$archive_cmds_need_lc
10729 # Whether or not to disallow shared libs when runtime libs are static
10730 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10732 # Whether or not to optimize for fast installation.
10733 fast_install=$enable_fast_install
10736 host_alias=$host_alias
10740 # The build system.
10741 build_alias=$build_alias
10745 # An echo program that does not interpret backslashes.
10750 AR_FLAGS=$lt_AR_FLAGS
10755 # LTCC compiler flags.
10756 LTCFLAGS=$lt_LTCFLAGS
10758 # A language-specific compiler.
10761 # Is the compiler the GNU C compiler?
10764 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10765 gcc_ver=\`gcc -dumpversion\`
10770 # The linker used to build libraries.
10773 # Whether we need hard or soft links.
10776 # A BSD-compatible nm program.
10779 # A symbol stripping program
10782 # Used to examine libraries when file_magic_cmd begins "file"
10783 MAGIC_CMD=$MAGIC_CMD
10785 # Used on cygwin: DLL creation program.
10788 # Used on cygwin: object dumper.
10791 # Used on cygwin: assembler.
10794 # The name of the directory that contains temporary libtool files.
10797 # How to create reloadable object files.
10798 reload_flag=$lt_reload_flag
10799 reload_cmds=$lt_reload_cmds
10801 # How to pass a linker flag through the compiler.
10802 wl=$lt_lt_prog_compiler_wl
10804 # Object file suffix (normally "o").
10805 objext="$ac_objext"
10807 # Old archive suffix (normally "a").
10810 # Shared library suffix (normally ".so").
10811 shrext_cmds='$shrext_cmds'
10813 # Executable file suffix (normally "").
10816 # Additional compiler flags for building library objects.
10817 pic_flag=$lt_lt_prog_compiler_pic
10820 # What is the maximum length of a command?
10821 max_cmd_len=$lt_cv_sys_max_cmd_len
10823 # Does compiler simultaneously support -c and -o options?
10824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10826 # Must we lock files when doing compilation?
10827 need_locks=$lt_need_locks
10829 # Do we need the lib prefix for modules?
10830 need_lib_prefix=$need_lib_prefix
10832 # Do we need a version for libraries?
10833 need_version=$need_version
10835 # Whether dlopen is supported.
10836 dlopen_support=$enable_dlopen
10838 # Whether dlopen of programs is supported.
10839 dlopen_self=$enable_dlopen_self
10841 # Whether dlopen of statically linked programs is supported.
10842 dlopen_self_static=$enable_dlopen_self_static
10844 # Compiler flag to prevent dynamic linking.
10845 link_static_flag=$lt_lt_prog_compiler_static
10847 # Compiler flag to turn off builtin functions.
10848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10850 # Compiler flag to allow reflexive dlopens.
10851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10853 # Compiler flag to generate shared objects directly from archives.
10854 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10856 # Compiler flag to generate thread-safe objects.
10857 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10859 # Library versioning type.
10860 version_type=$version_type
10862 # Format of library name prefix.
10863 libname_spec=$lt_libname_spec
10865 # List of archive names. First name is the real one, the rest are links.
10866 # The last name is the one that the linker finds with -lNAME.
10867 library_names_spec=$lt_library_names_spec
10869 # The coded name of the library, if different from the real name.
10870 soname_spec=$lt_soname_spec
10872 # Commands used to build and install an old-style archive.
10874 old_archive_cmds=$lt_old_archive_cmds
10875 old_postinstall_cmds=$lt_old_postinstall_cmds
10876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10878 # Create an old-style archive from a shared archive.
10879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10881 # Create a temporary old-style archive to link instead of a shared archive.
10882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10884 # Commands used to build and install a shared archive.
10885 archive_cmds=$lt_archive_cmds
10886 archive_expsym_cmds=$lt_archive_expsym_cmds
10887 postinstall_cmds=$lt_postinstall_cmds
10888 postuninstall_cmds=$lt_postuninstall_cmds
10890 # Commands used to build a loadable module (assumed same as above if empty)
10891 module_cmds=$lt_module_cmds
10892 module_expsym_cmds=$lt_module_expsym_cmds
10894 # Commands to strip libraries.
10895 old_striplib=$lt_old_striplib
10896 striplib=$lt_striplib
10898 # Dependencies to place before the objects being linked to create a
10900 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10902 # Dependencies to place after the objects being linked to create a
10904 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10906 # Dependencies to place before the objects being linked to create a
10908 predeps=$lt_predeps
10910 # Dependencies to place after the objects being linked to create a
10912 postdeps=$lt_postdeps
10914 # The library search path used internally by the compiler when linking
10915 # a shared library.
10916 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10918 # Method to check whether dependent libraries are shared objects.
10919 deplibs_check_method=$lt_deplibs_check_method
10921 # Command to use when deplibs_check_method == file_magic.
10922 file_magic_cmd=$lt_file_magic_cmd
10924 # Flag that allows shared libraries with undefined symbols to be built.
10925 allow_undefined_flag=$lt_allow_undefined_flag
10927 # Flag that forces no undefined symbols.
10928 no_undefined_flag=$lt_no_undefined_flag
10930 # Commands used to finish a libtool library installation in a directory.
10931 finish_cmds=$lt_finish_cmds
10933 # Same as above, but a single script fragment to be evaled but not shown.
10934 finish_eval=$lt_finish_eval
10936 # Take the output of nm and produce a listing of raw symbols and C names.
10937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10939 # Transform the output of nm in a proper C declaration
10940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10942 # Transform the output of nm in a C name address pair
10943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10945 # This is the shared library runtime path variable.
10946 runpath_var=$runpath_var
10948 # This is the shared library path variable.
10949 shlibpath_var=$shlibpath_var
10951 # Is shlibpath searched before the hard-coded library search path?
10952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10954 # How to hardcode a shared library path into an executable.
10955 hardcode_action=$hardcode_action
10957 # Whether we should hardcode library paths into libraries.
10958 hardcode_into_libs=$hardcode_into_libs
10960 # Flag to hardcode \$libdir into a binary during linking.
10961 # This must work even if \$libdir does not exist.
10962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10964 # If ld is used when linking, flag to hardcode \$libdir into
10965 # a binary during linking. This must work even if \$libdir does
10967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10969 # Whether we need a single -rpath flag with a separated argument.
10970 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10973 # resulting binary.
10974 hardcode_direct=$hardcode_direct
10976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10977 # resulting binary.
10978 hardcode_minus_L=$hardcode_minus_L
10980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10981 # the resulting binary.
10982 hardcode_shlibpath_var=$hardcode_shlibpath_var
10984 # Set to yes if building a shared library automatically hardcodes DIR into the library
10985 # and all subsequent libraries and executables linked against it.
10986 hardcode_automatic=$hardcode_automatic
10988 # Variables whose values should be saved in libtool wrapper scripts and
10989 # restored at relink time.
10990 variables_saved_for_relink="$variables_saved_for_relink"
10992 # Whether libtool must link a program against all its dependency libraries.
10993 link_all_deplibs=$link_all_deplibs
10995 # Compile-time system search path for libraries
10996 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10998 # Run-time system search path for libraries
10999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11001 # Fix the shell variable \$srcfile for the compiler.
11002 fix_srcfile_path="$fix_srcfile_path"
11004 # Set to yes if exported symbols are required.
11005 always_export_symbols=$always_export_symbols
11007 # The commands to list exported symbols.
11008 export_symbols_cmds=$lt_export_symbols_cmds
11010 # The commands to extract the exported symbol list from a shared archive.
11011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11013 # Symbols that should not be listed in the preloaded symbols.
11014 exclude_expsyms=$lt_exclude_expsyms
11016 # Symbols that must always be exported.
11017 include_expsyms=$lt_include_expsyms
11019 # ### END LIBTOOL CONFIG
11026 cat <<\EOF >> "$cfgfile"
11028 # AIX sometimes has problems with the GCC collect2 program. For some
11029 # reason, if we set the COLLECT_NAMES environment variable, the problems
11030 # vanish in a puff of smoke.
11031 if test "X${COLLECT_NAMES+set}" != Xset; then
11033 export COLLECT_NAMES
11039 # We use sed instead of cat because bash on DJGPP gets confused if
11040 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11041 # text mode, it properly converts lines to CR/LF. This bash problem
11042 # is reportedly fixed, but why not run on old versions too?
11043 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11045 mv -f "$cfgfile" "$ofile" || \
11046 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11050 # If there is no Makefile yet, we rely on a make rule to execute
11051 # `config.status --recheck' to rerun these tests and create the
11052 # libtool script then.
11053 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11054 if test -f "$ltmain_in"; then
11055 test -f Makefile && make "$ltmain"
11061 ac_cpp='$CPP $CPPFLAGS'
11062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11069 # Check whether --with-tags was given.
11070 if test "${with_tags+set}" = set; then
11071 withval=$with_tags; tagnames="$withval"
11075 if test -f "$ltmain" && test -n "$tagnames"; then
11076 if test ! -f "${ofile}"; then
11077 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11078 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11081 if test -z "$LTCC"; then
11082 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11083 if test -z "$LTCC"; then
11084 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11085 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11088 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11091 if test -z "$LTCFLAGS"; then
11092 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11095 # Extract list of available tagged configurations in $ofile.
11096 # Note that this assumes the entire list is on one line.
11097 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11099 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11100 for tagname in $tagnames; do
11102 # Check whether tagname contains only valid characters
11103 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11105 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11106 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11107 { (exit 1); exit 1; }; }
11111 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11113 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11114 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11115 { (exit 1); exit 1; }; }
11118 # Update the list of available tags.
11119 if test -n "$tagname"; then
11120 echo appending configuration tag \"$tagname\" to $ofile
11124 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11125 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11126 (test "X$CXX" != "Xg++"))) ; then
11128 ac_cpp='$CXXCPP $CPPFLAGS'
11129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11136 archive_cmds_need_lc_CXX=no
11137 allow_undefined_flag_CXX=
11138 always_export_symbols_CXX=no
11139 archive_expsym_cmds_CXX=
11140 export_dynamic_flag_spec_CXX=
11141 hardcode_direct_CXX=no
11142 hardcode_libdir_flag_spec_CXX=
11143 hardcode_libdir_flag_spec_ld_CXX=
11144 hardcode_libdir_separator_CXX=
11145 hardcode_minus_L_CXX=no
11146 hardcode_shlibpath_var_CXX=unsupported
11147 hardcode_automatic_CXX=no
11149 module_expsym_cmds_CXX=
11150 link_all_deplibs_CXX=unknown
11151 old_archive_cmds_CXX=$old_archive_cmds
11152 no_undefined_flag_CXX=
11153 whole_archive_flag_spec_CXX=
11154 enable_shared_with_static_runtimes_CXX=no
11156 # Dependencies to place before and after the object being linked:
11157 predep_objects_CXX=
11158 postdep_objects_CXX=
11161 compiler_lib_search_path_CXX=
11163 # Source file extension for C++ test sources.
11166 # Object file extension for compiled C++ test sources.
11170 # Code to be used in simple compile tests
11171 lt_simple_compile_test_code="int some_variable = 0;\n"
11173 # Code to be used in simple link tests
11174 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11176 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11178 # If no C compiler was specified, use CC.
11181 # If no C compiler flags were specified, use CFLAGS.
11182 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11184 # Allow CC to be a program name with arguments.
11188 # save warnings/boilerplate of simple test code
11189 ac_outfile=conftest.$ac_objext
11190 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11191 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11192 _lt_compiler_boilerplate=`cat conftest.err`
11195 ac_outfile=conftest.$ac_objext
11196 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11197 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11198 _lt_linker_boilerplate=`cat conftest.err`
11202 # Allow CC to be a program name with arguments.
11207 lt_save_with_gnu_ld=$with_gnu_ld
11208 lt_save_path_LD=$lt_cv_path_LD
11209 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11210 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11212 $as_unset lt_cv_prog_gnu_ld
11214 if test -n "${lt_cv_path_LDCXX+set}"; then
11215 lt_cv_path_LD=$lt_cv_path_LDCXX
11217 $as_unset lt_cv_path_LD
11219 test -z "${LDCXX+set}" || LD=$LDCXX
11223 for cc_temp in $compiler""; do
11225 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11226 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11231 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11234 # We don't want -fno-exception wen compiling C++ code, so set the
11235 # no_builtin_flag separately
11236 if test "$GXX" = yes; then
11237 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11239 lt_prog_compiler_no_builtin_flag_CXX=
11242 if test "$GXX" = yes; then
11243 # Set up default GNU C++ configuration
11246 # Check whether --with-gnu-ld was given.
11247 if test "${with_gnu_ld+set}" = set; then
11248 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11254 if test "$GCC" = yes; then
11255 # Check if gcc -print-prog-name=ld gives a path.
11256 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11257 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11260 # gcc leaves a trailing carriage return which upsets mingw
11261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11266 # Accept absolute paths.
11268 re_direlt='/[^/][^/]*/\.\./'
11269 # Canonicalize the pathname of ld
11270 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11271 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11272 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11274 test -z "$LD" && LD="$ac_prog"
11277 # If it fails, then pretend we aren't using GCC.
11281 # If it is relative, then search for the first ld in PATH.
11282 with_gnu_ld=unknown
11285 elif test "$with_gnu_ld" = yes; then
11286 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11287 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11289 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11290 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11292 if test "${lt_cv_path_LD+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 if test -z "$LD"; then
11296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11297 for ac_dir in $PATH; do
11299 test -z "$ac_dir" && ac_dir=.
11300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11301 lt_cv_path_LD="$ac_dir/$ac_prog"
11302 # Check to see if the program is GNU ld. I'd rather use --version,
11303 # but apparently some variants of GNU ld only accept -v.
11304 # Break only if it was the GNU/non-GNU ld that we prefer.
11305 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11306 *GNU* | *'with BFD'*)
11307 test "$with_gnu_ld" != no && break
11310 test "$with_gnu_ld" != yes && break
11317 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11321 LD="$lt_cv_path_LD"
11322 if test -n "$LD"; then
11323 { echo "$as_me:$LINENO: result: $LD" >&5
11324 echo "${ECHO_T}$LD" >&6; }
11326 { echo "$as_me:$LINENO: result: no" >&5
11327 echo "${ECHO_T}no" >&6; }
11329 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11330 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11331 { (exit 1); exit 1; }; }
11332 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11333 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11334 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11338 case `$LD -v 2>&1 </dev/null` in
11339 *GNU* | *'with BFD'*)
11340 lt_cv_prog_gnu_ld=yes
11343 lt_cv_prog_gnu_ld=no
11347 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11348 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11349 with_gnu_ld=$lt_cv_prog_gnu_ld
11353 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11354 # archiving commands below assume that GNU ld is being used.
11355 if test "$with_gnu_ld" = yes; then
11356 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11357 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11359 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11362 # If archive_cmds runs LD, not CC, wlarc should be empty
11363 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11364 # investigate it a little bit more. (MM)
11367 # ancient GNU ld didn't support --whole-archive et. al.
11368 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11369 grep 'no-whole-archive' > /dev/null; then
11370 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11372 whole_archive_flag_spec_CXX=
11378 # A generic and very simple default shared library creation
11379 # command for GNU C++ for the case where it uses the native
11380 # linker, instead of GNU ld. If possible, this setting should
11381 # overridden to take advantage of the native linker features on
11382 # the platform it is being used on.
11383 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11386 # Commands to make compiler produce verbose output that lists
11387 # what "hidden" libraries, object files and flags are used when
11388 # linking a shared library.
11389 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11397 # PORTME: fill in a description of your system's C++ link characteristics
11398 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11399 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11403 # FIXME: insert proper C++ library support
11407 if test "$host_cpu" = ia64; then
11408 # On IA64, the linker does run time linking by default, so we don't
11409 # have to do anything special.
11410 aix_use_runtimelinking=no
11411 exp_sym_flag='-Bexport'
11414 aix_use_runtimelinking=no
11416 # Test if we are trying to use run time linking or normal
11417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11418 # need to do runtime linking.
11419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11420 for ld_flag in $LDFLAGS; do
11423 aix_use_runtimelinking=yes
11431 exp_sym_flag='-bexport'
11432 no_entry_flag='-bnoentry'
11435 # When large executables or shared objects are built, AIX ld can
11436 # have problems creating the table of contents. If linking a library
11437 # or program results in "error TOC overflow" add -mminimal-toc to
11438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11441 archive_cmds_CXX=''
11442 hardcode_direct_CXX=yes
11443 hardcode_libdir_separator_CXX=':'
11444 link_all_deplibs_CXX=yes
11446 if test "$GXX" = yes; then
11447 case $host_os in aix4.[012]|aix4.[012].*)
11448 # We only want to do this on AIX 4.2 and lower, the check
11449 # below for broken collect2 doesn't work under 4.3+
11450 collect2name=`${CC} -print-prog-name=collect2`
11451 if test -f "$collect2name" && \
11452 strings "$collect2name" | grep resolve_lib_name >/dev/null
11454 # We have reworked collect2
11455 hardcode_direct_CXX=yes
11457 # We have old collect2
11458 hardcode_direct_CXX=unsupported
11459 # It fails to find uninstalled libraries when the uninstalled
11460 # path is not listed in the libpath. Setting hardcode_minus_L
11461 # to unsupported forces relinking
11462 hardcode_minus_L_CXX=yes
11463 hardcode_libdir_flag_spec_CXX='-L$libdir'
11464 hardcode_libdir_separator_CXX=
11468 shared_flag='-shared'
11469 if test "$aix_use_runtimelinking" = yes; then
11470 shared_flag="$shared_flag "'${wl}-G'
11474 if test "$host_cpu" = ia64; then
11475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11476 # chokes on -Wl,-G. The following line is correct:
11479 if test "$aix_use_runtimelinking" = yes; then
11480 shared_flag='${wl}-G'
11482 shared_flag='${wl}-bM:SRE'
11487 # It seems that -bexpall does not export symbols beginning with
11488 # underscore (_), so it is better to generate a list of symbols to export.
11489 always_export_symbols_CXX=yes
11490 if test "$aix_use_runtimelinking" = yes; then
11491 # Warning - without using the other runtime loading flags (-brtl),
11492 # -berok will link without error, but may produce a broken library.
11493 allow_undefined_flag_CXX='-berok'
11494 # Determine the default libpath from the value encoded in an empty executable.
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11510 rm -f conftest.$ac_objext conftest$ac_exeext
11511 if { (ac_try="$ac_link"
11512 case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_link") 2>conftest.er1
11519 grep -v '^ *+' conftest.er1 >conftest.err
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } && {
11524 test -z "$ac_cxx_werror_flag" ||
11525 test ! -s conftest.err
11526 } && test -s conftest$ac_exeext &&
11527 $as_test_x conftest$ac_exeext; then
11529 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11531 # Check for a 64-bit object if we didn't find anything.
11532 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11535 echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11542 conftest$ac_exeext conftest.$ac_ext
11543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11545 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11547 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11549 if test "$host_cpu" = ia64; then
11550 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11551 allow_undefined_flag_CXX="-z nodefs"
11552 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11554 # Determine the default libpath from the value encoded in an empty executable.
11555 cat >conftest.$ac_ext <<_ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11570 rm -f conftest.$ac_objext conftest$ac_exeext
11571 if { (ac_try="$ac_link"
11572 case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_link") 2>conftest.er1
11579 grep -v '^ *+' conftest.er1 >conftest.err
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } && {
11584 test -z "$ac_cxx_werror_flag" ||
11585 test ! -s conftest.err
11586 } && test -s conftest$ac_exeext &&
11587 $as_test_x conftest$ac_exeext; then
11589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11591 # Check for a 64-bit object if we didn't find anything.
11592 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11602 conftest$ac_exeext conftest.$ac_ext
11603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11605 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11606 # Warning - without using the other run time loading flags,
11607 # -berok will link without error, but may produce a broken library.
11608 no_undefined_flag_CXX=' ${wl}-bernotok'
11609 allow_undefined_flag_CXX=' ${wl}-berok'
11610 # Exported symbols can be pulled into shared objects from archives
11611 whole_archive_flag_spec_CXX='$convenience'
11612 archive_cmds_need_lc_CXX=yes
11613 # This is similar to how AIX traditionally builds its shared libraries.
11614 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11621 allow_undefined_flag_CXX=unsupported
11622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11623 # support --undefined. This deserves some investigation. FIXME
11624 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11631 case $cc_basename in
11633 # FIXME: insert proper C++ library support
11639 cygwin* | mingw* | pw32*)
11640 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11641 # as there is no search path for DLLs.
11642 hardcode_libdir_flag_spec_CXX='-L$libdir'
11643 allow_undefined_flag_CXX=unsupported
11644 always_export_symbols_CXX=no
11645 enable_shared_with_static_runtimes_CXX=yes
11647 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11648 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11649 # If the export-symbols file already is a .def file (1st line
11650 # is EXPORTS), use it as is; otherwise, prepend...
11651 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11652 cp $export_symbols $output_objdir/$soname.def;
11654 echo EXPORTS > $output_objdir/$soname.def;
11655 cat $export_symbols >> $output_objdir/$soname.def;
11657 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11662 darwin* | rhapsody*)
11664 rhapsody* | darwin1.[012])
11665 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11668 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11669 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11671 case ${MACOSX_DEPLOYMENT_TARGET} in
11673 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11676 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11682 archive_cmds_need_lc_CXX=no
11683 hardcode_direct_CXX=no
11684 hardcode_automatic_CXX=yes
11685 hardcode_shlibpath_var_CXX=unsupported
11686 whole_archive_flag_spec_CXX=''
11687 link_all_deplibs_CXX=yes
11689 if test "$GXX" = yes ; then
11690 lt_int_apple_cc_single_mod=no
11691 output_verbose_link_cmd='echo'
11692 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11693 lt_int_apple_cc_single_mod=yes
11695 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11696 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11698 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11700 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11701 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11702 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11703 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11705 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11707 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11709 case $cc_basename in
11711 output_verbose_link_cmd='echo'
11712 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11713 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11714 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11715 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11716 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11726 case $cc_basename in
11728 # FIXME: insert proper C++ library support
11732 # Green Hills C++ Compiler
11733 # FIXME: insert proper C++ library support
11737 # FIXME: insert proper C++ library support
11743 # C++ shared libraries reported to be fairly broken before switch to ELF
11747 archive_cmds_need_lc_CXX=no
11749 freebsd* | kfreebsd*-gnu | dragonfly*)
11750 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11757 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11758 hardcode_libdir_separator_CXX=:
11759 export_dynamic_flag_spec_CXX='${wl}-E'
11760 hardcode_direct_CXX=yes
11761 hardcode_minus_L_CXX=yes # Not in the search PATH,
11762 # but as the default
11763 # location of the library.
11765 case $cc_basename in
11767 # FIXME: insert proper C++ library support
11771 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11772 # Commands to make compiler produce verbose output that lists
11773 # what "hidden" libraries, object files and flags are used when
11774 # linking a shared library.
11776 # There doesn't appear to be a way to prevent this compiler from
11777 # explicitly linking system object files so we need to strip them
11778 # from the output so that they don't get included in the library
11780 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11783 if test "$GXX" = yes; then
11784 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11786 # FIXME: insert proper C++ library support
11793 if test $with_gnu_ld = no; then
11794 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11795 hardcode_libdir_separator_CXX=:
11799 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11802 export_dynamic_flag_spec_CXX='${wl}-E'
11808 hardcode_direct_CXX=no
11809 hardcode_shlibpath_var_CXX=no
11812 hardcode_direct_CXX=yes
11813 hardcode_minus_L_CXX=yes # Not in the search PATH,
11814 # but as the default
11815 # location of the library.
11819 case $cc_basename in
11821 # FIXME: insert proper C++ library support
11827 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11830 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11833 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11836 # Commands to make compiler produce verbose output that lists
11837 # what "hidden" libraries, object files and flags are used when
11838 # linking a shared library.
11840 # There doesn't appear to be a way to prevent this compiler from
11841 # explicitly linking system object files so we need to strip them
11842 # from the output so that they don't get included in the library
11844 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11847 if test "$GXX" = yes; then
11848 if test $with_gnu_ld = no; then
11851 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11854 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11857 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11862 # FIXME: insert proper C++ library support
11869 hardcode_direct_CXX=no
11870 hardcode_shlibpath_var_CXX=no
11871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11872 export_dynamic_flag_spec_CXX='${wl}-E'
11873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11874 # Instead, shared libraries are loaded at an image base (0x10000000 by
11875 # default) and relocated if they conflict, which is a slow very memory
11876 # consuming and fragmenting process. To avoid this, we pick a random,
11877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11879 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11880 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11883 case $cc_basename in
11886 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11888 # Archives containing C++ object files must be created using
11889 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11890 # necessary to make sure instantiated templates are included
11892 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11895 if test "$GXX" = yes; then
11896 if test "$with_gnu_ld" = no; then
11897 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
11899 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11902 link_all_deplibs_CXX=yes
11905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11906 hardcode_libdir_separator_CXX=:
11909 case $cc_basename in
11911 # Kuck and Associates, Inc. (KAI) C++ Compiler
11913 # KCC will only create a shared library if the output file
11914 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11915 # to its proper name (with version) after linking.
11916 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11917 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11918 # Commands to make compiler produce verbose output that lists
11919 # what "hidden" libraries, object files and flags are used when
11920 # linking a shared library.
11922 # There doesn't appear to be a way to prevent this compiler from
11923 # explicitly linking system object files so we need to strip them
11924 # from the output so that they don't get included in the library
11926 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11928 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11929 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11931 # Archives containing C++ object files must be created using
11932 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11933 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11938 # version 8.0 and above of icpc choke on multiply defined symbols
11939 # if we add $predep_objects and $postdep_objects, however 7.1 and
11940 # earlier do not add the objects themselves.
11941 case `$CC -V 2>&1` in
11943 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11944 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11946 *) # Version 8.0 or newer
11949 ia64*) tmp_idyn=' -i_dynamic';;
11951 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11952 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11955 archive_cmds_need_lc_CXX=no
11956 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11957 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11958 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11961 # Portland Group C++ compiler
11962 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11963 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11965 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11966 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11967 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11972 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11974 runpath_var=LD_RUN_PATH
11975 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11976 hardcode_libdir_separator_CXX=:
11978 # Commands to make compiler produce verbose output that lists
11979 # what "hidden" libraries, object files and flags are used when
11980 # linking a shared library.
11982 # There doesn't appear to be a way to prevent this compiler from
11983 # explicitly linking system object files so we need to strip them
11984 # from the output so that they don't get included in the library
11986 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11991 # FIXME: insert proper C++ library support
11995 # FIXME: insert proper C++ library support
11999 case $cc_basename in
12001 # FIXME: insert proper C++ library support
12005 # FIXME: insert proper C++ library support
12011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12012 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12014 hardcode_libdir_flag_spec_CXX='-R$libdir'
12015 hardcode_direct_CXX=yes
12016 hardcode_shlibpath_var_CXX=no
12018 # Workaround some broken pre-1.5 toolchains
12019 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12022 # C++ shared libraries are fairly broken
12026 hardcode_direct_CXX=yes
12027 hardcode_shlibpath_var_CXX=no
12028 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12029 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12031 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12032 export_dynamic_flag_spec_CXX='${wl}-E'
12033 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12035 output_verbose_link_cmd='echo'
12038 case $cc_basename in
12040 # Kuck and Associates, Inc. (KAI) C++ Compiler
12042 # KCC will only create a shared library if the output file
12043 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12044 # to its proper name (with version) after linking.
12045 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12048 hardcode_libdir_separator_CXX=:
12050 # Archives containing C++ object files must be created using
12051 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12052 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12056 # Rational C++ 2.4.1
12057 # FIXME: insert proper C++ library support
12061 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12062 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12064 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12065 hardcode_libdir_separator_CXX=:
12067 # Commands to make compiler produce verbose output that lists
12068 # what "hidden" libraries, object files and flags are used when
12069 # linking a shared library.
12071 # There doesn't appear to be a way to prevent this compiler from
12072 # explicitly linking system object files so we need to strip them
12073 # from the output so that they don't get included in the library
12075 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12078 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12080 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12083 hardcode_libdir_separator_CXX=:
12085 # Commands to make compiler produce verbose output that lists
12086 # what "hidden" libraries, object files and flags are used when
12087 # linking a shared library.
12088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12091 # FIXME: insert proper C++ library support
12098 case $cc_basename in
12100 # Kuck and Associates, Inc. (KAI) C++ Compiler
12102 # KCC will only create a shared library if the output file
12103 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12104 # to its proper name (with version) after linking.
12105 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12107 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12108 hardcode_libdir_separator_CXX=:
12110 # Archives containing C++ object files must be created using
12111 # the KAI C++ compiler.
12112 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12115 # Rational C++ 2.4.1
12116 # FIXME: insert proper C++ library support
12120 allow_undefined_flag_CXX=' -expect_unresolved \*'
12121 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12122 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12123 echo "-hidden">> $lib.exp~
12124 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12127 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12128 hardcode_libdir_separator_CXX=:
12130 # Commands to make compiler produce verbose output that lists
12131 # what "hidden" libraries, object files and flags are used when
12132 # linking a shared library.
12134 # There doesn't appear to be a way to prevent this compiler from
12135 # explicitly linking system object files so we need to strip them
12136 # from the output so that they don't get included in the library
12138 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12141 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12142 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12143 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12145 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12146 hardcode_libdir_separator_CXX=:
12148 # Commands to make compiler produce verbose output that lists
12149 # what "hidden" libraries, object files and flags are used when
12150 # linking a shared library.
12151 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12154 # FIXME: insert proper C++ library support
12161 # FIXME: insert proper C++ library support
12165 case $cc_basename in
12168 # FIXME: insert proper C++ library support
12173 # FIXME: insert proper C++ library support
12177 # FIXME: insert proper C++ library support
12183 case $cc_basename in
12185 # Sun C++ 4.2, 5.x and Centerline C++
12186 archive_cmds_need_lc_CXX=yes
12187 no_undefined_flag_CXX=' -zdefs'
12188 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12189 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12190 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12192 hardcode_libdir_flag_spec_CXX='-R$libdir'
12193 hardcode_shlibpath_var_CXX=no
12195 solaris2.[0-5] | solaris2.[0-5].*) ;;
12197 # The C++ compiler is used as linker so we must use $wl
12198 # flag to pass the commands to the underlying system
12199 # linker. We must also pass each convience library through
12200 # to the system linker between allextract/defaultextract.
12201 # The C++ compiler will combine linker options so we
12202 # cannot just pass the convience library names through
12204 # Supported since Solaris 2.6 (maybe 2.5.1?)
12205 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12208 link_all_deplibs_CXX=yes
12210 output_verbose_link_cmd='echo'
12212 # Archives containing C++ object files must be created using
12213 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12214 # necessary to make sure instantiated templates are included
12216 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12219 # Green Hills C++ Compiler
12220 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12222 # The C++ compiler must be used to create the archive.
12223 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12226 # GNU C++ compiler with Solaris linker
12227 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12228 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12229 if $CC --version | grep -v '^2\.7' > /dev/null; then
12230 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12231 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12232 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12234 # Commands to make compiler produce verbose output that lists
12235 # what "hidden" libraries, object files and flags are used when
12236 # linking a shared library.
12237 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12239 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12241 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12242 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12243 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12245 # Commands to make compiler produce verbose output that lists
12246 # what "hidden" libraries, object files and flags are used when
12247 # linking a shared library.
12248 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12251 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12256 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12257 no_undefined_flag_CXX='${wl}-z,text'
12258 archive_cmds_need_lc_CXX=no
12259 hardcode_shlibpath_var_CXX=no
12260 runpath_var='LD_RUN_PATH'
12262 case $cc_basename in
12264 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12265 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12268 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12269 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12273 sysv5* | sco3.2v5* | sco5v6*)
12274 # Note: We can NOT use -z defs as we might desire, because we do not
12275 # link with -lc, and that would cause any symbols used from libc to
12276 # always be unresolved, which means just about no library would
12277 # ever link correctly. If we're not using GNU ld we use -z text
12278 # though, which does catch some bad symbols but isn't as heavy-handed
12280 # For security reasons, it is highly recommended that you always
12281 # use absolute paths for naming shared libraries, and exclude the
12282 # DT_RUNPATH tag from executables and libraries. But doing so
12283 # requires that you compile everything twice, which is a pain.
12284 # So that behaviour is only enabled if SCOABSPATH is set to a
12285 # non-empty value in the environment. Most likely only useful for
12286 # creating official distributions of packages.
12287 # This is a hack until libtool officially supports absolute path
12288 # names for shared libraries.
12289 no_undefined_flag_CXX='${wl}-z,text'
12290 allow_undefined_flag_CXX='${wl}-z,nodefs'
12291 archive_cmds_need_lc_CXX=no
12292 hardcode_shlibpath_var_CXX=no
12293 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12294 hardcode_libdir_separator_CXX=':'
12295 link_all_deplibs_CXX=yes
12296 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12297 runpath_var='LD_RUN_PATH'
12299 case $cc_basename in
12301 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12302 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12305 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12306 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12311 case $cc_basename in
12313 # NonStop-UX NCC 3.20
12314 # FIXME: insert proper C++ library support
12318 # FIXME: insert proper C++ library support
12324 # FIXME: insert proper C++ library support
12328 # FIXME: insert proper C++ library support
12332 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12333 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12334 test "$ld_shlibs_CXX" = no && can_build_shared=no
12340 cat > conftest.$ac_ext <<EOF
12344 Foo (void) { a = 0; }
12350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12351 (eval $ac_compile) 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; then
12355 # Parse the compiler output and extract the necessary
12356 # objects, libraries and library flags.
12358 # Sentinel used to keep track of whether or not we are before
12359 # the conftest object file.
12360 pre_test_object_deps_done=no
12362 # The `*' in the case matches for architectures that use `case' in
12363 # $output_verbose_cmd can trigger glob expansion during the loop
12364 # eval without this substitution.
12365 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12367 for p in `eval $output_verbose_link_cmd`; do
12371 # Some compilers place space between "-{L,R}" and the path.
12372 # Remove the space.
12373 if test $p = "-L" \
12374 || test $p = "-R"; then
12381 if test "$pre_test_object_deps_done" = no; then
12384 # Internal compiler library paths should come after those
12385 # provided the user. The postdeps already come after the
12386 # user supplied libs so there is no need to process them.
12387 if test -z "$compiler_lib_search_path_CXX"; then
12388 compiler_lib_search_path_CXX="${prev}${p}"
12390 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12393 # The "-l" case would never come before the object being
12394 # linked, so don't bother handling this case.
12397 if test -z "$postdeps_CXX"; then
12398 postdeps_CXX="${prev}${p}"
12400 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12406 # This assumes that the test object file only shows up
12407 # once in the compiler output.
12408 if test "$p" = "conftest.$objext"; then
12409 pre_test_object_deps_done=yes
12413 if test "$pre_test_object_deps_done" = no; then
12414 if test -z "$predep_objects_CXX"; then
12415 predep_objects_CXX="$p"
12417 predep_objects_CXX="$predep_objects_CXX $p"
12420 if test -z "$postdep_objects_CXX"; then
12421 postdep_objects_CXX="$p"
12423 postdep_objects_CXX="$postdep_objects_CXX $p"
12428 *) ;; # Ignore the rest.
12436 echo "libtool.m4: error: problem compiling CXX test program"
12439 $rm -f confest.$objext
12441 # PORTME: override above test on systems where it is broken
12444 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12445 # hack all around it, let's just trust "g++" to DTRT.
12446 predep_objects_CXX=
12447 postdep_objects_CXX=
12452 case $cc_basename in
12454 # Adding this requires a known-good setup of shared libraries for
12455 # Sun compiler versions before 5.6, else PIC objects from an old
12456 # archive will be linked into the output, leading to subtle bugs.
12457 postdeps_CXX='-lCstd -lCrun'
12464 case " $postdeps_CXX " in
12465 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12468 lt_prog_compiler_wl_CXX=
12469 lt_prog_compiler_pic_CXX=
12470 lt_prog_compiler_static_CXX=
12472 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12473 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12475 # C++ specific cases for pic, static, wl, etc.
12476 if test "$GXX" = yes; then
12477 lt_prog_compiler_wl_CXX='-Wl,'
12478 lt_prog_compiler_static_CXX='-static'
12482 # All AIX code is PIC.
12483 if test "$host_cpu" = ia64; then
12484 # AIX 5 now supports IA64 processor
12485 lt_prog_compiler_static_CXX='-Bstatic'
12489 # FIXME: we need at least 68020 code to build shared libraries, but
12490 # adding the `-m68020' flag to GCC prevents building anything better,
12492 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12494 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12495 # PIC is the default for these OSes.
12497 mingw* | os2* | pw32*)
12498 # This hack is so that the source file can tell whether it is being
12499 # built for inclusion in a dll (and should export symbols for example).
12500 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12502 darwin* | rhapsody*)
12503 # PIC is the default on this platform
12504 # Common symbols not allowed in MH_DYLIB files
12505 lt_prog_compiler_pic_CXX='-fno-common'
12508 # DJGPP does not support shared libraries at all
12509 lt_prog_compiler_pic_CXX=
12512 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12513 # Instead, we relocate shared libraries at runtime.
12516 if test -d /usr/nec; then
12517 lt_prog_compiler_pic_CXX=-Kconform_pic
12521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12522 # not for PA HP-UX.
12527 lt_prog_compiler_pic_CXX='-fPIC'
12532 lt_prog_compiler_pic_CXX='-fPIC'
12538 # All AIX code is PIC.
12539 if test "$host_cpu" = ia64; then
12540 # AIX 5 now supports IA64 processor
12541 lt_prog_compiler_static_CXX='-Bstatic'
12543 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12547 case $cc_basename in
12549 # Green Hills C++ Compiler
12550 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12555 # PIC is the default on this platform
12556 # Common symbols not allowed in MH_DYLIB files
12557 case $cc_basename in
12559 lt_prog_compiler_pic_CXX='-qnocommon'
12560 lt_prog_compiler_wl_CXX='-Wl,'
12565 case $cc_basename in
12567 lt_prog_compiler_pic_CXX='-KPIC'
12570 # Green Hills C++ Compiler
12571 lt_prog_compiler_pic_CXX='-pic'
12577 freebsd* | kfreebsd*-gnu | dragonfly*)
12578 # FreeBSD uses GNU C++
12580 hpux9* | hpux10* | hpux11*)
12581 case $cc_basename in
12583 lt_prog_compiler_wl_CXX='-Wl,'
12584 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12585 if test "$host_cpu" != ia64; then
12586 lt_prog_compiler_pic_CXX='+Z'
12590 lt_prog_compiler_wl_CXX='-Wl,'
12591 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12597 lt_prog_compiler_pic_CXX='+Z'
12606 # This is c89, which is MS Visual C++ (no shared libs)
12607 # Anyone wants to do a port?
12609 irix5* | irix6* | nonstopux*)
12610 case $cc_basename in
12612 lt_prog_compiler_wl_CXX='-Wl,'
12613 lt_prog_compiler_static_CXX='-non_shared'
12614 # CC pic flag -KPIC is the default.
12621 case $cc_basename in
12624 lt_prog_compiler_wl_CXX='--backend -Wl,'
12625 lt_prog_compiler_pic_CXX='-fPIC'
12629 lt_prog_compiler_wl_CXX='-Wl,'
12630 lt_prog_compiler_pic_CXX='-KPIC'
12631 lt_prog_compiler_static_CXX='-static'
12634 # Portland Group C++ compiler.
12635 lt_prog_compiler_wl_CXX='-Wl,'
12636 lt_prog_compiler_pic_CXX='-fpic'
12637 lt_prog_compiler_static_CXX='-Bstatic'
12641 # Make sure the PIC flag is empty. It appears that all Alpha
12642 # Linux and Compaq Tru64 Unix objects are PIC.
12643 lt_prog_compiler_pic_CXX=
12644 lt_prog_compiler_static_CXX='-non_shared'
12655 case $cc_basename in
12657 lt_prog_compiler_pic_CXX='-W c,exportall'
12665 osf3* | osf4* | osf5*)
12666 case $cc_basename in
12668 lt_prog_compiler_wl_CXX='--backend -Wl,'
12671 # Rational C++ 2.4.1
12672 lt_prog_compiler_pic_CXX='-pic'
12675 # Digital/Compaq C++
12676 lt_prog_compiler_wl_CXX='-Wl,'
12677 # Make sure the PIC flag is empty. It appears that all Alpha
12678 # Linux and Compaq Tru64 Unix objects are PIC.
12679 lt_prog_compiler_pic_CXX=
12680 lt_prog_compiler_static_CXX='-non_shared'
12689 case $cc_basename in
12691 # Sun C++ 4.2, 5.x and Centerline C++
12692 lt_prog_compiler_pic_CXX='-KPIC'
12693 lt_prog_compiler_static_CXX='-Bstatic'
12694 lt_prog_compiler_wl_CXX='-Qoption ld '
12697 # Green Hills C++ Compiler
12698 lt_prog_compiler_pic_CXX='-PIC'
12705 case $cc_basename in
12708 lt_prog_compiler_pic_CXX='-pic'
12709 lt_prog_compiler_static_CXX='-Bstatic'
12713 lt_prog_compiler_pic_CXX='-pic'
12720 case $cc_basename in
12722 # NonStop-UX NCC 3.20
12723 lt_prog_compiler_pic_CXX='-KPIC'
12729 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12730 case $cc_basename in
12732 lt_prog_compiler_wl_CXX='-Wl,'
12733 lt_prog_compiler_pic_CXX='-KPIC'
12734 lt_prog_compiler_static_CXX='-Bstatic'
12741 lt_prog_compiler_can_build_shared_CXX=no
12746 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12747 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12750 # Check to make sure the PIC flag actually works.
12752 if test -n "$lt_prog_compiler_pic_CXX"; then
12754 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12755 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12756 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 lt_prog_compiler_pic_works_CXX=no
12760 ac_outfile=conftest.$ac_objext
12761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12762 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12763 # Insert the option either (1) after the last *FLAGS variable, or
12764 # (2) before a word containing "conftest.", or (3) at the end.
12765 # Note that $ac_compile itself does not contain backslashes and begins
12766 # with a dollar sign (not a hyphen), so the echo should work correctly.
12767 # The option is referenced via a variable to avoid confusing sed.
12768 lt_compile=`echo "$ac_compile" | $SED \
12769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12771 -e 's:$: $lt_compiler_flag:'`
12772 (eval echo "\"\$as_me:12772: $lt_compile\"" >&5)
12773 (eval "$lt_compile" 2>conftest.err)
12775 cat conftest.err >&5
12776 echo "$as_me:12776: \$? = $ac_status" >&5
12777 if (exit $ac_status) && test -s "$ac_outfile"; then
12778 # The compiler can only warn and ignore the option if not recognized
12779 # So say no if there are warnings other than the usual output.
12780 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12783 lt_prog_compiler_pic_works_CXX=yes
12789 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12790 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12792 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12793 case $lt_prog_compiler_pic_CXX in
12795 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12798 lt_prog_compiler_pic_CXX=
12799 lt_prog_compiler_can_build_shared_CXX=no
12804 # For platforms which do not support PIC, -DPIC is meaningless:
12806 lt_prog_compiler_pic_CXX=
12809 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12814 # Check to make sure the static flag actually works.
12816 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12817 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12818 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12819 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 lt_prog_compiler_static_works_CXX=no
12823 save_LDFLAGS="$LDFLAGS"
12824 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12825 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12826 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12827 # The linker can only warn and ignore the option if not recognized
12828 # So say no if there are warnings
12829 if test -s conftest.err; then
12830 # Append any errors to the config.log.
12831 cat conftest.err 1>&5
12832 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12834 if diff conftest.exp conftest.er2 >/dev/null; then
12835 lt_prog_compiler_static_works_CXX=yes
12838 lt_prog_compiler_static_works_CXX=yes
12842 LDFLAGS="$save_LDFLAGS"
12845 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12846 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12848 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12851 lt_prog_compiler_static_CXX=
12855 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12856 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12857 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 lt_cv_prog_compiler_c_o_CXX=no
12861 $rm -r conftest 2>/dev/null
12865 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12867 lt_compiler_flag="-o out/conftest2.$ac_objext"
12868 # Insert the option either (1) after the last *FLAGS variable, or
12869 # (2) before a word containing "conftest.", or (3) at the end.
12870 # Note that $ac_compile itself does not contain backslashes and begins
12871 # with a dollar sign (not a hyphen), so the echo should work correctly.
12872 lt_compile=`echo "$ac_compile" | $SED \
12873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12875 -e 's:$: $lt_compiler_flag:'`
12876 (eval echo "\"\$as_me:12876: $lt_compile\"" >&5)
12877 (eval "$lt_compile" 2>out/conftest.err)
12879 cat out/conftest.err >&5
12880 echo "$as_me:12880: \$? = $ac_status" >&5
12881 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12883 # The compiler can only warn and ignore the option if not recognized
12884 # So say no if there are warnings
12885 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12886 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12887 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12888 lt_cv_prog_compiler_c_o_CXX=yes
12893 # SGI C++ compiler will create directory out/ii_files/ for
12894 # template instantiation
12895 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12896 $rm out/* && rmdir out
12902 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12903 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12906 hard_links="nottested"
12907 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12908 # do not overwrite the value of need_locks provided by the user
12909 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12910 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12915 ln conftest.a conftest.b 2>&5 || hard_links=no
12916 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12917 { echo "$as_me:$LINENO: result: $hard_links" >&5
12918 echo "${ECHO_T}$hard_links" >&6; }
12919 if test "$hard_links" = no; then
12920 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12921 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12928 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12929 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12931 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12934 # If we're using GNU nm, then we don't want the "-C" option.
12935 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12936 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12937 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12939 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12943 export_symbols_cmds_CXX="$ltdll_cmds"
12946 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12949 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12953 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12954 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12955 test "$ld_shlibs_CXX" = no && can_build_shared=no
12958 # Do we need to explicitly link libc?
12960 case "x$archive_cmds_need_lc_CXX" in
12962 # Assume -lc should be added
12963 archive_cmds_need_lc_CXX=yes
12965 if test "$enable_shared" = yes && test "$GCC" = yes; then
12966 case $archive_cmds_CXX in
12968 # FIXME: we may have to deal with multi-command sequences.
12971 # Test whether the compiler implicitly links with -lc since on some
12972 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12973 # to ld, don't add -lc before -lgcc.
12974 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12975 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12977 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980 (eval $ac_compile) 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } 2>conftest.err; then
12986 libobjs=conftest.$ac_objext
12988 wl=$lt_prog_compiler_wl_CXX
12989 pic_flag=$lt_prog_compiler_pic_CXX
12995 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12996 allow_undefined_flag_CXX=
12997 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12998 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }
13003 archive_cmds_need_lc_CXX=no
13005 archive_cmds_need_lc_CXX=yes
13007 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13009 cat conftest.err 1>&5
13012 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13013 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13020 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13021 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13022 library_names_spec=
13023 libname_spec='lib$name'
13027 postuninstall_cmds=
13031 shlibpath_overrides_runpath=unknown
13033 dynamic_linker="$host_os ld.so"
13034 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13035 if test "$GCC" = yes; then
13036 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13037 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13038 # if the path contains ";" then we assume it to be the separator
13039 # otherwise default to the standard path separator (i.e. ":") - it is
13040 # assumed that no part of a normal pathname contains ";" but that should
13041 # okay in the real world where ";" in dirpaths is itself problematic.
13042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13047 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13049 need_lib_prefix=unknown
13050 hardcode_into_libs=no
13052 # when you set need_version to no, make sure it does not cause -set_version
13053 # flags to be left without arguments
13054 need_version=unknown
13059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13060 shlibpath_var=LIBPATH
13062 # AIX 3 has no versioning support, so we append a major version to the name.
13063 soname_spec='${libname}${release}${shared_ext}$major'
13070 hardcode_into_libs=yes
13071 if test "$host_cpu" = ia64; then
13072 # AIX 5 supports IA64
13073 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13074 shlibpath_var=LD_LIBRARY_PATH
13076 # With GCC up to 2.95.x, collect2 would create an import file
13077 # for dependence libraries. The import file would start with
13078 # the line `#! .'. This would cause the generated library to
13079 # depend on `.', always an invalid library. This was fixed in
13080 # development snapshots of GCC prior to 3.0.
13082 aix4 | aix4.[01] | aix4.[01].*)
13083 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13085 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13088 can_build_shared=no
13092 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13093 # soname into executable. Probably we can add versioning support to
13094 # collect2, so additional links can be useful in future.
13095 if test "$aix_use_runtimelinking" = yes; then
13096 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13097 # instead of lib<name>.a to let people know that these are not
13098 # typical AIX shared libraries.
13099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13101 # We preserve .a as extension for shared libraries through AIX4.2
13102 # and later when we are not doing run time linking.
13103 library_names_spec='${libname}${release}.a $libname.a'
13104 soname_spec='${libname}${release}${shared_ext}$major'
13106 shlibpath_var=LIBPATH
13111 library_names_spec='$libname.ixlibrary $libname.a'
13112 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13113 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'
13117 library_names_spec='${libname}${shared_ext}'
13118 dynamic_linker="$host_os ld.so"
13119 shlibpath_var=LIBRARY_PATH
13125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13126 soname_spec='${libname}${release}${shared_ext}$major'
13127 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13128 shlibpath_var=LD_LIBRARY_PATH
13129 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13130 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13131 # the default ld.so.conf also contains /usr/contrib/lib and
13132 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13133 # libtool to hard-code these into programs
13136 cygwin* | mingw* | pw32*)
13137 version_type=windows
13142 case $GCC,$host_os in
13143 yes,cygwin* | yes,mingw* | yes,pw32*)
13144 library_names_spec='$libname.dll.a'
13145 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13146 postinstall_cmds='base_file=`basename \${file}`~
13147 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13148 dldir=$destdir/`dirname \$dlpath`~
13149 test -d \$dldir || mkdir -p \$dldir~
13150 $install_prog $dir/$dlname \$dldir/$dlname~
13151 chmod a+x \$dldir/$dlname'
13152 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13153 dlpath=$dir/\$dldll~
13155 shlibpath_overrides_runpath=yes
13159 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13160 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13161 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13164 # MinGW DLLs use traditional 'lib' prefix
13165 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13166 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13167 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13168 # It is most probably a Windows format PATH printed by
13169 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13170 # path with ; separators, and with drive letters. We can handle the
13171 # drive letters (cygwin fileutils understands them), so leave them,
13172 # especially as we might pass files found there to a mingw objdump,
13173 # which wouldn't understand a cygwinified path. Ahh.
13174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13180 # pw32 DLLs use 'pw' prefix rather than 'lib'
13181 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13187 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13190 dynamic_linker='Win32 ld.exe'
13191 # FIXME: first we should search . and the directory the executable is in
13195 darwin* | rhapsody*)
13196 dynamic_linker="$host_os dyld"
13197 version_type=darwin
13200 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13201 soname_spec='${libname}${release}${major}$shared_ext'
13202 shlibpath_overrides_runpath=yes
13203 shlibpath_var=DYLD_LIBRARY_PATH
13204 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13205 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13206 if test "$GCC" = yes; then
13207 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13209 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13219 soname_spec='${libname}${release}${shared_ext}$major'
13220 shlibpath_var=LD_LIBRARY_PATH
13231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13232 soname_spec='${libname}${release}${shared_ext}$major'
13233 shlibpath_var=LD_LIBRARY_PATH
13234 shlibpath_overrides_runpath=no
13235 hardcode_into_libs=yes
13236 dynamic_linker='GNU ld.so'
13239 freebsd* | dragonfly*)
13240 # DragonFly does not have aout. When/if they implement a new
13241 # versioning mechanism, adjust this.
13242 if test -x /usr/bin/objformat; then
13243 objformat=`/usr/bin/objformat`
13246 freebsd[123]*) objformat=aout ;;
13247 *) objformat=elf ;;
13250 version_type=freebsd-$objformat
13251 case $version_type in
13253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13258 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13262 shlibpath_var=LD_LIBRARY_PATH
13265 shlibpath_overrides_runpath=yes
13267 freebsd3.[01]* | freebsdelf3.[01]*)
13268 shlibpath_overrides_runpath=yes
13269 hardcode_into_libs=yes
13271 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13272 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13273 shlibpath_overrides_runpath=no
13274 hardcode_into_libs=yes
13276 freebsd*) # from 4.6 on
13277 shlibpath_overrides_runpath=yes
13278 hardcode_into_libs=yes
13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13288 soname_spec='${libname}${release}${shared_ext}$major'
13289 shlibpath_var=LD_LIBRARY_PATH
13290 hardcode_into_libs=yes
13293 hpux9* | hpux10* | hpux11*)
13294 # Give a soname corresponding to the major version so that dld.sl refuses to
13295 # link against other versions.
13302 hardcode_into_libs=yes
13303 dynamic_linker="$host_os dld.so"
13304 shlibpath_var=LD_LIBRARY_PATH
13305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13307 soname_spec='${libname}${release}${shared_ext}$major'
13308 if test "X$HPUX_IA64_MODE" = X32; then
13309 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13311 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13317 hardcode_into_libs=yes
13318 dynamic_linker="$host_os dld.sl"
13319 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13322 soname_spec='${libname}${release}${shared_ext}$major'
13323 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13328 dynamic_linker="$host_os dld.sl"
13329 shlibpath_var=SHLIB_PATH
13330 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13332 soname_spec='${libname}${release}${shared_ext}$major'
13335 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13336 postinstall_cmds='chmod 555 $lib'
13343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13344 soname_spec='${libname}${release}${shared_ext}$major'
13345 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13346 shlibpath_var=LD_LIBRARY_PATH
13347 shlibpath_overrides_runpath=no
13348 hardcode_into_libs=yes
13351 irix5* | irix6* | nonstopux*)
13353 nonstopux*) version_type=nonstopux ;;
13355 if test "$lt_cv_prog_gnu_ld" = yes; then
13363 soname_spec='${libname}${release}${shared_ext}$major'
13364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13366 irix5* | nonstopux*)
13367 libsuff= shlibsuff=
13370 case $LD in # libtool.m4 will add one of these switches to LD
13371 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13372 libsuff= shlibsuff= libmagic=32-bit;;
13373 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13374 libsuff=32 shlibsuff=N32 libmagic=N32;;
13375 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13376 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13377 *) libsuff= shlibsuff= libmagic=never-match;;
13381 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13382 shlibpath_overrides_runpath=no
13383 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13384 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13385 hardcode_into_libs=yes
13388 # No shared lib support for Linux oldld, aout, or coff.
13389 linux*oldld* | linux*aout* | linux*coff*)
13393 # This must be Linux ELF.
13398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13399 soname_spec='${libname}${release}${shared_ext}$major'
13400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13401 shlibpath_var=LD_LIBRARY_PATH
13402 shlibpath_overrides_runpath=no
13403 # This implies no fast_install, which is unacceptable.
13404 # Some rework will be needed to allow for fast_install
13405 # before this can be enabled.
13406 hardcode_into_libs=yes
13408 # find out which ABI we are using
13410 case "$host_cpu" in
13411 x86_64*|s390x*|powerpc64*)
13412 echo '#line 13412 "configure"' > conftest.$ac_ext
13413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13414 (eval $ac_compile) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; then
13418 case `/usr/bin/file conftest.$ac_objext` in
13421 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13429 # Append ld.so.conf contents to the search path
13430 if test -f /etc/ld.so.conf; then
13431 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13432 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13435 # We used to test for /lib/ld.so.1 and disable shared libraries on
13436 # powerpc, because MkLinux only supported shared libraries with the
13437 # GNU dynamic linker. Since this was broken with cross compilers,
13438 # most powerpc-linux boxes support dynamic linking these days and
13439 # people can always --disable-shared, the test was removed, and we
13440 # assume the GNU/Linux dynamic linker is in use.
13441 dynamic_linker='GNU/Linux ld.so'
13448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13449 soname_spec='${libname}${release}${shared_ext}$major'
13450 shlibpath_var=LD_LIBRARY_PATH
13451 shlibpath_overrides_runpath=no
13452 hardcode_into_libs=yes
13453 dynamic_linker='GNU ld.so'
13460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13463 dynamic_linker='NetBSD (a.out) ld.so'
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13466 soname_spec='${libname}${release}${shared_ext}$major'
13467 dynamic_linker='NetBSD ld.elf_so'
13469 shlibpath_var=LD_LIBRARY_PATH
13470 shlibpath_overrides_runpath=yes
13471 hardcode_into_libs=yes
13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477 shlibpath_var=LD_LIBRARY_PATH
13478 shlibpath_overrides_runpath=yes
13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13486 soname_spec='${libname}${release}${shared_ext}$major'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 shlibpath_overrides_runpath=yes
13493 sys_lib_dlsearch_path_spec="/usr/lib"
13495 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13497 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13498 *) need_version=no ;;
13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13502 shlibpath_var=LD_LIBRARY_PATH
13503 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13505 openbsd2.[89] | openbsd2.[89].*)
13506 shlibpath_overrides_runpath=no
13509 shlibpath_overrides_runpath=yes
13513 shlibpath_overrides_runpath=yes
13518 libname_spec='$name'
13521 library_names_spec='$libname${shared_ext} $libname.a'
13522 dynamic_linker='OS/2 ld.exe'
13523 shlibpath_var=LIBPATH
13526 osf3* | osf4* | osf5*)
13530 soname_spec='${libname}${release}${shared_ext}$major'
13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13532 shlibpath_var=LD_LIBRARY_PATH
13533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13534 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13542 soname_spec='${libname}${release}${shared_ext}$major'
13543 shlibpath_var=LD_LIBRARY_PATH
13544 shlibpath_overrides_runpath=yes
13545 hardcode_into_libs=yes
13546 # ldd complains unless libraries are executable
13547 postinstall_cmds='chmod +x $lib'
13552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13553 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13554 shlibpath_var=LD_LIBRARY_PATH
13555 shlibpath_overrides_runpath=yes
13556 if test "$with_gnu_ld" = yes; then
13564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13565 soname_spec='${libname}${release}${shared_ext}$major'
13566 shlibpath_var=LD_LIBRARY_PATH
13567 case $host_vendor in
13569 shlibpath_overrides_runpath=no
13571 export_dynamic_flag_spec='${wl}-Blargedynsym'
13572 runpath_var=LD_RUN_PATH
13580 shlibpath_overrides_runpath=no
13581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13587 if test -d /usr/nec ;then
13589 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13590 soname_spec='$libname${shared_ext}.$major'
13591 shlibpath_var=LD_LIBRARY_PATH
13595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13596 version_type=freebsd-elf
13599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13600 soname_spec='${libname}${release}${shared_ext}$major'
13601 shlibpath_var=LD_LIBRARY_PATH
13602 hardcode_into_libs=yes
13603 if test "$with_gnu_ld" = yes; then
13604 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13605 shlibpath_overrides_runpath=no
13607 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13608 shlibpath_overrides_runpath=yes
13611 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13615 sys_lib_dlsearch_path_spec='/usr/lib'
13620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13621 soname_spec='${libname}${release}${shared_ext}$major'
13622 shlibpath_var=LD_LIBRARY_PATH
13629 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13630 echo "${ECHO_T}$dynamic_linker" >&6; }
13631 test "$dynamic_linker" = no && can_build_shared=no
13633 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13634 if test "$GCC" = yes; then
13635 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13638 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13639 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13640 hardcode_action_CXX=
13641 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13642 test -n "$runpath_var_CXX" || \
13643 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13645 # We can hardcode non-existant directories.
13646 if test "$hardcode_direct_CXX" != no &&
13647 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13648 # have to relink, otherwise we might link with an installed library
13649 # when we should be linking with a yet-to-be-installed one
13650 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13651 test "$hardcode_minus_L_CXX" != no; then
13652 # Linking always hardcodes the temporary library directory.
13653 hardcode_action_CXX=relink
13655 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13656 hardcode_action_CXX=immediate
13659 # We cannot hardcode anything, or else we can only hardcode existing
13661 hardcode_action_CXX=unsupported
13663 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13664 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13666 if test "$hardcode_action_CXX" = relink; then
13667 # Fast installation is not supported
13668 enable_fast_install=no
13669 elif test "$shlibpath_overrides_runpath" = yes ||
13670 test "$enable_shared" = no; then
13671 # Fast installation is not necessary
13672 enable_fast_install=needless
13676 # The else clause should only fire when bootstrapping the
13677 # libtool distribution, otherwise you forgot to ship ltmain.sh
13678 # with your package, and you will get complaints that there are
13679 # no rules to generate ltmain.sh.
13680 if test -f "$ltmain"; then
13681 # See if we are running on zsh, and set the options which allow our commands through
13682 # without removal of \ escapes.
13683 if test -n "${ZSH_VERSION+set}" ; then
13684 setopt NO_GLOB_SUBST
13686 # Now quote all the things that may contain metacharacters while being
13687 # careful not to overquote the AC_SUBSTed values. We take copies of the
13688 # variables and quote the copies for generation of the libtool script.
13689 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13691 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13692 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13693 deplibs_check_method reload_flag reload_cmds need_locks \
13694 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13695 lt_cv_sys_global_symbol_to_c_name_address \
13696 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13697 old_postinstall_cmds old_postuninstall_cmds \
13701 lt_prog_compiler_wl_CXX \
13702 lt_prog_compiler_pic_CXX \
13703 lt_prog_compiler_static_CXX \
13704 lt_prog_compiler_no_builtin_flag_CXX \
13705 export_dynamic_flag_spec_CXX \
13706 thread_safe_flag_spec_CXX \
13707 whole_archive_flag_spec_CXX \
13708 enable_shared_with_static_runtimes_CXX \
13709 old_archive_cmds_CXX \
13710 old_archive_from_new_cmds_CXX \
13711 predep_objects_CXX \
13712 postdep_objects_CXX \
13715 compiler_lib_search_path_CXX \
13717 archive_expsym_cmds_CXX \
13718 postinstall_cmds_CXX \
13719 postuninstall_cmds_CXX \
13720 old_archive_from_expsyms_cmds_CXX \
13721 allow_undefined_flag_CXX \
13722 no_undefined_flag_CXX \
13723 export_symbols_cmds_CXX \
13724 hardcode_libdir_flag_spec_CXX \
13725 hardcode_libdir_flag_spec_ld_CXX \
13726 hardcode_libdir_separator_CXX \
13727 hardcode_automatic_CXX \
13729 module_expsym_cmds_CXX \
13730 lt_cv_prog_compiler_c_o_CXX \
13731 exclude_expsyms_CXX \
13732 include_expsyms_CXX; do
13735 old_archive_cmds_CXX | \
13736 old_archive_from_new_cmds_CXX | \
13737 archive_cmds_CXX | \
13738 archive_expsym_cmds_CXX | \
13739 module_cmds_CXX | \
13740 module_expsym_cmds_CXX | \
13741 old_archive_from_expsyms_cmds_CXX | \
13742 export_symbols_cmds_CXX | \
13743 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13744 postinstall_cmds | postuninstall_cmds | \
13745 old_postinstall_cmds | old_postuninstall_cmds | \
13746 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13747 # Double-quote double-evaled strings.
13748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13757 *'\$0 --fallback-echo"')
13758 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13764 cat <<__EOF__ >> "$cfgfile"
13765 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13767 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13769 # Shell to use when invoking shell scripts.
13772 # Whether or not to build shared libraries.
13773 build_libtool_libs=$enable_shared
13775 # Whether or not to build static libraries.
13776 build_old_libs=$enable_static
13778 # Whether or not to add -lc for building shared libraries.
13779 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13781 # Whether or not to disallow shared libs when runtime libs are static
13782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13784 # Whether or not to optimize for fast installation.
13785 fast_install=$enable_fast_install
13788 host_alias=$host_alias
13792 # The build system.
13793 build_alias=$build_alias
13797 # An echo program that does not interpret backslashes.
13802 AR_FLAGS=$lt_AR_FLAGS
13807 # LTCC compiler flags.
13808 LTCFLAGS=$lt_LTCFLAGS
13810 # A language-specific compiler.
13811 CC=$lt_compiler_CXX
13813 # Is the compiler the GNU C compiler?
13816 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13817 gcc_ver=\`gcc -dumpversion\`
13822 # The linker used to build libraries.
13825 # Whether we need hard or soft links.
13828 # A BSD-compatible nm program.
13831 # A symbol stripping program
13834 # Used to examine libraries when file_magic_cmd begins "file"
13835 MAGIC_CMD=$MAGIC_CMD
13837 # Used on cygwin: DLL creation program.
13840 # Used on cygwin: object dumper.
13843 # Used on cygwin: assembler.
13846 # The name of the directory that contains temporary libtool files.
13849 # How to create reloadable object files.
13850 reload_flag=$lt_reload_flag
13851 reload_cmds=$lt_reload_cmds
13853 # How to pass a linker flag through the compiler.
13854 wl=$lt_lt_prog_compiler_wl_CXX
13856 # Object file suffix (normally "o").
13857 objext="$ac_objext"
13859 # Old archive suffix (normally "a").
13862 # Shared library suffix (normally ".so").
13863 shrext_cmds='$shrext_cmds'
13865 # Executable file suffix (normally "").
13868 # Additional compiler flags for building library objects.
13869 pic_flag=$lt_lt_prog_compiler_pic_CXX
13872 # What is the maximum length of a command?
13873 max_cmd_len=$lt_cv_sys_max_cmd_len
13875 # Does compiler simultaneously support -c and -o options?
13876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13878 # Must we lock files when doing compilation?
13879 need_locks=$lt_need_locks
13881 # Do we need the lib prefix for modules?
13882 need_lib_prefix=$need_lib_prefix
13884 # Do we need a version for libraries?
13885 need_version=$need_version
13887 # Whether dlopen is supported.
13888 dlopen_support=$enable_dlopen
13890 # Whether dlopen of programs is supported.
13891 dlopen_self=$enable_dlopen_self
13893 # Whether dlopen of statically linked programs is supported.
13894 dlopen_self_static=$enable_dlopen_self_static
13896 # Compiler flag to prevent dynamic linking.
13897 link_static_flag=$lt_lt_prog_compiler_static_CXX
13899 # Compiler flag to turn off builtin functions.
13900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13902 # Compiler flag to allow reflexive dlopens.
13903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13905 # Compiler flag to generate shared objects directly from archives.
13906 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13908 # Compiler flag to generate thread-safe objects.
13909 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13911 # Library versioning type.
13912 version_type=$version_type
13914 # Format of library name prefix.
13915 libname_spec=$lt_libname_spec
13917 # List of archive names. First name is the real one, the rest are links.
13918 # The last name is the one that the linker finds with -lNAME.
13919 library_names_spec=$lt_library_names_spec
13921 # The coded name of the library, if different from the real name.
13922 soname_spec=$lt_soname_spec
13924 # Commands used to build and install an old-style archive.
13926 old_archive_cmds=$lt_old_archive_cmds_CXX
13927 old_postinstall_cmds=$lt_old_postinstall_cmds
13928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13930 # Create an old-style archive from a shared archive.
13931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13933 # Create a temporary old-style archive to link instead of a shared archive.
13934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13936 # Commands used to build and install a shared archive.
13937 archive_cmds=$lt_archive_cmds_CXX
13938 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13939 postinstall_cmds=$lt_postinstall_cmds
13940 postuninstall_cmds=$lt_postuninstall_cmds
13942 # Commands used to build a loadable module (assumed same as above if empty)
13943 module_cmds=$lt_module_cmds_CXX
13944 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13946 # Commands to strip libraries.
13947 old_striplib=$lt_old_striplib
13948 striplib=$lt_striplib
13950 # Dependencies to place before the objects being linked to create a
13952 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13954 # Dependencies to place after the objects being linked to create a
13956 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13958 # Dependencies to place before the objects being linked to create a
13960 predeps=$lt_predeps_CXX
13962 # Dependencies to place after the objects being linked to create a
13964 postdeps=$lt_postdeps_CXX
13966 # The library search path used internally by the compiler when linking
13967 # a shared library.
13968 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13970 # Method to check whether dependent libraries are shared objects.
13971 deplibs_check_method=$lt_deplibs_check_method
13973 # Command to use when deplibs_check_method == file_magic.
13974 file_magic_cmd=$lt_file_magic_cmd
13976 # Flag that allows shared libraries with undefined symbols to be built.
13977 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13979 # Flag that forces no undefined symbols.
13980 no_undefined_flag=$lt_no_undefined_flag_CXX
13982 # Commands used to finish a libtool library installation in a directory.
13983 finish_cmds=$lt_finish_cmds
13985 # Same as above, but a single script fragment to be evaled but not shown.
13986 finish_eval=$lt_finish_eval
13988 # Take the output of nm and produce a listing of raw symbols and C names.
13989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13991 # Transform the output of nm in a proper C declaration
13992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13994 # Transform the output of nm in a C name address pair
13995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13997 # This is the shared library runtime path variable.
13998 runpath_var=$runpath_var
14000 # This is the shared library path variable.
14001 shlibpath_var=$shlibpath_var
14003 # Is shlibpath searched before the hard-coded library search path?
14004 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14006 # How to hardcode a shared library path into an executable.
14007 hardcode_action=$hardcode_action_CXX
14009 # Whether we should hardcode library paths into libraries.
14010 hardcode_into_libs=$hardcode_into_libs
14012 # Flag to hardcode \$libdir into a binary during linking.
14013 # This must work even if \$libdir does not exist.
14014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14016 # If ld is used when linking, flag to hardcode \$libdir into
14017 # a binary during linking. This must work even if \$libdir does
14019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14021 # Whether we need a single -rpath flag with a separated argument.
14022 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14024 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14025 # resulting binary.
14026 hardcode_direct=$hardcode_direct_CXX
14028 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14029 # resulting binary.
14030 hardcode_minus_L=$hardcode_minus_L_CXX
14032 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14033 # the resulting binary.
14034 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14036 # Set to yes if building a shared library automatically hardcodes DIR into the library
14037 # and all subsequent libraries and executables linked against it.
14038 hardcode_automatic=$hardcode_automatic_CXX
14040 # Variables whose values should be saved in libtool wrapper scripts and
14041 # restored at relink time.
14042 variables_saved_for_relink="$variables_saved_for_relink"
14044 # Whether libtool must link a program against all its dependency libraries.
14045 link_all_deplibs=$link_all_deplibs_CXX
14047 # Compile-time system search path for libraries
14048 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
14050 # Run-time system search path for libraries
14051 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14053 # Fix the shell variable \$srcfile for the compiler.
14054 fix_srcfile_path="$fix_srcfile_path_CXX"
14056 # Set to yes if exported symbols are required.
14057 always_export_symbols=$always_export_symbols_CXX
14059 # The commands to list exported symbols.
14060 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14062 # The commands to extract the exported symbol list from a shared archive.
14063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14065 # Symbols that should not be listed in the preloaded symbols.
14066 exclude_expsyms=$lt_exclude_expsyms_CXX
14068 # Symbols that must always be exported.
14069 include_expsyms=$lt_include_expsyms_CXX
14071 # ### END LIBTOOL TAG CONFIG: $tagname
14077 # If there is no Makefile yet, we rely on a make rule to execute
14078 # `config.status --recheck' to rerun these tests and create the
14079 # libtool script then.
14080 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14081 if test -f "$ltmain_in"; then
14082 test -f Makefile && make "$ltmain"
14088 ac_cpp='$CPP $CPPFLAGS'
14089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14097 with_gnu_ldcxx=$with_gnu_ld
14098 with_gnu_ld=$lt_save_with_gnu_ld
14099 lt_cv_path_LDCXX=$lt_cv_path_LD
14100 lt_cv_path_LD=$lt_save_path_LD
14101 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14102 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14110 if test -n "$F77" && test "X$F77" != "Xno"; then
14113 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14114 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14115 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14118 archive_cmds_need_lc_F77=no
14119 allow_undefined_flag_F77=
14120 always_export_symbols_F77=no
14121 archive_expsym_cmds_F77=
14122 export_dynamic_flag_spec_F77=
14123 hardcode_direct_F77=no
14124 hardcode_libdir_flag_spec_F77=
14125 hardcode_libdir_flag_spec_ld_F77=
14126 hardcode_libdir_separator_F77=
14127 hardcode_minus_L_F77=no
14128 hardcode_automatic_F77=no
14130 module_expsym_cmds_F77=
14131 link_all_deplibs_F77=unknown
14132 old_archive_cmds_F77=$old_archive_cmds
14133 no_undefined_flag_F77=
14134 whole_archive_flag_spec_F77=
14135 enable_shared_with_static_runtimes_F77=no
14137 # Source file extension for f77 test sources.
14140 # Object file extension for compiled f77 test sources.
14144 # Code to be used in simple compile tests
14145 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14147 # Code to be used in simple link tests
14148 lt_simple_link_test_code=" program t\n end\n"
14150 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14152 # If no C compiler was specified, use CC.
14155 # If no C compiler flags were specified, use CFLAGS.
14156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14158 # Allow CC to be a program name with arguments.
14162 # save warnings/boilerplate of simple test code
14163 ac_outfile=conftest.$ac_objext
14164 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14165 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14166 _lt_compiler_boilerplate=`cat conftest.err`
14169 ac_outfile=conftest.$ac_objext
14170 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14171 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14172 _lt_linker_boilerplate=`cat conftest.err`
14176 # Allow CC to be a program name with arguments.
14181 for cc_temp in $compiler""; do
14183 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14184 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14189 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14192 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14193 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14194 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14195 echo "${ECHO_T}$can_build_shared" >&6; }
14197 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14198 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14199 test "$can_build_shared" = "no" && enable_shared=no
14201 # On AIX, shared libraries and static libraries use the same namespace, and
14202 # are all built from PIC.
14205 test "$enable_shared" = yes && enable_static=no
14206 if test -n "$RANLIB"; then
14207 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14208 postinstall_cmds='$RANLIB $lib'
14212 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14213 test "$enable_shared" = yes && enable_static=no
14217 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14218 echo "${ECHO_T}$enable_shared" >&6; }
14220 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14221 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14222 # Make sure either enable_shared or enable_static is yes.
14223 test "$enable_shared" = yes || enable_static=yes
14224 { echo "$as_me:$LINENO: result: $enable_static" >&5
14225 echo "${ECHO_T}$enable_static" >&6; }
14230 lt_prog_compiler_wl_F77=
14231 lt_prog_compiler_pic_F77=
14232 lt_prog_compiler_static_F77=
14234 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14235 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14237 if test "$GCC" = yes; then
14238 lt_prog_compiler_wl_F77='-Wl,'
14239 lt_prog_compiler_static_F77='-static'
14243 # All AIX code is PIC.
14244 if test "$host_cpu" = ia64; then
14245 # AIX 5 now supports IA64 processor
14246 lt_prog_compiler_static_F77='-Bstatic'
14251 # FIXME: we need at least 68020 code to build shared libraries, but
14252 # adding the `-m68020' flag to GCC prevents building anything better,
14254 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14257 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14258 # PIC is the default for these OSes.
14261 mingw* | pw32* | os2*)
14262 # This hack is so that the source file can tell whether it is being
14263 # built for inclusion in a dll (and should export symbols for example).
14264 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14267 darwin* | rhapsody*)
14268 # PIC is the default on this platform
14269 # Common symbols not allowed in MH_DYLIB files
14270 lt_prog_compiler_pic_F77='-fno-common'
14274 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14275 # Instead, we relocate shared libraries at runtime.
14279 # Just because we use GCC doesn't mean we suddenly get shared libraries
14280 # on systems that don't support them.
14281 lt_prog_compiler_can_build_shared_F77=no
14286 if test -d /usr/nec; then
14287 lt_prog_compiler_pic_F77=-Kconform_pic
14292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14293 # not for PA HP-UX.
14299 lt_prog_compiler_pic_F77='-fPIC'
14305 lt_prog_compiler_pic_F77='-fPIC'
14309 # PORTME Check for flag to pass linker flags through the system compiler.
14312 lt_prog_compiler_wl_F77='-Wl,'
14313 if test "$host_cpu" = ia64; then
14314 # AIX 5 now supports IA64 processor
14315 lt_prog_compiler_static_F77='-Bstatic'
14317 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14321 # PIC is the default on this platform
14322 # Common symbols not allowed in MH_DYLIB files
14323 case $cc_basename in
14325 lt_prog_compiler_pic_F77='-qnocommon'
14326 lt_prog_compiler_wl_F77='-Wl,'
14331 mingw* | pw32* | os2*)
14332 # This hack is so that the source file can tell whether it is being
14333 # built for inclusion in a dll (and should export symbols for example).
14334 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14337 hpux9* | hpux10* | hpux11*)
14338 lt_prog_compiler_wl_F77='-Wl,'
14339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14340 # not for PA HP-UX.
14346 lt_prog_compiler_pic_F77='+Z'
14349 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14350 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14353 irix5* | irix6* | nonstopux*)
14354 lt_prog_compiler_wl_F77='-Wl,'
14355 # PIC (with -KPIC) is the default.
14356 lt_prog_compiler_static_F77='-non_shared'
14360 lt_prog_compiler_pic_F77='-KPIC'
14361 lt_prog_compiler_static_F77='-Bstatic'
14365 case $cc_basename in
14367 lt_prog_compiler_wl_F77='-Wl,'
14368 lt_prog_compiler_pic_F77='-KPIC'
14369 lt_prog_compiler_static_F77='-static'
14371 pgcc* | pgf77* | pgf90* | pgf95*)
14372 # Portland Group compilers (*not* the Pentium gcc compiler,
14373 # which looks to be a dead project)
14374 lt_prog_compiler_wl_F77='-Wl,'
14375 lt_prog_compiler_pic_F77='-fpic'
14376 lt_prog_compiler_static_F77='-Bstatic'
14379 lt_prog_compiler_wl_F77='-Wl,'
14380 # All Alpha code is PIC.
14381 lt_prog_compiler_static_F77='-non_shared'
14386 osf3* | osf4* | osf5*)
14387 lt_prog_compiler_wl_F77='-Wl,'
14388 # All OSF/1 code is PIC.
14389 lt_prog_compiler_static_F77='-non_shared'
14393 lt_prog_compiler_pic_F77='-KPIC'
14394 lt_prog_compiler_static_F77='-Bstatic'
14395 case $cc_basename in
14396 f77* | f90* | f95*)
14397 lt_prog_compiler_wl_F77='-Qoption ld ';;
14399 lt_prog_compiler_wl_F77='-Wl,';;
14404 lt_prog_compiler_wl_F77='-Qoption ld '
14405 lt_prog_compiler_pic_F77='-PIC'
14406 lt_prog_compiler_static_F77='-Bstatic'
14409 sysv4 | sysv4.2uw2* | sysv4.3*)
14410 lt_prog_compiler_wl_F77='-Wl,'
14411 lt_prog_compiler_pic_F77='-KPIC'
14412 lt_prog_compiler_static_F77='-Bstatic'
14416 if test -d /usr/nec ;then
14417 lt_prog_compiler_pic_F77='-Kconform_pic'
14418 lt_prog_compiler_static_F77='-Bstatic'
14422 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14423 lt_prog_compiler_wl_F77='-Wl,'
14424 lt_prog_compiler_pic_F77='-KPIC'
14425 lt_prog_compiler_static_F77='-Bstatic'
14429 lt_prog_compiler_wl_F77='-Wl,'
14430 lt_prog_compiler_can_build_shared_F77=no
14434 lt_prog_compiler_pic_F77='-pic'
14435 lt_prog_compiler_static_F77='-Bstatic'
14439 lt_prog_compiler_can_build_shared_F77=no
14444 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14445 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14448 # Check to make sure the PIC flag actually works.
14450 if test -n "$lt_prog_compiler_pic_F77"; then
14452 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14453 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14454 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 lt_prog_compiler_pic_works_F77=no
14458 ac_outfile=conftest.$ac_objext
14459 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14460 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14461 # Insert the option either (1) after the last *FLAGS variable, or
14462 # (2) before a word containing "conftest.", or (3) at the end.
14463 # Note that $ac_compile itself does not contain backslashes and begins
14464 # with a dollar sign (not a hyphen), so the echo should work correctly.
14465 # The option is referenced via a variable to avoid confusing sed.
14466 lt_compile=`echo "$ac_compile" | $SED \
14467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14469 -e 's:$: $lt_compiler_flag:'`
14470 (eval echo "\"\$as_me:14470: $lt_compile\"" >&5)
14471 (eval "$lt_compile" 2>conftest.err)
14473 cat conftest.err >&5
14474 echo "$as_me:14474: \$? = $ac_status" >&5
14475 if (exit $ac_status) && test -s "$ac_outfile"; then
14476 # The compiler can only warn and ignore the option if not recognized
14477 # So say no if there are warnings other than the usual output.
14478 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14480 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14481 lt_prog_compiler_pic_works_F77=yes
14487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14488 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14490 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14491 case $lt_prog_compiler_pic_F77 in
14493 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14496 lt_prog_compiler_pic_F77=
14497 lt_prog_compiler_can_build_shared_F77=no
14502 # For platforms which do not support PIC, -DPIC is meaningless:
14504 lt_prog_compiler_pic_F77=
14507 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14512 # Check to make sure the static flag actually works.
14514 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14515 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14516 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14517 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 lt_prog_compiler_static_works_F77=no
14521 save_LDFLAGS="$LDFLAGS"
14522 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14523 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14525 # The linker can only warn and ignore the option if not recognized
14526 # So say no if there are warnings
14527 if test -s conftest.err; then
14528 # Append any errors to the config.log.
14529 cat conftest.err 1>&5
14530 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14532 if diff conftest.exp conftest.er2 >/dev/null; then
14533 lt_prog_compiler_static_works_F77=yes
14536 lt_prog_compiler_static_works_F77=yes
14540 LDFLAGS="$save_LDFLAGS"
14543 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14544 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14546 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14549 lt_prog_compiler_static_F77=
14553 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14554 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14555 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 lt_cv_prog_compiler_c_o_F77=no
14559 $rm -r conftest 2>/dev/null
14563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14565 lt_compiler_flag="-o out/conftest2.$ac_objext"
14566 # Insert the option either (1) after the last *FLAGS variable, or
14567 # (2) before a word containing "conftest.", or (3) at the end.
14568 # Note that $ac_compile itself does not contain backslashes and begins
14569 # with a dollar sign (not a hyphen), so the echo should work correctly.
14570 lt_compile=`echo "$ac_compile" | $SED \
14571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14573 -e 's:$: $lt_compiler_flag:'`
14574 (eval echo "\"\$as_me:14574: $lt_compile\"" >&5)
14575 (eval "$lt_compile" 2>out/conftest.err)
14577 cat out/conftest.err >&5
14578 echo "$as_me:14578: \$? = $ac_status" >&5
14579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14581 # The compiler can only warn and ignore the option if not recognized
14582 # So say no if there are warnings
14583 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14584 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14585 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14586 lt_cv_prog_compiler_c_o_F77=yes
14591 # SGI C++ compiler will create directory out/ii_files/ for
14592 # template instantiation
14593 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14594 $rm out/* && rmdir out
14600 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14601 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14604 hard_links="nottested"
14605 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14606 # do not overwrite the value of need_locks provided by the user
14607 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14608 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14611 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14613 ln conftest.a conftest.b 2>&5 || hard_links=no
14614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14615 { echo "$as_me:$LINENO: result: $hard_links" >&5
14616 echo "${ECHO_T}$hard_links" >&6; }
14617 if test "$hard_links" = no; then
14618 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14619 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14626 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14627 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14630 allow_undefined_flag_F77=
14631 enable_shared_with_static_runtimes_F77=no
14633 archive_expsym_cmds_F77=
14634 old_archive_From_new_cmds_F77=
14635 old_archive_from_expsyms_cmds_F77=
14636 export_dynamic_flag_spec_F77=
14637 whole_archive_flag_spec_F77=
14638 thread_safe_flag_spec_F77=
14639 hardcode_libdir_flag_spec_F77=
14640 hardcode_libdir_flag_spec_ld_F77=
14641 hardcode_libdir_separator_F77=
14642 hardcode_direct_F77=no
14643 hardcode_minus_L_F77=no
14644 hardcode_shlibpath_var_F77=unsupported
14645 link_all_deplibs_F77=unknown
14646 hardcode_automatic_F77=no
14648 module_expsym_cmds_F77=
14649 always_export_symbols_F77=no
14650 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14651 # include_expsyms should be a list of space-separated symbols to be *always*
14652 # included in the symbol list
14653 include_expsyms_F77=
14654 # exclude_expsyms can be an extended regexp of symbols to exclude
14655 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14656 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14657 # as well as any symbol that contains `d'.
14658 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14659 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14660 # platforms (ab)use it in PIC code, but their linkers get confused if
14661 # the symbol is explicitly referenced. Since portable code cannot
14662 # rely on this symbol name, it's probably fine to never include it in
14663 # preloaded symbol tables.
14664 extract_expsyms_cmds=
14665 # Just being paranoid about ensuring that cc_basename is set.
14666 for cc_temp in $compiler""; do
14668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14674 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14677 cygwin* | mingw* | pw32*)
14678 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14679 # When not using gcc, we currently assume that we are using
14680 # Microsoft Visual C++.
14681 if test "$GCC" != yes; then
14686 # we just hope/assume this is gcc and not c89 (= MSVC++)
14695 if test "$with_gnu_ld" = yes; then
14696 # If archive_cmds runs LD, not CC, wlarc should be empty
14699 # Set some defaults for GNU ld with shared library support. These
14700 # are reset later if shared libraries are not supported. Putting them
14701 # here allows them to be overridden if necessary.
14702 runpath_var=LD_RUN_PATH
14703 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14704 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14705 # ancient GNU ld didn't support --whole-archive et. al.
14706 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14707 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14709 whole_archive_flag_spec_F77=
14711 supports_anon_versioning=no
14712 case `$LD -v 2>/dev/null` in
14713 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14714 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14715 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14716 *\ 2.11.*) ;; # other 2.11 versions
14717 *) supports_anon_versioning=yes ;;
14720 # See if GNU ld supports shared libraries.
14722 aix3* | aix4* | aix5*)
14723 # On AIX/PPC, the GNU linker is very broken
14724 if test "$host_cpu" != ia64; then
14728 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14729 *** to be unable to reliably create shared libraries on AIX.
14730 *** Therefore, libtool is disabling shared libraries support. If you
14731 *** really care for shared libraries, you may want to modify your PATH
14732 *** so that a non-GNU linker is found, and then restart.
14739 archive_cmds_F77='$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)'
14740 hardcode_libdir_flag_spec_F77='-L$libdir'
14741 hardcode_minus_L_F77=yes
14743 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14744 # that the semantics of dynamic libraries on AmigaOS, at least up
14745 # to version 4, is to share data among multiple programs linked
14746 # with the same dynamic library. Since this doesn't match the
14747 # behavior of shared libraries on other platforms, we can't use
14753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14754 allow_undefined_flag_F77=unsupported
14755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14756 # support --undefined. This deserves some investigation. FIXME
14757 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763 cygwin* | mingw* | pw32*)
14764 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14765 # as there is no search path for DLLs.
14766 hardcode_libdir_flag_spec_F77='-L$libdir'
14767 allow_undefined_flag_F77=unsupported
14768 always_export_symbols_F77=no
14769 enable_shared_with_static_runtimes_F77=yes
14770 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14772 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14773 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14774 # If the export-symbols file already is a .def file (1st line
14775 # is EXPORTS), use it as is; otherwise, prepend...
14776 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14777 cp $export_symbols $output_objdir/$soname.def;
14779 echo EXPORTS > $output_objdir/$soname.def;
14780 cat $export_symbols >> $output_objdir/$soname.def;
14782 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14789 hardcode_direct_F77=no
14790 hardcode_shlibpath_var_F77=no
14791 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14792 export_dynamic_flag_spec_F77='${wl}-E'
14793 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14794 # Instead, shared libraries are loaded at an image base (0x10000000 by
14795 # default) and relocated if they conflict, which is a slow very memory
14796 # consuming and fragmenting process. To avoid this, we pick a random,
14797 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14798 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14799 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14800 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14804 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14806 case $cc_basename,$host_cpu in
14807 pgcc*) # Portland Group C compiler
14808 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14809 tmp_addflag=' $pic_flag'
14811 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14812 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14813 tmp_addflag=' $pic_flag -Mnomain' ;;
14814 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14815 tmp_addflag=' -i_dynamic' ;;
14816 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14817 tmp_addflag=' -i_dynamic -nofor_main' ;;
14818 ifc* | ifort*) # Intel Fortran compiler
14819 tmp_addflag=' -nofor_main' ;;
14821 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14823 if test $supports_anon_versioning = yes; then
14824 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14825 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14826 $echo "local: *; };" >> $output_objdir/$libname.ver~
14827 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14835 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14836 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14839 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14840 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14845 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14849 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14850 *** create shared libraries on Solaris systems. Therefore, libtool
14851 *** is disabling shared libraries support. We urge you to upgrade GNU
14852 *** binutils to release 2.9.1 or newer. Another option is to modify
14853 *** your PATH or compiler configuration so that the native linker is
14854 *** used, and then restart.
14857 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14858 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14866 case `$LD -v 2>&1` in
14867 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14871 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14872 *** reliably create shared libraries on SCO systems. Therefore, libtool
14873 *** is disabling shared libraries support. We urge you to upgrade GNU
14874 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14875 *** your PATH or compiler configuration so that the native linker is
14876 *** used, and then restart.
14881 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14882 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14883 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14884 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14893 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14895 hardcode_direct_F77=yes
14896 hardcode_shlibpath_var_F77=no
14900 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14901 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14902 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14909 if test "$ld_shlibs_F77" = no; then
14911 hardcode_libdir_flag_spec_F77=
14912 export_dynamic_flag_spec_F77=
14913 whole_archive_flag_spec_F77=
14916 # PORTME fill in a description of your system's linker (not GNU ld)
14919 allow_undefined_flag_F77=unsupported
14920 always_export_symbols_F77=yes
14921 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14922 # Note: this linker hardcodes the directories in LIBPATH if there
14923 # are no directories specified by -L.
14924 hardcode_minus_L_F77=yes
14925 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14926 # Neither direct hardcoding nor static linking is supported with a
14928 hardcode_direct_F77=unsupported
14933 if test "$host_cpu" = ia64; then
14934 # On IA64, the linker does run time linking by default, so we don't
14935 # have to do anything special.
14936 aix_use_runtimelinking=no
14937 exp_sym_flag='-Bexport'
14940 # If we're using GNU nm, then we don't want the "-C" option.
14941 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14942 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14943 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14945 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14947 aix_use_runtimelinking=no
14949 # Test if we are trying to use run time linking or normal
14950 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14951 # need to do runtime linking.
14952 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14953 for ld_flag in $LDFLAGS; do
14954 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14955 aix_use_runtimelinking=yes
14962 exp_sym_flag='-bexport'
14963 no_entry_flag='-bnoentry'
14966 # When large executables or shared objects are built, AIX ld can
14967 # have problems creating the table of contents. If linking a library
14968 # or program results in "error TOC overflow" add -mminimal-toc to
14969 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14970 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14972 archive_cmds_F77=''
14973 hardcode_direct_F77=yes
14974 hardcode_libdir_separator_F77=':'
14975 link_all_deplibs_F77=yes
14977 if test "$GCC" = yes; then
14978 case $host_os in aix4.[012]|aix4.[012].*)
14979 # We only want to do this on AIX 4.2 and lower, the check
14980 # below for broken collect2 doesn't work under 4.3+
14981 collect2name=`${CC} -print-prog-name=collect2`
14982 if test -f "$collect2name" && \
14983 strings "$collect2name" | grep resolve_lib_name >/dev/null
14985 # We have reworked collect2
14986 hardcode_direct_F77=yes
14988 # We have old collect2
14989 hardcode_direct_F77=unsupported
14990 # It fails to find uninstalled libraries when the uninstalled
14991 # path is not listed in the libpath. Setting hardcode_minus_L
14992 # to unsupported forces relinking
14993 hardcode_minus_L_F77=yes
14994 hardcode_libdir_flag_spec_F77='-L$libdir'
14995 hardcode_libdir_separator_F77=
14999 shared_flag='-shared'
15000 if test "$aix_use_runtimelinking" = yes; then
15001 shared_flag="$shared_flag "'${wl}-G'
15005 if test "$host_cpu" = ia64; then
15006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15007 # chokes on -Wl,-G. The following line is correct:
15010 if test "$aix_use_runtimelinking" = yes; then
15011 shared_flag='${wl}-G'
15013 shared_flag='${wl}-bM:SRE'
15018 # It seems that -bexpall does not export symbols beginning with
15019 # underscore (_), so it is better to generate a list of symbols to export.
15020 always_export_symbols_F77=yes
15021 if test "$aix_use_runtimelinking" = yes; then
15022 # Warning - without using the other runtime loading flags (-brtl),
15023 # -berok will link without error, but may produce a broken library.
15024 allow_undefined_flag_F77='-berok'
15025 # Determine the default libpath from the value encoded in an empty executable.
15026 cat >conftest.$ac_ext <<_ACEOF
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (ac_try="$ac_link"
15033 case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_link") 2>conftest.er1
15040 grep -v '^ *+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && {
15045 test -z "$ac_f77_werror_flag" ||
15046 test ! -s conftest.err
15047 } && test -s conftest$ac_exeext &&
15048 $as_test_x conftest$ac_exeext; then
15050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15052 # Check for a 64-bit object if we didn't find anything.
15053 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15056 echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15063 conftest$ac_exeext conftest.$ac_ext
15064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15066 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15067 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15069 if test "$host_cpu" = ia64; then
15070 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15071 allow_undefined_flag_F77="-z nodefs"
15072 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15074 # Determine the default libpath from the value encoded in an empty executable.
15075 cat >conftest.$ac_ext <<_ACEOF
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (ac_try="$ac_link"
15082 case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_link") 2>conftest.er1
15089 grep -v '^ *+' conftest.er1 >conftest.err
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } && {
15094 test -z "$ac_f77_werror_flag" ||
15095 test ! -s conftest.err
15096 } && test -s conftest$ac_exeext &&
15097 $as_test_x conftest$ac_exeext; then
15099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15101 # Check for a 64-bit object if we didn't find anything.
15102 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15112 conftest$ac_exeext conftest.$ac_ext
15113 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15115 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15116 # Warning - without using the other run time loading flags,
15117 # -berok will link without error, but may produce a broken library.
15118 no_undefined_flag_F77=' ${wl}-bernotok'
15119 allow_undefined_flag_F77=' ${wl}-berok'
15120 # Exported symbols can be pulled into shared objects from archives
15121 whole_archive_flag_spec_F77='$convenience'
15122 archive_cmds_need_lc_F77=yes
15123 # This is similar to how AIX traditionally builds its shared libraries.
15124 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15130 archive_cmds_F77='$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)'
15131 hardcode_libdir_flag_spec_F77='-L$libdir'
15132 hardcode_minus_L_F77=yes
15133 # see comment about different semantics on the GNU ld section
15138 export_dynamic_flag_spec_F77=-rdynamic
15141 cygwin* | mingw* | pw32*)
15142 # When not using gcc, we currently assume that we are using
15143 # Microsoft Visual C++.
15144 # hardcode_libdir_flag_spec is actually meaningless, as there is
15145 # no search path for DLLs.
15146 hardcode_libdir_flag_spec_F77=' '
15147 allow_undefined_flag_F77=unsupported
15148 # Tell ltmain to make .lib files, not .a files.
15150 # Tell ltmain to make .dll files, not .so files.
15152 # FIXME: Setting linknames here is a bad hack.
15153 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15154 # The linker will automatically build a .lib file if we build a DLL.
15155 old_archive_From_new_cmds_F77='true'
15156 # FIXME: Should let the user specify the lib program.
15157 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15158 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15159 enable_shared_with_static_runtimes_F77=yes
15162 darwin* | rhapsody*)
15164 rhapsody* | darwin1.[012])
15165 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15168 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15169 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15171 case ${MACOSX_DEPLOYMENT_TARGET} in
15173 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15176 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15182 archive_cmds_need_lc_F77=no
15183 hardcode_direct_F77=no
15184 hardcode_automatic_F77=yes
15185 hardcode_shlibpath_var_F77=unsupported
15186 whole_archive_flag_spec_F77=''
15187 link_all_deplibs_F77=yes
15188 if test "$GCC" = yes ; then
15189 output_verbose_link_cmd='echo'
15190 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15191 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15192 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15193 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15194 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15196 case $cc_basename in
15198 output_verbose_link_cmd='echo'
15199 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15200 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15201 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15202 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15203 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15213 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15214 hardcode_libdir_flag_spec_F77='-L$libdir'
15215 hardcode_shlibpath_var_F77=no
15222 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15223 # support. Future versions do this automatically, but an explicit c++rt0.o
15224 # does not break anything, and helps significantly (at the cost of a little
15227 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15228 hardcode_libdir_flag_spec_F77='-R$libdir'
15229 hardcode_direct_F77=yes
15230 hardcode_shlibpath_var_F77=no
15233 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15235 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15236 hardcode_direct_F77=yes
15237 hardcode_minus_L_F77=yes
15238 hardcode_shlibpath_var_F77=no
15241 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15242 freebsd* | kfreebsd*-gnu | dragonfly*)
15243 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15244 hardcode_libdir_flag_spec_F77='-R$libdir'
15245 hardcode_direct_F77=yes
15246 hardcode_shlibpath_var_F77=no
15250 if test "$GCC" = yes; then
15251 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15253 archive_cmds_F77='$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'
15255 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15256 hardcode_libdir_separator_F77=:
15257 hardcode_direct_F77=yes
15259 # hardcode_minus_L: Not really in the search PATH,
15260 # but as the default location of the library.
15261 hardcode_minus_L_F77=yes
15262 export_dynamic_flag_spec_F77='${wl}-E'
15266 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15267 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15269 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15271 if test "$with_gnu_ld" = no; then
15272 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15273 hardcode_libdir_separator_F77=:
15275 hardcode_direct_F77=yes
15276 export_dynamic_flag_spec_F77='${wl}-E'
15278 # hardcode_minus_L: Not really in the search PATH,
15279 # but as the default location of the library.
15280 hardcode_minus_L_F77=yes
15285 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15288 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15291 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15294 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15300 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15303 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15306 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15310 if test "$with_gnu_ld" = no; then
15311 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15312 hardcode_libdir_separator_F77=:
15316 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15317 hardcode_direct_F77=no
15318 hardcode_shlibpath_var_F77=no
15321 hardcode_direct_F77=yes
15322 export_dynamic_flag_spec_F77='${wl}-E'
15324 # hardcode_minus_L: Not really in the search PATH,
15325 # but as the default location of the library.
15326 hardcode_minus_L_F77=yes
15332 irix5* | irix6* | nonstopux*)
15333 if test "$GCC" = yes; then
15334 archive_cmds_F77='$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'
15336 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15337 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15339 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15340 hardcode_libdir_separator_F77=:
15341 link_all_deplibs_F77=yes
15345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15346 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15348 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15350 hardcode_libdir_flag_spec_F77='-R$libdir'
15351 hardcode_direct_F77=yes
15352 hardcode_shlibpath_var_F77=no
15356 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15357 hardcode_direct_F77=yes
15358 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15359 hardcode_libdir_separator_F77=:
15360 hardcode_shlibpath_var_F77=no
15364 hardcode_direct_F77=yes
15365 hardcode_shlibpath_var_F77=no
15366 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15367 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15368 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15369 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15370 export_dynamic_flag_spec_F77='${wl}-E'
15373 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15374 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15375 hardcode_libdir_flag_spec_F77='-R$libdir'
15378 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15379 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15386 hardcode_libdir_flag_spec_F77='-L$libdir'
15387 hardcode_minus_L_F77=yes
15388 allow_undefined_flag_F77=unsupported
15389 archive_cmds_F77='$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'
15390 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15394 if test "$GCC" = yes; then
15395 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15396 archive_cmds_F77='$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'
15398 allow_undefined_flag_F77=' -expect_unresolved \*'
15399 archive_cmds_F77='$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'
15401 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15402 hardcode_libdir_separator_F77=:
15405 osf4* | osf5*) # as osf3* with the addition of -msym flag
15406 if test "$GCC" = yes; then
15407 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15408 archive_cmds_F77='$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'
15409 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15411 allow_undefined_flag_F77=' -expect_unresolved \*'
15412 archive_cmds_F77='$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'
15413 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15414 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15416 # Both c and cxx compiler support -rpath directly
15417 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15419 hardcode_libdir_separator_F77=:
15423 no_undefined_flag_F77=' -z text'
15424 if test "$GCC" = yes; then
15426 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15427 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15428 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15431 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15432 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15433 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15435 hardcode_libdir_flag_spec_F77='-R$libdir'
15436 hardcode_shlibpath_var_F77=no
15438 solaris2.[0-5] | solaris2.[0-5].*) ;;
15440 # The compiler driver will combine linker options so we
15441 # cannot just pass the convience library names through
15442 # without $wl, iff we do not link with $LD.
15443 # Luckily, gcc supports the same syntax we need for Sun Studio.
15444 # Supported since Solaris 2.6 (maybe 2.5.1?)
15447 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15449 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15452 link_all_deplibs_F77=yes
15456 if test "x$host_vendor" = xsequent; then
15457 # Use $CC to link under sequent, because it throws in some extra .o
15458 # files that make .init and .fini sections work.
15459 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15461 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15463 hardcode_libdir_flag_spec_F77='-L$libdir'
15464 hardcode_direct_F77=yes
15465 hardcode_minus_L_F77=yes
15466 hardcode_shlibpath_var_F77=no
15470 case $host_vendor in
15472 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15473 hardcode_direct_F77=yes # is this really true???
15476 ## LD is ld it makes a PLAMLIB
15477 ## CC just makes a GrossModule.
15478 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15479 reload_cmds_F77='$CC -r -o $output$reload_objs'
15480 hardcode_direct_F77=no
15483 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15484 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15487 runpath_var='LD_RUN_PATH'
15488 hardcode_shlibpath_var_F77=no
15492 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15493 hardcode_shlibpath_var_F77=no
15494 export_dynamic_flag_spec_F77='-Bexport'
15498 if test -d /usr/nec; then
15499 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15500 hardcode_shlibpath_var_F77=no
15501 runpath_var=LD_RUN_PATH
15502 hardcode_runpath_var=yes
15507 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15508 no_undefined_flag_F77='${wl}-z,text'
15509 archive_cmds_need_lc_F77=no
15510 hardcode_shlibpath_var_F77=no
15511 runpath_var='LD_RUN_PATH'
15513 if test "$GCC" = yes; then
15514 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15515 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15517 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15518 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15522 sysv5* | sco3.2v5* | sco5v6*)
15523 # Note: We can NOT use -z defs as we might desire, because we do not
15524 # link with -lc, and that would cause any symbols used from libc to
15525 # always be unresolved, which means just about no library would
15526 # ever link correctly. If we're not using GNU ld we use -z text
15527 # though, which does catch some bad symbols but isn't as heavy-handed
15529 no_undefined_flag_F77='${wl}-z,text'
15530 allow_undefined_flag_F77='${wl}-z,nodefs'
15531 archive_cmds_need_lc_F77=no
15532 hardcode_shlibpath_var_F77=no
15533 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15534 hardcode_libdir_separator_F77=':'
15535 link_all_deplibs_F77=yes
15536 export_dynamic_flag_spec_F77='${wl}-Bexport'
15537 runpath_var='LD_RUN_PATH'
15539 if test "$GCC" = yes; then
15540 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15541 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15543 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15544 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15549 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15550 hardcode_libdir_flag_spec_F77='-L$libdir'
15551 hardcode_shlibpath_var_F77=no
15560 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15561 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15562 test "$ld_shlibs_F77" = no && can_build_shared=no
15565 # Do we need to explicitly link libc?
15567 case "x$archive_cmds_need_lc_F77" in
15569 # Assume -lc should be added
15570 archive_cmds_need_lc_F77=yes
15572 if test "$enable_shared" = yes && test "$GCC" = yes; then
15573 case $archive_cmds_F77 in
15575 # FIXME: we may have to deal with multi-command sequences.
15578 # Test whether the compiler implicitly links with -lc since on some
15579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15580 # to ld, don't add -lc before -lgcc.
15581 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15582 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15587 (eval $ac_compile) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } 2>conftest.err; then
15593 libobjs=conftest.$ac_objext
15595 wl=$lt_prog_compiler_wl_F77
15596 pic_flag=$lt_prog_compiler_pic_F77
15602 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15603 allow_undefined_flag_F77=
15604 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15605 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }
15610 archive_cmds_need_lc_F77=no
15612 archive_cmds_need_lc_F77=yes
15614 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15616 cat conftest.err 1>&5
15619 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15620 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15627 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15628 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15629 library_names_spec=
15630 libname_spec='lib$name'
15634 postuninstall_cmds=
15638 shlibpath_overrides_runpath=unknown
15640 dynamic_linker="$host_os ld.so"
15641 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15642 if test "$GCC" = yes; then
15643 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15644 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15645 # if the path contains ";" then we assume it to be the separator
15646 # otherwise default to the standard path separator (i.e. ":") - it is
15647 # assumed that no part of a normal pathname contains ";" but that should
15648 # okay in the real world where ";" in dirpaths is itself problematic.
15649 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15656 need_lib_prefix=unknown
15657 hardcode_into_libs=no
15659 # when you set need_version to no, make sure it does not cause -set_version
15660 # flags to be left without arguments
15661 need_version=unknown
15666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15667 shlibpath_var=LIBPATH
15669 # AIX 3 has no versioning support, so we append a major version to the name.
15670 soname_spec='${libname}${release}${shared_ext}$major'
15677 hardcode_into_libs=yes
15678 if test "$host_cpu" = ia64; then
15679 # AIX 5 supports IA64
15680 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15681 shlibpath_var=LD_LIBRARY_PATH
15683 # With GCC up to 2.95.x, collect2 would create an import file
15684 # for dependence libraries. The import file would start with
15685 # the line `#! .'. This would cause the generated library to
15686 # depend on `.', always an invalid library. This was fixed in
15687 # development snapshots of GCC prior to 3.0.
15689 aix4 | aix4.[01] | aix4.[01].*)
15690 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15692 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15695 can_build_shared=no
15699 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15700 # soname into executable. Probably we can add versioning support to
15701 # collect2, so additional links can be useful in future.
15702 if test "$aix_use_runtimelinking" = yes; then
15703 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15704 # instead of lib<name>.a to let people know that these are not
15705 # typical AIX shared libraries.
15706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15708 # We preserve .a as extension for shared libraries through AIX4.2
15709 # and later when we are not doing run time linking.
15710 library_names_spec='${libname}${release}.a $libname.a'
15711 soname_spec='${libname}${release}${shared_ext}$major'
15713 shlibpath_var=LIBPATH
15718 library_names_spec='$libname.ixlibrary $libname.a'
15719 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15720 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'
15724 library_names_spec='${libname}${shared_ext}'
15725 dynamic_linker="$host_os ld.so"
15726 shlibpath_var=LIBRARY_PATH
15732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15733 soname_spec='${libname}${release}${shared_ext}$major'
15734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15735 shlibpath_var=LD_LIBRARY_PATH
15736 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15737 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15738 # the default ld.so.conf also contains /usr/contrib/lib and
15739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15740 # libtool to hard-code these into programs
15743 cygwin* | mingw* | pw32*)
15744 version_type=windows
15749 case $GCC,$host_os in
15750 yes,cygwin* | yes,mingw* | yes,pw32*)
15751 library_names_spec='$libname.dll.a'
15752 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15753 postinstall_cmds='base_file=`basename \${file}`~
15754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15755 dldir=$destdir/`dirname \$dlpath`~
15756 test -d \$dldir || mkdir -p \$dldir~
15757 $install_prog $dir/$dlname \$dldir/$dlname~
15758 chmod a+x \$dldir/$dlname'
15759 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15760 dlpath=$dir/\$dldll~
15762 shlibpath_overrides_runpath=yes
15766 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15767 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15768 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15771 # MinGW DLLs use traditional 'lib' prefix
15772 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15773 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15774 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15775 # It is most probably a Windows format PATH printed by
15776 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15777 # path with ; separators, and with drive letters. We can handle the
15778 # drive letters (cygwin fileutils understands them), so leave them,
15779 # especially as we might pass files found there to a mingw objdump,
15780 # which wouldn't understand a cygwinified path. Ahh.
15781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15787 # pw32 DLLs use 'pw' prefix rather than 'lib'
15788 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15794 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15797 dynamic_linker='Win32 ld.exe'
15798 # FIXME: first we should search . and the directory the executable is in
15802 darwin* | rhapsody*)
15803 dynamic_linker="$host_os dyld"
15804 version_type=darwin
15807 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15808 soname_spec='${libname}${release}${major}$shared_ext'
15809 shlibpath_overrides_runpath=yes
15810 shlibpath_var=DYLD_LIBRARY_PATH
15811 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15812 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15813 if test "$GCC" = yes; then
15814 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15816 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15818 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 shlibpath_var=LD_LIBRARY_PATH
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15839 soname_spec='${libname}${release}${shared_ext}$major'
15840 shlibpath_var=LD_LIBRARY_PATH
15841 shlibpath_overrides_runpath=no
15842 hardcode_into_libs=yes
15843 dynamic_linker='GNU ld.so'
15846 freebsd* | dragonfly*)
15847 # DragonFly does not have aout. When/if they implement a new
15848 # versioning mechanism, adjust this.
15849 if test -x /usr/bin/objformat; then
15850 objformat=`/usr/bin/objformat`
15853 freebsd[123]*) objformat=aout ;;
15854 *) objformat=elf ;;
15857 version_type=freebsd-$objformat
15858 case $version_type in
15860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15869 shlibpath_var=LD_LIBRARY_PATH
15872 shlibpath_overrides_runpath=yes
15874 freebsd3.[01]* | freebsdelf3.[01]*)
15875 shlibpath_overrides_runpath=yes
15876 hardcode_into_libs=yes
15878 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15879 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15880 shlibpath_overrides_runpath=no
15881 hardcode_into_libs=yes
15883 freebsd*) # from 4.6 on
15884 shlibpath_overrides_runpath=yes
15885 hardcode_into_libs=yes
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15895 soname_spec='${libname}${release}${shared_ext}$major'
15896 shlibpath_var=LD_LIBRARY_PATH
15897 hardcode_into_libs=yes
15900 hpux9* | hpux10* | hpux11*)
15901 # Give a soname corresponding to the major version so that dld.sl refuses to
15902 # link against other versions.
15909 hardcode_into_libs=yes
15910 dynamic_linker="$host_os dld.so"
15911 shlibpath_var=LD_LIBRARY_PATH
15912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 if test "X$HPUX_IA64_MODE" = X32; then
15916 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15918 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15924 hardcode_into_libs=yes
15925 dynamic_linker="$host_os dld.sl"
15926 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15927 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15931 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15935 dynamic_linker="$host_os dld.sl"
15936 shlibpath_var=SHLIB_PATH
15937 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939 soname_spec='${libname}${release}${shared_ext}$major'
15942 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15943 postinstall_cmds='chmod 555 $lib'
15950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15951 soname_spec='${libname}${release}${shared_ext}$major'
15952 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15953 shlibpath_var=LD_LIBRARY_PATH
15954 shlibpath_overrides_runpath=no
15955 hardcode_into_libs=yes
15958 irix5* | irix6* | nonstopux*)
15960 nonstopux*) version_type=nonstopux ;;
15962 if test "$lt_cv_prog_gnu_ld" = yes; then
15970 soname_spec='${libname}${release}${shared_ext}$major'
15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15973 irix5* | nonstopux*)
15974 libsuff= shlibsuff=
15977 case $LD in # libtool.m4 will add one of these switches to LD
15978 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15979 libsuff= shlibsuff= libmagic=32-bit;;
15980 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15981 libsuff=32 shlibsuff=N32 libmagic=N32;;
15982 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15983 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15984 *) libsuff= shlibsuff= libmagic=never-match;;
15988 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15989 shlibpath_overrides_runpath=no
15990 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15991 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15992 hardcode_into_libs=yes
15995 # No shared lib support for Linux oldld, aout, or coff.
15996 linux*oldld* | linux*aout* | linux*coff*)
16000 # This must be Linux ELF.
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=no
16010 # This implies no fast_install, which is unacceptable.
16011 # Some rework will be needed to allow for fast_install
16012 # before this can be enabled.
16013 hardcode_into_libs=yes
16015 # find out which ABI we are using
16017 case "$host_cpu" in
16018 x86_64*|s390x*|powerpc64*)
16019 echo '#line 16019 "configure"' > conftest.$ac_ext
16020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16021 (eval $ac_compile) 2>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); }; then
16025 case `/usr/bin/file conftest.$ac_objext` in
16028 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16036 # Append ld.so.conf contents to the search path
16037 if test -f /etc/ld.so.conf; then
16038 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16039 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16042 # We used to test for /lib/ld.so.1 and disable shared libraries on
16043 # powerpc, because MkLinux only supported shared libraries with the
16044 # GNU dynamic linker. Since this was broken with cross compilers,
16045 # most powerpc-linux boxes support dynamic linking these days and
16046 # people can always --disable-shared, the test was removed, and we
16047 # assume the GNU/Linux dynamic linker is in use.
16048 dynamic_linker='GNU/Linux ld.so'
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 shlibpath_overrides_runpath=no
16059 hardcode_into_libs=yes
16060 dynamic_linker='GNU ld.so'
16067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16070 dynamic_linker='NetBSD (a.out) ld.so'
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 dynamic_linker='NetBSD ld.elf_so'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes
16078 hardcode_into_libs=yes
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 shlibpath_var=LD_LIBRARY_PATH
16085 shlibpath_overrides_runpath=yes
16092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093 soname_spec='${libname}${release}${shared_ext}$major'
16094 shlibpath_var=LD_LIBRARY_PATH
16095 shlibpath_overrides_runpath=yes
16100 sys_lib_dlsearch_path_spec="/usr/lib"
16102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16104 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16105 *) need_version=no ;;
16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16109 shlibpath_var=LD_LIBRARY_PATH
16110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16112 openbsd2.[89] | openbsd2.[89].*)
16113 shlibpath_overrides_runpath=no
16116 shlibpath_overrides_runpath=yes
16120 shlibpath_overrides_runpath=yes
16125 libname_spec='$name'
16128 library_names_spec='$libname${shared_ext} $libname.a'
16129 dynamic_linker='OS/2 ld.exe'
16130 shlibpath_var=LIBPATH
16133 osf3* | osf4* | osf5*)
16137 soname_spec='${libname}${release}${shared_ext}$major'
16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16149 soname_spec='${libname}${release}${shared_ext}$major'
16150 shlibpath_var=LD_LIBRARY_PATH
16151 shlibpath_overrides_runpath=yes
16152 hardcode_into_libs=yes
16153 # ldd complains unless libraries are executable
16154 postinstall_cmds='chmod +x $lib'
16159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16161 shlibpath_var=LD_LIBRARY_PATH
16162 shlibpath_overrides_runpath=yes
16163 if test "$with_gnu_ld" = yes; then
16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172 soname_spec='${libname}${release}${shared_ext}$major'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 case $host_vendor in
16176 shlibpath_overrides_runpath=no
16178 export_dynamic_flag_spec='${wl}-Blargedynsym'
16179 runpath_var=LD_RUN_PATH
16187 shlibpath_overrides_runpath=no
16188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16194 if test -d /usr/nec ;then
16196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16197 soname_spec='$libname${shared_ext}.$major'
16198 shlibpath_var=LD_LIBRARY_PATH
16202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16203 version_type=freebsd-elf
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16207 soname_spec='${libname}${release}${shared_ext}$major'
16208 shlibpath_var=LD_LIBRARY_PATH
16209 hardcode_into_libs=yes
16210 if test "$with_gnu_ld" = yes; then
16211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16212 shlibpath_overrides_runpath=no
16214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16215 shlibpath_overrides_runpath=yes
16218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16222 sys_lib_dlsearch_path_spec='/usr/lib'
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16236 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16237 echo "${ECHO_T}$dynamic_linker" >&6; }
16238 test "$dynamic_linker" = no && can_build_shared=no
16240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16241 if test "$GCC" = yes; then
16242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16245 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16246 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16247 hardcode_action_F77=
16248 if test -n "$hardcode_libdir_flag_spec_F77" || \
16249 test -n "$runpath_var_F77" || \
16250 test "X$hardcode_automatic_F77" = "Xyes" ; then
16252 # We can hardcode non-existant directories.
16253 if test "$hardcode_direct_F77" != no &&
16254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16255 # have to relink, otherwise we might link with an installed library
16256 # when we should be linking with a yet-to-be-installed one
16257 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16258 test "$hardcode_minus_L_F77" != no; then
16259 # Linking always hardcodes the temporary library directory.
16260 hardcode_action_F77=relink
16262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16263 hardcode_action_F77=immediate
16266 # We cannot hardcode anything, or else we can only hardcode existing
16268 hardcode_action_F77=unsupported
16270 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16271 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16273 if test "$hardcode_action_F77" = relink; then
16274 # Fast installation is not supported
16275 enable_fast_install=no
16276 elif test "$shlibpath_overrides_runpath" = yes ||
16277 test "$enable_shared" = no; then
16278 # Fast installation is not necessary
16279 enable_fast_install=needless
16283 # The else clause should only fire when bootstrapping the
16284 # libtool distribution, otherwise you forgot to ship ltmain.sh
16285 # with your package, and you will get complaints that there are
16286 # no rules to generate ltmain.sh.
16287 if test -f "$ltmain"; then
16288 # See if we are running on zsh, and set the options which allow our commands through
16289 # without removal of \ escapes.
16290 if test -n "${ZSH_VERSION+set}" ; then
16291 setopt NO_GLOB_SUBST
16293 # Now quote all the things that may contain metacharacters while being
16294 # careful not to overquote the AC_SUBSTed values. We take copies of the
16295 # variables and quote the copies for generation of the libtool script.
16296 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16300 deplibs_check_method reload_flag reload_cmds need_locks \
16301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16302 lt_cv_sys_global_symbol_to_c_name_address \
16303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16304 old_postinstall_cmds old_postuninstall_cmds \
16308 lt_prog_compiler_wl_F77 \
16309 lt_prog_compiler_pic_F77 \
16310 lt_prog_compiler_static_F77 \
16311 lt_prog_compiler_no_builtin_flag_F77 \
16312 export_dynamic_flag_spec_F77 \
16313 thread_safe_flag_spec_F77 \
16314 whole_archive_flag_spec_F77 \
16315 enable_shared_with_static_runtimes_F77 \
16316 old_archive_cmds_F77 \
16317 old_archive_from_new_cmds_F77 \
16318 predep_objects_F77 \
16319 postdep_objects_F77 \
16322 compiler_lib_search_path_F77 \
16324 archive_expsym_cmds_F77 \
16325 postinstall_cmds_F77 \
16326 postuninstall_cmds_F77 \
16327 old_archive_from_expsyms_cmds_F77 \
16328 allow_undefined_flag_F77 \
16329 no_undefined_flag_F77 \
16330 export_symbols_cmds_F77 \
16331 hardcode_libdir_flag_spec_F77 \
16332 hardcode_libdir_flag_spec_ld_F77 \
16333 hardcode_libdir_separator_F77 \
16334 hardcode_automatic_F77 \
16336 module_expsym_cmds_F77 \
16337 lt_cv_prog_compiler_c_o_F77 \
16338 exclude_expsyms_F77 \
16339 include_expsyms_F77; do
16342 old_archive_cmds_F77 | \
16343 old_archive_from_new_cmds_F77 | \
16344 archive_cmds_F77 | \
16345 archive_expsym_cmds_F77 | \
16346 module_cmds_F77 | \
16347 module_expsym_cmds_F77 | \
16348 old_archive_from_expsyms_cmds_F77 | \
16349 export_symbols_cmds_F77 | \
16350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16351 postinstall_cmds | postuninstall_cmds | \
16352 old_postinstall_cmds | old_postuninstall_cmds | \
16353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16354 # Double-quote double-evaled strings.
16355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16364 *'\$0 --fallback-echo"')
16365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16371 cat <<__EOF__ >> "$cfgfile"
16372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16376 # Shell to use when invoking shell scripts.
16379 # Whether or not to build shared libraries.
16380 build_libtool_libs=$enable_shared
16382 # Whether or not to build static libraries.
16383 build_old_libs=$enable_static
16385 # Whether or not to add -lc for building shared libraries.
16386 build_libtool_need_lc=$archive_cmds_need_lc_F77
16388 # Whether or not to disallow shared libs when runtime libs are static
16389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16391 # Whether or not to optimize for fast installation.
16392 fast_install=$enable_fast_install
16395 host_alias=$host_alias
16399 # The build system.
16400 build_alias=$build_alias
16404 # An echo program that does not interpret backslashes.
16409 AR_FLAGS=$lt_AR_FLAGS
16414 # LTCC compiler flags.
16415 LTCFLAGS=$lt_LTCFLAGS
16417 # A language-specific compiler.
16418 CC=$lt_compiler_F77
16420 # Is the compiler the GNU C compiler?
16423 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
16424 gcc_ver=\`gcc -dumpversion\`
16429 # The linker used to build libraries.
16432 # Whether we need hard or soft links.
16435 # A BSD-compatible nm program.
16438 # A symbol stripping program
16441 # Used to examine libraries when file_magic_cmd begins "file"
16442 MAGIC_CMD=$MAGIC_CMD
16444 # Used on cygwin: DLL creation program.
16447 # Used on cygwin: object dumper.
16450 # Used on cygwin: assembler.
16453 # The name of the directory that contains temporary libtool files.
16456 # How to create reloadable object files.
16457 reload_flag=$lt_reload_flag
16458 reload_cmds=$lt_reload_cmds
16460 # How to pass a linker flag through the compiler.
16461 wl=$lt_lt_prog_compiler_wl_F77
16463 # Object file suffix (normally "o").
16464 objext="$ac_objext"
16466 # Old archive suffix (normally "a").
16469 # Shared library suffix (normally ".so").
16470 shrext_cmds='$shrext_cmds'
16472 # Executable file suffix (normally "").
16475 # Additional compiler flags for building library objects.
16476 pic_flag=$lt_lt_prog_compiler_pic_F77
16479 # What is the maximum length of a command?
16480 max_cmd_len=$lt_cv_sys_max_cmd_len
16482 # Does compiler simultaneously support -c and -o options?
16483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16485 # Must we lock files when doing compilation?
16486 need_locks=$lt_need_locks
16488 # Do we need the lib prefix for modules?
16489 need_lib_prefix=$need_lib_prefix
16491 # Do we need a version for libraries?
16492 need_version=$need_version
16494 # Whether dlopen is supported.
16495 dlopen_support=$enable_dlopen
16497 # Whether dlopen of programs is supported.
16498 dlopen_self=$enable_dlopen_self
16500 # Whether dlopen of statically linked programs is supported.
16501 dlopen_self_static=$enable_dlopen_self_static
16503 # Compiler flag to prevent dynamic linking.
16504 link_static_flag=$lt_lt_prog_compiler_static_F77
16506 # Compiler flag to turn off builtin functions.
16507 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16509 # Compiler flag to allow reflexive dlopens.
16510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16512 # Compiler flag to generate shared objects directly from archives.
16513 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16515 # Compiler flag to generate thread-safe objects.
16516 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16518 # Library versioning type.
16519 version_type=$version_type
16521 # Format of library name prefix.
16522 libname_spec=$lt_libname_spec
16524 # List of archive names. First name is the real one, the rest are links.
16525 # The last name is the one that the linker finds with -lNAME.
16526 library_names_spec=$lt_library_names_spec
16528 # The coded name of the library, if different from the real name.
16529 soname_spec=$lt_soname_spec
16531 # Commands used to build and install an old-style archive.
16533 old_archive_cmds=$lt_old_archive_cmds_F77
16534 old_postinstall_cmds=$lt_old_postinstall_cmds
16535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16537 # Create an old-style archive from a shared archive.
16538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16540 # Create a temporary old-style archive to link instead of a shared archive.
16541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16543 # Commands used to build and install a shared archive.
16544 archive_cmds=$lt_archive_cmds_F77
16545 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16546 postinstall_cmds=$lt_postinstall_cmds
16547 postuninstall_cmds=$lt_postuninstall_cmds
16549 # Commands used to build a loadable module (assumed same as above if empty)
16550 module_cmds=$lt_module_cmds_F77
16551 module_expsym_cmds=$lt_module_expsym_cmds_F77
16553 # Commands to strip libraries.
16554 old_striplib=$lt_old_striplib
16555 striplib=$lt_striplib
16557 # Dependencies to place before the objects being linked to create a
16559 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16561 # Dependencies to place after the objects being linked to create a
16563 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16565 # Dependencies to place before the objects being linked to create a
16567 predeps=$lt_predeps_F77
16569 # Dependencies to place after the objects being linked to create a
16571 postdeps=$lt_postdeps_F77
16573 # The library search path used internally by the compiler when linking
16574 # a shared library.
16575 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16577 # Method to check whether dependent libraries are shared objects.
16578 deplibs_check_method=$lt_deplibs_check_method
16580 # Command to use when deplibs_check_method == file_magic.
16581 file_magic_cmd=$lt_file_magic_cmd
16583 # Flag that allows shared libraries with undefined symbols to be built.
16584 allow_undefined_flag=$lt_allow_undefined_flag_F77
16586 # Flag that forces no undefined symbols.
16587 no_undefined_flag=$lt_no_undefined_flag_F77
16589 # Commands used to finish a libtool library installation in a directory.
16590 finish_cmds=$lt_finish_cmds
16592 # Same as above, but a single script fragment to be evaled but not shown.
16593 finish_eval=$lt_finish_eval
16595 # Take the output of nm and produce a listing of raw symbols and C names.
16596 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16598 # Transform the output of nm in a proper C declaration
16599 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16601 # Transform the output of nm in a C name address pair
16602 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16604 # This is the shared library runtime path variable.
16605 runpath_var=$runpath_var
16607 # This is the shared library path variable.
16608 shlibpath_var=$shlibpath_var
16610 # Is shlibpath searched before the hard-coded library search path?
16611 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16613 # How to hardcode a shared library path into an executable.
16614 hardcode_action=$hardcode_action_F77
16616 # Whether we should hardcode library paths into libraries.
16617 hardcode_into_libs=$hardcode_into_libs
16619 # Flag to hardcode \$libdir into a binary during linking.
16620 # This must work even if \$libdir does not exist.
16621 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16623 # If ld is used when linking, flag to hardcode \$libdir into
16624 # a binary during linking. This must work even if \$libdir does
16626 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16628 # Whether we need a single -rpath flag with a separated argument.
16629 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16631 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16632 # resulting binary.
16633 hardcode_direct=$hardcode_direct_F77
16635 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16636 # resulting binary.
16637 hardcode_minus_L=$hardcode_minus_L_F77
16639 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16640 # the resulting binary.
16641 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16643 # Set to yes if building a shared library automatically hardcodes DIR into the library
16644 # and all subsequent libraries and executables linked against it.
16645 hardcode_automatic=$hardcode_automatic_F77
16647 # Variables whose values should be saved in libtool wrapper scripts and
16648 # restored at relink time.
16649 variables_saved_for_relink="$variables_saved_for_relink"
16651 # Whether libtool must link a program against all its dependency libraries.
16652 link_all_deplibs=$link_all_deplibs_F77
16654 # Compile-time system search path for libraries
16655 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
16657 # Run-time system search path for libraries
16658 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16660 # Fix the shell variable \$srcfile for the compiler.
16661 fix_srcfile_path="$fix_srcfile_path_F77"
16663 # Set to yes if exported symbols are required.
16664 always_export_symbols=$always_export_symbols_F77
16666 # The commands to list exported symbols.
16667 export_symbols_cmds=$lt_export_symbols_cmds_F77
16669 # The commands to extract the exported symbol list from a shared archive.
16670 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16672 # Symbols that should not be listed in the preloaded symbols.
16673 exclude_expsyms=$lt_exclude_expsyms_F77
16675 # Symbols that must always be exported.
16676 include_expsyms=$lt_include_expsyms_F77
16678 # ### END LIBTOOL TAG CONFIG: $tagname
16684 # If there is no Makefile yet, we rely on a make rule to execute
16685 # `config.status --recheck' to rerun these tests and create the
16686 # libtool script then.
16687 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16688 if test -f "$ltmain_in"; then
16689 test -f Makefile && make "$ltmain"
16695 ac_cpp='$CPP $CPPFLAGS'
16696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16708 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16711 # Source file extension for Java test sources.
16714 # Object file extension for compiled Java test sources.
16718 # Code to be used in simple compile tests
16719 lt_simple_compile_test_code="class foo {}\n"
16721 # Code to be used in simple link tests
16722 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16724 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16726 # If no C compiler was specified, use CC.
16729 # If no C compiler flags were specified, use CFLAGS.
16730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16732 # Allow CC to be a program name with arguments.
16736 # save warnings/boilerplate of simple test code
16737 ac_outfile=conftest.$ac_objext
16738 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16740 _lt_compiler_boilerplate=`cat conftest.err`
16743 ac_outfile=conftest.$ac_objext
16744 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16746 _lt_linker_boilerplate=`cat conftest.err`
16750 # Allow CC to be a program name with arguments.
16755 for cc_temp in $compiler""; do
16757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16763 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16767 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16768 archive_cmds_need_lc_GCJ=no
16770 old_archive_cmds_GCJ=$old_archive_cmds
16773 lt_prog_compiler_no_builtin_flag_GCJ=
16775 if test "$GCC" = yes; then
16776 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16779 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16780 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16781 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 lt_cv_prog_compiler_rtti_exceptions=no
16785 ac_outfile=conftest.$ac_objext
16786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16787 lt_compiler_flag="-fno-rtti -fno-exceptions"
16788 # Insert the option either (1) after the last *FLAGS variable, or
16789 # (2) before a word containing "conftest.", or (3) at the end.
16790 # Note that $ac_compile itself does not contain backslashes and begins
16791 # with a dollar sign (not a hyphen), so the echo should work correctly.
16792 # The option is referenced via a variable to avoid confusing sed.
16793 lt_compile=`echo "$ac_compile" | $SED \
16794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16796 -e 's:$: $lt_compiler_flag:'`
16797 (eval echo "\"\$as_me:16797: $lt_compile\"" >&5)
16798 (eval "$lt_compile" 2>conftest.err)
16800 cat conftest.err >&5
16801 echo "$as_me:16801: \$? = $ac_status" >&5
16802 if (exit $ac_status) && test -s "$ac_outfile"; then
16803 # The compiler can only warn and ignore the option if not recognized
16804 # So say no if there are warnings other than the usual output.
16805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16808 lt_cv_prog_compiler_rtti_exceptions=yes
16814 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16815 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16817 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16818 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16825 lt_prog_compiler_wl_GCJ=
16826 lt_prog_compiler_pic_GCJ=
16827 lt_prog_compiler_static_GCJ=
16829 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16830 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16832 if test "$GCC" = yes; then
16833 lt_prog_compiler_wl_GCJ='-Wl,'
16834 lt_prog_compiler_static_GCJ='-static'
16838 # All AIX code is PIC.
16839 if test "$host_cpu" = ia64; then
16840 # AIX 5 now supports IA64 processor
16841 lt_prog_compiler_static_GCJ='-Bstatic'
16846 # FIXME: we need at least 68020 code to build shared libraries, but
16847 # adding the `-m68020' flag to GCC prevents building anything better,
16849 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16852 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16853 # PIC is the default for these OSes.
16856 mingw* | pw32* | os2*)
16857 # This hack is so that the source file can tell whether it is being
16858 # built for inclusion in a dll (and should export symbols for example).
16859 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16862 darwin* | rhapsody*)
16863 # PIC is the default on this platform
16864 # Common symbols not allowed in MH_DYLIB files
16865 lt_prog_compiler_pic_GCJ='-fno-common'
16869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16870 # Instead, we relocate shared libraries at runtime.
16874 # Just because we use GCC doesn't mean we suddenly get shared libraries
16875 # on systems that don't support them.
16876 lt_prog_compiler_can_build_shared_GCJ=no
16881 if test -d /usr/nec; then
16882 lt_prog_compiler_pic_GCJ=-Kconform_pic
16887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16888 # not for PA HP-UX.
16894 lt_prog_compiler_pic_GCJ='-fPIC'
16900 lt_prog_compiler_pic_GCJ='-fPIC'
16904 # PORTME Check for flag to pass linker flags through the system compiler.
16907 lt_prog_compiler_wl_GCJ='-Wl,'
16908 if test "$host_cpu" = ia64; then
16909 # AIX 5 now supports IA64 processor
16910 lt_prog_compiler_static_GCJ='-Bstatic'
16912 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16916 # PIC is the default on this platform
16917 # Common symbols not allowed in MH_DYLIB files
16918 case $cc_basename in
16920 lt_prog_compiler_pic_GCJ='-qnocommon'
16921 lt_prog_compiler_wl_GCJ='-Wl,'
16926 mingw* | pw32* | os2*)
16927 # This hack is so that the source file can tell whether it is being
16928 # built for inclusion in a dll (and should export symbols for example).
16929 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16932 hpux9* | hpux10* | hpux11*)
16933 lt_prog_compiler_wl_GCJ='-Wl,'
16934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16935 # not for PA HP-UX.
16941 lt_prog_compiler_pic_GCJ='+Z'
16944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16945 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16948 irix5* | irix6* | nonstopux*)
16949 lt_prog_compiler_wl_GCJ='-Wl,'
16950 # PIC (with -KPIC) is the default.
16951 lt_prog_compiler_static_GCJ='-non_shared'
16955 lt_prog_compiler_pic_GCJ='-KPIC'
16956 lt_prog_compiler_static_GCJ='-Bstatic'
16960 case $cc_basename in
16962 lt_prog_compiler_wl_GCJ='-Wl,'
16963 lt_prog_compiler_pic_GCJ='-KPIC'
16964 lt_prog_compiler_static_GCJ='-static'
16966 pgcc* | pgf77* | pgf90* | pgf95*)
16967 # Portland Group compilers (*not* the Pentium gcc compiler,
16968 # which looks to be a dead project)
16969 lt_prog_compiler_wl_GCJ='-Wl,'
16970 lt_prog_compiler_pic_GCJ='-fpic'
16971 lt_prog_compiler_static_GCJ='-Bstatic'
16974 lt_prog_compiler_wl_GCJ='-Wl,'
16975 # All Alpha code is PIC.
16976 lt_prog_compiler_static_GCJ='-non_shared'
16981 osf3* | osf4* | osf5*)
16982 lt_prog_compiler_wl_GCJ='-Wl,'
16983 # All OSF/1 code is PIC.
16984 lt_prog_compiler_static_GCJ='-non_shared'
16988 lt_prog_compiler_pic_GCJ='-KPIC'
16989 lt_prog_compiler_static_GCJ='-Bstatic'
16990 case $cc_basename in
16991 f77* | f90* | f95*)
16992 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16994 lt_prog_compiler_wl_GCJ='-Wl,';;
16999 lt_prog_compiler_wl_GCJ='-Qoption ld '
17000 lt_prog_compiler_pic_GCJ='-PIC'
17001 lt_prog_compiler_static_GCJ='-Bstatic'
17004 sysv4 | sysv4.2uw2* | sysv4.3*)
17005 lt_prog_compiler_wl_GCJ='-Wl,'
17006 lt_prog_compiler_pic_GCJ='-KPIC'
17007 lt_prog_compiler_static_GCJ='-Bstatic'
17011 if test -d /usr/nec ;then
17012 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17013 lt_prog_compiler_static_GCJ='-Bstatic'
17017 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17018 lt_prog_compiler_wl_GCJ='-Wl,'
17019 lt_prog_compiler_pic_GCJ='-KPIC'
17020 lt_prog_compiler_static_GCJ='-Bstatic'
17024 lt_prog_compiler_wl_GCJ='-Wl,'
17025 lt_prog_compiler_can_build_shared_GCJ=no
17029 lt_prog_compiler_pic_GCJ='-pic'
17030 lt_prog_compiler_static_GCJ='-Bstatic'
17034 lt_prog_compiler_can_build_shared_GCJ=no
17039 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17040 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17043 # Check to make sure the PIC flag actually works.
17045 if test -n "$lt_prog_compiler_pic_GCJ"; then
17047 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17048 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17049 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 lt_prog_compiler_pic_works_GCJ=no
17053 ac_outfile=conftest.$ac_objext
17054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17055 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17056 # Insert the option either (1) after the last *FLAGS variable, or
17057 # (2) before a word containing "conftest.", or (3) at the end.
17058 # Note that $ac_compile itself does not contain backslashes and begins
17059 # with a dollar sign (not a hyphen), so the echo should work correctly.
17060 # The option is referenced via a variable to avoid confusing sed.
17061 lt_compile=`echo "$ac_compile" | $SED \
17062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17064 -e 's:$: $lt_compiler_flag:'`
17065 (eval echo "\"\$as_me:17065: $lt_compile\"" >&5)
17066 (eval "$lt_compile" 2>conftest.err)
17068 cat conftest.err >&5
17069 echo "$as_me:17069: \$? = $ac_status" >&5
17070 if (exit $ac_status) && test -s "$ac_outfile"; then
17071 # The compiler can only warn and ignore the option if not recognized
17072 # So say no if there are warnings other than the usual output.
17073 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17075 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17076 lt_prog_compiler_pic_works_GCJ=yes
17082 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17083 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17085 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17086 case $lt_prog_compiler_pic_GCJ in
17088 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17091 lt_prog_compiler_pic_GCJ=
17092 lt_prog_compiler_can_build_shared_GCJ=no
17097 # For platforms which do not support PIC, -DPIC is meaningless:
17099 lt_prog_compiler_pic_GCJ=
17102 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17107 # Check to make sure the static flag actually works.
17109 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17110 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17111 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17112 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 lt_prog_compiler_static_works_GCJ=no
17116 save_LDFLAGS="$LDFLAGS"
17117 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17118 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17120 # The linker can only warn and ignore the option if not recognized
17121 # So say no if there are warnings
17122 if test -s conftest.err; then
17123 # Append any errors to the config.log.
17124 cat conftest.err 1>&5
17125 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17127 if diff conftest.exp conftest.er2 >/dev/null; then
17128 lt_prog_compiler_static_works_GCJ=yes
17131 lt_prog_compiler_static_works_GCJ=yes
17135 LDFLAGS="$save_LDFLAGS"
17138 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17139 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17141 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17144 lt_prog_compiler_static_GCJ=
17148 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17149 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17150 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17153 lt_cv_prog_compiler_c_o_GCJ=no
17154 $rm -r conftest 2>/dev/null
17158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17160 lt_compiler_flag="-o out/conftest2.$ac_objext"
17161 # Insert the option either (1) after the last *FLAGS variable, or
17162 # (2) before a word containing "conftest.", or (3) at the end.
17163 # Note that $ac_compile itself does not contain backslashes and begins
17164 # with a dollar sign (not a hyphen), so the echo should work correctly.
17165 lt_compile=`echo "$ac_compile" | $SED \
17166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17168 -e 's:$: $lt_compiler_flag:'`
17169 (eval echo "\"\$as_me:17169: $lt_compile\"" >&5)
17170 (eval "$lt_compile" 2>out/conftest.err)
17172 cat out/conftest.err >&5
17173 echo "$as_me:17173: \$? = $ac_status" >&5
17174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17176 # The compiler can only warn and ignore the option if not recognized
17177 # So say no if there are warnings
17178 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17181 lt_cv_prog_compiler_c_o_GCJ=yes
17186 # SGI C++ compiler will create directory out/ii_files/ for
17187 # template instantiation
17188 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17189 $rm out/* && rmdir out
17195 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17196 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17199 hard_links="nottested"
17200 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17201 # do not overwrite the value of need_locks provided by the user
17202 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17203 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17208 ln conftest.a conftest.b 2>&5 || hard_links=no
17209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17210 { echo "$as_me:$LINENO: result: $hard_links" >&5
17211 echo "${ECHO_T}$hard_links" >&6; }
17212 if test "$hard_links" = no; then
17213 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17214 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17221 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17222 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17225 allow_undefined_flag_GCJ=
17226 enable_shared_with_static_runtimes_GCJ=no
17228 archive_expsym_cmds_GCJ=
17229 old_archive_From_new_cmds_GCJ=
17230 old_archive_from_expsyms_cmds_GCJ=
17231 export_dynamic_flag_spec_GCJ=
17232 whole_archive_flag_spec_GCJ=
17233 thread_safe_flag_spec_GCJ=
17234 hardcode_libdir_flag_spec_GCJ=
17235 hardcode_libdir_flag_spec_ld_GCJ=
17236 hardcode_libdir_separator_GCJ=
17237 hardcode_direct_GCJ=no
17238 hardcode_minus_L_GCJ=no
17239 hardcode_shlibpath_var_GCJ=unsupported
17240 link_all_deplibs_GCJ=unknown
17241 hardcode_automatic_GCJ=no
17243 module_expsym_cmds_GCJ=
17244 always_export_symbols_GCJ=no
17245 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17246 # include_expsyms should be a list of space-separated symbols to be *always*
17247 # included in the symbol list
17248 include_expsyms_GCJ=
17249 # exclude_expsyms can be an extended regexp of symbols to exclude
17250 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17251 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17252 # as well as any symbol that contains `d'.
17253 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17254 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17255 # platforms (ab)use it in PIC code, but their linkers get confused if
17256 # the symbol is explicitly referenced. Since portable code cannot
17257 # rely on this symbol name, it's probably fine to never include it in
17258 # preloaded symbol tables.
17259 extract_expsyms_cmds=
17260 # Just being paranoid about ensuring that cc_basename is set.
17261 for cc_temp in $compiler""; do
17263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17269 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17272 cygwin* | mingw* | pw32*)
17273 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17274 # When not using gcc, we currently assume that we are using
17275 # Microsoft Visual C++.
17276 if test "$GCC" != yes; then
17281 # we just hope/assume this is gcc and not c89 (= MSVC++)
17290 if test "$with_gnu_ld" = yes; then
17291 # If archive_cmds runs LD, not CC, wlarc should be empty
17294 # Set some defaults for GNU ld with shared library support. These
17295 # are reset later if shared libraries are not supported. Putting them
17296 # here allows them to be overridden if necessary.
17297 runpath_var=LD_RUN_PATH
17298 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17299 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17300 # ancient GNU ld didn't support --whole-archive et. al.
17301 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17302 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17304 whole_archive_flag_spec_GCJ=
17306 supports_anon_versioning=no
17307 case `$LD -v 2>/dev/null` in
17308 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17311 *\ 2.11.*) ;; # other 2.11 versions
17312 *) supports_anon_versioning=yes ;;
17315 # See if GNU ld supports shared libraries.
17317 aix3* | aix4* | aix5*)
17318 # On AIX/PPC, the GNU linker is very broken
17319 if test "$host_cpu" != ia64; then
17323 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17324 *** to be unable to reliably create shared libraries on AIX.
17325 *** Therefore, libtool is disabling shared libraries support. If you
17326 *** really care for shared libraries, you may want to modify your PATH
17327 *** so that a non-GNU linker is found, and then restart.
17334 archive_cmds_GCJ='$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)'
17335 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17336 hardcode_minus_L_GCJ=yes
17338 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17339 # that the semantics of dynamic libraries on AmigaOS, at least up
17340 # to version 4, is to share data among multiple programs linked
17341 # with the same dynamic library. Since this doesn't match the
17342 # behavior of shared libraries on other platforms, we can't use
17348 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17349 allow_undefined_flag_GCJ=unsupported
17350 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17351 # support --undefined. This deserves some investigation. FIXME
17352 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17358 cygwin* | mingw* | pw32*)
17359 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17360 # as there is no search path for DLLs.
17361 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17362 allow_undefined_flag_GCJ=unsupported
17363 always_export_symbols_GCJ=no
17364 enable_shared_with_static_runtimes_GCJ=yes
17365 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17367 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17368 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17369 # If the export-symbols file already is a .def file (1st line
17370 # is EXPORTS), use it as is; otherwise, prepend...
17371 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17372 cp $export_symbols $output_objdir/$soname.def;
17374 echo EXPORTS > $output_objdir/$soname.def;
17375 cat $export_symbols >> $output_objdir/$soname.def;
17377 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17384 hardcode_direct_GCJ=no
17385 hardcode_shlibpath_var_GCJ=no
17386 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17387 export_dynamic_flag_spec_GCJ='${wl}-E'
17388 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17389 # Instead, shared libraries are loaded at an image base (0x10000000 by
17390 # default) and relocated if they conflict, which is a slow very memory
17391 # consuming and fragmenting process. To avoid this, we pick a random,
17392 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17393 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17394 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17395 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17399 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17401 case $cc_basename,$host_cpu in
17402 pgcc*) # Portland Group C compiler
17403 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17404 tmp_addflag=' $pic_flag'
17406 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17407 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17408 tmp_addflag=' $pic_flag -Mnomain' ;;
17409 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17410 tmp_addflag=' -i_dynamic' ;;
17411 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17412 tmp_addflag=' -i_dynamic -nofor_main' ;;
17413 ifc* | ifort*) # Intel Fortran compiler
17414 tmp_addflag=' -nofor_main' ;;
17416 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17418 if test $supports_anon_versioning = yes; then
17419 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17420 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17421 $echo "local: *; };" >> $output_objdir/$libname.ver~
17422 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17431 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17434 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17435 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17440 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17444 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17445 *** create shared libraries on Solaris systems. Therefore, libtool
17446 *** is disabling shared libraries support. We urge you to upgrade GNU
17447 *** binutils to release 2.9.1 or newer. Another option is to modify
17448 *** your PATH or compiler configuration so that the native linker is
17449 *** used, and then restart.
17452 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17460 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17461 case `$LD -v 2>&1` in
17462 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17466 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17467 *** reliably create shared libraries on SCO systems. Therefore, libtool
17468 *** is disabling shared libraries support. We urge you to upgrade GNU
17469 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17470 *** your PATH or compiler configuration so that the native linker is
17471 *** used, and then restart.
17476 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17477 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17478 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17479 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17488 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17490 hardcode_direct_GCJ=yes
17491 hardcode_shlibpath_var_GCJ=no
17495 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17496 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17497 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17504 if test "$ld_shlibs_GCJ" = no; then
17506 hardcode_libdir_flag_spec_GCJ=
17507 export_dynamic_flag_spec_GCJ=
17508 whole_archive_flag_spec_GCJ=
17511 # PORTME fill in a description of your system's linker (not GNU ld)
17514 allow_undefined_flag_GCJ=unsupported
17515 always_export_symbols_GCJ=yes
17516 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17517 # Note: this linker hardcodes the directories in LIBPATH if there
17518 # are no directories specified by -L.
17519 hardcode_minus_L_GCJ=yes
17520 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17521 # Neither direct hardcoding nor static linking is supported with a
17523 hardcode_direct_GCJ=unsupported
17528 if test "$host_cpu" = ia64; then
17529 # On IA64, the linker does run time linking by default, so we don't
17530 # have to do anything special.
17531 aix_use_runtimelinking=no
17532 exp_sym_flag='-Bexport'
17535 # If we're using GNU nm, then we don't want the "-C" option.
17536 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17537 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17538 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17540 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17542 aix_use_runtimelinking=no
17544 # Test if we are trying to use run time linking or normal
17545 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17546 # need to do runtime linking.
17547 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17548 for ld_flag in $LDFLAGS; do
17549 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17550 aix_use_runtimelinking=yes
17557 exp_sym_flag='-bexport'
17558 no_entry_flag='-bnoentry'
17561 # When large executables or shared objects are built, AIX ld can
17562 # have problems creating the table of contents. If linking a library
17563 # or program results in "error TOC overflow" add -mminimal-toc to
17564 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17565 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17567 archive_cmds_GCJ=''
17568 hardcode_direct_GCJ=yes
17569 hardcode_libdir_separator_GCJ=':'
17570 link_all_deplibs_GCJ=yes
17572 if test "$GCC" = yes; then
17573 case $host_os in aix4.[012]|aix4.[012].*)
17574 # We only want to do this on AIX 4.2 and lower, the check
17575 # below for broken collect2 doesn't work under 4.3+
17576 collect2name=`${CC} -print-prog-name=collect2`
17577 if test -f "$collect2name" && \
17578 strings "$collect2name" | grep resolve_lib_name >/dev/null
17580 # We have reworked collect2
17581 hardcode_direct_GCJ=yes
17583 # We have old collect2
17584 hardcode_direct_GCJ=unsupported
17585 # It fails to find uninstalled libraries when the uninstalled
17586 # path is not listed in the libpath. Setting hardcode_minus_L
17587 # to unsupported forces relinking
17588 hardcode_minus_L_GCJ=yes
17589 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17590 hardcode_libdir_separator_GCJ=
17594 shared_flag='-shared'
17595 if test "$aix_use_runtimelinking" = yes; then
17596 shared_flag="$shared_flag "'${wl}-G'
17600 if test "$host_cpu" = ia64; then
17601 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17602 # chokes on -Wl,-G. The following line is correct:
17605 if test "$aix_use_runtimelinking" = yes; then
17606 shared_flag='${wl}-G'
17608 shared_flag='${wl}-bM:SRE'
17613 # It seems that -bexpall does not export symbols beginning with
17614 # underscore (_), so it is better to generate a list of symbols to export.
17615 always_export_symbols_GCJ=yes
17616 if test "$aix_use_runtimelinking" = yes; then
17617 # Warning - without using the other runtime loading flags (-brtl),
17618 # -berok will link without error, but may produce a broken library.
17619 allow_undefined_flag_GCJ='-berok'
17620 # Determine the default libpath from the value encoded in an empty executable.
17621 cat >conftest.$ac_ext <<_ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (ac_try="$ac_link"
17638 case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_link") 2>conftest.er1
17645 grep -v '^ *+' conftest.er1 >conftest.err
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } && {
17650 test -z "$ac_c_werror_flag" ||
17651 test ! -s conftest.err
17652 } && test -s conftest$ac_exeext &&
17653 $as_test_x conftest$ac_exeext; then
17655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17657 # Check for a 64-bit object if we didn't find anything.
17658 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17661 echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17668 conftest$ac_exeext conftest.$ac_ext
17669 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17671 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17672 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17674 if test "$host_cpu" = ia64; then
17675 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17676 allow_undefined_flag_GCJ="-z nodefs"
17677 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17679 # Determine the default libpath from the value encoded in an empty executable.
17680 cat >conftest.$ac_ext <<_ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17695 rm -f conftest.$ac_objext conftest$ac_exeext
17696 if { (ac_try="$ac_link"
17697 case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17702 (eval "$ac_link") 2>conftest.er1
17704 grep -v '^ *+' conftest.er1 >conftest.err
17706 cat conftest.err >&5
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); } && {
17709 test -z "$ac_c_werror_flag" ||
17710 test ! -s conftest.err
17711 } && test -s conftest$ac_exeext &&
17712 $as_test_x conftest$ac_exeext; then
17714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17716 # Check for a 64-bit object if we didn't find anything.
17717 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17720 echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17727 conftest$ac_exeext conftest.$ac_ext
17728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17730 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17731 # Warning - without using the other run time loading flags,
17732 # -berok will link without error, but may produce a broken library.
17733 no_undefined_flag_GCJ=' ${wl}-bernotok'
17734 allow_undefined_flag_GCJ=' ${wl}-berok'
17735 # Exported symbols can be pulled into shared objects from archives
17736 whole_archive_flag_spec_GCJ='$convenience'
17737 archive_cmds_need_lc_GCJ=yes
17738 # This is similar to how AIX traditionally builds its shared libraries.
17739 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17745 archive_cmds_GCJ='$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)'
17746 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17747 hardcode_minus_L_GCJ=yes
17748 # see comment about different semantics on the GNU ld section
17753 export_dynamic_flag_spec_GCJ=-rdynamic
17756 cygwin* | mingw* | pw32*)
17757 # When not using gcc, we currently assume that we are using
17758 # Microsoft Visual C++.
17759 # hardcode_libdir_flag_spec is actually meaningless, as there is
17760 # no search path for DLLs.
17761 hardcode_libdir_flag_spec_GCJ=' '
17762 allow_undefined_flag_GCJ=unsupported
17763 # Tell ltmain to make .lib files, not .a files.
17765 # Tell ltmain to make .dll files, not .so files.
17767 # FIXME: Setting linknames here is a bad hack.
17768 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17769 # The linker will automatically build a .lib file if we build a DLL.
17770 old_archive_From_new_cmds_GCJ='true'
17771 # FIXME: Should let the user specify the lib program.
17772 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17773 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17774 enable_shared_with_static_runtimes_GCJ=yes
17777 darwin* | rhapsody*)
17779 rhapsody* | darwin1.[012])
17780 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17783 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17784 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17786 case ${MACOSX_DEPLOYMENT_TARGET} in
17788 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17791 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17797 archive_cmds_need_lc_GCJ=no
17798 hardcode_direct_GCJ=no
17799 hardcode_automatic_GCJ=yes
17800 hardcode_shlibpath_var_GCJ=unsupported
17801 whole_archive_flag_spec_GCJ=''
17802 link_all_deplibs_GCJ=yes
17803 if test "$GCC" = yes ; then
17804 output_verbose_link_cmd='echo'
17805 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17806 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17807 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17808 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17809 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17811 case $cc_basename in
17813 output_verbose_link_cmd='echo'
17814 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17815 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17816 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17817 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17818 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17828 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17829 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17830 hardcode_shlibpath_var_GCJ=no
17837 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17838 # support. Future versions do this automatically, but an explicit c++rt0.o
17839 # does not break anything, and helps significantly (at the cost of a little
17842 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17843 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17844 hardcode_direct_GCJ=yes
17845 hardcode_shlibpath_var_GCJ=no
17848 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17850 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17851 hardcode_direct_GCJ=yes
17852 hardcode_minus_L_GCJ=yes
17853 hardcode_shlibpath_var_GCJ=no
17856 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17857 freebsd* | kfreebsd*-gnu | dragonfly*)
17858 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17859 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17860 hardcode_direct_GCJ=yes
17861 hardcode_shlibpath_var_GCJ=no
17865 if test "$GCC" = yes; then
17866 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17868 archive_cmds_GCJ='$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'
17870 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17871 hardcode_libdir_separator_GCJ=:
17872 hardcode_direct_GCJ=yes
17874 # hardcode_minus_L: Not really in the search PATH,
17875 # but as the default location of the library.
17876 hardcode_minus_L_GCJ=yes
17877 export_dynamic_flag_spec_GCJ='${wl}-E'
17881 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17882 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17884 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17886 if test "$with_gnu_ld" = no; then
17887 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17888 hardcode_libdir_separator_GCJ=:
17890 hardcode_direct_GCJ=yes
17891 export_dynamic_flag_spec_GCJ='${wl}-E'
17893 # hardcode_minus_L: Not really in the search PATH,
17894 # but as the default location of the library.
17895 hardcode_minus_L_GCJ=yes
17900 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17903 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17906 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17909 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17915 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17918 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17921 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17925 if test "$with_gnu_ld" = no; then
17926 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17927 hardcode_libdir_separator_GCJ=:
17931 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17932 hardcode_direct_GCJ=no
17933 hardcode_shlibpath_var_GCJ=no
17936 hardcode_direct_GCJ=yes
17937 export_dynamic_flag_spec_GCJ='${wl}-E'
17939 # hardcode_minus_L: Not really in the search PATH,
17940 # but as the default location of the library.
17941 hardcode_minus_L_GCJ=yes
17947 irix5* | irix6* | nonstopux*)
17948 if test "$GCC" = yes; then
17949 archive_cmds_GCJ='$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'
17951 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17952 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17954 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17955 hardcode_libdir_separator_GCJ=:
17956 link_all_deplibs_GCJ=yes
17960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17961 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17963 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17965 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17966 hardcode_direct_GCJ=yes
17967 hardcode_shlibpath_var_GCJ=no
17971 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17972 hardcode_direct_GCJ=yes
17973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17974 hardcode_libdir_separator_GCJ=:
17975 hardcode_shlibpath_var_GCJ=no
17979 hardcode_direct_GCJ=yes
17980 hardcode_shlibpath_var_GCJ=no
17981 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17982 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17983 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17984 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17985 export_dynamic_flag_spec_GCJ='${wl}-E'
17988 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17989 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17990 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17993 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17994 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18001 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18002 hardcode_minus_L_GCJ=yes
18003 allow_undefined_flag_GCJ=unsupported
18004 archive_cmds_GCJ='$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'
18005 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18009 if test "$GCC" = yes; then
18010 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18011 archive_cmds_GCJ='$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'
18013 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18014 archive_cmds_GCJ='$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'
18016 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18017 hardcode_libdir_separator_GCJ=:
18020 osf4* | osf5*) # as osf3* with the addition of -msym flag
18021 if test "$GCC" = yes; then
18022 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18023 archive_cmds_GCJ='$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'
18024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18026 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18027 archive_cmds_GCJ='$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'
18028 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18029 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18031 # Both c and cxx compiler support -rpath directly
18032 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18034 hardcode_libdir_separator_GCJ=:
18038 no_undefined_flag_GCJ=' -z text'
18039 if test "$GCC" = yes; then
18041 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18042 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18043 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18046 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18047 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18048 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18050 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18051 hardcode_shlibpath_var_GCJ=no
18053 solaris2.[0-5] | solaris2.[0-5].*) ;;
18055 # The compiler driver will combine linker options so we
18056 # cannot just pass the convience library names through
18057 # without $wl, iff we do not link with $LD.
18058 # Luckily, gcc supports the same syntax we need for Sun Studio.
18059 # Supported since Solaris 2.6 (maybe 2.5.1?)
18062 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18064 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18067 link_all_deplibs_GCJ=yes
18071 if test "x$host_vendor" = xsequent; then
18072 # Use $CC to link under sequent, because it throws in some extra .o
18073 # files that make .init and .fini sections work.
18074 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18076 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18078 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18079 hardcode_direct_GCJ=yes
18080 hardcode_minus_L_GCJ=yes
18081 hardcode_shlibpath_var_GCJ=no
18085 case $host_vendor in
18087 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18088 hardcode_direct_GCJ=yes # is this really true???
18091 ## LD is ld it makes a PLAMLIB
18092 ## CC just makes a GrossModule.
18093 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18094 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18095 hardcode_direct_GCJ=no
18098 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18099 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18102 runpath_var='LD_RUN_PATH'
18103 hardcode_shlibpath_var_GCJ=no
18107 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18108 hardcode_shlibpath_var_GCJ=no
18109 export_dynamic_flag_spec_GCJ='-Bexport'
18113 if test -d /usr/nec; then
18114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18115 hardcode_shlibpath_var_GCJ=no
18116 runpath_var=LD_RUN_PATH
18117 hardcode_runpath_var=yes
18122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18123 no_undefined_flag_GCJ='${wl}-z,text'
18124 archive_cmds_need_lc_GCJ=no
18125 hardcode_shlibpath_var_GCJ=no
18126 runpath_var='LD_RUN_PATH'
18128 if test "$GCC" = yes; then
18129 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18130 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18132 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18133 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18137 sysv5* | sco3.2v5* | sco5v6*)
18138 # Note: We can NOT use -z defs as we might desire, because we do not
18139 # link with -lc, and that would cause any symbols used from libc to
18140 # always be unresolved, which means just about no library would
18141 # ever link correctly. If we're not using GNU ld we use -z text
18142 # though, which does catch some bad symbols but isn't as heavy-handed
18144 no_undefined_flag_GCJ='${wl}-z,text'
18145 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18146 archive_cmds_need_lc_GCJ=no
18147 hardcode_shlibpath_var_GCJ=no
18148 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18149 hardcode_libdir_separator_GCJ=':'
18150 link_all_deplibs_GCJ=yes
18151 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18152 runpath_var='LD_RUN_PATH'
18154 if test "$GCC" = yes; then
18155 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18156 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18158 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18159 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18164 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18165 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18166 hardcode_shlibpath_var_GCJ=no
18175 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18176 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18177 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18180 # Do we need to explicitly link libc?
18182 case "x$archive_cmds_need_lc_GCJ" in
18184 # Assume -lc should be added
18185 archive_cmds_need_lc_GCJ=yes
18187 if test "$enable_shared" = yes && test "$GCC" = yes; then
18188 case $archive_cmds_GCJ in
18190 # FIXME: we may have to deal with multi-command sequences.
18193 # Test whether the compiler implicitly links with -lc since on some
18194 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18195 # to ld, don't add -lc before -lgcc.
18196 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18197 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18202 (eval $ac_compile) 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } 2>conftest.err; then
18208 libobjs=conftest.$ac_objext
18210 wl=$lt_prog_compiler_wl_GCJ
18211 pic_flag=$lt_prog_compiler_pic_GCJ
18217 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18218 allow_undefined_flag_GCJ=
18219 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18220 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }
18225 archive_cmds_need_lc_GCJ=no
18227 archive_cmds_need_lc_GCJ=yes
18229 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18231 cat conftest.err 1>&5
18234 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18235 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18242 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18243 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18244 library_names_spec=
18245 libname_spec='lib$name'
18249 postuninstall_cmds=
18253 shlibpath_overrides_runpath=unknown
18255 dynamic_linker="$host_os ld.so"
18256 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18257 if test "$GCC" = yes; then
18258 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18259 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18260 # if the path contains ";" then we assume it to be the separator
18261 # otherwise default to the standard path separator (i.e. ":") - it is
18262 # assumed that no part of a normal pathname contains ";" but that should
18263 # okay in the real world where ";" in dirpaths is itself problematic.
18264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18269 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18271 need_lib_prefix=unknown
18272 hardcode_into_libs=no
18274 # when you set need_version to no, make sure it does not cause -set_version
18275 # flags to be left without arguments
18276 need_version=unknown
18281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18282 shlibpath_var=LIBPATH
18284 # AIX 3 has no versioning support, so we append a major version to the name.
18285 soname_spec='${libname}${release}${shared_ext}$major'
18292 hardcode_into_libs=yes
18293 if test "$host_cpu" = ia64; then
18294 # AIX 5 supports IA64
18295 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18296 shlibpath_var=LD_LIBRARY_PATH
18298 # With GCC up to 2.95.x, collect2 would create an import file
18299 # for dependence libraries. The import file would start with
18300 # the line `#! .'. This would cause the generated library to
18301 # depend on `.', always an invalid library. This was fixed in
18302 # development snapshots of GCC prior to 3.0.
18304 aix4 | aix4.[01] | aix4.[01].*)
18305 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18307 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18310 can_build_shared=no
18314 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18315 # soname into executable. Probably we can add versioning support to
18316 # collect2, so additional links can be useful in future.
18317 if test "$aix_use_runtimelinking" = yes; then
18318 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18319 # instead of lib<name>.a to let people know that these are not
18320 # typical AIX shared libraries.
18321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18323 # We preserve .a as extension for shared libraries through AIX4.2
18324 # and later when we are not doing run time linking.
18325 library_names_spec='${libname}${release}.a $libname.a'
18326 soname_spec='${libname}${release}${shared_ext}$major'
18328 shlibpath_var=LIBPATH
18333 library_names_spec='$libname.ixlibrary $libname.a'
18334 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18335 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'
18339 library_names_spec='${libname}${shared_ext}'
18340 dynamic_linker="$host_os ld.so"
18341 shlibpath_var=LIBRARY_PATH
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18348 soname_spec='${libname}${release}${shared_ext}$major'
18349 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18350 shlibpath_var=LD_LIBRARY_PATH
18351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18353 # the default ld.so.conf also contains /usr/contrib/lib and
18354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18355 # libtool to hard-code these into programs
18358 cygwin* | mingw* | pw32*)
18359 version_type=windows
18364 case $GCC,$host_os in
18365 yes,cygwin* | yes,mingw* | yes,pw32*)
18366 library_names_spec='$libname.dll.a'
18367 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18368 postinstall_cmds='base_file=`basename \${file}`~
18369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18370 dldir=$destdir/`dirname \$dlpath`~
18371 test -d \$dldir || mkdir -p \$dldir~
18372 $install_prog $dir/$dlname \$dldir/$dlname~
18373 chmod a+x \$dldir/$dlname'
18374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18375 dlpath=$dir/\$dldll~
18377 shlibpath_overrides_runpath=yes
18381 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18382 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18383 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18386 # MinGW DLLs use traditional 'lib' prefix
18387 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18389 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18390 # It is most probably a Windows format PATH printed by
18391 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18392 # path with ; separators, and with drive letters. We can handle the
18393 # drive letters (cygwin fileutils understands them), so leave them,
18394 # especially as we might pass files found there to a mingw objdump,
18395 # which wouldn't understand a cygwinified path. Ahh.
18396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18402 # pw32 DLLs use 'pw' prefix rather than 'lib'
18403 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18409 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18412 dynamic_linker='Win32 ld.exe'
18413 # FIXME: first we should search . and the directory the executable is in
18417 darwin* | rhapsody*)
18418 dynamic_linker="$host_os dyld"
18419 version_type=darwin
18422 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18423 soname_spec='${libname}${release}${major}$shared_ext'
18424 shlibpath_overrides_runpath=yes
18425 shlibpath_var=DYLD_LIBRARY_PATH
18426 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18427 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18428 if test "$GCC" = yes; then
18429 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18431 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18441 soname_spec='${libname}${release}${shared_ext}$major'
18442 shlibpath_var=LD_LIBRARY_PATH
18453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18454 soname_spec='${libname}${release}${shared_ext}$major'
18455 shlibpath_var=LD_LIBRARY_PATH
18456 shlibpath_overrides_runpath=no
18457 hardcode_into_libs=yes
18458 dynamic_linker='GNU ld.so'
18461 freebsd* | dragonfly*)
18462 # DragonFly does not have aout. When/if they implement a new
18463 # versioning mechanism, adjust this.
18464 if test -x /usr/bin/objformat; then
18465 objformat=`/usr/bin/objformat`
18468 freebsd[123]*) objformat=aout ;;
18469 *) objformat=elf ;;
18472 version_type=freebsd-$objformat
18473 case $version_type in
18475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18484 shlibpath_var=LD_LIBRARY_PATH
18487 shlibpath_overrides_runpath=yes
18489 freebsd3.[01]* | freebsdelf3.[01]*)
18490 shlibpath_overrides_runpath=yes
18491 hardcode_into_libs=yes
18493 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18494 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18495 shlibpath_overrides_runpath=no
18496 hardcode_into_libs=yes
18498 freebsd*) # from 4.6 on
18499 shlibpath_overrides_runpath=yes
18500 hardcode_into_libs=yes
18509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18510 soname_spec='${libname}${release}${shared_ext}$major'
18511 shlibpath_var=LD_LIBRARY_PATH
18512 hardcode_into_libs=yes
18515 hpux9* | hpux10* | hpux11*)
18516 # Give a soname corresponding to the major version so that dld.sl refuses to
18517 # link against other versions.
18524 hardcode_into_libs=yes
18525 dynamic_linker="$host_os dld.so"
18526 shlibpath_var=LD_LIBRARY_PATH
18527 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 if test "X$HPUX_IA64_MODE" = X32; then
18531 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18533 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18539 hardcode_into_libs=yes
18540 dynamic_linker="$host_os dld.sl"
18541 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544 soname_spec='${libname}${release}${shared_ext}$major'
18545 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18550 dynamic_linker="$host_os dld.sl"
18551 shlibpath_var=SHLIB_PATH
18552 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18554 soname_spec='${libname}${release}${shared_ext}$major'
18557 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18558 postinstall_cmds='chmod 555 $lib'
18565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18566 soname_spec='${libname}${release}${shared_ext}$major'
18567 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18568 shlibpath_var=LD_LIBRARY_PATH
18569 shlibpath_overrides_runpath=no
18570 hardcode_into_libs=yes
18573 irix5* | irix6* | nonstopux*)
18575 nonstopux*) version_type=nonstopux ;;
18577 if test "$lt_cv_prog_gnu_ld" = yes; then
18585 soname_spec='${libname}${release}${shared_ext}$major'
18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18588 irix5* | nonstopux*)
18589 libsuff= shlibsuff=
18592 case $LD in # libtool.m4 will add one of these switches to LD
18593 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18594 libsuff= shlibsuff= libmagic=32-bit;;
18595 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18596 libsuff=32 shlibsuff=N32 libmagic=N32;;
18597 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18598 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18599 *) libsuff= shlibsuff= libmagic=never-match;;
18603 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18604 shlibpath_overrides_runpath=no
18605 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18606 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18607 hardcode_into_libs=yes
18610 # No shared lib support for Linux oldld, aout, or coff.
18611 linux*oldld* | linux*aout* | linux*coff*)
18615 # This must be Linux ELF.
18620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18621 soname_spec='${libname}${release}${shared_ext}$major'
18622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18623 shlibpath_var=LD_LIBRARY_PATH
18624 shlibpath_overrides_runpath=no
18625 # This implies no fast_install, which is unacceptable.
18626 # Some rework will be needed to allow for fast_install
18627 # before this can be enabled.
18628 hardcode_into_libs=yes
18630 # find out which ABI we are using
18632 case "$host_cpu" in
18633 x86_64*|s390x*|powerpc64*)
18634 echo '#line 18634 "configure"' > conftest.$ac_ext
18635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18636 (eval $ac_compile) 2>&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; then
18640 case `/usr/bin/file conftest.$ac_objext` in
18643 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18651 # Append ld.so.conf contents to the search path
18652 if test -f /etc/ld.so.conf; then
18653 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18654 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18657 # We used to test for /lib/ld.so.1 and disable shared libraries on
18658 # powerpc, because MkLinux only supported shared libraries with the
18659 # GNU dynamic linker. Since this was broken with cross compilers,
18660 # most powerpc-linux boxes support dynamic linking these days and
18661 # people can always --disable-shared, the test was removed, and we
18662 # assume the GNU/Linux dynamic linker is in use.
18663 dynamic_linker='GNU/Linux ld.so'
18670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18671 soname_spec='${libname}${release}${shared_ext}$major'
18672 shlibpath_var=LD_LIBRARY_PATH
18673 shlibpath_overrides_runpath=no
18674 hardcode_into_libs=yes
18675 dynamic_linker='GNU ld.so'
18682 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18685 dynamic_linker='NetBSD (a.out) ld.so'
18687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18688 soname_spec='${libname}${release}${shared_ext}$major'
18689 dynamic_linker='NetBSD ld.elf_so'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 shlibpath_overrides_runpath=yes
18693 hardcode_into_libs=yes
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699 shlibpath_var=LD_LIBRARY_PATH
18700 shlibpath_overrides_runpath=yes
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18708 soname_spec='${libname}${release}${shared_ext}$major'
18709 shlibpath_var=LD_LIBRARY_PATH
18710 shlibpath_overrides_runpath=yes
18715 sys_lib_dlsearch_path_spec="/usr/lib"
18717 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18719 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18720 *) need_version=no ;;
18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18724 shlibpath_var=LD_LIBRARY_PATH
18725 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18727 openbsd2.[89] | openbsd2.[89].*)
18728 shlibpath_overrides_runpath=no
18731 shlibpath_overrides_runpath=yes
18735 shlibpath_overrides_runpath=yes
18740 libname_spec='$name'
18743 library_names_spec='$libname${shared_ext} $libname.a'
18744 dynamic_linker='OS/2 ld.exe'
18745 shlibpath_var=LIBPATH
18748 osf3* | osf4* | osf5*)
18752 soname_spec='${libname}${release}${shared_ext}$major'
18753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18754 shlibpath_var=LD_LIBRARY_PATH
18755 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18756 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18764 soname_spec='${libname}${release}${shared_ext}$major'
18765 shlibpath_var=LD_LIBRARY_PATH
18766 shlibpath_overrides_runpath=yes
18767 hardcode_into_libs=yes
18768 # ldd complains unless libraries are executable
18769 postinstall_cmds='chmod +x $lib'
18774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18775 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18776 shlibpath_var=LD_LIBRARY_PATH
18777 shlibpath_overrides_runpath=yes
18778 if test "$with_gnu_ld" = yes; then
18786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18787 soname_spec='${libname}${release}${shared_ext}$major'
18788 shlibpath_var=LD_LIBRARY_PATH
18789 case $host_vendor in
18791 shlibpath_overrides_runpath=no
18793 export_dynamic_flag_spec='${wl}-Blargedynsym'
18794 runpath_var=LD_RUN_PATH
18802 shlibpath_overrides_runpath=no
18803 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18809 if test -d /usr/nec ;then
18811 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18812 soname_spec='$libname${shared_ext}.$major'
18813 shlibpath_var=LD_LIBRARY_PATH
18817 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18818 version_type=freebsd-elf
18821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18822 soname_spec='${libname}${release}${shared_ext}$major'
18823 shlibpath_var=LD_LIBRARY_PATH
18824 hardcode_into_libs=yes
18825 if test "$with_gnu_ld" = yes; then
18826 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18827 shlibpath_overrides_runpath=no
18829 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18830 shlibpath_overrides_runpath=yes
18833 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18837 sys_lib_dlsearch_path_spec='/usr/lib'
18842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18843 soname_spec='${libname}${release}${shared_ext}$major'
18844 shlibpath_var=LD_LIBRARY_PATH
18851 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18852 echo "${ECHO_T}$dynamic_linker" >&6; }
18853 test "$dynamic_linker" = no && can_build_shared=no
18855 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18856 if test "$GCC" = yes; then
18857 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18860 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18861 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18862 hardcode_action_GCJ=
18863 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18864 test -n "$runpath_var_GCJ" || \
18865 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18867 # We can hardcode non-existant directories.
18868 if test "$hardcode_direct_GCJ" != no &&
18869 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18870 # have to relink, otherwise we might link with an installed library
18871 # when we should be linking with a yet-to-be-installed one
18872 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18873 test "$hardcode_minus_L_GCJ" != no; then
18874 # Linking always hardcodes the temporary library directory.
18875 hardcode_action_GCJ=relink
18877 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18878 hardcode_action_GCJ=immediate
18881 # We cannot hardcode anything, or else we can only hardcode existing
18883 hardcode_action_GCJ=unsupported
18885 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18886 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18888 if test "$hardcode_action_GCJ" = relink; then
18889 # Fast installation is not supported
18890 enable_fast_install=no
18891 elif test "$shlibpath_overrides_runpath" = yes ||
18892 test "$enable_shared" = no; then
18893 # Fast installation is not necessary
18894 enable_fast_install=needless
18898 # The else clause should only fire when bootstrapping the
18899 # libtool distribution, otherwise you forgot to ship ltmain.sh
18900 # with your package, and you will get complaints that there are
18901 # no rules to generate ltmain.sh.
18902 if test -f "$ltmain"; then
18903 # See if we are running on zsh, and set the options which allow our commands through
18904 # without removal of \ escapes.
18905 if test -n "${ZSH_VERSION+set}" ; then
18906 setopt NO_GLOB_SUBST
18908 # Now quote all the things that may contain metacharacters while being
18909 # careful not to overquote the AC_SUBSTed values. We take copies of the
18910 # variables and quote the copies for generation of the libtool script.
18911 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18913 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18914 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18915 deplibs_check_method reload_flag reload_cmds need_locks \
18916 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18917 lt_cv_sys_global_symbol_to_c_name_address \
18918 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18919 old_postinstall_cmds old_postuninstall_cmds \
18923 lt_prog_compiler_wl_GCJ \
18924 lt_prog_compiler_pic_GCJ \
18925 lt_prog_compiler_static_GCJ \
18926 lt_prog_compiler_no_builtin_flag_GCJ \
18927 export_dynamic_flag_spec_GCJ \
18928 thread_safe_flag_spec_GCJ \
18929 whole_archive_flag_spec_GCJ \
18930 enable_shared_with_static_runtimes_GCJ \
18931 old_archive_cmds_GCJ \
18932 old_archive_from_new_cmds_GCJ \
18933 predep_objects_GCJ \
18934 postdep_objects_GCJ \
18937 compiler_lib_search_path_GCJ \
18939 archive_expsym_cmds_GCJ \
18940 postinstall_cmds_GCJ \
18941 postuninstall_cmds_GCJ \
18942 old_archive_from_expsyms_cmds_GCJ \
18943 allow_undefined_flag_GCJ \
18944 no_undefined_flag_GCJ \
18945 export_symbols_cmds_GCJ \
18946 hardcode_libdir_flag_spec_GCJ \
18947 hardcode_libdir_flag_spec_ld_GCJ \
18948 hardcode_libdir_separator_GCJ \
18949 hardcode_automatic_GCJ \
18951 module_expsym_cmds_GCJ \
18952 lt_cv_prog_compiler_c_o_GCJ \
18953 exclude_expsyms_GCJ \
18954 include_expsyms_GCJ; do
18957 old_archive_cmds_GCJ | \
18958 old_archive_from_new_cmds_GCJ | \
18959 archive_cmds_GCJ | \
18960 archive_expsym_cmds_GCJ | \
18961 module_cmds_GCJ | \
18962 module_expsym_cmds_GCJ | \
18963 old_archive_from_expsyms_cmds_GCJ | \
18964 export_symbols_cmds_GCJ | \
18965 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18966 postinstall_cmds | postuninstall_cmds | \
18967 old_postinstall_cmds | old_postuninstall_cmds | \
18968 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18969 # Double-quote double-evaled strings.
18970 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18973 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18979 *'\$0 --fallback-echo"')
18980 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18986 cat <<__EOF__ >> "$cfgfile"
18987 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18989 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18991 # Shell to use when invoking shell scripts.
18994 # Whether or not to build shared libraries.
18995 build_libtool_libs=$enable_shared
18997 # Whether or not to build static libraries.
18998 build_old_libs=$enable_static
19000 # Whether or not to add -lc for building shared libraries.
19001 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19003 # Whether or not to disallow shared libs when runtime libs are static
19004 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19006 # Whether or not to optimize for fast installation.
19007 fast_install=$enable_fast_install
19010 host_alias=$host_alias
19014 # The build system.
19015 build_alias=$build_alias
19019 # An echo program that does not interpret backslashes.
19024 AR_FLAGS=$lt_AR_FLAGS
19029 # LTCC compiler flags.
19030 LTCFLAGS=$lt_LTCFLAGS
19032 # A language-specific compiler.
19033 CC=$lt_compiler_GCJ
19035 # Is the compiler the GNU C compiler?
19038 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19039 gcc_ver=\`gcc -dumpversion\`
19044 # The linker used to build libraries.
19047 # Whether we need hard or soft links.
19050 # A BSD-compatible nm program.
19053 # A symbol stripping program
19056 # Used to examine libraries when file_magic_cmd begins "file"
19057 MAGIC_CMD=$MAGIC_CMD
19059 # Used on cygwin: DLL creation program.
19062 # Used on cygwin: object dumper.
19065 # Used on cygwin: assembler.
19068 # The name of the directory that contains temporary libtool files.
19071 # How to create reloadable object files.
19072 reload_flag=$lt_reload_flag
19073 reload_cmds=$lt_reload_cmds
19075 # How to pass a linker flag through the compiler.
19076 wl=$lt_lt_prog_compiler_wl_GCJ
19078 # Object file suffix (normally "o").
19079 objext="$ac_objext"
19081 # Old archive suffix (normally "a").
19084 # Shared library suffix (normally ".so").
19085 shrext_cmds='$shrext_cmds'
19087 # Executable file suffix (normally "").
19090 # Additional compiler flags for building library objects.
19091 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19094 # What is the maximum length of a command?
19095 max_cmd_len=$lt_cv_sys_max_cmd_len
19097 # Does compiler simultaneously support -c and -o options?
19098 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19100 # Must we lock files when doing compilation?
19101 need_locks=$lt_need_locks
19103 # Do we need the lib prefix for modules?
19104 need_lib_prefix=$need_lib_prefix
19106 # Do we need a version for libraries?
19107 need_version=$need_version
19109 # Whether dlopen is supported.
19110 dlopen_support=$enable_dlopen
19112 # Whether dlopen of programs is supported.
19113 dlopen_self=$enable_dlopen_self
19115 # Whether dlopen of statically linked programs is supported.
19116 dlopen_self_static=$enable_dlopen_self_static
19118 # Compiler flag to prevent dynamic linking.
19119 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19121 # Compiler flag to turn off builtin functions.
19122 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19124 # Compiler flag to allow reflexive dlopens.
19125 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19127 # Compiler flag to generate shared objects directly from archives.
19128 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19130 # Compiler flag to generate thread-safe objects.
19131 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19133 # Library versioning type.
19134 version_type=$version_type
19136 # Format of library name prefix.
19137 libname_spec=$lt_libname_spec
19139 # List of archive names. First name is the real one, the rest are links.
19140 # The last name is the one that the linker finds with -lNAME.
19141 library_names_spec=$lt_library_names_spec
19143 # The coded name of the library, if different from the real name.
19144 soname_spec=$lt_soname_spec
19146 # Commands used to build and install an old-style archive.
19148 old_archive_cmds=$lt_old_archive_cmds_GCJ
19149 old_postinstall_cmds=$lt_old_postinstall_cmds
19150 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19152 # Create an old-style archive from a shared archive.
19153 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19155 # Create a temporary old-style archive to link instead of a shared archive.
19156 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19158 # Commands used to build and install a shared archive.
19159 archive_cmds=$lt_archive_cmds_GCJ
19160 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19161 postinstall_cmds=$lt_postinstall_cmds
19162 postuninstall_cmds=$lt_postuninstall_cmds
19164 # Commands used to build a loadable module (assumed same as above if empty)
19165 module_cmds=$lt_module_cmds_GCJ
19166 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19168 # Commands to strip libraries.
19169 old_striplib=$lt_old_striplib
19170 striplib=$lt_striplib
19172 # Dependencies to place before the objects being linked to create a
19174 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19176 # Dependencies to place after the objects being linked to create a
19178 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19180 # Dependencies to place before the objects being linked to create a
19182 predeps=$lt_predeps_GCJ
19184 # Dependencies to place after the objects being linked to create a
19186 postdeps=$lt_postdeps_GCJ
19188 # The library search path used internally by the compiler when linking
19189 # a shared library.
19190 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19192 # Method to check whether dependent libraries are shared objects.
19193 deplibs_check_method=$lt_deplibs_check_method
19195 # Command to use when deplibs_check_method == file_magic.
19196 file_magic_cmd=$lt_file_magic_cmd
19198 # Flag that allows shared libraries with undefined symbols to be built.
19199 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19201 # Flag that forces no undefined symbols.
19202 no_undefined_flag=$lt_no_undefined_flag_GCJ
19204 # Commands used to finish a libtool library installation in a directory.
19205 finish_cmds=$lt_finish_cmds
19207 # Same as above, but a single script fragment to be evaled but not shown.
19208 finish_eval=$lt_finish_eval
19210 # Take the output of nm and produce a listing of raw symbols and C names.
19211 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19213 # Transform the output of nm in a proper C declaration
19214 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19216 # Transform the output of nm in a C name address pair
19217 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19219 # This is the shared library runtime path variable.
19220 runpath_var=$runpath_var
19222 # This is the shared library path variable.
19223 shlibpath_var=$shlibpath_var
19225 # Is shlibpath searched before the hard-coded library search path?
19226 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19228 # How to hardcode a shared library path into an executable.
19229 hardcode_action=$hardcode_action_GCJ
19231 # Whether we should hardcode library paths into libraries.
19232 hardcode_into_libs=$hardcode_into_libs
19234 # Flag to hardcode \$libdir into a binary during linking.
19235 # This must work even if \$libdir does not exist.
19236 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19238 # If ld is used when linking, flag to hardcode \$libdir into
19239 # a binary during linking. This must work even if \$libdir does
19241 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19243 # Whether we need a single -rpath flag with a separated argument.
19244 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19246 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19247 # resulting binary.
19248 hardcode_direct=$hardcode_direct_GCJ
19250 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19251 # resulting binary.
19252 hardcode_minus_L=$hardcode_minus_L_GCJ
19254 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19255 # the resulting binary.
19256 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19258 # Set to yes if building a shared library automatically hardcodes DIR into the library
19259 # and all subsequent libraries and executables linked against it.
19260 hardcode_automatic=$hardcode_automatic_GCJ
19262 # Variables whose values should be saved in libtool wrapper scripts and
19263 # restored at relink time.
19264 variables_saved_for_relink="$variables_saved_for_relink"
19266 # Whether libtool must link a program against all its dependency libraries.
19267 link_all_deplibs=$link_all_deplibs_GCJ
19269 # Compile-time system search path for libraries
19270 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19272 # Run-time system search path for libraries
19273 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19275 # Fix the shell variable \$srcfile for the compiler.
19276 fix_srcfile_path="$fix_srcfile_path_GCJ"
19278 # Set to yes if exported symbols are required.
19279 always_export_symbols=$always_export_symbols_GCJ
19281 # The commands to list exported symbols.
19282 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19284 # The commands to extract the exported symbol list from a shared archive.
19285 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19287 # Symbols that should not be listed in the preloaded symbols.
19288 exclude_expsyms=$lt_exclude_expsyms_GCJ
19290 # Symbols that must always be exported.
19291 include_expsyms=$lt_include_expsyms_GCJ
19293 # ### END LIBTOOL TAG CONFIG: $tagname
19299 # If there is no Makefile yet, we rely on a make rule to execute
19300 # `config.status --recheck' to rerun these tests and create the
19301 # libtool script then.
19302 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19303 if test -f "$ltmain_in"; then
19304 test -f Makefile && make "$ltmain"
19310 ac_cpp='$CPP $CPPFLAGS'
19311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19325 # Source file extension for RC test sources.
19328 # Object file extension for compiled RC test sources.
19332 # Code to be used in simple compile tests
19333 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19335 # Code to be used in simple link tests
19336 lt_simple_link_test_code="$lt_simple_compile_test_code"
19338 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19340 # If no C compiler was specified, use CC.
19343 # If no C compiler flags were specified, use CFLAGS.
19344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19346 # Allow CC to be a program name with arguments.
19350 # save warnings/boilerplate of simple test code
19351 ac_outfile=conftest.$ac_objext
19352 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19353 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19354 _lt_compiler_boilerplate=`cat conftest.err`
19357 ac_outfile=conftest.$ac_objext
19358 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19359 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19360 _lt_linker_boilerplate=`cat conftest.err`
19364 # Allow CC to be a program name with arguments.
19369 for cc_temp in $compiler""; do
19371 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19372 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19377 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19379 lt_cv_prog_compiler_c_o_RC=yes
19381 # The else clause should only fire when bootstrapping the
19382 # libtool distribution, otherwise you forgot to ship ltmain.sh
19383 # with your package, and you will get complaints that there are
19384 # no rules to generate ltmain.sh.
19385 if test -f "$ltmain"; then
19386 # See if we are running on zsh, and set the options which allow our commands through
19387 # without removal of \ escapes.
19388 if test -n "${ZSH_VERSION+set}" ; then
19389 setopt NO_GLOB_SUBST
19391 # Now quote all the things that may contain metacharacters while being
19392 # careful not to overquote the AC_SUBSTed values. We take copies of the
19393 # variables and quote the copies for generation of the libtool script.
19394 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19396 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19397 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19398 deplibs_check_method reload_flag reload_cmds need_locks \
19399 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19400 lt_cv_sys_global_symbol_to_c_name_address \
19401 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19402 old_postinstall_cmds old_postuninstall_cmds \
19406 lt_prog_compiler_wl_RC \
19407 lt_prog_compiler_pic_RC \
19408 lt_prog_compiler_static_RC \
19409 lt_prog_compiler_no_builtin_flag_RC \
19410 export_dynamic_flag_spec_RC \
19411 thread_safe_flag_spec_RC \
19412 whole_archive_flag_spec_RC \
19413 enable_shared_with_static_runtimes_RC \
19414 old_archive_cmds_RC \
19415 old_archive_from_new_cmds_RC \
19416 predep_objects_RC \
19417 postdep_objects_RC \
19420 compiler_lib_search_path_RC \
19422 archive_expsym_cmds_RC \
19423 postinstall_cmds_RC \
19424 postuninstall_cmds_RC \
19425 old_archive_from_expsyms_cmds_RC \
19426 allow_undefined_flag_RC \
19427 no_undefined_flag_RC \
19428 export_symbols_cmds_RC \
19429 hardcode_libdir_flag_spec_RC \
19430 hardcode_libdir_flag_spec_ld_RC \
19431 hardcode_libdir_separator_RC \
19432 hardcode_automatic_RC \
19434 module_expsym_cmds_RC \
19435 lt_cv_prog_compiler_c_o_RC \
19436 exclude_expsyms_RC \
19437 include_expsyms_RC; do
19440 old_archive_cmds_RC | \
19441 old_archive_from_new_cmds_RC | \
19442 archive_cmds_RC | \
19443 archive_expsym_cmds_RC | \
19445 module_expsym_cmds_RC | \
19446 old_archive_from_expsyms_cmds_RC | \
19447 export_symbols_cmds_RC | \
19448 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19449 postinstall_cmds | postuninstall_cmds | \
19450 old_postinstall_cmds | old_postuninstall_cmds | \
19451 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19452 # Double-quote double-evaled strings.
19453 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19456 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19462 *'\$0 --fallback-echo"')
19463 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19469 cat <<__EOF__ >> "$cfgfile"
19470 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19472 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19474 # Shell to use when invoking shell scripts.
19477 # Whether or not to build shared libraries.
19478 build_libtool_libs=$enable_shared
19480 # Whether or not to build static libraries.
19481 build_old_libs=$enable_static
19483 # Whether or not to add -lc for building shared libraries.
19484 build_libtool_need_lc=$archive_cmds_need_lc_RC
19486 # Whether or not to disallow shared libs when runtime libs are static
19487 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19489 # Whether or not to optimize for fast installation.
19490 fast_install=$enable_fast_install
19493 host_alias=$host_alias
19497 # The build system.
19498 build_alias=$build_alias
19502 # An echo program that does not interpret backslashes.
19507 AR_FLAGS=$lt_AR_FLAGS
19512 # LTCC compiler flags.
19513 LTCFLAGS=$lt_LTCFLAGS
19515 # A language-specific compiler.
19518 # Is the compiler the GNU C compiler?
19521 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
19522 gcc_ver=\`gcc -dumpversion\`
19527 # The linker used to build libraries.
19530 # Whether we need hard or soft links.
19533 # A BSD-compatible nm program.
19536 # A symbol stripping program
19539 # Used to examine libraries when file_magic_cmd begins "file"
19540 MAGIC_CMD=$MAGIC_CMD
19542 # Used on cygwin: DLL creation program.
19545 # Used on cygwin: object dumper.
19548 # Used on cygwin: assembler.
19551 # The name of the directory that contains temporary libtool files.
19554 # How to create reloadable object files.
19555 reload_flag=$lt_reload_flag
19556 reload_cmds=$lt_reload_cmds
19558 # How to pass a linker flag through the compiler.
19559 wl=$lt_lt_prog_compiler_wl_RC
19561 # Object file suffix (normally "o").
19562 objext="$ac_objext"
19564 # Old archive suffix (normally "a").
19567 # Shared library suffix (normally ".so").
19568 shrext_cmds='$shrext_cmds'
19570 # Executable file suffix (normally "").
19573 # Additional compiler flags for building library objects.
19574 pic_flag=$lt_lt_prog_compiler_pic_RC
19577 # What is the maximum length of a command?
19578 max_cmd_len=$lt_cv_sys_max_cmd_len
19580 # Does compiler simultaneously support -c and -o options?
19581 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19583 # Must we lock files when doing compilation?
19584 need_locks=$lt_need_locks
19586 # Do we need the lib prefix for modules?
19587 need_lib_prefix=$need_lib_prefix
19589 # Do we need a version for libraries?
19590 need_version=$need_version
19592 # Whether dlopen is supported.
19593 dlopen_support=$enable_dlopen
19595 # Whether dlopen of programs is supported.
19596 dlopen_self=$enable_dlopen_self
19598 # Whether dlopen of statically linked programs is supported.
19599 dlopen_self_static=$enable_dlopen_self_static
19601 # Compiler flag to prevent dynamic linking.
19602 link_static_flag=$lt_lt_prog_compiler_static_RC
19604 # Compiler flag to turn off builtin functions.
19605 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19607 # Compiler flag to allow reflexive dlopens.
19608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19610 # Compiler flag to generate shared objects directly from archives.
19611 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19613 # Compiler flag to generate thread-safe objects.
19614 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19616 # Library versioning type.
19617 version_type=$version_type
19619 # Format of library name prefix.
19620 libname_spec=$lt_libname_spec
19622 # List of archive names. First name is the real one, the rest are links.
19623 # The last name is the one that the linker finds with -lNAME.
19624 library_names_spec=$lt_library_names_spec
19626 # The coded name of the library, if different from the real name.
19627 soname_spec=$lt_soname_spec
19629 # Commands used to build and install an old-style archive.
19631 old_archive_cmds=$lt_old_archive_cmds_RC
19632 old_postinstall_cmds=$lt_old_postinstall_cmds
19633 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19635 # Create an old-style archive from a shared archive.
19636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19638 # Create a temporary old-style archive to link instead of a shared archive.
19639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19641 # Commands used to build and install a shared archive.
19642 archive_cmds=$lt_archive_cmds_RC
19643 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19644 postinstall_cmds=$lt_postinstall_cmds
19645 postuninstall_cmds=$lt_postuninstall_cmds
19647 # Commands used to build a loadable module (assumed same as above if empty)
19648 module_cmds=$lt_module_cmds_RC
19649 module_expsym_cmds=$lt_module_expsym_cmds_RC
19651 # Commands to strip libraries.
19652 old_striplib=$lt_old_striplib
19653 striplib=$lt_striplib
19655 # Dependencies to place before the objects being linked to create a
19657 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19659 # Dependencies to place after the objects being linked to create a
19661 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19663 # Dependencies to place before the objects being linked to create a
19665 predeps=$lt_predeps_RC
19667 # Dependencies to place after the objects being linked to create a
19669 postdeps=$lt_postdeps_RC
19671 # The library search path used internally by the compiler when linking
19672 # a shared library.
19673 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19675 # Method to check whether dependent libraries are shared objects.
19676 deplibs_check_method=$lt_deplibs_check_method
19678 # Command to use when deplibs_check_method == file_magic.
19679 file_magic_cmd=$lt_file_magic_cmd
19681 # Flag that allows shared libraries with undefined symbols to be built.
19682 allow_undefined_flag=$lt_allow_undefined_flag_RC
19684 # Flag that forces no undefined symbols.
19685 no_undefined_flag=$lt_no_undefined_flag_RC
19687 # Commands used to finish a libtool library installation in a directory.
19688 finish_cmds=$lt_finish_cmds
19690 # Same as above, but a single script fragment to be evaled but not shown.
19691 finish_eval=$lt_finish_eval
19693 # Take the output of nm and produce a listing of raw symbols and C names.
19694 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19696 # Transform the output of nm in a proper C declaration
19697 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19699 # Transform the output of nm in a C name address pair
19700 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19702 # This is the shared library runtime path variable.
19703 runpath_var=$runpath_var
19705 # This is the shared library path variable.
19706 shlibpath_var=$shlibpath_var
19708 # Is shlibpath searched before the hard-coded library search path?
19709 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19711 # How to hardcode a shared library path into an executable.
19712 hardcode_action=$hardcode_action_RC
19714 # Whether we should hardcode library paths into libraries.
19715 hardcode_into_libs=$hardcode_into_libs
19717 # Flag to hardcode \$libdir into a binary during linking.
19718 # This must work even if \$libdir does not exist.
19719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19721 # If ld is used when linking, flag to hardcode \$libdir into
19722 # a binary during linking. This must work even if \$libdir does
19724 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19726 # Whether we need a single -rpath flag with a separated argument.
19727 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19729 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19730 # resulting binary.
19731 hardcode_direct=$hardcode_direct_RC
19733 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19734 # resulting binary.
19735 hardcode_minus_L=$hardcode_minus_L_RC
19737 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19738 # the resulting binary.
19739 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19741 # Set to yes if building a shared library automatically hardcodes DIR into the library
19742 # and all subsequent libraries and executables linked against it.
19743 hardcode_automatic=$hardcode_automatic_RC
19745 # Variables whose values should be saved in libtool wrapper scripts and
19746 # restored at relink time.
19747 variables_saved_for_relink="$variables_saved_for_relink"
19749 # Whether libtool must link a program against all its dependency libraries.
19750 link_all_deplibs=$link_all_deplibs_RC
19752 # Compile-time system search path for libraries
19753 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19755 # Run-time system search path for libraries
19756 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19758 # Fix the shell variable \$srcfile for the compiler.
19759 fix_srcfile_path="$fix_srcfile_path_RC"
19761 # Set to yes if exported symbols are required.
19762 always_export_symbols=$always_export_symbols_RC
19764 # The commands to list exported symbols.
19765 export_symbols_cmds=$lt_export_symbols_cmds_RC
19767 # The commands to extract the exported symbol list from a shared archive.
19768 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19770 # Symbols that should not be listed in the preloaded symbols.
19771 exclude_expsyms=$lt_exclude_expsyms_RC
19773 # Symbols that must always be exported.
19774 include_expsyms=$lt_include_expsyms_RC
19776 # ### END LIBTOOL TAG CONFIG: $tagname
19782 # If there is no Makefile yet, we rely on a make rule to execute
19783 # `config.status --recheck' to rerun these tests and create the
19784 # libtool script then.
19785 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19786 if test -f "$ltmain_in"; then
19787 test -f Makefile && make "$ltmain"
19793 ac_cpp='$CPP $CPPFLAGS'
19794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19803 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19804 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19805 { (exit 1); exit 1; }; }
19809 # Append the new tag name to the list of available tags.
19810 if test -n "$tagname" ; then
19811 available_tags="$available_tags $tagname"
19817 # Now substitute the updated list of available tags.
19818 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19819 mv "${ofile}T" "$ofile"
19823 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19824 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19825 { (exit 1); exit 1; }; }
19831 # This can be used to rebuild libtool when needed
19832 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19834 # Always use our own libtool.
19835 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19837 # Prevent multiple expansion
19861 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
19866 echo ---------------------------------------------
19868 echo ---------------------------------------------
19873 ac_cpp='$CXXCPP $CPPFLAGS'
19874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19877 if test -z "$CXX"; then
19878 if test -n "$CCC"; then
19881 if test -n "$ac_tool_prefix"; then
19882 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19888 if test "${ac_cv_prog_CXX+set}" = set; then
19889 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 if test -n "$CXX"; then
19892 ac_cv_prog_CXX="$CXX" # Let the user override the test.
19894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19895 for as_dir in $PATH
19898 test -z "$as_dir" && as_dir=.
19899 for ac_exec_ext in '' $ac_executable_extensions; do
19900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19901 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19911 CXX=$ac_cv_prog_CXX
19912 if test -n "$CXX"; then
19913 { echo "$as_me:$LINENO: result: $CXX" >&5
19914 echo "${ECHO_T}$CXX" >&6; }
19916 { echo "$as_me:$LINENO: result: no" >&5
19917 echo "${ECHO_T}no" >&6; }
19921 test -n "$CXX" && break
19924 if test -z "$CXX"; then
19926 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19928 # Extract the first word of "$ac_prog", so it can be a program name with args.
19929 set dummy $ac_prog; ac_word=$2
19930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19932 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 if test -n "$ac_ct_CXX"; then
19936 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19939 for as_dir in $PATH
19942 test -z "$as_dir" && as_dir=.
19943 for ac_exec_ext in '' $ac_executable_extensions; do
19944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19945 ac_cv_prog_ac_ct_CXX="$ac_prog"
19946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19955 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19956 if test -n "$ac_ct_CXX"; then
19957 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19958 echo "${ECHO_T}$ac_ct_CXX" >&6; }
19960 { echo "$as_me:$LINENO: result: no" >&5
19961 echo "${ECHO_T}no" >&6; }
19965 test -n "$ac_ct_CXX" && break
19968 if test "x$ac_ct_CXX" = x; then
19971 case $cross_compiling:$ac_tool_warned in
19973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19974 whose name does not start with the host triplet. If you think this
19975 configuration is useful to you, please write to autoconf@gnu.org." >&5
19976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19977 whose name does not start with the host triplet. If you think this
19978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19979 ac_tool_warned=yes ;;
19987 # Provide some information about the compiler.
19988 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
19989 ac_compiler=`set X $ac_compile; echo $2`
19990 { (ac_try="$ac_compiler --version >&5"
19991 case "(($ac_try" in
19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993 *) ac_try_echo=$ac_try;;
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996 (eval "$ac_compiler --version >&5") 2>&5
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }
20000 { (ac_try="$ac_compiler -v >&5"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_compiler -v >&5") 2>&5
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }
20010 { (ac_try="$ac_compiler -V >&5"
20011 case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_compiler -V >&5") 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }
20021 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20022 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
20023 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20044 rm -f conftest.$ac_objext
20045 if { (ac_try="$ac_compile"
20046 case "(($ac_try" in
20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048 *) ac_try_echo=$ac_try;;
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051 (eval "$ac_compile") 2>conftest.er1
20053 grep -v '^ *+' conftest.er1 >conftest.err
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } && {
20058 test -z "$ac_cxx_werror_flag" ||
20059 test ! -s conftest.err
20060 } && test -s conftest.$ac_objext; then
20061 ac_compiler_gnu=yes
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20073 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20074 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
20075 GXX=`test $ac_compiler_gnu = yes && echo yes`
20076 ac_test_CXXFLAGS=${CXXFLAGS+set}
20077 ac_save_CXXFLAGS=$CXXFLAGS
20078 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20079 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
20080 if test "${ac_cv_prog_cxx_g+set}" = set; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20083 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
20084 ac_cxx_werror_flag=yes
20085 ac_cv_prog_cxx_g=no
20087 cat >conftest.$ac_ext <<_ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20102 rm -f conftest.$ac_objext
20103 if { (ac_try="$ac_compile"
20104 case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_compile") 2>conftest.er1
20111 grep -v '^ *+' conftest.er1 >conftest.err
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); } && {
20116 test -z "$ac_cxx_werror_flag" ||
20117 test ! -s conftest.err
20118 } && test -s conftest.$ac_objext; then
20119 ac_cv_prog_cxx_g=yes
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20125 cat >conftest.$ac_ext <<_ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20140 rm -f conftest.$ac_objext
20141 if { (ac_try="$ac_compile"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_compile") 2>conftest.er1
20149 grep -v '^ *+' conftest.er1 >conftest.err
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } && {
20154 test -z "$ac_cxx_werror_flag" ||
20155 test ! -s conftest.err
20156 } && test -s conftest.$ac_objext; then
20159 echo "$as_me: failed program was:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20162 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20179 rm -f conftest.$ac_objext
20180 if { (ac_try="$ac_compile"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_compile") 2>conftest.er1
20188 grep -v '^ *+' conftest.er1 >conftest.err
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } && {
20193 test -z "$ac_cxx_werror_flag" ||
20194 test ! -s conftest.err
20195 } && test -s conftest.$ac_objext; then
20196 ac_cv_prog_cxx_g=yes
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20213 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20214 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
20215 if test "$ac_test_CXXFLAGS" = set; then
20216 CXXFLAGS=$ac_save_CXXFLAGS
20217 elif test $ac_cv_prog_cxx_g = yes; then
20218 if test "$GXX" = yes; then
20224 if test "$GXX" = yes; then
20231 ac_cpp='$CPP $CPPFLAGS'
20232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20236 depcc="$CXX" am_compiler_list=
20238 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20239 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20240 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20244 # We make a subdir and do the tests there. Otherwise we can end up
20245 # making bogus files that we don't know about and never remove. For
20246 # instance it was reported that on HP-UX the gcc test will end up
20247 # making a dummy file named `D' -- because `-MD' means `put the output
20250 # Copy depcomp to subdir because otherwise we won't find it if we're
20251 # using a relative directory.
20252 cp "$am_depcomp" conftest.dir
20254 # We will build objects and dependencies in a subdirectory because
20255 # it helps to detect inapplicable dependency modes. For instance
20256 # both Tru64's cc and ICC support -MD to output dependencies as a
20257 # side effect of compilation, but ICC will put the dependencies in
20258 # the current directory while Tru64 will put them in the object
20262 am_cv_CXX_dependencies_compiler_type=none
20263 if test "$am_compiler_list" = ""; then
20264 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20266 for depmode in $am_compiler_list; do
20267 # Setup a source with many dependencies, because some compilers
20268 # like to wrap large dependency lists on column 80 (with \), and
20269 # we should not choose a depcomp mode which is confused by this.
20271 # We need to recreate these files for each test, as the compiler may
20272 # overwrite some of them when testing with obscure command lines.
20273 # This happens at least with the AIX C compiler.
20275 for i in 1 2 3 4 5 6; do
20276 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20277 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20278 # Solaris 8's {/usr,}/bin/sh.
20279 touch sub/conftst$i.h
20281 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20285 # after this tag, mechanisms are not by side-effect, so they'll
20286 # only be used when explicitly requested
20287 if test "x$enable_dependency_tracking" = xyes; then
20295 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20296 # mode. It turns out that the SunPro C++ compiler does not properly
20297 # handle `-M -o', and we need to detect this.
20298 if depmode=$depmode \
20299 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20300 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20301 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20302 >/dev/null 2>conftest.err &&
20303 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20304 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20305 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20306 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20307 # icc doesn't choke on unknown options, it will just issue warnings
20308 # or remarks (even with -Werror). So we grep stderr for any message
20309 # that says an option was ignored or not supported.
20310 # When given -MP, icc 7.0 and 7.1 complain thusly:
20311 # icc: Command line warning: ignoring option '-M'; no argument required
20312 # The diagnosis changed in icc 8.0:
20313 # icc: Command line remark: option '-MP' not supported
20314 if (grep 'ignoring option' conftest.err ||
20315 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20316 am_cv_CXX_dependencies_compiler_type=$depmode
20323 rm -rf conftest.dir
20325 am_cv_CXX_dependencies_compiler_type=none
20329 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20330 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
20331 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20334 test "x$enable_dependency_tracking" != xno \
20335 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20336 am__fastdepCXX_TRUE=
20337 am__fastdepCXX_FALSE='#'
20339 am__fastdepCXX_TRUE='#'
20340 am__fastdepCXX_FALSE=
20346 { echo "$as_me:$LINENO: checking wether $CXX accepts -Wparentheses" >&5
20347 echo $ECHO_N "checking wether $CXX accepts -Wparentheses... $ECHO_C" >&6; }
20348 cat > conftest.cxx <<EOF
20349 int main() { return 0; }
20351 $CXX -Wparentheses conftest.cxx > conftest.log 2>&1
20352 var=`echo -Wparentheses | sed -e "s, .*$,," | sed -e "s,^-,,"`
20353 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
20354 if grep -e $var conftest.log > /dev/null 2>&1 ; then
20355 { echo "$as_me:$LINENO: result: no" >&5
20356 echo "${ECHO_T}no" >&6; }
20359 { echo "$as_me:$LINENO: result: yes" >&5
20360 echo "${ECHO_T}yes" >&6; }
20361 CXXFLAGS="${CXXFLAGS} -Wparentheses"
20366 { echo "$as_me:$LINENO: checking wether $CXX accepts -Wreturn-type" >&5
20367 echo $ECHO_N "checking wether $CXX accepts -Wreturn-type... $ECHO_C" >&6; }
20368 cat > conftest.cxx <<EOF
20369 int main() { return 0; }
20371 $CXX -Wreturn-type conftest.cxx > conftest.log 2>&1
20372 var=`echo -Wreturn-type | sed -e "s, .*$,," | sed -e "s,^-,,"`
20373 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
20374 if grep -e $var conftest.log > /dev/null 2>&1 ; then
20375 { echo "$as_me:$LINENO: result: no" >&5
20376 echo "${ECHO_T}no" >&6; }
20379 { echo "$as_me:$LINENO: result: yes" >&5
20380 echo "${ECHO_T}yes" >&6; }
20381 CXXFLAGS="${CXXFLAGS} -Wreturn-type"
20386 { echo "$as_me:$LINENO: checking wether $CXX accepts -Wmissing-declarations" >&5
20387 echo $ECHO_N "checking wether $CXX accepts -Wmissing-declarations... $ECHO_C" >&6; }
20388 cat > conftest.cxx <<EOF
20389 int main() { return 0; }
20391 $CXX -Wmissing-declarations conftest.cxx > conftest.log 2>&1
20392 var=`echo -Wmissing-declarations | sed -e "s, .*$,," | sed -e "s,^-,,"`
20393 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
20394 if grep -e $var conftest.log > /dev/null 2>&1 ; then
20395 { echo "$as_me:$LINENO: result: no" >&5
20396 echo "${ECHO_T}no" >&6; }
20399 { echo "$as_me:$LINENO: result: yes" >&5
20400 echo "${ECHO_T}yes" >&6; }
20401 CXXFLAGS="${CXXFLAGS} -Wmissing-declarations"
20406 { echo "$as_me:$LINENO: checking wether $CXX accepts -Wunused" >&5
20407 echo $ECHO_N "checking wether $CXX accepts -Wunused... $ECHO_C" >&6; }
20408 cat > conftest.cxx <<EOF
20409 int main() { return 0; }
20411 $CXX -Wunused conftest.cxx > conftest.log 2>&1
20412 var=`echo -Wunused | sed -e "s, .*$,," | sed -e "s,^-,,"`
20413 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
20414 if grep -e $var conftest.log > /dev/null 2>&1 ; then
20415 { echo "$as_me:$LINENO: result: no" >&5
20416 echo "${ECHO_T}no" >&6; }
20419 { echo "$as_me:$LINENO: result: yes" >&5
20420 echo "${ECHO_T}yes" >&6; }
20421 CXXFLAGS="${CXXFLAGS} -Wunused"
20427 for opt in -ftemplate-depth-42 "-pending_instantiations 42" ; do
20429 { echo "$as_me:$LINENO: checking wether $CXX accepts $opt" >&5
20430 echo $ECHO_N "checking wether $CXX accepts $opt... $ECHO_C" >&6; }
20431 cat > conftest.cxx <<EOF
20432 int main() { return 0; }
20434 $CXX $opt conftest.cxx > conftest.log 2>&1
20435 var=`echo $opt | sed -e "s, .*$,," | sed -e "s,^-,,"`
20436 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
20437 if grep -e $var conftest.log > /dev/null 2>&1 ; then
20438 { echo "$as_me:$LINENO: result: no" >&5
20439 echo "${ECHO_T}no" >&6; }
20442 { echo "$as_me:$LINENO: result: yes" >&5
20443 echo "${ECHO_T}yes" >&6; }
20444 CXXTMPDPTHFLAGS="${CXXTMPDPTHFLAGS} $opt"
20448 if test "$flag" = "yes"; then
20454 { echo "$as_me:$LINENO: checking wether $CXX accepts -tweak" >&5
20455 echo $ECHO_N "checking wether $CXX accepts -tweak... $ECHO_C" >&6; }
20456 cat > conftest.cxx <<EOF
20457 int main() { return 0; }
20459 $CXX -tweak conftest.cxx > conftest.log 2>&1
20460 var=`echo -tweak | sed -e "s, .*$,," | sed -e "s,^-,,"`
20461 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
20462 if grep -e $var conftest.log > /dev/null 2>&1 ; then
20463 { echo "$as_me:$LINENO: result: no" >&5
20464 echo "${ECHO_T}no" >&6; }
20467 { echo "$as_me:$LINENO: result: yes" >&5
20468 echo "${ECHO_T}yes" >&6; }
20469 CXXFLAGS="${CXXFLAGS} -tweak"
20475 { echo "$as_me:$LINENO: checking which flag for dependency information generation" >&5
20476 echo $ECHO_N "checking which flag for dependency information generation... $ECHO_C" >&6; }
20479 ac_cpp='$CPP $CPPFLAGS'
20480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20484 echo "conftest.o: conftest.c" > conftest.verif
20485 echo "int main() { return 0; }" > conftest.c
20489 irix5.* | irix6.* | osf4.* | osf5.* | linux* )
20492 # porting on intel processor 64 bits
20493 expr "$host_os" : 'linux' >/dev/null && ( test ! x"$host_cpu" = x"x86_64" && test ! x"$host_cpu" = x"ia64" ) && linux64="false"
20494 if test ! x"$linux64" = "xfalse" ; then
20495 echo "$as_me:$LINENO: checking for 64bits integers size in F77/F90" >&5
20496 echo $ECHO_N "checking for 64bits integers size in F77/F90... $ECHO_C" >&6
20497 # Check whether --enable-int64 or --disable-int64 was given.
20498 if test "${enable_int64+set}" = set; then
20499 enableval="$enable_int64"
20502 case "X-$enable_int64" in
20504 echo "$as_me:$LINENO: result: \"disabled\"" >&5
20505 echo "${ECHO_T}\"disabled\"" >&6
20509 echo "$as_me:$LINENO: result: \"enabled\"" >&5
20510 echo "${ECHO_T}\"enabled\"" >&6
20523 # porting on intel processor 64 bits: if 64 bits processor, by default compilation in 64 bits
20524 if test x"$linux64" = x"true"; then \
20525 MACHINE="PCLINUX64${SUFFIXES}";
20526 CFLAGS=" -D_OCC64 ${CXXFLAGS}";
20527 CXXFLAGS=" -D_OCC64 ${CXXFLAGS}";\
20537 host_os_novers=aix4.x
20540 MACHINE="IRIX64${SUFFIXES}"
20541 host_os_novers=irix5.x
20544 MACHINE="IRIX64${SUFFIXES}"
20545 host_os_novers=irix6.x
20548 MACHINE="OSF1${SUFFIXES}"
20549 host_os_novers=osf4.x
20552 MACHINE="OSF1${SUFFIXES}"
20553 host_os_novers=osf5.x
20557 host_os_novers=solaris2.x
20564 host_os_novers=$host_os
20578 DEPCXXFLAGS="\${CXXFLAGS}"
20583 for ac_C_DEPEND_FLAG in -xM -MM -M ; do
20585 rm -f conftest.d conftest.err
20586 ${DEPCC} ${ac_C_DEPEND_FLAG} -c conftest.c 1> conftest.d 2> conftest.err
20587 if test -f conftest.u ; then
20588 mv conftest.u conftest.d
20592 diff ${DIFFFLAGS} conftest.d conftest.verif > conftest
20593 if test ! -s conftest ; then
20594 C_DEPEND_FLAG=${ac_C_DEPEND_FLAG}
20599 rm -f conftest.d conftest.err
20600 ${DEPCC} ${C_DEPEND_FLAG} -MG -c conftest.c 1> conftest.d 2> conftest.err
20601 if test -f conftest.u ; then
20602 mv conftest.u conftest.d
20605 diff ${DIFFFLAGS} conftest.d conftest.verif > conftest
20606 if test ! -s conftest ; then
20607 C_DEPEND_FLAG=${C_DEPEND_FLAG}" -MG"
20611 if test "x${C_DEPEND_FLAG}" = "x" ; then
20612 echo "cannot determine flag (C language)"
20616 printf " C : ${DEPCC} ${C_DEPEND_FLAG}"
20619 ac_cpp='$CXXCPP $CPPFLAGS'
20620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20624 echo "conftest.o: conftest.cxx" > conftest.verif
20625 echo "int main() { return 0; }" > conftest.cxx
20628 for ac_CXX_DEPEND_FLAG in -xM -MM -M ; do
20630 rm -f conftest.d conftest.err
20631 ${DEPCXX} ${ac_CXX_DEPEND_FLAG} -c conftest.cxx 1> conftest.d 2> conftest.err
20632 if test -f conftest.u ; then
20633 mv conftest.u conftest.d
20637 diff ${DIFFFLAGS} conftest.d conftest.verif > conftest
20638 if test ! -s conftest ; then
20639 CXX_DEPEND_FLAG=${ac_CXX_DEPEND_FLAG}
20644 rm -f conftest.d conftest.err
20645 ${DEPCXX} ${CXX_DEPEND_FLAG} -MG -c conftest.cxx 1> conftest.d 2> conftest.err
20646 if test -f conftest.u ; then
20647 mv conftest.u conftest.d
20650 diff ${DIFFFLAGS} conftest.d conftest.verif > conftest
20651 if test ! -s conftest ; then
20652 CXX_DEPEND_FLAG=${CXX_DEPEND_FLAG}" -MG"
20657 if test "x${CXX_DEPEND_FLAG}" = "x" ; then
20658 echo "cannot determine flag (C++ language)"
20662 printf " C++ : ${DEPCXX} ${CXX_DEPEND_FLAG}"
20664 ac_cpp='$CPP $CPPFLAGS'
20665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20670 { echo "$as_me:$LINENO: result: ... done" >&5
20671 echo "${ECHO_T} ... done" >&6; }
20680 # AC_CC_WARNINGS([ansi])
20684 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20685 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20686 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20687 echo $ECHO_N "(cached) $ECHO_C" >&6
20689 ac_check_lib_save_LIBS=$LIBS
20691 cat >conftest.$ac_ext <<_ACEOF
20694 cat confdefs.h >>conftest.$ac_ext
20695 cat >>conftest.$ac_ext <<_ACEOF
20696 /* end confdefs.h. */
20698 /* Override any GCC internal prototype to avoid an error.
20699 Use char because int might match the return type of a GCC
20700 builtin and then its argument prototype would still apply. */
20713 rm -f conftest.$ac_objext conftest$ac_exeext
20714 if { (ac_try="$ac_link"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_link") 2>conftest.er1
20722 grep -v '^ *+' conftest.er1 >conftest.err
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } && {
20727 test -z "$ac_c_werror_flag" ||
20728 test ! -s conftest.err
20729 } && test -s conftest$ac_exeext &&
20730 $as_test_x conftest$ac_exeext; then
20731 ac_cv_lib_dl_dlopen=yes
20733 echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20736 ac_cv_lib_dl_dlopen=no
20739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20740 conftest$ac_exeext conftest.$ac_ext
20741 LIBS=$ac_check_lib_save_LIBS
20743 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20744 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20745 if test $ac_cv_lib_dl_dlopen = yes; then
20746 cat >>confdefs.h <<_ACEOF
20747 #define HAVE_LIBDL 1
20756 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
20757 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
20758 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
20759 echo $ECHO_N "(cached) $ECHO_C" >&6
20761 ac_check_lib_save_LIBS=$LIBS
20763 cat >conftest.$ac_ext <<_ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20770 /* Override any GCC internal prototype to avoid an error.
20771 Use char because int might match the return type of a GCC
20772 builtin and then its argument prototype would still apply. */
20780 return nanosleep ();
20785 rm -f conftest.$ac_objext conftest$ac_exeext
20786 if { (ac_try="$ac_link"
20787 case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_link") 2>conftest.er1
20794 grep -v '^ *+' conftest.er1 >conftest.err
20796 cat conftest.err >&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); } && {
20799 test -z "$ac_c_werror_flag" ||
20800 test ! -s conftest.err
20801 } && test -s conftest$ac_exeext &&
20802 $as_test_x conftest$ac_exeext; then
20803 ac_cv_lib_rt_nanosleep=yes
20805 echo "$as_me: failed program was:" >&5
20806 sed 's/^/| /' conftest.$ac_ext >&5
20808 ac_cv_lib_rt_nanosleep=no
20811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20812 conftest$ac_exeext conftest.$ac_ext
20813 LIBS=$ac_check_lib_save_LIBS
20815 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
20816 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
20817 if test $ac_cv_lib_rt_nanosleep = yes; then
20818 cat >>confdefs.h <<_ACEOF
20819 #define HAVE_LIBRT 1
20828 { echo "$as_me:$LINENO: checking for ceil in -lm" >&5
20829 echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
20830 if test "${ac_cv_lib_m_ceil+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 ac_check_lib_save_LIBS=$LIBS
20835 cat >conftest.$ac_ext <<_ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20842 /* Override any GCC internal prototype to avoid an error.
20843 Use char because int might match the return type of a GCC
20844 builtin and then its argument prototype would still apply. */
20857 rm -f conftest.$ac_objext conftest$ac_exeext
20858 if { (ac_try="$ac_link"
20859 case "(($ac_try" in
20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861 *) ac_try_echo=$ac_try;;
20863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20864 (eval "$ac_link") 2>conftest.er1
20866 grep -v '^ *+' conftest.er1 >conftest.err
20868 cat conftest.err >&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } && {
20871 test -z "$ac_c_werror_flag" ||
20872 test ! -s conftest.err
20873 } && test -s conftest$ac_exeext &&
20874 $as_test_x conftest$ac_exeext; then
20875 ac_cv_lib_m_ceil=yes
20877 echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 ac_cv_lib_m_ceil=no
20883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20884 conftest$ac_exeext conftest.$ac_ext
20885 LIBS=$ac_check_lib_save_LIBS
20887 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
20888 echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
20889 if test $ac_cv_lib_m_ceil = yes; then
20890 cat >>confdefs.h <<_ACEOF
20891 #define HAVE_LIBM 1
20901 { echo "$as_me:$LINENO: checking whether the compiler use std iostream" >&5
20902 echo $ECHO_N "checking whether the compiler use std iostream... $ECHO_C" >&6; }
20904 cat > conftest.cxx <<EOF
20905 #include <iostream>
20906 int main(int argc, char **argv) {std::cout << "Hello" << std::endl; return 0;}
20909 fUSE_STD_IOSTREAM=no
20910 for ac_CXX_USE_STD_IOSTREAM in "" -D__USE_STD_IOSTREAM ; do
20911 if $CXX ${ac_CXX_USE_STD_IOSTREAM} conftest.cxx > /dev/null 2>&1; then
20912 CPPFLAGS="$CPPFLAGS ${ac_CXX_USE_STD_IOSTREAM}"
20913 if test x${ac_CXX_USE_STD_IOSTREAM} = x; then
20914 { echo "$as_me:$LINENO: result: yes" >&5
20915 echo "${ECHO_T}yes" >&6; }
20917 { echo "$as_me:$LINENO: result: ${ac_CXX_USE_STD_IOSTREAM}" >&5
20918 echo "${ECHO_T}${ac_CXX_USE_STD_IOSTREAM}" >&6; }
20920 fUSE_STD_IOSTREAM=yes
20924 if test $fUSE_STD_IOSTREAM = no; then
20925 { echo "$as_me:$LINENO: result: no" >&5
20926 echo "${ECHO_T}no" >&6; }
20930 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20931 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
20932 if test "${ac_cv_cxx_namespaces+set}" = set; then
20933 echo $ECHO_N "(cached) $ECHO_C" >&6
20937 ac_cpp='$CXXCPP $CPPFLAGS'
20938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20942 cat >conftest.$ac_ext <<_ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20948 namespace Outer { namespace Inner { int i = 0; }}
20952 using namespace Outer::Inner; return i;
20957 rm -f conftest.$ac_objext
20958 if { (ac_try="$ac_compile"
20959 case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_compile") 2>conftest.er1
20966 grep -v '^ *+' conftest.er1 >conftest.err
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_cxx_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest.$ac_objext; then
20974 ac_cv_cxx_namespaces=yes
20976 echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20979 ac_cv_cxx_namespaces=no
20982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984 ac_cpp='$CPP $CPPFLAGS'
20985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20991 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20992 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
20993 if test "$ac_cv_cxx_namespaces" = yes; then
20995 cat >>confdefs.h <<\_ACEOF
20996 #define HAVE_NAMESPACES
21002 { echo "$as_me:$LINENO: checking whether the compiler has stringstream" >&5
21003 echo $ECHO_N "checking whether the compiler has stringstream... $ECHO_C" >&6; }
21004 if test "${ac_cv_prog_cxx_have_sstream+set}" = set; then
21005 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 ac_cv_prog_cxx_have_sstream=no
21011 ac_cpp='$CXXCPP $CPPFLAGS'
21012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21016 cat >conftest.$ac_ext <<_ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21024 #ifdef HAVE_NAMESPACES
21025 using namespace std;
21031 stringstream message; message << "Hello"; return 0;
21036 rm -f conftest.$ac_objext
21037 if { (ac_try="$ac_compile"
21038 case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_compile") 2>conftest.er1
21045 grep -v '^ *+' conftest.er1 >conftest.err
21047 cat conftest.err >&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } && {
21050 test -z "$ac_cxx_werror_flag" ||
21051 test ! -s conftest.err
21052 } && test -s conftest.$ac_objext; then
21053 ac_cv_prog_cxx_have_sstream=yes
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21058 ac_cv_prog_cxx_have_sstream=no
21061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21063 ac_cpp='$CPP $CPPFLAGS'
21064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21070 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_have_sstream" >&5
21071 echo "${ECHO_T}$ac_cv_prog_cxx_have_sstream" >&6; }
21072 HAVE_SSTREAM=$ac_cv_prog_cxx_have_sstream
21079 { echo "$as_me:$LINENO: checking for LIB_LOCATION_SUFFIX..." >&5
21080 echo "$as_me: checking for LIB_LOCATION_SUFFIX..." >&6;}
21081 LIB_LOCATION_SUFFIX=""
21083 { echo "$as_me:$LINENO: result: LIB_LOCATION_SUFFIX is $LIB_LOCATION_SUFFIX" >&5
21084 echo "${ECHO_T}LIB_LOCATION_SUFFIX is $LIB_LOCATION_SUFFIX" >&6; }
21086 for opt in "-Xlinker -export-dynamic" -transitive_link; do
21088 { echo "$as_me:$LINENO: checking wether $CXX accepts $opt" >&5
21089 echo $ECHO_N "checking wether $CXX accepts $opt... $ECHO_C" >&6; }
21090 cat > conftest.cxx <<EOF
21091 int main() { return 0; }
21093 $CXX $opt conftest.cxx > conftest.log 2>&1
21094 var=`echo $opt | sed -e "s, .*$,," | sed -e "s,^-,,"`
21095 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
21096 if grep -e $var conftest.log > /dev/null 2>&1 ; then
21097 { echo "$as_me:$LINENO: result: no" >&5
21098 echo "${ECHO_T}no" >&6; }
21101 { echo "$as_me:$LINENO: result: yes" >&5
21102 echo "${ECHO_T}yes" >&6; }
21103 LDEXPDYNFLAGS="${LDEXPDYNFLAGS} $opt"
21107 if test "$flag" = "yes"; then
21113 for opt in "-Xlinker -enable-new-dtags" ; do
21115 { echo "$as_me:$LINENO: checking wether $CXX accepts $opt" >&5
21116 echo $ECHO_N "checking wether $CXX accepts $opt... $ECHO_C" >&6; }
21117 cat > conftest.cxx <<EOF
21118 int main() { return 0; }
21120 $CXX $opt conftest.cxx > conftest.log 2>&1
21121 var=`echo $opt | sed -e "s, .*$,," | sed -e "s,^-,,"`
21122 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
21123 if grep -e $var conftest.log > /dev/null 2>&1 ; then
21124 { echo "$as_me:$LINENO: result: no" >&5
21125 echo "${ECHO_T}no" >&6; }
21128 { echo "$as_me:$LINENO: result: yes" >&5
21129 echo "${ECHO_T}yes" >&6; }
21130 LDFLAGS="${LDFLAGS} $opt"
21149 echo ---------------------------------------------
21150 echo testing threads
21151 echo ---------------------------------------------
21158 ac_cpp='$CPP $CPPFLAGS'
21159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21165 # We used to check for pthread.h first, but this fails if pthread.h
21166 # requires special compiler flags (e.g. on True64 or Sequent).
21167 # It gets checked for in the link test anyway.
21169 # First of all, check if the user has set any of the PTHREAD_LIBS,
21170 # etcetera environment variables, and if threads linking works using
21172 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21173 save_CFLAGS="$CFLAGS"
21174 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21176 LIBS="$PTHREAD_LIBS $LIBS"
21177 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21178 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
21179 cat >conftest.$ac_ext <<_ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21186 /* Override any GCC internal prototype to avoid an error.
21187 Use char because int might match the return type of a GCC
21188 builtin and then its argument prototype would still apply. */
21192 char pthread_join ();
21196 return pthread_join ();
21201 rm -f conftest.$ac_objext conftest$ac_exeext
21202 if { (ac_try="$ac_link"
21203 case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208 (eval "$ac_link") 2>conftest.er1
21210 grep -v '^ *+' conftest.er1 >conftest.err
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } && {
21215 test -z "$ac_c_werror_flag" ||
21216 test ! -s conftest.err
21217 } && test -s conftest$ac_exeext &&
21218 $as_test_x conftest$ac_exeext; then
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21228 conftest$ac_exeext conftest.$ac_ext
21229 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21230 echo "${ECHO_T}$acx_pthread_ok" >&6; }
21231 if test x"$acx_pthread_ok" = xno; then
21236 CFLAGS="$save_CFLAGS"
21239 # We must check for the threads library under a number of different
21240 # names; the ordering is very important because some systems
21241 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21242 # libraries is broken (non-POSIX).
21244 # Create a list of thread flags to try. Items starting with a "-" are
21245 # C compiler flags, and other items are library names, except for "none"
21246 # which indicates that we try without any flags at all, and "pthread-config"
21247 # which is a program returning the flags for the Pth emulation library.
21249 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
21251 # The ordering *is* (sometimes) important. Some notes on the
21252 # individual items follow:
21254 # pthreads: AIX (must check this before -lpthread)
21255 # none: in case threads are in libc; should be tried before -Kthread and
21256 # other compiler flags to prevent continual compiler warnings
21257 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21258 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21259 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21260 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21261 # -pthreads: Solaris/gcc
21262 # -mthreads: Mingw32/gcc, Lynx/gcc
21263 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21264 # doesn't hurt to check since this sometimes defines pthreads too;
21265 # also defines -D_REENTRANT)
21266 # pthread: Linux, etcetera
21267 # --thread-safe: KAI C++
21268 # pthread-config: use pthread-config program (for GNU Pth library)
21270 case "${host_cpu}-${host_os}" in
21273 # On linux "none" works, but boost requires -pthread, so, try first "-pthread"
21274 acx_pthread_flags="-pthread pthreads none -Kthread -kthread lthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
21279 # On Solaris (at least, for some versions), libc contains stubbed
21280 # (non-functional) versions of the pthreads routines, so link-based
21281 # tests will erroneously succeed. (We need to link with -pthread or
21282 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21283 # a function called by this macro, so we could check for that, but
21284 # who knows whether they'll stub that too in a future libc.) So,
21285 # we'll just look for -pthreads and -lpthread first:
21287 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
21291 if test x"$acx_pthread_ok" = xno; then
21292 for flag in $acx_pthread_flags; do
21296 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
21297 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
21301 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
21302 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
21303 PTHREAD_CFLAGS="$flag"
21307 # Extract the first word of "pthread-config", so it can be a program name with args.
21308 set dummy pthread-config; ac_word=$2
21309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21311 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
21312 echo $ECHO_N "(cached) $ECHO_C" >&6
21314 if test -n "$acx_pthread_config"; then
21315 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
21317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21318 for as_dir in $PATH
21321 test -z "$as_dir" && as_dir=.
21322 for ac_exec_ext in '' $ac_executable_extensions; do
21323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21324 ac_cv_prog_acx_pthread_config="yes"
21325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21332 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
21335 acx_pthread_config=$ac_cv_prog_acx_pthread_config
21336 if test -n "$acx_pthread_config"; then
21337 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
21338 echo "${ECHO_T}$acx_pthread_config" >&6; }
21340 { echo "$as_me:$LINENO: result: no" >&5
21341 echo "${ECHO_T}no" >&6; }
21345 if test x"$acx_pthread_config" = xno; then continue; fi
21346 PTHREAD_CFLAGS="`pthread-config --cflags`"
21347 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21351 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
21352 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
21353 PTHREAD_LIBS="-l$flag"
21358 save_CFLAGS="$CFLAGS"
21359 LIBS="$PTHREAD_LIBS $LIBS"
21360 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21362 # Check for various functions. We must include pthread.h,
21363 # since some functions may be macros. (On the Sequent, we
21364 # need a special flag -Kthread to make this header compile.)
21365 # We check for pthread_join because it is in -lpthread on IRIX
21366 # while pthread_create is in libc. We check for pthread_attr_init
21367 # due to DEC craziness with -lpthreads. We check for
21368 # pthread_cleanup_push because it is one of the few pthread
21369 # functions on Solaris that doesn't have a non-functional libc stub.
21370 # We try pthread_create on general principles.
21371 cat >conftest.$ac_ext <<_ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21377 #include <pthread.h>
21381 pthread_t th; pthread_join(th, 0);
21382 pthread_attr_init(0); pthread_cleanup_push(0, 0);
21383 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
21388 rm -f conftest.$ac_objext conftest$ac_exeext
21389 if { (ac_try="$ac_link"
21390 case "(($ac_try" in
21391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392 *) ac_try_echo=$ac_try;;
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395 (eval "$ac_link") 2>conftest.er1
21397 grep -v '^ *+' conftest.er1 >conftest.err
21399 cat conftest.err >&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } && {
21402 test -z "$ac_c_werror_flag" ||
21403 test ! -s conftest.err
21404 } && test -s conftest$ac_exeext &&
21405 $as_test_x conftest$ac_exeext; then
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21415 conftest$ac_exeext conftest.$ac_ext
21418 CFLAGS="$save_CFLAGS"
21420 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21421 echo "${ECHO_T}$acx_pthread_ok" >&6; }
21422 if test "x$acx_pthread_ok" = xyes; then
21431 # Various other checks:
21432 if test "x$acx_pthread_ok" = xyes; then
21434 LIBS="$PTHREAD_LIBS $LIBS"
21435 save_CFLAGS="$CFLAGS"
21436 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21438 # Detect AIX lossage: threads are created detached by default
21439 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
21440 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
21441 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
21442 cat >conftest.$ac_ext <<_ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21448 #include <pthread.h>
21452 int attr=PTHREAD_CREATE_JOINABLE;
21457 rm -f conftest.$ac_objext conftest$ac_exeext
21458 if { (ac_try="$ac_link"
21459 case "(($ac_try" in
21460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21461 *) ac_try_echo=$ac_try;;
21463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21464 (eval "$ac_link") 2>conftest.er1
21466 grep -v '^ *+' conftest.er1 >conftest.err
21468 cat conftest.err >&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } && {
21471 test -z "$ac_c_werror_flag" ||
21472 test ! -s conftest.err
21473 } && test -s conftest$ac_exeext &&
21474 $as_test_x conftest$ac_exeext; then
21475 ok=PTHREAD_CREATE_JOINABLE
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21484 conftest$ac_exeext conftest.$ac_ext
21485 if test x"$ok" = xunknown; then
21486 cat >conftest.$ac_ext <<_ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21492 #include <pthread.h>
21496 int attr=PTHREAD_CREATE_UNDETACHED;
21501 rm -f conftest.$ac_objext conftest$ac_exeext
21502 if { (ac_try="$ac_link"
21503 case "(($ac_try" in
21504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21505 *) ac_try_echo=$ac_try;;
21507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21508 (eval "$ac_link") 2>conftest.er1
21510 grep -v '^ *+' conftest.er1 >conftest.err
21512 cat conftest.err >&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); } && {
21515 test -z "$ac_c_werror_flag" ||
21516 test ! -s conftest.err
21517 } && test -s conftest$ac_exeext &&
21518 $as_test_x conftest$ac_exeext; then
21519 ok=PTHREAD_CREATE_UNDETACHED
21521 echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21528 conftest$ac_exeext conftest.$ac_ext
21530 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
21532 cat >>confdefs.h <<\_ACEOF
21533 #define PTHREAD_CREATE_JOINABLE $ok
21537 { echo "$as_me:$LINENO: result: ${ok}" >&5
21538 echo "${ECHO_T}${ok}" >&6; }
21539 if test x"$ok" = xunknown; then
21540 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
21541 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
21544 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
21545 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
21547 case "${host_cpu}-${host_os}" in
21548 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21549 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21551 { echo "$as_me:$LINENO: result: ${flag}" >&5
21552 echo "${ECHO_T}${flag}" >&6; }
21553 if test "x$flag" != xno; then
21554 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21558 CFLAGS="$save_CFLAGS"
21560 # More AIX lossage: must compile with cc_r
21561 # Extract the first word of "cc_r", so it can be a program name with args.
21562 set dummy cc_r; ac_word=$2
21563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21565 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21568 if test -n "$PTHREAD_CC"; then
21569 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21572 for as_dir in $PATH
21575 test -z "$as_dir" && as_dir=.
21576 for ac_exec_ext in '' $ac_executable_extensions; do
21577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21578 ac_cv_prog_PTHREAD_CC="cc_r"
21579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21586 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
21589 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21590 if test -n "$PTHREAD_CC"; then
21591 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21592 echo "${ECHO_T}$PTHREAD_CC" >&6; }
21594 { echo "$as_me:$LINENO: result: no" >&5
21595 echo "${ECHO_T}no" >&6; }
21607 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21608 if test x"$acx_pthread_ok" = xyes; then
21610 cat >>confdefs.h <<\_ACEOF
21611 #define HAVE_PTHREAD 1
21620 ac_cpp='$CPP $CPPFLAGS'
21621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21629 if test x"$enable_pthreads_done" != xyes; then
21630 if test x"$acx_pthread_ok" = xyes; then
21631 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21632 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
21633 LIBS="$LIBS $PTHREAD_LIBS"
21638 enable_pthreads_done=yes
21643 echo ---------------------------------------------
21644 echo testing python
21645 echo ---------------------------------------------
21652 # Check whether --with-python was given.
21653 if test "${with_python+set}" = set; then
21654 withval=$with_python; PYTHON="$withval/bin/python"
21655 { echo "$as_me:$LINENO: result: \"select python distribution in $withval\"" >&5
21656 echo "${ECHO_T}\"select python distribution in $withval\"" >&6; }
21660 # Extract the first word of "python", so it can be a program name with args.
21661 set dummy python; ac_word=$2
21662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21664 if test "${ac_cv_path_PYTHON+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
21669 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21673 for as_dir in $PATH
21676 test -z "$as_dir" && as_dir=.
21677 for ac_exec_ext in '' $ac_executable_extensions; do
21678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21679 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21690 PYTHON=$ac_cv_path_PYTHON
21691 if test -n "$PYTHON"; then
21692 { echo "$as_me:$LINENO: result: $PYTHON" >&5
21693 echo "${ECHO_T}$PYTHON" >&6; }
21695 { echo "$as_me:$LINENO: result: no" >&5
21696 echo "${ECHO_T}no" >&6; }
21704 { echo "$as_me:$LINENO: checking local Python configuration..." >&5
21705 echo "$as_me: checking local Python configuration..." >&6;}
21708 PYTHON_PREFIX=`echo $PYTHON | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
21709 PYTHON_PREFIX=`echo $PYTHON_PREFIX | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
21710 PYTHONHOME=$PYTHON_PREFIX
21715 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
21718 PY_MAKEFILE=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/Makefile
21719 if test ! -f "$PY_MAKEFILE"; then
21720 { echo "$as_me:$LINENO: WARNING: *** Couldn't find ${PY_MAKEFILE}. Maybe you are
21721 *** missing the development portion of the python installation" >&5
21722 echo "$as_me: WARNING: *** Couldn't find ${PY_MAKEFILE}. Maybe you are
21723 *** missing the development portion of the python installation" >&2;}
21730 PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION
21731 PYTHON_LIBS="-L${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
21732 PYTHON_LIB=$PYTHON_LIBS
21733 PYTHON_LIBA=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
21737 PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
21741 # Check whether --with-python-site was given.
21742 if test "${with_python_site+set}" = set; then
21743 withval=$with_python_site;
21745 PYTHON_SITE="$withval"
21746 python_site_given=yes
21748 PYTHON_SITE=${prefix}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/site-packages
21749 python_site_given=no
21754 PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE
21760 # Check whether --with-python-site-exec was given.
21761 if test "${with_python_site_exec+set}" = set; then
21762 withval=$with_python_site_exec; PYTHON_SITE_EXEC="$withval"
21764 if test "$python_site_given" = yes; then
21765 PYTHON_SITE_EXEC=$PYTHON_SITE
21767 PYTHON_SITE_EXEC=${PYTHON_EXEC_PREFIX}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/site-packages
21772 PYTHON_SITE_INSTALL=$PYTHON_SITE_PACKAGE
21776 pythondir=${PYTHON_PREFIX}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/
21779 { echo "$as_me:$LINENO: checking if we need libdb" >&5
21780 echo $ECHO_N "checking if we need libdb... $ECHO_C" >&6; }
21781 PY_NEEDOPENDB=`nm $PYTHON_LIBA | grep dbopen | grep U`
21782 if test "x$PY_NEEDOPENDB" != "x"; then
21783 { echo "$as_me:$LINENO: result: yes" >&5
21784 echo "${ECHO_T}yes" >&6; }
21785 { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
21786 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
21787 if test "${ac_cv_lib_db_dbopen+set}" = set; then
21788 echo $ECHO_N "(cached) $ECHO_C" >&6
21790 ac_check_lib_save_LIBS=$LIBS
21792 cat >conftest.$ac_ext <<_ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21799 /* Override any GCC internal prototype to avoid an error.
21800 Use char because int might match the return type of a GCC
21801 builtin and then its argument prototype would still apply. */
21814 rm -f conftest.$ac_objext conftest$ac_exeext
21815 if { (ac_try="$ac_link"
21816 case "(($ac_try" in
21817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818 *) ac_try_echo=$ac_try;;
21820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821 (eval "$ac_link") 2>conftest.er1
21823 grep -v '^ *+' conftest.er1 >conftest.err
21825 cat conftest.err >&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } && {
21828 test -z "$ac_c_werror_flag" ||
21829 test ! -s conftest.err
21830 } && test -s conftest$ac_exeext &&
21831 $as_test_x conftest$ac_exeext; then
21832 ac_cv_lib_db_dbopen=yes
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21837 ac_cv_lib_db_dbopen=no
21840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21841 conftest$ac_exeext conftest.$ac_ext
21842 LIBS=$ac_check_lib_save_LIBS
21844 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
21845 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
21846 if test $ac_cv_lib_db_dbopen = yes; then
21847 PYTHON_LIBS="$PYTHON_LIBS -ldb"
21853 { echo "$as_me:$LINENO: result: no" >&5
21854 echo "${ECHO_T}no" >&6; }
21857 { echo "$as_me:$LINENO: checking if we need libdl" >&5
21858 echo $ECHO_N "checking if we need libdl... $ECHO_C" >&6; }
21859 PY_NEEDOPENDL=`nm $PYTHON_LIBA | grep dlopen | grep U`
21860 if test "x$PY_NEEDOPENDL" != "x"; then
21861 { echo "$as_me:$LINENO: result: yes" >&5
21862 echo "${ECHO_T}yes" >&6; }
21863 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21864 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
21865 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21866 echo $ECHO_N "(cached) $ECHO_C" >&6
21868 ac_check_lib_save_LIBS=$LIBS
21870 cat >conftest.$ac_ext <<_ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h. */
21877 /* Override any GCC internal prototype to avoid an error.
21878 Use char because int might match the return type of a GCC
21879 builtin and then its argument prototype would still apply. */
21892 rm -f conftest.$ac_objext conftest$ac_exeext
21893 if { (ac_try="$ac_link"
21894 case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_link") 2>conftest.er1
21901 grep -v '^ *+' conftest.er1 >conftest.err
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } && {
21906 test -z "$ac_c_werror_flag" ||
21907 test ! -s conftest.err
21908 } && test -s conftest$ac_exeext &&
21909 $as_test_x conftest$ac_exeext; then
21910 ac_cv_lib_dl_dlopen=yes
21912 echo "$as_me: failed program was:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 ac_cv_lib_dl_dlopen=no
21918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21919 conftest$ac_exeext conftest.$ac_ext
21920 LIBS=$ac_check_lib_save_LIBS
21922 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21923 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21924 if test $ac_cv_lib_dl_dlopen = yes; then
21925 PYTHON_LIBS="$PYTHON_LIBS -ldl"
21931 { echo "$as_me:$LINENO: result: no" >&5
21932 echo "${ECHO_T}no" >&6; }
21935 { echo "$as_me:$LINENO: checking if we need libutil" >&5
21936 echo $ECHO_N "checking if we need libutil... $ECHO_C" >&6; }
21937 PY_NEEDOPENPTY=`nm $PYTHON_LIBA | grep openpty | grep U`
21938 if test "x$PY_NEEDOPENPTY" != "x"; then
21939 { echo "$as_me:$LINENO: result: yes" >&5
21940 echo "${ECHO_T}yes" >&6; }
21941 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
21942 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
21943 if test "${ac_cv_lib_util_openpty+set}" = set; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21946 ac_check_lib_save_LIBS=$LIBS
21947 LIBS="-lutil $LIBS"
21948 cat >conftest.$ac_ext <<_ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h. */
21955 /* Override any GCC internal prototype to avoid an error.
21956 Use char because int might match the return type of a GCC
21957 builtin and then its argument prototype would still apply. */
21970 rm -f conftest.$ac_objext conftest$ac_exeext
21971 if { (ac_try="$ac_link"
21972 case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_link") 2>conftest.er1
21979 grep -v '^ *+' conftest.er1 >conftest.err
21981 cat conftest.err >&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } && {
21984 test -z "$ac_c_werror_flag" ||
21985 test ! -s conftest.err
21986 } && test -s conftest$ac_exeext &&
21987 $as_test_x conftest$ac_exeext; then
21988 ac_cv_lib_util_openpty=yes
21990 echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21993 ac_cv_lib_util_openpty=no
21996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21997 conftest$ac_exeext conftest.$ac_ext
21998 LIBS=$ac_check_lib_save_LIBS
22000 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
22001 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
22002 if test $ac_cv_lib_util_openpty = yes; then
22003 PYTHON_LIBS="$PYTHON_LIBS -lutil"
22009 { echo "$as_me:$LINENO: result: no" >&5
22010 echo "${ECHO_T}no" >&6; }
22013 { echo "$as_me:$LINENO: checking if we need tcltk" >&5
22014 echo $ECHO_N "checking if we need tcltk... $ECHO_C" >&6; }
22015 PY_NEEDTCLTK=`nm $PYTHON_LIBA | grep Tcl_Init | grep U`
22016 if test "x$PY_NEEDTCLTK" != "x"; then
22017 { echo "$as_me:$LINENO: result: yes" >&5
22018 echo "${ECHO_T}yes" >&6; }
22019 { echo "$as_me:$LINENO: checking for Tcl_Init in -ltcl" >&5
22020 echo $ECHO_N "checking for Tcl_Init in -ltcl... $ECHO_C" >&6; }
22021 if test "${ac_cv_lib_tcl_Tcl_Init+set}" = set; then
22022 echo $ECHO_N "(cached) $ECHO_C" >&6
22024 ac_check_lib_save_LIBS=$LIBS
22026 cat >conftest.$ac_ext <<_ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22033 /* Override any GCC internal prototype to avoid an error.
22034 Use char because int might match the return type of a GCC
22035 builtin and then its argument prototype would still apply. */
22043 return Tcl_Init ();
22048 rm -f conftest.$ac_objext conftest$ac_exeext
22049 if { (ac_try="$ac_link"
22050 case "(($ac_try" in
22051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052 *) ac_try_echo=$ac_try;;
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055 (eval "$ac_link") 2>conftest.er1
22057 grep -v '^ *+' conftest.er1 >conftest.err
22059 cat conftest.err >&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } && {
22062 test -z "$ac_c_werror_flag" ||
22063 test ! -s conftest.err
22064 } && test -s conftest$ac_exeext &&
22065 $as_test_x conftest$ac_exeext; then
22066 ac_cv_lib_tcl_Tcl_Init=yes
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22071 ac_cv_lib_tcl_Tcl_Init=no
22074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22075 conftest$ac_exeext conftest.$ac_ext
22076 LIBS=$ac_check_lib_save_LIBS
22078 { echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_Tcl_Init" >&5
22079 echo "${ECHO_T}$ac_cv_lib_tcl_Tcl_Init" >&6; }
22080 if test $ac_cv_lib_tcl_Tcl_Init = yes; then
22081 PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk"
22087 { echo "$as_me:$LINENO: result: no" >&5
22088 echo "${ECHO_T}no" >&6; }
22091 if test "$python_ok" == "yes"; then
22092 { echo "$as_me:$LINENO: result: looks good" >&5
22093 echo "${ECHO_T}looks good" >&6; }
22101 if test -n "$PYTHON"; then
22102 # If the user set $PYTHON, use it and don't search something else.
22103 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
22104 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
22105 prog="import sys, string
22106 # split strings by '.' and convert to numeric. Append some zeros
22107 # because we need at least 4 digits for the hex conversion.
22108 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
22110 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
22111 sys.exit(sys.hexversion < minverhex)"
22112 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22113 ($PYTHON -c "$prog") >&5 2>&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; then
22117 { echo "$as_me:$LINENO: result: yes" >&5
22118 echo "${ECHO_T}yes" >&6; }
22120 { { echo "$as_me:$LINENO: error: too old" >&5
22121 echo "$as_me: error: too old" >&2;}
22122 { (exit 1); exit 1; }; }
22125 am_display_PYTHON=$PYTHON
22127 # Otherwise, try each interpreter until we find one that satisfies
22129 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
22130 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
22131 if test "${am_cv_pathless_PYTHON+set}" = set; then
22132 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
22136 test "$am_cv_pathless_PYTHON" = none && break
22137 prog="import sys, string
22138 # split strings by '.' and convert to numeric. Append some zeros
22139 # because we need at least 4 digits for the hex conversion.
22140 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
22142 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
22143 sys.exit(sys.hexversion < minverhex)"
22144 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22145 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); }; then
22154 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
22155 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
22156 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22157 if test "$am_cv_pathless_PYTHON" = none; then
22160 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22161 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22164 if test "${ac_cv_path_PYTHON+set}" = set; then
22165 echo $ECHO_N "(cached) $ECHO_C" >&6
22169 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22173 for as_dir in $PATH
22176 test -z "$as_dir" && as_dir=.
22177 for ac_exec_ext in '' $ac_executable_extensions; do
22178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22179 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22190 PYTHON=$ac_cv_path_PYTHON
22191 if test -n "$PYTHON"; then
22192 { echo "$as_me:$LINENO: result: $PYTHON" >&5
22193 echo "${ECHO_T}$PYTHON" >&6; }
22195 { echo "$as_me:$LINENO: result: no" >&5
22196 echo "${ECHO_T}no" >&6; }
22201 am_display_PYTHON=$am_cv_pathless_PYTHON
22205 if test "$PYTHON" = :; then
22206 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
22207 echo "$as_me: error: no suitable Python interpreter found" >&2;}
22208 { (exit 1); exit 1; }; }
22212 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
22213 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
22214 if test "${am_cv_python_version+set}" = set; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
22219 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
22220 echo "${ECHO_T}$am_cv_python_version" >&6; }
22221 PYTHON_VERSION=$am_cv_python_version
22225 PYTHON_PREFIX='${prefix}'
22227 PYTHON_EXEC_PREFIX='${exec_prefix}'
22231 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
22232 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
22233 if test "${am_cv_python_platform+set}" = set; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22236 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
22238 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
22239 echo "${ECHO_T}$am_cv_python_platform" >&6; }
22240 PYTHON_PLATFORM=$am_cv_python_platform
22245 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
22246 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
22247 if test "${am_cv_python_pythondir+set}" = set; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
22251 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
22253 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
22254 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
22255 pythondir=$am_cv_python_pythondir
22259 pkgpythondir=\${pythondir}/$PACKAGE
22262 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
22263 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
22264 if test "${am_cv_python_pyexecdir+set}" = set; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22267 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
22268 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
22270 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
22271 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
22272 pyexecdir=$am_cv_python_pyexecdir
22276 pkgpyexecdir=\${pyexecdir}/$PACKAGE
22285 echo ---------------------------------------------
22287 echo ---------------------------------------------
22295 ac_cpp='$CXXCPP $CPPFLAGS'
22296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22302 # Check whether --with-opengl was given.
22303 if test "${with_opengl+set}" = set; then
22304 withval=$with_opengl; opengl_dir="$withval"
22306 dirs="/usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /opt/graphics/OpenGL/lib64 /opt/graphics/OpenGL/lib /usr/openwin/lib64 /usr/openwin/lib /usr/X11R6/lib64 /usr/X11R6/lib"
22309 { echo "$as_me:$LINENO: checking for OpenGL..." >&5
22310 echo "$as_me: checking for OpenGL..." >&6;}
22311 { echo "$as_me:$LINENO: checking for OpenGL headers..." >&5
22312 echo "$as_me: checking for OpenGL headers..." >&6;}
22322 OpenGL_headers_ok=no
22325 if test "x${opengl_dir}" != "x" ; then
22326 { echo "$as_me:$LINENO: result: for opengl_dir: $opengl_dir" >&5
22327 echo "${ECHO_T}for opengl_dir: $opengl_dir" >&6; }
22328 as_ac_Header=`echo "ac_cv_header_${opengl_dir}/include/GL/gl.h" | $as_tr_sh`
22329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22330 { echo "$as_me:$LINENO: checking for ${opengl_dir}/include/GL/gl.h" >&5
22331 echo $ECHO_N "checking for ${opengl_dir}/include/GL/gl.h... $ECHO_C" >&6; }
22332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22333 echo $ECHO_N "(cached) $ECHO_C" >&6
22335 ac_res=`eval echo '${'$as_ac_Header'}'`
22336 { echo "$as_me:$LINENO: result: $ac_res" >&5
22337 echo "${ECHO_T}$ac_res" >&6; }
22339 # Is the header compilable?
22340 { echo "$as_me:$LINENO: checking ${opengl_dir}/include/GL/gl.h usability" >&5
22341 echo $ECHO_N "checking ${opengl_dir}/include/GL/gl.h usability... $ECHO_C" >&6; }
22342 cat >conftest.$ac_ext <<_ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h. */
22348 $ac_includes_default
22349 #include <${opengl_dir}/include/GL/gl.h>
22351 rm -f conftest.$ac_objext
22352 if { (ac_try="$ac_compile"
22353 case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22358 (eval "$ac_compile") 2>conftest.er1
22360 grep -v '^ *+' conftest.er1 >conftest.err
22362 cat conftest.err >&5
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); } && {
22365 test -z "$ac_cxx_werror_flag" ||
22366 test ! -s conftest.err
22367 } && test -s conftest.$ac_objext; then
22368 ac_header_compiler=yes
22370 echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22373 ac_header_compiler=no
22376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22378 echo "${ECHO_T}$ac_header_compiler" >&6; }
22380 # Is the header present?
22381 { echo "$as_me:$LINENO: checking ${opengl_dir}/include/GL/gl.h presence" >&5
22382 echo $ECHO_N "checking ${opengl_dir}/include/GL/gl.h presence... $ECHO_C" >&6; }
22383 cat >conftest.$ac_ext <<_ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h. */
22389 #include <${opengl_dir}/include/GL/gl.h>
22391 if { (ac_try="$ac_cpp conftest.$ac_ext"
22392 case "(($ac_try" in
22393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394 *) ac_try_echo=$ac_try;;
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22399 grep -v '^ *+' conftest.er1 >conftest.err
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } >/dev/null && {
22404 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22405 test ! -s conftest.err
22407 ac_header_preproc=yes
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22412 ac_header_preproc=no
22415 rm -f conftest.err conftest.$ac_ext
22416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22417 echo "${ECHO_T}$ac_header_preproc" >&6; }
22419 # So? What about this header?
22420 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22422 { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22423 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22424 { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: proceeding with the compiler's result" >&5
22425 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: proceeding with the compiler's result" >&2;}
22426 ac_header_preproc=yes
22429 { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: present but cannot be compiled" >&5
22430 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: present but cannot be compiled" >&2;}
22431 { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: check for missing prerequisite headers?" >&5
22432 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: check for missing prerequisite headers?" >&2;}
22433 { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: see the Autoconf documentation" >&5
22434 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: see the Autoconf documentation" >&2;}
22435 { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
22436 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22437 { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: proceeding with the preprocessor's result" >&5
22438 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: proceeding with the preprocessor's result" >&2;}
22439 { echo "$as_me:$LINENO: WARNING: ${opengl_dir}/include/GL/gl.h: in the future, the compiler will take precedence" >&5
22440 echo "$as_me: WARNING: ${opengl_dir}/include/GL/gl.h: in the future, the compiler will take precedence" >&2;}
22442 ## ----------------------------------------------- ##
22443 ## Report this to webmaster.salome@opencascade.com ##
22444 ## ----------------------------------------------- ##
22446 ) | sed "s/^/$as_me: WARNING: /" >&2
22449 { echo "$as_me:$LINENO: checking for ${opengl_dir}/include/GL/gl.h" >&5
22450 echo $ECHO_N "checking for ${opengl_dir}/include/GL/gl.h... $ECHO_C" >&6; }
22451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22452 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 eval "$as_ac_Header=\$ac_header_preproc"
22456 ac_res=`eval echo '${'$as_ac_Header'}'`
22457 { echo "$as_me:$LINENO: result: $ac_res" >&5
22458 echo "${ECHO_T}$ac_res" >&6; }
22461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22462 OpenGL_headers_ok=yes; OGL_INCLUDES="-I${opengl_dir}/include"
22464 OpenGL_headers_ok=no
22468 if test "x${OpenGL_headers_ok}" = "xyes" ; then
22469 { echo "$as_me:$LINENO: checking for default OpenGL library..." >&5
22470 echo "$as_me: checking for default OpenGL library..." >&6;}
22471 if test "x${opengl_dir}" = "x/usr" ; then
22474 OGL_LIBS="-L${opengl_dir}/lib"
22476 LDFLAGS_old="$LDFLAGS"
22477 LDFLAGS="$LDFLAGS $OGL_LIBS"
22478 { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
22479 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
22480 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 ac_check_lib_save_LIBS=$LIBS
22485 cat >conftest.$ac_ext <<_ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h. */
22492 /* Override any GCC internal prototype to avoid an error.
22493 Use char because int might match the return type of a GCC
22494 builtin and then its argument prototype would still apply. */
22507 rm -f conftest.$ac_objext conftest$ac_exeext
22508 if { (ac_try="$ac_link"
22509 case "(($ac_try" in
22510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511 *) ac_try_echo=$ac_try;;
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514 (eval "$ac_link") 2>conftest.er1
22516 grep -v '^ *+' conftest.er1 >conftest.err
22518 cat conftest.err >&5
22519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520 (exit $ac_status); } && {
22521 test -z "$ac_cxx_werror_flag" ||
22522 test ! -s conftest.err
22523 } && test -s conftest$ac_exeext &&
22524 $as_test_x conftest$ac_exeext; then
22525 ac_cv_lib_GL_glBegin=yes
22527 echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22530 ac_cv_lib_GL_glBegin=no
22533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22534 conftest$ac_exeext conftest.$ac_ext
22535 LIBS=$ac_check_lib_save_LIBS
22537 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
22538 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
22539 if test $ac_cv_lib_GL_glBegin = yes; then
22545 if test "x${OpenGL_libs_ok}" = "xyes" ; then
22546 cat >conftest.$ac_ext <<_ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22561 rm -f conftest.$ac_objext conftest$ac_exeext
22562 if { (ac_try="$ac_link"
22563 case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568 (eval "$ac_link") 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_cxx_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest$ac_exeext &&
22578 $as_test_x conftest$ac_exeext; then
22579 OpenGL_libs_ok=yes ; OpenGL_ok=yes; OGL_LIBS="$OGL_LIBS -lGL"
22581 echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22588 conftest$ac_exeext conftest.$ac_ext
22590 LDFLAGS="$LDFLAGS_old"
22594 if test "x${OpenGL_headers_ok}" = "xno" ; then
22595 if test "${ac_cv_header_GL_gl_h+set}" = set; then
22596 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
22597 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
22598 if test "${ac_cv_header_GL_gl_h+set}" = set; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
22601 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
22602 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
22604 # Is the header compilable?
22605 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
22606 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
22607 cat >conftest.$ac_ext <<_ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22613 $ac_includes_default
22616 rm -f conftest.$ac_objext
22617 if { (ac_try="$ac_compile"
22618 case "(($ac_try" in
22619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22620 *) ac_try_echo=$ac_try;;
22622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22623 (eval "$ac_compile") 2>conftest.er1
22625 grep -v '^ *+' conftest.er1 >conftest.err
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } && {
22630 test -z "$ac_cxx_werror_flag" ||
22631 test ! -s conftest.err
22632 } && test -s conftest.$ac_objext; then
22633 ac_header_compiler=yes
22635 echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22638 ac_header_compiler=no
22641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22643 echo "${ECHO_T}$ac_header_compiler" >&6; }
22645 # Is the header present?
22646 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
22647 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
22648 cat >conftest.$ac_ext <<_ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22656 if { (ac_try="$ac_cpp conftest.$ac_ext"
22657 case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22664 grep -v '^ *+' conftest.er1 >conftest.err
22666 cat conftest.err >&5
22667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); } >/dev/null && {
22669 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22670 test ! -s conftest.err
22672 ac_header_preproc=yes
22674 echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22677 ac_header_preproc=no
22680 rm -f conftest.err conftest.$ac_ext
22681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22682 echo "${ECHO_T}$ac_header_preproc" >&6; }
22684 # So? What about this header?
22685 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22687 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22688 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22689 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
22690 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
22691 ac_header_preproc=yes
22694 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
22695 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
22696 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
22697 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
22698 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
22699 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
22700 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
22701 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
22702 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
22703 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
22704 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
22705 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
22707 ## ----------------------------------------------- ##
22708 ## Report this to webmaster.salome@opencascade.com ##
22709 ## ----------------------------------------------- ##
22711 ) | sed "s/^/$as_me: WARNING: /" >&2
22714 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
22715 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
22716 if test "${ac_cv_header_GL_gl_h+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 ac_cv_header_GL_gl_h=$ac_header_preproc
22721 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
22722 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
22725 if test $ac_cv_header_GL_gl_h = yes; then
22726 OpenGL_headers_ok=yes
22728 OpenGL_headers_ok=no
22735 if test "x${OpenGL_headers_ok}" = "xno" ; then
22737 for ac_header in /usr/openwin/share/include/GL/glxmd.h
22739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22744 echo $ECHO_N "(cached) $ECHO_C" >&6
22746 ac_res=`eval echo '${'$as_ac_Header'}'`
22747 { echo "$as_me:$LINENO: result: $ac_res" >&5
22748 echo "${ECHO_T}$ac_res" >&6; }
22750 # Is the header compilable?
22751 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22753 cat >conftest.$ac_ext <<_ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h. */
22759 $ac_includes_default
22760 #include <$ac_header>
22762 rm -f conftest.$ac_objext
22763 if { (ac_try="$ac_compile"
22764 case "(($ac_try" in
22765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766 *) ac_try_echo=$ac_try;;
22768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22769 (eval "$ac_compile") 2>conftest.er1
22771 grep -v '^ *+' conftest.er1 >conftest.err
22773 cat conftest.err >&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); } && {
22776 test -z "$ac_cxx_werror_flag" ||
22777 test ! -s conftest.err
22778 } && test -s conftest.$ac_objext; then
22779 ac_header_compiler=yes
22781 echo "$as_me: failed program was:" >&5
22782 sed 's/^/| /' conftest.$ac_ext >&5
22784 ac_header_compiler=no
22787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22789 echo "${ECHO_T}$ac_header_compiler" >&6; }
22791 # Is the header present?
22792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22794 cat >conftest.$ac_ext <<_ACEOF
22797 cat confdefs.h >>conftest.$ac_ext
22798 cat >>conftest.$ac_ext <<_ACEOF
22799 /* end confdefs.h. */
22800 #include <$ac_header>
22802 if { (ac_try="$ac_cpp conftest.$ac_ext"
22803 case "(($ac_try" in
22804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22810 grep -v '^ *+' conftest.er1 >conftest.err
22812 cat conftest.err >&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); } >/dev/null && {
22815 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22816 test ! -s conftest.err
22818 ac_header_preproc=yes
22820 echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22823 ac_header_preproc=no
22826 rm -f conftest.err conftest.$ac_ext
22827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22828 echo "${ECHO_T}$ac_header_preproc" >&6; }
22830 # So? What about this header?
22831 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22837 ac_header_preproc=yes
22840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22847 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22853 ## ----------------------------------------------- ##
22854 ## Report this to webmaster.salome@opencascade.com ##
22855 ## ----------------------------------------------- ##
22857 ) | sed "s/^/$as_me: WARNING: /" >&2
22860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 eval "$as_ac_Header=\$ac_header_preproc"
22867 ac_res=`eval echo '${'$as_ac_Header'}'`
22868 { echo "$as_me:$LINENO: result: $ac_res" >&5
22869 echo "${ECHO_T}$ac_res" >&6; }
22872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22873 cat >>confdefs.h <<_ACEOF
22874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22876 OpenGL_headers_ok=yes; OGL_INCLUDES="-I/usr/openwin/share/include/"
22878 OpenGL_headers_ok=no
22886 if test "x${OpenGL_headers_ok}" = "xno" ; then
22888 for ac_header in /opt/graphics/OpenGL/include/GL/glxmd.h
22890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 ac_res=`eval echo '${'$as_ac_Header'}'`
22898 { echo "$as_me:$LINENO: result: $ac_res" >&5
22899 echo "${ECHO_T}$ac_res" >&6; }
22901 # Is the header compilable?
22902 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22904 cat >conftest.$ac_ext <<_ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910 $ac_includes_default
22911 #include <$ac_header>
22913 rm -f conftest.$ac_objext
22914 if { (ac_try="$ac_compile"
22915 case "(($ac_try" in
22916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917 *) ac_try_echo=$ac_try;;
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920 (eval "$ac_compile") 2>conftest.er1
22922 grep -v '^ *+' conftest.er1 >conftest.err
22924 cat conftest.err >&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } && {
22927 test -z "$ac_cxx_werror_flag" ||
22928 test ! -s conftest.err
22929 } && test -s conftest.$ac_objext; then
22930 ac_header_compiler=yes
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 ac_header_compiler=no
22938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22940 echo "${ECHO_T}$ac_header_compiler" >&6; }
22942 # Is the header present?
22943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22945 cat >conftest.$ac_ext <<_ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h. */
22951 #include <$ac_header>
22953 if { (ac_try="$ac_cpp conftest.$ac_ext"
22954 case "(($ac_try" in
22955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956 *) ac_try_echo=$ac_try;;
22958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22961 grep -v '^ *+' conftest.er1 >conftest.err
22963 cat conftest.err >&5
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); } >/dev/null && {
22966 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22967 test ! -s conftest.err
22969 ac_header_preproc=yes
22971 echo "$as_me: failed program was:" >&5
22972 sed 's/^/| /' conftest.$ac_ext >&5
22974 ac_header_preproc=no
22977 rm -f conftest.err conftest.$ac_ext
22978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22979 echo "${ECHO_T}$ac_header_preproc" >&6; }
22981 # So? What about this header?
22982 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22988 ac_header_preproc=yes
22991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23004 ## ----------------------------------------------- ##
23005 ## Report this to webmaster.salome@opencascade.com ##
23006 ## ----------------------------------------------- ##
23008 ) | sed "s/^/$as_me: WARNING: /" >&2
23011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23014 echo $ECHO_N "(cached) $ECHO_C" >&6
23016 eval "$as_ac_Header=\$ac_header_preproc"
23018 ac_res=`eval echo '${'$as_ac_Header'}'`
23019 { echo "$as_me:$LINENO: result: $ac_res" >&5
23020 echo "${ECHO_T}$ac_res" >&6; }
23023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23024 cat >>confdefs.h <<_ACEOF
23025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23027 OpenGL_headers_ok=yes; OGL_INCLUDES="-I/opt/graphics/OpenGL/include"
23029 OpenGL_headers_ok=no
23036 # some linux OpenGL servers hide the includes in /usr/X11R6/include/GL
23037 if test "x${OpenGL_headers_ok}" = "xno" ; then
23039 for ac_header in /usr/X11R6/include/GL/gl.h
23041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23048 ac_res=`eval echo '${'$as_ac_Header'}'`
23049 { echo "$as_me:$LINENO: result: $ac_res" >&5
23050 echo "${ECHO_T}$ac_res" >&6; }
23052 # Is the header compilable?
23053 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23055 cat >conftest.$ac_ext <<_ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h. */
23061 $ac_includes_default
23062 #include <$ac_header>
23064 rm -f conftest.$ac_objext
23065 if { (ac_try="$ac_compile"
23066 case "(($ac_try" in
23067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068 *) ac_try_echo=$ac_try;;
23070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071 (eval "$ac_compile") 2>conftest.er1
23073 grep -v '^ *+' conftest.er1 >conftest.err
23075 cat conftest.err >&5
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); } && {
23078 test -z "$ac_cxx_werror_flag" ||
23079 test ! -s conftest.err
23080 } && test -s conftest.$ac_objext; then
23081 ac_header_compiler=yes
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_header_compiler=no
23089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23091 echo "${ECHO_T}$ac_header_compiler" >&6; }
23093 # Is the header present?
23094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23096 cat >conftest.$ac_ext <<_ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h. */
23102 #include <$ac_header>
23104 if { (ac_try="$ac_cpp conftest.$ac_ext"
23105 case "(($ac_try" in
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107 *) ac_try_echo=$ac_try;;
23109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23112 grep -v '^ *+' conftest.er1 >conftest.err
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); } >/dev/null && {
23117 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
23118 test ! -s conftest.err
23120 ac_header_preproc=yes
23122 echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23125 ac_header_preproc=no
23128 rm -f conftest.err conftest.$ac_ext
23129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23130 echo "${ECHO_T}$ac_header_preproc" >&6; }
23132 # So? What about this header?
23133 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23139 ac_header_preproc=yes
23142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23145 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23149 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23155 ## ----------------------------------------------- ##
23156 ## Report this to webmaster.salome@opencascade.com ##
23157 ## ----------------------------------------------- ##
23159 ) | sed "s/^/$as_me: WARNING: /" >&2
23162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23165 echo $ECHO_N "(cached) $ECHO_C" >&6
23167 eval "$as_ac_Header=\$ac_header_preproc"
23169 ac_res=`eval echo '${'$as_ac_Header'}'`
23170 { echo "$as_me:$LINENO: result: $ac_res" >&5
23171 echo "${ECHO_T}$ac_res" >&6; }
23174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23175 cat >>confdefs.h <<_ACEOF
23176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23178 OpenGL_headers_ok=yes; OGL_INCLUDES="-I/usr/X11R6/include"
23180 OpenGL_headers_ok=no
23187 if test "x${OpenGL_headers_ok}" = "xyes" ; then
23188 { echo "$as_me:$LINENO: checking for OpenGL library..." >&5
23189 echo "$as_me: checking for OpenGL library..." >&6;}
23190 for idir in $dirs; do
23191 if test -r "${idir}/libGL.so"; then
23192 { echo "$as_me:$LINENO: result: in ${idir}" >&5
23193 echo "${ECHO_T}in ${idir}" >&6; }
23194 if test "x${idir}" = "x/usr/lib64" -o "x${idir}" = "x/usr/lib" ; then
23197 GL_LIB_PATH="-L${idir}"
23202 if test -r "${idir}/libGL.sl"; then
23203 { echo "$as_me:$LINENO: result: in ${idir}" >&5
23204 echo "${ECHO_T}in ${idir}" >&6; }
23205 if test "x${idir}" = "x/usr/lib64" -o "x${idir}" = "x/usr/lib" ; then
23208 GL_LIB_PATH="-L${idir}"
23213 LDFLAGS_old="${LDFLAGS}"
23214 LDFLAGS="${LDFLAGS} ${GL_LIB_PATH}"
23215 { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
23216 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
23217 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
23218 echo $ECHO_N "(cached) $ECHO_C" >&6
23220 ac_check_lib_save_LIBS=$LIBS
23222 cat >conftest.$ac_ext <<_ACEOF
23225 cat confdefs.h >>conftest.$ac_ext
23226 cat >>conftest.$ac_ext <<_ACEOF
23227 /* end confdefs.h. */
23229 /* Override any GCC internal prototype to avoid an error.
23230 Use char because int might match the return type of a GCC
23231 builtin and then its argument prototype would still apply. */
23244 rm -f conftest.$ac_objext conftest$ac_exeext
23245 if { (ac_try="$ac_link"
23246 case "(($ac_try" in
23247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248 *) ac_try_echo=$ac_try;;
23250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23251 (eval "$ac_link") 2>conftest.er1
23253 grep -v '^ *+' conftest.er1 >conftest.err
23255 cat conftest.err >&5
23256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257 (exit $ac_status); } && {
23258 test -z "$ac_cxx_werror_flag" ||
23259 test ! -s conftest.err
23260 } && test -s conftest$ac_exeext &&
23261 $as_test_x conftest$ac_exeext; then
23262 ac_cv_lib_GL_glBegin=yes
23264 echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23267 ac_cv_lib_GL_glBegin=no
23270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23271 conftest$ac_exeext conftest.$ac_ext
23272 LIBS=$ac_check_lib_save_LIBS
23274 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
23275 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
23276 if test $ac_cv_lib_GL_glBegin = yes; then
23282 if test "x${OpenGL_libs_ok}" = "xyes" ; then
23283 cat >conftest.$ac_ext <<_ACEOF
23286 cat confdefs.h >>conftest.$ac_ext
23287 cat >>conftest.$ac_ext <<_ACEOF
23288 /* end confdefs.h. */
23298 rm -f conftest.$ac_objext conftest$ac_exeext
23299 if { (ac_try="$ac_link"
23300 case "(($ac_try" in
23301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302 *) ac_try_echo=$ac_try;;
23304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23305 (eval "$ac_link") 2>conftest.er1
23307 grep -v '^ *+' conftest.er1 >conftest.err
23309 cat conftest.err >&5
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); } && {
23312 test -z "$ac_cxx_werror_flag" ||
23313 test ! -s conftest.err
23314 } && test -s conftest$ac_exeext &&
23315 $as_test_x conftest$ac_exeext; then
23316 OpenGL_libs_ok=yes ; OGL_LIBS="${OGL_LIBS} ${GL_LIB_PATH} -lGL"
23318 echo "$as_me: failed program was:" >&5
23319 sed 's/^/| /' conftest.$ac_ext >&5
23324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23325 conftest$ac_exeext conftest.$ac_ext
23327 LDFLAGS="$LDFLAGS_old"
23330 if test "x${OpenGL_libs_ok}" = "xyes" ; then
23331 for idir in $dirs; do
23332 if test -r "${idir}/libGLU.so"; then
23333 { echo "$as_me:$LINENO: result: in ${idir}" >&5
23334 echo "${ECHO_T}in ${idir}" >&6; }
23335 if test "x${idir}" = "x/usr/lib64" -o "x${idir}" = "x/usr/lib" ; then
23338 GLU_LIB_PATH="-L${idir}"
23343 if test -r "${idir}/libGLU.sl"; then
23344 { echo "$as_me:$LINENO: result: in ${idir}" >&5
23345 echo "${ECHO_T}in ${idir}" >&6; }
23346 if test "x${idir}" = "x/usr/lib64" -o "x${idir}" = "x/usr/lib" ; then
23349 GLU_LIB_PATH="-L${idir}"
23355 # workaround a problem with libGL library location
23356 for idir in $dirs; do
23357 if test -r "${idir}/libGLU.la"; then
23358 GLU_LA_PATH="${idir}/libGLU.la"
23359 GL_LA_PATH_TO_CHECK=`cat ${GLU_LA_PATH} | awk '{ for(i=1;i<NF;i++){ if(gsub("libGL.la","&",$i)>0) print $i } }'`
23360 if test -z ${GL_LA_PATH_TO_CHECK} || test -r ${GL_LA_PATH_TO_CHECK}; then
23364 for jdir in $dirs; do
23365 if test -r "${jdir}/libGL.la"; then
23366 GL_LA_PATH="${jdir}/libGL.la"
23367 # copy the libGLU.la file and set correct libGL.la path in it
23368 NEW_GLU_LA_PATH=${ROOT_BUILDDIR}
23369 NEW_GLU_LA_FILE="${NEW_GLU_LA_PATH}/libGLU.la"
23370 sed -e "s%${GL_LA_PATH_TO_CHECK}%${GL_LA_PATH}%" ${GLU_LA_PATH} > "${NEW_GLU_LA_FILE}"
23371 chmod -f --reference=${GLU_LA_PATH} "${NEW_GLU_LA_FILE}"
23372 # set a new libGLU.la path
23373 GLU_LIB_PATH="-L${NEW_GLU_LA_PATH}"
23374 # create a simbolic link to libGLU.so
23375 for kdir in $dirs; do
23376 if test -r "${kdir}/libGLU.so"; then
23377 cp -fs "${kdir}/libGLU.so" "${NEW_GLU_LA_PATH}/libGLU.so"
23388 LDFLAGS_old="${LDFLAGS}"
23389 LDFLAGS="${LDFLAGS} ${OGL_LIBS} ${GLU_LIB_PATH}"
23390 { echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
23391 echo $ECHO_N "checking for gluBeginSurface in -lGLU... $ECHO_C" >&6; }
23392 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
23393 echo $ECHO_N "(cached) $ECHO_C" >&6
23395 ac_check_lib_save_LIBS=$LIBS
23397 cat >conftest.$ac_ext <<_ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23404 /* Override any GCC internal prototype to avoid an error.
23405 Use char because int might match the return type of a GCC
23406 builtin and then its argument prototype would still apply. */
23410 char gluBeginSurface ();
23414 return gluBeginSurface ();
23419 rm -f conftest.$ac_objext conftest$ac_exeext
23420 if { (ac_try="$ac_link"
23421 case "(($ac_try" in
23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423 *) ac_try_echo=$ac_try;;
23425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23426 (eval "$ac_link") 2>conftest.er1
23428 grep -v '^ *+' conftest.er1 >conftest.err
23430 cat conftest.err >&5
23431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); } && {
23433 test -z "$ac_cxx_werror_flag" ||
23434 test ! -s conftest.err
23435 } && test -s conftest$ac_exeext &&
23436 $as_test_x conftest$ac_exeext; then
23437 ac_cv_lib_GLU_gluBeginSurface=yes
23439 echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.$ac_ext >&5
23442 ac_cv_lib_GLU_gluBeginSurface=no
23445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23446 conftest$ac_exeext conftest.$ac_ext
23447 LIBS=$ac_check_lib_save_LIBS
23449 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
23450 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginSurface" >&6; }
23451 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
23457 if test "x${OpenGL_libs_ok}" = "xyes" ; then
23458 cat >conftest.$ac_ext <<_ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23473 rm -f conftest.$ac_objext conftest$ac_exeext
23474 if { (ac_try="$ac_link"
23475 case "(($ac_try" in
23476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477 *) ac_try_echo=$ac_try;;
23479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23480 (eval "$ac_link") 2>conftest.er1
23482 grep -v '^ *+' conftest.er1 >conftest.err
23484 cat conftest.err >&5
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } && {
23487 test -z "$ac_cxx_werror_flag" ||
23488 test ! -s conftest.err
23489 } && test -s conftest$ac_exeext &&
23490 $as_test_x conftest$ac_exeext; then
23491 OpenGL_libs_ok=yes ; OGL_LIBS="${OGL_LIBS} ${GLU_LIB_PATH} -lGLU"
23493 echo "$as_me: failed program was:" >&5
23494 sed 's/^/| /' conftest.$ac_ext >&5
23499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23500 conftest$ac_exeext conftest.$ac_ext
23502 LDFLAGS="$LDFLAGS_old"
23505 if test "x${OpenGL_headers_ok}" = "xyes" ; then
23506 if test "x${OpenGL_libs_ok}" = "xyes" ; then
23511 { echo "$as_me:$LINENO: result: for OpenGL_headers_ok: $OpenGL_headers_ok" >&5
23512 echo "${ECHO_T}for OpenGL_headers_ok: $OpenGL_headers_ok" >&6; }
23513 { echo "$as_me:$LINENO: result: for OpenGL_libs_ok: $OpenGL_libs_ok" >&5
23514 echo "${ECHO_T}for OpenGL_libs_ok: $OpenGL_libs_ok" >&6; }
23515 { echo "$as_me:$LINENO: result: for OpenGL_ok: $OpenGL_ok" >&5
23516 echo "${ECHO_T}for OpenGL_ok: $OpenGL_ok" >&6; }
23522 ac_cpp='$CPP $CPPFLAGS'
23523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23531 # Check whether --with-qt was given.
23532 if test "${with_qt+set}" = set; then
23533 withval=$with_qt; with_qt=$withval
23542 { echo "$as_me:$LINENO: checking for Qt..." >&5
23543 echo "$as_me: checking for Qt..." >&6;}
23545 if test "x$OpenGL_ok" != "xyes" ; then
23546 { echo "$as_me:$LINENO: WARNING: Qt needs OpenGL correct configuration" >&5
23547 echo "$as_me: WARNING: Qt needs OpenGL correct configuration" >&2;}
23552 QTDIR=$(echo $QTDIR | sed 's%/\+$%%')
23556 ac_cpp='$CXXCPP $CPPFLAGS'
23557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23562 if test -z $with_qt ; then
23565 if test "x$with_qt" = "xyes" ; then
23568 if test "x$with_qt" = "xauto" ; then
23571 if test "x$with_qt" = "xno" ; then
23573 { echo "$as_me:$LINENO: WARNING: Value no" >&5
23574 echo "$as_me: WARNING: Value no" >&2;}
23577 if test "x$with_qt" != "x" ; then
23579 elif test "$QTDIR" = "/usr/lib/qt3" ; then
23580 { echo "$as_me:$LINENO: result: current QTDIR is $QTDIR" >&5
23581 echo "${ECHO_T}current QTDIR is $QTDIR" >&6; }
23582 if test -d /usr/lib/qt4 ; then
23583 { echo "$as_me:$LINENO: result: it is strange for a qt4 installation !" >&5
23584 echo "${ECHO_T}it is strange for a qt4 installation !" >&6; }
23585 { echo "$as_me:$LINENO: result: /usr/lib/qt4 is present" >&5
23586 echo "${ECHO_T}/usr/lib/qt4 is present" >&6; }
23587 { echo "$as_me:$LINENO: result: replacing QTDIR by /usr/lib/qt4" >&5
23588 echo "${ECHO_T}replacing QTDIR by /usr/lib/qt4" >&6; }
23591 elif test -z $QTDIR ; then
23592 { echo "$as_me:$LINENO: WARNING: undefined QTDIR variable which specify where Qt product was installed" >&5
23593 echo "$as_me: WARNING: undefined QTDIR variable which specify where Qt product was installed" >&2;}
23594 for d in /usr/local/lib/qt4 /usr/lib/qt4 /usr ; do
23595 if test -f ${d}/lib/libQtCore.so ; then
23596 { echo "$as_me:$LINENO: result: trying ${d}" >&5
23597 echo "${ECHO_T}trying ${d}" >&6; }
23600 elif test -f ${d}/lib64/libQtCore.so ; then
23601 { echo "$as_me:$LINENO: result: trying ${d}" >&5
23602 echo "${ECHO_T}trying ${d}" >&6; }
23605 elif test -f ${d}/libQtCore.so ; then
23606 { echo "$as_me:$LINENO: result: trying ${d}" >&5
23607 echo "${ECHO_T}trying ${d}" >&6; }
23615 # check QTDIR environment variable
23617 if test "x$QTDIR" = "x"
23619 { echo "$as_me:$LINENO: result: Please define correct path in \"--with-qt\" option or use correct $QTDIR variable" >&5
23620 echo "${ECHO_T}Please define correct path in \"--with-qt\" option or use correct $QTDIR variable" >&6; }
23627 if test "x$qt_ok" = "xyes"
23631 as_ac_File=`echo "ac_cv_file_${QTDIR}/include/qt4/QtCore/qglobal.h" | $as_tr_sh`
23632 { echo "$as_me:$LINENO: checking for ${QTDIR}/include/qt4/QtCore/qglobal.h" >&5
23633 echo $ECHO_N "checking for ${QTDIR}/include/qt4/QtCore/qglobal.h... $ECHO_C" >&6; }
23634 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23635 echo $ECHO_N "(cached) $ECHO_C" >&6
23637 test "$cross_compiling" = yes &&
23638 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23639 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23640 { (exit 1); exit 1; }; }
23641 if test -r "${QTDIR}/include/qt4/QtCore/qglobal.h"; then
23642 eval "$as_ac_File=yes"
23644 eval "$as_ac_File=no"
23647 ac_res=`eval echo '${'$as_ac_File'}'`
23648 { echo "$as_me:$LINENO: result: $ac_res" >&5
23649 echo "${ECHO_T}$ac_res" >&6; }
23650 if test `eval echo '${'$as_ac_File'}'` = yes; then
23656 if test "x$QTINC" = "x"
23658 as_ac_File=`echo "ac_cv_file_${QTDIR}/include${QTINC}/QtCore/qglobal.h" | $as_tr_sh`
23659 { echo "$as_me:$LINENO: checking for ${QTDIR}/include${QTINC}/QtCore/qglobal.h" >&5
23660 echo $ECHO_N "checking for ${QTDIR}/include${QTINC}/QtCore/qglobal.h... $ECHO_C" >&6; }
23661 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23662 echo $ECHO_N "(cached) $ECHO_C" >&6
23664 test "$cross_compiling" = yes &&
23665 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23666 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23667 { (exit 1); exit 1; }; }
23668 if test -r "${QTDIR}/include${QTINC}/QtCore/qglobal.h"; then
23669 eval "$as_ac_File=yes"
23671 eval "$as_ac_File=no"
23674 ac_res=`eval echo '${'$as_ac_File'}'`
23675 { echo "$as_me:$LINENO: result: $ac_res" >&5
23676 echo "${ECHO_T}$ac_res" >&6; }
23677 if test `eval echo '${'$as_ac_File'}'` = yes; then
23686 if test "x$qt_inc_ok" = "xyes"
23688 { echo "$as_me:$LINENO: checking whether Qt version >= 4.0" >&5
23689 echo $ECHO_N "checking whether Qt version >= 4.0... $ECHO_C" >&6; }
23690 QT_VERSION=`grep "QT_VERSION_STR" ${QTDIR}/include${QTINC}/QtCore/qglobal.h | sed -e 's%^#define QT_VERSION_STR[[:space:]]*\"\([[:digit:]\.]*\)\"%\1%g'`
23691 QT_VERSION_ID=`echo $QT_VERSION | awk -F. '{v=$1*10000+$2*100+$3;print v}'`
23692 if test $QT_VERSION_ID -ge 40000
23694 { echo "$as_me:$LINENO: result: yes" >&5
23695 echo "${ECHO_T}yes" >&6; }
23697 { echo "$as_me:$LINENO: result: no" >&5
23698 echo "${ECHO_T}no" >&6; }
23701 { echo "$as_me:$LINENO: checking Qt version" >&5
23702 echo $ECHO_N "checking Qt version... $ECHO_C" >&6; }
23703 { echo "$as_me:$LINENO: result: $QT_VERSION" >&5
23704 echo "${ECHO_T}$QT_VERSION" >&6; }
23711 # check moc presence (meta-object compiler)
23713 if test "x$qt_ok" = "xyes"
23715 if test -f ${QTDIR}/bin/moc
23717 MOC=${QTDIR}/bin/moc
23719 # Extract the first word of "moc", so it can be a program name with args.
23720 set dummy moc; ac_word=$2
23721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23723 if test "${ac_cv_path_MOC+set}" = set; then
23724 echo $ECHO_N "(cached) $ECHO_C" >&6
23728 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
23731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23732 for as_dir in $PATH
23735 test -z "$as_dir" && as_dir=.
23736 for ac_exec_ext in '' $ac_executable_extensions; do
23737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23738 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
23739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23749 MOC=$ac_cv_path_MOC
23750 if test -n "$MOC"; then
23751 { echo "$as_me:$LINENO: result: $MOC" >&5
23752 echo "${ECHO_T}$MOC" >&6; }
23754 { echo "$as_me:$LINENO: result: no" >&5
23755 echo "${ECHO_T}no" >&6; }
23760 if test "x$MOC" = "x"
23763 { echo "$as_me:$LINENO: result: moc (Qt meta-object compiler) is not in the PATH variable" >&5
23764 echo "${ECHO_T}moc (Qt meta-object compiler) is not in the PATH variable" >&6; }
23767 { echo "$as_me:$LINENO: result: moc (Qt meta-object compiler) is found" >&5
23768 echo "${ECHO_T}moc (Qt meta-object compiler) is found" >&6; }
23771 if test "x$qt_ok" = "xyes"
23773 { echo "$as_me:$LINENO: checking cheching equality Qt and moc tool version" >&5
23774 echo $ECHO_N "checking cheching equality Qt and moc tool version... $ECHO_C" >&6; }
23775 MOC_VERSION=`$MOC -v 2>&1 | awk 'BEGIN{FS="[ ()]"};{print $(NF-1)}'`
23776 if test "x$QT_VERSION" = "x$MOC_VERSION"
23778 { echo "$as_me:$LINENO: result: yes" >&5
23779 echo "${ECHO_T}yes" >&6; }
23782 { echo "$as_me:$LINENO: result: moc tool and Qt product are incompatible $MOC_VERSION" >&5
23783 echo "${ECHO_T}moc tool and Qt product are incompatible $MOC_VERSION" >&6; }
23790 # check uic presence (user interface compiler)
23792 if test "x$qt_ok" = "xyes"
23794 if test -f ${QTDIR}/bin/uic
23796 UIC=${QTDIR}/bin/uic
23798 # Extract the first word of "uic", so it can be a program name with args.
23799 set dummy uic; ac_word=$2
23800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23802 if test "${ac_cv_path_UIC+set}" = set; then
23803 echo $ECHO_N "(cached) $ECHO_C" >&6
23807 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
23810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23811 for as_dir in $PATH
23814 test -z "$as_dir" && as_dir=.
23815 for ac_exec_ext in '' $ac_executable_extensions; do
23816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23817 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
23818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23828 UIC=$ac_cv_path_UIC
23829 if test -n "$UIC"; then
23830 { echo "$as_me:$LINENO: result: $UIC" >&5
23831 echo "${ECHO_T}$UIC" >&6; }
23833 { echo "$as_me:$LINENO: result: no" >&5
23834 echo "${ECHO_T}no" >&6; }
23839 if test "x$UIC" = "x"
23842 { echo "$as_me:$LINENO: result: uic (Qt user interface compiler) is not in the PATH variable" >&5
23843 echo "${ECHO_T}uic (Qt user interface compiler) is not in the PATH variable" >&6; }
23846 { echo "$as_me:$LINENO: result: uic (Qt user interface compiler) is found" >&5
23847 echo "${ECHO_T}uic (Qt user interface compiler) is found" >&6; }
23852 # check rcc presence (resources compiler)
23854 if test "x$qt_ok" = "xyes"
23856 if test -f ${QTDIR}/bin/rcc
23858 QRCC=${QTDIR}/bin/rcc
23860 # Extract the first word of "rcc", so it can be a program name with args.
23861 set dummy rcc; ac_word=$2
23862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23864 if test "${ac_cv_path_QRCC+set}" = set; then
23865 echo $ECHO_N "(cached) $ECHO_C" >&6
23869 ac_cv_path_QRCC="$QRCC" # Let the user override the test with a path.
23872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23873 for as_dir in $PATH
23876 test -z "$as_dir" && as_dir=.
23877 for ac_exec_ext in '' $ac_executable_extensions; do
23878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23879 ac_cv_path_QRCC="$as_dir/$ac_word$ac_exec_ext"
23880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23890 QRCC=$ac_cv_path_QRCC
23891 if test -n "$QRCC"; then
23892 { echo "$as_me:$LINENO: result: $QRCC" >&5
23893 echo "${ECHO_T}$QRCC" >&6; }
23895 { echo "$as_me:$LINENO: result: no" >&5
23896 echo "${ECHO_T}no" >&6; }
23901 if test "x$QRCC" = "x"
23904 { echo "$as_me:$LINENO: result: rcc (Qt resources compiler) is not in the PATH variable" >&5
23905 echo "${ECHO_T}rcc (Qt resources compiler) is not in the PATH variable" >&6; }
23908 { echo "$as_me:$LINENO: result: rcc (Qt resources compiler) is found" >&5
23909 echo "${ECHO_T}rcc (Qt resources compiler) is found" >&6; }
23912 if test "x$qt_ok" = "xyes"
23914 { echo "$as_me:$LINENO: checking cheching equality Qt and rcc tool version" >&5
23915 echo $ECHO_N "checking cheching equality Qt and rcc tool version... $ECHO_C" >&6; }
23916 QRCC_VERSION=`$QRCC -v 2>&1 | awk '{print $NF}'`
23917 if test "x$QT_VERSION" = "x$QRCC_VERSION"
23919 { echo "$as_me:$LINENO: result: yes" >&5
23920 echo "${ECHO_T}yes" >&6; }
23923 { echo "$as_me:$LINENO: result: rcc tool and Qt product are incompatible" >&5
23924 echo "${ECHO_T}rcc tool and Qt product are incompatible" >&6; }
23931 # check lrelease presence (translation files compiler)
23933 if test "x$qt_ok" = "xyes"
23935 if test -f ${QTDIR}/bin/lrelease
23937 LRELEASE=${QTDIR}/bin/lrelease
23939 # Extract the first word of "lrelease", so it can be a program name with args.
23940 set dummy lrelease; ac_word=$2
23941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23943 if test "${ac_cv_path_LRELEASE+set}" = set; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23948 ac_cv_path_LRELEASE="$LRELEASE" # Let the user override the test with a path.
23951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23952 for as_dir in $PATH
23955 test -z "$as_dir" && as_dir=.
23956 for ac_exec_ext in '' $ac_executable_extensions; do
23957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23958 ac_cv_path_LRELEASE="$as_dir/$ac_word$ac_exec_ext"
23959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23969 LRELEASE=$ac_cv_path_LRELEASE
23970 if test -n "$LRELEASE"; then
23971 { echo "$as_me:$LINENO: result: $LRELEASE" >&5
23972 echo "${ECHO_T}$LRELEASE" >&6; }
23974 { echo "$as_me:$LINENO: result: no" >&5
23975 echo "${ECHO_T}no" >&6; }
23980 if test "x$LRELEASE" = "x"
23983 { echo "$as_me:$LINENO: result: lrelease (Qt translation files compiler) is not in the PATH variable" >&5
23984 echo "${ECHO_T}lrelease (Qt translation files compiler) is not in the PATH variable" >&6; }
23987 { echo "$as_me:$LINENO: result: lrelease (Qt translation files compiler) is found" >&5
23988 echo "${ECHO_T}lrelease (Qt translation files compiler) is found" >&6; }
23991 if test "x$qt_ok" = "xyes"
23993 { echo "$as_me:$LINENO: checking equality of Qt and lrelease tool version" >&5
23994 echo $ECHO_N "checking equality of Qt and lrelease tool version... $ECHO_C" >&6; }
23995 LRELEASE_VERSION=`$LRELEASE -version 2>&1 | awk '{print $NF}'`
23996 if test "x$QT_VERSION" = "x$LRELEASE_VERSION"
23998 { echo "$as_me:$LINENO: result: yes" >&5
23999 echo "${ECHO_T}yes" >&6; }
24002 { echo "$as_me:$LINENO: result: lrelease tool and Qt product are incompatible" >&5
24003 echo "${ECHO_T}lrelease tool and Qt product are incompatible" >&6; }
24012 # check Qt header files
24014 if test "x$qt_ok" = "xyes"
24016 { echo "$as_me:$LINENO: checking include Qt header files..." >&5
24017 echo "$as_me: checking include Qt header files..." >&6;}
24019 CPPFLAGS_old=$CPPFLAGS
24020 CPPFLAGS="$CPPFLAGS -I${QTDIR}/include${QTINC} -I${QTDIR}/include${QTINC}/QtCore"
24021 if test "${ac_cv_header_QObject+set}" = set; then
24022 { echo "$as_me:$LINENO: checking for QObject" >&5
24023 echo $ECHO_N "checking for QObject... $ECHO_C" >&6; }
24024 if test "${ac_cv_header_QObject+set}" = set; then
24025 echo $ECHO_N "(cached) $ECHO_C" >&6
24027 { echo "$as_me:$LINENO: result: $ac_cv_header_QObject" >&5
24028 echo "${ECHO_T}$ac_cv_header_QObject" >&6; }
24030 # Is the header compilable?
24031 { echo "$as_me:$LINENO: checking QObject usability" >&5
24032 echo $ECHO_N "checking QObject usability... $ECHO_C" >&6; }
24033 cat >conftest.$ac_ext <<_ACEOF
24036 cat confdefs.h >>conftest.$ac_ext
24037 cat >>conftest.$ac_ext <<_ACEOF
24038 /* end confdefs.h. */
24039 $ac_includes_default
24042 rm -f conftest.$ac_objext
24043 if { (ac_try="$ac_compile"
24044 case "(($ac_try" in
24045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046 *) ac_try_echo=$ac_try;;
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049 (eval "$ac_compile") 2>conftest.er1
24051 grep -v '^ *+' conftest.er1 >conftest.err
24053 cat conftest.err >&5
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); } && {
24056 test -z "$ac_cxx_werror_flag" ||
24057 test ! -s conftest.err
24058 } && test -s conftest.$ac_objext; then
24059 ac_header_compiler=yes
24061 echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.$ac_ext >&5
24064 ac_header_compiler=no
24067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24069 echo "${ECHO_T}$ac_header_compiler" >&6; }
24071 # Is the header present?
24072 { echo "$as_me:$LINENO: checking QObject presence" >&5
24073 echo $ECHO_N "checking QObject presence... $ECHO_C" >&6; }
24074 cat >conftest.$ac_ext <<_ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h. */
24082 if { (ac_try="$ac_cpp conftest.$ac_ext"
24083 case "(($ac_try" in
24084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24085 *) ac_try_echo=$ac_try;;
24087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24090 grep -v '^ *+' conftest.er1 >conftest.err
24092 cat conftest.err >&5
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); } >/dev/null && {
24095 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24096 test ! -s conftest.err
24098 ac_header_preproc=yes
24100 echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24103 ac_header_preproc=no
24106 rm -f conftest.err conftest.$ac_ext
24107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24108 echo "${ECHO_T}$ac_header_preproc" >&6; }
24110 # So? What about this header?
24111 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24113 { echo "$as_me:$LINENO: WARNING: QObject: accepted by the compiler, rejected by the preprocessor!" >&5
24114 echo "$as_me: WARNING: QObject: accepted by the compiler, rejected by the preprocessor!" >&2;}
24115 { echo "$as_me:$LINENO: WARNING: QObject: proceeding with the compiler's result" >&5
24116 echo "$as_me: WARNING: QObject: proceeding with the compiler's result" >&2;}
24117 ac_header_preproc=yes
24120 { echo "$as_me:$LINENO: WARNING: QObject: present but cannot be compiled" >&5
24121 echo "$as_me: WARNING: QObject: present but cannot be compiled" >&2;}
24122 { echo "$as_me:$LINENO: WARNING: QObject: check for missing prerequisite headers?" >&5
24123 echo "$as_me: WARNING: QObject: check for missing prerequisite headers?" >&2;}
24124 { echo "$as_me:$LINENO: WARNING: QObject: see the Autoconf documentation" >&5
24125 echo "$as_me: WARNING: QObject: see the Autoconf documentation" >&2;}
24126 { echo "$as_me:$LINENO: WARNING: QObject: section \"Present But Cannot Be Compiled\"" >&5
24127 echo "$as_me: WARNING: QObject: section \"Present But Cannot Be Compiled\"" >&2;}
24128 { echo "$as_me:$LINENO: WARNING: QObject: proceeding with the preprocessor's result" >&5
24129 echo "$as_me: WARNING: QObject: proceeding with the preprocessor's result" >&2;}
24130 { echo "$as_me:$LINENO: WARNING: QObject: in the future, the compiler will take precedence" >&5
24131 echo "$as_me: WARNING: QObject: in the future, the compiler will take precedence" >&2;}
24133 ## ----------------------------------------------- ##
24134 ## Report this to webmaster.salome@opencascade.com ##
24135 ## ----------------------------------------------- ##
24137 ) | sed "s/^/$as_me: WARNING: /" >&2
24140 { echo "$as_me:$LINENO: checking for QObject" >&5
24141 echo $ECHO_N "checking for QObject... $ECHO_C" >&6; }
24142 if test "${ac_cv_header_QObject+set}" = set; then
24143 echo $ECHO_N "(cached) $ECHO_C" >&6
24145 ac_cv_header_QObject=$ac_header_preproc
24147 { echo "$as_me:$LINENO: result: $ac_cv_header_QObject" >&5
24148 echo "${ECHO_T}$ac_cv_header_QObject" >&6; }
24151 if test $ac_cv_header_QObject = yes; then
24158 CPPFLAGS=$CPPFLAGS_old
24160 if test "x$qt_ok" = "xno"
24162 { echo "$as_me:$LINENO: result: qt header files are not found in $QTDIR/include${QTINC}/QtCore" >&5
24163 echo "${ECHO_T}qt header files are not found in $QTDIR/include${QTINC}/QtCore" >&6; }
24164 { echo "$as_me:$LINENO: result: QTDIR environment variable may be wrong (probably too old Qt version)" >&5
24165 echo "${ECHO_T}QTDIR environment variable may be wrong (probably too old Qt version)" >&6; }
24167 { echo "$as_me:$LINENO: result: qt header files seem to be OK" >&5
24168 echo "${ECHO_T}qt header files seem to be OK" >&6; }
24169 QT_INCLUDES="-I${QTDIR}/include${QTINC}"
24170 # user header files
24171 QT_INCLUDES="${QT_INCLUDES} -I${QTDIR}/include${QTINC}/QtCore"
24172 QT_INCLUDES="${QT_INCLUDES} -I${QTDIR}/include${QTINC}/QtGui"
24173 QT_INCLUDES="${QT_INCLUDES} -I${QTDIR}/include${QTINC}/QtOpenGL"
24174 QT_INCLUDES="${QT_INCLUDES} -I${QTDIR}/include${QTINC}/QtXml"
24175 # not used currently header files (uncomment if required)
24176 #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtAssistant"
24177 #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtDBus"
24178 #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtDesigner"
24179 #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtNetwork"
24180 #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtSql"
24181 #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtSvg"
24182 #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtTest"
24183 #QT_INCLUDES="${QT_INCLUDES} -I$(QTDIR)/include${QTINC}/QtUiTools"
24185 QT_ASSISTANT_INCLUDES="${QT_ASSISTANT_INCLUDES} -I${QTDIR}/include${QTINC}/QtAssistant"
24186 QT_ASSISTANT_INCLUDES="${QT_ASSISTANT_INCLUDES} -I${QTDIR}/include${QTINC}/QtNetwork"
24188 # this flag is obsolete with Qt 4
24189 QT_MT_INCLUDES="$QT_INCLUDES"
24194 # test Qt libraries
24196 if test "x$qt_ok" = "xyes"
24198 { echo "$as_me:$LINENO: checking linking against Qt library" >&5
24199 echo $ECHO_N "checking linking against Qt library... $ECHO_C" >&6; }
24201 CXXFLAGS_old=$CXXFLAGS
24202 CXXFLAGS="$CXXFLAGS $QT_INCLUDES"
24205 if test "x$QTDIR" = "x/usr" ; then
24207 elif test -d ${QTDIR}/lib; then
24208 QT_LIB_DIR="-L$QTDIR/lib"
24209 elif test -d ${QTDIR}/lib64; then
24210 QT_LIB_DIR="-L$QTDIR/lib64"
24211 elif test "x$QTDIR" = "x/usr/lib/qt4" ; then
24214 { { echo "$as_me:$LINENO: error: Can't detect of Qt library directory " >&5
24215 echo "$as_me: error: Can't detect of Qt library directory " >&2;}
24216 { (exit 1); exit 1; }; }
24219 LIBS="$LIBS $QT_LIB_DIR -lQtCore"
24221 if test "${salome_cv_lib_qt+set}" = set; then
24222 echo $ECHO_N "(cached) $ECHO_C" >&6
24225 cat >conftest.$ac_ext <<_ACEOF
24228 cat confdefs.h >>conftest.$ac_ext
24229 cat >>conftest.$ac_ext <<_ACEOF
24230 /* end confdefs.h. */
24231 #include <QCoreApplication>
24238 QCoreApplication a(n, s);
24244 rm -f conftest.$ac_objext conftest$ac_exeext
24245 if { (ac_try="$ac_link"
24246 case "(($ac_try" in
24247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24248 *) ac_try_echo=$ac_try;;
24250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24251 (eval "$ac_link") 2>conftest.er1
24253 grep -v '^ *+' conftest.er1 >conftest.err
24255 cat conftest.err >&5
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); } && {
24258 test -z "$ac_cxx_werror_flag" ||
24259 test ! -s conftest.err
24260 } && test -s conftest$ac_exeext &&
24261 $as_test_x conftest$ac_exeext; then
24262 eval "salome_cv_lib_qt=yes"
24264 echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24267 eval "salome_cv_lib_qt=no"
24270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24271 conftest$ac_exeext conftest.$ac_ext
24275 qt_ok="$salome_cv_lib_qt"
24277 # BEGIN: for CCRT (installation of qt have only a "lib" directory)
24278 if test "x$qt_ok" = "xno"
24280 QT_LIB_DIR="-L$QTDIR/lib"
24281 LIBS="$LIBS_old $QT_LIB_DIR -lQtCore"
24283 if test "${salome_cv_lib_qt+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24287 cat >conftest.$ac_ext <<_ACEOF
24290 cat confdefs.h >>conftest.$ac_ext
24291 cat >>conftest.$ac_ext <<_ACEOF
24292 /* end confdefs.h. */
24293 #include <QCoreApplication>
24300 QCoreApplication a(n, s);
24306 rm -f conftest.$ac_objext conftest$ac_exeext
24307 if { (ac_try="$ac_link"
24308 case "(($ac_try" in
24309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310 *) ac_try_echo=$ac_try;;
24312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24313 (eval "$ac_link") 2>conftest.er1
24315 grep -v '^ *+' conftest.er1 >conftest.err
24317 cat conftest.err >&5
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); } && {
24320 test -z "$ac_cxx_werror_flag" ||
24321 test ! -s conftest.err
24322 } && test -s conftest$ac_exeext &&
24323 $as_test_x conftest$ac_exeext; then
24324 eval "salome_cv_lib_qt=yes"
24326 echo "$as_me: failed program was:" >&5
24327 sed 's/^/| /' conftest.$ac_ext >&5
24329 eval "salome_cv_lib_qt=no"
24332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24333 conftest$ac_exeext conftest.$ac_ext
24337 qt_ok="$salome_cv_lib_qt"
24341 if test "x$qt_ok" = "xno"
24343 { echo "$as_me:$LINENO: result: no" >&5
24344 echo "${ECHO_T}no" >&6; }
24345 { echo "$as_me:$LINENO: result: unable to link with qt library" >&5
24346 echo "${ECHO_T}unable to link with qt library" >&6; }
24347 { echo "$as_me:$LINENO: result: QTDIR environment variable may be wrong (probably too old Qt version)" >&5
24348 echo "${ECHO_T}QTDIR environment variable may be wrong (probably too old Qt version)" >&6; }
24350 { echo "$as_me:$LINENO: result: yes" >&5
24351 echo "${ECHO_T}yes" >&6; }
24353 QT_CORE_LIBS="$QT_LIB_DIR -lQtCore -lQtXml"
24355 QT_GUI_LIBS="$QT_LIB_DIR -lQtGui -lQtOpenGL"
24356 # other libs (currently not used)
24357 QT_OTHER_LIBS="$QT_LIB_DIR"
24358 # other libs (can be used if necessary)
24359 #QT_OTHER_LIBS="$QT_LIB_DIR -lQt3Support -lQtAssistantClient -lQtDesigner -lQtNetwork -lQtSql -lQtSvg -lQtTest -ltQtUiTools"
24360 QT_ASSISTANT_LIBS="$QT_LIB_DIR -lQtAssistantClient -lQtNetwork"
24362 QT_LIBS="$QT_CORE_LIBS $QT_GUI_LIBS $QT_OTHER_LIBS"
24363 # this flag is obsolete with Qt 4
24364 QT_MT_LIBS="$QT_LIBS"
24367 CXXFLAGS=$CXXFLAGS_old
24391 ac_cpp='$CPP $CPPFLAGS'
24392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24397 { echo "$as_me:$LINENO: result: for Qt: $qt_ok" >&5
24398 echo "${ECHO_T}for Qt: $qt_ok" >&6; }
24401 cat >confcache <<\_ACEOF
24402 # This file is a shell script that caches the results of configure
24403 # tests run on this system so they can be shared between configure
24404 # scripts and configure runs, see configure's option --config-cache.
24405 # It is not useful on other systems. If it contains results you don't
24406 # want to keep, you may remove or edit it.
24408 # config.status only pays attention to the cache file if you give it
24409 # the --recheck option to rerun configure.
24411 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24412 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24413 # following values.
24417 # The following way of writing the cache mishandles newlines in values,
24418 # but we know of no workaround that is simple, portable, and efficient.
24419 # So, we kill variables containing newlines.
24420 # Ultrix sh set writes to stderr and can't be redirected directly,
24421 # and sets the high bit in the cache file unless we assign to the vars.
24423 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24424 eval ac_val=\$$ac_var
24428 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24429 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24432 _ | IFS | as_nl) ;; #(
24433 *) $as_unset $ac_var ;;
24439 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24440 *${as_nl}ac_space=\ *)
24441 # `set' does not quote correctly, so add quotes (double-quote
24442 # substitution turns \\\\ into \\, and sed turns \\ into \).
24445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24448 # `set' quotes correctly as required by POSIX, so do not add quotes.
24449 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24458 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24460 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24462 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24463 if test -w "$cache_file"; then
24464 test "x$cache_file" != "x/dev/null" &&
24465 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24466 echo "$as_me: updating cache $cache_file" >&6;}
24467 cat confcache >$cache_file
24469 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24470 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24478 echo ---------------------------------------------
24480 echo ---------------------------------------------
24485 { echo "$as_me:$LINENO: checking for BOOST Library..." >&5
24486 echo "$as_me: checking for BOOST Library..." >&6;}
24491 ac_cpp='$CXXCPP $CPPFLAGS'
24492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24498 BOOST_LIBSUFFIX="-mt"
24501 { echo "$as_me:$LINENO: checking for BOOST location..." >&5
24502 echo "$as_me: checking for BOOST location..." >&6;}
24504 # Check whether --with-boost was given.
24505 if test "${with_boost+set}" = set; then
24506 withval=$with_boost; BOOSTDIR="$withval"
24507 { echo "$as_me:$LINENO: result: \"select $withval as path to BOOST library\"" >&5
24508 echo "${ECHO_T}\"select $withval as path to BOOST library\"" >&6; }
24513 if test "x${BOOSTDIR}" = "x" ; then
24517 { echo "$as_me:$LINENO: result: \$BOOSTDIR = ${BOOSTDIR}" >&5
24518 echo "${ECHO_T}\$BOOSTDIR = ${BOOSTDIR}" >&6; }
24520 CPPFLAGS_old="${CPPFLAGS}"
24523 if test "x${BOOSTDIR}" != "x" ; then
24524 BOOST_CPPFLAGS="-I${BOOSTDIR}/include"
24525 BOOST_LIBS="-L${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}"
24528 if test "x${BOOSTDIR}" = "x/usr" ; then
24534 boost_headers_ok=no
24535 boost_binaries_ok=no
24537 { echo "$as_me:$LINENO: checking for BOOST headers..." >&5
24538 echo "$as_me: checking for BOOST headers..." >&6;}
24539 CPPFLAGS="${CPPFLAGS_old} ${BOOST_CPPFLAGS}"
24541 boost_include_dir_ok=yes
24542 if test "x${BOOSTDIR}" != "x" ; then
24543 as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/include/boost/shared_ptr.hpp" | $as_tr_sh`
24544 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/include/boost/shared_ptr.hpp" >&5
24545 echo $ECHO_N "checking for ${BOOSTDIR}/include/boost/shared_ptr.hpp... $ECHO_C" >&6; }
24546 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24547 echo $ECHO_N "(cached) $ECHO_C" >&6
24549 test "$cross_compiling" = yes &&
24550 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24551 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24552 { (exit 1); exit 1; }; }
24553 if test -r "${BOOSTDIR}/include/boost/shared_ptr.hpp"; then
24554 eval "$as_ac_File=yes"
24556 eval "$as_ac_File=no"
24559 ac_res=`eval echo '${'$as_ac_File'}'`
24560 { echo "$as_me:$LINENO: result: $ac_res" >&5
24561 echo "${ECHO_T}$ac_res" >&6; }
24562 if test `eval echo '${'$as_ac_File'}'` = yes; then
24563 boost_include_dir_ok=yes
24565 boost_include_dir_ok=no
24570 BOOST_PROGRAM_OPTIONS_LIB=no
24571 if test "x${boost_include_dir_ok}" = "xyes" ; then
24572 as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/include/boost/program_options.hpp" | $as_tr_sh`
24573 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/include/boost/program_options.hpp" >&5
24574 echo $ECHO_N "checking for ${BOOSTDIR}/include/boost/program_options.hpp... $ECHO_C" >&6; }
24575 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24576 echo $ECHO_N "(cached) $ECHO_C" >&6
24578 test "$cross_compiling" = yes &&
24579 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24580 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24581 { (exit 1); exit 1; }; }
24582 if test -r "${BOOSTDIR}/include/boost/program_options.hpp"; then
24583 eval "$as_ac_File=yes"
24585 eval "$as_ac_File=no"
24588 ac_res=`eval echo '${'$as_ac_File'}'`
24589 { echo "$as_me:$LINENO: result: $ac_res" >&5
24590 echo "${ECHO_T}$ac_res" >&6; }
24591 if test `eval echo '${'$as_ac_File'}'` = yes; then
24592 BOOST_PROGRAM_OPTIONS_LIB=yes
24594 BOOST_PROGRAM_OPTIONS_LIB=no
24598 { echo "$as_me:$LINENO: result: for boost program_options tool: $BOOST_PROGRAM_OPTIONS_LIB" >&5
24599 echo "${ECHO_T}for boost program_options tool: $BOOST_PROGRAM_OPTIONS_LIB" >&6; }
24601 if test "x${boost_include_dir_ok}" = "xyes" ; then
24602 cat >conftest.$ac_ext <<_ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h. */
24608 #include <boost/shared_ptr.hpp>
24612 boost::shared_ptr<int>(new int)
24617 rm -f conftest.$ac_objext
24618 if { (ac_try="$ac_compile"
24619 case "(($ac_try" in
24620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24621 *) ac_try_echo=$ac_try;;
24623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24624 (eval "$ac_compile") 2>conftest.er1
24626 grep -v '^ *+' conftest.er1 >conftest.err
24628 cat conftest.err >&5
24629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); } && {
24631 test -z "$ac_cxx_werror_flag" ||
24632 test ! -s conftest.err
24633 } && test -s conftest.$ac_objext; then
24634 boost_headers_ok=yes
24636 echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24639 boost_headers_ok=no
24642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24645 if test "x${boost_headers_ok}" = "xno" ; then
24646 BOOST_CPPFLAGS="BOOST_CPPFLAGS_NOT_DEFINED"
24648 { echo "$as_me:$LINENO: result: \$BOOST_CPPFLAGS = ${BOOST_CPPFLAGS}" >&5
24649 echo "${ECHO_T}\$BOOST_CPPFLAGS = ${BOOST_CPPFLAGS}" >&6; }
24651 { echo "$as_me:$LINENO: result: for boost headers: $boost_headers_ok" >&5
24652 echo "${ECHO_T}for boost headers: $boost_headers_ok" >&6; }
24654 if test "x${boost_headers_ok}" = "xyes" ; then
24655 { echo "$as_me:$LINENO: checking for BOOST binaries..." >&5
24656 echo "$as_me: checking for BOOST binaries..." >&6;}
24657 boost_lib_dir_ok=yes
24658 if test "x${BOOSTDIR}" != "x" ; then
24659 as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so" | $as_tr_sh`
24660 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so" >&5
24661 echo $ECHO_N "checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so... $ECHO_C" >&6; }
24662 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24663 echo $ECHO_N "(cached) $ECHO_C" >&6
24665 test "$cross_compiling" = yes &&
24666 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24667 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24668 { (exit 1); exit 1; }; }
24669 if test -r "${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so"; then
24670 eval "$as_ac_File=yes"
24672 eval "$as_ac_File=no"
24675 ac_res=`eval echo '${'$as_ac_File'}'`
24676 { echo "$as_me:$LINENO: result: $ac_res" >&5
24677 echo "${ECHO_T}$ac_res" >&6; }
24678 if test `eval echo '${'$as_ac_File'}'` = yes; then
24679 boost_lib_dir_ok=yes
24681 boost_lib_dir_ok=no
24684 if test "x${boost_lib_dir_ok}" = "xno" ; then
24686 as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so" | $as_tr_sh`
24687 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so" >&5
24688 echo $ECHO_N "checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so... $ECHO_C" >&6; }
24689 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24690 echo $ECHO_N "(cached) $ECHO_C" >&6
24692 test "$cross_compiling" = yes &&
24693 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24694 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24695 { (exit 1); exit 1; }; }
24696 if test -r "${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so"; then
24697 eval "$as_ac_File=yes"
24699 eval "$as_ac_File=no"
24702 ac_res=`eval echo '${'$as_ac_File'}'`
24703 { echo "$as_me:$LINENO: result: $ac_res" >&5
24704 echo "${ECHO_T}$ac_res" >&6; }
24705 if test `eval echo '${'$as_ac_File'}'` = yes; then
24706 boost_lib_dir_ok=yes
24708 boost_lib_dir_ok=no
24713 if test "x${boost_lib_dir_ok}" = "xyes" ; then
24714 LIBS="${LIBS_old} ${BOOST_LIBS} -lboost_thread${BOOST_LIBSUFFIX}"
24715 cat >conftest.$ac_ext <<_ACEOF
24718 cat confdefs.h >>conftest.$ac_ext
24719 cat >>conftest.$ac_ext <<_ACEOF
24720 /* end confdefs.h. */
24721 #include <boost/thread/thread.hpp>
24725 struct TBody{ void operator()(){} }; boost::thread(TBody())
24730 rm -f conftest.$ac_objext conftest$ac_exeext
24731 if { (ac_try="$ac_link"
24732 case "(($ac_try" in
24733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734 *) ac_try_echo=$ac_try;;
24736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737 (eval "$ac_link") 2>conftest.er1
24739 grep -v '^ *+' conftest.er1 >conftest.err
24741 cat conftest.err >&5
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); } && {
24744 test -z "$ac_cxx_werror_flag" ||
24745 test ! -s conftest.err
24746 } && test -s conftest$ac_exeext &&
24747 $as_test_x conftest$ac_exeext; then
24748 boost_binaries_ok=yes
24750 echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24753 boost_binaries_ok=no
24756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24757 conftest$ac_exeext conftest.$ac_ext
24758 if test "x${boost_binaries_ok}" = "xno" ; then
24760 LIBS="${LIBS_old} ${BOOST_LIBS} -lboost_thread${BOOST_LIBSUFFIX}"
24761 cat >conftest.$ac_ext <<_ACEOF
24764 cat confdefs.h >>conftest.$ac_ext
24765 cat >>conftest.$ac_ext <<_ACEOF
24766 /* end confdefs.h. */
24767 #include <boost/thread/thread.hpp>
24771 struct TBody{ void operator()(){} }; boost::thread(TBody())
24776 rm -f conftest.$ac_objext conftest$ac_exeext
24777 if { (ac_try="$ac_link"
24778 case "(($ac_try" in
24779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780 *) ac_try_echo=$ac_try;;
24782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24783 (eval "$ac_link") 2>conftest.er1
24785 grep -v '^ *+' conftest.er1 >conftest.err
24787 cat conftest.err >&5
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); } && {
24790 test -z "$ac_cxx_werror_flag" ||
24791 test ! -s conftest.err
24792 } && test -s conftest$ac_exeext &&
24793 $as_test_x conftest$ac_exeext; then
24794 boost_binaries_ok=yes
24796 echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24799 boost_binaries_ok=no
24802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24803 conftest$ac_exeext conftest.$ac_ext
24808 if test "x${boost_binaries_ok}" = "xno" ; then
24809 BOOST_LIBS="BOOST_LIBS_NOT_FOUND"
24810 BOOST_LIBSUFFIX="-not-defined"
24812 { echo "$as_me:$LINENO: result: \$BOOST_LIBSUFFIX = ${BOOST_LIBSUFFIX}" >&5
24813 echo "${ECHO_T}\$BOOST_LIBSUFFIX = ${BOOST_LIBSUFFIX}" >&6; }
24814 { echo "$as_me:$LINENO: result: \$BOOST_LIBS = ${BOOST_LIBS}" >&5
24815 echo "${ECHO_T}\$BOOST_LIBS = ${BOOST_LIBS}" >&6; }
24816 as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so" | $as_tr_sh`
24817 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so" >&5
24818 echo $ECHO_N "checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so... $ECHO_C" >&6; }
24819 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24820 echo $ECHO_N "(cached) $ECHO_C" >&6
24822 test "$cross_compiling" = yes &&
24823 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24824 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24825 { (exit 1); exit 1; }; }
24826 if test -r "${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_thread${BOOST_LIBSUFFIX}.so"; then
24827 eval "$as_ac_File=yes"
24829 eval "$as_ac_File=no"
24832 ac_res=`eval echo '${'$as_ac_File'}'`
24833 { echo "$as_me:$LINENO: result: $ac_res" >&5
24834 echo "${ECHO_T}$ac_res" >&6; }
24835 if test `eval echo '${'$as_ac_File'}'` = yes; then
24836 BOOST_LIB_THREAD="${BOOST_LIBS} -lboost_thread${BOOST_LIBSUFFIX}"
24838 BOOST_LIB_THREAD=""
24841 as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_signals${BOOST_LIBSUFFIX}.so" | $as_tr_sh`
24842 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_signals${BOOST_LIBSUFFIX}.so" >&5
24843 echo $ECHO_N "checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_signals${BOOST_LIBSUFFIX}.so... $ECHO_C" >&6; }
24844 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24847 test "$cross_compiling" = yes &&
24848 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24849 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24850 { (exit 1); exit 1; }; }
24851 if test -r "${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_signals${BOOST_LIBSUFFIX}.so"; then
24852 eval "$as_ac_File=yes"
24854 eval "$as_ac_File=no"
24857 ac_res=`eval echo '${'$as_ac_File'}'`
24858 { echo "$as_me:$LINENO: result: $ac_res" >&5
24859 echo "${ECHO_T}$ac_res" >&6; }
24860 if test `eval echo '${'$as_ac_File'}'` = yes; then
24861 BOOST_LIB_SIGNALS="${BOOST_LIBS} -lboost_signals${BOOST_LIBSUFFIX}"
24863 BOOST_LIB_SIGNALS=""
24866 as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_system${BOOST_LIBSUFFIX}.so" | $as_tr_sh`
24867 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_system${BOOST_LIBSUFFIX}.so" >&5
24868 echo $ECHO_N "checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_system${BOOST_LIBSUFFIX}.so... $ECHO_C" >&6; }
24869 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24870 echo $ECHO_N "(cached) $ECHO_C" >&6
24872 test "$cross_compiling" = yes &&
24873 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24874 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24875 { (exit 1); exit 1; }; }
24876 if test -r "${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_system${BOOST_LIBSUFFIX}.so"; then
24877 eval "$as_ac_File=yes"
24879 eval "$as_ac_File=no"
24882 ac_res=`eval echo '${'$as_ac_File'}'`
24883 { echo "$as_me:$LINENO: result: $ac_res" >&5
24884 echo "${ECHO_T}$ac_res" >&6; }
24885 if test `eval echo '${'$as_ac_File'}'` = yes; then
24886 BOOST_LIB_SYSTEM="${BOOST_LIBS} -lboost_system${BOOST_LIBSUFFIX}"
24888 BOOST_LIB_SYSTEM=""
24891 as_ac_File=`echo "ac_cv_file_${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_regex${BOOST_LIBSUFFIX}.so" | $as_tr_sh`
24892 { echo "$as_me:$LINENO: checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_regex${BOOST_LIBSUFFIX}.so" >&5
24893 echo $ECHO_N "checking for ${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_regex${BOOST_LIBSUFFIX}.so... $ECHO_C" >&6; }
24894 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
24895 echo $ECHO_N "(cached) $ECHO_C" >&6
24897 test "$cross_compiling" = yes &&
24898 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
24899 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
24900 { (exit 1); exit 1; }; }
24901 if test -r "${BOOSTDIR}/lib${LIB_LOCATION_SUFFIX}/libboost_regex${BOOST_LIBSUFFIX}.so"; then
24902 eval "$as_ac_File=yes"
24904 eval "$as_ac_File=no"
24907 ac_res=`eval echo '${'$as_ac_File'}'`
24908 { echo "$as_me:$LINENO: result: $ac_res" >&5
24909 echo "${ECHO_T}$ac_res" >&6; }
24910 if test `eval echo '${'$as_ac_File'}'` = yes; then
24911 BOOST_LIB_REGEX="${BOOST_LIBS} -lboost_regex${BOOST_LIBSUFFIX}"
24917 { echo "$as_me:$LINENO: result: for boost binaries: $boost_binaries_ok" >&5
24918 echo "${ECHO_T}for boost binaries: $boost_binaries_ok" >&6; }
24920 CPPFLAGS="${CPPFLAGS_old}"
24923 if test "x${boost_headers_ok}" = "xyes" ; then
24924 if test "x${boost_binaries_ok}" = "xyes" ; then
24929 { echo "$as_me:$LINENO: result: for boost: $boost_ok" >&5
24930 echo "${ECHO_T}for boost: $boost_ok" >&6; }
24942 ac_cpp='$CPP $CPPFLAGS'
24943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24951 echo ---------------------------------------------
24952 echo Testing OpenCascade
24953 echo ---------------------------------------------
24958 { echo "$as_me:$LINENO: checking for OpenCascade..." >&5
24959 echo "$as_me: checking for OpenCascade..." >&6;}
24963 ac_cpp='$CXXCPP $CPPFLAGS'
24964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25013 { echo "$as_me:$LINENO: checking for OpenCascade directories" >&5
25014 echo $ECHO_N "checking for OpenCascade directories... $ECHO_C" >&6; }
25016 if test -z "$CASROOT"; then
25017 { echo "$as_me:$LINENO: result: CASROOT not defined" >&5
25018 echo "${ECHO_T}CASROOT not defined" >&6; }
25019 for d in `echo $LD_LIBRARY_PATH | sed -e "s/:/ /g"` ; do
25020 if test -f $d/libTKernel.so ; then
25021 { echo "$as_me:$LINENO: result: libTKernel.so detected in $d" >&5
25022 echo "${ECHO_T}libTKernel.so detected in $d" >&6; }
25024 CASROOT=`echo ${CASROOT} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
25030 if test -d ${CASROOT}/${casdir}/lib; then
25031 CAS_LDPATH="-L$CASROOT/$casdir/lib "
25032 { echo "$as_me:$LINENO: result: yes" >&5
25033 echo "${ECHO_T}yes" >&6; }
25035 if test -d ${CASROOT}/lib; then
25036 CAS_LDPATH="-L$CASROOT/lib "
25037 { echo "$as_me:$LINENO: result: yes" >&5
25038 echo "${ECHO_T}yes" >&6; }
25040 { echo "$as_me:$LINENO: result: no" >&5
25041 echo "${ECHO_T}no" >&6; }
25046 if test -z "$CASROOT"; then
25047 { echo "$as_me:$LINENO: WARNING: You must provide CASROOT variable : see OCC installation manual" >&5
25048 echo "$as_me: WARNING: You must provide CASROOT variable : see OCC installation manual" >&2;}
25051 OCC_VERSION_MAJOR=0
25052 OCC_VERSION_MINOR=0
25053 OCC_VERSION_MAINTENANCE=0
25054 ff=$CASROOT/inc/Standard_Version.hxx
25055 if test -f $ff ; then
25056 grep "define OCC_VERSION_MAJOR" $ff > /dev/null
25057 if test $? = 0 ; then
25058 OCC_VERSION_MAJOR=`grep "define OCC_VERSION_MAJOR" $ff | awk '{i=3 ; print $i}'`
25060 grep "define OCC_VERSION_MINOR" $ff > /dev/null
25061 if test $? = 0 ; then
25062 OCC_VERSION_MINOR=`grep "define OCC_VERSION_MINOR" $ff | awk '{i=3 ; print $i}'`
25064 grep "define OCC_VERSION_MAINTENANCE" $ff > /dev/null
25065 if test $? = 0 ; then
25066 OCC_VERSION_MAINTENANCE=`grep "define OCC_VERSION_MAINTENANCE" $ff | awk '{i=3 ; print $i}'`
25071 if test "x$occ_ok" = "xyes"; then
25073 for opt in -funsigned-char -unsigned ; do
25075 { echo "$as_me:$LINENO: checking wether $CXX accepts $opt" >&5
25076 echo $ECHO_N "checking wether $CXX accepts $opt... $ECHO_C" >&6; }
25077 cat > conftest.cxx <<EOF
25078 int main() { return 0; }
25080 $CXX $opt conftest.cxx > conftest.log 2>&1
25081 var=`echo $opt | sed -e "s, .*$,," | sed -e "s,^-,,"`
25082 #CCRT if ! grep -e $var conftest.log > /dev/null 2>&1 ; then
25083 if grep -e $var conftest.log > /dev/null 2>&1 ; then
25084 { echo "$as_me:$LINENO: result: no" >&5
25085 echo "${ECHO_T}no" >&6; }
25088 { echo "$as_me:$LINENO: result: yes" >&5
25089 echo "${ECHO_T}yes" >&6; }
25090 CAS_CXXFLAGS="${CAS_CXXFLAGS} $opt"
25094 if test "$flag" = "yes"; then
25100 CPPFLAGS_old="$CPPFLAGS"
25103 CAS_CPPFLAGS="-DOCC_VERSION_MAJOR=$OCC_VERSION_MAJOR -DOCC_VERSION_MINOR=$OCC_VERSION_MINOR -DOCC_VERSION_MAINTENANCE=$OCC_VERSION_MAINTENANCE -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H"
25105 OCC_VERSION_STRING="$OCC_VERSION_MAJOR.$OCC_VERSION_MINOR.$OCC_VERSION_MAINTENANCE"
25106 case $OCC_VERSION_STRING in
25107 [0-5].* | 6.0.* | 6.1.0) # catch versions < 6.1.1
25108 CAS_CPPFLAGS="$CAS_CPPFLAGS -DNO_CXX_EXCEPTION"
25111 CAS_CPPFLAGS="$CAS_CPPFLAGS -DOCC_CONVERT_SIGNALS"
25114 CAS_CPPFLAGS="$CAS_CPPFLAGS -I$CASROOT/inc"
25117 CAS_CPPFLAGS="-DOCC_VERSION_MAJOR=$OCC_VERSION_MAJOR -DOCC_VERSION_MINOR=$OCC_VERSION_MINOR -DOCC_VERSION_MAINTENANCE=$OCC_VERSION_MAINTENANCE -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -I$CASROOT/inc"
25120 CPPFLAGS="$CPPFLAGS $CAS_CPPFLAGS"
25123 echo testing config.h
25125 if test "${ac_cv_header_config_h+set}" = set; then
25126 { echo "$as_me:$LINENO: checking for config.h" >&5
25127 echo $ECHO_N "checking for config.h... $ECHO_C" >&6; }
25128 if test "${ac_cv_header_config_h+set}" = set; then
25129 echo $ECHO_N "(cached) $ECHO_C" >&6
25131 { echo "$as_me:$LINENO: result: $ac_cv_header_config_h" >&5
25132 echo "${ECHO_T}$ac_cv_header_config_h" >&6; }
25134 # Is the header compilable?
25135 { echo "$as_me:$LINENO: checking config.h usability" >&5
25136 echo $ECHO_N "checking config.h usability... $ECHO_C" >&6; }
25137 cat >conftest.$ac_ext <<_ACEOF
25140 cat confdefs.h >>conftest.$ac_ext
25141 cat >>conftest.$ac_ext <<_ACEOF
25142 /* end confdefs.h. */
25143 $ac_includes_default
25144 #include <config.h>
25146 rm -f conftest.$ac_objext
25147 if { (ac_try="$ac_compile"
25148 case "(($ac_try" in
25149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25150 *) ac_try_echo=$ac_try;;
25152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25153 (eval "$ac_compile") 2>conftest.er1
25155 grep -v '^ *+' conftest.er1 >conftest.err
25157 cat conftest.err >&5
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } && {
25160 test -z "$ac_cxx_werror_flag" ||
25161 test ! -s conftest.err
25162 } && test -s conftest.$ac_objext; then
25163 ac_header_compiler=yes
25165 echo "$as_me: failed program was:" >&5
25166 sed 's/^/| /' conftest.$ac_ext >&5
25168 ac_header_compiler=no
25171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25173 echo "${ECHO_T}$ac_header_compiler" >&6; }
25175 # Is the header present?
25176 { echo "$as_me:$LINENO: checking config.h presence" >&5
25177 echo $ECHO_N "checking config.h presence... $ECHO_C" >&6; }
25178 cat >conftest.$ac_ext <<_ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25184 #include <config.h>
25186 if { (ac_try="$ac_cpp conftest.$ac_ext"
25187 case "(($ac_try" in
25188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189 *) ac_try_echo=$ac_try;;
25191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25194 grep -v '^ *+' conftest.er1 >conftest.err
25196 cat conftest.err >&5
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); } >/dev/null && {
25199 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25200 test ! -s conftest.err
25202 ac_header_preproc=yes
25204 echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25207 ac_header_preproc=no
25210 rm -f conftest.err conftest.$ac_ext
25211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25212 echo "${ECHO_T}$ac_header_preproc" >&6; }
25214 # So? What about this header?
25215 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25217 { echo "$as_me:$LINENO: WARNING: config.h: accepted by the compiler, rejected by the preprocessor!" >&5
25218 echo "$as_me: WARNING: config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25219 { echo "$as_me:$LINENO: WARNING: config.h: proceeding with the compiler's result" >&5
25220 echo "$as_me: WARNING: config.h: proceeding with the compiler's result" >&2;}
25221 ac_header_preproc=yes
25224 { echo "$as_me:$LINENO: WARNING: config.h: present but cannot be compiled" >&5
25225 echo "$as_me: WARNING: config.h: present but cannot be compiled" >&2;}
25226 { echo "$as_me:$LINENO: WARNING: config.h: check for missing prerequisite headers?" >&5
25227 echo "$as_me: WARNING: config.h: check for missing prerequisite headers?" >&2;}
25228 { echo "$as_me:$LINENO: WARNING: config.h: see the Autoconf documentation" >&5
25229 echo "$as_me: WARNING: config.h: see the Autoconf documentation" >&2;}
25230 { echo "$as_me:$LINENO: WARNING: config.h: section \"Present But Cannot Be Compiled\"" >&5
25231 echo "$as_me: WARNING: config.h: section \"Present But Cannot Be Compiled\"" >&2;}
25232 { echo "$as_me:$LINENO: WARNING: config.h: proceeding with the preprocessor's result" >&5
25233 echo "$as_me: WARNING: config.h: proceeding with the preprocessor's result" >&2;}
25234 { echo "$as_me:$LINENO: WARNING: config.h: in the future, the compiler will take precedence" >&5
25235 echo "$as_me: WARNING: config.h: in the future, the compiler will take precedence" >&2;}
25237 ## ----------------------------------------------- ##
25238 ## Report this to webmaster.salome@opencascade.com ##
25239 ## ----------------------------------------------- ##
25241 ) | sed "s/^/$as_me: WARNING: /" >&2
25244 { echo "$as_me:$LINENO: checking for config.h" >&5
25245 echo $ECHO_N "checking for config.h... $ECHO_C" >&6; }
25246 if test "${ac_cv_header_config_h+set}" = set; then
25247 echo $ECHO_N "(cached) $ECHO_C" >&6
25249 ac_cv_header_config_h=$ac_header_preproc
25251 { echo "$as_me:$LINENO: result: $ac_cv_header_config_h" >&5
25252 echo "${ECHO_T}$ac_cv_header_config_h" >&6; }
25255 if test $ac_cv_header_config_h = yes; then
25259 echo "config.h file not found!"
25265 if test "x$config_h" = xno ; then
25266 { echo "$as_me:$LINENO: WARNING: config.h file not found" >&5
25267 echo "$as_me: WARNING: config.h file not found" >&2;}
25269 { echo "$as_me:$LINENO: result: config.h file ok" >&5
25270 echo "${ECHO_T}config.h file ok" >&6; }
25273 if test "${ac_cv_header_Standard_Type_hxx+set}" = set; then
25274 { echo "$as_me:$LINENO: checking for Standard_Type.hxx" >&5
25275 echo $ECHO_N "checking for Standard_Type.hxx... $ECHO_C" >&6; }
25276 if test "${ac_cv_header_Standard_Type_hxx+set}" = set; then
25277 echo $ECHO_N "(cached) $ECHO_C" >&6
25279 { echo "$as_me:$LINENO: result: $ac_cv_header_Standard_Type_hxx" >&5
25280 echo "${ECHO_T}$ac_cv_header_Standard_Type_hxx" >&6; }
25282 # Is the header compilable?
25283 { echo "$as_me:$LINENO: checking Standard_Type.hxx usability" >&5
25284 echo $ECHO_N "checking Standard_Type.hxx usability... $ECHO_C" >&6; }
25285 cat >conftest.$ac_ext <<_ACEOF
25288 cat confdefs.h >>conftest.$ac_ext
25289 cat >>conftest.$ac_ext <<_ACEOF
25290 /* end confdefs.h. */
25291 $ac_includes_default
25292 #include <Standard_Type.hxx>
25294 rm -f conftest.$ac_objext
25295 if { (ac_try="$ac_compile"
25296 case "(($ac_try" in
25297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25298 *) ac_try_echo=$ac_try;;
25300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25301 (eval "$ac_compile") 2>conftest.er1
25303 grep -v '^ *+' conftest.er1 >conftest.err
25305 cat conftest.err >&5
25306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); } && {
25308 test -z "$ac_cxx_werror_flag" ||
25309 test ! -s conftest.err
25310 } && test -s conftest.$ac_objext; then
25311 ac_header_compiler=yes
25313 echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25316 ac_header_compiler=no
25319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25321 echo "${ECHO_T}$ac_header_compiler" >&6; }
25323 # Is the header present?
25324 { echo "$as_me:$LINENO: checking Standard_Type.hxx presence" >&5
25325 echo $ECHO_N "checking Standard_Type.hxx presence... $ECHO_C" >&6; }
25326 cat >conftest.$ac_ext <<_ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h. */
25332 #include <Standard_Type.hxx>
25334 if { (ac_try="$ac_cpp conftest.$ac_ext"
25335 case "(($ac_try" in
25336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337 *) ac_try_echo=$ac_try;;
25339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25342 grep -v '^ *+' conftest.er1 >conftest.err
25344 cat conftest.err >&5
25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346 (exit $ac_status); } >/dev/null && {
25347 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
25348 test ! -s conftest.err
25350 ac_header_preproc=yes
25352 echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25355 ac_header_preproc=no
25358 rm -f conftest.err conftest.$ac_ext
25359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25360 echo "${ECHO_T}$ac_header_preproc" >&6; }
25362 # So? What about this header?
25363 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25365 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: accepted by the compiler, rejected by the preprocessor!" >&5
25366 echo "$as_me: WARNING: Standard_Type.hxx: accepted by the compiler, rejected by the preprocessor!" >&2;}
25367 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: proceeding with the compiler's result" >&5
25368 echo "$as_me: WARNING: Standard_Type.hxx: proceeding with the compiler's result" >&2;}
25369 ac_header_preproc=yes
25372 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: present but cannot be compiled" >&5
25373 echo "$as_me: WARNING: Standard_Type.hxx: present but cannot be compiled" >&2;}
25374 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: check for missing prerequisite headers?" >&5
25375 echo "$as_me: WARNING: Standard_Type.hxx: check for missing prerequisite headers?" >&2;}
25376 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: see the Autoconf documentation" >&5
25377 echo "$as_me: WARNING: Standard_Type.hxx: see the Autoconf documentation" >&2;}
25378 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: section \"Present But Cannot Be Compiled\"" >&5
25379 echo "$as_me: WARNING: Standard_Type.hxx: section \"Present But Cannot Be Compiled\"" >&2;}
25380 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: proceeding with the preprocessor's result" >&5
25381 echo "$as_me: WARNING: Standard_Type.hxx: proceeding with the preprocessor's result" >&2;}
25382 { echo "$as_me:$LINENO: WARNING: Standard_Type.hxx: in the future, the compiler will take precedence" >&5
25383 echo "$as_me: WARNING: Standard_Type.hxx: in the future, the compiler will take precedence" >&2;}
25385 ## ----------------------------------------------- ##
25386 ## Report this to webmaster.salome@opencascade.com ##
25387 ## ----------------------------------------------- ##
25389 ) | sed "s/^/$as_me: WARNING: /" >&2
25392 { echo "$as_me:$LINENO: checking for Standard_Type.hxx" >&5
25393 echo $ECHO_N "checking for Standard_Type.hxx... $ECHO_C" >&6; }
25394 if test "${ac_cv_header_Standard_Type_hxx+set}" = set; then
25395 echo $ECHO_N "(cached) $ECHO_C" >&6
25397 ac_cv_header_Standard_Type_hxx=$ac_header_preproc
25399 { echo "$as_me:$LINENO: result: $ac_cv_header_Standard_Type_hxx" >&5
25400 echo "${ECHO_T}$ac_cv_header_Standard_Type_hxx" >&6; }
25403 if test $ac_cv_header_Standard_Type_hxx = yes; then
25413 if test "x$occ_ok" = xyes ; then
25415 { echo "$as_me:$LINENO: checking for OpenCascade libraries" >&5
25416 echo $ECHO_N "checking for OpenCascade libraries... $ECHO_C" >&6; }
25419 LIBS="$LIBS $CAS_LDPATH -lTKernel"
25421 if test "${salome_cv_lib_occ+set}" = set; then
25422 echo $ECHO_N "(cached) $ECHO_C" >&6
25425 cat >conftest.$ac_ext <<_ACEOF
25428 cat confdefs.h >>conftest.$ac_ext
25429 cat >>conftest.$ac_ext <<_ACEOF
25430 /* end confdefs.h. */
25431 #include <TCollection_AsciiString.hxx>
25436 TCollection_AsciiString aStr ("toto");
25442 rm -f conftest.$ac_objext conftest$ac_exeext
25443 if { (ac_try="$ac_link"
25444 case "(($ac_try" in
25445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446 *) ac_try_echo=$ac_try;;
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449 (eval "$ac_link") 2>conftest.er1
25451 grep -v '^ *+' conftest.er1 >conftest.err
25453 cat conftest.err >&5
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } && {
25456 test -z "$ac_cxx_werror_flag" ||
25457 test ! -s conftest.err
25458 } && test -s conftest$ac_exeext &&
25459 $as_test_x conftest$ac_exeext; then
25460 eval "salome_cv_lib_occ=yes"
25462 echo "$as_me: failed program was:" >&5
25463 sed 's/^/| /' conftest.$ac_ext >&5
25465 eval "salome_cv_lib_occ=no"
25468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25469 conftest$ac_exeext conftest.$ac_ext
25473 occ_ok="$salome_cv_lib_occ"
25476 CPPFLAGS="$CPPFLAGS_old"
25479 if test "x$occ_ok" = xno ; then
25480 { echo "$as_me:$LINENO: result: no" >&5
25481 echo "${ECHO_T}no" >&6; }
25482 { echo "$as_me:$LINENO: WARNING: Opencascade libraries not found" >&5
25483 echo "$as_me: WARNING: Opencascade libraries not found" >&2;}
25485 { echo "$as_me:$LINENO: result: yes" >&5
25486 echo "${ECHO_T}yes" >&6; }
25487 CAS_KERNEL="$CAS_LDPATH -lTKernel"
25488 CAS_MATH="$CAS_LDPATH -lTKMath"
25490 if test -f $CASROOT/$casdir/lib/libStdPlugin.so ; then
25491 # this libraries are only for CASCADE 5.2.3
25492 CAS_STDPLUGIN="StdPlugin"
25495 CAS_OCAF="$CAS_LDPATH -lPTKernel -lTKernel -lTKCDF -lTKLCAF -lTKPCAF -lTKStdSchema"
25496 CAS_OCAFVIS="$CAS_LDPATH -lTKCAF -lStdPlugin -lStdLPlugin -lTKPLCAF -lTKPShape -lTKStdLSchema -lTKShapeSchema"
25498 CAS_TKV3d="$CAS_LDPATH -lTKV3d"
25499 CAS_VIEWER="$CAS_TKV3d -lTKService"
25501 CAS_TKBRep="$CAS_LDPATH -lTKG2d -lTKG3d -lTKGeomBase -lTKBRep"
25503 CAS_TKTopAlgo="$CAS_TKBRep -lTKGeomAlgo -lTKTopAlgo"
25504 CAS_TKPrim="$CAS_TKTopAlgo -lTKPrim"
25506 CAS_MODELER="$CAS_TKPrim -lTKBO -lTKBool -lTKHLR -lTKFillet -lTKOffset -lTKFeat"
25508 CAS_DATAEXCHANGE="$CAS_LDPATH -lTKIGES -lTKSTEP"
25510 CAS_LDFLAGS="$CAS_KERNEL $CAS_MATH $CAS_OCAF $CAS_OCAFVIS $CAS_VIEWER $CAS_MODELER $CAS_DATAEXCHANGE"
25515 ac_cpp='$CPP $CPPFLAGS'
25516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25524 echo ---------------------------------------------
25525 echo testing omniORB
25526 echo ---------------------------------------------
25531 { echo "$as_me:$LINENO: checking for omniORB..." >&5
25532 echo "$as_me: checking for omniORB..." >&6;}
25535 if test "x$PYTHON" = "x"
25541 # Check whether --with-python was given.
25542 if test "${with_python+set}" = set; then
25543 withval=$with_python; PYTHON="$withval/bin/python"
25544 { echo "$as_me:$LINENO: result: \"select python distribution in $withval\"" >&5
25545 echo "${ECHO_T}\"select python distribution in $withval\"" >&6; }
25549 # Extract the first word of "python", so it can be a program name with args.
25550 set dummy python; ac_word=$2
25551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25553 if test "${ac_cv_path_PYTHON+set}" = set; then
25554 echo $ECHO_N "(cached) $ECHO_C" >&6
25558 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
25561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25562 for as_dir in $PATH
25565 test -z "$as_dir" && as_dir=.
25566 for ac_exec_ext in '' $ac_executable_extensions; do
25567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25568 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
25569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25579 PYTHON=$ac_cv_path_PYTHON
25580 if test -n "$PYTHON"; then
25581 { echo "$as_me:$LINENO: result: $PYTHON" >&5
25582 echo "${ECHO_T}$PYTHON" >&6; }
25584 { echo "$as_me:$LINENO: result: no" >&5
25585 echo "${ECHO_T}no" >&6; }
25593 { echo "$as_me:$LINENO: checking local Python configuration..." >&5
25594 echo "$as_me: checking local Python configuration..." >&6;}
25597 PYTHON_PREFIX=`echo $PYTHON | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
25598 PYTHON_PREFIX=`echo $PYTHON_PREFIX | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
25599 PYTHONHOME=$PYTHON_PREFIX
25604 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
25607 PY_MAKEFILE=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/Makefile
25608 if test ! -f "$PY_MAKEFILE"; then
25609 { echo "$as_me:$LINENO: WARNING: *** Couldn't find ${PY_MAKEFILE}. Maybe you are
25610 *** missing the development portion of the python installation" >&5
25611 echo "$as_me: WARNING: *** Couldn't find ${PY_MAKEFILE}. Maybe you are
25612 *** missing the development portion of the python installation" >&2;}
25619 PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION
25620 PYTHON_LIBS="-L${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
25621 PYTHON_LIB=$PYTHON_LIBS
25622 PYTHON_LIBA=${PYTHON_PREFIX}/lib${LIB_LOCATION_SUFFIX}/python$PYTHON_VERSION/config/libpython$PYTHON_VERSION.a
25626 PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
25630 # Check whether --with-python-site was given.
25631 if test "${with_python_site+set}" = set; then
25632 withval=$with_python_site;
25634 PYTHON_SITE="$withval"
25635 python_site_given=yes
25637 PYTHON_SITE=${prefix}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/site-packages
25638 python_site_given=no
25643 PYTHON_SITE_PACKAGE=$PYTHON_SITE/$PACKAGE
25649 # Check whether --with-python-site-exec was given.
25650 if test "${with_python_site_exec+set}" = set; then
25651 withval=$with_python_site_exec; PYTHON_SITE_EXEC="$withval"
25653 if test "$python_site_given" = yes; then
25654 PYTHON_SITE_EXEC=$PYTHON_SITE
25656 PYTHON_SITE_EXEC=${PYTHON_EXEC_PREFIX}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/site-packages
25661 PYTHON_SITE_INSTALL=$PYTHON_SITE_PACKAGE
25665 pythondir=${PYTHON_PREFIX}"/lib${LIB_LOCATION_SUFFIX}/python"${PYTHON_VERSION}/
25668 { echo "$as_me:$LINENO: checking if we need libdb" >&5
25669 echo $ECHO_N "checking if we need libdb... $ECHO_C" >&6; }
25670 PY_NEEDOPENDB=`nm $PYTHON_LIBA | grep dbopen | grep U`
25671 if test "x$PY_NEEDOPENDB" != "x"; then
25672 { echo "$as_me:$LINENO: result: yes" >&5
25673 echo "${ECHO_T}yes" >&6; }
25674 { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
25675 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
25676 if test "${ac_cv_lib_db_dbopen+set}" = set; then
25677 echo $ECHO_N "(cached) $ECHO_C" >&6
25679 ac_check_lib_save_LIBS=$LIBS
25681 cat >conftest.$ac_ext <<_ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25688 /* Override any GCC internal prototype to avoid an error.
25689 Use char because int might match the return type of a GCC
25690 builtin and then its argument prototype would still apply. */
25703 rm -f conftest.$ac_objext conftest$ac_exeext
25704 if { (ac_try="$ac_link"
25705 case "(($ac_try" in
25706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25707 *) ac_try_echo=$ac_try;;
25709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25710 (eval "$ac_link") 2>conftest.er1
25712 grep -v '^ *+' conftest.er1 >conftest.err
25714 cat conftest.err >&5
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } && {
25717 test -z "$ac_c_werror_flag" ||
25718 test ! -s conftest.err
25719 } && test -s conftest$ac_exeext &&
25720 $as_test_x conftest$ac_exeext; then
25721 ac_cv_lib_db_dbopen=yes
25723 echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25726 ac_cv_lib_db_dbopen=no
25729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25730 conftest$ac_exeext conftest.$ac_ext
25731 LIBS=$ac_check_lib_save_LIBS
25733 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
25734 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
25735 if test $ac_cv_lib_db_dbopen = yes; then
25736 PYTHON_LIBS="$PYTHON_LIBS -ldb"
25742 { echo "$as_me:$LINENO: result: no" >&5
25743 echo "${ECHO_T}no" >&6; }
25746 { echo "$as_me:$LINENO: checking if we need libdl" >&5
25747 echo $ECHO_N "checking if we need libdl... $ECHO_C" >&6; }
25748 PY_NEEDOPENDL=`nm $PYTHON_LIBA | grep dlopen | grep U`
25749 if test "x$PY_NEEDOPENDL" != "x"; then
25750 { echo "$as_me:$LINENO: result: yes" >&5
25751 echo "${ECHO_T}yes" >&6; }
25752 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
25753 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
25754 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
25755 echo $ECHO_N "(cached) $ECHO_C" >&6
25757 ac_check_lib_save_LIBS=$LIBS
25759 cat >conftest.$ac_ext <<_ACEOF
25762 cat confdefs.h >>conftest.$ac_ext
25763 cat >>conftest.$ac_ext <<_ACEOF
25764 /* end confdefs.h. */
25766 /* Override any GCC internal prototype to avoid an error.
25767 Use char because int might match the return type of a GCC
25768 builtin and then its argument prototype would still apply. */
25781 rm -f conftest.$ac_objext conftest$ac_exeext
25782 if { (ac_try="$ac_link"
25783 case "(($ac_try" in
25784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25785 *) ac_try_echo=$ac_try;;
25787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25788 (eval "$ac_link") 2>conftest.er1
25790 grep -v '^ *+' conftest.er1 >conftest.err
25792 cat conftest.err >&5
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); } && {
25795 test -z "$ac_c_werror_flag" ||
25796 test ! -s conftest.err
25797 } && test -s conftest$ac_exeext &&
25798 $as_test_x conftest$ac_exeext; then
25799 ac_cv_lib_dl_dlopen=yes
25801 echo "$as_me: failed program was:" >&5
25802 sed 's/^/| /' conftest.$ac_ext >&5
25804 ac_cv_lib_dl_dlopen=no
25807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25808 conftest$ac_exeext conftest.$ac_ext
25809 LIBS=$ac_check_lib_save_LIBS
25811 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
25812 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
25813 if test $ac_cv_lib_dl_dlopen = yes; then
25814 PYTHON_LIBS="$PYTHON_LIBS -ldl"
25820 { echo "$as_me:$LINENO: result: no" >&5
25821 echo "${ECHO_T}no" >&6; }
25824 { echo "$as_me:$LINENO: checking if we need libutil" >&5
25825 echo $ECHO_N "checking if we need libutil... $ECHO_C" >&6; }
25826 PY_NEEDOPENPTY=`nm $PYTHON_LIBA | grep openpty | grep U`
25827 if test "x$PY_NEEDOPENPTY" != "x"; then
25828 { echo "$as_me:$LINENO: result: yes" >&5
25829 echo "${ECHO_T}yes" >&6; }
25830 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
25831 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
25832 if test "${ac_cv_lib_util_openpty+set}" = set; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25835 ac_check_lib_save_LIBS=$LIBS
25836 LIBS="-lutil $LIBS"
25837 cat >conftest.$ac_ext <<_ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h. */
25844 /* Override any GCC internal prototype to avoid an error.
25845 Use char because int might match the return type of a GCC
25846 builtin and then its argument prototype would still apply. */
25859 rm -f conftest.$ac_objext conftest$ac_exeext
25860 if { (ac_try="$ac_link"
25861 case "(($ac_try" in
25862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866 (eval "$ac_link") 2>conftest.er1
25868 grep -v '^ *+' conftest.er1 >conftest.err
25870 cat conftest.err >&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); } && {
25873 test -z "$ac_c_werror_flag" ||
25874 test ! -s conftest.err
25875 } && test -s conftest$ac_exeext &&
25876 $as_test_x conftest$ac_exeext; then
25877 ac_cv_lib_util_openpty=yes
25879 echo "$as_me: failed program was:" >&5
25880 sed 's/^/| /' conftest.$ac_ext >&5
25882 ac_cv_lib_util_openpty=no
25885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25886 conftest$ac_exeext conftest.$ac_ext
25887 LIBS=$ac_check_lib_save_LIBS
25889 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
25890 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
25891 if test $ac_cv_lib_util_openpty = yes; then
25892 PYTHON_LIBS="$PYTHON_LIBS -lutil"
25898 { echo "$as_me:$LINENO: result: no" >&5
25899 echo "${ECHO_T}no" >&6; }
25902 { echo "$as_me:$LINENO: checking if we need tcltk" >&5
25903 echo $ECHO_N "checking if we need tcltk... $ECHO_C" >&6; }
25904 PY_NEEDTCLTK=`nm $PYTHON_LIBA | grep Tcl_Init | grep U`
25905 if test "x$PY_NEEDTCLTK" != "x"; then
25906 { echo "$as_me:$LINENO: result: yes" >&5
25907 echo "${ECHO_T}yes" >&6; }
25908 { echo "$as_me:$LINENO: checking for Tcl_Init in -ltcl" >&5
25909 echo $ECHO_N "checking for Tcl_Init in -ltcl... $ECHO_C" >&6; }
25910 if test "${ac_cv_lib_tcl_Tcl_Init+set}" = set; then
25911 echo $ECHO_N "(cached) $ECHO_C" >&6
25913 ac_check_lib_save_LIBS=$LIBS
25915 cat >conftest.$ac_ext <<_ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h. */
25922 /* Override any GCC internal prototype to avoid an error.
25923 Use char because int might match the return type of a GCC
25924 builtin and then its argument prototype would still apply. */
25932 return Tcl_Init ();
25937 rm -f conftest.$ac_objext conftest$ac_exeext
25938 if { (ac_try="$ac_link"
25939 case "(($ac_try" in
25940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25941 *) ac_try_echo=$ac_try;;
25943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25944 (eval "$ac_link") 2>conftest.er1
25946 grep -v '^ *+' conftest.er1 >conftest.err
25948 cat conftest.err >&5
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); } && {
25951 test -z "$ac_c_werror_flag" ||
25952 test ! -s conftest.err
25953 } && test -s conftest$ac_exeext &&
25954 $as_test_x conftest$ac_exeext; then
25955 ac_cv_lib_tcl_Tcl_Init=yes
25957 echo "$as_me: failed program was:" >&5
25958 sed 's/^/| /' conftest.$ac_ext >&5
25960 ac_cv_lib_tcl_Tcl_Init=no
25963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25964 conftest$ac_exeext conftest.$ac_ext
25965 LIBS=$ac_check_lib_save_LIBS
25967 { echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_Tcl_Init" >&5
25968 echo "${ECHO_T}$ac_cv_lib_tcl_Tcl_Init" >&6; }
25969 if test $ac_cv_lib_tcl_Tcl_Init = yes; then
25970 PYTHON_LIBS="$PYTHON_LIBS -ltcl -ltk"
25976 { echo "$as_me:$LINENO: result: no" >&5
25977 echo "${ECHO_T}no" >&6; }
25980 if test "$python_ok" == "yes"; then
25981 { echo "$as_me:$LINENO: result: looks good" >&5
25982 echo "${ECHO_T}looks good" >&6; }
25989 ac_cpp='$CXXCPP $CPPFLAGS'
25990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25995 # Extract the first word of "omniidl", so it can be a program name with args.
25996 set dummy omniidl; ac_word=$2
25997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25999 if test "${ac_cv_path_OMNIORB_IDL+set}" = set; then
26000 echo $ECHO_N "(cached) $ECHO_C" >&6
26002 case $OMNIORB_IDL in
26004 ac_cv_path_OMNIORB_IDL="$OMNIORB_IDL" # Let the user override the test with a path.
26007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26008 for as_dir in $PATH
26011 test -z "$as_dir" && as_dir=.
26012 for ac_exec_ext in '' $ac_executable_extensions; do
26013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26014 ac_cv_path_OMNIORB_IDL="$as_dir/$ac_word$ac_exec_ext"
26015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26025 OMNIORB_IDL=$ac_cv_path_OMNIORB_IDL
26026 if test -n "$OMNIORB_IDL"; then
26027 { echo "$as_me:$LINENO: result: $OMNIORB_IDL" >&5
26028 echo "${ECHO_T}$OMNIORB_IDL" >&6; }
26030 { echo "$as_me:$LINENO: result: no" >&5
26031 echo "${ECHO_T}no" >&6; }
26035 if test "x$OMNIORB_IDL" = "x"
26038 { echo "$as_me:$LINENO: result: omniORB binaries not in PATH variable" >&5
26039 echo "${ECHO_T}omniORB binaries not in PATH variable" >&6; }
26044 if test "x$omniORB_ok" = "xyes"
26048 OMNIORB_BIN=`echo ${OMNIORB_IDL} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
26049 OMNIORB_ROOT=${OMNIORB_BIN}
26051 OMNIORB_ROOT=`echo ${OMNIORB_ROOT} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
26054 if test -d $OMNIORB_ROOT/include ; then
26055 # if $OMNIORB_ROOT/include exists, there are a lot of chance that
26056 # this is omniORB4.x installed via configure && make && make install
26057 OMNIORB_LIB=`echo ${OMNIORB_BIN} | sed -e "s,bin\$,lib,"`
26060 # omniORB has been installed old way
26061 OMNIORB_LIB=`echo ${OMNIORB_BIN} | sed -e "s,bin/,lib/,"`
26062 # one-level up again
26063 OMNIORB_ROOT=`echo ${OMNIORB_ROOT} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
26064 if test -d $OMNIORB_ROOT/include/omniORB4 ; then
26072 OMNIORB_INCLUDES="-I$OMNIORB_ROOT/include -I$OMNIORB_ROOT/include/omniORB${OMNIORB_VERSION} -I$OMNIORB_ROOT/include/COS"
26078 if test x"$enable_pthreads_done" != xyes; then
26079 if test x"$acx_pthread_ok" = xyes; then
26080 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
26081 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
26082 LIBS="$LIBS $PTHREAD_LIBS"
26087 enable_pthreads_done=yes
26091 OMNIORB_CXXFLAGS="-DOMNIORB_VERSION=$OMNIORB_VERSION"
26094 # AC_DEFINE(__sparc__)
26095 OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__sparc__"
26098 # AC_DEFINE(__x86__)
26099 OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__x86__"
26104 # AC_DEFINE(__osf1__)
26107 cat >>confdefs.h <<\_ACEOF
26108 #define __OSVERSION__ 5
26111 OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__osf1__"
26114 # AC_DEFINE(__sunos__)
26117 cat >>confdefs.h <<\_ACEOF
26118 #define __OSVERSION__ 5
26121 OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__sunos__"
26124 # AC_DEFINE(__linux__)
26127 cat >>confdefs.h <<\_ACEOF
26128 #define __OSVERSION__ 2
26131 OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -D__linux__"
26136 CPPFLAGS_old=$CPPFLAGS
26137 CPPFLAGS="$CPPFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
26140 ac_cpp='$CXXCPP $CPPFLAGS'
26141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26145 if test "${ac_cv_header_CORBA_h+set}" = set; then
26146 { echo "$as_me:$LINENO: checking for CORBA.h" >&5
26147 echo $ECHO_N "checking for CORBA.h... $ECHO_C" >&6; }
26148 if test "${ac_cv_header_CORBA_h+set}" = set; then
26149 echo $ECHO_N "(cached) $ECHO_C" >&6
26151 { echo "$as_me:$LINENO: result: $ac_cv_header_CORBA_h" >&5
26152 echo "${ECHO_T}$ac_cv_header_CORBA_h" >&6; }
26154 # Is the header compilable?
26155 { echo "$as_me:$LINENO: checking CORBA.h usability" >&5
26156 echo $ECHO_N "checking CORBA.h usability... $ECHO_C" >&6; }
26157 cat >conftest.$ac_ext <<_ACEOF
26160 cat confdefs.h >>conftest.$ac_ext
26161 cat >>conftest.$ac_ext <<_ACEOF
26162 /* end confdefs.h. */
26163 $ac_includes_default
26166 rm -f conftest.$ac_objext
26167 if { (ac_try="$ac_compile"
26168 case "(($ac_try" in
26169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170 *) ac_try_echo=$ac_try;;
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173 (eval "$ac_compile") 2>conftest.er1
26175 grep -v '^ *+' conftest.er1 >conftest.err
26177 cat conftest.err >&5
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); } && {
26180 test -z "$ac_cxx_werror_flag" ||
26181 test ! -s conftest.err
26182 } && test -s conftest.$ac_objext; then
26183 ac_header_compiler=yes
26185 echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26188 ac_header_compiler=no
26191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26193 echo "${ECHO_T}$ac_header_compiler" >&6; }
26195 # Is the header present?
26196 { echo "$as_me:$LINENO: checking CORBA.h presence" >&5
26197 echo $ECHO_N "checking CORBA.h presence... $ECHO_C" >&6; }
26198 cat >conftest.$ac_ext <<_ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h. */
26206 if { (ac_try="$ac_cpp conftest.$ac_ext"
26207 case "(($ac_try" in
26208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26209 *) ac_try_echo=$ac_try;;
26211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26214 grep -v '^ *+' conftest.er1 >conftest.err
26216 cat conftest.err >&5
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); } >/dev/null && {
26219 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
26220 test ! -s conftest.err
26222 ac_header_preproc=yes
26224 echo "$as_me: failed program was:" >&5
26225 sed 's/^/| /' conftest.$ac_ext >&5
26227 ac_header_preproc=no
26230 rm -f conftest.err conftest.$ac_ext
26231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26232 echo "${ECHO_T}$ac_header_preproc" >&6; }
26234 # So? What about this header?
26235 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26237 { echo "$as_me:$LINENO: WARNING: CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&5
26238 echo "$as_me: WARNING: CORBA.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26239 { echo "$as_me:$LINENO: WARNING: CORBA.h: proceeding with the compiler's result" >&5
26240 echo "$as_me: WARNING: CORBA.h: proceeding with the compiler's result" >&2;}
26241 ac_header_preproc=yes
26244 { echo "$as_me:$LINENO: WARNING: CORBA.h: present but cannot be compiled" >&5
26245 echo "$as_me: WARNING: CORBA.h: present but cannot be compiled" >&2;}
26246 { echo "$as_me:$LINENO: WARNING: CORBA.h: check for missing prerequisite headers?" >&5
26247 echo "$as_me: WARNING: CORBA.h: check for missing prerequisite headers?" >&2;}
26248 { echo "$as_me:$LINENO: WARNING: CORBA.h: see the Autoconf documentation" >&5
26249 echo "$as_me: WARNING: CORBA.h: see the Autoconf documentation" >&2;}
26250 { echo "$as_me:$LINENO: WARNING: CORBA.h: section \"Present But Cannot Be Compiled\"" >&5
26251 echo "$as_me: WARNING: CORBA.h: section \"Present But Cannot Be Compiled\"" >&2;}
26252 { echo "$as_me:$LINENO: WARNING: CORBA.h: proceeding with the preprocessor's result" >&5
26253 echo "$as_me: WARNING: CORBA.h: proceeding with the preprocessor's result" >&2;}
26254 { echo "$as_me:$LINENO: WARNING: CORBA.h: in the future, the compiler will take precedence" >&5
26255 echo "$as_me: WARNING: CORBA.h: in the future, the compiler will take precedence" >&2;}
26257 ## ----------------------------------------------- ##
26258 ## Report this to webmaster.salome@opencascade.com ##
26259 ## ----------------------------------------------- ##
26261 ) | sed "s/^/$as_me: WARNING: /" >&2
26264 { echo "$as_me:$LINENO: checking for CORBA.h" >&5
26265 echo $ECHO_N "checking for CORBA.h... $ECHO_C" >&6; }
26266 if test "${ac_cv_header_CORBA_h+set}" = set; then
26267 echo $ECHO_N "(cached) $ECHO_C" >&6
26269 ac_cv_header_CORBA_h=$ac_header_preproc
26271 { echo "$as_me:$LINENO: result: $ac_cv_header_CORBA_h" >&5
26272 echo "${ECHO_T}$ac_cv_header_CORBA_h" >&6; }
26275 if test $ac_cv_header_CORBA_h = yes; then
26283 CPPFLAGS=$CPPFLAGS_old
26287 if test "x$omniORB_ok" = "xyes"
26289 if test "x$OMNIORB_LIB" = "x/usr/lib"
26294 OMNIORB_LDFLAGS="-L$OMNIORB_LIB"
26295 OMNIORB_RFLAGS="-R$OMNIORB_LIB"
26299 LIBS="$LIBS $OMNIORB_LDFLAGS -lomnithread"
26301 CXXFLAGS_old=$CXXFLAGS
26302 CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
26304 { echo "$as_me:$LINENO: checking whether we can link with omnithreads" >&5
26305 echo $ECHO_N "checking whether we can link with omnithreads... $ECHO_C" >&6; }
26306 if test "${salome_cv_lib_omnithreads+set}" = set; then
26307 echo $ECHO_N "(cached) $ECHO_C" >&6
26310 cat >conftest.$ac_ext <<_ACEOF
26313 cat confdefs.h >>conftest.$ac_ext
26314 cat >>conftest.$ac_ext <<_ACEOF
26315 /* end confdefs.h. */
26316 #include <omnithread.h>
26321 omni_mutex my_mutex
26326 rm -f conftest.$ac_objext conftest$ac_exeext
26327 if { (ac_try="$ac_link"
26328 case "(($ac_try" in
26329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330 *) ac_try_echo=$ac_try;;
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333 (eval "$ac_link") 2>conftest.er1
26335 grep -v '^ *+' conftest.er1 >conftest.err
26337 cat conftest.err >&5
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); } && {
26340 test -z "$ac_cxx_werror_flag" ||
26341 test ! -s conftest.err
26342 } && test -s conftest$ac_exeext &&
26343 $as_test_x conftest$ac_exeext; then
26344 eval "salome_cv_lib_omnithreads=yes"
26346 echo "$as_me: failed program was:" >&5
26347 sed 's/^/| /' conftest.$ac_ext >&5
26349 eval "salome_cv_lib_omnithreads=no"
26352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26353 conftest$ac_exeext conftest.$ac_ext
26358 omniORB_ok="$salome_cv_lib_omnithreads"
26359 if test "x$omniORB_ok" = "xno"
26361 { echo "$as_me:$LINENO: result: omnithreads not found" >&5
26362 echo "${ECHO_T}omnithreads not found" >&6; }
26364 { echo "$as_me:$LINENO: result: yes" >&5
26365 echo "${ECHO_T}yes" >&6; }
26369 CXXFLAGS=$CXXFLAGS_old
26373 if test "x$omniORB_ok" = "xyes"
26376 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26377 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26378 if test "${ac_cv_lib_socket_socket+set}" = set; then
26379 echo $ECHO_N "(cached) $ECHO_C" >&6
26381 ac_check_lib_save_LIBS=$LIBS
26382 LIBS="-lsocket $LIBS"
26383 cat >conftest.$ac_ext <<_ACEOF
26386 cat confdefs.h >>conftest.$ac_ext
26387 cat >>conftest.$ac_ext <<_ACEOF
26388 /* end confdefs.h. */
26390 /* Override any GCC internal prototype to avoid an error.
26391 Use char because int might match the return type of a GCC
26392 builtin and then its argument prototype would still apply. */
26405 rm -f conftest.$ac_objext conftest$ac_exeext
26406 if { (ac_try="$ac_link"
26407 case "(($ac_try" in
26408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26409 *) ac_try_echo=$ac_try;;
26411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26412 (eval "$ac_link") 2>conftest.er1
26414 grep -v '^ *+' conftest.er1 >conftest.err
26416 cat conftest.err >&5
26417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418 (exit $ac_status); } && {
26419 test -z "$ac_cxx_werror_flag" ||
26420 test ! -s conftest.err
26421 } && test -s conftest$ac_exeext &&
26422 $as_test_x conftest$ac_exeext; then
26423 ac_cv_lib_socket_socket=yes
26425 echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26428 ac_cv_lib_socket_socket=no
26431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26432 conftest$ac_exeext conftest.$ac_ext
26433 LIBS=$ac_check_lib_save_LIBS
26435 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26436 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26437 if test $ac_cv_lib_socket_socket = yes; then
26438 LIBS="-lsocket $LIBS"
26441 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26442 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
26443 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26444 echo $ECHO_N "(cached) $ECHO_C" >&6
26446 ac_check_lib_save_LIBS=$LIBS
26448 cat >conftest.$ac_ext <<_ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h. */
26455 /* Override any GCC internal prototype to avoid an error.
26456 Use char because int might match the return type of a GCC
26457 builtin and then its argument prototype would still apply. */
26461 char gethostbyname ();
26465 return gethostbyname ();
26470 rm -f conftest.$ac_objext conftest$ac_exeext
26471 if { (ac_try="$ac_link"
26472 case "(($ac_try" in
26473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474 *) ac_try_echo=$ac_try;;
26476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477 (eval "$ac_link") 2>conftest.er1
26479 grep -v '^ *+' conftest.er1 >conftest.err
26481 cat conftest.err >&5
26482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483 (exit $ac_status); } && {
26484 test -z "$ac_cxx_werror_flag" ||
26485 test ! -s conftest.err
26486 } && test -s conftest$ac_exeext &&
26487 $as_test_x conftest$ac_exeext; then
26488 ac_cv_lib_nsl_gethostbyname=yes
26490 echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26493 ac_cv_lib_nsl_gethostbyname=no
26496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26497 conftest$ac_exeext conftest.$ac_ext
26498 LIBS=$ac_check_lib_save_LIBS
26500 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26501 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
26502 if test $ac_cv_lib_nsl_gethostbyname = yes; then
26508 OMNIORB_LIBS="$OMNIORB_LDFLAGS"
26509 OMNIORB_LIBS="$OMNIORB_LIBS -lomniORB${OMNIORB_VERSION}"
26510 OMNIORB_LIBS="$OMNIORB_LIBS -lomniDynamic${OMNIORB_VERSION}"
26511 OMNIORB_LIBS="$OMNIORB_LIBS -lCOS${OMNIORB_VERSION}"
26512 OMNIORB_LIBS="$OMNIORB_LIBS -lCOSDynamic${OMNIORB_VERSION}"
26513 OMNIORB_LIBS="$OMNIORB_LIBS -lomnithread"
26514 OMNIORB_LIBS="$OMNIORB_LIBS ${OMNIORB_RFLAGS}"
26515 if test $OMNIORB_VERSION = 3 ; then
26516 OMNIORB_LIBS="$OMNIORB_LIBS -ltcpwrapGK"
26520 LIBS="$OMNIORB_LIBS $LIBS"
26521 CXXFLAGS_old=$CXXFLAGS
26522 CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
26524 { echo "$as_me:$LINENO: checking whether we can link with omniORB" >&5
26525 echo $ECHO_N "checking whether we can link with omniORB... $ECHO_C" >&6; }
26526 if test "${salome_cv_lib_omniorb+set}" = set; then
26527 echo $ECHO_N "(cached) $ECHO_C" >&6
26530 cat >conftest.$ac_ext <<_ACEOF
26533 cat confdefs.h >>conftest.$ac_ext
26534 cat >>conftest.$ac_ext <<_ACEOF
26535 /* end confdefs.h. */
26546 rm -f conftest.$ac_objext conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553 (eval "$ac_link") 2>conftest.er1
26555 grep -v '^ *+' conftest.er1 >conftest.err
26557 cat conftest.err >&5
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); } && {
26560 test -z "$ac_cxx_werror_flag" ||
26561 test ! -s conftest.err
26562 } && test -s conftest$ac_exeext &&
26563 $as_test_x conftest$ac_exeext; then
26564 eval "salome_cv_lib_omniorb3=yes"
26566 echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26569 eval "salome_cv_lib_omniorb3=no"
26572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26573 conftest$ac_exeext conftest.$ac_ext
26577 omniORB_ok="$salome_cv_lib_omniorb3"
26580 if test "x$omniORB_ok" = "xno"
26582 { echo "$as_me:$LINENO: result: omniORB library linking failed" >&5
26583 echo "${ECHO_T}omniORB library linking failed" >&6; }
26586 { echo "$as_me:$LINENO: result: yes" >&5
26587 echo "${ECHO_T}yes" >&6; }
26590 CXXFLAGS=$CXXFLAGS_old
26594 if test "x$omniORB_ok" = "xyes"
26597 OMNIORB_IDLCXXFLAGS="-Wba -nf -I${OMNIORB_ROOT}/idl"
26598 OMNIORB_IDLPYFLAGS_1='-bpython'
26599 OMNIORB_IDLPYFLAGS_2=" -I${OMNIORB_ROOT}/idl"
26600 OMNIORB_IDLPYFLAGS=${OMNIORB_IDLPYFLAGS_1}${OMNIORB_IDLPYFLAGS_2}
26605 OMNIORB_IDL_CLN_H=.hh
26606 OMNIORB_IDL_CLN_CXX=SK.cc
26607 OMNIORB_IDL_CLN_OBJ=SK.o
26612 OMNIORB_IDL_SRV_H=.hh
26613 OMNIORB_IDL_SRV_CXX=SK.cc
26614 OMNIORB_IDL_SRV_OBJ=SK.o
26620 OMNIORB_IDL_TIE_CXX=
26625 cat >>confdefs.h <<\_ACEOF
26632 cat >>confdefs.h <<\_ACEOF
26633 #define CORBA_HAVE_POA
26637 CORBA_ORB_INIT_HAVE_3_ARGS=1
26639 cat >>confdefs.h <<\_ACEOF
26640 #define CORBA_ORB_INIT_HAVE_3_ARGS
26643 CORBA_ORB_INIT_THIRD_ARG='"omniORB"'
26645 cat >>confdefs.h <<\_ACEOF
26646 #define CORBA_ORB_INIT_THIRD_ARG
26653 if test "x$omniORB_ok" = "xyes"
26655 { echo "$as_me:$LINENO: checking omniORBpy" >&5
26656 echo $ECHO_N "checking omniORBpy... $ECHO_C" >&6; }
26657 $PYTHON -c "import omniORB" &> /dev/null
26658 if test $? = 0 ; then
26659 { echo "$as_me:$LINENO: result: yes" >&5
26660 echo "${ECHO_T}yes" >&6; }
26663 { echo "$as_me:$LINENO: result: no" >&5
26664 echo "${ECHO_T}no" >&6; }
26670 { echo "$as_me:$LINENO: result: for omniORBpy: $omniORBpy_ok" >&5
26671 echo "${ECHO_T}for omniORBpy: $omniORBpy_ok" >&6; }
26672 { echo "$as_me:$LINENO: result: for omniORB: $omniORB_ok" >&5
26673 echo "${ECHO_T}for omniORB: $omniORB_ok" >&6; }
26676 cat >confcache <<\_ACEOF
26677 # This file is a shell script that caches the results of configure
26678 # tests run on this system so they can be shared between configure
26679 # scripts and configure runs, see configure's option --config-cache.
26680 # It is not useful on other systems. If it contains results you don't
26681 # want to keep, you may remove or edit it.
26683 # config.status only pays attention to the cache file if you give it
26684 # the --recheck option to rerun configure.
26686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26688 # following values.
26692 # The following way of writing the cache mishandles newlines in values,
26693 # but we know of no workaround that is simple, portable, and efficient.
26694 # So, we kill variables containing newlines.
26695 # Ultrix sh set writes to stderr and can't be redirected directly,
26696 # and sets the high bit in the cache file unless we assign to the vars.
26698 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26699 eval ac_val=\$$ac_var
26703 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26707 _ | IFS | as_nl) ;; #(
26708 *) $as_unset $ac_var ;;
26714 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26715 *${as_nl}ac_space=\ *)
26716 # `set' does not quote correctly, so add quotes (double-quote
26717 # substitution turns \\\\ into \\, and sed turns \\ into \).
26720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26723 # `set' quotes correctly as required by POSIX, so do not add quotes.
26724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26733 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26735 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26737 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26738 if test -w "$cache_file"; then
26739 test "x$cache_file" != "x/dev/null" &&
26740 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26741 echo "$as_me: updating cache $cache_file" >&6;}
26742 cat confcache >$cache_file
26744 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26745 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26751 CXXFLAGS_old=$CXXFLAGS
26752 CXXFLAGS="$CXXFLAGS $OMNIORB_CXXFLAGS $OMNIORB_INCLUDES"
26754 LIBS="$LIBS $OMNIORB_LDFLAGS $OMNIORB_LIBS"
26755 { echo "$as_me:$LINENO: checking whether we have double and CORBA::Double compatibility" >&5
26756 echo $ECHO_N "checking whether we have double and CORBA::Double compatibility... $ECHO_C" >&6; }
26757 if test "$cross_compiling" = yes; then
26758 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26759 See \`config.log' for more details." >&5
26760 echo "$as_me: error: cannot run test program while cross compiling
26761 See \`config.log' for more details." >&2;}
26762 { (exit 1); exit 1; }; }
26764 cat >conftest.$ac_ext <<_ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h. */
26770 #include <stdlib.h>
26774 CORBA::Double *a=new CORBA::Double(2.5);
26779 if( (c==*b) && (sizeof(double)==sizeof(CORBA::Double)) ){
26790 rm -f conftest$ac_exeext
26791 if { (ac_try="$ac_link"
26792 case "(($ac_try" in
26793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26794 *) ac_try_echo=$ac_try;;
26796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26797 (eval "$ac_link") 2>&5
26799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26801 { (case "(($ac_try" in
26802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803 *) ac_try_echo=$ac_try;;
26805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806 (eval "$ac_try") 2>&5
26808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26809 (exit $ac_status); }; }; then
26812 echo "$as_me: program exited with status $ac_status" >&5
26813 echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.$ac_ext >&5
26816 ( exit $ac_status )
26819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26823 if test "$DOUBLECOMP" = yes; then
26824 OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -DCOMP_CORBA_DOUBLE"
26825 { echo "$as_me:$LINENO: result: yes" >&5
26826 echo "${ECHO_T}yes" >&6; }
26828 { echo "$as_me:$LINENO: result: no" >&5
26829 echo "${ECHO_T}no" >&6; }
26831 { echo "$as_me:$LINENO: checking whether we have int and CORBA::Long compatibility" >&5
26832 echo $ECHO_N "checking whether we have int and CORBA::Long compatibility... $ECHO_C" >&6; }
26833 if test "$cross_compiling" = yes; then
26834 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26835 See \`config.log' for more details." >&5
26836 echo "$as_me: error: cannot run test program while cross compiling
26837 See \`config.log' for more details." >&2;}
26838 { (exit 1); exit 1; }; }
26840 cat >conftest.$ac_ext <<_ACEOF
26843 cat confdefs.h >>conftest.$ac_ext
26844 cat >>conftest.$ac_ext <<_ACEOF
26845 /* end confdefs.h. */
26846 #include <stdlib.h>
26850 CORBA::Long *a=new CORBA::Long(2);
26855 if( (c==*b) && (sizeof(int)==sizeof(CORBA::Long)) )
26862 rm -f conftest$ac_exeext
26863 if { (ac_try="$ac_link"
26864 case "(($ac_try" in
26865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26866 *) ac_try_echo=$ac_try;;
26868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26869 (eval "$ac_link") 2>&5
26871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26873 { (case "(($ac_try" in
26874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26875 *) ac_try_echo=$ac_try;;
26877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26878 (eval "$ac_try") 2>&5
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); }; }; then
26884 echo "$as_me: program exited with status $ac_status" >&5
26885 echo "$as_me: failed program was:" >&5
26886 sed 's/^/| /' conftest.$ac_ext >&5
26888 ( exit $ac_status )
26891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26895 if test "$LONGCOMP" = yes; then
26896 OMNIORB_CXXFLAGS="$OMNIORB_CXXFLAGS -DCOMP_CORBA_LONG"
26897 { echo "$as_me:$LINENO: result: yes" >&5
26898 echo "${ECHO_T}yes" >&6; }
26900 { echo "$as_me:$LINENO: result: no" >&5
26901 echo "${ECHO_T}no" >&6; }
26903 CXXFLAGS=$CXXFLAGS_old
26907 ac_cpp='$CPP $CPPFLAGS'
26908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26918 echo ---------------------------------------------
26919 echo default ORB : omniORB
26920 echo ---------------------------------------------
26923 DEFAULT_ORB=omniORB
26926 if test x"$DEFAULT_ORB" = x"omniORB"
26929 # Contient le nom de l'ORB
26932 { echo "$as_me:$LINENO: result: default orb : omniORB" >&5
26933 echo "${ECHO_T}default orb : omniORB" >&6; }
26937 CORBA_ROOT=$OMNIORB_ROOT
26938 CORBA_INCLUDES=$OMNIORB_INCLUDES
26939 CORBA_CXXFLAGS=$OMNIORB_CXXFLAGS
26940 CORBA_LIBS=$OMNIORB_LIBS
26941 IDLCXXFLAGS=$OMNIORB_IDLCXXFLAGS
26942 IDLPYFLAGS=$OMNIORB_IDLPYFLAGS
26951 IDL_CLN_H=$OMNIORB_IDL_CLN_H
26952 IDL_CLN_CXX=$OMNIORB_IDL_CLN_CXX
26953 IDL_CLN_OBJ=$OMNIORB_IDL_CLN_OBJ
26959 IDL_SRV_H=$OMNIORB_IDL_SRV_H
26960 IDL_SRV_CXX=$OMNIORB_IDL_SRV_CXX
26961 IDL_SRV_OBJ=$OMNIORB_IDL_SRV_OBJ
26968 { echo "$as_me:$LINENO: result: $DEFAULT_ORB unknown orb" >&5
26969 echo "${ECHO_T}$DEFAULT_ORB unknown orb" >&6; }
26977 CORBA=adm_local/unix/$corba
26982 echo ----------------------------------------------
26983 echo testing CPPUNIT only required for unit testing
26984 echo ----------------------------------------------
26988 { echo "$as_me:$LINENO: checking for cppunit..." >&5
26989 echo "$as_me: checking for cppunit..." >&6;}
26995 # Check whether --with-cppunit was given.
26996 if test "${with_cppunit+set}" = set; then
26997 withval=$with_cppunit; CPPUNITHOME="$withval"
26998 { echo "$as_me:$LINENO: result: \"select $withval as path to CPPUNIT\"" >&5
26999 echo "${ECHO_T}\"select $withval as path to CPPUNIT\"" >&6; }
27005 # Check whether --with-cppunit_inc was given.
27006 if test "${with_cppunit_inc+set}" = set; then
27007 withval=$with_cppunit_inc; CPPUNIT_INCLUDES="$withval"
27008 { echo "$as_me:$LINENO: result: \"select $withval as path to CPPUNIT includes\"" >&5
27009 echo "${ECHO_T}\"select $withval as path to CPPUNIT includes\"" >&6; }
27014 if test -z "$CPPUNITHOME"; then
27015 { echo "$as_me:$LINENO: result: CPPUNITHOME not defined" >&5
27016 echo "${ECHO_T}CPPUNITHOME not defined" >&6; }
27018 if test "x$exits_ok" = "xno"; then
27019 for d in /usr/local /usr ; do
27020 as_ac_File=`echo "ac_cv_file_${d}/lib64/libcppunit.so" | $as_tr_sh`
27021 { echo "$as_me:$LINENO: checking for ${d}/lib64/libcppunit.so" >&5
27022 echo $ECHO_N "checking for ${d}/lib64/libcppunit.so... $ECHO_C" >&6; }
27023 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
27024 echo $ECHO_N "(cached) $ECHO_C" >&6
27026 test "$cross_compiling" = yes &&
27027 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27028 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27029 { (exit 1); exit 1; }; }
27030 if test -r "${d}/lib64/libcppunit.so"; then
27031 eval "$as_ac_File=yes"
27033 eval "$as_ac_File=no"
27036 ac_res=`eval echo '${'$as_ac_File'}'`
27037 { echo "$as_me:$LINENO: result: $ac_res" >&5
27038 echo "${ECHO_T}$ac_res" >&6; }
27039 if test `eval echo '${'$as_ac_File'}'` = yes; then
27045 if test "x$exits_ok" = "xyes"; then
27047 { echo "$as_me:$LINENO: result: libcppunit.so detected in $d/lib64" >&5
27048 echo "${ECHO_T}libcppunit.so detected in $d/lib64" >&6; }
27051 as_ac_File=`echo "ac_cv_file_${d}/lib/libcppunit.so" | $as_tr_sh`
27052 { echo "$as_me:$LINENO: checking for ${d}/lib/libcppunit.so" >&5
27053 echo $ECHO_N "checking for ${d}/lib/libcppunit.so... $ECHO_C" >&6; }
27054 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
27055 echo $ECHO_N "(cached) $ECHO_C" >&6
27057 test "$cross_compiling" = yes &&
27058 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27059 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27060 { (exit 1); exit 1; }; }
27061 if test -r "${d}/lib/libcppunit.so"; then
27062 eval "$as_ac_File=yes"
27064 eval "$as_ac_File=no"
27067 ac_res=`eval echo '${'$as_ac_File'}'`
27068 { echo "$as_me:$LINENO: result: $ac_res" >&5
27069 echo "${ECHO_T}$ac_res" >&6; }
27070 if test `eval echo '${'$as_ac_File'}'` = yes; then
27076 if test "x$exits_ok" = "xyes"; then
27078 { echo "$as_me:$LINENO: result: libcppunit.so detected in $d/lib" >&5
27079 echo "${ECHO_T}libcppunit.so detected in $d/lib" >&6; }
27084 if test "x$exits_ok" = "xno"; then
27085 for d in `echo $LD_LIBRARY_PATH | sed -e "s/:/ /g"` ; do
27086 if test -f $d/libcppunit.so ; then
27087 { echo "$as_me:$LINENO: result: libcppunit.so detected in $d" >&5
27088 echo "${ECHO_T}libcppunit.so detected in $d" >&6; }
27090 CPPUNITHOME=`echo ${CPPUNITHOME} | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
27096 if test "x$exits_ok" = "xyes"; then
27097 if test -z "$CPPUNIT_INCLUDES"; then
27098 CPPUNIT_INCLUDES=$CPPUNITHOME"/include"
27102 if test -z "$CPPUNIT_INCLUDES"; then
27103 CPPUNIT_INCLUDES="$CPPUNITHOME/include"
27107 if test "x$cppunit_ok" = xno -o ! -d "$CPPUNITHOME" ; then
27108 { echo "$as_me:$LINENO: result: no" >&5
27109 echo "${ECHO_T}no" >&6; }
27110 { echo "$as_me:$LINENO: WARNING: cppunit not found" >&5
27111 echo "$as_me: WARNING: cppunit not found" >&2;}
27116 ac_cpp='$CXXCPP $CPPFLAGS'
27117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27121 CPPFLAGS_old=$CPPFLAGS
27122 CPPFLAGS="$CPPFLAGS -I$CPPUNIT_INCLUDES"
27124 if test "${ac_cv_header_cppunit_extensions_HelperMacros_h+set}" = set; then
27125 { echo "$as_me:$LINENO: checking for cppunit/extensions/HelperMacros.h" >&5
27126 echo $ECHO_N "checking for cppunit/extensions/HelperMacros.h... $ECHO_C" >&6; }
27127 if test "${ac_cv_header_cppunit_extensions_HelperMacros_h+set}" = set; then
27128 echo $ECHO_N "(cached) $ECHO_C" >&6
27130 { echo "$as_me:$LINENO: result: $ac_cv_header_cppunit_extensions_HelperMacros_h" >&5
27131 echo "${ECHO_T}$ac_cv_header_cppunit_extensions_HelperMacros_h" >&6; }
27133 # Is the header compilable?
27134 { echo "$as_me:$LINENO: checking cppunit/extensions/HelperMacros.h usability" >&5
27135 echo $ECHO_N "checking cppunit/extensions/HelperMacros.h usability... $ECHO_C" >&6; }
27136 cat >conftest.$ac_ext <<_ACEOF
27139 cat confdefs.h >>conftest.$ac_ext
27140 cat >>conftest.$ac_ext <<_ACEOF
27141 /* end confdefs.h. */
27142 $ac_includes_default
27143 #include <cppunit/extensions/HelperMacros.h>
27145 rm -f conftest.$ac_objext
27146 if { (ac_try="$ac_compile"
27147 case "(($ac_try" in
27148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149 *) ac_try_echo=$ac_try;;
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152 (eval "$ac_compile") 2>conftest.er1
27154 grep -v '^ *+' conftest.er1 >conftest.err
27156 cat conftest.err >&5
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); } && {
27159 test -z "$ac_cxx_werror_flag" ||
27160 test ! -s conftest.err
27161 } && test -s conftest.$ac_objext; then
27162 ac_header_compiler=yes
27164 echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27167 ac_header_compiler=no
27170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27172 echo "${ECHO_T}$ac_header_compiler" >&6; }
27174 # Is the header present?
27175 { echo "$as_me:$LINENO: checking cppunit/extensions/HelperMacros.h presence" >&5
27176 echo $ECHO_N "checking cppunit/extensions/HelperMacros.h presence... $ECHO_C" >&6; }
27177 cat >conftest.$ac_ext <<_ACEOF
27180 cat confdefs.h >>conftest.$ac_ext
27181 cat >>conftest.$ac_ext <<_ACEOF
27182 /* end confdefs.h. */
27183 #include <cppunit/extensions/HelperMacros.h>
27185 if { (ac_try="$ac_cpp conftest.$ac_ext"
27186 case "(($ac_try" in
27187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188 *) ac_try_echo=$ac_try;;
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27193 grep -v '^ *+' conftest.er1 >conftest.err
27195 cat conftest.err >&5
27196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197 (exit $ac_status); } >/dev/null && {
27198 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27199 test ! -s conftest.err
27201 ac_header_preproc=yes
27203 echo "$as_me: failed program was:" >&5
27204 sed 's/^/| /' conftest.$ac_ext >&5
27206 ac_header_preproc=no
27209 rm -f conftest.err conftest.$ac_ext
27210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27211 echo "${ECHO_T}$ac_header_preproc" >&6; }
27213 # So? What about this header?
27214 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27216 { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
27217 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27218 { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: proceeding with the compiler's result" >&5
27219 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: proceeding with the compiler's result" >&2;}
27220 ac_header_preproc=yes
27223 { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: present but cannot be compiled" >&5
27224 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: present but cannot be compiled" >&2;}
27225 { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: check for missing prerequisite headers?" >&5
27226 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: check for missing prerequisite headers?" >&2;}
27227 { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: see the Autoconf documentation" >&5
27228 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: see the Autoconf documentation" >&2;}
27229 { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: section \"Present But Cannot Be Compiled\"" >&5
27230 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
27231 { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: proceeding with the preprocessor's result" >&5
27232 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: proceeding with the preprocessor's result" >&2;}
27233 { echo "$as_me:$LINENO: WARNING: cppunit/extensions/HelperMacros.h: in the future, the compiler will take precedence" >&5
27234 echo "$as_me: WARNING: cppunit/extensions/HelperMacros.h: in the future, the compiler will take precedence" >&2;}
27236 ## ----------------------------------------------- ##
27237 ## Report this to webmaster.salome@opencascade.com ##
27238 ## ----------------------------------------------- ##
27240 ) | sed "s/^/$as_me: WARNING: /" >&2
27243 { echo "$as_me:$LINENO: checking for cppunit/extensions/HelperMacros.h" >&5
27244 echo $ECHO_N "checking for cppunit/extensions/HelperMacros.h... $ECHO_C" >&6; }
27245 if test "${ac_cv_header_cppunit_extensions_HelperMacros_h+set}" = set; then
27246 echo $ECHO_N "(cached) $ECHO_C" >&6
27248 ac_cv_header_cppunit_extensions_HelperMacros_h=$ac_header_preproc
27250 { echo "$as_me:$LINENO: result: $ac_cv_header_cppunit_extensions_HelperMacros_h" >&5
27251 echo "${ECHO_T}$ac_cv_header_cppunit_extensions_HelperMacros_h" >&6; }
27254 if test $ac_cv_header_cppunit_extensions_HelperMacros_h = yes; then
27262 CPPFLAGS=$CPPFLAGS_old
27264 if test "x$cppunit_ok" = xno ; then
27265 { echo "$as_me:$LINENO: result: no" >&5
27266 echo "${ECHO_T}no" >&6; }
27267 { echo "$as_me:$LINENO: WARNING: cppunit not found" >&5
27268 echo "$as_me: WARNING: cppunit not found" >&2;}
27273 if test "x$cppunit_ok" = "xno"
27275 { echo "$as_me:$LINENO: result: unable to found cppunit headers and library" >&5
27276 echo "${ECHO_T}unable to found cppunit headers and library" >&6; }
27277 { echo "$as_me:$LINENO: result: CPPUNITHOME environment variable may be wrong" >&5
27278 echo "${ECHO_T}CPPUNITHOME environment variable may be wrong" >&6; }
27280 if test "x$CPPUNIT_INCLUDES" = "x/usr/include"
27282 CPPUNIT_INCLUDES=""
27284 CPPUNIT_INCLUDES="-I$CPPUNIT_INCLUDES"
27286 if test "x$CPPUNITHOME" = "x/usr"
27288 CPPUNIT_LIBS=" -lcppunit"
27290 CPPUNIT_LIBS="-L$CPPUNITHOME/lib -lcppunit"
27296 { echo "$as_me:$LINENO: result: yes" >&5
27297 echo "${ECHO_T}yes" >&6; }
27301 if test x"$cppunit_ok" = xyes; then
27302 CPPUNIT_IS_OK_TRUE=
27303 CPPUNIT_IS_OK_FALSE='#'
27305 CPPUNIT_IS_OK_TRUE='#'
27306 CPPUNIT_IS_OK_FALSE=
27311 ac_cpp='$CPP $CPPFLAGS'
27312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27322 echo ---------------------------------------------
27323 echo Testing Kernel
27324 echo ---------------------------------------------
27329 { echo "$as_me:$LINENO: checking for Kernel..." >&5
27330 echo "$as_me: checking for Kernel..." >&6;}
27338 # Check whether --with-kernel was given.
27339 if test "${with_kernel+set}" = set; then
27340 withval=$with_kernel; KERNEL_DIR="$withval"
27346 if test "x${KERNEL_DIR}" = "x" ; then
27347 { echo "$as_me:$LINENO: result: for \${KERNEL_ROOT_DIR}: ${KERNEL_ROOT_DIR}" >&5
27348 echo "${ECHO_T}for \${KERNEL_ROOT_DIR}: ${KERNEL_ROOT_DIR}" >&6; }
27349 # no --with-kernel-dir option used
27350 if test "x${KERNEL_ROOT_DIR}" != "x" ; then
27351 # KERNEL_ROOT_DIR environment variable defined
27352 KERNEL_DIR=${KERNEL_ROOT_DIR}
27354 # search Kernel binaries in PATH variable
27355 # Extract the first word of "runSalome", so it can be a program name with args.
27356 set dummy runSalome; ac_word=$2
27357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27359 if test "${ac_cv_path_TEMP+set}" = set; then
27360 echo $ECHO_N "(cached) $ECHO_C" >&6
27364 ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
27367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27368 for as_dir in $PATH
27371 test -z "$as_dir" && as_dir=.
27372 for ac_exec_ext in '' $ac_executable_extensions; do
27373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27374 ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
27375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27385 TEMP=$ac_cv_path_TEMP
27386 if test -n "$TEMP"; then
27387 { echo "$as_me:$LINENO: result: $TEMP" >&5
27388 echo "${ECHO_T}$TEMP" >&6; }
27390 { echo "$as_me:$LINENO: result: no" >&5
27391 echo "${ECHO_T}no" >&6; }
27395 if test "x${TEMP}" != "x" ; then
27396 { echo "$as_me:$LINENO: result: runSalome was found at : ${TEMP}" >&5
27397 echo "${ECHO_T}runSalome was found at : ${TEMP}" >&6; }
27398 KERNEL_BIN_DIR=`dirname ${TEMP}`
27399 KERNEL_DIR=`cd ${KERNEL_BIN_DIR}/../..; pwd`
27404 if test -f ${KERNEL_DIR}/bin/salome/runSalome ; then
27405 { echo "$as_me:$LINENO: result: Using Kernel module distribution in ${KERNEL_DIR}" >&5
27406 echo "${ECHO_T}Using Kernel module distribution in ${KERNEL_DIR}" >&6; }
27409 if test "x${KERNEL_ROOT_DIR}" = "x" ; then
27410 KERNEL_ROOT_DIR=${KERNEL_DIR}
27413 if test "x${KERNEL_SITE_DIR}" = "x" ; then
27414 KERNEL_SITE_DIR=${KERNEL_ROOT_DIR}
27420 KERNEL_LDFLAGS=-L${KERNEL_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
27421 KERNEL_CXXFLAGS=-I${KERNEL_DIR}/include/salome
27426 { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled Kernel module distribution\"" >&5
27427 echo "$as_me: WARNING: \"Cannot find compiled Kernel module distribution\"" >&2;}
27430 { echo "$as_me:$LINENO: result: for Kernel: $Kernel_ok" >&5
27431 echo "${ECHO_T}for Kernel: $Kernel_ok" >&6; }
27438 echo ---------------------------------------------
27440 echo ---------------------------------------------
27445 { echo "$as_me:$LINENO: checking for Geom..." >&5
27446 echo "$as_me: checking for Geom..." >&6;}
27454 # Check whether --with-geom was given.
27455 if test "${with_geom+set}" = set; then
27456 withval=$with_geom; GEOM_DIR="$withval"
27462 if test "x$GEOM_DIR" == "x" ; then
27464 # no --with-geom-dir option used
27466 if test "x$GEOM_ROOT_DIR" != "x" ; then
27468 # GEOM_ROOT_DIR environment variable defined
27469 GEOM_DIR=$GEOM_ROOT_DIR
27473 # search Geom binaries in PATH variable
27474 # Extract the first word of "libGEOM_Swig.py", so it can be a program name with args.
27475 set dummy libGEOM_Swig.py; ac_word=$2
27476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27478 if test "${ac_cv_path_TEMP+set}" = set; then
27479 echo $ECHO_N "(cached) $ECHO_C" >&6
27483 ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
27486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27487 for as_dir in $PATH
27490 test -z "$as_dir" && as_dir=.
27491 for ac_exec_ext in '' $ac_executable_extensions; do
27492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27493 ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
27494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27504 TEMP=$ac_cv_path_TEMP
27505 if test -n "$TEMP"; then
27506 { echo "$as_me:$LINENO: result: $TEMP" >&5
27507 echo "${ECHO_T}$TEMP" >&6; }
27509 { echo "$as_me:$LINENO: result: no" >&5
27510 echo "${ECHO_T}no" >&6; }
27514 if test "x$TEMP" != "x" ; then
27515 GEOM_BIN_DIR=`dirname $TEMP`
27516 GEOM_DIR=`dirname $GEOM_BIN_DIR`
27523 if test -f ${GEOM_DIR}/bin/salome/geompy.py ; then
27525 { echo "$as_me:$LINENO: result: Using Geom module distribution in ${GEOM_DIR}" >&5
27526 echo "${ECHO_T}Using Geom module distribution in ${GEOM_DIR}" >&6; }
27528 if test "x$GEOM_ROOT_DIR" == "x" ; then
27529 GEOM_ROOT_DIR=${GEOM_DIR}
27533 GEOM_LDFLAGS=-L${GEOM_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
27534 GEOM_CXXFLAGS=-I${GEOM_DIR}/include/salome
27540 { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled Geom module distribution\"" >&5
27541 echo "$as_me: WARNING: \"Cannot find compiled Geom module distribution\"" >&2;}
27544 { echo "$as_me:$LINENO: result: for Geom: $Geom_ok" >&5
27545 echo "${ECHO_T}for Geom: $Geom_ok" >&6; }
27553 echo ---------------------------------------------
27555 echo ---------------------------------------------
27570 # Check whether --with-gui was given.
27571 if test "${with_gui+set}" = set; then
27578 if test "${with_gui}" = "no"; then
27581 # define SALOME_GUI_DIR
27582 if test "${with_gui}" = "yes" -o "${with_gui}" = "auto"; then
27583 SalomeGUI_need="$with_gui"
27584 { echo "$as_me:$LINENO: result: try \${GUI_ROOT_DIR}: ${GUI_ROOT_DIR}" >&5
27585 echo "${ECHO_T}try \${GUI_ROOT_DIR}: ${GUI_ROOT_DIR}" >&6; }
27586 if test "x${GUI_ROOT_DIR}" != "x" ; then
27587 # GUI_ROOT_DIR environment variable defined
27588 SALOME_GUI_DIR=${GUI_ROOT_DIR}
27590 # search Salome binaries in PATH variable
27591 # Extract the first word of "SUITApp", so it can be a program name with args.
27592 set dummy SUITApp; ac_word=$2
27593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27595 if test "${ac_cv_path_TEMP+set}" = set; then
27596 echo $ECHO_N "(cached) $ECHO_C" >&6
27600 ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
27603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27604 for as_dir in $PATH
27607 test -z "$as_dir" && as_dir=.
27608 for ac_exec_ext in '' $ac_executable_extensions; do
27609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27610 ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
27611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27621 TEMP=$ac_cv_path_TEMP
27622 if test -n "$TEMP"; then
27623 { echo "$as_me:$LINENO: result: $TEMP" >&5
27624 echo "${ECHO_T}$TEMP" >&6; }
27626 { echo "$as_me:$LINENO: result: no" >&5
27627 echo "${ECHO_T}no" >&6; }
27631 if test "x${TEMP}" != "x" ; then
27632 { echo "$as_me:$LINENO: result: SUITApp was found at : ${TEMP}" >&5
27633 echo "${ECHO_T}SUITApp was found at : ${TEMP}" >&6; }
27634 SALOME_BIN_DIR=`dirname ${TEMP}`
27635 SALOME_GUI_DIR=`cd ${SALOME_BIN_DIR}/../..; pwd`
27639 # GUI directory defined by user
27641 SALOME_GUI_DIR="$with_gui"
27644 # check GUI installation
27645 { echo "$as_me:$LINENO: checking for light GUI..." >&5
27646 echo "$as_me: checking for light GUI..." >&6;}
27647 if test -f ${SALOME_GUI_DIR}/bin/salome/SUITApp ; then
27649 { echo "$as_me:$LINENO: result: Using SALOME GUI distribution in ${SALOME_GUI_DIR}" >&5
27650 echo "${ECHO_T}Using SALOME GUI distribution in ${SALOME_GUI_DIR}" >&6; }
27652 GUI_ROOT_DIR=${SALOME_GUI_DIR}
27654 GUI_LDFLAGS=-L${SALOME_GUI_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
27655 GUI_CXXFLAGS=-I${SALOME_GUI_DIR}/include/salome
27657 { echo "$as_me:$LINENO: checking for full GUI..." >&5
27658 echo "$as_me: checking for full GUI..." >&6;}
27659 if test -f ${SALOME_GUI_DIR}/bin/salome/SALOME_Session_Server ; then
27663 { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled SALOME GUI distribution\"" >&5
27664 echo "$as_me: WARNING: \"Cannot find compiled SALOME GUI distribution\"" >&2;}
27666 { echo "$as_me:$LINENO: result: for light GUI: ${LightGUI_ok}" >&5
27667 echo "${ECHO_T}for light GUI: ${LightGUI_ok}" >&6; }
27668 { echo "$as_me:$LINENO: result: for full GUI: ${FullGUI_ok}" >&5
27669 echo "${ECHO_T}for full GUI: ${FullGUI_ok}" >&6; }
27677 SalomeGUI_ok=${LightGUI_ok}
27681 echo ---------------------------------------------
27682 echo Testing full GUI
27683 echo ---------------------------------------------
27698 # Check whether --with-gui was given.
27699 if test "${with_gui+set}" = set; then
27706 if test "${with_gui}" = "no"; then
27709 # define SALOME_GUI_DIR
27710 if test "${with_gui}" = "yes" -o "${with_gui}" = "auto"; then
27711 SalomeGUI_need="$with_gui"
27712 { echo "$as_me:$LINENO: result: try \${GUI_ROOT_DIR}: ${GUI_ROOT_DIR}" >&5
27713 echo "${ECHO_T}try \${GUI_ROOT_DIR}: ${GUI_ROOT_DIR}" >&6; }
27714 if test "x${GUI_ROOT_DIR}" != "x" ; then
27715 # GUI_ROOT_DIR environment variable defined
27716 SALOME_GUI_DIR=${GUI_ROOT_DIR}
27718 # search Salome binaries in PATH variable
27719 # Extract the first word of "SUITApp", so it can be a program name with args.
27720 set dummy SUITApp; ac_word=$2
27721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27723 if test "${ac_cv_path_TEMP+set}" = set; then
27724 echo $ECHO_N "(cached) $ECHO_C" >&6
27728 ac_cv_path_TEMP="$TEMP" # Let the user override the test with a path.
27731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27732 for as_dir in $PATH
27735 test -z "$as_dir" && as_dir=.
27736 for ac_exec_ext in '' $ac_executable_extensions; do
27737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27738 ac_cv_path_TEMP="$as_dir/$ac_word$ac_exec_ext"
27739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27749 TEMP=$ac_cv_path_TEMP
27750 if test -n "$TEMP"; then
27751 { echo "$as_me:$LINENO: result: $TEMP" >&5
27752 echo "${ECHO_T}$TEMP" >&6; }
27754 { echo "$as_me:$LINENO: result: no" >&5
27755 echo "${ECHO_T}no" >&6; }
27759 if test "x${TEMP}" != "x" ; then
27760 { echo "$as_me:$LINENO: result: SUITApp was found at : ${TEMP}" >&5
27761 echo "${ECHO_T}SUITApp was found at : ${TEMP}" >&6; }
27762 SALOME_BIN_DIR=`dirname ${TEMP}`
27763 SALOME_GUI_DIR=`cd ${SALOME_BIN_DIR}/../..; pwd`
27767 # GUI directory defined by user
27769 SALOME_GUI_DIR="$with_gui"
27772 # check GUI installation
27773 { echo "$as_me:$LINENO: checking for light GUI..." >&5
27774 echo "$as_me: checking for light GUI..." >&6;}
27775 if test -f ${SALOME_GUI_DIR}/bin/salome/SUITApp ; then
27777 { echo "$as_me:$LINENO: result: Using SALOME GUI distribution in ${SALOME_GUI_DIR}" >&5
27778 echo "${ECHO_T}Using SALOME GUI distribution in ${SALOME_GUI_DIR}" >&6; }
27780 GUI_ROOT_DIR=${SALOME_GUI_DIR}
27782 GUI_LDFLAGS=-L${SALOME_GUI_DIR}/lib${LIB_LOCATION_SUFFIX}/salome
27783 GUI_CXXFLAGS=-I${SALOME_GUI_DIR}/include/salome
27785 { echo "$as_me:$LINENO: checking for full GUI..." >&5
27786 echo "$as_me: checking for full GUI..." >&6;}
27787 if test -f ${SALOME_GUI_DIR}/bin/salome/SALOME_Session_Server ; then
27791 { echo "$as_me:$LINENO: WARNING: \"Cannot find compiled SALOME GUI distribution\"" >&5
27792 echo "$as_me: WARNING: \"Cannot find compiled SALOME GUI distribution\"" >&2;}
27794 { echo "$as_me:$LINENO: result: for light GUI: ${LightGUI_ok}" >&5
27795 echo "${ECHO_T}for light GUI: ${LightGUI_ok}" >&6; }
27796 { echo "$as_me:$LINENO: result: for full GUI: ${FullGUI_ok}" >&5
27797 echo "${ECHO_T}for full GUI: ${FullGUI_ok}" >&6; }
27805 CORBA_IN_GUI=${FullGUI_ok}
27808 if test "x${CORBA_IN_GUI}" != "xyes"; then
27809 echo "failed : For configure HEXABLOCK module necessary full GUI !"
27815 echo ---------------------------------------------
27817 echo ---------------------------------------------
27821 variables="cc_ok threads_ok boost_ok python_ok omniORB_ok qt_ok Kernel_ok SalomeGUI_ok"
27823 for var in $variables
27825 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
27830 echo "Default ORB : $DEFAULT_ORB"
27833 if test "X$GMAKE" = "Xyes"; then
27839 echo ---------------------------------------------
27840 echo generating Makefiles and configure files
27841 echo ---------------------------------------------
27844 ac_config_commands="$ac_config_commands default-1"
27847 # This list is initiated using autoscan and must be updated manually
27848 # when adding a new file <filename>.in to manage. When you execute
27849 # autoscan, the Makefile list is generated in the output file configure.scan.
27851 # This could be helpfull to update de configuration.
27852 ac_config_files="$ac_config_files salome_adm/unix/SALOMEconfig.h adm_local/Makefile adm_local/unix/Makefile adm_local/unix/config_files/Makefile bin/VERSION bin/runAppli bin/Makefile doc/Makefile HEXABLOCK_version.h resources/HEXABLOCKCatalog.xml src/Makefile src/HEXABLOCK/Makefile src/HEXABLOCK_I/Makefile src/HEXABLOCKGUI/Makefile src/TEST_CPP/Makefile src/TEST_PY/Makefile resources/Makefile idl/Makefile Makefile"
27854 cat >confcache <<\_ACEOF
27855 # This file is a shell script that caches the results of configure
27856 # tests run on this system so they can be shared between configure
27857 # scripts and configure runs, see configure's option --config-cache.
27858 # It is not useful on other systems. If it contains results you don't
27859 # want to keep, you may remove or edit it.
27861 # config.status only pays attention to the cache file if you give it
27862 # the --recheck option to rerun configure.
27864 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27865 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27866 # following values.
27870 # The following way of writing the cache mishandles newlines in values,
27871 # but we know of no workaround that is simple, portable, and efficient.
27872 # So, we kill variables containing newlines.
27873 # Ultrix sh set writes to stderr and can't be redirected directly,
27874 # and sets the high bit in the cache file unless we assign to the vars.
27876 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27877 eval ac_val=\$$ac_var
27881 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27882 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27885 _ | IFS | as_nl) ;; #(
27886 *) $as_unset $ac_var ;;
27892 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27893 *${as_nl}ac_space=\ *)
27894 # `set' does not quote correctly, so add quotes (double-quote
27895 # substitution turns \\\\ into \\, and sed turns \\ into \).
27898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27901 # `set' quotes correctly as required by POSIX, so do not add quotes.
27902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27913 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27915 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27916 if test -w "$cache_file"; then
27917 test "x$cache_file" != "x/dev/null" &&
27918 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27919 echo "$as_me: updating cache $cache_file" >&6;}
27920 cat confcache >$cache_file
27922 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27923 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27929 # Let make expand exec_prefix.
27930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27932 # Transform confdefs.h into DEFS.
27933 # Protect against shell expansion while executing Makefile rules.
27934 # Protect against Makefile macro expansion.
27936 # If the first sed substitution is executed (which looks for macros that
27937 # take arguments), then branch to the quote section. Otherwise,
27938 # look for a macro that doesn't take arguments.
27942 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
27944 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
27948 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
27961 DEFS=`sed -n "$ac_script" confdefs.h`
27966 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27967 # 1. Remove the extension, and $U if already installed.
27968 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27969 ac_i=`echo "$ac_i" | sed "$ac_script"`
27970 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27971 # will be set to the directory where LIBOBJS objects are built.
27972 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27973 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27975 LIBOBJS=$ac_libobjs
27977 LTLIBOBJS=$ac_ltlibobjs
27980 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27981 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27982 Usually this means the macro was only invoked conditionally." >&5
27983 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27984 Usually this means the macro was only invoked conditionally." >&2;}
27985 { (exit 1); exit 1; }; }
27987 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27988 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27989 Usually this means the macro was only invoked conditionally." >&5
27990 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27991 Usually this means the macro was only invoked conditionally." >&2;}
27992 { (exit 1); exit 1; }; }
27994 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27995 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27996 Usually this means the macro was only invoked conditionally." >&5
27997 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27998 Usually this means the macro was only invoked conditionally." >&2;}
27999 { (exit 1); exit 1; }; }
28001 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28002 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28003 Usually this means the macro was only invoked conditionally." >&5
28004 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28005 Usually this means the macro was only invoked conditionally." >&2;}
28006 { (exit 1); exit 1; }; }
28008 if test -z "${CPPUNIT_IS_OK_TRUE}" && test -z "${CPPUNIT_IS_OK_FALSE}"; then
28009 { { echo "$as_me:$LINENO: error: conditional \"CPPUNIT_IS_OK\" was never defined.
28010 Usually this means the macro was only invoked conditionally." >&5
28011 echo "$as_me: error: conditional \"CPPUNIT_IS_OK\" was never defined.
28012 Usually this means the macro was only invoked conditionally." >&2;}
28013 { (exit 1); exit 1; }; }
28016 : ${CONFIG_STATUS=./config.status}
28017 ac_clean_files_save=$ac_clean_files
28018 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28019 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28020 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28021 cat >$CONFIG_STATUS <<_ACEOF
28023 # Generated by $as_me.
28024 # Run this file to recreate the current configuration.
28025 # Compiler output produced by configure, useful for debugging
28026 # configure, is in config.log if it exists.
28029 ac_cs_recheck=false
28031 SHELL=\${CONFIG_SHELL-$SHELL}
28034 cat >>$CONFIG_STATUS <<\_ACEOF
28035 ## --------------------- ##
28036 ## M4sh Initialization. ##
28037 ## --------------------- ##
28039 # Be more Bourne compatible
28040 DUALCASE=1; export DUALCASE # for MKS sh
28041 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28044 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28045 # is contrary to our usage. Disable this feature.
28046 alias -g '${1+"$@"}'='"$@"'
28047 setopt NO_GLOB_SUBST
28049 case `(set -o) 2>/dev/null` in
28050 *posix*) set -o posix ;;
28059 # Avoid depending upon Character Ranges.
28060 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28061 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28062 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28063 as_cr_digits='0123456789'
28064 as_cr_alnum=$as_cr_Letters$as_cr_digits
28066 # The user is always right.
28067 if test "${PATH_SEPARATOR+set}" != set; then
28068 echo "#! /bin/sh" >conf$$.sh
28069 echo "exit 0" >>conf$$.sh
28071 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28079 # Support unset when possible.
28080 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28088 # We need space, tab and new line, in precisely that order. Quoting is
28089 # there to prevent editors from complaining about space-tab.
28090 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28091 # splitting by setting IFS to empty value.)
28096 # Find who we are. Look in the path if we contain no directory separator.
28098 *[\\/]* ) as_myself=$0 ;;
28099 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28100 for as_dir in $PATH
28103 test -z "$as_dir" && as_dir=.
28104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28110 # We did not find ourselves, most probably we were run as `sh COMMAND'
28111 # in which case we are not to be found in the path.
28112 if test "x$as_myself" = x; then
28115 if test ! -f "$as_myself"; then
28116 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28117 { (exit 1); exit 1; }
28120 # Work around bugs in pre-3.0 UWIN ksh.
28121 for as_var in ENV MAIL MAILPATH
28122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28130 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28131 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28132 LC_TELEPHONE LC_TIME
28134 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28135 eval $as_var=C; export $as_var
28137 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28141 # Required to use basename.
28142 if expr a : '\(a\)' >/dev/null 2>&1 &&
28143 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28149 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28150 as_basename=basename
28156 # Name of the executable.
28157 as_me=`$as_basename -- "$0" ||
28158 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28159 X"$0" : 'X\(//\)$' \| \
28160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28162 sed '/^.*\/\([^/][^/]*\)\/*$/{
28181 as_lineno_1=$LINENO
28182 as_lineno_2=$LINENO
28183 test "x$as_lineno_1" != "x$as_lineno_2" &&
28184 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28186 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28187 # uniformly replaced by the line number. The first 'sed' inserts a
28188 # line-number line after each line using $LINENO; the second 'sed'
28189 # does the real work. The second script uses 'N' to pair each
28190 # line-number line with the line containing $LINENO, and appends
28191 # trailing '-' during substitution so that $LINENO is not a special
28192 # case at line end.
28193 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28194 # scripts with optimization help from Paolo Bonzini. Blame Lee
28195 # E. McMahon (1931-1989) for sed's syntax. :-)
28207 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28210 ' >$as_me.lineno &&
28211 chmod +x "$as_me.lineno" ||
28212 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28213 { (exit 1); exit 1; }; }
28215 # Don't try to exec as it changes $[0], causing all sort of problems
28216 # (the dirname of $[0] is not the place where we might find the
28217 # original and so on. Autoconf is especially sensitive to this).
28218 . "./$as_me.lineno"
28219 # Exit status is that of the last command.
28224 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28230 ECHO_C= ECHO_N= ECHO_T=
28231 case `echo -n x` in
28233 case `echo 'x\c'` in
28234 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28241 if expr a : '\(a\)' >/dev/null 2>&1 &&
28242 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28248 rm -f conf$$ conf$$.exe conf$$.file
28249 if test -d conf$$.dir; then
28250 rm -f conf$$.dir/conf$$.file
28256 if ln -s conf$$.file conf$$ 2>/dev/null; then
28258 # ... but there are two gotchas:
28259 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28260 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28261 # In both cases, we have to default to `cp -p'.
28262 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28264 elif ln conf$$.file conf$$ 2>/dev/null; then
28269 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28270 rmdir conf$$.dir 2>/dev/null
28272 if mkdir -p . 2>/dev/null; then
28275 test -d ./-p && rmdir ./-p
28279 if test -x / >/dev/null 2>&1; then
28280 as_test_x='test -x'
28282 if ls -dL / >/dev/null 2>&1; then
28289 if test -d "$1"; then
28295 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28296 ???[sx]*):;;*)false;;esac;fi
28300 as_executable_p=$as_test_x
28302 # Sed expression to map a string onto a valid CPP name.
28303 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28305 # Sed expression to map a string onto a valid variable name.
28306 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28311 # Save the log message, to keep $[0] and so on meaningful, and to
28312 # report actual input values of CONFIG_FILES etc. instead of their
28313 # values after options handling.
28315 This file was extended by Salome6 Project HEXABLOCK module $as_me 5.1.2, which was
28316 generated by GNU Autoconf 2.61. Invocation command line was
28318 CONFIG_FILES = $CONFIG_FILES
28319 CONFIG_HEADERS = $CONFIG_HEADERS
28320 CONFIG_LINKS = $CONFIG_LINKS
28321 CONFIG_COMMANDS = $CONFIG_COMMANDS
28324 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28329 cat >>$CONFIG_STATUS <<_ACEOF
28330 # Files that config.status was made for.
28331 config_files="$ac_config_files"
28332 config_commands="$ac_config_commands"
28336 cat >>$CONFIG_STATUS <<\_ACEOF
28338 \`$as_me' instantiates files from templates according to the
28339 current configuration.
28341 Usage: $0 [OPTIONS] [FILE]...
28343 -h, --help print this help, then exit
28344 -V, --version print version number and configuration settings, then exit
28345 -q, --quiet do not print progress messages
28346 -d, --debug don't remove temporary files
28347 --recheck update $as_me by reconfiguring in the same conditions
28348 --file=FILE[:TEMPLATE]
28349 instantiate the configuration file FILE
28351 Configuration files:
28354 Configuration commands:
28357 Report bugs to <bug-autoconf@gnu.org>."
28360 cat >>$CONFIG_STATUS <<_ACEOF
28362 Salome6 Project HEXABLOCK module config.status 5.1.2
28363 configured by $0, generated by GNU Autoconf 2.61,
28364 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28366 Copyright (C) 2006 Free Software Foundation, Inc.
28367 This config.status script is free software; the Free Software Foundation
28368 gives unlimited permission to copy, distribute and modify it."
28376 cat >>$CONFIG_STATUS <<\_ACEOF
28377 # If no file are specified by the user, then we need to provide default
28378 # value. By we need to know if files were specified by the user.
28384 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28385 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28396 # Handling of the options.
28397 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28399 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28400 echo "$ac_cs_version"; exit ;;
28401 --debug | --debu | --deb | --de | --d | -d )
28403 --file | --fil | --fi | --f )
28405 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28406 ac_need_defaults=false;;
28407 --he | --h | --help | --hel | -h )
28408 echo "$ac_cs_usage"; exit ;;
28409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28410 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28413 # This is an error.
28414 -*) { echo "$as_me: error: unrecognized option: $1
28415 Try \`$0 --help' for more information." >&2
28416 { (exit 1); exit 1; }; } ;;
28418 *) ac_config_targets="$ac_config_targets $1"
28419 ac_need_defaults=false ;;
28425 ac_configure_extra_args=
28427 if $ac_cs_silent; then
28429 ac_configure_extra_args="$ac_configure_extra_args --silent"
28433 cat >>$CONFIG_STATUS <<_ACEOF
28434 if \$ac_cs_recheck; then
28435 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28436 CONFIG_SHELL=$SHELL
28437 export CONFIG_SHELL
28438 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28442 cat >>$CONFIG_STATUS <<\_ACEOF
28446 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28447 ## Running $as_me. ##
28453 cat >>$CONFIG_STATUS <<_ACEOF
28457 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28462 cat >>$CONFIG_STATUS <<\_ACEOF
28464 # Handling of arguments.
28465 for ac_config_target in $ac_config_targets
28467 case $ac_config_target in
28468 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28469 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28470 "salome_adm/unix/SALOMEconfig.h") CONFIG_FILES="$CONFIG_FILES salome_adm/unix/SALOMEconfig.h" ;;
28471 "adm_local/Makefile") CONFIG_FILES="$CONFIG_FILES adm_local/Makefile" ;;
28472 "adm_local/unix/Makefile") CONFIG_FILES="$CONFIG_FILES adm_local/unix/Makefile" ;;
28473 "adm_local/unix/config_files/Makefile") CONFIG_FILES="$CONFIG_FILES adm_local/unix/config_files/Makefile" ;;
28474 "bin/VERSION") CONFIG_FILES="$CONFIG_FILES bin/VERSION" ;;
28475 "bin/runAppli") CONFIG_FILES="$CONFIG_FILES bin/runAppli" ;;
28476 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
28477 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28478 "HEXABLOCK_version.h") CONFIG_FILES="$CONFIG_FILES HEXABLOCK_version.h" ;;
28479 "resources/HEXABLOCKCatalog.xml") CONFIG_FILES="$CONFIG_FILES resources/HEXABLOCKCatalog.xml" ;;
28480 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28481 "src/HEXABLOCK/Makefile") CONFIG_FILES="$CONFIG_FILES src/HEXABLOCK/Makefile" ;;
28482 "src/HEXABLOCK_I/Makefile") CONFIG_FILES="$CONFIG_FILES src/HEXABLOCK_I/Makefile" ;;
28483 "src/HEXABLOCKGUI/Makefile") CONFIG_FILES="$CONFIG_FILES src/HEXABLOCKGUI/Makefile" ;;
28484 "src/TEST_CPP/Makefile") CONFIG_FILES="$CONFIG_FILES src/TEST_CPP/Makefile" ;;
28485 "src/TEST_PY/Makefile") CONFIG_FILES="$CONFIG_FILES src/TEST_PY/Makefile" ;;
28486 "resources/Makefile") CONFIG_FILES="$CONFIG_FILES resources/Makefile" ;;
28487 "idl/Makefile") CONFIG_FILES="$CONFIG_FILES idl/Makefile" ;;
28488 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28491 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28492 { (exit 1); exit 1; }; };;
28497 # If the user did not use the arguments to specify the items to instantiate,
28498 # then the envvar interface is used. Set only those that are not.
28499 # We use the long form for the default assignment because of an extremely
28500 # bizarre bug on SunOS 4.1.3.
28501 if $ac_need_defaults; then
28502 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28506 # Have a temporary directory for convenience. Make it in the build tree
28507 # simply because there is no reason against having it here, and in addition,
28508 # creating and moving files from /tmp can sometimes cause problems.
28509 # Hook for its removal unless debugging.
28510 # Note that there is a small window in which the directory will not be cleaned:
28511 # after its creation but before its name has been assigned to `$tmp'.
28515 trap 'exit_status=$?
28516 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28518 trap '{ (exit 1); exit 1; }' 1 2 13 15
28520 # Create a (secure) tmp directory for tmp files.
28523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28524 test -n "$tmp" && test -d "$tmp"
28527 tmp=./conf$$-$RANDOM
28528 (umask 077 && mkdir "$tmp")
28531 echo "$me: cannot create a temporary directory in ." >&2
28532 { (exit 1); exit 1; }
28536 # Set up the sed scripts for CONFIG_FILES section.
28539 # No need to generate the scripts if there are no CONFIG_FILES.
28540 # This happens for instance when ./config.status config.h
28541 if test -n "$CONFIG_FILES"; then
28545 # Create sed commands to just substitute file output variables.
28547 # Remaining file output variables are in a fragment that also has non-file
28553 for ac_last_try in false false false false false :; do
28554 cat >conf$$subs.sed <<_ACEOF
28555 SHELL!$SHELL$ac_delim
28556 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28557 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28558 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28559 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28560 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28561 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28562 exec_prefix!$exec_prefix$ac_delim
28563 prefix!$prefix$ac_delim
28564 program_transform_name!$program_transform_name$ac_delim
28565 bindir!$bindir$ac_delim
28566 sbindir!$sbindir$ac_delim
28567 libexecdir!$libexecdir$ac_delim
28568 datarootdir!$datarootdir$ac_delim
28569 datadir!$datadir$ac_delim
28570 sysconfdir!$sysconfdir$ac_delim
28571 sharedstatedir!$sharedstatedir$ac_delim
28572 localstatedir!$localstatedir$ac_delim
28573 includedir!$includedir$ac_delim
28574 oldincludedir!$oldincludedir$ac_delim
28575 docdir!$docdir$ac_delim
28576 infodir!$infodir$ac_delim
28577 htmldir!$htmldir$ac_delim
28578 dvidir!$dvidir$ac_delim
28579 pdfdir!$pdfdir$ac_delim
28580 psdir!$psdir$ac_delim
28581 libdir!$libdir$ac_delim
28582 localedir!$localedir$ac_delim
28583 mandir!$mandir$ac_delim
28584 DEFS!$DEFS$ac_delim
28585 ECHO_C!$ECHO_C$ac_delim
28586 ECHO_N!$ECHO_N$ac_delim
28587 ECHO_T!$ECHO_T$ac_delim
28588 LIBS!$LIBS$ac_delim
28589 build_alias!$build_alias$ac_delim
28590 host_alias!$host_alias$ac_delim
28591 target_alias!$target_alias$ac_delim
28592 build!$build$ac_delim
28593 build_cpu!$build_cpu$ac_delim
28594 build_vendor!$build_vendor$ac_delim
28595 build_os!$build_os$ac_delim
28596 host!$host$ac_delim
28597 host_cpu!$host_cpu$ac_delim
28598 host_vendor!$host_vendor$ac_delim
28599 host_os!$host_os$ac_delim
28600 target!$target$ac_delim
28601 target_cpu!$target_cpu$ac_delim
28602 target_vendor!$target_vendor$ac_delim
28603 target_os!$target_os$ac_delim
28604 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28605 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28606 INSTALL_DATA!$INSTALL_DATA$ac_delim
28607 am__isrc!$am__isrc$ac_delim
28608 CYGPATH_W!$CYGPATH_W$ac_delim
28609 PACKAGE!$PACKAGE$ac_delim
28610 VERSION!$VERSION$ac_delim
28611 ACLOCAL!$ACLOCAL$ac_delim
28612 AUTOCONF!$AUTOCONF$ac_delim
28613 AUTOMAKE!$AUTOMAKE$ac_delim
28614 AUTOHEADER!$AUTOHEADER$ac_delim
28615 MAKEINFO!$MAKEINFO$ac_delim
28616 install_sh!$install_sh$ac_delim
28617 STRIP!$STRIP$ac_delim
28618 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
28619 mkdir_p!$mkdir_p$ac_delim
28621 SET_MAKE!$SET_MAKE$ac_delim
28622 am__leading_dot!$am__leading_dot$ac_delim
28623 AMTAR!$AMTAR$ac_delim
28624 am__tar!$am__tar$ac_delim
28625 am__untar!$am__untar$ac_delim
28626 XVERSION!$XVERSION$ac_delim
28627 MODULE_NAME!$MODULE_NAME$ac_delim
28628 ROOT_SRCDIR!$ROOT_SRCDIR$ac_delim
28629 ROOT_BUILDDIR!$ROOT_BUILDDIR$ac_delim
28632 CFLAGS!$CFLAGS$ac_delim
28633 LDFLAGS!$LDFLAGS$ac_delim
28634 CPPFLAGS!$CPPFLAGS$ac_delim
28635 ac_ct_CC!$ac_ct_CC$ac_delim
28636 EXEEXT!$EXEEXT$ac_delim
28637 OBJEXT!$OBJEXT$ac_delim
28638 DEPDIR!$DEPDIR$ac_delim
28639 am__include!$am__include$ac_delim
28640 am__quote!$am__quote$ac_delim
28641 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
28642 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
28643 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
28644 CCDEPMODE!$CCDEPMODE$ac_delim
28645 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
28646 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
28647 GREP!$GREP$ac_delim
28648 EGREP!$EGREP$ac_delim
28651 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
28653 elif $ac_last_try; then
28654 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28655 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28656 { (exit 1); exit 1; }; }
28658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28662 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28663 if test -n "$ac_eof"; then
28664 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28665 ac_eof=`expr $ac_eof + 1`
28668 cat >>$CONFIG_STATUS <<_ACEOF
28669 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28671 /^[ ]*@CORBA@[ ]*$/{
28677 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28678 s/^/s,@/; s/!/@,|#_!!_#|/
28681 s/'"$ac_delim"'$/,g/; t
28683 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28684 ' >>$CONFIG_STATUS <conf$$subs.sed
28685 rm -f conf$$subs.sed
28686 cat >>$CONFIG_STATUS <<_ACEOF
28692 for ac_last_try in false false false false false :; do
28693 cat >conf$$subs.sed <<_ACEOF
28694 LN_S!$LN_S$ac_delim
28695 ECHO!$ECHO$ac_delim
28696 RANLIB!$RANLIB$ac_delim
28699 CXXFLAGS!$CXXFLAGS$ac_delim
28700 ac_ct_CXX!$ac_ct_CXX$ac_delim
28701 CXXDEPMODE!$CXXDEPMODE$ac_delim
28702 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
28703 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
28704 CXXCPP!$CXXCPP$ac_delim
28706 FFLAGS!$FFLAGS$ac_delim
28707 ac_ct_F77!$ac_ct_F77$ac_delim
28708 LIBTOOL!$LIBTOOL$ac_delim
28709 CXXTMPDPTHFLAGS!$CXXTMPDPTHFLAGS$ac_delim
28710 DEPCC!$DEPCC$ac_delim
28711 DEPCXX!$DEPCXX$ac_delim
28712 DEPCXXFLAGS!$DEPCXXFLAGS$ac_delim
28713 C_DEPEND_FLAG!$C_DEPEND_FLAG$ac_delim
28714 CXX_DEPEND_FLAG!$CXX_DEPEND_FLAG$ac_delim
28715 MACHINE!$MACHINE$ac_delim
28716 HAVE_SSTREAM!$HAVE_SSTREAM$ac_delim
28717 LIB_LOCATION_SUFFIX!$LIB_LOCATION_SUFFIX$ac_delim
28718 LDEXPDYNFLAGS!$LDEXPDYNFLAGS$ac_delim
28719 STDLIB!$STDLIB$ac_delim
28720 acx_pthread_config!$acx_pthread_config$ac_delim
28721 PTHREAD_CC!$PTHREAD_CC$ac_delim
28722 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
28723 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
28724 PYTHON!$PYTHON$ac_delim
28725 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
28726 PYTHONHOME!$PYTHONHOME$ac_delim
28727 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
28728 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
28729 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
28730 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
28731 PYTHON_SITE!$PYTHON_SITE$ac_delim
28732 PYTHON_SITE_PACKAGE!$PYTHON_SITE_PACKAGE$ac_delim
28733 PYTHON_SITE_EXEC!$PYTHON_SITE_EXEC$ac_delim
28734 PYTHON_SITE_INSTALL!$PYTHON_SITE_INSTALL$ac_delim
28735 pythondir!$pythondir$ac_delim
28736 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
28737 pkgpythondir!$pkgpythondir$ac_delim
28738 pyexecdir!$pyexecdir$ac_delim
28739 pkgpyexecdir!$pkgpyexecdir$ac_delim
28740 OGL_INCLUDES!$OGL_INCLUDES$ac_delim
28741 OGL_LIBS!$OGL_LIBS$ac_delim
28744 QRCC!$QRCC$ac_delim
28745 LRELEASE!$LRELEASE$ac_delim
28746 QTDIR!$QTDIR$ac_delim
28747 QT_ROOT!$QT_ROOT$ac_delim
28748 QT_INCLUDES!$QT_INCLUDES$ac_delim
28749 QT_MT_INCLUDES!$QT_MT_INCLUDES$ac_delim
28750 QT_ASSISTANT_INCLUDES!$QT_ASSISTANT_INCLUDES$ac_delim
28751 QT_LIB_DIR!$QT_LIB_DIR$ac_delim
28752 QT_CORE_LIBS!$QT_CORE_LIBS$ac_delim
28753 QT_GUI_LIBS!$QT_GUI_LIBS$ac_delim
28754 QT_OTHER_LIBS!$QT_OTHER_LIBS$ac_delim
28755 QT_LIBS!$QT_LIBS$ac_delim
28756 QT_MT_LIBS!$QT_MT_LIBS$ac_delim
28757 QT_ASSISTANT_LIBS!$QT_ASSISTANT_LIBS$ac_delim
28758 QT_VERSION!$QT_VERSION$ac_delim
28759 QT_VERSION_ID!$QT_VERSION_ID$ac_delim
28760 BOOST_CPPFLAGS!$BOOST_CPPFLAGS$ac_delim
28761 BOOST_LIBSUFFIX!$BOOST_LIBSUFFIX$ac_delim
28762 BOOST_LIBS!$BOOST_LIBS$ac_delim
28763 BOOST_LIB_THREAD!$BOOST_LIB_THREAD$ac_delim
28764 BOOST_LIB_SIGNALS!$BOOST_LIB_SIGNALS$ac_delim
28765 BOOST_LIB_SYSTEM!$BOOST_LIB_SYSTEM$ac_delim
28766 BOOST_LIB_REGEX!$BOOST_LIB_REGEX$ac_delim
28767 BOOST_PROGRAM_OPTIONS_LIB!$BOOST_PROGRAM_OPTIONS_LIB$ac_delim
28768 CAS_CPPFLAGS!$CAS_CPPFLAGS$ac_delim
28769 CAS_CXXFLAGS!$CAS_CXXFLAGS$ac_delim
28770 CAS_KERNEL!$CAS_KERNEL$ac_delim
28771 CAS_MATH!$CAS_MATH$ac_delim
28772 CAS_VIEWER!$CAS_VIEWER$ac_delim
28773 CAS_TKTopAlgo!$CAS_TKTopAlgo$ac_delim
28774 CAS_MODELER!$CAS_MODELER$ac_delim
28775 CAS_OCAF!$CAS_OCAF$ac_delim
28776 CAS_OCAFVIS!$CAS_OCAFVIS$ac_delim
28777 CAS_DATAEXCHANGE!$CAS_DATAEXCHANGE$ac_delim
28778 CAS_LDFLAGS!$CAS_LDFLAGS$ac_delim
28779 CAS_LDPATH!$CAS_LDPATH$ac_delim
28780 CAS_STDPLUGIN!$CAS_STDPLUGIN$ac_delim
28781 OMNIORB_IDL!$OMNIORB_IDL$ac_delim
28782 OMNIORB_ROOT!$OMNIORB_ROOT$ac_delim
28783 OMNIORB_INCLUDES!$OMNIORB_INCLUDES$ac_delim
28784 OMNIORB_CXXFLAGS!$OMNIORB_CXXFLAGS$ac_delim
28785 OMNIORB_LIBS!$OMNIORB_LIBS$ac_delim
28786 OMNIORB_IDLCXXFLAGS!$OMNIORB_IDLCXXFLAGS$ac_delim
28787 OMNIORB_IDLPYFLAGS!$OMNIORB_IDLPYFLAGS$ac_delim
28788 OMNIORB_IDL_CLN_H!$OMNIORB_IDL_CLN_H$ac_delim
28789 OMNIORB_IDL_CLN_CXX!$OMNIORB_IDL_CLN_CXX$ac_delim
28790 OMNIORB_IDL_CLN_OBJ!$OMNIORB_IDL_CLN_OBJ$ac_delim
28793 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28795 elif $ac_last_try; then
28796 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28797 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28798 { (exit 1); exit 1; }; }
28800 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28804 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28805 if test -n "$ac_eof"; then
28806 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28807 ac_eof=`expr $ac_eof + 1`
28810 cat >>$CONFIG_STATUS <<_ACEOF
28811 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28815 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28816 s/^/s,@/; s/!/@,|#_!!_#|/
28819 s/'"$ac_delim"'$/,g/; t
28821 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28822 ' >>$CONFIG_STATUS <conf$$subs.sed
28823 rm -f conf$$subs.sed
28824 cat >>$CONFIG_STATUS <<_ACEOF
28830 for ac_last_try in false false false false false :; do
28831 cat >conf$$subs.sed <<_ACEOF
28832 OMNIORB_IDL_SRV_H!$OMNIORB_IDL_SRV_H$ac_delim
28833 OMNIORB_IDL_SRV_CXX!$OMNIORB_IDL_SRV_CXX$ac_delim
28834 OMNIORB_IDL_SRV_OBJ!$OMNIORB_IDL_SRV_OBJ$ac_delim
28835 OMNIORB_IDL_TIE_H!$OMNIORB_IDL_TIE_H$ac_delim
28836 OMNIORB_IDL_TIE_CXX!$OMNIORB_IDL_TIE_CXX$ac_delim
28838 CORBA_ROOT!$CORBA_ROOT$ac_delim
28839 CORBA_INCLUDES!$CORBA_INCLUDES$ac_delim
28840 CORBA_CXXFLAGS!$CORBA_CXXFLAGS$ac_delim
28841 CORBA_LIBS!$CORBA_LIBS$ac_delim
28842 IDLCXXFLAGS!$IDLCXXFLAGS$ac_delim
28843 IDLPYFLAGS!$IDLPYFLAGS$ac_delim
28844 IDL_CLN_H!$IDL_CLN_H$ac_delim
28845 IDL_CLN_CXX!$IDL_CLN_CXX$ac_delim
28846 IDL_CLN_OBJ!$IDL_CLN_OBJ$ac_delim
28847 IDL_SRV_H!$IDL_SRV_H$ac_delim
28848 IDL_SRV_CXX!$IDL_SRV_CXX$ac_delim
28849 IDL_SRV_OBJ!$IDL_SRV_OBJ$ac_delim
28850 CPPUNIT_INCLUDES!$CPPUNIT_INCLUDES$ac_delim
28851 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
28852 cppunit_ok!$cppunit_ok$ac_delim
28853 CPPUNIT_IS_OK_TRUE!$CPPUNIT_IS_OK_TRUE$ac_delim
28854 CPPUNIT_IS_OK_FALSE!$CPPUNIT_IS_OK_FALSE$ac_delim
28855 TEMP!$TEMP$ac_delim
28856 KERNEL_ROOT_DIR!$KERNEL_ROOT_DIR$ac_delim
28857 KERNEL_SITE_DIR!$KERNEL_SITE_DIR$ac_delim
28858 KERNEL_LDFLAGS!$KERNEL_LDFLAGS$ac_delim
28859 KERNEL_CXXFLAGS!$KERNEL_CXXFLAGS$ac_delim
28860 GEOM_ROOT_DIR!$GEOM_ROOT_DIR$ac_delim
28861 GEOM_LDFLAGS!$GEOM_LDFLAGS$ac_delim
28862 GEOM_CXXFLAGS!$GEOM_CXXFLAGS$ac_delim
28863 GUI_LDFLAGS!$GUI_LDFLAGS$ac_delim
28864 GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
28865 GUI_ROOT_DIR!$GUI_ROOT_DIR$ac_delim
28866 CORBA_IN_GUI!$CORBA_IN_GUI$ac_delim
28867 SETX!$SETX$ac_delim
28868 LIBOBJS!$LIBOBJS$ac_delim
28869 LTLIBOBJS!$LTLIBOBJS$ac_delim
28872 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
28874 elif $ac_last_try; then
28875 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28876 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28877 { (exit 1); exit 1; }; }
28879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28883 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28884 if test -n "$ac_eof"; then
28885 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28886 ac_eof=`expr $ac_eof + 1`
28889 cat >>$CONFIG_STATUS <<_ACEOF
28890 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
28891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28894 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28895 s/^/s,@/; s/!/@,|#_!!_#|/
28898 s/'"$ac_delim"'$/,g/; t
28900 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28901 ' >>$CONFIG_STATUS <conf$$subs.sed
28902 rm -f conf$$subs.sed
28903 cat >>$CONFIG_STATUS <<_ACEOF
28910 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28911 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28912 # trailing colons and then remove the whole line if VPATH becomes empty
28913 # (actually we leave an empty line to preserve line numbers).
28914 if test "x$srcdir" = x.; then
28915 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28916 s/:*\$(srcdir):*/:/
28917 s/:*\${srcdir}:*/:/
28919 s/^\([^=]*=[ ]*\):*/\1/
28925 cat >>$CONFIG_STATUS <<\_ACEOF
28926 fi # test -n "$CONFIG_FILES"
28929 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
28932 :[FHLC]) ac_mode=$ac_tag; continue;;
28934 case $ac_mode$ac_tag in
28936 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28937 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28938 { (exit 1); exit 1; }; };;
28939 :[FH]-) ac_tag=-:-;;
28940 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28957 -) ac_f="$tmp/stdin";;
28958 *) # Look for the file first in the build tree, then in the source tree
28959 # (if the path is not absolute). The absolute path cannot be DOS-style,
28960 # because $ac_f cannot contain `:'.
28964 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28966 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28967 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28968 { (exit 1); exit 1; }; };;
28970 ac_file_inputs="$ac_file_inputs $ac_f"
28973 # Let's still pretend it is `configure' which instantiates (i.e., don't
28974 # use $as_me), people would be surprised to read:
28975 # /* config.h. Generated by config.status. */
28976 configure_input="Generated from "`IFS=:
28977 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28978 if test x"$ac_file" != x-; then
28979 configure_input="$ac_file. $configure_input"
28980 { echo "$as_me:$LINENO: creating $ac_file" >&5
28981 echo "$as_me: creating $ac_file" >&6;}
28985 *:-:* | *:-) cat >"$tmp/stdin";;
28990 ac_dir=`$as_dirname -- "$ac_file" ||
28991 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28992 X"$ac_file" : 'X\(//\)[^/]' \| \
28993 X"$ac_file" : 'X\(//\)$' \| \
28994 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29000 /^X\(\/\/\)[^/].*/{
29015 -*) as_dir=./$as_dir;;
29017 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29021 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29022 *) as_qdir=$as_dir;;
29024 as_dirs="'$as_qdir' $as_dirs"
29025 as_dir=`$as_dirname -- "$as_dir" ||
29026 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29027 X"$as_dir" : 'X\(//\)[^/]' \| \
29028 X"$as_dir" : 'X\(//\)$' \| \
29029 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29035 /^X\(\/\/\)[^/].*/{
29048 test -d "$as_dir" && break
29050 test -z "$as_dirs" || eval "mkdir $as_dirs"
29051 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29052 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29053 { (exit 1); exit 1; }; }; }
29057 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29060 # A ".." for each directory in $ac_dir_suffix.
29061 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29062 case $ac_top_builddir_sub in
29063 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29064 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29067 ac_abs_top_builddir=$ac_pwd
29068 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29069 # for backward compatibility:
29070 ac_top_builddir=$ac_top_build_prefix
29073 .) # We are building in place.
29075 ac_top_srcdir=$ac_top_builddir_sub
29076 ac_abs_top_srcdir=$ac_pwd ;;
29077 [\\/]* | ?:[\\/]* ) # Absolute name.
29078 ac_srcdir=$srcdir$ac_dir_suffix;
29079 ac_top_srcdir=$srcdir
29080 ac_abs_top_srcdir=$srcdir ;;
29081 *) # Relative name.
29082 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29083 ac_top_srcdir=$ac_top_build_prefix$srcdir
29084 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29086 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29096 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29097 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29099 ac_MKDIR_P=$MKDIR_P
29101 [\\/$]* | ?:[\\/]* ) ;;
29102 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29106 cat >>$CONFIG_STATUS <<\_ACEOF
29107 # If the template does not know about datarootdir, expand it.
29108 # FIXME: This hack should be removed a few years after 2.60.
29109 ac_datarootdir_hack=; ac_datarootdir_seen=
29111 case `sed -n '/datarootdir/ {
29120 ' $ac_file_inputs` in
29121 *datarootdir*) ac_datarootdir_seen=yes;;
29122 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29123 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29124 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29126 cat >>$CONFIG_STATUS <<_ACEOF
29127 ac_datarootdir_hack='
29128 s&@datadir@&$datadir&g
29129 s&@docdir@&$docdir&g
29130 s&@infodir@&$infodir&g
29131 s&@localedir@&$localedir&g
29132 s&@mandir@&$mandir&g
29133 s&\\\${datarootdir}&$datarootdir&g' ;;
29137 # Neutralize VPATH when `$srcdir' = `.'.
29138 # Shell code in configure.ac might set extrasub.
29139 # FIXME: do we really want to maintain this feature?
29140 cat >>$CONFIG_STATUS <<_ACEOF
29144 cat >>$CONFIG_STATUS <<\_ACEOF
29146 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29147 s&@configure_input@&$configure_input&;t t
29148 s&@top_builddir@&$ac_top_builddir_sub&;t t
29149 s&@srcdir@&$ac_srcdir&;t t
29150 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29151 s&@top_srcdir@&$ac_top_srcdir&;t t
29152 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29153 s&@builddir@&$ac_builddir&;t t
29154 s&@abs_builddir@&$ac_abs_builddir&;t t
29155 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29156 s&@INSTALL@&$ac_INSTALL&;t t
29157 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29158 $ac_datarootdir_hack
29159 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
29161 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29162 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29163 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29164 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29165 which seems to be undefined. Please make sure it is defined." >&5
29166 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29167 which seems to be undefined. Please make sure it is defined." >&2;}
29171 -) cat "$tmp/out"; rm -f "$tmp/out";;
29172 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29177 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29178 echo "$as_me: executing $ac_file commands" >&6;}
29183 case $ac_file$ac_mode in
29184 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29185 # Strip MF so we end up with the name of the file.
29186 mf=`echo "$mf" | sed -e 's/:.*$//'`
29187 # Check whether this is an Automake generated Makefile or not.
29188 # We used to match only the files named `Makefile.in', but
29189 # some people rename them; so instead we look at the file content.
29190 # Grep'ing the first line is not enough: some people post-process
29191 # each Makefile.in and add a new line on top of each file to say so.
29192 # Grep'ing the whole file is not good either: AIX grep has a line
29193 # limit of 2048, but all sed's we know have understand at least 4000.
29194 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
29195 dirpart=`$as_dirname -- "$mf" ||
29196 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29197 X"$mf" : 'X\(//\)[^/]' \| \
29198 X"$mf" : 'X\(//\)$' \| \
29199 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29205 /^X\(\/\/\)[^/].*/{
29221 # Extract the definition of DEPDIR, am__include, and am__quote
29222 # from the Makefile without running `make'.
29223 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29224 test -z "$DEPDIR" && continue
29225 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29226 test -z "am__include" && continue
29227 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29228 # When using ansi2knr, U may be empty or an underscore; expand it
29229 U=`sed -n 's/^U = //p' < "$mf"`
29230 # Find all dependency output files, they are included files with
29231 # $(DEPDIR) in their names. We invoke sed twice because it is the
29232 # simplest approach to changing $(DEPDIR) to its actual value in the
29234 for file in `sed -n "
29235 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29236 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29237 # Make sure the directory exists.
29238 test -f "$dirpart/$file" && continue
29239 fdir=`$as_dirname -- "$file" ||
29240 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29241 X"$file" : 'X\(//\)[^/]' \| \
29242 X"$file" : 'X\(//\)$' \| \
29243 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29249 /^X\(\/\/\)[^/].*/{
29262 { as_dir=$dirpart/$fdir
29264 -*) as_dir=./$as_dir;;
29266 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29270 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29271 *) as_qdir=$as_dir;;
29273 as_dirs="'$as_qdir' $as_dirs"
29274 as_dir=`$as_dirname -- "$as_dir" ||
29275 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29276 X"$as_dir" : 'X\(//\)[^/]' \| \
29277 X"$as_dir" : 'X\(//\)$' \| \
29278 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29284 /^X\(\/\/\)[^/].*/{
29297 test -d "$as_dir" && break
29299 test -z "$as_dirs" || eval "mkdir $as_dirs"
29300 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29301 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29302 { (exit 1); exit 1; }; }; }
29303 # echo "creating $dirpart/$file"
29304 echo '# dummy' > "$dirpart/$file"
29309 chmod +x ./bin/*; \
29316 { (exit 0); exit 0; }
29318 chmod +x $CONFIG_STATUS
29319 ac_clean_files=$ac_clean_files_save
29322 # configure is writing to config.log, and then calls config.status.
29323 # config.status does its own redirection, appending to config.log.
29324 # Unfortunately, on DOS this fails, as config.log is still kept open
29325 # by configure, so config.status won't be able to write to it; its
29326 # output is simply discarded. So we exec the FD to /dev/null,
29327 # effectively closing config.log, so it can be properly (re)opened and
29328 # appended to by config.status. When coming back to configure, we
29329 # need to make the FD available again.
29330 if test "$no_create" != yes; then
29332 ac_config_status_args=
29333 test "$silent" = yes &&
29334 ac_config_status_args="$ac_config_status_args --quiet"
29336 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29338 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29339 # would make configure fail if this is the last instruction.
29340 $ac_cs_success || { (exit 1); exit 1; }