… | |
… | |
239 | |
239 | |
240 | # CDPATH. |
240 | # CDPATH. |
241 | $as_unset CDPATH |
241 | $as_unset CDPATH |
242 | |
242 | |
243 | |
243 | |
|
|
244 | |
|
|
245 | # Check that we are running under the correct shell. |
|
|
246 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
247 | |
|
|
248 | case X$ECHO in |
|
|
249 | X*--fallback-echo) |
|
|
250 | # Remove one level of quotation (which was required for Make). |
|
|
251 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
|
|
252 | ;; |
|
|
253 | esac |
|
|
254 | |
|
|
255 | echo=${ECHO-echo} |
|
|
256 | if test "X$1" = X--no-reexec; then |
|
|
257 | # Discard the --no-reexec flag, and continue. |
|
|
258 | shift |
|
|
259 | elif test "X$1" = X--fallback-echo; then |
|
|
260 | # Avoid inline document here, it may be left over |
|
|
261 | : |
|
|
262 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
|
|
263 | # Yippee, $echo works! |
|
|
264 | : |
|
|
265 | else |
|
|
266 | # Restart under the correct shell. |
|
|
267 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
|
|
268 | fi |
|
|
269 | |
|
|
270 | if test "X$1" = X--fallback-echo; then |
|
|
271 | # used as fallback echo |
|
|
272 | shift |
|
|
273 | cat <<EOF |
|
|
274 | $* |
|
|
275 | EOF |
|
|
276 | exit 0 |
|
|
277 | fi |
|
|
278 | |
|
|
279 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
280 | # if CDPATH is set. |
|
|
281 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
|
282 | |
|
|
283 | if test -z "$ECHO"; then |
|
|
284 | if test "X${echo_test_string+set}" != Xset; then |
|
|
285 | # find a string as large as possible, as long as the shell can cope with it |
|
|
286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
|
|
287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
|
|
288 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
|
|
289 | echo_test_string=`eval $cmd` && |
|
|
290 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
|
|
291 | then |
|
|
292 | break |
|
|
293 | fi |
|
|
294 | done |
|
|
295 | fi |
|
|
296 | |
|
|
297 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
298 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
|
299 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
300 | : |
|
|
301 | else |
|
|
302 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
|
|
303 | # backslashes. This makes it impossible to quote backslashes using |
|
|
304 | # echo "$something" | sed 's/\\/\\\\/g' |
|
|
305 | # |
|
|
306 | # So, first we look for a working echo in the user's PATH. |
|
|
307 | |
|
|
308 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
309 | for dir in $PATH /usr/ucb; do |
|
|
310 | IFS="$lt_save_ifs" |
|
|
311 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
|
|
312 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
313 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
|
|
314 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
315 | echo="$dir/echo" |
|
|
316 | break |
|
|
317 | fi |
|
|
318 | done |
|
|
319 | IFS="$lt_save_ifs" |
|
|
320 | |
|
|
321 | if test "X$echo" = Xecho; then |
|
|
322 | # We didn't find a better echo, so look for alternatives. |
|
|
323 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
|
|
324 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
|
|
325 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
326 | # This shell has a builtin print -r that does the trick. |
|
|
327 | echo='print -r' |
|
|
328 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
|
|
329 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
|
|
330 | # If we have ksh, try running configure again with it. |
|
|
331 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
332 | export ORIGINAL_CONFIG_SHELL |
|
|
333 | CONFIG_SHELL=/bin/ksh |
|
|
334 | export CONFIG_SHELL |
|
|
335 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
|
|
336 | else |
|
|
337 | # Try using printf. |
|
|
338 | echo='printf %s\n' |
|
|
339 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
340 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
|
341 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
342 | # Cool, printf works |
|
|
343 | : |
|
|
344 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
|
345 | test "X$echo_testing_string" = 'X\t' && |
|
|
346 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
|
347 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
348 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
|
|
349 | export CONFIG_SHELL |
|
|
350 | SHELL="$CONFIG_SHELL" |
|
|
351 | export SHELL |
|
|
352 | echo="$CONFIG_SHELL $0 --fallback-echo" |
|
|
353 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
|
354 | test "X$echo_testing_string" = 'X\t' && |
|
|
355 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
|
356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
357 | echo="$CONFIG_SHELL $0 --fallback-echo" |
|
|
358 | else |
|
|
359 | # maybe with a smaller string... |
|
|
360 | prev=: |
|
|
361 | |
|
|
362 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
|
|
363 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
|
|
364 | then |
|
|
365 | break |
|
|
366 | fi |
|
|
367 | prev="$cmd" |
|
|
368 | done |
|
|
369 | |
|
|
370 | if test "$prev" != 'sed 50q "$0"'; then |
|
|
371 | echo_test_string=`eval $prev` |
|
|
372 | export echo_test_string |
|
|
373 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
|
|
374 | else |
|
|
375 | # Oops. We lost completely, so just stick with echo. |
|
|
376 | echo=echo |
|
|
377 | fi |
|
|
378 | fi |
|
|
379 | fi |
|
|
380 | fi |
|
|
381 | fi |
|
|
382 | fi |
|
|
383 | |
|
|
384 | # Copy echo and quote the copy suitably for passing to libtool from |
|
|
385 | # the Makefile, instead of quoting the original, which is used later. |
|
|
386 | ECHO=$echo |
|
|
387 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
|
|
388 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
|
|
389 | fi |
|
|
390 | |
|
|
391 | |
|
|
392 | |
|
|
393 | |
|
|
394 | tagnames=${tagnames+${tagnames},}CXX |
|
|
395 | |
|
|
396 | tagnames=${tagnames+${tagnames},}F77 |
|
|
397 | |
244 | # Name of the host. |
398 | # Name of the host. |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
399 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
246 | # so uname gets run too. |
400 | # so uname gets run too. |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
401 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
248 | |
402 | |
… | |
… | |
269 | PACKAGE_TARNAME= |
423 | PACKAGE_TARNAME= |
270 | PACKAGE_VERSION= |
424 | PACKAGE_VERSION= |
271 | PACKAGE_STRING= |
425 | PACKAGE_STRING= |
272 | PACKAGE_BUGREPORT= |
426 | PACKAGE_BUGREPORT= |
273 | |
427 | |
274 | ac_unique_file="src/logging.C" |
|
|
275 | # Factoring default headers for most tests. |
428 | # Factoring default headers for most tests. |
276 | ac_includes_default="\ |
429 | ac_includes_default="\ |
277 | #include <stdio.h> |
430 | #include <stdio.h> |
278 | #if HAVE_SYS_TYPES_H |
431 | #if HAVE_SYS_TYPES_H |
279 | # include <sys/types.h> |
432 | # include <sys/types.h> |
… | |
… | |
307 | #endif |
460 | #endif |
308 | #if HAVE_UNISTD_H |
461 | #if HAVE_UNISTD_H |
309 | # include <unistd.h> |
462 | # include <unistd.h> |
310 | #endif" |
463 | #endif" |
311 | |
464 | |
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RM CXXCPP EGREP LIBOBJS LTLIBOBJS' |
465 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS ac_ct_CC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS' |
313 | ac_subst_files='' |
466 | ac_subst_files='' |
314 | |
467 | |
315 | # Initialize some variables set by options. |
468 | # Initialize some variables set by options. |
316 | ac_init_help= |
469 | ac_init_help= |
317 | ac_init_version=false |
470 | ac_init_version=false |
… | |
… | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
917 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
918 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
919 | ac_env_CPPFLAGS_value=$CPPFLAGS |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
920 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
921 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
|
|
922 | ac_env_CC_set=${CC+set} |
|
|
923 | ac_env_CC_value=$CC |
|
|
924 | ac_cv_env_CC_set=${CC+set} |
|
|
925 | ac_cv_env_CC_value=$CC |
|
|
926 | ac_env_CFLAGS_set=${CFLAGS+set} |
|
|
927 | ac_env_CFLAGS_value=$CFLAGS |
|
|
928 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
|
|
929 | ac_cv_env_CFLAGS_value=$CFLAGS |
|
|
930 | ac_env_CPP_set=${CPP+set} |
|
|
931 | ac_env_CPP_value=$CPP |
|
|
932 | ac_cv_env_CPP_set=${CPP+set} |
|
|
933 | ac_cv_env_CPP_value=$CPP |
769 | ac_env_CXXCPP_set=${CXXCPP+set} |
934 | ac_env_CXXCPP_set=${CXXCPP+set} |
770 | ac_env_CXXCPP_value=$CXXCPP |
935 | ac_env_CXXCPP_value=$CXXCPP |
771 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
936 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
772 | ac_cv_env_CXXCPP_value=$CXXCPP |
937 | ac_cv_env_CXXCPP_value=$CXXCPP |
|
|
938 | ac_env_F77_set=${F77+set} |
|
|
939 | ac_env_F77_value=$F77 |
|
|
940 | ac_cv_env_F77_set=${F77+set} |
|
|
941 | ac_cv_env_F77_value=$F77 |
|
|
942 | ac_env_FFLAGS_set=${FFLAGS+set} |
|
|
943 | ac_env_FFLAGS_value=$FFLAGS |
|
|
944 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
|
|
945 | ac_cv_env_FFLAGS_value=$FFLAGS |
773 | |
946 | |
774 | # |
947 | # |
775 | # Report the --help message. |
948 | # Report the --help message. |
776 | # |
949 | # |
777 | if test "$ac_init_help" = "long"; then |
950 | if test "$ac_init_help" = "long"; then |
… | |
… | |
839 | |
1012 | |
840 | if test -n "$ac_init_help"; then |
1013 | if test -n "$ac_init_help"; then |
841 | |
1014 | |
842 | cat <<\_ACEOF |
1015 | cat <<\_ACEOF |
843 | |
1016 | |
|
|
1017 | Optional Features: |
|
|
1018 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
|
1019 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
|
1020 | --enable-shared[=PKGS] |
|
|
1021 | build shared libraries [default=yes] |
|
|
1022 | --enable-static[=PKGS] |
|
|
1023 | build static libraries [default=yes] |
|
|
1024 | --enable-fast-install[=PKGS] |
|
|
1025 | optimize for fast installation [default=yes] |
|
|
1026 | --disable-libtool-lock avoid locking (might break parallel builds) |
|
|
1027 | --enable-utmp enable utmp (utmpx) support |
|
|
1028 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
|
|
1029 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
|
|
1030 | |
|
|
1031 | Optional Packages: |
|
|
1032 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
|
1033 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
|
1034 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
|
|
1035 | --with-pic try to use only PIC/non-PIC objects [default=use |
|
|
1036 | both] |
|
|
1037 | --with-tags[=TAGS] |
|
|
1038 | include additional configurations [automatic] |
|
|
1039 | |
844 | Some influential environment variables: |
1040 | Some influential environment variables: |
845 | CXX C++ compiler command |
1041 | CXX C++ compiler command |
846 | CXXFLAGS C++ compiler flags |
1042 | CXXFLAGS C++ compiler flags |
847 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1043 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
848 | nonstandard directory <lib dir> |
1044 | nonstandard directory <lib dir> |
849 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1045 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
850 | headers in a nonstandard directory <include dir> |
1046 | headers in a nonstandard directory <include dir> |
|
|
1047 | CC C compiler command |
|
|
1048 | CFLAGS C compiler flags |
|
|
1049 | CPP C preprocessor |
851 | CXXCPP C++ preprocessor |
1050 | CXXCPP C++ preprocessor |
|
|
1051 | F77 Fortran 77 compiler command |
|
|
1052 | FFLAGS Fortran 77 compiler flags |
852 | |
1053 | |
853 | Use these variables to override the choices made by `configure' or to help |
1054 | Use these variables to override the choices made by `configure' or to help |
854 | it to find libraries and programs with nonstandard names/locations. |
1055 | it to find libraries and programs with nonstandard names/locations. |
855 | |
1056 | |
856 | _ACEOF |
1057 | _ACEOF |
… | |
… | |
1286 | |
1487 | |
1287 | |
1488 | |
1288 | |
1489 | |
1289 | |
1490 | |
1290 | |
1491 | |
1291 | |
|
|
1292 | |
|
|
1293 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
1492 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
1294 | |
1493 | |
1295 | |
1494 | |
1296 | ac_aux_dir= |
1495 | ac_aux_dir= |
1297 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1496 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
… | |
… | |
2002 | |
2201 | |
2003 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2202 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2004 | |
2203 | |
2005 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2204 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2006 | |
2205 | |
|
|
2206 | # Check whether --enable-shared or --disable-shared was given. |
|
|
2207 | if test "${enable_shared+set}" = set; then |
|
|
2208 | enableval="$enable_shared" |
|
|
2209 | p=${PACKAGE-default} |
|
|
2210 | case $enableval in |
|
|
2211 | yes) enable_shared=yes ;; |
|
|
2212 | no) enable_shared=no ;; |
|
|
2213 | *) |
|
|
2214 | enable_shared=no |
|
|
2215 | # Look at the argument we got. We use all the common list separators. |
|
|
2216 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
2217 | for pkg in $enableval; do |
|
|
2218 | IFS="$lt_save_ifs" |
|
|
2219 | if test "X$pkg" = "X$p"; then |
|
|
2220 | enable_shared=yes |
|
|
2221 | fi |
|
|
2222 | done |
|
|
2223 | IFS="$lt_save_ifs" |
|
|
2224 | ;; |
|
|
2225 | esac |
|
|
2226 | else |
|
|
2227 | enable_shared=yes |
|
|
2228 | fi; |
2007 | |
2229 | |
|
|
2230 | # Check whether --enable-static or --disable-static was given. |
|
|
2231 | if test "${enable_static+set}" = set; then |
|
|
2232 | enableval="$enable_static" |
|
|
2233 | p=${PACKAGE-default} |
|
|
2234 | case $enableval in |
|
|
2235 | yes) enable_static=yes ;; |
|
|
2236 | no) enable_static=no ;; |
|
|
2237 | *) |
|
|
2238 | enable_static=no |
|
|
2239 | # Look at the argument we got. We use all the common list separators. |
|
|
2240 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
2241 | for pkg in $enableval; do |
|
|
2242 | IFS="$lt_save_ifs" |
|
|
2243 | if test "X$pkg" = "X$p"; then |
|
|
2244 | enable_static=yes |
|
|
2245 | fi |
|
|
2246 | done |
|
|
2247 | IFS="$lt_save_ifs" |
|
|
2248 | ;; |
|
|
2249 | esac |
|
|
2250 | else |
|
|
2251 | enable_static=yes |
|
|
2252 | fi; |
|
|
2253 | |
|
|
2254 | # Check whether --enable-fast-install or --disable-fast-install was given. |
|
|
2255 | if test "${enable_fast_install+set}" = set; then |
|
|
2256 | enableval="$enable_fast_install" |
|
|
2257 | p=${PACKAGE-default} |
|
|
2258 | case $enableval in |
|
|
2259 | yes) enable_fast_install=yes ;; |
|
|
2260 | no) enable_fast_install=no ;; |
|
|
2261 | *) |
|
|
2262 | enable_fast_install=no |
|
|
2263 | # Look at the argument we got. We use all the common list separators. |
|
|
2264 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
2265 | for pkg in $enableval; do |
|
|
2266 | IFS="$lt_save_ifs" |
|
|
2267 | if test "X$pkg" = "X$p"; then |
|
|
2268 | enable_fast_install=yes |
|
|
2269 | fi |
|
|
2270 | done |
|
|
2271 | IFS="$lt_save_ifs" |
|
|
2272 | ;; |
|
|
2273 | esac |
|
|
2274 | else |
|
|
2275 | enable_fast_install=yes |
|
|
2276 | fi; |
|
|
2277 | |
2008 | ac_ext=cc |
2278 | ac_ext=c |
2009 | ac_cpp='$CXXCPP $CPPFLAGS' |
2279 | ac_cpp='$CPP $CPPFLAGS' |
2010 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2280 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2011 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2281 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2012 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2282 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2013 | |
2283 | if test -n "$ac_tool_prefix"; then |
2014 | |
|
|
2015 | # Extract the first word of "rm", so it can be a program name with args. |
2284 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2016 | set dummy rm; ac_word=$2 |
2285 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2017 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2286 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2019 | if test "${ac_cv_path_RM+set}" = set; then |
2288 | if test "${ac_cv_prog_CC+set}" = set; then |
2020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2021 | else |
2290 | else |
2022 | case $RM in |
2291 | if test -n "$CC"; then |
2023 | [\\/]* | ?:[\\/]*) |
|
|
2024 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
2292 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2025 | ;; |
2293 | else |
2026 | *) |
|
|
2027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2028 | for as_dir in $PATH |
2295 | for as_dir in $PATH |
2029 | do |
2296 | do |
2030 | IFS=$as_save_IFS |
2297 | IFS=$as_save_IFS |
2031 | test -z "$as_dir" && as_dir=. |
2298 | test -z "$as_dir" && as_dir=. |
2032 | for ac_exec_ext in '' $ac_executable_extensions; do |
2299 | for ac_exec_ext in '' $ac_executable_extensions; do |
2033 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2300 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2034 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
2301 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2035 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2302 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2036 | break 2 |
2303 | break 2 |
2037 | fi |
2304 | fi |
2038 | done |
2305 | done |
2039 | done |
2306 | done |
2040 | |
2307 | |
|
|
2308 | fi |
|
|
2309 | fi |
|
|
2310 | CC=$ac_cv_prog_CC |
|
|
2311 | if test -n "$CC"; then |
|
|
2312 | echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
2313 | echo "${ECHO_T}$CC" >&6 |
|
|
2314 | else |
|
|
2315 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2316 | echo "${ECHO_T}no" >&6 |
|
|
2317 | fi |
|
|
2318 | |
|
|
2319 | fi |
|
|
2320 | if test -z "$ac_cv_prog_CC"; then |
|
|
2321 | ac_ct_CC=$CC |
|
|
2322 | # Extract the first word of "gcc", so it can be a program name with args. |
|
|
2323 | set dummy gcc; ac_word=$2 |
|
|
2324 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2326 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
|
2327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2328 | else |
|
|
2329 | if test -n "$ac_ct_CC"; then |
|
|
2330 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
2331 | else |
|
|
2332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2333 | for as_dir in $PATH |
|
|
2334 | do |
|
|
2335 | IFS=$as_save_IFS |
|
|
2336 | test -z "$as_dir" && as_dir=. |
|
|
2337 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2338 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2339 | ac_cv_prog_ac_ct_CC="gcc" |
|
|
2340 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2341 | break 2 |
|
|
2342 | fi |
|
|
2343 | done |
|
|
2344 | done |
|
|
2345 | |
|
|
2346 | fi |
|
|
2347 | fi |
|
|
2348 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
2349 | if test -n "$ac_ct_CC"; then |
|
|
2350 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
2351 | echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
2352 | else |
|
|
2353 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2354 | echo "${ECHO_T}no" >&6 |
|
|
2355 | fi |
|
|
2356 | |
|
|
2357 | CC=$ac_ct_CC |
|
|
2358 | else |
|
|
2359 | CC="$ac_cv_prog_CC" |
|
|
2360 | fi |
|
|
2361 | |
|
|
2362 | if test -z "$CC"; then |
|
|
2363 | if test -n "$ac_tool_prefix"; then |
|
|
2364 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
|
2365 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
|
2366 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2368 | if test "${ac_cv_prog_CC+set}" = set; then |
|
|
2369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2370 | else |
|
|
2371 | if test -n "$CC"; then |
|
|
2372 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
2373 | else |
|
|
2374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2375 | for as_dir in $PATH |
|
|
2376 | do |
|
|
2377 | IFS=$as_save_IFS |
|
|
2378 | test -z "$as_dir" && as_dir=. |
|
|
2379 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2380 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2381 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
|
2382 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2383 | break 2 |
|
|
2384 | fi |
|
|
2385 | done |
|
|
2386 | done |
|
|
2387 | |
|
|
2388 | fi |
|
|
2389 | fi |
|
|
2390 | CC=$ac_cv_prog_CC |
|
|
2391 | if test -n "$CC"; then |
|
|
2392 | echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
2393 | echo "${ECHO_T}$CC" >&6 |
|
|
2394 | else |
|
|
2395 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2396 | echo "${ECHO_T}no" >&6 |
|
|
2397 | fi |
|
|
2398 | |
|
|
2399 | fi |
|
|
2400 | if test -z "$ac_cv_prog_CC"; then |
|
|
2401 | ac_ct_CC=$CC |
|
|
2402 | # Extract the first word of "cc", so it can be a program name with args. |
|
|
2403 | set dummy cc; ac_word=$2 |
|
|
2404 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2405 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2406 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
|
2407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2408 | else |
|
|
2409 | if test -n "$ac_ct_CC"; then |
|
|
2410 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
2411 | else |
|
|
2412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2413 | for as_dir in $PATH |
|
|
2414 | do |
|
|
2415 | IFS=$as_save_IFS |
|
|
2416 | test -z "$as_dir" && as_dir=. |
|
|
2417 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2418 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2419 | ac_cv_prog_ac_ct_CC="cc" |
|
|
2420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2421 | break 2 |
|
|
2422 | fi |
|
|
2423 | done |
|
|
2424 | done |
|
|
2425 | |
|
|
2426 | fi |
|
|
2427 | fi |
|
|
2428 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
2429 | if test -n "$ac_ct_CC"; then |
|
|
2430 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
2431 | echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
2432 | else |
|
|
2433 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2434 | echo "${ECHO_T}no" >&6 |
|
|
2435 | fi |
|
|
2436 | |
|
|
2437 | CC=$ac_ct_CC |
|
|
2438 | else |
|
|
2439 | CC="$ac_cv_prog_CC" |
|
|
2440 | fi |
|
|
2441 | |
|
|
2442 | fi |
|
|
2443 | if test -z "$CC"; then |
|
|
2444 | # Extract the first word of "cc", so it can be a program name with args. |
|
|
2445 | set dummy cc; ac_word=$2 |
|
|
2446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2448 | if test "${ac_cv_prog_CC+set}" = set; then |
|
|
2449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2450 | else |
|
|
2451 | if test -n "$CC"; then |
|
|
2452 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
2453 | else |
|
|
2454 | ac_prog_rejected=no |
|
|
2455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2456 | for as_dir in $PATH |
|
|
2457 | do |
|
|
2458 | IFS=$as_save_IFS |
|
|
2459 | test -z "$as_dir" && as_dir=. |
|
|
2460 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2461 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2462 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
|
2463 | ac_prog_rejected=yes |
|
|
2464 | continue |
|
|
2465 | fi |
|
|
2466 | ac_cv_prog_CC="cc" |
|
|
2467 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2468 | break 2 |
|
|
2469 | fi |
|
|
2470 | done |
|
|
2471 | done |
|
|
2472 | |
|
|
2473 | if test $ac_prog_rejected = yes; then |
|
|
2474 | # We found a bogon in the path, so make sure we never use it. |
|
|
2475 | set dummy $ac_cv_prog_CC |
|
|
2476 | shift |
|
|
2477 | if test $# != 0; then |
|
|
2478 | # We chose a different compiler from the bogus one. |
|
|
2479 | # However, it has the same basename, so the bogon will be chosen |
|
|
2480 | # first if we set CC to just the basename; use the full file name. |
|
|
2481 | shift |
|
|
2482 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
|
2483 | fi |
|
|
2484 | fi |
|
|
2485 | fi |
|
|
2486 | fi |
|
|
2487 | CC=$ac_cv_prog_CC |
|
|
2488 | if test -n "$CC"; then |
|
|
2489 | echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
2490 | echo "${ECHO_T}$CC" >&6 |
|
|
2491 | else |
|
|
2492 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2493 | echo "${ECHO_T}no" >&6 |
|
|
2494 | fi |
|
|
2495 | |
|
|
2496 | fi |
|
|
2497 | if test -z "$CC"; then |
|
|
2498 | if test -n "$ac_tool_prefix"; then |
|
|
2499 | for ac_prog in cl |
|
|
2500 | do |
|
|
2501 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
|
2502 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
|
2503 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2505 | if test "${ac_cv_prog_CC+set}" = set; then |
|
|
2506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2507 | else |
|
|
2508 | if test -n "$CC"; then |
|
|
2509 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
2510 | else |
|
|
2511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2512 | for as_dir in $PATH |
|
|
2513 | do |
|
|
2514 | IFS=$as_save_IFS |
|
|
2515 | test -z "$as_dir" && as_dir=. |
|
|
2516 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2517 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2518 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
|
2519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2520 | break 2 |
|
|
2521 | fi |
|
|
2522 | done |
|
|
2523 | done |
|
|
2524 | |
|
|
2525 | fi |
|
|
2526 | fi |
|
|
2527 | CC=$ac_cv_prog_CC |
|
|
2528 | if test -n "$CC"; then |
|
|
2529 | echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
2530 | echo "${ECHO_T}$CC" >&6 |
|
|
2531 | else |
|
|
2532 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2533 | echo "${ECHO_T}no" >&6 |
|
|
2534 | fi |
|
|
2535 | |
|
|
2536 | test -n "$CC" && break |
|
|
2537 | done |
|
|
2538 | fi |
|
|
2539 | if test -z "$CC"; then |
|
|
2540 | ac_ct_CC=$CC |
|
|
2541 | for ac_prog in cl |
|
|
2542 | do |
|
|
2543 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
2544 | set dummy $ac_prog; ac_word=$2 |
|
|
2545 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2547 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
|
2548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2549 | else |
|
|
2550 | if test -n "$ac_ct_CC"; then |
|
|
2551 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
2552 | else |
|
|
2553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2554 | for as_dir in $PATH |
|
|
2555 | do |
|
|
2556 | IFS=$as_save_IFS |
|
|
2557 | test -z "$as_dir" && as_dir=. |
|
|
2558 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2560 | ac_cv_prog_ac_ct_CC="$ac_prog" |
|
|
2561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2562 | break 2 |
|
|
2563 | fi |
|
|
2564 | done |
|
|
2565 | done |
|
|
2566 | |
|
|
2567 | fi |
|
|
2568 | fi |
|
|
2569 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
2570 | if test -n "$ac_ct_CC"; then |
|
|
2571 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
2572 | echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
2573 | else |
|
|
2574 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2575 | echo "${ECHO_T}no" >&6 |
|
|
2576 | fi |
|
|
2577 | |
|
|
2578 | test -n "$ac_ct_CC" && break |
|
|
2579 | done |
|
|
2580 | |
|
|
2581 | CC=$ac_ct_CC |
|
|
2582 | fi |
|
|
2583 | |
|
|
2584 | fi |
|
|
2585 | |
|
|
2586 | |
|
|
2587 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
|
|
2588 | See \`config.log' for more details." >&5 |
|
|
2589 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
|
|
2590 | See \`config.log' for more details." >&2;} |
|
|
2591 | { (exit 1); exit 1; }; } |
|
|
2592 | |
|
|
2593 | # Provide some information about the compiler. |
|
|
2594 | echo "$as_me:$LINENO:" \ |
|
|
2595 | "checking for C compiler version" >&5 |
|
|
2596 | ac_compiler=`set X $ac_compile; echo $2` |
|
|
2597 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
|
2598 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
|
2599 | ac_status=$? |
|
|
2600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2601 | (exit $ac_status); } |
|
|
2602 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
|
2603 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
|
2604 | ac_status=$? |
|
|
2605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2606 | (exit $ac_status); } |
|
|
2607 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
|
2608 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
|
2609 | ac_status=$? |
|
|
2610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2611 | (exit $ac_status); } |
|
|
2612 | |
|
|
2613 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|
|
2614 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
|
|
2615 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
|
2616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2617 | else |
|
|
2618 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2619 | /* confdefs.h. */ |
|
|
2620 | _ACEOF |
|
|
2621 | cat confdefs.h >>conftest.$ac_ext |
|
|
2622 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2623 | /* end confdefs.h. */ |
|
|
2624 | |
|
|
2625 | int |
|
|
2626 | main () |
|
|
2627 | { |
|
|
2628 | #ifndef __GNUC__ |
|
|
2629 | choke me |
|
|
2630 | #endif |
|
|
2631 | |
|
|
2632 | ; |
|
|
2633 | return 0; |
|
|
2634 | } |
|
|
2635 | _ACEOF |
|
|
2636 | rm -f conftest.$ac_objext |
|
|
2637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2638 | (eval $ac_compile) 2>conftest.er1 |
|
|
2639 | ac_status=$? |
|
|
2640 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2641 | rm -f conftest.er1 |
|
|
2642 | cat conftest.err >&5 |
|
|
2643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2644 | (exit $ac_status); } && |
|
|
2645 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2647 | (eval $ac_try) 2>&5 |
|
|
2648 | ac_status=$? |
|
|
2649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2650 | (exit $ac_status); }; } && |
|
|
2651 | { ac_try='test -s conftest.$ac_objext' |
|
|
2652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2653 | (eval $ac_try) 2>&5 |
|
|
2654 | ac_status=$? |
|
|
2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2656 | (exit $ac_status); }; }; then |
|
|
2657 | ac_compiler_gnu=yes |
|
|
2658 | else |
|
|
2659 | echo "$as_me: failed program was:" >&5 |
|
|
2660 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2661 | |
|
|
2662 | ac_compiler_gnu=no |
|
|
2663 | fi |
|
|
2664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2665 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
|
2666 | |
|
|
2667 | fi |
|
|
2668 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
|
2669 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
|
|
2670 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
|
|
2671 | ac_test_CFLAGS=${CFLAGS+set} |
|
|
2672 | ac_save_CFLAGS=$CFLAGS |
|
|
2673 | CFLAGS="-g" |
|
|
2674 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|
|
2675 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
|
|
2676 | if test "${ac_cv_prog_cc_g+set}" = set; then |
|
|
2677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2678 | else |
|
|
2679 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2680 | /* confdefs.h. */ |
|
|
2681 | _ACEOF |
|
|
2682 | cat confdefs.h >>conftest.$ac_ext |
|
|
2683 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2684 | /* end confdefs.h. */ |
|
|
2685 | |
|
|
2686 | int |
|
|
2687 | main () |
|
|
2688 | { |
|
|
2689 | |
|
|
2690 | ; |
|
|
2691 | return 0; |
|
|
2692 | } |
|
|
2693 | _ACEOF |
|
|
2694 | rm -f conftest.$ac_objext |
|
|
2695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2696 | (eval $ac_compile) 2>conftest.er1 |
|
|
2697 | ac_status=$? |
|
|
2698 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2699 | rm -f conftest.er1 |
|
|
2700 | cat conftest.err >&5 |
|
|
2701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2702 | (exit $ac_status); } && |
|
|
2703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2705 | (eval $ac_try) 2>&5 |
|
|
2706 | ac_status=$? |
|
|
2707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2708 | (exit $ac_status); }; } && |
|
|
2709 | { ac_try='test -s conftest.$ac_objext' |
|
|
2710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2711 | (eval $ac_try) 2>&5 |
|
|
2712 | ac_status=$? |
|
|
2713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2714 | (exit $ac_status); }; }; then |
|
|
2715 | ac_cv_prog_cc_g=yes |
|
|
2716 | else |
|
|
2717 | echo "$as_me: failed program was:" >&5 |
|
|
2718 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2719 | |
|
|
2720 | ac_cv_prog_cc_g=no |
|
|
2721 | fi |
|
|
2722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2723 | fi |
|
|
2724 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
|
2725 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
|
|
2726 | if test "$ac_test_CFLAGS" = set; then |
|
|
2727 | CFLAGS=$ac_save_CFLAGS |
|
|
2728 | elif test $ac_cv_prog_cc_g = yes; then |
|
|
2729 | if test "$GCC" = yes; then |
|
|
2730 | CFLAGS="-g -O2" |
|
|
2731 | else |
|
|
2732 | CFLAGS="-g" |
|
|
2733 | fi |
|
|
2734 | else |
|
|
2735 | if test "$GCC" = yes; then |
|
|
2736 | CFLAGS="-O2" |
|
|
2737 | else |
|
|
2738 | CFLAGS= |
|
|
2739 | fi |
|
|
2740 | fi |
|
|
2741 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
|
|
2742 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
|
|
2743 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
|
|
2744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2745 | else |
|
|
2746 | ac_cv_prog_cc_stdc=no |
|
|
2747 | ac_save_CC=$CC |
|
|
2748 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2749 | /* confdefs.h. */ |
|
|
2750 | _ACEOF |
|
|
2751 | cat confdefs.h >>conftest.$ac_ext |
|
|
2752 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2753 | /* end confdefs.h. */ |
|
|
2754 | #include <stdarg.h> |
|
|
2755 | #include <stdio.h> |
|
|
2756 | #include <sys/types.h> |
|
|
2757 | #include <sys/stat.h> |
|
|
2758 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
|
2759 | struct buf { int x; }; |
|
|
2760 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
2761 | static char *e (p, i) |
|
|
2762 | char **p; |
|
|
2763 | int i; |
|
|
2764 | { |
|
|
2765 | return p[i]; |
|
|
2766 | } |
|
|
2767 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
2768 | { |
|
|
2769 | char *s; |
|
|
2770 | va_list v; |
|
|
2771 | va_start (v,p); |
|
|
2772 | s = g (p, va_arg (v,int)); |
|
|
2773 | va_end (v); |
|
|
2774 | return s; |
|
|
2775 | } |
|
|
2776 | |
|
|
2777 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
2778 | function prototypes and stuff, but not '\xHH' hex character constants. |
|
|
2779 | These don't provoke an error unfortunately, instead are silently treated |
|
|
2780 | as 'x'. The following induces an error, until -std1 is added to get |
|
|
2781 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
|
2782 | array size at least. It's necessary to write '\x00'==0 to get something |
|
|
2783 | that's true only with -std1. */ |
|
|
2784 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
|
2785 | |
|
|
2786 | int test (int i, double x); |
|
|
2787 | struct s1 {int (*f) (int a);}; |
|
|
2788 | struct s2 {int (*f) (double a);}; |
|
|
2789 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
|
2790 | int argc; |
|
|
2791 | char **argv; |
|
|
2792 | int |
|
|
2793 | main () |
|
|
2794 | { |
|
|
2795 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
|
2796 | ; |
|
|
2797 | return 0; |
|
|
2798 | } |
|
|
2799 | _ACEOF |
|
|
2800 | # Don't try gcc -ansi; that turns off useful extensions and |
|
|
2801 | # breaks some systems' header files. |
|
|
2802 | # AIX -qlanglvl=ansi |
|
|
2803 | # Ultrix and OSF/1 -std1 |
|
|
2804 | # HP-UX 10.20 and later -Ae |
|
|
2805 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
|
|
2806 | # SVR4 -Xc -D__EXTENSIONS__ |
|
|
2807 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
2808 | do |
|
|
2809 | CC="$ac_save_CC $ac_arg" |
|
|
2810 | rm -f conftest.$ac_objext |
|
|
2811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2812 | (eval $ac_compile) 2>conftest.er1 |
|
|
2813 | ac_status=$? |
|
|
2814 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2815 | rm -f conftest.er1 |
|
|
2816 | cat conftest.err >&5 |
|
|
2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2818 | (exit $ac_status); } && |
|
|
2819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2821 | (eval $ac_try) 2>&5 |
|
|
2822 | ac_status=$? |
|
|
2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2824 | (exit $ac_status); }; } && |
|
|
2825 | { ac_try='test -s conftest.$ac_objext' |
|
|
2826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2827 | (eval $ac_try) 2>&5 |
|
|
2828 | ac_status=$? |
|
|
2829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2830 | (exit $ac_status); }; }; then |
|
|
2831 | ac_cv_prog_cc_stdc=$ac_arg |
|
|
2832 | break |
|
|
2833 | else |
|
|
2834 | echo "$as_me: failed program was:" >&5 |
|
|
2835 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2836 | |
|
|
2837 | fi |
|
|
2838 | rm -f conftest.err conftest.$ac_objext |
|
|
2839 | done |
|
|
2840 | rm -f conftest.$ac_ext conftest.$ac_objext |
|
|
2841 | CC=$ac_save_CC |
|
|
2842 | |
|
|
2843 | fi |
|
|
2844 | |
|
|
2845 | case "x$ac_cv_prog_cc_stdc" in |
|
|
2846 | x|xno) |
|
|
2847 | echo "$as_me:$LINENO: result: none needed" >&5 |
|
|
2848 | echo "${ECHO_T}none needed" >&6 ;; |
|
|
2849 | *) |
|
|
2850 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
|
|
2851 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
|
|
2852 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
|
|
2853 | esac |
|
|
2854 | |
|
|
2855 | # Some people use a C++ compiler to compile C. Since we use `exit', |
|
|
2856 | # in C++ we need to declare it. In case someone uses the same compiler |
|
|
2857 | # for both compiling C and C++ we need to have the C++ compiler decide |
|
|
2858 | # the declaration of exit, since it's the most demanding environment. |
|
|
2859 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2860 | #ifndef __cplusplus |
|
|
2861 | choke me |
|
|
2862 | #endif |
|
|
2863 | _ACEOF |
|
|
2864 | rm -f conftest.$ac_objext |
|
|
2865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2866 | (eval $ac_compile) 2>conftest.er1 |
|
|
2867 | ac_status=$? |
|
|
2868 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2869 | rm -f conftest.er1 |
|
|
2870 | cat conftest.err >&5 |
|
|
2871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2872 | (exit $ac_status); } && |
|
|
2873 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2875 | (eval $ac_try) 2>&5 |
|
|
2876 | ac_status=$? |
|
|
2877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2878 | (exit $ac_status); }; } && |
|
|
2879 | { ac_try='test -s conftest.$ac_objext' |
|
|
2880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2881 | (eval $ac_try) 2>&5 |
|
|
2882 | ac_status=$? |
|
|
2883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2884 | (exit $ac_status); }; }; then |
|
|
2885 | for ac_declaration in \ |
|
|
2886 | '' \ |
|
|
2887 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|
|
2888 | 'extern "C" void std::exit (int); using std::exit;' \ |
|
|
2889 | 'extern "C" void exit (int) throw ();' \ |
|
|
2890 | 'extern "C" void exit (int);' \ |
|
|
2891 | 'void exit (int);' |
|
|
2892 | do |
|
|
2893 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2894 | /* confdefs.h. */ |
|
|
2895 | _ACEOF |
|
|
2896 | cat confdefs.h >>conftest.$ac_ext |
|
|
2897 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2898 | /* end confdefs.h. */ |
|
|
2899 | $ac_declaration |
|
|
2900 | #include <stdlib.h> |
|
|
2901 | int |
|
|
2902 | main () |
|
|
2903 | { |
|
|
2904 | exit (42); |
|
|
2905 | ; |
|
|
2906 | return 0; |
|
|
2907 | } |
|
|
2908 | _ACEOF |
|
|
2909 | rm -f conftest.$ac_objext |
|
|
2910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2911 | (eval $ac_compile) 2>conftest.er1 |
|
|
2912 | ac_status=$? |
|
|
2913 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2914 | rm -f conftest.er1 |
|
|
2915 | cat conftest.err >&5 |
|
|
2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2917 | (exit $ac_status); } && |
|
|
2918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2920 | (eval $ac_try) 2>&5 |
|
|
2921 | ac_status=$? |
|
|
2922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2923 | (exit $ac_status); }; } && |
|
|
2924 | { ac_try='test -s conftest.$ac_objext' |
|
|
2925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2926 | (eval $ac_try) 2>&5 |
|
|
2927 | ac_status=$? |
|
|
2928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2929 | (exit $ac_status); }; }; then |
|
|
2930 | : |
|
|
2931 | else |
|
|
2932 | echo "$as_me: failed program was:" >&5 |
|
|
2933 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2934 | |
|
|
2935 | continue |
|
|
2936 | fi |
|
|
2937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2938 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2939 | /* confdefs.h. */ |
|
|
2940 | _ACEOF |
|
|
2941 | cat confdefs.h >>conftest.$ac_ext |
|
|
2942 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2943 | /* end confdefs.h. */ |
|
|
2944 | $ac_declaration |
|
|
2945 | int |
|
|
2946 | main () |
|
|
2947 | { |
|
|
2948 | exit (42); |
|
|
2949 | ; |
|
|
2950 | return 0; |
|
|
2951 | } |
|
|
2952 | _ACEOF |
|
|
2953 | rm -f conftest.$ac_objext |
|
|
2954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2955 | (eval $ac_compile) 2>conftest.er1 |
|
|
2956 | ac_status=$? |
|
|
2957 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2958 | rm -f conftest.er1 |
|
|
2959 | cat conftest.err >&5 |
|
|
2960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2961 | (exit $ac_status); } && |
|
|
2962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2964 | (eval $ac_try) 2>&5 |
|
|
2965 | ac_status=$? |
|
|
2966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2967 | (exit $ac_status); }; } && |
|
|
2968 | { ac_try='test -s conftest.$ac_objext' |
|
|
2969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2970 | (eval $ac_try) 2>&5 |
|
|
2971 | ac_status=$? |
|
|
2972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2973 | (exit $ac_status); }; }; then |
|
|
2974 | break |
|
|
2975 | else |
|
|
2976 | echo "$as_me: failed program was:" >&5 |
|
|
2977 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2978 | |
|
|
2979 | fi |
|
|
2980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2981 | done |
|
|
2982 | rm -f conftest* |
|
|
2983 | if test -n "$ac_declaration"; then |
|
|
2984 | echo '#ifdef __cplusplus' >>confdefs.h |
|
|
2985 | echo $ac_declaration >>confdefs.h |
|
|
2986 | echo '#endif' >>confdefs.h |
|
|
2987 | fi |
|
|
2988 | |
|
|
2989 | else |
|
|
2990 | echo "$as_me: failed program was:" >&5 |
|
|
2991 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2992 | |
|
|
2993 | fi |
|
|
2994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2995 | ac_ext=c |
|
|
2996 | ac_cpp='$CPP $CPPFLAGS' |
|
|
2997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
2998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
2999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3000 | |
|
|
3001 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
|
|
3002 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
|
|
3003 | if test "${lt_cv_path_SED+set}" = set; then |
|
|
3004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3005 | else |
|
|
3006 | # Loop through the user's path and test for sed and gsed. |
|
|
3007 | # Then use that list of sed's as ones to test for truncation. |
|
|
3008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3009 | for as_dir in $PATH |
|
|
3010 | do |
|
|
3011 | IFS=$as_save_IFS |
|
|
3012 | test -z "$as_dir" && as_dir=. |
|
|
3013 | for lt_ac_prog in sed gsed; do |
|
|
3014 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3015 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
|
|
3016 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
|
|
3017 | fi |
|
|
3018 | done |
|
|
3019 | done |
|
|
3020 | done |
|
|
3021 | lt_ac_max=0 |
|
|
3022 | lt_ac_count=0 |
|
|
3023 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
|
|
3024 | # along with /bin/sed that truncates output. |
|
|
3025 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
|
|
3026 | test ! -f $lt_ac_sed && continue |
|
|
3027 | cat /dev/null > conftest.in |
|
|
3028 | lt_ac_count=0 |
|
|
3029 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
|
|
3030 | # Check for GNU sed and select it if it is found. |
|
|
3031 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
|
|
3032 | lt_cv_path_SED=$lt_ac_sed |
|
|
3033 | break |
|
|
3034 | fi |
|
|
3035 | while true; do |
|
|
3036 | cat conftest.in conftest.in >conftest.tmp |
|
|
3037 | mv conftest.tmp conftest.in |
|
|
3038 | cp conftest.in conftest.nl |
|
|
3039 | echo >>conftest.nl |
|
|
3040 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
|
|
3041 | cmp -s conftest.out conftest.nl || break |
|
|
3042 | # 10000 chars as input seems more than enough |
|
|
3043 | test $lt_ac_count -gt 10 && break |
|
|
3044 | lt_ac_count=`expr $lt_ac_count + 1` |
|
|
3045 | if test $lt_ac_count -gt $lt_ac_max; then |
|
|
3046 | lt_ac_max=$lt_ac_count |
|
|
3047 | lt_cv_path_SED=$lt_ac_sed |
|
|
3048 | fi |
|
|
3049 | done |
|
|
3050 | done |
|
|
3051 | |
|
|
3052 | fi |
|
|
3053 | |
|
|
3054 | SED=$lt_cv_path_SED |
|
|
3055 | echo "$as_me:$LINENO: result: $SED" >&5 |
|
|
3056 | echo "${ECHO_T}$SED" >&6 |
|
|
3057 | |
|
|
3058 | echo "$as_me:$LINENO: checking for egrep" >&5 |
|
|
3059 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|
|
3060 | if test "${ac_cv_prog_egrep+set}" = set; then |
|
|
3061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3062 | else |
|
|
3063 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
|
3064 | then ac_cv_prog_egrep='grep -E' |
|
|
3065 | else ac_cv_prog_egrep='egrep' |
|
|
3066 | fi |
|
|
3067 | fi |
|
|
3068 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
|
3069 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
|
3070 | EGREP=$ac_cv_prog_egrep |
|
|
3071 | |
|
|
3072 | |
|
|
3073 | |
|
|
3074 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
3075 | if test "${with_gnu_ld+set}" = set; then |
|
|
3076 | withval="$with_gnu_ld" |
|
|
3077 | test "$withval" = no || with_gnu_ld=yes |
|
|
3078 | else |
|
|
3079 | with_gnu_ld=no |
|
|
3080 | fi; |
|
|
3081 | ac_prog=ld |
|
|
3082 | if test "$GCC" = yes; then |
|
|
3083 | # Check if gcc -print-prog-name=ld gives a path. |
|
|
3084 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
|
|
3085 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
|
|
3086 | case $host in |
|
|
3087 | *-*-mingw*) |
|
|
3088 | # gcc leaves a trailing carriage return which upsets mingw |
|
|
3089 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
|
3090 | *) |
|
|
3091 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
|
3092 | esac |
|
|
3093 | case $ac_prog in |
|
|
3094 | # Accept absolute paths. |
|
|
3095 | [\\/]* | ?:[\\/]*) |
|
|
3096 | re_direlt='/[^/][^/]*/\.\./' |
|
|
3097 | # Canonicalize the pathname of ld |
|
|
3098 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
|
3099 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
3100 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
|
3101 | done |
|
|
3102 | test -z "$LD" && LD="$ac_prog" |
|
|
3103 | ;; |
|
|
3104 | "") |
|
|
3105 | # If it fails, then pretend we aren't using GCC. |
|
|
3106 | ac_prog=ld |
|
|
3107 | ;; |
|
|
3108 | *) |
|
|
3109 | # If it is relative, then search for the first ld in PATH. |
|
|
3110 | with_gnu_ld=unknown |
|
|
3111 | ;; |
|
|
3112 | esac |
|
|
3113 | elif test "$with_gnu_ld" = yes; then |
|
|
3114 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
|
3115 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
|
|
3116 | else |
|
|
3117 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
|
3118 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
|
3119 | fi |
|
|
3120 | if test "${lt_cv_path_LD+set}" = set; then |
|
|
3121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3122 | else |
|
|
3123 | if test -z "$LD"; then |
|
|
3124 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
3125 | for ac_dir in $PATH; do |
|
|
3126 | IFS="$lt_save_ifs" |
|
|
3127 | test -z "$ac_dir" && ac_dir=. |
|
|
3128 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
3129 | lt_cv_path_LD="$ac_dir/$ac_prog" |
|
|
3130 | # Check to see if the program is GNU ld. I'd rather use --version, |
|
|
3131 | # but apparently some variants of GNU ld only accept -v. |
|
|
3132 | # Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
3133 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
|
3134 | *GNU* | *'with BFD'*) |
|
|
3135 | test "$with_gnu_ld" != no && break |
|
|
3136 | ;; |
|
|
3137 | *) |
|
|
3138 | test "$with_gnu_ld" != yes && break |
|
|
3139 | ;; |
|
|
3140 | esac |
|
|
3141 | fi |
|
|
3142 | done |
|
|
3143 | IFS="$lt_save_ifs" |
|
|
3144 | else |
|
|
3145 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
3146 | fi |
|
|
3147 | fi |
|
|
3148 | |
|
|
3149 | LD="$lt_cv_path_LD" |
|
|
3150 | if test -n "$LD"; then |
|
|
3151 | echo "$as_me:$LINENO: result: $LD" >&5 |
|
|
3152 | echo "${ECHO_T}$LD" >&6 |
|
|
3153 | else |
|
|
3154 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3155 | echo "${ECHO_T}no" >&6 |
|
|
3156 | fi |
|
|
3157 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
|
3158 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
|
3159 | { (exit 1); exit 1; }; } |
|
|
3160 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
|
3161 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
|
3162 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
|
3163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3164 | else |
|
|
3165 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
|
|
3166 | case `$LD -v 2>&1 </dev/null` in |
|
|
3167 | *GNU* | *'with BFD'*) |
|
|
3168 | lt_cv_prog_gnu_ld=yes |
|
|
3169 | ;; |
|
|
3170 | *) |
|
|
3171 | lt_cv_prog_gnu_ld=no |
2041 | ;; |
3172 | ;; |
2042 | esac |
3173 | esac |
2043 | fi |
3174 | fi |
2044 | RM=$ac_cv_path_RM |
3175 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
|
3176 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
|
3177 | with_gnu_ld=$lt_cv_prog_gnu_ld |
2045 | |
3178 | |
|
|
3179 | |
|
|
3180 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
|
|
3181 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
|
|
3182 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
|
|
3183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3184 | else |
|
|
3185 | lt_cv_ld_reload_flag='-r' |
|
|
3186 | fi |
|
|
3187 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
|
|
3188 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
|
|
3189 | reload_flag=$lt_cv_ld_reload_flag |
|
|
3190 | case $reload_flag in |
|
|
3191 | "" | " "*) ;; |
|
|
3192 | *) reload_flag=" $reload_flag" ;; |
|
|
3193 | esac |
|
|
3194 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
3195 | case $host_os in |
|
|
3196 | darwin*) |
|
|
3197 | if test "$GCC" = yes; then |
|
|
3198 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
|
|
3199 | else |
|
|
3200 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
3201 | fi |
|
|
3202 | ;; |
|
|
3203 | esac |
|
|
3204 | |
|
|
3205 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
|
|
3206 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
|
|
3207 | if test "${lt_cv_path_NM+set}" = set; then |
|
|
3208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3209 | else |
2046 | if test -n "$RM"; then |
3210 | if test -n "$NM"; then |
|
|
3211 | # Let the user override the test. |
|
|
3212 | lt_cv_path_NM="$NM" |
|
|
3213 | else |
|
|
3214 | lt_nm_to_check="${ac_tool_prefix}nm" |
|
|
3215 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
|
|
3216 | lt_nm_to_check="$lt_nm_to_check nm" |
|
|
3217 | fi |
|
|
3218 | for lt_tmp_nm in $lt_nm_to_check; do |
|
|
3219 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
3220 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
|
|
3221 | IFS="$lt_save_ifs" |
|
|
3222 | test -z "$ac_dir" && ac_dir=. |
|
|
3223 | tmp_nm="$ac_dir/$lt_tmp_nm" |
|
|
3224 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
|
|
3225 | # Check to see if the nm accepts a BSD-compat flag. |
|
|
3226 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
|
3227 | # nm: unknown option "B" ignored |
|
|
3228 | # Tru64's nm complains that /dev/null is an invalid object file |
|
|
3229 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
|
|
3230 | */dev/null* | *'Invalid file or object type'*) |
|
|
3231 | lt_cv_path_NM="$tmp_nm -B" |
|
|
3232 | break |
|
|
3233 | ;; |
|
|
3234 | *) |
|
|
3235 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
|
|
3236 | */dev/null*) |
|
|
3237 | lt_cv_path_NM="$tmp_nm -p" |
|
|
3238 | break |
|
|
3239 | ;; |
|
|
3240 | *) |
|
|
3241 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
|
3242 | continue # so that we can try to find one that supports BSD flags |
|
|
3243 | ;; |
|
|
3244 | esac |
|
|
3245 | ;; |
|
|
3246 | esac |
|
|
3247 | fi |
|
|
3248 | done |
|
|
3249 | IFS="$lt_save_ifs" |
|
|
3250 | done |
|
|
3251 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
|
|
3252 | fi |
|
|
3253 | fi |
2047 | echo "$as_me:$LINENO: result: $RM" >&5 |
3254 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
2048 | echo "${ECHO_T}$RM" >&6 |
3255 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
2049 | else |
3256 | NM="$lt_cv_path_NM" |
|
|
3257 | |
|
|
3258 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
|
3259 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
|
|
3260 | LN_S=$as_ln_s |
|
|
3261 | if test "$LN_S" = "ln -s"; then |
2050 | echo "$as_me:$LINENO: result: no" >&5 |
3262 | echo "$as_me:$LINENO: result: yes" >&5 |
2051 | echo "${ECHO_T}no" >&6 |
3263 | echo "${ECHO_T}yes" >&6 |
|
|
3264 | else |
|
|
3265 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
|
3266 | echo "${ECHO_T}no, using $LN_S" >&6 |
|
|
3267 | fi |
|
|
3268 | |
|
|
3269 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
|
|
3270 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
|
|
3271 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
|
|
3272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3273 | else |
|
|
3274 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
|
3275 | lt_cv_file_magic_test_file= |
|
|
3276 | lt_cv_deplibs_check_method='unknown' |
|
|
3277 | # Need to set the preceding variable on all platforms that support |
|
|
3278 | # interlibrary dependencies. |
|
|
3279 | # 'none' -- dependencies not supported. |
|
|
3280 | # `unknown' -- same as none, but documents that we really don't know. |
|
|
3281 | # 'pass_all' -- all dependencies passed with no checks. |
|
|
3282 | # 'test_compile' -- check by making test program. |
|
|
3283 | # 'file_magic [[regex]]' -- check by looking for files in library path |
|
|
3284 | # which responds to the $file_magic_cmd with a given extended regex. |
|
|
3285 | # If you have `file' or equivalent on your system and you're not sure |
|
|
3286 | # whether `pass_all' will *always* work, you probably want this one. |
|
|
3287 | |
|
|
3288 | case $host_os in |
|
|
3289 | aix4* | aix5*) |
|
|
3290 | lt_cv_deplibs_check_method=pass_all |
|
|
3291 | ;; |
|
|
3292 | |
|
|
3293 | beos*) |
|
|
3294 | lt_cv_deplibs_check_method=pass_all |
|
|
3295 | ;; |
|
|
3296 | |
|
|
3297 | bsdi[45]*) |
|
|
3298 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
|
3299 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
3300 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
3301 | ;; |
|
|
3302 | |
|
|
3303 | cygwin*) |
|
|
3304 | # func_win32_libid is a shell function defined in ltmain.sh |
|
|
3305 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
|
3306 | lt_cv_file_magic_cmd='func_win32_libid' |
|
|
3307 | ;; |
|
|
3308 | |
|
|
3309 | mingw* | pw32*) |
|
|
3310 | # Base MSYS/MinGW do not provide the 'file' command needed by |
|
|
3311 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
|
|
3312 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
|
3313 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
|
3314 | ;; |
|
|
3315 | |
|
|
3316 | darwin* | rhapsody*) |
|
|
3317 | lt_cv_deplibs_check_method=pass_all |
|
|
3318 | ;; |
|
|
3319 | |
|
|
3320 | freebsd* | kfreebsd*-gnu | dragonfly*) |
|
|
3321 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
3322 | case $host_cpu in |
|
|
3323 | i*86 ) |
|
|
3324 | # Not sure whether the presence of OpenBSD here was a mistake. |
|
|
3325 | # Let's accept both of them until this is cleared up. |
|
|
3326 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
|
|
3327 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
3328 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
|
3329 | ;; |
|
|
3330 | esac |
|
|
3331 | else |
|
|
3332 | lt_cv_deplibs_check_method=pass_all |
|
|
3333 | fi |
|
|
3334 | ;; |
|
|
3335 | |
|
|
3336 | gnu*) |
|
|
3337 | lt_cv_deplibs_check_method=pass_all |
|
|
3338 | ;; |
|
|
3339 | |
|
|
3340 | hpux10.20* | hpux11*) |
|
|
3341 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
3342 | case $host_cpu in |
|
|
3343 | ia64*) |
|
|
3344 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
|
|
3345 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
|
|
3346 | ;; |
|
|
3347 | hppa*64*) |
|
|
3348 | 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]' |
|
|
3349 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
|
|
3350 | ;; |
|
|
3351 | *) |
|
|
3352 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
|
3353 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
|
3354 | ;; |
|
|
3355 | esac |
|
|
3356 | ;; |
|
|
3357 | |
|
|
3358 | interix3*) |
|
|
3359 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
|
|
3360 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
|
|
3361 | ;; |
|
|
3362 | |
|
|
3363 | irix5* | irix6* | nonstopux*) |
|
|
3364 | case $LD in |
|
|
3365 | *-32|*"-32 ") libmagic=32-bit;; |
|
|
3366 | *-n32|*"-n32 ") libmagic=N32;; |
|
|
3367 | *-64|*"-64 ") libmagic=64-bit;; |
|
|
3368 | *) libmagic=never-match;; |
|
|
3369 | esac |
|
|
3370 | lt_cv_deplibs_check_method=pass_all |
|
|
3371 | ;; |
|
|
3372 | |
|
|
3373 | # This must be Linux ELF. |
|
|
3374 | linux*) |
|
|
3375 | lt_cv_deplibs_check_method=pass_all |
|
|
3376 | ;; |
|
|
3377 | |
|
|
3378 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
3379 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
3380 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
|
3381 | else |
|
|
3382 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
|
|
3383 | fi |
|
|
3384 | ;; |
|
|
3385 | |
|
|
3386 | newos6*) |
|
|
3387 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
|
3388 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
3389 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
|
3390 | ;; |
|
|
3391 | |
|
|
3392 | nto-qnx*) |
|
|
3393 | lt_cv_deplibs_check_method=unknown |
|
|
3394 | ;; |
|
|
3395 | |
|
|
3396 | openbsd*) |
|
|
3397 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
3398 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
|
|
3399 | else |
|
|
3400 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
|
3401 | fi |
|
|
3402 | ;; |
|
|
3403 | |
|
|
3404 | osf3* | osf4* | osf5*) |
|
|
3405 | lt_cv_deplibs_check_method=pass_all |
|
|
3406 | ;; |
|
|
3407 | |
|
|
3408 | solaris*) |
|
|
3409 | lt_cv_deplibs_check_method=pass_all |
|
|
3410 | ;; |
|
|
3411 | |
|
|
3412 | sysv4 | sysv4.3*) |
|
|
3413 | case $host_vendor in |
|
|
3414 | motorola) |
|
|
3415 | 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]' |
|
|
3416 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
3417 | ;; |
|
|
3418 | ncr) |
|
|
3419 | lt_cv_deplibs_check_method=pass_all |
|
|
3420 | ;; |
|
|
3421 | sequent) |
|
|
3422 | lt_cv_file_magic_cmd='/bin/file' |
|
|
3423 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
|
3424 | ;; |
|
|
3425 | sni) |
|
|
3426 | lt_cv_file_magic_cmd='/bin/file' |
|
|
3427 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
|
3428 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
3429 | ;; |
|
|
3430 | siemens) |
|
|
3431 | lt_cv_deplibs_check_method=pass_all |
|
|
3432 | ;; |
|
|
3433 | pc) |
|
|
3434 | lt_cv_deplibs_check_method=pass_all |
|
|
3435 | ;; |
|
|
3436 | esac |
|
|
3437 | ;; |
|
|
3438 | |
|
|
3439 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
3440 | lt_cv_deplibs_check_method=pass_all |
|
|
3441 | ;; |
|
|
3442 | esac |
|
|
3443 | |
|
|
3444 | fi |
|
|
3445 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
|
|
3446 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
|
|
3447 | file_magic_cmd=$lt_cv_file_magic_cmd |
|
|
3448 | deplibs_check_method=$lt_cv_deplibs_check_method |
|
|
3449 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
|
3450 | |
|
|
3451 | |
|
|
3452 | |
|
|
3453 | |
|
|
3454 | # If no C compiler was specified, use CC. |
|
|
3455 | LTCC=${LTCC-"$CC"} |
|
|
3456 | |
|
|
3457 | # If no C compiler flags were specified, use CFLAGS. |
|
|
3458 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
3459 | |
|
|
3460 | # Allow CC to be a program name with arguments. |
|
|
3461 | compiler=$CC |
|
|
3462 | |
|
|
3463 | |
|
|
3464 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
3465 | if test "${enable_libtool_lock+set}" = set; then |
|
|
3466 | enableval="$enable_libtool_lock" |
|
|
3467 | |
2052 | fi |
3468 | fi; |
|
|
3469 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
2053 | |
3470 | |
|
|
3471 | # Some flags need to be propagated to the compiler or linker for good |
|
|
3472 | # libtool support. |
|
|
3473 | case $host in |
|
|
3474 | ia64-*-hpux*) |
|
|
3475 | # Find out which ABI we are using. |
|
|
3476 | echo 'int i;' > conftest.$ac_ext |
|
|
3477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3478 | (eval $ac_compile) 2>&5 |
|
|
3479 | ac_status=$? |
|
|
3480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3481 | (exit $ac_status); }; then |
|
|
3482 | case `/usr/bin/file conftest.$ac_objext` in |
|
|
3483 | *ELF-32*) |
|
|
3484 | HPUX_IA64_MODE="32" |
|
|
3485 | ;; |
|
|
3486 | *ELF-64*) |
|
|
3487 | HPUX_IA64_MODE="64" |
|
|
3488 | ;; |
|
|
3489 | esac |
|
|
3490 | fi |
|
|
3491 | rm -rf conftest* |
|
|
3492 | ;; |
|
|
3493 | *-*-irix6*) |
|
|
3494 | # Find out which ABI we are using. |
|
|
3495 | echo '#line 3495 "configure"' > conftest.$ac_ext |
|
|
3496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3497 | (eval $ac_compile) 2>&5 |
|
|
3498 | ac_status=$? |
|
|
3499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3500 | (exit $ac_status); }; then |
|
|
3501 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
3502 | case `/usr/bin/file conftest.$ac_objext` in |
|
|
3503 | *32-bit*) |
|
|
3504 | LD="${LD-ld} -melf32bsmip" |
|
|
3505 | ;; |
|
|
3506 | *N32*) |
|
|
3507 | LD="${LD-ld} -melf32bmipn32" |
|
|
3508 | ;; |
|
|
3509 | *64-bit*) |
|
|
3510 | LD="${LD-ld} -melf64bmip" |
|
|
3511 | ;; |
|
|
3512 | esac |
|
|
3513 | else |
|
|
3514 | case `/usr/bin/file conftest.$ac_objext` in |
|
|
3515 | *32-bit*) |
|
|
3516 | LD="${LD-ld} -32" |
|
|
3517 | ;; |
|
|
3518 | *N32*) |
|
|
3519 | LD="${LD-ld} -n32" |
|
|
3520 | ;; |
|
|
3521 | *64-bit*) |
|
|
3522 | LD="${LD-ld} -64" |
|
|
3523 | ;; |
|
|
3524 | esac |
|
|
3525 | fi |
|
|
3526 | fi |
|
|
3527 | rm -rf conftest* |
|
|
3528 | ;; |
2054 | |
3529 | |
|
|
3530 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
|
|
3531 | # Find out which ABI we are using. |
|
|
3532 | echo 'int i;' > conftest.$ac_ext |
|
|
3533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3534 | (eval $ac_compile) 2>&5 |
|
|
3535 | ac_status=$? |
|
|
3536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3537 | (exit $ac_status); }; then |
|
|
3538 | case `/usr/bin/file conftest.o` in |
|
|
3539 | *32-bit*) |
|
|
3540 | case $host in |
|
|
3541 | x86_64-*linux*) |
|
|
3542 | LD="${LD-ld} -m elf_i386" |
|
|
3543 | ;; |
|
|
3544 | ppc64-*linux*|powerpc64-*linux*) |
|
|
3545 | LD="${LD-ld} -m elf32ppclinux" |
|
|
3546 | ;; |
|
|
3547 | s390x-*linux*) |
|
|
3548 | LD="${LD-ld} -m elf_s390" |
|
|
3549 | ;; |
|
|
3550 | sparc64-*linux*) |
|
|
3551 | LD="${LD-ld} -m elf32_sparc" |
|
|
3552 | ;; |
|
|
3553 | esac |
|
|
3554 | ;; |
|
|
3555 | *64-bit*) |
|
|
3556 | case $host in |
|
|
3557 | x86_64-*linux*) |
|
|
3558 | LD="${LD-ld} -m elf_x86_64" |
|
|
3559 | ;; |
|
|
3560 | ppc*-*linux*|powerpc*-*linux*) |
|
|
3561 | LD="${LD-ld} -m elf64ppc" |
|
|
3562 | ;; |
|
|
3563 | s390*-*linux*) |
|
|
3564 | LD="${LD-ld} -m elf64_s390" |
|
|
3565 | ;; |
|
|
3566 | sparc*-*linux*) |
|
|
3567 | LD="${LD-ld} -m elf64_sparc" |
|
|
3568 | ;; |
|
|
3569 | esac |
|
|
3570 | ;; |
|
|
3571 | esac |
|
|
3572 | fi |
|
|
3573 | rm -rf conftest* |
|
|
3574 | ;; |
2055 | |
3575 | |
|
|
3576 | *-*-sco3.2v5*) |
|
|
3577 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
|
3578 | SAVE_CFLAGS="$CFLAGS" |
|
|
3579 | CFLAGS="$CFLAGS -belf" |
|
|
3580 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
|
3581 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
|
3582 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
|
3583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3584 | else |
|
|
3585 | ac_ext=c |
|
|
3586 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3587 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3588 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3589 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3590 | |
|
|
3591 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3592 | /* confdefs.h. */ |
|
|
3593 | _ACEOF |
|
|
3594 | cat confdefs.h >>conftest.$ac_ext |
|
|
3595 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3596 | /* end confdefs.h. */ |
|
|
3597 | |
|
|
3598 | int |
|
|
3599 | main () |
|
|
3600 | { |
|
|
3601 | |
|
|
3602 | ; |
|
|
3603 | return 0; |
|
|
3604 | } |
|
|
3605 | _ACEOF |
|
|
3606 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3608 | (eval $ac_link) 2>conftest.er1 |
|
|
3609 | ac_status=$? |
|
|
3610 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3611 | rm -f conftest.er1 |
|
|
3612 | cat conftest.err >&5 |
|
|
3613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3614 | (exit $ac_status); } && |
|
|
3615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3617 | (eval $ac_try) 2>&5 |
|
|
3618 | ac_status=$? |
|
|
3619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3620 | (exit $ac_status); }; } && |
|
|
3621 | { ac_try='test -s conftest$ac_exeext' |
|
|
3622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3623 | (eval $ac_try) 2>&5 |
|
|
3624 | ac_status=$? |
|
|
3625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3626 | (exit $ac_status); }; }; then |
|
|
3627 | lt_cv_cc_needs_belf=yes |
|
|
3628 | else |
|
|
3629 | echo "$as_me: failed program was:" >&5 |
|
|
3630 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3631 | |
|
|
3632 | lt_cv_cc_needs_belf=no |
|
|
3633 | fi |
|
|
3634 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3635 | conftest$ac_exeext conftest.$ac_ext |
|
|
3636 | ac_ext=c |
|
|
3637 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3641 | |
|
|
3642 | fi |
|
|
3643 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
|
3644 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
|
|
3645 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
|
3646 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
|
3647 | CFLAGS="$SAVE_CFLAGS" |
|
|
3648 | fi |
|
|
3649 | ;; |
|
|
3650 | sparc*-*solaris*) |
|
|
3651 | # Find out which ABI we are using. |
|
|
3652 | echo 'int i;' > conftest.$ac_ext |
|
|
3653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3654 | (eval $ac_compile) 2>&5 |
|
|
3655 | ac_status=$? |
|
|
3656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3657 | (exit $ac_status); }; then |
|
|
3658 | case `/usr/bin/file conftest.o` in |
|
|
3659 | *64-bit*) |
|
|
3660 | case $lt_cv_prog_gnu_ld in |
|
|
3661 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
|
|
3662 | *) LD="${LD-ld} -64" ;; |
|
|
3663 | esac |
|
|
3664 | ;; |
|
|
3665 | esac |
|
|
3666 | fi |
|
|
3667 | rm -rf conftest* |
|
|
3668 | ;; |
|
|
3669 | |
|
|
3670 | |
|
|
3671 | esac |
|
|
3672 | |
|
|
3673 | need_locks="$enable_libtool_lock" |
|
|
3674 | |
|
|
3675 | |
2056 | ac_ext=cc |
3676 | ac_ext=c |
|
|
3677 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3681 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
|
|
3682 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
|
|
3683 | # On Suns, sometimes $CPP names a directory. |
|
|
3684 | if test -n "$CPP" && test -d "$CPP"; then |
|
|
3685 | CPP= |
|
|
3686 | fi |
|
|
3687 | if test -z "$CPP"; then |
|
|
3688 | if test "${ac_cv_prog_CPP+set}" = set; then |
|
|
3689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3690 | else |
|
|
3691 | # Double quotes because CPP needs to be expanded |
|
|
3692 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
|
3693 | do |
|
|
3694 | ac_preproc_ok=false |
|
|
3695 | for ac_c_preproc_warn_flag in '' yes |
|
|
3696 | do |
|
|
3697 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3698 | # with a fresh cross-compiler works. |
|
|
3699 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3700 | # <limits.h> exists even on freestanding compilers. |
|
|
3701 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3702 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3703 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3704 | /* confdefs.h. */ |
|
|
3705 | _ACEOF |
|
|
3706 | cat confdefs.h >>conftest.$ac_ext |
|
|
3707 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3708 | /* end confdefs.h. */ |
|
|
3709 | #ifdef __STDC__ |
|
|
3710 | # include <limits.h> |
|
|
3711 | #else |
|
|
3712 | # include <assert.h> |
|
|
3713 | #endif |
|
|
3714 | Syntax error |
|
|
3715 | _ACEOF |
|
|
3716 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3717 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3718 | ac_status=$? |
|
|
3719 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3720 | rm -f conftest.er1 |
|
|
3721 | cat conftest.err >&5 |
|
|
3722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3723 | (exit $ac_status); } >/dev/null; then |
|
|
3724 | if test -s conftest.err; then |
|
|
3725 | ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
3726 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
3727 | else |
|
|
3728 | ac_cpp_err= |
|
|
3729 | fi |
|
|
3730 | else |
|
|
3731 | ac_cpp_err=yes |
|
|
3732 | fi |
|
|
3733 | if test -z "$ac_cpp_err"; then |
|
|
3734 | : |
|
|
3735 | else |
|
|
3736 | echo "$as_me: failed program was:" >&5 |
|
|
3737 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3738 | |
|
|
3739 | # Broken: fails on valid input. |
|
|
3740 | continue |
|
|
3741 | fi |
|
|
3742 | rm -f conftest.err conftest.$ac_ext |
|
|
3743 | |
|
|
3744 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3745 | # can be detected and how. |
|
|
3746 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3747 | /* confdefs.h. */ |
|
|
3748 | _ACEOF |
|
|
3749 | cat confdefs.h >>conftest.$ac_ext |
|
|
3750 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3751 | /* end confdefs.h. */ |
|
|
3752 | #include <ac_nonexistent.h> |
|
|
3753 | _ACEOF |
|
|
3754 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3755 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3756 | ac_status=$? |
|
|
3757 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3758 | rm -f conftest.er1 |
|
|
3759 | cat conftest.err >&5 |
|
|
3760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3761 | (exit $ac_status); } >/dev/null; then |
|
|
3762 | if test -s conftest.err; then |
|
|
3763 | ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
3764 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
3765 | else |
|
|
3766 | ac_cpp_err= |
|
|
3767 | fi |
|
|
3768 | else |
|
|
3769 | ac_cpp_err=yes |
|
|
3770 | fi |
|
|
3771 | if test -z "$ac_cpp_err"; then |
|
|
3772 | # Broken: success on invalid input. |
|
|
3773 | continue |
|
|
3774 | else |
|
|
3775 | echo "$as_me: failed program was:" >&5 |
|
|
3776 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3777 | |
|
|
3778 | # Passes both tests. |
|
|
3779 | ac_preproc_ok=: |
|
|
3780 | break |
|
|
3781 | fi |
|
|
3782 | rm -f conftest.err conftest.$ac_ext |
|
|
3783 | |
|
|
3784 | done |
|
|
3785 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3786 | rm -f conftest.err conftest.$ac_ext |
|
|
3787 | if $ac_preproc_ok; then |
|
|
3788 | break |
|
|
3789 | fi |
|
|
3790 | |
|
|
3791 | done |
|
|
3792 | ac_cv_prog_CPP=$CPP |
|
|
3793 | |
|
|
3794 | fi |
|
|
3795 | CPP=$ac_cv_prog_CPP |
|
|
3796 | else |
|
|
3797 | ac_cv_prog_CPP=$CPP |
|
|
3798 | fi |
|
|
3799 | echo "$as_me:$LINENO: result: $CPP" >&5 |
|
|
3800 | echo "${ECHO_T}$CPP" >&6 |
|
|
3801 | ac_preproc_ok=false |
|
|
3802 | for ac_c_preproc_warn_flag in '' yes |
|
|
3803 | do |
|
|
3804 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3805 | # with a fresh cross-compiler works. |
|
|
3806 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3807 | # <limits.h> exists even on freestanding compilers. |
|
|
3808 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3809 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3810 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3811 | /* confdefs.h. */ |
|
|
3812 | _ACEOF |
|
|
3813 | cat confdefs.h >>conftest.$ac_ext |
|
|
3814 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3815 | /* end confdefs.h. */ |
|
|
3816 | #ifdef __STDC__ |
|
|
3817 | # include <limits.h> |
|
|
3818 | #else |
|
|
3819 | # include <assert.h> |
|
|
3820 | #endif |
|
|
3821 | Syntax error |
|
|
3822 | _ACEOF |
|
|
3823 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3824 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3825 | ac_status=$? |
|
|
3826 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3827 | rm -f conftest.er1 |
|
|
3828 | cat conftest.err >&5 |
|
|
3829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3830 | (exit $ac_status); } >/dev/null; then |
|
|
3831 | if test -s conftest.err; then |
|
|
3832 | ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
3833 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
3834 | else |
|
|
3835 | ac_cpp_err= |
|
|
3836 | fi |
|
|
3837 | else |
|
|
3838 | ac_cpp_err=yes |
|
|
3839 | fi |
|
|
3840 | if test -z "$ac_cpp_err"; then |
|
|
3841 | : |
|
|
3842 | else |
|
|
3843 | echo "$as_me: failed program was:" >&5 |
|
|
3844 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3845 | |
|
|
3846 | # Broken: fails on valid input. |
|
|
3847 | continue |
|
|
3848 | fi |
|
|
3849 | rm -f conftest.err conftest.$ac_ext |
|
|
3850 | |
|
|
3851 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3852 | # can be detected and how. |
|
|
3853 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3854 | /* confdefs.h. */ |
|
|
3855 | _ACEOF |
|
|
3856 | cat confdefs.h >>conftest.$ac_ext |
|
|
3857 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3858 | /* end confdefs.h. */ |
|
|
3859 | #include <ac_nonexistent.h> |
|
|
3860 | _ACEOF |
|
|
3861 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3862 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3863 | ac_status=$? |
|
|
3864 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3865 | rm -f conftest.er1 |
|
|
3866 | cat conftest.err >&5 |
|
|
3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3868 | (exit $ac_status); } >/dev/null; then |
|
|
3869 | if test -s conftest.err; then |
|
|
3870 | ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
3871 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
3872 | else |
|
|
3873 | ac_cpp_err= |
|
|
3874 | fi |
|
|
3875 | else |
|
|
3876 | ac_cpp_err=yes |
|
|
3877 | fi |
|
|
3878 | if test -z "$ac_cpp_err"; then |
|
|
3879 | # Broken: success on invalid input. |
|
|
3880 | continue |
|
|
3881 | else |
|
|
3882 | echo "$as_me: failed program was:" >&5 |
|
|
3883 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3884 | |
|
|
3885 | # Passes both tests. |
|
|
3886 | ac_preproc_ok=: |
|
|
3887 | break |
|
|
3888 | fi |
|
|
3889 | rm -f conftest.err conftest.$ac_ext |
|
|
3890 | |
|
|
3891 | done |
|
|
3892 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3893 | rm -f conftest.err conftest.$ac_ext |
|
|
3894 | if $ac_preproc_ok; then |
|
|
3895 | : |
|
|
3896 | else |
|
|
3897 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
|
|
3898 | See \`config.log' for more details." >&5 |
|
|
3899 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
|
3900 | See \`config.log' for more details." >&2;} |
|
|
3901 | { (exit 1); exit 1; }; } |
|
|
3902 | fi |
|
|
3903 | |
|
|
3904 | ac_ext=c |
|
|
3905 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3909 | |
|
|
3910 | |
|
|
3911 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
3912 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
3913 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
3914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3915 | else |
|
|
3916 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3917 | /* confdefs.h. */ |
|
|
3918 | _ACEOF |
|
|
3919 | cat confdefs.h >>conftest.$ac_ext |
|
|
3920 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3921 | /* end confdefs.h. */ |
|
|
3922 | #include <stdlib.h> |
|
|
3923 | #include <stdarg.h> |
|
|
3924 | #include <string.h> |
|
|
3925 | #include <float.h> |
|
|
3926 | |
|
|
3927 | int |
|
|
3928 | main () |
|
|
3929 | { |
|
|
3930 | |
|
|
3931 | ; |
|
|
3932 | return 0; |
|
|
3933 | } |
|
|
3934 | _ACEOF |
|
|
3935 | rm -f conftest.$ac_objext |
|
|
3936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3937 | (eval $ac_compile) 2>conftest.er1 |
|
|
3938 | ac_status=$? |
|
|
3939 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3940 | rm -f conftest.er1 |
|
|
3941 | cat conftest.err >&5 |
|
|
3942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3943 | (exit $ac_status); } && |
|
|
3944 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3946 | (eval $ac_try) 2>&5 |
|
|
3947 | ac_status=$? |
|
|
3948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3949 | (exit $ac_status); }; } && |
|
|
3950 | { ac_try='test -s conftest.$ac_objext' |
|
|
3951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3952 | (eval $ac_try) 2>&5 |
|
|
3953 | ac_status=$? |
|
|
3954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3955 | (exit $ac_status); }; }; then |
|
|
3956 | ac_cv_header_stdc=yes |
|
|
3957 | else |
|
|
3958 | echo "$as_me: failed program was:" >&5 |
|
|
3959 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3960 | |
|
|
3961 | ac_cv_header_stdc=no |
|
|
3962 | fi |
|
|
3963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3964 | |
|
|
3965 | if test $ac_cv_header_stdc = yes; then |
|
|
3966 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
3967 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3968 | /* confdefs.h. */ |
|
|
3969 | _ACEOF |
|
|
3970 | cat confdefs.h >>conftest.$ac_ext |
|
|
3971 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3972 | /* end confdefs.h. */ |
|
|
3973 | #include <string.h> |
|
|
3974 | |
|
|
3975 | _ACEOF |
|
|
3976 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3977 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
3978 | : |
|
|
3979 | else |
|
|
3980 | ac_cv_header_stdc=no |
|
|
3981 | fi |
|
|
3982 | rm -f conftest* |
|
|
3983 | |
|
|
3984 | fi |
|
|
3985 | |
|
|
3986 | if test $ac_cv_header_stdc = yes; then |
|
|
3987 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
3988 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3989 | /* confdefs.h. */ |
|
|
3990 | _ACEOF |
|
|
3991 | cat confdefs.h >>conftest.$ac_ext |
|
|
3992 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3993 | /* end confdefs.h. */ |
|
|
3994 | #include <stdlib.h> |
|
|
3995 | |
|
|
3996 | _ACEOF |
|
|
3997 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3998 | $EGREP "free" >/dev/null 2>&1; then |
|
|
3999 | : |
|
|
4000 | else |
|
|
4001 | ac_cv_header_stdc=no |
|
|
4002 | fi |
|
|
4003 | rm -f conftest* |
|
|
4004 | |
|
|
4005 | fi |
|
|
4006 | |
|
|
4007 | if test $ac_cv_header_stdc = yes; then |
|
|
4008 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
4009 | if test "$cross_compiling" = yes; then |
|
|
4010 | : |
|
|
4011 | else |
|
|
4012 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4013 | /* confdefs.h. */ |
|
|
4014 | _ACEOF |
|
|
4015 | cat confdefs.h >>conftest.$ac_ext |
|
|
4016 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4017 | /* end confdefs.h. */ |
|
|
4018 | #include <ctype.h> |
|
|
4019 | #if ((' ' & 0x0FF) == 0x020) |
|
|
4020 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
4021 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
4022 | #else |
|
|
4023 | # define ISLOWER(c) \ |
|
|
4024 | (('a' <= (c) && (c) <= 'i') \ |
|
|
4025 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
4026 | || ('s' <= (c) && (c) <= 'z')) |
|
|
4027 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
4028 | #endif |
|
|
4029 | |
|
|
4030 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
4031 | int |
|
|
4032 | main () |
|
|
4033 | { |
|
|
4034 | int i; |
|
|
4035 | for (i = 0; i < 256; i++) |
|
|
4036 | if (XOR (islower (i), ISLOWER (i)) |
|
|
4037 | || toupper (i) != TOUPPER (i)) |
|
|
4038 | exit(2); |
|
|
4039 | exit (0); |
|
|
4040 | } |
|
|
4041 | _ACEOF |
|
|
4042 | rm -f conftest$ac_exeext |
|
|
4043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4044 | (eval $ac_link) 2>&5 |
|
|
4045 | ac_status=$? |
|
|
4046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4047 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4049 | (eval $ac_try) 2>&5 |
|
|
4050 | ac_status=$? |
|
|
4051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4052 | (exit $ac_status); }; }; then |
|
|
4053 | : |
|
|
4054 | else |
|
|
4055 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4056 | echo "$as_me: failed program was:" >&5 |
|
|
4057 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4058 | |
|
|
4059 | ( exit $ac_status ) |
|
|
4060 | ac_cv_header_stdc=no |
|
|
4061 | fi |
|
|
4062 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4063 | fi |
|
|
4064 | fi |
|
|
4065 | fi |
|
|
4066 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
4067 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
4068 | if test $ac_cv_header_stdc = yes; then |
|
|
4069 | |
|
|
4070 | cat >>confdefs.h <<\_ACEOF |
|
|
4071 | #define STDC_HEADERS 1 |
|
|
4072 | _ACEOF |
|
|
4073 | |
|
|
4074 | fi |
|
|
4075 | |
|
|
4076 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
4077 | |
|
|
4078 | |
|
|
4079 | |
|
|
4080 | |
|
|
4081 | |
|
|
4082 | |
|
|
4083 | |
|
|
4084 | |
|
|
4085 | |
|
|
4086 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
4087 | inttypes.h stdint.h unistd.h |
|
|
4088 | do |
|
|
4089 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4090 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4091 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4092 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4094 | else |
|
|
4095 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4096 | /* confdefs.h. */ |
|
|
4097 | _ACEOF |
|
|
4098 | cat confdefs.h >>conftest.$ac_ext |
|
|
4099 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4100 | /* end confdefs.h. */ |
|
|
4101 | $ac_includes_default |
|
|
4102 | |
|
|
4103 | #include <$ac_header> |
|
|
4104 | _ACEOF |
|
|
4105 | rm -f conftest.$ac_objext |
|
|
4106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4107 | (eval $ac_compile) 2>conftest.er1 |
|
|
4108 | ac_status=$? |
|
|
4109 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4110 | rm -f conftest.er1 |
|
|
4111 | cat conftest.err >&5 |
|
|
4112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4113 | (exit $ac_status); } && |
|
|
4114 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
4115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4116 | (eval $ac_try) 2>&5 |
|
|
4117 | ac_status=$? |
|
|
4118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4119 | (exit $ac_status); }; } && |
|
|
4120 | { ac_try='test -s conftest.$ac_objext' |
|
|
4121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4122 | (eval $ac_try) 2>&5 |
|
|
4123 | ac_status=$? |
|
|
4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4125 | (exit $ac_status); }; }; then |
|
|
4126 | eval "$as_ac_Header=yes" |
|
|
4127 | else |
|
|
4128 | echo "$as_me: failed program was:" >&5 |
|
|
4129 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4130 | |
|
|
4131 | eval "$as_ac_Header=no" |
|
|
4132 | fi |
|
|
4133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4134 | fi |
|
|
4135 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4136 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4137 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4138 | cat >>confdefs.h <<_ACEOF |
|
|
4139 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4140 | _ACEOF |
|
|
4141 | |
|
|
4142 | fi |
|
|
4143 | |
|
|
4144 | done |
|
|
4145 | |
|
|
4146 | |
|
|
4147 | |
|
|
4148 | for ac_header in dlfcn.h |
|
|
4149 | do |
|
|
4150 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4151 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4152 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4153 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4154 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4156 | fi |
|
|
4157 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4158 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4159 | else |
|
|
4160 | # Is the header compilable? |
|
|
4161 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
4162 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
4163 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4164 | /* confdefs.h. */ |
|
|
4165 | _ACEOF |
|
|
4166 | cat confdefs.h >>conftest.$ac_ext |
|
|
4167 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4168 | /* end confdefs.h. */ |
|
|
4169 | $ac_includes_default |
|
|
4170 | #include <$ac_header> |
|
|
4171 | _ACEOF |
|
|
4172 | rm -f conftest.$ac_objext |
|
|
4173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4174 | (eval $ac_compile) 2>conftest.er1 |
|
|
4175 | ac_status=$? |
|
|
4176 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4177 | rm -f conftest.er1 |
|
|
4178 | cat conftest.err >&5 |
|
|
4179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4180 | (exit $ac_status); } && |
|
|
4181 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
4182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4183 | (eval $ac_try) 2>&5 |
|
|
4184 | ac_status=$? |
|
|
4185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4186 | (exit $ac_status); }; } && |
|
|
4187 | { ac_try='test -s conftest.$ac_objext' |
|
|
4188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4189 | (eval $ac_try) 2>&5 |
|
|
4190 | ac_status=$? |
|
|
4191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4192 | (exit $ac_status); }; }; then |
|
|
4193 | ac_header_compiler=yes |
|
|
4194 | else |
|
|
4195 | echo "$as_me: failed program was:" >&5 |
|
|
4196 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4197 | |
|
|
4198 | ac_header_compiler=no |
|
|
4199 | fi |
|
|
4200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4201 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
4202 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
4203 | |
|
|
4204 | # Is the header present? |
|
|
4205 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
4206 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
4207 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4208 | /* confdefs.h. */ |
|
|
4209 | _ACEOF |
|
|
4210 | cat confdefs.h >>conftest.$ac_ext |
|
|
4211 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4212 | /* end confdefs.h. */ |
|
|
4213 | #include <$ac_header> |
|
|
4214 | _ACEOF |
|
|
4215 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4216 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4217 | ac_status=$? |
|
|
4218 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4219 | rm -f conftest.er1 |
|
|
4220 | cat conftest.err >&5 |
|
|
4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4222 | (exit $ac_status); } >/dev/null; then |
|
|
4223 | if test -s conftest.err; then |
|
|
4224 | ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
4225 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
4226 | else |
|
|
4227 | ac_cpp_err= |
|
|
4228 | fi |
|
|
4229 | else |
|
|
4230 | ac_cpp_err=yes |
|
|
4231 | fi |
|
|
4232 | if test -z "$ac_cpp_err"; then |
|
|
4233 | ac_header_preproc=yes |
|
|
4234 | else |
|
|
4235 | echo "$as_me: failed program was:" >&5 |
|
|
4236 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4237 | |
|
|
4238 | ac_header_preproc=no |
|
|
4239 | fi |
|
|
4240 | rm -f conftest.err conftest.$ac_ext |
|
|
4241 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
4242 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
4243 | |
|
|
4244 | # So? What about this header? |
|
|
4245 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
|
4246 | yes:no: ) |
|
|
4247 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
4248 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
4249 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
4250 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
4251 | ac_header_preproc=yes |
|
|
4252 | ;; |
|
|
4253 | no:yes:* ) |
|
|
4254 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
4255 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
4256 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
4257 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
4258 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
4259 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
4260 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
4261 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
4262 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
4263 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
4264 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
4265 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
4266 | ( |
|
|
4267 | cat <<\_ASBOX |
|
|
4268 | ## ------------------------------------------ ## |
|
|
4269 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
4270 | ## ------------------------------------------ ## |
|
|
4271 | _ASBOX |
|
|
4272 | ) | |
|
|
4273 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
4274 | ;; |
|
|
4275 | esac |
|
|
4276 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4277 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4278 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4280 | else |
|
|
4281 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
4282 | fi |
|
|
4283 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4284 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4285 | |
|
|
4286 | fi |
|
|
4287 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4288 | cat >>confdefs.h <<_ACEOF |
|
|
4289 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4290 | _ACEOF |
|
|
4291 | |
|
|
4292 | fi |
|
|
4293 | |
|
|
4294 | done |
|
|
4295 | |
|
|
4296 | |
|
|
4297 | |
|
|
4298 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
|
|
4299 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
|
4300 | (test "X$CXX" != "Xg++"))) ; then |
|
|
4301 | ac_ext=cc |
2057 | ac_cpp='$CXXCPP $CPPFLAGS' |
4302 | ac_cpp='$CXXCPP $CPPFLAGS' |
2058 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4303 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2059 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4304 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2060 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4305 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2061 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
4306 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
… | |
… | |
2281 | ac_cpp='$CXXCPP $CPPFLAGS' |
4526 | ac_cpp='$CXXCPP $CPPFLAGS' |
2282 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4527 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2283 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4528 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2284 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4529 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2285 | |
4530 | |
|
|
4531 | fi |
2286 | |
4532 | |
|
|
4533 | |
|
|
4534 | ac_ext=f |
|
|
4535 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
|
4536 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4537 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
|
4538 | if test -n "$ac_tool_prefix"; then |
|
|
4539 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
|
|
4540 | do |
|
|
4541 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
|
4542 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2287 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2288 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
4544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2289 | if test "${ac_cv_prog_egrep+set}" = set; then |
4545 | if test "${ac_cv_prog_F77+set}" = set; then |
2290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2291 | else |
4547 | else |
2292 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
4548 | if test -n "$F77"; then |
2293 | then ac_cv_prog_egrep='grep -E' |
4549 | ac_cv_prog_F77="$F77" # Let the user override the test. |
2294 | else ac_cv_prog_egrep='egrep' |
4550 | else |
|
|
4551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4552 | for as_dir in $PATH |
|
|
4553 | do |
|
|
4554 | IFS=$as_save_IFS |
|
|
4555 | test -z "$as_dir" && as_dir=. |
|
|
4556 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4558 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
|
|
4559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4560 | break 2 |
|
|
4561 | fi |
|
|
4562 | done |
|
|
4563 | done |
|
|
4564 | |
|
|
4565 | fi |
|
|
4566 | fi |
|
|
4567 | F77=$ac_cv_prog_F77 |
|
|
4568 | if test -n "$F77"; then |
|
|
4569 | echo "$as_me:$LINENO: result: $F77" >&5 |
|
|
4570 | echo "${ECHO_T}$F77" >&6 |
|
|
4571 | else |
|
|
4572 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4573 | echo "${ECHO_T}no" >&6 |
|
|
4574 | fi |
|
|
4575 | |
|
|
4576 | test -n "$F77" && break |
|
|
4577 | done |
|
|
4578 | fi |
|
|
4579 | if test -z "$F77"; then |
|
|
4580 | ac_ct_F77=$F77 |
|
|
4581 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
|
|
4582 | do |
|
|
4583 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
4584 | set dummy $ac_prog; ac_word=$2 |
|
|
4585 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4587 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
|
|
4588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4589 | else |
|
|
4590 | if test -n "$ac_ct_F77"; then |
|
|
4591 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
|
|
4592 | else |
|
|
4593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4594 | for as_dir in $PATH |
|
|
4595 | do |
|
|
4596 | IFS=$as_save_IFS |
|
|
4597 | test -z "$as_dir" && as_dir=. |
|
|
4598 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4599 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4600 | ac_cv_prog_ac_ct_F77="$ac_prog" |
|
|
4601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4602 | break 2 |
|
|
4603 | fi |
|
|
4604 | done |
|
|
4605 | done |
|
|
4606 | |
|
|
4607 | fi |
|
|
4608 | fi |
|
|
4609 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
|
|
4610 | if test -n "$ac_ct_F77"; then |
|
|
4611 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
|
|
4612 | echo "${ECHO_T}$ac_ct_F77" >&6 |
|
|
4613 | else |
|
|
4614 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4615 | echo "${ECHO_T}no" >&6 |
|
|
4616 | fi |
|
|
4617 | |
|
|
4618 | test -n "$ac_ct_F77" && break |
|
|
4619 | done |
|
|
4620 | |
|
|
4621 | F77=$ac_ct_F77 |
|
|
4622 | fi |
|
|
4623 | |
|
|
4624 | |
|
|
4625 | # Provide some information about the compiler. |
|
|
4626 | echo "$as_me:4626:" \ |
|
|
4627 | "checking for Fortran 77 compiler version" >&5 |
|
|
4628 | ac_compiler=`set X $ac_compile; echo $2` |
|
|
4629 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
|
4630 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
|
4631 | ac_status=$? |
|
|
4632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4633 | (exit $ac_status); } |
|
|
4634 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
|
4635 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
|
4636 | ac_status=$? |
|
|
4637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4638 | (exit $ac_status); } |
|
|
4639 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
|
4640 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
|
4641 | ac_status=$? |
|
|
4642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4643 | (exit $ac_status); } |
|
|
4644 | rm -f a.out |
|
|
4645 | |
|
|
4646 | # If we don't use `.F' as extension, the preprocessor is not run on the |
|
|
4647 | # input file. (Note that this only needs to work for GNU compilers.) |
|
|
4648 | ac_save_ext=$ac_ext |
|
|
4649 | ac_ext=F |
|
|
4650 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
|
|
4651 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
|
|
4652 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
|
|
4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4654 | else |
|
|
4655 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4656 | program main |
|
|
4657 | #ifndef __GNUC__ |
|
|
4658 | choke me |
|
|
4659 | #endif |
|
|
4660 | |
|
|
4661 | end |
|
|
4662 | _ACEOF |
|
|
4663 | rm -f conftest.$ac_objext |
|
|
4664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4665 | (eval $ac_compile) 2>conftest.er1 |
|
|
4666 | ac_status=$? |
|
|
4667 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4668 | rm -f conftest.er1 |
|
|
4669 | cat conftest.err >&5 |
|
|
4670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4671 | (exit $ac_status); } && |
|
|
4672 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|
|
4673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4674 | (eval $ac_try) 2>&5 |
|
|
4675 | ac_status=$? |
|
|
4676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4677 | (exit $ac_status); }; } && |
|
|
4678 | { ac_try='test -s conftest.$ac_objext' |
|
|
4679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4680 | (eval $ac_try) 2>&5 |
|
|
4681 | ac_status=$? |
|
|
4682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4683 | (exit $ac_status); }; }; then |
|
|
4684 | ac_compiler_gnu=yes |
|
|
4685 | else |
|
|
4686 | echo "$as_me: failed program was:" >&5 |
|
|
4687 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4688 | |
|
|
4689 | ac_compiler_gnu=no |
|
|
4690 | fi |
|
|
4691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4692 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
|
|
4693 | |
|
|
4694 | fi |
|
|
4695 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
|
|
4696 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
|
|
4697 | ac_ext=$ac_save_ext |
|
|
4698 | ac_test_FFLAGS=${FFLAGS+set} |
|
|
4699 | ac_save_FFLAGS=$FFLAGS |
|
|
4700 | FFLAGS= |
|
|
4701 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
|
|
4702 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
|
|
4703 | if test "${ac_cv_prog_f77_g+set}" = set; then |
|
|
4704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4705 | else |
|
|
4706 | FFLAGS=-g |
|
|
4707 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4708 | program main |
|
|
4709 | |
|
|
4710 | end |
|
|
4711 | _ACEOF |
|
|
4712 | rm -f conftest.$ac_objext |
|
|
4713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4714 | (eval $ac_compile) 2>conftest.er1 |
|
|
4715 | ac_status=$? |
|
|
4716 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4717 | rm -f conftest.er1 |
|
|
4718 | cat conftest.err >&5 |
|
|
4719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4720 | (exit $ac_status); } && |
|
|
4721 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|
|
4722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4723 | (eval $ac_try) 2>&5 |
|
|
4724 | ac_status=$? |
|
|
4725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4726 | (exit $ac_status); }; } && |
|
|
4727 | { ac_try='test -s conftest.$ac_objext' |
|
|
4728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4729 | (eval $ac_try) 2>&5 |
|
|
4730 | ac_status=$? |
|
|
4731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4732 | (exit $ac_status); }; }; then |
|
|
4733 | ac_cv_prog_f77_g=yes |
|
|
4734 | else |
|
|
4735 | echo "$as_me: failed program was:" >&5 |
|
|
4736 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4737 | |
|
|
4738 | ac_cv_prog_f77_g=no |
|
|
4739 | fi |
|
|
4740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4741 | |
|
|
4742 | fi |
|
|
4743 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
|
|
4744 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
|
|
4745 | if test "$ac_test_FFLAGS" = set; then |
|
|
4746 | FFLAGS=$ac_save_FFLAGS |
|
|
4747 | elif test $ac_cv_prog_f77_g = yes; then |
|
|
4748 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
|
4749 | FFLAGS="-g -O2" |
|
|
4750 | else |
|
|
4751 | FFLAGS="-g" |
|
|
4752 | fi |
|
|
4753 | else |
|
|
4754 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
|
4755 | FFLAGS="-O2" |
|
|
4756 | else |
|
|
4757 | FFLAGS= |
|
|
4758 | fi |
|
|
4759 | fi |
|
|
4760 | |
|
|
4761 | G77=`test $ac_compiler_gnu = yes && echo yes` |
|
|
4762 | ac_ext=c |
|
|
4763 | ac_cpp='$CPP $CPPFLAGS' |
|
|
4764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4767 | |
|
|
4768 | |
|
|
4769 | |
|
|
4770 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
|
|
4771 | |
|
|
4772 | # find the maximum length of command line arguments |
|
|
4773 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
|
|
4774 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
|
|
4775 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
|
|
4776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4777 | else |
|
|
4778 | i=0 |
|
|
4779 | teststring="ABCD" |
|
|
4780 | |
|
|
4781 | case $build_os in |
|
|
4782 | msdosdjgpp*) |
|
|
4783 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
|
|
4784 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
|
|
4785 | # during glob expansion). Even if it were fixed, the result of this |
|
|
4786 | # check would be larger than it should be. |
|
|
4787 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
|
|
4788 | ;; |
|
|
4789 | |
|
|
4790 | gnu*) |
|
|
4791 | # Under GNU Hurd, this test is not required because there is |
|
|
4792 | # no limit to the length of command line arguments. |
|
|
4793 | # Libtool will interpret -1 as no limit whatsoever |
|
|
4794 | lt_cv_sys_max_cmd_len=-1; |
|
|
4795 | ;; |
|
|
4796 | |
|
|
4797 | cygwin* | mingw*) |
|
|
4798 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
|
|
4799 | # about 5 minutes as the teststring grows exponentially. |
|
|
4800 | # Worse, since 9x/ME are not pre-emptively multitasking, |
|
|
4801 | # you end up with a "frozen" computer, even though with patience |
|
|
4802 | # the test eventually succeeds (with a max line length of 256k). |
|
|
4803 | # Instead, let's just punt: use the minimum linelength reported by |
|
|
4804 | # all of the supported platforms: 8192 (on NT/2K/XP). |
|
|
4805 | lt_cv_sys_max_cmd_len=8192; |
|
|
4806 | ;; |
|
|
4807 | |
|
|
4808 | amigaos*) |
|
|
4809 | # On AmigaOS with pdksh, this test takes hours, literally. |
|
|
4810 | # So we just punt and use a minimum line length of 8192. |
|
|
4811 | lt_cv_sys_max_cmd_len=8192; |
|
|
4812 | ;; |
|
|
4813 | |
|
|
4814 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
|
|
4815 | # This has been around since 386BSD, at least. Likely further. |
|
|
4816 | if test -x /sbin/sysctl; then |
|
|
4817 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
|
|
4818 | elif test -x /usr/sbin/sysctl; then |
|
|
4819 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
|
|
4820 | else |
|
|
4821 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
2295 | fi |
4822 | fi |
|
|
4823 | # And add a safety zone |
|
|
4824 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
|
4825 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
|
|
4826 | ;; |
|
|
4827 | |
|
|
4828 | interix*) |
|
|
4829 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
|
|
4830 | lt_cv_sys_max_cmd_len=196608 |
|
|
4831 | ;; |
|
|
4832 | |
|
|
4833 | osf*) |
|
|
4834 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
|
|
4835 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
|
|
4836 | # nice to cause kernel panics so lets avoid the loop below. |
|
|
4837 | # First set a reasonable default. |
|
|
4838 | lt_cv_sys_max_cmd_len=16384 |
|
|
4839 | # |
|
|
4840 | if test -x /sbin/sysconfig; then |
|
|
4841 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
|
|
4842 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
|
|
4843 | esac |
|
|
4844 | fi |
|
|
4845 | ;; |
|
|
4846 | sco3.2v5*) |
|
|
4847 | lt_cv_sys_max_cmd_len=102400 |
|
|
4848 | ;; |
|
|
4849 | sysv5* | sco5v6* | sysv4.2uw2*) |
|
|
4850 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
|
|
4851 | if test -n "$kargmax"; then |
|
|
4852 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
|
|
4853 | else |
|
|
4854 | lt_cv_sys_max_cmd_len=32768 |
|
|
4855 | fi |
|
|
4856 | ;; |
|
|
4857 | *) |
|
|
4858 | # If test is not a shell built-in, we'll probably end up computing a |
|
|
4859 | # maximum length that is only half of the actual maximum length, but |
|
|
4860 | # we can't tell. |
|
|
4861 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
|
|
4862 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
|
|
4863 | = "XX$teststring") >/dev/null 2>&1 && |
|
|
4864 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
|
|
4865 | lt_cv_sys_max_cmd_len=$new_result && |
|
|
4866 | test $i != 17 # 1/2 MB should be enough |
|
|
4867 | do |
|
|
4868 | i=`expr $i + 1` |
|
|
4869 | teststring=$teststring$teststring |
|
|
4870 | done |
|
|
4871 | teststring= |
|
|
4872 | # Add a significant safety factor because C++ compilers can tack on massive |
|
|
4873 | # amounts of additional arguments before passing them to the linker. |
|
|
4874 | # It appears as though 1/2 is a usable value. |
|
|
4875 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
|
|
4876 | ;; |
|
|
4877 | esac |
|
|
4878 | |
|
|
4879 | fi |
|
|
4880 | |
|
|
4881 | if test -n $lt_cv_sys_max_cmd_len ; then |
|
|
4882 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
|
|
4883 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
|
|
4884 | else |
|
|
4885 | echo "$as_me:$LINENO: result: none" >&5 |
|
|
4886 | echo "${ECHO_T}none" >&6 |
|
|
4887 | fi |
|
|
4888 | |
|
|
4889 | |
|
|
4890 | |
|
|
4891 | |
|
|
4892 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
|
|
4893 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
|
|
4894 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
|
|
4895 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
4896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4897 | else |
|
|
4898 | |
|
|
4899 | # These are sane defaults that work on at least a few old systems. |
|
|
4900 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
4901 | |
|
|
4902 | # Character class describing NM global symbol codes. |
|
|
4903 | symcode='[BCDEGRST]' |
|
|
4904 | |
|
|
4905 | # Regexp to match symbols that can be accessed directly from C. |
|
|
4906 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
|
4907 | |
|
|
4908 | # Transform an extracted symbol line into a proper C declaration |
|
|
4909 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
|
|
4910 | |
|
|
4911 | # Transform an extracted symbol line into symbol name and symbol address |
|
|
4912 | 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'" |
|
|
4913 | |
|
|
4914 | # Define system-specific variables. |
|
|
4915 | case $host_os in |
|
|
4916 | aix*) |
|
|
4917 | symcode='[BCDT]' |
|
|
4918 | ;; |
|
|
4919 | cygwin* | mingw* | pw32*) |
|
|
4920 | symcode='[ABCDGISTW]' |
|
|
4921 | ;; |
|
|
4922 | hpux*) # Its linker distinguishes data from code symbols |
|
|
4923 | if test "$host_cpu" = ia64; then |
|
|
4924 | symcode='[ABCDEGRST]' |
|
|
4925 | fi |
|
|
4926 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
4927 | 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'" |
|
|
4928 | ;; |
|
|
4929 | linux*) |
|
|
4930 | if test "$host_cpu" = ia64; then |
|
|
4931 | symcode='[ABCDGIRSTW]' |
|
|
4932 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
4933 | 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'" |
|
|
4934 | fi |
|
|
4935 | ;; |
|
|
4936 | irix* | nonstopux*) |
|
|
4937 | symcode='[BCDEGRST]' |
|
|
4938 | ;; |
|
|
4939 | osf*) |
|
|
4940 | symcode='[BCDEGQRST]' |
|
|
4941 | ;; |
|
|
4942 | solaris*) |
|
|
4943 | symcode='[BDRT]' |
|
|
4944 | ;; |
|
|
4945 | sco3.2v5*) |
|
|
4946 | symcode='[DT]' |
|
|
4947 | ;; |
|
|
4948 | sysv4.2uw2*) |
|
|
4949 | symcode='[DT]' |
|
|
4950 | ;; |
|
|
4951 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
|
|
4952 | symcode='[ABDT]' |
|
|
4953 | ;; |
|
|
4954 | sysv4) |
|
|
4955 | symcode='[DFNSTU]' |
|
|
4956 | ;; |
|
|
4957 | esac |
|
|
4958 | |
|
|
4959 | # Handle CRLF in mingw tool chain |
|
|
4960 | opt_cr= |
|
|
4961 | case $build_os in |
|
|
4962 | mingw*) |
|
|
4963 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
|
4964 | ;; |
|
|
4965 | esac |
|
|
4966 | |
|
|
4967 | # If we're using GNU nm, then use its standard symbol codes. |
|
|
4968 | case `$NM -V 2>&1` in |
|
|
4969 | *GNU* | *'with BFD'*) |
|
|
4970 | symcode='[ABCDGIRSTW]' ;; |
|
|
4971 | esac |
|
|
4972 | |
|
|
4973 | # Try without a prefix undercore, then with it. |
|
|
4974 | for ac_symprfx in "" "_"; do |
|
|
4975 | |
|
|
4976 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
|
|
4977 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
|
|
4978 | |
|
|
4979 | # Write the raw and C identifiers. |
|
|
4980 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
|
|
4981 | |
|
|
4982 | # Check to see that the pipe works correctly. |
|
|
4983 | pipe_works=no |
|
|
4984 | |
|
|
4985 | rm -f conftest* |
|
|
4986 | cat > conftest.$ac_ext <<EOF |
|
|
4987 | #ifdef __cplusplus |
|
|
4988 | extern "C" { |
|
|
4989 | #endif |
|
|
4990 | char nm_test_var; |
|
|
4991 | void nm_test_func(){} |
|
|
4992 | #ifdef __cplusplus |
|
|
4993 | } |
|
|
4994 | #endif |
|
|
4995 | int main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
4996 | EOF |
|
|
4997 | |
|
|
4998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4999 | (eval $ac_compile) 2>&5 |
|
|
5000 | ac_status=$? |
|
|
5001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5002 | (exit $ac_status); }; then |
|
|
5003 | # Now try to grab the symbols. |
|
|
5004 | nlist=conftest.nm |
|
|
5005 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
|
5006 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
|
5007 | ac_status=$? |
|
|
5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5009 | (exit $ac_status); } && test -s "$nlist"; then |
|
|
5010 | # Try sorting and uniquifying the output. |
|
|
5011 | if sort "$nlist" | uniq > "$nlist"T; then |
|
|
5012 | mv -f "$nlist"T "$nlist" |
|
|
5013 | else |
|
|
5014 | rm -f "$nlist"T |
|
|
5015 | fi |
|
|
5016 | |
|
|
5017 | # Make sure that we snagged all the symbols we need. |
|
|
5018 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
|
|
5019 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
|
|
5020 | cat <<EOF > conftest.$ac_ext |
|
|
5021 | #ifdef __cplusplus |
|
|
5022 | extern "C" { |
|
|
5023 | #endif |
|
|
5024 | |
|
|
5025 | EOF |
|
|
5026 | # Now generate the symbol file. |
|
|
5027 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
|
|
5028 | |
|
|
5029 | cat <<EOF >> conftest.$ac_ext |
|
|
5030 | #if defined (__STDC__) && __STDC__ |
|
|
5031 | # define lt_ptr_t void * |
|
|
5032 | #else |
|
|
5033 | # define lt_ptr_t char * |
|
|
5034 | # define const |
|
|
5035 | #endif |
|
|
5036 | |
|
|
5037 | /* The mapping between symbol names and symbols. */ |
|
|
5038 | const struct { |
|
|
5039 | const char *name; |
|
|
5040 | lt_ptr_t address; |
|
|
5041 | } |
|
|
5042 | lt_preloaded_symbols[] = |
|
|
5043 | { |
|
|
5044 | EOF |
|
|
5045 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
|
|
5046 | cat <<\EOF >> conftest.$ac_ext |
|
|
5047 | {0, (lt_ptr_t) 0} |
|
|
5048 | }; |
|
|
5049 | |
|
|
5050 | #ifdef __cplusplus |
|
|
5051 | } |
|
|
5052 | #endif |
|
|
5053 | EOF |
|
|
5054 | # Now try linking the two files. |
|
|
5055 | mv conftest.$ac_objext conftstm.$ac_objext |
|
|
5056 | lt_save_LIBS="$LIBS" |
|
|
5057 | lt_save_CFLAGS="$CFLAGS" |
|
|
5058 | LIBS="conftstm.$ac_objext" |
|
|
5059 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
|
|
5060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5061 | (eval $ac_link) 2>&5 |
|
|
5062 | ac_status=$? |
|
|
5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5064 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
|
|
5065 | pipe_works=yes |
|
|
5066 | fi |
|
|
5067 | LIBS="$lt_save_LIBS" |
|
|
5068 | CFLAGS="$lt_save_CFLAGS" |
|
|
5069 | else |
|
|
5070 | echo "cannot find nm_test_func in $nlist" >&5 |
2296 | fi |
5071 | fi |
|
|
5072 | else |
|
|
5073 | echo "cannot find nm_test_var in $nlist" >&5 |
|
|
5074 | fi |
|
|
5075 | else |
|
|
5076 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
|
5077 | fi |
|
|
5078 | else |
|
|
5079 | echo "$progname: failed program was:" >&5 |
|
|
5080 | cat conftest.$ac_ext >&5 |
|
|
5081 | fi |
|
|
5082 | rm -f conftest* conftst* |
|
|
5083 | |
|
|
5084 | # Do not use the global_symbol_pipe unless it works. |
|
|
5085 | if test "$pipe_works" = yes; then |
|
|
5086 | break |
|
|
5087 | else |
|
|
5088 | lt_cv_sys_global_symbol_pipe= |
|
|
5089 | fi |
|
|
5090 | done |
|
|
5091 | |
|
|
5092 | fi |
|
|
5093 | |
|
|
5094 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
|
5095 | lt_cv_sys_global_symbol_to_cdecl= |
|
|
5096 | fi |
|
|
5097 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
|
|
5098 | echo "$as_me:$LINENO: result: failed" >&5 |
|
|
5099 | echo "${ECHO_T}failed" >&6 |
|
|
5100 | else |
|
|
5101 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
5102 | echo "${ECHO_T}ok" >&6 |
|
|
5103 | fi |
|
|
5104 | |
|
|
5105 | echo "$as_me:$LINENO: checking for objdir" >&5 |
|
|
5106 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
|
|
5107 | if test "${lt_cv_objdir+set}" = set; then |
|
|
5108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5109 | else |
|
|
5110 | rm -f .libs 2>/dev/null |
|
|
5111 | mkdir .libs 2>/dev/null |
|
|
5112 | if test -d .libs; then |
|
|
5113 | lt_cv_objdir=.libs |
|
|
5114 | else |
|
|
5115 | # MS-DOS does not allow filenames that begin with a dot. |
|
|
5116 | lt_cv_objdir=_libs |
|
|
5117 | fi |
|
|
5118 | rmdir .libs 2>/dev/null |
|
|
5119 | fi |
|
|
5120 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
|
|
5121 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
|
|
5122 | objdir=$lt_cv_objdir |
|
|
5123 | |
|
|
5124 | |
|
|
5125 | |
|
|
5126 | |
|
|
5127 | |
|
|
5128 | case $host_os in |
|
|
5129 | aix3*) |
|
|
5130 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
5131 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
5132 | # vanish in a puff of smoke. |
|
|
5133 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
5134 | COLLECT_NAMES= |
|
|
5135 | export COLLECT_NAMES |
|
|
5136 | fi |
|
|
5137 | ;; |
|
|
5138 | esac |
|
|
5139 | |
|
|
5140 | # Sed substitution that helps us do robust quoting. It backslashifies |
|
|
5141 | # metacharacters that are still active within double-quoted strings. |
|
|
5142 | Xsed='sed -e 1s/^X//' |
|
|
5143 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
|
5144 | |
|
|
5145 | # Same as above, but do not quote variable references. |
|
|
5146 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
|
5147 | |
|
|
5148 | # Sed substitution to delay expansion of an escaped shell variable in a |
|
|
5149 | # double_quote_subst'ed string. |
|
|
5150 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
|
5151 | |
|
|
5152 | # Sed substitution to avoid accidental globbing in evaled expressions |
|
|
5153 | no_glob_subst='s/\*/\\\*/g' |
|
|
5154 | |
|
|
5155 | # Constants: |
|
|
5156 | rm="rm -f" |
|
|
5157 | |
|
|
5158 | # Global variables: |
|
|
5159 | default_ofile=libtool |
|
|
5160 | can_build_shared=yes |
|
|
5161 | |
|
|
5162 | # All known linkers require a `.a' archive for static linking (except MSVC, |
|
|
5163 | # which needs '.lib'). |
|
|
5164 | libext=a |
|
|
5165 | ltmain="$ac_aux_dir/ltmain.sh" |
|
|
5166 | ofile="$default_ofile" |
|
|
5167 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
|
5168 | |
|
|
5169 | if test -n "$ac_tool_prefix"; then |
|
|
5170 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|
|
5171 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
|
|
5172 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5174 | if test "${ac_cv_prog_AR+set}" = set; then |
|
|
5175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5176 | else |
|
|
5177 | if test -n "$AR"; then |
|
|
5178 | ac_cv_prog_AR="$AR" # Let the user override the test. |
|
|
5179 | else |
|
|
5180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5181 | for as_dir in $PATH |
|
|
5182 | do |
|
|
5183 | IFS=$as_save_IFS |
|
|
5184 | test -z "$as_dir" && as_dir=. |
|
|
5185 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5186 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5187 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
|
|
5188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5189 | break 2 |
|
|
5190 | fi |
|
|
5191 | done |
|
|
5192 | done |
|
|
5193 | |
|
|
5194 | fi |
|
|
5195 | fi |
|
|
5196 | AR=$ac_cv_prog_AR |
|
|
5197 | if test -n "$AR"; then |
|
|
5198 | echo "$as_me:$LINENO: result: $AR" >&5 |
|
|
5199 | echo "${ECHO_T}$AR" >&6 |
|
|
5200 | else |
|
|
5201 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5202 | echo "${ECHO_T}no" >&6 |
|
|
5203 | fi |
|
|
5204 | |
|
|
5205 | fi |
|
|
5206 | if test -z "$ac_cv_prog_AR"; then |
|
|
5207 | ac_ct_AR=$AR |
|
|
5208 | # Extract the first word of "ar", so it can be a program name with args. |
|
|
5209 | set dummy ar; ac_word=$2 |
|
|
5210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5212 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
|
|
5213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5214 | else |
|
|
5215 | if test -n "$ac_ct_AR"; then |
|
|
5216 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
|
5217 | else |
|
|
5218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5219 | for as_dir in $PATH |
|
|
5220 | do |
|
|
5221 | IFS=$as_save_IFS |
|
|
5222 | test -z "$as_dir" && as_dir=. |
|
|
5223 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5224 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5225 | ac_cv_prog_ac_ct_AR="ar" |
|
|
5226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5227 | break 2 |
|
|
5228 | fi |
|
|
5229 | done |
|
|
5230 | done |
|
|
5231 | |
|
|
5232 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
|
|
5233 | fi |
|
|
5234 | fi |
|
|
5235 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|
|
5236 | if test -n "$ac_ct_AR"; then |
2297 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
5237 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
2298 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
5238 | echo "${ECHO_T}$ac_ct_AR" >&6 |
2299 | EGREP=$ac_cv_prog_egrep |
5239 | else |
|
|
5240 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5241 | echo "${ECHO_T}no" >&6 |
|
|
5242 | fi |
2300 | |
5243 | |
|
|
5244 | AR=$ac_ct_AR |
|
|
5245 | else |
|
|
5246 | AR="$ac_cv_prog_AR" |
|
|
5247 | fi |
2301 | |
5248 | |
|
|
5249 | if test -n "$ac_tool_prefix"; then |
|
|
5250 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
5251 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
5252 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5254 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
5255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5256 | else |
|
|
5257 | if test -n "$RANLIB"; then |
|
|
5258 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
5259 | else |
|
|
5260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5261 | for as_dir in $PATH |
|
|
5262 | do |
|
|
5263 | IFS=$as_save_IFS |
|
|
5264 | test -z "$as_dir" && as_dir=. |
|
|
5265 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5266 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5267 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
5268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5269 | break 2 |
|
|
5270 | fi |
|
|
5271 | done |
|
|
5272 | done |
|
|
5273 | |
|
|
5274 | fi |
|
|
5275 | fi |
|
|
5276 | RANLIB=$ac_cv_prog_RANLIB |
|
|
5277 | if test -n "$RANLIB"; then |
|
|
5278 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
5279 | echo "${ECHO_T}$RANLIB" >&6 |
|
|
5280 | else |
|
|
5281 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5282 | echo "${ECHO_T}no" >&6 |
|
|
5283 | fi |
|
|
5284 | |
|
|
5285 | fi |
|
|
5286 | if test -z "$ac_cv_prog_RANLIB"; then |
|
|
5287 | ac_ct_RANLIB=$RANLIB |
|
|
5288 | # Extract the first word of "ranlib", so it can be a program name with args. |
|
|
5289 | set dummy ranlib; ac_word=$2 |
|
|
5290 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5292 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
5293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5294 | else |
|
|
5295 | if test -n "$ac_ct_RANLIB"; then |
|
|
5296 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
5297 | else |
|
|
5298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5299 | for as_dir in $PATH |
|
|
5300 | do |
|
|
5301 | IFS=$as_save_IFS |
|
|
5302 | test -z "$as_dir" && as_dir=. |
|
|
5303 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5304 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5305 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
5306 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5307 | break 2 |
|
|
5308 | fi |
|
|
5309 | done |
|
|
5310 | done |
|
|
5311 | |
|
|
5312 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
5313 | fi |
|
|
5314 | fi |
|
|
5315 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
5316 | if test -n "$ac_ct_RANLIB"; then |
|
|
5317 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
5318 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
|
5319 | else |
|
|
5320 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5321 | echo "${ECHO_T}no" >&6 |
|
|
5322 | fi |
|
|
5323 | |
|
|
5324 | RANLIB=$ac_ct_RANLIB |
|
|
5325 | else |
|
|
5326 | RANLIB="$ac_cv_prog_RANLIB" |
|
|
5327 | fi |
|
|
5328 | |
|
|
5329 | if test -n "$ac_tool_prefix"; then |
|
|
5330 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
|
5331 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
|
5332 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5333 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5334 | if test "${ac_cv_prog_STRIP+set}" = set; then |
|
|
5335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5336 | else |
|
|
5337 | if test -n "$STRIP"; then |
|
|
5338 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
|
5339 | else |
|
|
5340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5341 | for as_dir in $PATH |
|
|
5342 | do |
|
|
5343 | IFS=$as_save_IFS |
|
|
5344 | test -z "$as_dir" && as_dir=. |
|
|
5345 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5346 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5347 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
|
5348 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5349 | break 2 |
|
|
5350 | fi |
|
|
5351 | done |
|
|
5352 | done |
|
|
5353 | |
|
|
5354 | fi |
|
|
5355 | fi |
|
|
5356 | STRIP=$ac_cv_prog_STRIP |
|
|
5357 | if test -n "$STRIP"; then |
|
|
5358 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
5359 | echo "${ECHO_T}$STRIP" >&6 |
|
|
5360 | else |
|
|
5361 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5362 | echo "${ECHO_T}no" >&6 |
|
|
5363 | fi |
|
|
5364 | |
|
|
5365 | fi |
|
|
5366 | if test -z "$ac_cv_prog_STRIP"; then |
|
|
5367 | ac_ct_STRIP=$STRIP |
|
|
5368 | # Extract the first word of "strip", so it can be a program name with args. |
|
|
5369 | set dummy strip; ac_word=$2 |
|
|
5370 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5371 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5372 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
|
5373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5374 | else |
|
|
5375 | if test -n "$ac_ct_STRIP"; then |
|
|
5376 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
|
5377 | else |
|
|
5378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5379 | for as_dir in $PATH |
|
|
5380 | do |
|
|
5381 | IFS=$as_save_IFS |
|
|
5382 | test -z "$as_dir" && as_dir=. |
|
|
5383 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5384 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5385 | ac_cv_prog_ac_ct_STRIP="strip" |
|
|
5386 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5387 | break 2 |
|
|
5388 | fi |
|
|
5389 | done |
|
|
5390 | done |
|
|
5391 | |
|
|
5392 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
|
5393 | fi |
|
|
5394 | fi |
|
|
5395 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
5396 | if test -n "$ac_ct_STRIP"; then |
|
|
5397 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
5398 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
5399 | else |
|
|
5400 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5401 | echo "${ECHO_T}no" >&6 |
|
|
5402 | fi |
|
|
5403 | |
|
|
5404 | STRIP=$ac_ct_STRIP |
|
|
5405 | else |
|
|
5406 | STRIP="$ac_cv_prog_STRIP" |
|
|
5407 | fi |
|
|
5408 | |
|
|
5409 | |
|
|
5410 | old_CC="$CC" |
|
|
5411 | old_CFLAGS="$CFLAGS" |
|
|
5412 | |
|
|
5413 | # Set sane defaults for various variables |
|
|
5414 | test -z "$AR" && AR=ar |
|
|
5415 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
5416 | test -z "$AS" && AS=as |
|
|
5417 | test -z "$CC" && CC=cc |
|
|
5418 | test -z "$LTCC" && LTCC=$CC |
|
|
5419 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
|
|
5420 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
|
5421 | test -z "$LD" && LD=ld |
|
|
5422 | test -z "$LN_S" && LN_S="ln -s" |
|
|
5423 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
|
5424 | test -z "$NM" && NM=nm |
|
|
5425 | test -z "$SED" && SED=sed |
|
|
5426 | test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
5427 | test -z "$RANLIB" && RANLIB=: |
|
|
5428 | test -z "$STRIP" && STRIP=: |
|
|
5429 | test -z "$ac_objext" && ac_objext=o |
|
|
5430 | |
|
|
5431 | # Determine commands to create old-style static archives. |
|
|
5432 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
5433 | old_postinstall_cmds='chmod 644 $oldlib' |
|
|
5434 | old_postuninstall_cmds= |
|
|
5435 | |
|
|
5436 | if test -n "$RANLIB"; then |
|
|
5437 | case $host_os in |
|
|
5438 | openbsd*) |
|
|
5439 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
|
|
5440 | ;; |
|
|
5441 | *) |
|
|
5442 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
|
|
5443 | ;; |
|
|
5444 | esac |
|
|
5445 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
5446 | fi |
|
|
5447 | |
|
|
5448 | for cc_temp in $compiler""; do |
|
|
5449 | case $cc_temp in |
|
|
5450 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
5451 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
5452 | \-*) ;; |
|
|
5453 | *) break;; |
|
|
5454 | esac |
|
|
5455 | done |
|
|
5456 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
5457 | |
|
|
5458 | |
|
|
5459 | # Only perform the check for file, if the check method requires it |
|
|
5460 | case $deplibs_check_method in |
|
|
5461 | file_magic*) |
|
|
5462 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
|
5463 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
|
5464 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
|
|
5465 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5467 | else |
|
|
5468 | case $MAGIC_CMD in |
|
|
5469 | [\\/*] | ?:[\\/]*) |
|
|
5470 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
5471 | ;; |
|
|
5472 | *) |
|
|
5473 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
5474 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
5475 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
|
5476 | for ac_dir in $ac_dummy; do |
|
|
5477 | IFS="$lt_save_ifs" |
|
|
5478 | test -z "$ac_dir" && ac_dir=. |
|
|
5479 | if test -f $ac_dir/${ac_tool_prefix}file; then |
|
|
5480 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
|
5481 | if test -n "$file_magic_test_file"; then |
|
|
5482 | case $deplibs_check_method in |
|
|
5483 | "file_magic "*) |
|
|
5484 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
|
|
5485 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5486 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
5487 | $EGREP "$file_magic_regex" > /dev/null; then |
|
|
5488 | : |
|
|
5489 | else |
|
|
5490 | cat <<EOF 1>&2 |
|
|
5491 | |
|
|
5492 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
5493 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
5494 | *** The result is that libtool may fail to recognize shared libraries |
|
|
5495 | *** as such. This will affect the creation of libtool libraries that |
|
|
5496 | *** depend on shared libraries, but programs linked with such libtool |
|
|
5497 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
5498 | *** may want to report the problem to your system manager and/or to |
|
|
5499 | *** bug-libtool@gnu.org |
|
|
5500 | |
|
|
5501 | EOF |
|
|
5502 | fi ;; |
|
|
5503 | esac |
|
|
5504 | fi |
|
|
5505 | break |
|
|
5506 | fi |
|
|
5507 | done |
|
|
5508 | IFS="$lt_save_ifs" |
|
|
5509 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
|
5510 | ;; |
|
|
5511 | esac |
|
|
5512 | fi |
|
|
5513 | |
|
|
5514 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5515 | if test -n "$MAGIC_CMD"; then |
|
|
5516 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
5517 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
5518 | else |
|
|
5519 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5520 | echo "${ECHO_T}no" >&6 |
|
|
5521 | fi |
|
|
5522 | |
|
|
5523 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
|
5524 | if test -n "$ac_tool_prefix"; then |
2302 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5525 | echo "$as_me:$LINENO: checking for file" >&5 |
2303 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5526 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
|
|
5527 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
5528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5529 | else |
|
|
5530 | case $MAGIC_CMD in |
|
|
5531 | [\\/*] | ?:[\\/]*) |
|
|
5532 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
5533 | ;; |
|
|
5534 | *) |
|
|
5535 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
5536 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
5537 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
|
5538 | for ac_dir in $ac_dummy; do |
|
|
5539 | IFS="$lt_save_ifs" |
|
|
5540 | test -z "$ac_dir" && ac_dir=. |
|
|
5541 | if test -f $ac_dir/file; then |
|
|
5542 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
|
5543 | if test -n "$file_magic_test_file"; then |
|
|
5544 | case $deplibs_check_method in |
|
|
5545 | "file_magic "*) |
|
|
5546 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
|
|
5547 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5548 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
5549 | $EGREP "$file_magic_regex" > /dev/null; then |
|
|
5550 | : |
|
|
5551 | else |
|
|
5552 | cat <<EOF 1>&2 |
|
|
5553 | |
|
|
5554 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
5555 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
5556 | *** The result is that libtool may fail to recognize shared libraries |
|
|
5557 | *** as such. This will affect the creation of libtool libraries that |
|
|
5558 | *** depend on shared libraries, but programs linked with such libtool |
|
|
5559 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
5560 | *** may want to report the problem to your system manager and/or to |
|
|
5561 | *** bug-libtool@gnu.org |
|
|
5562 | |
|
|
5563 | EOF |
|
|
5564 | fi ;; |
|
|
5565 | esac |
|
|
5566 | fi |
|
|
5567 | break |
|
|
5568 | fi |
|
|
5569 | done |
|
|
5570 | IFS="$lt_save_ifs" |
|
|
5571 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
|
5572 | ;; |
|
|
5573 | esac |
|
|
5574 | fi |
|
|
5575 | |
|
|
5576 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5577 | if test -n "$MAGIC_CMD"; then |
|
|
5578 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
5579 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
5580 | else |
|
|
5581 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5582 | echo "${ECHO_T}no" >&6 |
|
|
5583 | fi |
|
|
5584 | |
|
|
5585 | else |
|
|
5586 | MAGIC_CMD=: |
|
|
5587 | fi |
|
|
5588 | fi |
|
|
5589 | |
|
|
5590 | fi |
|
|
5591 | ;; |
|
|
5592 | esac |
|
|
5593 | |
|
|
5594 | enable_dlopen=no |
|
|
5595 | enable_win32_dll=no |
|
|
5596 | |
|
|
5597 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
5598 | if test "${enable_libtool_lock+set}" = set; then |
|
|
5599 | enableval="$enable_libtool_lock" |
|
|
5600 | |
|
|
5601 | fi; |
|
|
5602 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
|
5603 | |
|
|
5604 | |
|
|
5605 | # Check whether --with-pic or --without-pic was given. |
|
|
5606 | if test "${with_pic+set}" = set; then |
|
|
5607 | withval="$with_pic" |
|
|
5608 | pic_mode="$withval" |
|
|
5609 | else |
|
|
5610 | pic_mode=default |
|
|
5611 | fi; |
|
|
5612 | test -z "$pic_mode" && pic_mode=default |
|
|
5613 | |
|
|
5614 | # Use C for the default configuration in the libtool script |
|
|
5615 | tagname= |
|
|
5616 | lt_save_CC="$CC" |
|
|
5617 | ac_ext=c |
|
|
5618 | ac_cpp='$CPP $CPPFLAGS' |
|
|
5619 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5620 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5621 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
5622 | |
|
|
5623 | |
|
|
5624 | # Source file extension for C test sources. |
|
|
5625 | ac_ext=c |
|
|
5626 | |
|
|
5627 | # Object file extension for compiled C test sources. |
|
|
5628 | objext=o |
|
|
5629 | objext=$objext |
|
|
5630 | |
|
|
5631 | # Code to be used in simple compile tests |
|
|
5632 | lt_simple_compile_test_code="int some_variable = 0;\n" |
|
|
5633 | |
|
|
5634 | # Code to be used in simple link tests |
|
|
5635 | lt_simple_link_test_code='int main(){return(0);}\n' |
|
|
5636 | |
|
|
5637 | |
|
|
5638 | # If no C compiler was specified, use CC. |
|
|
5639 | LTCC=${LTCC-"$CC"} |
|
|
5640 | |
|
|
5641 | # If no C compiler flags were specified, use CFLAGS. |
|
|
5642 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
5643 | |
|
|
5644 | # Allow CC to be a program name with arguments. |
|
|
5645 | compiler=$CC |
|
|
5646 | |
|
|
5647 | |
|
|
5648 | # save warnings/boilerplate of simple test code |
|
|
5649 | ac_outfile=conftest.$ac_objext |
|
|
5650 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
5651 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
5652 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
5653 | $rm conftest* |
|
|
5654 | |
|
|
5655 | ac_outfile=conftest.$ac_objext |
|
|
5656 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
5657 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
5658 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
5659 | $rm conftest* |
|
|
5660 | |
|
|
5661 | |
|
|
5662 | |
|
|
5663 | lt_prog_compiler_no_builtin_flag= |
|
|
5664 | |
|
|
5665 | if test "$GCC" = yes; then |
|
|
5666 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
|
|
5667 | |
|
|
5668 | |
|
|
5669 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
|
5670 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
|
5671 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
|
|
5672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5673 | else |
|
|
5674 | lt_cv_prog_compiler_rtti_exceptions=no |
|
|
5675 | ac_outfile=conftest.$ac_objext |
|
|
5676 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
5677 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
|
5678 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
5679 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
5680 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
5681 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
5682 | # The option is referenced via a variable to avoid confusing sed. |
|
|
5683 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
5684 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
5685 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
5686 | -e 's:$: $lt_compiler_flag:'` |
|
|
5687 | (eval echo "\"\$as_me:5687: $lt_compile\"" >&5) |
|
|
5688 | (eval "$lt_compile" 2>conftest.err) |
|
|
5689 | ac_status=$? |
|
|
5690 | cat conftest.err >&5 |
|
|
5691 | echo "$as_me:5691: \$? = $ac_status" >&5 |
|
|
5692 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
5693 | # The compiler can only warn and ignore the option if not recognized |
|
|
5694 | # So say no if there are warnings other than the usual output. |
|
|
5695 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
5696 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
5697 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
|
5698 | lt_cv_prog_compiler_rtti_exceptions=yes |
|
|
5699 | fi |
|
|
5700 | fi |
|
|
5701 | $rm conftest* |
|
|
5702 | |
|
|
5703 | fi |
|
|
5704 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
|
5705 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
|
|
5706 | |
|
|
5707 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
|
5708 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
|
|
5709 | else |
|
|
5710 | : |
|
|
5711 | fi |
|
|
5712 | |
|
|
5713 | fi |
|
|
5714 | |
|
|
5715 | lt_prog_compiler_wl= |
|
|
5716 | lt_prog_compiler_pic= |
|
|
5717 | lt_prog_compiler_static= |
|
|
5718 | |
|
|
5719 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
5720 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
5721 | |
|
|
5722 | if test "$GCC" = yes; then |
|
|
5723 | lt_prog_compiler_wl='-Wl,' |
|
|
5724 | lt_prog_compiler_static='-static' |
|
|
5725 | |
|
|
5726 | case $host_os in |
|
|
5727 | aix*) |
|
|
5728 | # All AIX code is PIC. |
|
|
5729 | if test "$host_cpu" = ia64; then |
|
|
5730 | # AIX 5 now supports IA64 processor |
|
|
5731 | lt_prog_compiler_static='-Bstatic' |
|
|
5732 | fi |
|
|
5733 | ;; |
|
|
5734 | |
|
|
5735 | amigaos*) |
|
|
5736 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
5737 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
5738 | # like `-m68040'. |
|
|
5739 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
|
|
5740 | ;; |
|
|
5741 | |
|
|
5742 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
5743 | # PIC is the default for these OSes. |
|
|
5744 | ;; |
|
|
5745 | |
|
|
5746 | mingw* | pw32* | os2*) |
|
|
5747 | # This hack is so that the source file can tell whether it is being |
|
|
5748 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5749 | lt_prog_compiler_pic='-DDLL_EXPORT' |
|
|
5750 | ;; |
|
|
5751 | |
|
|
5752 | darwin* | rhapsody*) |
|
|
5753 | # PIC is the default on this platform |
|
|
5754 | # Common symbols not allowed in MH_DYLIB files |
|
|
5755 | lt_prog_compiler_pic='-fno-common' |
|
|
5756 | ;; |
|
|
5757 | |
|
|
5758 | interix3*) |
|
|
5759 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
|
5760 | # Instead, we relocate shared libraries at runtime. |
|
|
5761 | ;; |
|
|
5762 | |
|
|
5763 | msdosdjgpp*) |
|
|
5764 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
|
|
5765 | # on systems that don't support them. |
|
|
5766 | lt_prog_compiler_can_build_shared=no |
|
|
5767 | enable_shared=no |
|
|
5768 | ;; |
|
|
5769 | |
|
|
5770 | sysv4*MP*) |
|
|
5771 | if test -d /usr/nec; then |
|
|
5772 | lt_prog_compiler_pic=-Kconform_pic |
|
|
5773 | fi |
|
|
5774 | ;; |
|
|
5775 | |
|
|
5776 | hpux*) |
|
|
5777 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
5778 | # not for PA HP-UX. |
|
|
5779 | case $host_cpu in |
|
|
5780 | hppa*64*|ia64*) |
|
|
5781 | # +Z the default |
|
|
5782 | ;; |
|
|
5783 | *) |
|
|
5784 | lt_prog_compiler_pic='-fPIC' |
|
|
5785 | ;; |
|
|
5786 | esac |
|
|
5787 | ;; |
|
|
5788 | |
|
|
5789 | *) |
|
|
5790 | lt_prog_compiler_pic='-fPIC' |
|
|
5791 | ;; |
|
|
5792 | esac |
|
|
5793 | else |
|
|
5794 | # PORTME Check for flag to pass linker flags through the system compiler. |
|
|
5795 | case $host_os in |
|
|
5796 | aix*) |
|
|
5797 | lt_prog_compiler_wl='-Wl,' |
|
|
5798 | if test "$host_cpu" = ia64; then |
|
|
5799 | # AIX 5 now supports IA64 processor |
|
|
5800 | lt_prog_compiler_static='-Bstatic' |
|
|
5801 | else |
|
|
5802 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
|
|
5803 | fi |
|
|
5804 | ;; |
|
|
5805 | darwin*) |
|
|
5806 | # PIC is the default on this platform |
|
|
5807 | # Common symbols not allowed in MH_DYLIB files |
|
|
5808 | case $cc_basename in |
|
|
5809 | xlc*) |
|
|
5810 | lt_prog_compiler_pic='-qnocommon' |
|
|
5811 | lt_prog_compiler_wl='-Wl,' |
|
|
5812 | ;; |
|
|
5813 | esac |
|
|
5814 | ;; |
|
|
5815 | |
|
|
5816 | mingw* | pw32* | os2*) |
|
|
5817 | # This hack is so that the source file can tell whether it is being |
|
|
5818 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5819 | lt_prog_compiler_pic='-DDLL_EXPORT' |
|
|
5820 | ;; |
|
|
5821 | |
|
|
5822 | hpux9* | hpux10* | hpux11*) |
|
|
5823 | lt_prog_compiler_wl='-Wl,' |
|
|
5824 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
5825 | # not for PA HP-UX. |
|
|
5826 | case $host_cpu in |
|
|
5827 | hppa*64*|ia64*) |
|
|
5828 | # +Z the default |
|
|
5829 | ;; |
|
|
5830 | *) |
|
|
5831 | lt_prog_compiler_pic='+Z' |
|
|
5832 | ;; |
|
|
5833 | esac |
|
|
5834 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
|
5835 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
|
|
5836 | ;; |
|
|
5837 | |
|
|
5838 | irix5* | irix6* | nonstopux*) |
|
|
5839 | lt_prog_compiler_wl='-Wl,' |
|
|
5840 | # PIC (with -KPIC) is the default. |
|
|
5841 | lt_prog_compiler_static='-non_shared' |
|
|
5842 | ;; |
|
|
5843 | |
|
|
5844 | newsos6) |
|
|
5845 | lt_prog_compiler_pic='-KPIC' |
|
|
5846 | lt_prog_compiler_static='-Bstatic' |
|
|
5847 | ;; |
|
|
5848 | |
|
|
5849 | linux*) |
|
|
5850 | case $cc_basename in |
|
|
5851 | icc* | ecc*) |
|
|
5852 | lt_prog_compiler_wl='-Wl,' |
|
|
5853 | lt_prog_compiler_pic='-KPIC' |
|
|
5854 | lt_prog_compiler_static='-static' |
|
|
5855 | ;; |
|
|
5856 | pgcc* | pgf77* | pgf90* | pgf95*) |
|
|
5857 | # Portland Group compilers (*not* the Pentium gcc compiler, |
|
|
5858 | # which looks to be a dead project) |
|
|
5859 | lt_prog_compiler_wl='-Wl,' |
|
|
5860 | lt_prog_compiler_pic='-fpic' |
|
|
5861 | lt_prog_compiler_static='-Bstatic' |
|
|
5862 | ;; |
|
|
5863 | ccc*) |
|
|
5864 | lt_prog_compiler_wl='-Wl,' |
|
|
5865 | # All Alpha code is PIC. |
|
|
5866 | lt_prog_compiler_static='-non_shared' |
|
|
5867 | ;; |
|
|
5868 | esac |
|
|
5869 | ;; |
|
|
5870 | |
|
|
5871 | osf3* | osf4* | osf5*) |
|
|
5872 | lt_prog_compiler_wl='-Wl,' |
|
|
5873 | # All OSF/1 code is PIC. |
|
|
5874 | lt_prog_compiler_static='-non_shared' |
|
|
5875 | ;; |
|
|
5876 | |
|
|
5877 | solaris*) |
|
|
5878 | lt_prog_compiler_pic='-KPIC' |
|
|
5879 | lt_prog_compiler_static='-Bstatic' |
|
|
5880 | case $cc_basename in |
|
|
5881 | f77* | f90* | f95*) |
|
|
5882 | lt_prog_compiler_wl='-Qoption ld ';; |
|
|
5883 | *) |
|
|
5884 | lt_prog_compiler_wl='-Wl,';; |
|
|
5885 | esac |
|
|
5886 | ;; |
|
|
5887 | |
|
|
5888 | sunos4*) |
|
|
5889 | lt_prog_compiler_wl='-Qoption ld ' |
|
|
5890 | lt_prog_compiler_pic='-PIC' |
|
|
5891 | lt_prog_compiler_static='-Bstatic' |
|
|
5892 | ;; |
|
|
5893 | |
|
|
5894 | sysv4 | sysv4.2uw2* | sysv4.3*) |
|
|
5895 | lt_prog_compiler_wl='-Wl,' |
|
|
5896 | lt_prog_compiler_pic='-KPIC' |
|
|
5897 | lt_prog_compiler_static='-Bstatic' |
|
|
5898 | ;; |
|
|
5899 | |
|
|
5900 | sysv4*MP*) |
|
|
5901 | if test -d /usr/nec ;then |
|
|
5902 | lt_prog_compiler_pic='-Kconform_pic' |
|
|
5903 | lt_prog_compiler_static='-Bstatic' |
|
|
5904 | fi |
|
|
5905 | ;; |
|
|
5906 | |
|
|
5907 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
5908 | lt_prog_compiler_wl='-Wl,' |
|
|
5909 | lt_prog_compiler_pic='-KPIC' |
|
|
5910 | lt_prog_compiler_static='-Bstatic' |
|
|
5911 | ;; |
|
|
5912 | |
|
|
5913 | unicos*) |
|
|
5914 | lt_prog_compiler_wl='-Wl,' |
|
|
5915 | lt_prog_compiler_can_build_shared=no |
|
|
5916 | ;; |
|
|
5917 | |
|
|
5918 | uts4*) |
|
|
5919 | lt_prog_compiler_pic='-pic' |
|
|
5920 | lt_prog_compiler_static='-Bstatic' |
|
|
5921 | ;; |
|
|
5922 | |
|
|
5923 | *) |
|
|
5924 | lt_prog_compiler_can_build_shared=no |
|
|
5925 | ;; |
|
|
5926 | esac |
|
|
5927 | fi |
|
|
5928 | |
|
|
5929 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
|
|
5930 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
|
|
5931 | |
|
|
5932 | # |
|
|
5933 | # Check to make sure the PIC flag actually works. |
|
|
5934 | # |
|
|
5935 | if test -n "$lt_prog_compiler_pic"; then |
|
|
5936 | |
|
|
5937 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
|
|
5938 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
|
|
5939 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
|
|
5940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5941 | else |
|
|
5942 | lt_prog_compiler_pic_works=no |
|
|
5943 | ac_outfile=conftest.$ac_objext |
|
|
5944 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
5945 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
|
|
5946 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
5947 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
5948 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
5949 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
5950 | # The option is referenced via a variable to avoid confusing sed. |
|
|
5951 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
5952 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
5953 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
5954 | -e 's:$: $lt_compiler_flag:'` |
|
|
5955 | (eval echo "\"\$as_me:5955: $lt_compile\"" >&5) |
|
|
5956 | (eval "$lt_compile" 2>conftest.err) |
|
|
5957 | ac_status=$? |
|
|
5958 | cat conftest.err >&5 |
|
|
5959 | echo "$as_me:5959: \$? = $ac_status" >&5 |
|
|
5960 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
5961 | # The compiler can only warn and ignore the option if not recognized |
|
|
5962 | # So say no if there are warnings other than the usual output. |
|
|
5963 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
5964 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
5965 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
|
5966 | lt_prog_compiler_pic_works=yes |
|
|
5967 | fi |
|
|
5968 | fi |
|
|
5969 | $rm conftest* |
|
|
5970 | |
|
|
5971 | fi |
|
|
5972 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
|
|
5973 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
|
|
5974 | |
|
|
5975 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
|
|
5976 | case $lt_prog_compiler_pic in |
|
|
5977 | "" | " "*) ;; |
|
|
5978 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
|
|
5979 | esac |
|
|
5980 | else |
|
|
5981 | lt_prog_compiler_pic= |
|
|
5982 | lt_prog_compiler_can_build_shared=no |
|
|
5983 | fi |
|
|
5984 | |
|
|
5985 | fi |
|
|
5986 | case $host_os in |
|
|
5987 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
5988 | *djgpp*) |
|
|
5989 | lt_prog_compiler_pic= |
|
|
5990 | ;; |
|
|
5991 | *) |
|
|
5992 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
|
|
5993 | ;; |
|
|
5994 | esac |
|
|
5995 | |
|
|
5996 | # |
|
|
5997 | # Check to make sure the static flag actually works. |
|
|
5998 | # |
|
|
5999 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
|
|
6000 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
|
6001 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
|
|
6002 | if test "${lt_prog_compiler_static_works+set}" = set; then |
|
|
6003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6004 | else |
|
|
6005 | lt_prog_compiler_static_works=no |
|
|
6006 | save_LDFLAGS="$LDFLAGS" |
|
|
6007 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
|
6008 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
6009 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
6010 | # The linker can only warn and ignore the option if not recognized |
|
|
6011 | # So say no if there are warnings |
|
|
6012 | if test -s conftest.err; then |
|
|
6013 | # Append any errors to the config.log. |
|
|
6014 | cat conftest.err 1>&5 |
|
|
6015 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
|
6016 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
6017 | if diff conftest.exp conftest.er2 >/dev/null; then |
|
|
6018 | lt_prog_compiler_static_works=yes |
|
|
6019 | fi |
|
|
6020 | else |
|
|
6021 | lt_prog_compiler_static_works=yes |
|
|
6022 | fi |
|
|
6023 | fi |
|
|
6024 | $rm conftest* |
|
|
6025 | LDFLAGS="$save_LDFLAGS" |
|
|
6026 | |
|
|
6027 | fi |
|
|
6028 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
|
|
6029 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
|
|
6030 | |
|
|
6031 | if test x"$lt_prog_compiler_static_works" = xyes; then |
|
|
6032 | : |
|
|
6033 | else |
|
|
6034 | lt_prog_compiler_static= |
|
|
6035 | fi |
|
|
6036 | |
|
|
6037 | |
|
|
6038 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
6039 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
6040 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
|
|
6041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6042 | else |
|
|
6043 | lt_cv_prog_compiler_c_o=no |
|
|
6044 | $rm -r conftest 2>/dev/null |
|
|
6045 | mkdir conftest |
|
|
6046 | cd conftest |
|
|
6047 | mkdir out |
|
|
6048 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
6049 | |
|
|
6050 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
|
6051 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
6052 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
6053 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
6054 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
6055 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
6056 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
6057 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
6058 | -e 's:$: $lt_compiler_flag:'` |
|
|
6059 | (eval echo "\"\$as_me:6059: $lt_compile\"" >&5) |
|
|
6060 | (eval "$lt_compile" 2>out/conftest.err) |
|
|
6061 | ac_status=$? |
|
|
6062 | cat out/conftest.err >&5 |
|
|
6063 | echo "$as_me:6063: \$? = $ac_status" >&5 |
|
|
6064 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
|
6065 | then |
|
|
6066 | # The compiler can only warn and ignore the option if not recognized |
|
|
6067 | # So say no if there are warnings |
|
|
6068 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
6069 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
|
6070 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
|
6071 | lt_cv_prog_compiler_c_o=yes |
|
|
6072 | fi |
|
|
6073 | fi |
|
|
6074 | chmod u+w . 2>&5 |
|
|
6075 | $rm conftest* |
|
|
6076 | # SGI C++ compiler will create directory out/ii_files/ for |
|
|
6077 | # template instantiation |
|
|
6078 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
|
6079 | $rm out/* && rmdir out |
|
|
6080 | cd .. |
|
|
6081 | rmdir conftest |
|
|
6082 | $rm conftest* |
|
|
6083 | |
|
|
6084 | fi |
|
|
6085 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
|
|
6086 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
|
|
6087 | |
|
|
6088 | |
|
|
6089 | hard_links="nottested" |
|
|
6090 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
|
|
6091 | # do not overwrite the value of need_locks provided by the user |
|
|
6092 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
6093 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
6094 | hard_links=yes |
|
|
6095 | $rm conftest* |
|
|
6096 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
6097 | touch conftest.a |
|
|
6098 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
6099 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
6100 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
6101 | echo "${ECHO_T}$hard_links" >&6 |
|
|
6102 | if test "$hard_links" = no; then |
|
|
6103 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
6104 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
6105 | need_locks=warn |
|
|
6106 | fi |
|
|
6107 | else |
|
|
6108 | need_locks=no |
|
|
6109 | fi |
|
|
6110 | |
|
|
6111 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
6112 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
6113 | |
|
|
6114 | runpath_var= |
|
|
6115 | allow_undefined_flag= |
|
|
6116 | enable_shared_with_static_runtimes=no |
|
|
6117 | archive_cmds= |
|
|
6118 | archive_expsym_cmds= |
|
|
6119 | old_archive_From_new_cmds= |
|
|
6120 | old_archive_from_expsyms_cmds= |
|
|
6121 | export_dynamic_flag_spec= |
|
|
6122 | whole_archive_flag_spec= |
|
|
6123 | thread_safe_flag_spec= |
|
|
6124 | hardcode_libdir_flag_spec= |
|
|
6125 | hardcode_libdir_flag_spec_ld= |
|
|
6126 | hardcode_libdir_separator= |
|
|
6127 | hardcode_direct=no |
|
|
6128 | hardcode_minus_L=no |
|
|
6129 | hardcode_shlibpath_var=unsupported |
|
|
6130 | link_all_deplibs=unknown |
|
|
6131 | hardcode_automatic=no |
|
|
6132 | module_cmds= |
|
|
6133 | module_expsym_cmds= |
|
|
6134 | always_export_symbols=no |
|
|
6135 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
6136 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
6137 | # included in the symbol list |
|
|
6138 | include_expsyms= |
|
|
6139 | # exclude_expsyms can be an extended regexp of symbols to exclude |
|
|
6140 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
6141 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
6142 | # as well as any symbol that contains `d'. |
|
|
6143 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
|
6144 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
6145 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
6146 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
6147 | # rely on this symbol name, it's probably fine to never include it in |
|
|
6148 | # preloaded symbol tables. |
|
|
6149 | extract_expsyms_cmds= |
|
|
6150 | # Just being paranoid about ensuring that cc_basename is set. |
|
|
6151 | for cc_temp in $compiler""; do |
|
|
6152 | case $cc_temp in |
|
|
6153 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
6154 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
6155 | \-*) ;; |
|
|
6156 | *) break;; |
|
|
6157 | esac |
|
|
6158 | done |
|
|
6159 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
6160 | |
|
|
6161 | case $host_os in |
|
|
6162 | cygwin* | mingw* | pw32*) |
|
|
6163 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
6164 | # When not using gcc, we currently assume that we are using |
|
|
6165 | # Microsoft Visual C++. |
|
|
6166 | if test "$GCC" != yes; then |
|
|
6167 | with_gnu_ld=no |
|
|
6168 | fi |
|
|
6169 | ;; |
|
|
6170 | interix*) |
|
|
6171 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
|
6172 | with_gnu_ld=yes |
|
|
6173 | ;; |
|
|
6174 | openbsd*) |
|
|
6175 | with_gnu_ld=no |
|
|
6176 | ;; |
|
|
6177 | esac |
|
|
6178 | |
|
|
6179 | ld_shlibs=yes |
|
|
6180 | if test "$with_gnu_ld" = yes; then |
|
|
6181 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
6182 | wlarc='${wl}' |
|
|
6183 | |
|
|
6184 | # Set some defaults for GNU ld with shared library support. These |
|
|
6185 | # are reset later if shared libraries are not supported. Putting them |
|
|
6186 | # here allows them to be overridden if necessary. |
|
|
6187 | runpath_var=LD_RUN_PATH |
|
|
6188 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
|
6189 | export_dynamic_flag_spec='${wl}--export-dynamic' |
|
|
6190 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
6191 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
6192 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
6193 | else |
|
|
6194 | whole_archive_flag_spec= |
|
|
6195 | fi |
|
|
6196 | supports_anon_versioning=no |
|
|
6197 | case `$LD -v 2>/dev/null` in |
|
|
6198 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
6199 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
6200 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
6201 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
6202 | *) supports_anon_versioning=yes ;; |
|
|
6203 | esac |
|
|
6204 | |
|
|
6205 | # See if GNU ld supports shared libraries. |
|
|
6206 | case $host_os in |
|
|
6207 | aix3* | aix4* | aix5*) |
|
|
6208 | # On AIX/PPC, the GNU linker is very broken |
|
|
6209 | if test "$host_cpu" != ia64; then |
|
|
6210 | ld_shlibs=no |
|
|
6211 | cat <<EOF 1>&2 |
|
|
6212 | |
|
|
6213 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
6214 | *** to be unable to reliably create shared libraries on AIX. |
|
|
6215 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
6216 | *** really care for shared libraries, you may want to modify your PATH |
|
|
6217 | *** so that a non-GNU linker is found, and then restart. |
|
|
6218 | |
|
|
6219 | EOF |
|
|
6220 | fi |
|
|
6221 | ;; |
|
|
6222 | |
|
|
6223 | amigaos*) |
|
|
6224 | 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)' |
|
|
6225 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6226 | hardcode_minus_L=yes |
|
|
6227 | |
|
|
6228 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
6229 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
6230 | # to version 4, is to share data among multiple programs linked |
|
|
6231 | # with the same dynamic library. Since this doesn't match the |
|
|
6232 | # behavior of shared libraries on other platforms, we can't use |
|
|
6233 | # them. |
|
|
6234 | ld_shlibs=no |
|
|
6235 | ;; |
|
|
6236 | |
|
|
6237 | beos*) |
|
|
6238 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
6239 | allow_undefined_flag=unsupported |
|
|
6240 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
6241 | # support --undefined. This deserves some investigation. FIXME |
|
|
6242 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6243 | else |
|
|
6244 | ld_shlibs=no |
|
|
6245 | fi |
|
|
6246 | ;; |
|
|
6247 | |
|
|
6248 | cygwin* | mingw* | pw32*) |
|
|
6249 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
|
|
6250 | # as there is no search path for DLLs. |
|
|
6251 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6252 | allow_undefined_flag=unsupported |
|
|
6253 | always_export_symbols=no |
|
|
6254 | enable_shared_with_static_runtimes=yes |
|
|
6255 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
6256 | |
|
|
6257 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
|
6258 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
6259 | # If the export-symbols file already is a .def file (1st line |
|
|
6260 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
6261 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
6262 | cp $export_symbols $output_objdir/$soname.def; |
|
|
6263 | else |
|
|
6264 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
6265 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
6266 | fi~ |
|
|
6267 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
6268 | else |
|
|
6269 | ld_shlibs=no |
|
|
6270 | fi |
|
|
6271 | ;; |
|
|
6272 | |
|
|
6273 | interix3*) |
|
|
6274 | hardcode_direct=no |
|
|
6275 | hardcode_shlibpath_var=no |
|
|
6276 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
6277 | export_dynamic_flag_spec='${wl}-E' |
|
|
6278 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
|
6279 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
|
6280 | # default) and relocated if they conflict, which is a slow very memory |
|
|
6281 | # consuming and fragmenting process. To avoid this, we pick a random, |
|
|
6282 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
|
6283 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
|
6284 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
|
6285 | 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' |
|
|
6286 | ;; |
|
|
6287 | |
|
|
6288 | linux*) |
|
|
6289 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
6290 | tmp_addflag= |
|
|
6291 | case $cc_basename,$host_cpu in |
|
|
6292 | pgcc*) # Portland Group C compiler |
|
|
6293 | 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' |
|
|
6294 | tmp_addflag=' $pic_flag' |
|
|
6295 | ;; |
|
|
6296 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
|
6297 | 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' |
|
|
6298 | tmp_addflag=' $pic_flag -Mnomain' ;; |
|
|
6299 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
|
6300 | tmp_addflag=' -i_dynamic' ;; |
|
|
6301 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
|
6302 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
|
6303 | ifc* | ifort*) # Intel Fortran compiler |
|
|
6304 | tmp_addflag=' -nofor_main' ;; |
|
|
6305 | esac |
|
|
6306 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6307 | |
|
|
6308 | if test $supports_anon_versioning = yes; then |
|
|
6309 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
6310 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
6311 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
6312 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
6313 | fi |
|
|
6314 | link_all_deplibs=no |
|
|
6315 | else |
|
|
6316 | ld_shlibs=no |
|
|
6317 | fi |
|
|
6318 | ;; |
|
|
6319 | |
|
|
6320 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
6321 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6322 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
6323 | wlarc= |
|
|
6324 | else |
|
|
6325 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6326 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6327 | fi |
|
|
6328 | ;; |
|
|
6329 | |
|
|
6330 | solaris*) |
|
|
6331 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
|
6332 | ld_shlibs=no |
|
|
6333 | cat <<EOF 1>&2 |
|
|
6334 | |
|
|
6335 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
6336 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
6337 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
6338 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
6339 | *** your PATH or compiler configuration so that the native linker is |
|
|
6340 | *** used, and then restart. |
|
|
6341 | |
|
|
6342 | EOF |
|
|
6343 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
6344 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6345 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6346 | else |
|
|
6347 | ld_shlibs=no |
|
|
6348 | fi |
|
|
6349 | ;; |
|
|
6350 | |
|
|
6351 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
|
6352 | case `$LD -v 2>&1` in |
|
|
6353 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
|
6354 | ld_shlibs=no |
|
|
6355 | cat <<_LT_EOF 1>&2 |
|
|
6356 | |
|
|
6357 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
|
6358 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
|
6359 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
6360 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
|
6361 | *** your PATH or compiler configuration so that the native linker is |
|
|
6362 | *** used, and then restart. |
|
|
6363 | |
|
|
6364 | _LT_EOF |
|
|
6365 | ;; |
|
|
6366 | *) |
|
|
6367 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
6368 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
|
6369 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
|
6370 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
|
6371 | else |
|
|
6372 | ld_shlibs=no |
|
|
6373 | fi |
|
|
6374 | ;; |
|
|
6375 | esac |
|
|
6376 | ;; |
|
|
6377 | |
|
|
6378 | sunos4*) |
|
|
6379 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6380 | wlarc= |
|
|
6381 | hardcode_direct=yes |
|
|
6382 | hardcode_shlibpath_var=no |
|
|
6383 | ;; |
|
|
6384 | |
|
|
6385 | *) |
|
|
6386 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
6387 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6388 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6389 | else |
|
|
6390 | ld_shlibs=no |
|
|
6391 | fi |
|
|
6392 | ;; |
|
|
6393 | esac |
|
|
6394 | |
|
|
6395 | if test "$ld_shlibs" = no; then |
|
|
6396 | runpath_var= |
|
|
6397 | hardcode_libdir_flag_spec= |
|
|
6398 | export_dynamic_flag_spec= |
|
|
6399 | whole_archive_flag_spec= |
|
|
6400 | fi |
|
|
6401 | else |
|
|
6402 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
6403 | case $host_os in |
|
|
6404 | aix3*) |
|
|
6405 | allow_undefined_flag=unsupported |
|
|
6406 | always_export_symbols=yes |
|
|
6407 | 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' |
|
|
6408 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
6409 | # are no directories specified by -L. |
|
|
6410 | hardcode_minus_L=yes |
|
|
6411 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
|
|
6412 | # Neither direct hardcoding nor static linking is supported with a |
|
|
6413 | # broken collect2. |
|
|
6414 | hardcode_direct=unsupported |
|
|
6415 | fi |
|
|
6416 | ;; |
|
|
6417 | |
|
|
6418 | aix4* | aix5*) |
|
|
6419 | if test "$host_cpu" = ia64; then |
|
|
6420 | # On IA64, the linker does run time linking by default, so we don't |
|
|
6421 | # have to do anything special. |
|
|
6422 | aix_use_runtimelinking=no |
|
|
6423 | exp_sym_flag='-Bexport' |
|
|
6424 | no_entry_flag="" |
|
|
6425 | else |
|
|
6426 | # If we're using GNU nm, then we don't want the "-C" option. |
|
|
6427 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
|
6428 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
|
6429 | 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' |
|
|
6430 | else |
|
|
6431 | 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' |
|
|
6432 | fi |
|
|
6433 | aix_use_runtimelinking=no |
|
|
6434 | |
|
|
6435 | # Test if we are trying to use run time linking or normal |
|
|
6436 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
6437 | # need to do runtime linking. |
|
|
6438 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
6439 | for ld_flag in $LDFLAGS; do |
|
|
6440 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
|
6441 | aix_use_runtimelinking=yes |
|
|
6442 | break |
|
|
6443 | fi |
|
|
6444 | done |
|
|
6445 | ;; |
|
|
6446 | esac |
|
|
6447 | |
|
|
6448 | exp_sym_flag='-bexport' |
|
|
6449 | no_entry_flag='-bnoentry' |
|
|
6450 | fi |
|
|
6451 | |
|
|
6452 | # When large executables or shared objects are built, AIX ld can |
|
|
6453 | # have problems creating the table of contents. If linking a library |
|
|
6454 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
6455 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
6456 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
6457 | |
|
|
6458 | archive_cmds='' |
|
|
6459 | hardcode_direct=yes |
|
|
6460 | hardcode_libdir_separator=':' |
|
|
6461 | link_all_deplibs=yes |
|
|
6462 | |
|
|
6463 | if test "$GCC" = yes; then |
|
|
6464 | case $host_os in aix4.[012]|aix4.[012].*) |
|
|
6465 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
6466 | # below for broken collect2 doesn't work under 4.3+ |
|
|
6467 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
6468 | if test -f "$collect2name" && \ |
|
|
6469 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
6470 | then |
|
|
6471 | # We have reworked collect2 |
|
|
6472 | hardcode_direct=yes |
|
|
6473 | else |
|
|
6474 | # We have old collect2 |
|
|
6475 | hardcode_direct=unsupported |
|
|
6476 | # It fails to find uninstalled libraries when the uninstalled |
|
|
6477 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
6478 | # to unsupported forces relinking |
|
|
6479 | hardcode_minus_L=yes |
|
|
6480 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6481 | hardcode_libdir_separator= |
|
|
6482 | fi |
|
|
6483 | ;; |
|
|
6484 | esac |
|
|
6485 | shared_flag='-shared' |
|
|
6486 | if test "$aix_use_runtimelinking" = yes; then |
|
|
6487 | shared_flag="$shared_flag "'${wl}-G' |
|
|
6488 | fi |
|
|
6489 | else |
|
|
6490 | # not using gcc |
|
|
6491 | if test "$host_cpu" = ia64; then |
|
|
6492 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
6493 | # chokes on -Wl,-G. The following line is correct: |
|
|
6494 | shared_flag='-G' |
|
|
6495 | else |
|
|
6496 | if test "$aix_use_runtimelinking" = yes; then |
|
|
6497 | shared_flag='${wl}-G' |
|
|
6498 | else |
|
|
6499 | shared_flag='${wl}-bM:SRE' |
|
|
6500 | fi |
|
|
6501 | fi |
|
|
6502 | fi |
|
|
6503 | |
|
|
6504 | # It seems that -bexpall does not export symbols beginning with |
|
|
6505 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
6506 | always_export_symbols=yes |
|
|
6507 | if test "$aix_use_runtimelinking" = yes; then |
|
|
6508 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
6509 | # -berok will link without error, but may produce a broken library. |
|
|
6510 | allow_undefined_flag='-berok' |
|
|
6511 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
6512 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6513 | /* confdefs.h. */ |
|
|
6514 | _ACEOF |
|
|
6515 | cat confdefs.h >>conftest.$ac_ext |
|
|
6516 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6517 | /* end confdefs.h. */ |
|
|
6518 | |
|
|
6519 | int |
|
|
6520 | main () |
|
|
6521 | { |
|
|
6522 | |
|
|
6523 | ; |
|
|
6524 | return 0; |
|
|
6525 | } |
|
|
6526 | _ACEOF |
|
|
6527 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6529 | (eval $ac_link) 2>conftest.er1 |
|
|
6530 | ac_status=$? |
|
|
6531 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6532 | rm -f conftest.er1 |
|
|
6533 | cat conftest.err >&5 |
|
|
6534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6535 | (exit $ac_status); } && |
|
|
6536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
6537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6538 | (eval $ac_try) 2>&5 |
|
|
6539 | ac_status=$? |
|
|
6540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6541 | (exit $ac_status); }; } && |
|
|
6542 | { ac_try='test -s conftest$ac_exeext' |
|
|
6543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6544 | (eval $ac_try) 2>&5 |
|
|
6545 | ac_status=$? |
|
|
6546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6547 | (exit $ac_status); }; }; then |
|
|
6548 | |
|
|
6549 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
6550 | }'` |
|
|
6551 | # Check for a 64-bit object if we didn't find anything. |
|
|
6552 | 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; } |
|
|
6553 | }'`; fi |
|
|
6554 | else |
|
|
6555 | echo "$as_me: failed program was:" >&5 |
|
|
6556 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6557 | |
|
|
6558 | fi |
|
|
6559 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6560 | conftest$ac_exeext conftest.$ac_ext |
|
|
6561 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
6562 | |
|
|
6563 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
6564 | 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" |
|
|
6565 | else |
|
|
6566 | if test "$host_cpu" = ia64; then |
|
|
6567 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
|
|
6568 | allow_undefined_flag="-z nodefs" |
|
|
6569 | 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" |
|
|
6570 | else |
|
|
6571 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
6572 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6573 | /* confdefs.h. */ |
|
|
6574 | _ACEOF |
|
|
6575 | cat confdefs.h >>conftest.$ac_ext |
|
|
6576 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6577 | /* end confdefs.h. */ |
|
|
6578 | |
|
|
6579 | int |
|
|
6580 | main () |
|
|
6581 | { |
|
|
6582 | |
|
|
6583 | ; |
|
|
6584 | return 0; |
|
|
6585 | } |
|
|
6586 | _ACEOF |
|
|
6587 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6589 | (eval $ac_link) 2>conftest.er1 |
|
|
6590 | ac_status=$? |
|
|
6591 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6592 | rm -f conftest.er1 |
|
|
6593 | cat conftest.err >&5 |
|
|
6594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6595 | (exit $ac_status); } && |
|
|
6596 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
6597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6598 | (eval $ac_try) 2>&5 |
|
|
6599 | ac_status=$? |
|
|
6600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6601 | (exit $ac_status); }; } && |
|
|
6602 | { ac_try='test -s conftest$ac_exeext' |
|
|
6603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6604 | (eval $ac_try) 2>&5 |
|
|
6605 | ac_status=$? |
|
|
6606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6607 | (exit $ac_status); }; }; then |
|
|
6608 | |
|
|
6609 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
6610 | }'` |
|
|
6611 | # Check for a 64-bit object if we didn't find anything. |
|
|
6612 | 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; } |
|
|
6613 | }'`; fi |
|
|
6614 | else |
|
|
6615 | echo "$as_me: failed program was:" >&5 |
|
|
6616 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6617 | |
|
|
6618 | fi |
|
|
6619 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6620 | conftest$ac_exeext conftest.$ac_ext |
|
|
6621 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
6622 | |
|
|
6623 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
6624 | # Warning - without using the other run time loading flags, |
|
|
6625 | # -berok will link without error, but may produce a broken library. |
|
|
6626 | no_undefined_flag=' ${wl}-bernotok' |
|
|
6627 | allow_undefined_flag=' ${wl}-berok' |
|
|
6628 | # Exported symbols can be pulled into shared objects from archives |
|
|
6629 | whole_archive_flag_spec='$convenience' |
|
|
6630 | archive_cmds_need_lc=yes |
|
|
6631 | # This is similar to how AIX traditionally builds its shared libraries. |
|
|
6632 | 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' |
|
|
6633 | fi |
|
|
6634 | fi |
|
|
6635 | ;; |
|
|
6636 | |
|
|
6637 | amigaos*) |
|
|
6638 | 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)' |
|
|
6639 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6640 | hardcode_minus_L=yes |
|
|
6641 | # see comment about different semantics on the GNU ld section |
|
|
6642 | ld_shlibs=no |
|
|
6643 | ;; |
|
|
6644 | |
|
|
6645 | bsdi[45]*) |
|
|
6646 | export_dynamic_flag_spec=-rdynamic |
|
|
6647 | ;; |
|
|
6648 | |
|
|
6649 | cygwin* | mingw* | pw32*) |
|
|
6650 | # When not using gcc, we currently assume that we are using |
|
|
6651 | # Microsoft Visual C++. |
|
|
6652 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
6653 | # no search path for DLLs. |
|
|
6654 | hardcode_libdir_flag_spec=' ' |
|
|
6655 | allow_undefined_flag=unsupported |
|
|
6656 | # Tell ltmain to make .lib files, not .a files. |
|
|
6657 | libext=lib |
|
|
6658 | # Tell ltmain to make .dll files, not .so files. |
|
|
6659 | shrext_cmds=".dll" |
|
|
6660 | # FIXME: Setting linknames here is a bad hack. |
|
|
6661 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
6662 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
6663 | old_archive_From_new_cmds='true' |
|
|
6664 | # FIXME: Should let the user specify the lib program. |
|
|
6665 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
6666 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
|
6667 | enable_shared_with_static_runtimes=yes |
|
|
6668 | ;; |
|
|
6669 | |
|
|
6670 | darwin* | rhapsody*) |
|
|
6671 | case $host_os in |
|
|
6672 | rhapsody* | darwin1.[012]) |
|
|
6673 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
|
|
6674 | ;; |
|
|
6675 | *) # Darwin 1.3 on |
|
|
6676 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
6677 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
6678 | else |
|
|
6679 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
6680 | 10.[012]) |
|
|
6681 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
6682 | ;; |
|
|
6683 | 10.*) |
|
|
6684 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
|
|
6685 | ;; |
|
|
6686 | esac |
|
|
6687 | fi |
|
|
6688 | ;; |
|
|
6689 | esac |
|
|
6690 | archive_cmds_need_lc=no |
|
|
6691 | hardcode_direct=no |
|
|
6692 | hardcode_automatic=yes |
|
|
6693 | hardcode_shlibpath_var=unsupported |
|
|
6694 | whole_archive_flag_spec='' |
|
|
6695 | link_all_deplibs=yes |
|
|
6696 | if test "$GCC" = yes ; then |
|
|
6697 | output_verbose_link_cmd='echo' |
|
|
6698 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
6699 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
6700 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
6701 | 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}' |
|
|
6702 | 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}' |
|
|
6703 | else |
|
|
6704 | case $cc_basename in |
|
|
6705 | xlc*) |
|
|
6706 | output_verbose_link_cmd='echo' |
|
|
6707 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
6708 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
6709 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
6710 | 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}' |
|
|
6711 | 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}' |
|
|
6712 | ;; |
|
|
6713 | *) |
|
|
6714 | ld_shlibs=no |
|
|
6715 | ;; |
|
|
6716 | esac |
|
|
6717 | fi |
|
|
6718 | ;; |
|
|
6719 | |
|
|
6720 | dgux*) |
|
|
6721 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6722 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6723 | hardcode_shlibpath_var=no |
|
|
6724 | ;; |
|
|
6725 | |
|
|
6726 | freebsd1*) |
|
|
6727 | ld_shlibs=no |
|
|
6728 | ;; |
|
|
6729 | |
|
|
6730 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
6731 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
6732 | # does not break anything, and helps significantly (at the cost of a little |
|
|
6733 | # extra space). |
|
|
6734 | freebsd2.2*) |
|
|
6735 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
6736 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6737 | hardcode_direct=yes |
|
|
6738 | hardcode_shlibpath_var=no |
|
|
6739 | ;; |
|
|
6740 | |
|
|
6741 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
6742 | freebsd2*) |
|
|
6743 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6744 | hardcode_direct=yes |
|
|
6745 | hardcode_minus_L=yes |
|
|
6746 | hardcode_shlibpath_var=no |
|
|
6747 | ;; |
|
|
6748 | |
|
|
6749 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
6750 | freebsd* | dragonfly*) |
|
|
6751 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6752 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6753 | hardcode_direct=yes |
|
|
6754 | hardcode_shlibpath_var=no |
|
|
6755 | ;; |
|
|
6756 | |
|
|
6757 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. |
|
|
6758 | kfreebsd*-gnu) |
|
|
6759 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6760 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6761 | hardcode_direct=yes |
|
|
6762 | hardcode_shlibpath_var=no |
|
|
6763 | link_all_deplibs=no |
|
|
6764 | ;; |
|
|
6765 | |
|
|
6766 | hpux9*) |
|
|
6767 | if test "$GCC" = yes; then |
|
|
6768 | 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' |
|
|
6769 | else |
|
|
6770 | 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' |
|
|
6771 | fi |
|
|
6772 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
6773 | hardcode_libdir_separator=: |
|
|
6774 | hardcode_direct=yes |
|
|
6775 | |
|
|
6776 | # hardcode_minus_L: Not really in the search PATH, |
|
|
6777 | # but as the default location of the library. |
|
|
6778 | hardcode_minus_L=yes |
|
|
6779 | export_dynamic_flag_spec='${wl}-E' |
|
|
6780 | ;; |
|
|
6781 | |
|
|
6782 | hpux10*) |
|
|
6783 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
6784 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6785 | else |
|
|
6786 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
|
6787 | fi |
|
|
6788 | if test "$with_gnu_ld" = no; then |
|
|
6789 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
6790 | hardcode_libdir_separator=: |
|
|
6791 | |
|
|
6792 | hardcode_direct=yes |
|
|
6793 | export_dynamic_flag_spec='${wl}-E' |
|
|
6794 | |
|
|
6795 | # hardcode_minus_L: Not really in the search PATH, |
|
|
6796 | # but as the default location of the library. |
|
|
6797 | hardcode_minus_L=yes |
|
|
6798 | fi |
|
|
6799 | ;; |
|
|
6800 | |
|
|
6801 | hpux11*) |
|
|
6802 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
6803 | case $host_cpu in |
|
|
6804 | hppa*64*) |
|
|
6805 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6806 | ;; |
|
|
6807 | ia64*) |
|
|
6808 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6809 | ;; |
|
|
6810 | *) |
|
|
6811 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6812 | ;; |
|
|
6813 | esac |
|
|
6814 | else |
|
|
6815 | case $host_cpu in |
|
|
6816 | hppa*64*) |
|
|
6817 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6818 | ;; |
|
|
6819 | ia64*) |
|
|
6820 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6821 | ;; |
|
|
6822 | *) |
|
|
6823 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6824 | ;; |
|
|
6825 | esac |
|
|
6826 | fi |
|
|
6827 | if test "$with_gnu_ld" = no; then |
|
|
6828 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
6829 | hardcode_libdir_separator=: |
|
|
6830 | |
|
|
6831 | case $host_cpu in |
|
|
6832 | hppa*64*|ia64*) |
|
|
6833 | hardcode_libdir_flag_spec_ld='+b $libdir' |
|
|
6834 | hardcode_direct=no |
|
|
6835 | hardcode_shlibpath_var=no |
|
|
6836 | ;; |
|
|
6837 | *) |
|
|
6838 | hardcode_direct=yes |
|
|
6839 | export_dynamic_flag_spec='${wl}-E' |
|
|
6840 | |
|
|
6841 | # hardcode_minus_L: Not really in the search PATH, |
|
|
6842 | # but as the default location of the library. |
|
|
6843 | hardcode_minus_L=yes |
|
|
6844 | ;; |
|
|
6845 | esac |
|
|
6846 | fi |
|
|
6847 | ;; |
|
|
6848 | |
|
|
6849 | irix5* | irix6* | nonstopux*) |
|
|
6850 | if test "$GCC" = yes; then |
|
|
6851 | 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' |
|
|
6852 | else |
|
|
6853 | 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' |
|
|
6854 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
|
|
6855 | fi |
|
|
6856 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6857 | hardcode_libdir_separator=: |
|
|
6858 | link_all_deplibs=yes |
|
|
6859 | ;; |
|
|
6860 | |
|
|
6861 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
6862 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6863 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
6864 | else |
|
|
6865 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
6866 | fi |
|
|
6867 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6868 | hardcode_direct=yes |
|
|
6869 | hardcode_shlibpath_var=no |
|
|
6870 | ;; |
|
|
6871 | |
|
|
6872 | newsos6) |
|
|
6873 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6874 | hardcode_direct=yes |
|
|
6875 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6876 | hardcode_libdir_separator=: |
|
|
6877 | hardcode_shlibpath_var=no |
|
|
6878 | ;; |
|
|
6879 | |
|
|
6880 | openbsd*) |
|
|
6881 | hardcode_direct=yes |
|
|
6882 | hardcode_shlibpath_var=no |
|
|
6883 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
6884 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6885 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
|
6886 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
6887 | export_dynamic_flag_spec='${wl}-E' |
|
|
6888 | else |
|
|
6889 | case $host_os in |
|
|
6890 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
|
6891 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6892 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6893 | ;; |
|
|
6894 | *) |
|
|
6895 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6896 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
6897 | ;; |
|
|
6898 | esac |
|
|
6899 | fi |
|
|
6900 | ;; |
|
|
6901 | |
|
|
6902 | os2*) |
|
|
6903 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6904 | hardcode_minus_L=yes |
|
|
6905 | allow_undefined_flag=unsupported |
|
|
6906 | 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' |
|
|
6907 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
6908 | ;; |
|
|
6909 | |
|
|
6910 | osf3*) |
|
|
6911 | if test "$GCC" = yes; then |
|
|
6912 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6913 | 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' |
|
|
6914 | else |
|
|
6915 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6916 | 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' |
|
|
6917 | fi |
|
|
6918 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6919 | hardcode_libdir_separator=: |
|
|
6920 | ;; |
|
|
6921 | |
|
|
6922 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
6923 | if test "$GCC" = yes; then |
|
|
6924 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6925 | 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' |
|
|
6926 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6927 | else |
|
|
6928 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6929 | 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' |
|
|
6930 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
6931 | $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' |
|
|
6932 | |
|
|
6933 | # Both c and cxx compiler support -rpath directly |
|
|
6934 | hardcode_libdir_flag_spec='-rpath $libdir' |
|
|
6935 | fi |
|
|
6936 | hardcode_libdir_separator=: |
|
|
6937 | ;; |
|
|
6938 | |
|
|
6939 | solaris*) |
|
|
6940 | no_undefined_flag=' -z text' |
|
|
6941 | if test "$GCC" = yes; then |
|
|
6942 | wlarc='${wl}' |
|
|
6943 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6944 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6945 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
|
6946 | else |
|
|
6947 | wlarc='' |
|
|
6948 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6949 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6950 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
6951 | fi |
|
|
6952 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6953 | hardcode_shlibpath_var=no |
|
|
6954 | case $host_os in |
|
|
6955 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
6956 | *) |
|
|
6957 | # The compiler driver will combine linker options so we |
|
|
6958 | # cannot just pass the convience library names through |
|
|
6959 | # without $wl, iff we do not link with $LD. |
|
|
6960 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
|
|
6961 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
6962 | case $wlarc in |
|
|
6963 | '') |
|
|
6964 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
|
6965 | *) |
|
|
6966 | 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' ;; |
|
|
6967 | esac ;; |
|
|
6968 | esac |
|
|
6969 | link_all_deplibs=yes |
|
|
6970 | ;; |
|
|
6971 | |
|
|
6972 | sunos4*) |
|
|
6973 | if test "x$host_vendor" = xsequent; then |
|
|
6974 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
6975 | # files that make .init and .fini sections work. |
|
|
6976 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6977 | else |
|
|
6978 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
6979 | fi |
|
|
6980 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6981 | hardcode_direct=yes |
|
|
6982 | hardcode_minus_L=yes |
|
|
6983 | hardcode_shlibpath_var=no |
|
|
6984 | ;; |
|
|
6985 | |
|
|
6986 | sysv4) |
|
|
6987 | case $host_vendor in |
|
|
6988 | sni) |
|
|
6989 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6990 | hardcode_direct=yes # is this really true??? |
|
|
6991 | ;; |
|
|
6992 | siemens) |
|
|
6993 | ## LD is ld it makes a PLAMLIB |
|
|
6994 | ## CC just makes a GrossModule. |
|
|
6995 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
6996 | reload_cmds='$CC -r -o $output$reload_objs' |
|
|
6997 | hardcode_direct=no |
|
|
6998 | ;; |
|
|
6999 | motorola) |
|
|
7000 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
7001 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
|
7002 | ;; |
|
|
7003 | esac |
|
|
7004 | runpath_var='LD_RUN_PATH' |
|
|
7005 | hardcode_shlibpath_var=no |
|
|
7006 | ;; |
|
|
7007 | |
|
|
7008 | sysv4.3*) |
|
|
7009 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
7010 | hardcode_shlibpath_var=no |
|
|
7011 | export_dynamic_flag_spec='-Bexport' |
|
|
7012 | ;; |
|
|
7013 | |
|
|
7014 | sysv4*MP*) |
|
|
7015 | if test -d /usr/nec; then |
|
|
7016 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
7017 | hardcode_shlibpath_var=no |
|
|
7018 | runpath_var=LD_RUN_PATH |
|
|
7019 | hardcode_runpath_var=yes |
|
|
7020 | ld_shlibs=yes |
|
|
7021 | fi |
|
|
7022 | ;; |
|
|
7023 | |
|
|
7024 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
|
|
7025 | no_undefined_flag='${wl}-z,text' |
|
|
7026 | archive_cmds_need_lc=no |
|
|
7027 | hardcode_shlibpath_var=no |
|
|
7028 | runpath_var='LD_RUN_PATH' |
|
|
7029 | |
|
|
7030 | if test "$GCC" = yes; then |
|
|
7031 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7032 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7033 | else |
|
|
7034 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7035 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7036 | fi |
|
|
7037 | ;; |
|
|
7038 | |
|
|
7039 | sysv5* | sco3.2v5* | sco5v6*) |
|
|
7040 | # Note: We can NOT use -z defs as we might desire, because we do not |
|
|
7041 | # link with -lc, and that would cause any symbols used from libc to |
|
|
7042 | # always be unresolved, which means just about no library would |
|
|
7043 | # ever link correctly. If we're not using GNU ld we use -z text |
|
|
7044 | # though, which does catch some bad symbols but isn't as heavy-handed |
|
|
7045 | # as -z defs. |
|
|
7046 | no_undefined_flag='${wl}-z,text' |
|
|
7047 | allow_undefined_flag='${wl}-z,nodefs' |
|
|
7048 | archive_cmds_need_lc=no |
|
|
7049 | hardcode_shlibpath_var=no |
|
|
7050 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
|
7051 | hardcode_libdir_separator=':' |
|
|
7052 | link_all_deplibs=yes |
|
|
7053 | export_dynamic_flag_spec='${wl}-Bexport' |
|
|
7054 | runpath_var='LD_RUN_PATH' |
|
|
7055 | |
|
|
7056 | if test "$GCC" = yes; then |
|
|
7057 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7058 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7059 | else |
|
|
7060 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7061 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7062 | fi |
|
|
7063 | ;; |
|
|
7064 | |
|
|
7065 | uts4*) |
|
|
7066 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
7067 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
7068 | hardcode_shlibpath_var=no |
|
|
7069 | ;; |
|
|
7070 | |
|
|
7071 | *) |
|
|
7072 | ld_shlibs=no |
|
|
7073 | ;; |
|
|
7074 | esac |
|
|
7075 | fi |
|
|
7076 | |
|
|
7077 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
|
|
7078 | echo "${ECHO_T}$ld_shlibs" >&6 |
|
|
7079 | test "$ld_shlibs" = no && can_build_shared=no |
|
|
7080 | |
|
|
7081 | # |
|
|
7082 | # Do we need to explicitly link libc? |
|
|
7083 | # |
|
|
7084 | case "x$archive_cmds_need_lc" in |
|
|
7085 | x|xyes) |
|
|
7086 | # Assume -lc should be added |
|
|
7087 | archive_cmds_need_lc=yes |
|
|
7088 | |
|
|
7089 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
7090 | case $archive_cmds in |
|
|
7091 | *'~'*) |
|
|
7092 | # FIXME: we may have to deal with multi-command sequences. |
|
|
7093 | ;; |
|
|
7094 | '$CC '*) |
|
|
7095 | # Test whether the compiler implicitly links with -lc since on some |
|
|
7096 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
7097 | # to ld, don't add -lc before -lgcc. |
|
|
7098 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
7099 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
7100 | $rm conftest* |
|
|
7101 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
7102 | |
|
|
7103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7104 | (eval $ac_compile) 2>&5 |
|
|
7105 | ac_status=$? |
|
|
7106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7107 | (exit $ac_status); } 2>conftest.err; then |
|
|
7108 | soname=conftest |
|
|
7109 | lib=conftest |
|
|
7110 | libobjs=conftest.$ac_objext |
|
|
7111 | deplibs= |
|
|
7112 | wl=$lt_prog_compiler_wl |
|
|
7113 | pic_flag=$lt_prog_compiler_pic |
|
|
7114 | compiler_flags=-v |
|
|
7115 | linker_flags=-v |
|
|
7116 | verstring= |
|
|
7117 | output_objdir=. |
|
|
7118 | libname=conftest |
|
|
7119 | lt_save_allow_undefined_flag=$allow_undefined_flag |
|
|
7120 | allow_undefined_flag= |
|
|
7121 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
7122 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
7123 | ac_status=$? |
|
|
7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7125 | (exit $ac_status); } |
|
|
7126 | then |
|
|
7127 | archive_cmds_need_lc=no |
|
|
7128 | else |
|
|
7129 | archive_cmds_need_lc=yes |
|
|
7130 | fi |
|
|
7131 | allow_undefined_flag=$lt_save_allow_undefined_flag |
|
|
7132 | else |
|
|
7133 | cat conftest.err 1>&5 |
|
|
7134 | fi |
|
|
7135 | $rm conftest* |
|
|
7136 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
|
|
7137 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
|
|
7138 | ;; |
|
|
7139 | esac |
|
|
7140 | fi |
|
|
7141 | ;; |
|
|
7142 | esac |
|
|
7143 | |
|
|
7144 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
7145 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
7146 | library_names_spec= |
|
|
7147 | libname_spec='lib$name' |
|
|
7148 | soname_spec= |
|
|
7149 | shrext_cmds=".so" |
|
|
7150 | postinstall_cmds= |
|
|
7151 | postuninstall_cmds= |
|
|
7152 | finish_cmds= |
|
|
7153 | finish_eval= |
|
|
7154 | shlibpath_var= |
|
|
7155 | shlibpath_overrides_runpath=unknown |
|
|
7156 | version_type=none |
|
|
7157 | dynamic_linker="$host_os ld.so" |
|
|
7158 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
7159 | if test "$GCC" = yes; then |
|
|
7160 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
7161 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
|
7162 | # if the path contains ";" then we assume it to be the separator |
|
|
7163 | # otherwise default to the standard path separator (i.e. ":") - it is |
|
|
7164 | # assumed that no part of a normal pathname contains ";" but that should |
|
|
7165 | # okay in the real world where ";" in dirpaths is itself problematic. |
|
|
7166 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
7167 | else |
|
|
7168 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
7169 | fi |
|
|
7170 | else |
|
|
7171 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
7172 | fi |
|
|
7173 | need_lib_prefix=unknown |
|
|
7174 | hardcode_into_libs=no |
|
|
7175 | |
|
|
7176 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
7177 | # flags to be left without arguments |
|
|
7178 | need_version=unknown |
|
|
7179 | |
|
|
7180 | case $host_os in |
|
|
7181 | aix3*) |
|
|
7182 | version_type=linux |
|
|
7183 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
|
7184 | shlibpath_var=LIBPATH |
|
|
7185 | |
|
|
7186 | # AIX 3 has no versioning support, so we append a major version to the name. |
|
|
7187 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7188 | ;; |
|
|
7189 | |
|
|
7190 | aix4* | aix5*) |
|
|
7191 | version_type=linux |
|
|
7192 | need_lib_prefix=no |
|
|
7193 | need_version=no |
|
|
7194 | hardcode_into_libs=yes |
|
|
7195 | if test "$host_cpu" = ia64; then |
|
|
7196 | # AIX 5 supports IA64 |
|
|
7197 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
|
7198 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7199 | else |
|
|
7200 | # With GCC up to 2.95.x, collect2 would create an import file |
|
|
7201 | # for dependence libraries. The import file would start with |
|
|
7202 | # the line `#! .'. This would cause the generated library to |
|
|
7203 | # depend on `.', always an invalid library. This was fixed in |
|
|
7204 | # development snapshots of GCC prior to 3.0. |
|
|
7205 | case $host_os in |
|
|
7206 | aix4 | aix4.[01] | aix4.[01].*) |
|
|
7207 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
7208 | echo ' yes ' |
|
|
7209 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
7210 | : |
|
|
7211 | else |
|
|
7212 | can_build_shared=no |
|
|
7213 | fi |
|
|
7214 | ;; |
|
|
7215 | esac |
|
|
7216 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
|
7217 | # soname into executable. Probably we can add versioning support to |
|
|
7218 | # collect2, so additional links can be useful in future. |
|
|
7219 | if test "$aix_use_runtimelinking" = yes; then |
|
|
7220 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
7221 | # instead of lib<name>.a to let people know that these are not |
|
|
7222 | # typical AIX shared libraries. |
|
|
7223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7224 | else |
|
|
7225 | # We preserve .a as extension for shared libraries through AIX4.2 |
|
|
7226 | # and later when we are not doing run time linking. |
|
|
7227 | library_names_spec='${libname}${release}.a $libname.a' |
|
|
7228 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7229 | fi |
|
|
7230 | shlibpath_var=LIBPATH |
|
|
7231 | fi |
|
|
7232 | ;; |
|
|
7233 | |
|
|
7234 | amigaos*) |
|
|
7235 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
7236 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
7237 | 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' |
|
|
7238 | ;; |
|
|
7239 | |
|
|
7240 | beos*) |
|
|
7241 | library_names_spec='${libname}${shared_ext}' |
|
|
7242 | dynamic_linker="$host_os ld.so" |
|
|
7243 | shlibpath_var=LIBRARY_PATH |
|
|
7244 | ;; |
|
|
7245 | |
|
|
7246 | bsdi[45]*) |
|
|
7247 | version_type=linux |
|
|
7248 | need_version=no |
|
|
7249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7250 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7251 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
7252 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7253 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
7254 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
7255 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
7256 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
7257 | # libtool to hard-code these into programs |
|
|
7258 | ;; |
|
|
7259 | |
|
|
7260 | cygwin* | mingw* | pw32*) |
|
|
7261 | version_type=windows |
|
|
7262 | shrext_cmds=".dll" |
|
|
7263 | need_version=no |
|
|
7264 | need_lib_prefix=no |
|
|
7265 | |
|
|
7266 | case $GCC,$host_os in |
|
|
7267 | yes,cygwin* | yes,mingw* | yes,pw32*) |
|
|
7268 | library_names_spec='$libname.dll.a' |
|
|
7269 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
|
7270 | postinstall_cmds='base_file=`basename \${file}`~ |
|
|
7271 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
|
7272 | dldir=$destdir/`dirname \$dlpath`~ |
|
|
7273 | test -d \$dldir || mkdir -p \$dldir~ |
|
|
7274 | $install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
7275 | chmod a+x \$dldir/$dlname' |
|
|
7276 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
7277 | dlpath=$dir/\$dldll~ |
|
|
7278 | $rm \$dlpath' |
|
|
7279 | shlibpath_overrides_runpath=yes |
|
|
7280 | |
|
|
7281 | case $host_os in |
|
|
7282 | cygwin*) |
|
|
7283 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
|
7284 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
7285 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
|
7286 | ;; |
|
|
7287 | mingw*) |
|
|
7288 | # MinGW DLLs use traditional 'lib' prefix |
|
|
7289 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
7290 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
7291 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
|
7292 | # It is most probably a Windows format PATH printed by |
|
|
7293 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
|
7294 | # path with ; separators, and with drive letters. We can handle the |
|
|
7295 | # drive letters (cygwin fileutils understands them), so leave them, |
|
|
7296 | # especially as we might pass files found there to a mingw objdump, |
|
|
7297 | # which wouldn't understand a cygwinified path. Ahh. |
|
|
7298 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
7299 | else |
|
|
7300 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
7301 | fi |
|
|
7302 | ;; |
|
|
7303 | pw32*) |
|
|
7304 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
|
7305 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
7306 | ;; |
|
|
7307 | esac |
|
|
7308 | ;; |
|
|
7309 | |
|
|
7310 | *) |
|
|
7311 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
|
7312 | ;; |
|
|
7313 | esac |
|
|
7314 | dynamic_linker='Win32 ld.exe' |
|
|
7315 | # FIXME: first we should search . and the directory the executable is in |
|
|
7316 | shlibpath_var=PATH |
|
|
7317 | ;; |
|
|
7318 | |
|
|
7319 | darwin* | rhapsody*) |
|
|
7320 | dynamic_linker="$host_os dyld" |
|
|
7321 | version_type=darwin |
|
|
7322 | need_lib_prefix=no |
|
|
7323 | need_version=no |
|
|
7324 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
|
7325 | soname_spec='${libname}${release}${major}$shared_ext' |
|
|
7326 | shlibpath_overrides_runpath=yes |
|
|
7327 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
7328 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
|
7329 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
|
7330 | if test "$GCC" = yes; then |
|
|
7331 | 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"` |
|
|
7332 | else |
|
|
7333 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
|
7334 | fi |
|
|
7335 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
|
7336 | ;; |
|
|
7337 | |
|
|
7338 | dgux*) |
|
|
7339 | version_type=linux |
|
|
7340 | need_lib_prefix=no |
|
|
7341 | need_version=no |
|
|
7342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
|
7343 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7344 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7345 | ;; |
|
|
7346 | |
|
|
7347 | freebsd1*) |
|
|
7348 | dynamic_linker=no |
|
|
7349 | ;; |
|
|
7350 | |
|
|
7351 | kfreebsd*-gnu) |
|
|
7352 | version_type=linux |
|
|
7353 | need_lib_prefix=no |
|
|
7354 | need_version=no |
|
|
7355 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
7356 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7357 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7358 | shlibpath_overrides_runpath=no |
|
|
7359 | hardcode_into_libs=yes |
|
|
7360 | dynamic_linker='GNU ld.so' |
|
|
7361 | ;; |
|
|
7362 | |
|
|
7363 | freebsd* | dragonfly*) |
|
|
7364 | # DragonFly does not have aout. When/if they implement a new |
|
|
7365 | # versioning mechanism, adjust this. |
|
|
7366 | if test -x /usr/bin/objformat; then |
|
|
7367 | objformat=`/usr/bin/objformat` |
|
|
7368 | else |
|
|
7369 | case $host_os in |
|
|
7370 | freebsd[123]*) objformat=aout ;; |
|
|
7371 | *) objformat=elf ;; |
|
|
7372 | esac |
|
|
7373 | fi |
|
|
7374 | version_type=freebsd-$objformat |
|
|
7375 | case $version_type in |
|
|
7376 | freebsd-elf*) |
|
|
7377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
7378 | need_version=no |
|
|
7379 | need_lib_prefix=no |
|
|
7380 | ;; |
|
|
7381 | freebsd-*) |
|
|
7382 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
|
7383 | need_version=yes |
|
|
7384 | ;; |
|
|
7385 | esac |
|
|
7386 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7387 | case $host_os in |
|
|
7388 | freebsd2*) |
|
|
7389 | shlibpath_overrides_runpath=yes |
|
|
7390 | ;; |
|
|
7391 | freebsd3.[01]* | freebsdelf3.[01]*) |
|
|
7392 | shlibpath_overrides_runpath=yes |
|
|
7393 | hardcode_into_libs=yes |
|
|
7394 | ;; |
|
|
7395 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
|
7396 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
|
7397 | shlibpath_overrides_runpath=no |
|
|
7398 | hardcode_into_libs=yes |
|
|
7399 | ;; |
|
|
7400 | freebsd*) # from 4.6 on |
|
|
7401 | shlibpath_overrides_runpath=yes |
|
|
7402 | hardcode_into_libs=yes |
|
|
7403 | ;; |
|
|
7404 | esac |
|
|
7405 | ;; |
|
|
7406 | |
|
|
7407 | gnu*) |
|
|
7408 | version_type=linux |
|
|
7409 | need_lib_prefix=no |
|
|
7410 | need_version=no |
|
|
7411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
|
7412 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7413 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7414 | hardcode_into_libs=yes |
|
|
7415 | ;; |
|
|
7416 | |
|
|
7417 | hpux9* | hpux10* | hpux11*) |
|
|
7418 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
7419 | # link against other versions. |
|
|
7420 | version_type=sunos |
|
|
7421 | need_lib_prefix=no |
|
|
7422 | need_version=no |
|
|
7423 | case $host_cpu in |
|
|
7424 | ia64*) |
|
|
7425 | shrext_cmds='.so' |
|
|
7426 | hardcode_into_libs=yes |
|
|
7427 | dynamic_linker="$host_os dld.so" |
|
|
7428 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7429 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
7430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7431 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7432 | if test "X$HPUX_IA64_MODE" = X32; then |
|
|
7433 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
|
7434 | else |
|
|
7435 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
|
7436 | fi |
|
|
7437 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
7438 | ;; |
|
|
7439 | hppa*64*) |
|
|
7440 | shrext_cmds='.sl' |
|
|
7441 | hardcode_into_libs=yes |
|
|
7442 | dynamic_linker="$host_os dld.sl" |
|
|
7443 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
|
7444 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
7445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7446 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7447 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
|
7448 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
7449 | ;; |
|
|
7450 | *) |
|
|
7451 | shrext_cmds='.sl' |
|
|
7452 | dynamic_linker="$host_os dld.sl" |
|
|
7453 | shlibpath_var=SHLIB_PATH |
|
|
7454 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
7455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7456 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7457 | ;; |
|
|
7458 | esac |
|
|
7459 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
7460 | postinstall_cmds='chmod 555 $lib' |
|
|
7461 | ;; |
|
|
7462 | |
|
|
7463 | interix3*) |
|
|
7464 | version_type=linux |
|
|
7465 | need_lib_prefix=no |
|
|
7466 | need_version=no |
|
|
7467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
7468 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7469 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
|
7470 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7471 | shlibpath_overrides_runpath=no |
|
|
7472 | hardcode_into_libs=yes |
|
|
7473 | ;; |
|
|
7474 | |
|
|
7475 | irix5* | irix6* | nonstopux*) |
|
|
7476 | case $host_os in |
|
|
7477 | nonstopux*) version_type=nonstopux ;; |
|
|
7478 | *) |
|
|
7479 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
7480 | version_type=linux |
|
|
7481 | else |
|
|
7482 | version_type=irix |
|
|
7483 | fi ;; |
|
|
7484 | esac |
|
|
7485 | need_lib_prefix=no |
|
|
7486 | need_version=no |
|
|
7487 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
7489 | case $host_os in |
|
|
7490 | irix5* | nonstopux*) |
|
|
7491 | libsuff= shlibsuff= |
|
|
7492 | ;; |
|
|
7493 | *) |
|
|
7494 | case $LD in # libtool.m4 will add one of these switches to LD |
|
|
7495 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
|
7496 | libsuff= shlibsuff= libmagic=32-bit;; |
|
|
7497 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
|
7498 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
7499 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
|
7500 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
7501 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
7502 | esac |
|
|
7503 | ;; |
|
|
7504 | esac |
|
|
7505 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
7506 | shlibpath_overrides_runpath=no |
|
|
7507 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
7508 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
7509 | hardcode_into_libs=yes |
|
|
7510 | ;; |
|
|
7511 | |
|
|
7512 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
7513 | linux*oldld* | linux*aout* | linux*coff*) |
|
|
7514 | dynamic_linker=no |
|
|
7515 | ;; |
|
|
7516 | |
|
|
7517 | # This must be Linux ELF. |
|
|
7518 | linux*) |
|
|
7519 | version_type=linux |
|
|
7520 | need_lib_prefix=no |
|
|
7521 | need_version=no |
|
|
7522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7523 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7524 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
7525 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7526 | shlibpath_overrides_runpath=no |
|
|
7527 | # This implies no fast_install, which is unacceptable. |
|
|
7528 | # Some rework will be needed to allow for fast_install |
|
|
7529 | # before this can be enabled. |
|
|
7530 | hardcode_into_libs=yes |
|
|
7531 | |
|
|
7532 | # Append ld.so.conf contents to the search path |
|
|
7533 | if test -f /etc/ld.so.conf; then |
|
|
7534 | 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' ' '` |
|
|
7535 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
|
7536 | fi |
|
|
7537 | |
|
|
7538 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
7539 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
7540 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
7541 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
7542 | # people can always --disable-shared, the test was removed, and we |
|
|
7543 | # assume the GNU/Linux dynamic linker is in use. |
|
|
7544 | dynamic_linker='GNU/Linux ld.so' |
|
|
7545 | ;; |
|
|
7546 | |
|
|
7547 | netbsdelf*-gnu) |
|
|
7548 | version_type=linux |
|
|
7549 | need_lib_prefix=no |
|
|
7550 | need_version=no |
|
|
7551 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
7552 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7553 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7554 | shlibpath_overrides_runpath=no |
|
|
7555 | hardcode_into_libs=yes |
|
|
7556 | dynamic_linker='NetBSD ld.elf_so' |
|
|
7557 | ;; |
|
|
7558 | |
|
|
7559 | knetbsd*-gnu) |
|
|
7560 | version_type=linux |
|
|
7561 | need_lib_prefix=no |
|
|
7562 | need_version=no |
|
|
7563 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
7564 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7565 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7566 | shlibpath_overrides_runpath=no |
|
|
7567 | hardcode_into_libs=yes |
|
|
7568 | dynamic_linker='GNU ld.so' |
|
|
7569 | ;; |
|
|
7570 | |
|
|
7571 | netbsd*) |
|
|
7572 | version_type=sunos |
|
|
7573 | need_lib_prefix=no |
|
|
7574 | need_version=no |
|
|
7575 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
7576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
7577 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
7578 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
7579 | else |
|
|
7580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
7581 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7582 | dynamic_linker='NetBSD ld.elf_so' |
|
|
7583 | fi |
|
|
7584 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7585 | shlibpath_overrides_runpath=yes |
|
|
7586 | hardcode_into_libs=yes |
|
|
7587 | ;; |
|
|
7588 | |
|
|
7589 | newsos6) |
|
|
7590 | version_type=linux |
|
|
7591 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7592 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7593 | shlibpath_overrides_runpath=yes |
|
|
7594 | ;; |
|
|
7595 | |
|
|
7596 | nto-qnx*) |
|
|
7597 | version_type=linux |
|
|
7598 | need_lib_prefix=no |
|
|
7599 | need_version=no |
|
|
7600 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7601 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7602 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7603 | shlibpath_overrides_runpath=yes |
|
|
7604 | ;; |
|
|
7605 | |
|
|
7606 | openbsd*) |
|
|
7607 | version_type=sunos |
|
|
7608 | sys_lib_dlsearch_path_spec="/usr/lib" |
|
|
7609 | need_lib_prefix=no |
|
|
7610 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
7611 | case $host_os in |
|
|
7612 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
|
7613 | *) need_version=no ;; |
|
|
7614 | esac |
|
|
7615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
7616 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
7617 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7618 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
7619 | case $host_os in |
|
|
7620 | openbsd2.[89] | openbsd2.[89].*) |
|
|
7621 | shlibpath_overrides_runpath=no |
|
|
7622 | ;; |
|
|
7623 | *) |
|
|
7624 | shlibpath_overrides_runpath=yes |
|
|
7625 | ;; |
|
|
7626 | esac |
|
|
7627 | else |
|
|
7628 | shlibpath_overrides_runpath=yes |
|
|
7629 | fi |
|
|
7630 | ;; |
|
|
7631 | |
|
|
7632 | os2*) |
|
|
7633 | libname_spec='$name' |
|
|
7634 | shrext_cmds=".dll" |
|
|
7635 | need_lib_prefix=no |
|
|
7636 | library_names_spec='$libname${shared_ext} $libname.a' |
|
|
7637 | dynamic_linker='OS/2 ld.exe' |
|
|
7638 | shlibpath_var=LIBPATH |
|
|
7639 | ;; |
|
|
7640 | |
|
|
7641 | osf3* | osf4* | osf5*) |
|
|
7642 | version_type=osf |
|
|
7643 | need_lib_prefix=no |
|
|
7644 | need_version=no |
|
|
7645 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7647 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7648 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
7649 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
7650 | ;; |
|
|
7651 | |
|
|
7652 | solaris*) |
|
|
7653 | version_type=linux |
|
|
7654 | need_lib_prefix=no |
|
|
7655 | need_version=no |
|
|
7656 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7657 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7658 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7659 | shlibpath_overrides_runpath=yes |
|
|
7660 | hardcode_into_libs=yes |
|
|
7661 | # ldd complains unless libraries are executable |
|
|
7662 | postinstall_cmds='chmod +x $lib' |
|
|
7663 | ;; |
|
|
7664 | |
|
|
7665 | sunos4*) |
|
|
7666 | version_type=sunos |
|
|
7667 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
7668 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
7669 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7670 | shlibpath_overrides_runpath=yes |
|
|
7671 | if test "$with_gnu_ld" = yes; then |
|
|
7672 | need_lib_prefix=no |
|
|
7673 | fi |
|
|
7674 | need_version=yes |
|
|
7675 | ;; |
|
|
7676 | |
|
|
7677 | sysv4 | sysv4.3*) |
|
|
7678 | version_type=linux |
|
|
7679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7680 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7681 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7682 | case $host_vendor in |
|
|
7683 | sni) |
|
|
7684 | shlibpath_overrides_runpath=no |
|
|
7685 | need_lib_prefix=no |
|
|
7686 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
7687 | runpath_var=LD_RUN_PATH |
|
|
7688 | ;; |
|
|
7689 | siemens) |
|
|
7690 | need_lib_prefix=no |
|
|
7691 | ;; |
|
|
7692 | motorola) |
|
|
7693 | need_lib_prefix=no |
|
|
7694 | need_version=no |
|
|
7695 | shlibpath_overrides_runpath=no |
|
|
7696 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
7697 | ;; |
|
|
7698 | esac |
|
|
7699 | ;; |
|
|
7700 | |
|
|
7701 | sysv4*MP*) |
|
|
7702 | if test -d /usr/nec ;then |
|
|
7703 | version_type=linux |
|
|
7704 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
|
7705 | soname_spec='$libname${shared_ext}.$major' |
|
|
7706 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7707 | fi |
|
|
7708 | ;; |
|
|
7709 | |
|
|
7710 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
7711 | version_type=freebsd-elf |
|
|
7712 | need_lib_prefix=no |
|
|
7713 | need_version=no |
|
|
7714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
7715 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7716 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7717 | hardcode_into_libs=yes |
|
|
7718 | if test "$with_gnu_ld" = yes; then |
|
|
7719 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
|
7720 | shlibpath_overrides_runpath=no |
|
|
7721 | else |
|
|
7722 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
|
7723 | shlibpath_overrides_runpath=yes |
|
|
7724 | case $host_os in |
|
|
7725 | sco3.2v5*) |
|
|
7726 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
|
7727 | ;; |
|
|
7728 | esac |
|
|
7729 | fi |
|
|
7730 | sys_lib_dlsearch_path_spec='/usr/lib' |
|
|
7731 | ;; |
|
|
7732 | |
|
|
7733 | uts4*) |
|
|
7734 | version_type=linux |
|
|
7735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7736 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7737 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7738 | ;; |
|
|
7739 | |
|
|
7740 | *) |
|
|
7741 | dynamic_linker=no |
|
|
7742 | ;; |
|
|
7743 | esac |
|
|
7744 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
7745 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
7746 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
7747 | |
|
|
7748 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
7749 | if test "$GCC" = yes; then |
|
|
7750 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
7751 | fi |
|
|
7752 | |
|
|
7753 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
7754 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
7755 | hardcode_action= |
|
|
7756 | if test -n "$hardcode_libdir_flag_spec" || \ |
|
|
7757 | test -n "$runpath_var" || \ |
|
|
7758 | test "X$hardcode_automatic" = "Xyes" ; then |
|
|
7759 | |
|
|
7760 | # We can hardcode non-existant directories. |
|
|
7761 | if test "$hardcode_direct" != no && |
|
|
7762 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
7763 | # have to relink, otherwise we might link with an installed library |
|
|
7764 | # when we should be linking with a yet-to-be-installed one |
|
|
7765 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
|
|
7766 | test "$hardcode_minus_L" != no; then |
|
|
7767 | # Linking always hardcodes the temporary library directory. |
|
|
7768 | hardcode_action=relink |
|
|
7769 | else |
|
|
7770 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
7771 | hardcode_action=immediate |
|
|
7772 | fi |
|
|
7773 | else |
|
|
7774 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
7775 | # directories. |
|
|
7776 | hardcode_action=unsupported |
|
|
7777 | fi |
|
|
7778 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
|
7779 | echo "${ECHO_T}$hardcode_action" >&6 |
|
|
7780 | |
|
|
7781 | if test "$hardcode_action" = relink; then |
|
|
7782 | # Fast installation is not supported |
|
|
7783 | enable_fast_install=no |
|
|
7784 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
7785 | test "$enable_shared" = no; then |
|
|
7786 | # Fast installation is not necessary |
|
|
7787 | enable_fast_install=needless |
|
|
7788 | fi |
|
|
7789 | |
|
|
7790 | striplib= |
|
|
7791 | old_striplib= |
|
|
7792 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
7793 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
7794 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
7795 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
7796 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
7797 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
7798 | echo "${ECHO_T}yes" >&6 |
|
|
7799 | else |
|
|
7800 | # FIXME - insert some real tests, host_os isn't really good enough |
|
|
7801 | case $host_os in |
|
|
7802 | darwin*) |
|
|
7803 | if test -n "$STRIP" ; then |
|
|
7804 | striplib="$STRIP -x" |
|
|
7805 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
7806 | echo "${ECHO_T}yes" >&6 |
|
|
7807 | else |
|
|
7808 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
7809 | echo "${ECHO_T}no" >&6 |
|
|
7810 | fi |
|
|
7811 | ;; |
|
|
7812 | *) |
|
|
7813 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
7814 | echo "${ECHO_T}no" >&6 |
|
|
7815 | ;; |
|
|
7816 | esac |
|
|
7817 | fi |
|
|
7818 | |
|
|
7819 | if test "x$enable_dlopen" != xyes; then |
|
|
7820 | enable_dlopen=unknown |
|
|
7821 | enable_dlopen_self=unknown |
|
|
7822 | enable_dlopen_self_static=unknown |
|
|
7823 | else |
|
|
7824 | lt_cv_dlopen=no |
|
|
7825 | lt_cv_dlopen_libs= |
|
|
7826 | |
|
|
7827 | case $host_os in |
|
|
7828 | beos*) |
|
|
7829 | lt_cv_dlopen="load_add_on" |
|
|
7830 | lt_cv_dlopen_libs= |
|
|
7831 | lt_cv_dlopen_self=yes |
|
|
7832 | ;; |
|
|
7833 | |
|
|
7834 | mingw* | pw32*) |
|
|
7835 | lt_cv_dlopen="LoadLibrary" |
|
|
7836 | lt_cv_dlopen_libs= |
|
|
7837 | ;; |
|
|
7838 | |
|
|
7839 | cygwin*) |
|
|
7840 | lt_cv_dlopen="dlopen" |
|
|
7841 | lt_cv_dlopen_libs= |
|
|
7842 | ;; |
|
|
7843 | |
|
|
7844 | darwin*) |
|
|
7845 | # if libdl is installed we need to link against it |
|
|
7846 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
7847 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
7848 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
7849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7850 | else |
|
|
7851 | ac_check_lib_save_LIBS=$LIBS |
|
|
7852 | LIBS="-ldl $LIBS" |
|
|
7853 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7854 | /* confdefs.h. */ |
|
|
7855 | _ACEOF |
|
|
7856 | cat confdefs.h >>conftest.$ac_ext |
|
|
7857 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7858 | /* end confdefs.h. */ |
|
|
7859 | |
|
|
7860 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7861 | #ifdef __cplusplus |
|
|
7862 | extern "C" |
|
|
7863 | #endif |
|
|
7864 | /* We use char because int might match the return type of a gcc2 |
|
|
7865 | builtin and then its argument prototype would still apply. */ |
|
|
7866 | char dlopen (); |
|
|
7867 | int |
|
|
7868 | main () |
|
|
7869 | { |
|
|
7870 | dlopen (); |
|
|
7871 | ; |
|
|
7872 | return 0; |
|
|
7873 | } |
|
|
7874 | _ACEOF |
|
|
7875 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7877 | (eval $ac_link) 2>conftest.er1 |
|
|
7878 | ac_status=$? |
|
|
7879 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7880 | rm -f conftest.er1 |
|
|
7881 | cat conftest.err >&5 |
|
|
7882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7883 | (exit $ac_status); } && |
|
|
7884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
7885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7886 | (eval $ac_try) 2>&5 |
|
|
7887 | ac_status=$? |
|
|
7888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7889 | (exit $ac_status); }; } && |
|
|
7890 | { ac_try='test -s conftest$ac_exeext' |
|
|
7891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7892 | (eval $ac_try) 2>&5 |
|
|
7893 | ac_status=$? |
|
|
7894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7895 | (exit $ac_status); }; }; then |
|
|
7896 | ac_cv_lib_dl_dlopen=yes |
|
|
7897 | else |
|
|
7898 | echo "$as_me: failed program was:" >&5 |
|
|
7899 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7900 | |
|
|
7901 | ac_cv_lib_dl_dlopen=no |
|
|
7902 | fi |
|
|
7903 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7904 | conftest$ac_exeext conftest.$ac_ext |
|
|
7905 | LIBS=$ac_check_lib_save_LIBS |
|
|
7906 | fi |
|
|
7907 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
7908 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
7909 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
7910 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
7911 | else |
|
|
7912 | |
|
|
7913 | lt_cv_dlopen="dyld" |
|
|
7914 | lt_cv_dlopen_libs= |
|
|
7915 | lt_cv_dlopen_self=yes |
|
|
7916 | |
|
|
7917 | fi |
|
|
7918 | |
|
|
7919 | ;; |
|
|
7920 | |
|
|
7921 | *) |
|
|
7922 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
|
7923 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
2304 | if test "${ac_cv_header_stdc+set}" = set; then |
7924 | if test "${ac_cv_func_shl_load+set}" = set; then |
2305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2306 | else |
7926 | else |
2307 | cat >conftest.$ac_ext <<_ACEOF |
7927 | cat >conftest.$ac_ext <<_ACEOF |
2308 | /* confdefs.h. */ |
7928 | /* confdefs.h. */ |
2309 | _ACEOF |
7929 | _ACEOF |
2310 | cat confdefs.h >>conftest.$ac_ext |
7930 | cat confdefs.h >>conftest.$ac_ext |
2311 | cat >>conftest.$ac_ext <<_ACEOF |
7931 | cat >>conftest.$ac_ext <<_ACEOF |
2312 | /* end confdefs.h. */ |
7932 | /* end confdefs.h. */ |
2313 | #include <stdlib.h> |
7933 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
2314 | #include <stdarg.h> |
7934 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
2315 | #include <string.h> |
7935 | #define shl_load innocuous_shl_load |
|
|
7936 | |
|
|
7937 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
7938 | which can conflict with char shl_load (); below. |
|
|
7939 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
7940 | <limits.h> exists even on freestanding compilers. */ |
|
|
7941 | |
|
|
7942 | #ifdef __STDC__ |
2316 | #include <float.h> |
7943 | # include <limits.h> |
|
|
7944 | #else |
|
|
7945 | # include <assert.h> |
|
|
7946 | #endif |
|
|
7947 | |
|
|
7948 | #undef shl_load |
|
|
7949 | |
|
|
7950 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7951 | #ifdef __cplusplus |
|
|
7952 | extern "C" |
|
|
7953 | { |
|
|
7954 | #endif |
|
|
7955 | /* We use char because int might match the return type of a gcc2 |
|
|
7956 | builtin and then its argument prototype would still apply. */ |
|
|
7957 | char shl_load (); |
|
|
7958 | /* The GNU C library defines this for functions which it implements |
|
|
7959 | to always fail with ENOSYS. Some functions are actually named |
|
|
7960 | something starting with __ and the normal name is an alias. */ |
|
|
7961 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
|
7962 | choke me |
|
|
7963 | #else |
|
|
7964 | char (*f) () = shl_load; |
|
|
7965 | #endif |
|
|
7966 | #ifdef __cplusplus |
|
|
7967 | } |
|
|
7968 | #endif |
2317 | |
7969 | |
2318 | int |
7970 | int |
2319 | main () |
7971 | main () |
2320 | { |
7972 | { |
2321 | |
7973 | return f != shl_load; |
2322 | ; |
7974 | ; |
2323 | return 0; |
7975 | return 0; |
2324 | } |
7976 | } |
2325 | _ACEOF |
7977 | _ACEOF |
2326 | rm -f conftest.$ac_objext |
7978 | rm -f conftest.$ac_objext conftest$ac_exeext |
2327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2328 | (eval $ac_compile) 2>conftest.er1 |
7980 | (eval $ac_link) 2>conftest.er1 |
|
|
7981 | ac_status=$? |
|
|
7982 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7983 | rm -f conftest.er1 |
|
|
7984 | cat conftest.err >&5 |
|
|
7985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7986 | (exit $ac_status); } && |
|
|
7987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
7988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7989 | (eval $ac_try) 2>&5 |
|
|
7990 | ac_status=$? |
|
|
7991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7992 | (exit $ac_status); }; } && |
|
|
7993 | { ac_try='test -s conftest$ac_exeext' |
|
|
7994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7995 | (eval $ac_try) 2>&5 |
|
|
7996 | ac_status=$? |
|
|
7997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7998 | (exit $ac_status); }; }; then |
|
|
7999 | ac_cv_func_shl_load=yes |
|
|
8000 | else |
|
|
8001 | echo "$as_me: failed program was:" >&5 |
|
|
8002 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8003 | |
|
|
8004 | ac_cv_func_shl_load=no |
|
|
8005 | fi |
|
|
8006 | rm -f conftest.err conftest.$ac_objext \ |
|
|
8007 | conftest$ac_exeext conftest.$ac_ext |
|
|
8008 | fi |
|
|
8009 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
|
8010 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
|
8011 | if test $ac_cv_func_shl_load = yes; then |
|
|
8012 | lt_cv_dlopen="shl_load" |
|
|
8013 | else |
|
|
8014 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
|
8015 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
|
8016 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
8017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8018 | else |
|
|
8019 | ac_check_lib_save_LIBS=$LIBS |
|
|
8020 | LIBS="-ldld $LIBS" |
|
|
8021 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8022 | /* confdefs.h. */ |
|
|
8023 | _ACEOF |
|
|
8024 | cat confdefs.h >>conftest.$ac_ext |
|
|
8025 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8026 | /* end confdefs.h. */ |
|
|
8027 | |
|
|
8028 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
8029 | #ifdef __cplusplus |
|
|
8030 | extern "C" |
|
|
8031 | #endif |
|
|
8032 | /* We use char because int might match the return type of a gcc2 |
|
|
8033 | builtin and then its argument prototype would still apply. */ |
|
|
8034 | char shl_load (); |
|
|
8035 | int |
|
|
8036 | main () |
|
|
8037 | { |
|
|
8038 | shl_load (); |
|
|
8039 | ; |
|
|
8040 | return 0; |
|
|
8041 | } |
|
|
8042 | _ACEOF |
|
|
8043 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
8044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8045 | (eval $ac_link) 2>conftest.er1 |
|
|
8046 | ac_status=$? |
|
|
8047 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8048 | rm -f conftest.er1 |
|
|
8049 | cat conftest.err >&5 |
|
|
8050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8051 | (exit $ac_status); } && |
|
|
8052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
8053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8054 | (eval $ac_try) 2>&5 |
|
|
8055 | ac_status=$? |
|
|
8056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8057 | (exit $ac_status); }; } && |
|
|
8058 | { ac_try='test -s conftest$ac_exeext' |
|
|
8059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8060 | (eval $ac_try) 2>&5 |
|
|
8061 | ac_status=$? |
|
|
8062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8063 | (exit $ac_status); }; }; then |
|
|
8064 | ac_cv_lib_dld_shl_load=yes |
|
|
8065 | else |
|
|
8066 | echo "$as_me: failed program was:" >&5 |
|
|
8067 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8068 | |
|
|
8069 | ac_cv_lib_dld_shl_load=no |
|
|
8070 | fi |
|
|
8071 | rm -f conftest.err conftest.$ac_objext \ |
|
|
8072 | conftest$ac_exeext conftest.$ac_ext |
|
|
8073 | LIBS=$ac_check_lib_save_LIBS |
|
|
8074 | fi |
|
|
8075 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
|
8076 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
|
8077 | if test $ac_cv_lib_dld_shl_load = yes; then |
|
|
8078 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
|
8079 | else |
|
|
8080 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
8081 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
|
8082 | if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
8083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8084 | else |
|
|
8085 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8086 | /* confdefs.h. */ |
|
|
8087 | _ACEOF |
|
|
8088 | cat confdefs.h >>conftest.$ac_ext |
|
|
8089 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8090 | /* end confdefs.h. */ |
|
|
8091 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
|
8092 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
8093 | #define dlopen innocuous_dlopen |
|
|
8094 | |
|
|
8095 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
8096 | which can conflict with char dlopen (); below. |
|
|
8097 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
8098 | <limits.h> exists even on freestanding compilers. */ |
|
|
8099 | |
|
|
8100 | #ifdef __STDC__ |
|
|
8101 | # include <limits.h> |
|
|
8102 | #else |
|
|
8103 | # include <assert.h> |
|
|
8104 | #endif |
|
|
8105 | |
|
|
8106 | #undef dlopen |
|
|
8107 | |
|
|
8108 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
8109 | #ifdef __cplusplus |
|
|
8110 | extern "C" |
|
|
8111 | { |
|
|
8112 | #endif |
|
|
8113 | /* We use char because int might match the return type of a gcc2 |
|
|
8114 | builtin and then its argument prototype would still apply. */ |
|
|
8115 | char dlopen (); |
|
|
8116 | /* The GNU C library defines this for functions which it implements |
|
|
8117 | to always fail with ENOSYS. Some functions are actually named |
|
|
8118 | something starting with __ and the normal name is an alias. */ |
|
|
8119 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
|
|
8120 | choke me |
|
|
8121 | #else |
|
|
8122 | char (*f) () = dlopen; |
|
|
8123 | #endif |
|
|
8124 | #ifdef __cplusplus |
|
|
8125 | } |
|
|
8126 | #endif |
|
|
8127 | |
|
|
8128 | int |
|
|
8129 | main () |
|
|
8130 | { |
|
|
8131 | return f != dlopen; |
|
|
8132 | ; |
|
|
8133 | return 0; |
|
|
8134 | } |
|
|
8135 | _ACEOF |
|
|
8136 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
8137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8138 | (eval $ac_link) 2>conftest.er1 |
|
|
8139 | ac_status=$? |
|
|
8140 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8141 | rm -f conftest.er1 |
|
|
8142 | cat conftest.err >&5 |
|
|
8143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8144 | (exit $ac_status); } && |
|
|
8145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
8146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8147 | (eval $ac_try) 2>&5 |
|
|
8148 | ac_status=$? |
|
|
8149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8150 | (exit $ac_status); }; } && |
|
|
8151 | { ac_try='test -s conftest$ac_exeext' |
|
|
8152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8153 | (eval $ac_try) 2>&5 |
|
|
8154 | ac_status=$? |
|
|
8155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8156 | (exit $ac_status); }; }; then |
|
|
8157 | ac_cv_func_dlopen=yes |
|
|
8158 | else |
|
|
8159 | echo "$as_me: failed program was:" >&5 |
|
|
8160 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8161 | |
|
|
8162 | ac_cv_func_dlopen=no |
|
|
8163 | fi |
|
|
8164 | rm -f conftest.err conftest.$ac_objext \ |
|
|
8165 | conftest$ac_exeext conftest.$ac_ext |
|
|
8166 | fi |
|
|
8167 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
|
8168 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
|
8169 | if test $ac_cv_func_dlopen = yes; then |
|
|
8170 | lt_cv_dlopen="dlopen" |
|
|
8171 | else |
|
|
8172 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
8173 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
8174 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
8175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8176 | else |
|
|
8177 | ac_check_lib_save_LIBS=$LIBS |
|
|
8178 | LIBS="-ldl $LIBS" |
|
|
8179 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8180 | /* confdefs.h. */ |
|
|
8181 | _ACEOF |
|
|
8182 | cat confdefs.h >>conftest.$ac_ext |
|
|
8183 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8184 | /* end confdefs.h. */ |
|
|
8185 | |
|
|
8186 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
8187 | #ifdef __cplusplus |
|
|
8188 | extern "C" |
|
|
8189 | #endif |
|
|
8190 | /* We use char because int might match the return type of a gcc2 |
|
|
8191 | builtin and then its argument prototype would still apply. */ |
|
|
8192 | char dlopen (); |
|
|
8193 | int |
|
|
8194 | main () |
|
|
8195 | { |
|
|
8196 | dlopen (); |
|
|
8197 | ; |
|
|
8198 | return 0; |
|
|
8199 | } |
|
|
8200 | _ACEOF |
|
|
8201 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
8202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8203 | (eval $ac_link) 2>conftest.er1 |
|
|
8204 | ac_status=$? |
|
|
8205 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8206 | rm -f conftest.er1 |
|
|
8207 | cat conftest.err >&5 |
|
|
8208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8209 | (exit $ac_status); } && |
|
|
8210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
8211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8212 | (eval $ac_try) 2>&5 |
|
|
8213 | ac_status=$? |
|
|
8214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8215 | (exit $ac_status); }; } && |
|
|
8216 | { ac_try='test -s conftest$ac_exeext' |
|
|
8217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8218 | (eval $ac_try) 2>&5 |
|
|
8219 | ac_status=$? |
|
|
8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8221 | (exit $ac_status); }; }; then |
|
|
8222 | ac_cv_lib_dl_dlopen=yes |
|
|
8223 | else |
|
|
8224 | echo "$as_me: failed program was:" >&5 |
|
|
8225 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8226 | |
|
|
8227 | ac_cv_lib_dl_dlopen=no |
|
|
8228 | fi |
|
|
8229 | rm -f conftest.err conftest.$ac_objext \ |
|
|
8230 | conftest$ac_exeext conftest.$ac_ext |
|
|
8231 | LIBS=$ac_check_lib_save_LIBS |
|
|
8232 | fi |
|
|
8233 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
8234 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
8235 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
8236 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
8237 | else |
|
|
8238 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
8239 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
|
8240 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
8241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8242 | else |
|
|
8243 | ac_check_lib_save_LIBS=$LIBS |
|
|
8244 | LIBS="-lsvld $LIBS" |
|
|
8245 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8246 | /* confdefs.h. */ |
|
|
8247 | _ACEOF |
|
|
8248 | cat confdefs.h >>conftest.$ac_ext |
|
|
8249 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8250 | /* end confdefs.h. */ |
|
|
8251 | |
|
|
8252 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
8253 | #ifdef __cplusplus |
|
|
8254 | extern "C" |
|
|
8255 | #endif |
|
|
8256 | /* We use char because int might match the return type of a gcc2 |
|
|
8257 | builtin and then its argument prototype would still apply. */ |
|
|
8258 | char dlopen (); |
|
|
8259 | int |
|
|
8260 | main () |
|
|
8261 | { |
|
|
8262 | dlopen (); |
|
|
8263 | ; |
|
|
8264 | return 0; |
|
|
8265 | } |
|
|
8266 | _ACEOF |
|
|
8267 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
8268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8269 | (eval $ac_link) 2>conftest.er1 |
|
|
8270 | ac_status=$? |
|
|
8271 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8272 | rm -f conftest.er1 |
|
|
8273 | cat conftest.err >&5 |
|
|
8274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8275 | (exit $ac_status); } && |
|
|
8276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
8277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8278 | (eval $ac_try) 2>&5 |
|
|
8279 | ac_status=$? |
|
|
8280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8281 | (exit $ac_status); }; } && |
|
|
8282 | { ac_try='test -s conftest$ac_exeext' |
|
|
8283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8284 | (eval $ac_try) 2>&5 |
|
|
8285 | ac_status=$? |
|
|
8286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8287 | (exit $ac_status); }; }; then |
|
|
8288 | ac_cv_lib_svld_dlopen=yes |
|
|
8289 | else |
|
|
8290 | echo "$as_me: failed program was:" >&5 |
|
|
8291 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8292 | |
|
|
8293 | ac_cv_lib_svld_dlopen=no |
|
|
8294 | fi |
|
|
8295 | rm -f conftest.err conftest.$ac_objext \ |
|
|
8296 | conftest$ac_exeext conftest.$ac_ext |
|
|
8297 | LIBS=$ac_check_lib_save_LIBS |
|
|
8298 | fi |
|
|
8299 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
|
8300 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
|
8301 | if test $ac_cv_lib_svld_dlopen = yes; then |
|
|
8302 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
|
8303 | else |
|
|
8304 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
|
8305 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
|
|
8306 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
|
8307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8308 | else |
|
|
8309 | ac_check_lib_save_LIBS=$LIBS |
|
|
8310 | LIBS="-ldld $LIBS" |
|
|
8311 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8312 | /* confdefs.h. */ |
|
|
8313 | _ACEOF |
|
|
8314 | cat confdefs.h >>conftest.$ac_ext |
|
|
8315 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8316 | /* end confdefs.h. */ |
|
|
8317 | |
|
|
8318 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
8319 | #ifdef __cplusplus |
|
|
8320 | extern "C" |
|
|
8321 | #endif |
|
|
8322 | /* We use char because int might match the return type of a gcc2 |
|
|
8323 | builtin and then its argument prototype would still apply. */ |
|
|
8324 | char dld_link (); |
|
|
8325 | int |
|
|
8326 | main () |
|
|
8327 | { |
|
|
8328 | dld_link (); |
|
|
8329 | ; |
|
|
8330 | return 0; |
|
|
8331 | } |
|
|
8332 | _ACEOF |
|
|
8333 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
8334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8335 | (eval $ac_link) 2>conftest.er1 |
|
|
8336 | ac_status=$? |
|
|
8337 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8338 | rm -f conftest.er1 |
|
|
8339 | cat conftest.err >&5 |
|
|
8340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8341 | (exit $ac_status); } && |
|
|
8342 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
8343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8344 | (eval $ac_try) 2>&5 |
|
|
8345 | ac_status=$? |
|
|
8346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8347 | (exit $ac_status); }; } && |
|
|
8348 | { ac_try='test -s conftest$ac_exeext' |
|
|
8349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8350 | (eval $ac_try) 2>&5 |
|
|
8351 | ac_status=$? |
|
|
8352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8353 | (exit $ac_status); }; }; then |
|
|
8354 | ac_cv_lib_dld_dld_link=yes |
|
|
8355 | else |
|
|
8356 | echo "$as_me: failed program was:" >&5 |
|
|
8357 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8358 | |
|
|
8359 | ac_cv_lib_dld_dld_link=no |
|
|
8360 | fi |
|
|
8361 | rm -f conftest.err conftest.$ac_objext \ |
|
|
8362 | conftest$ac_exeext conftest.$ac_ext |
|
|
8363 | LIBS=$ac_check_lib_save_LIBS |
|
|
8364 | fi |
|
|
8365 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
|
8366 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
|
8367 | if test $ac_cv_lib_dld_dld_link = yes; then |
|
|
8368 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
8369 | fi |
|
|
8370 | |
|
|
8371 | |
|
|
8372 | fi |
|
|
8373 | |
|
|
8374 | |
|
|
8375 | fi |
|
|
8376 | |
|
|
8377 | |
|
|
8378 | fi |
|
|
8379 | |
|
|
8380 | |
|
|
8381 | fi |
|
|
8382 | |
|
|
8383 | |
|
|
8384 | fi |
|
|
8385 | |
|
|
8386 | ;; |
|
|
8387 | esac |
|
|
8388 | |
|
|
8389 | if test "x$lt_cv_dlopen" != xno; then |
|
|
8390 | enable_dlopen=yes |
|
|
8391 | else |
|
|
8392 | enable_dlopen=no |
|
|
8393 | fi |
|
|
8394 | |
|
|
8395 | case $lt_cv_dlopen in |
|
|
8396 | dlopen) |
|
|
8397 | save_CPPFLAGS="$CPPFLAGS" |
|
|
8398 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
|
8399 | |
|
|
8400 | save_LDFLAGS="$LDFLAGS" |
|
|
8401 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
|
8402 | |
|
|
8403 | save_LIBS="$LIBS" |
|
|
8404 | LIBS="$lt_cv_dlopen_libs $LIBS" |
|
|
8405 | |
|
|
8406 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
|
8407 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
|
8408 | if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
8409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8410 | else |
|
|
8411 | if test "$cross_compiling" = yes; then : |
|
|
8412 | lt_cv_dlopen_self=cross |
|
|
8413 | else |
|
|
8414 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
8415 | lt_status=$lt_dlunknown |
|
|
8416 | cat > conftest.$ac_ext <<EOF |
|
|
8417 | #line 8417 "configure" |
|
|
8418 | #include "confdefs.h" |
|
|
8419 | |
|
|
8420 | #if HAVE_DLFCN_H |
|
|
8421 | #include <dlfcn.h> |
|
|
8422 | #endif |
|
|
8423 | |
|
|
8424 | #include <stdio.h> |
|
|
8425 | |
|
|
8426 | #ifdef RTLD_GLOBAL |
|
|
8427 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
8428 | #else |
|
|
8429 | # ifdef DL_GLOBAL |
|
|
8430 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
8431 | # else |
|
|
8432 | # define LT_DLGLOBAL 0 |
|
|
8433 | # endif |
|
|
8434 | #endif |
|
|
8435 | |
|
|
8436 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
8437 | find out it does not work in some platform. */ |
|
|
8438 | #ifndef LT_DLLAZY_OR_NOW |
|
|
8439 | # ifdef RTLD_LAZY |
|
|
8440 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
8441 | # else |
|
|
8442 | # ifdef DL_LAZY |
|
|
8443 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
8444 | # else |
|
|
8445 | # ifdef RTLD_NOW |
|
|
8446 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
8447 | # else |
|
|
8448 | # ifdef DL_NOW |
|
|
8449 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
8450 | # else |
|
|
8451 | # define LT_DLLAZY_OR_NOW 0 |
|
|
8452 | # endif |
|
|
8453 | # endif |
|
|
8454 | # endif |
|
|
8455 | # endif |
|
|
8456 | #endif |
|
|
8457 | |
|
|
8458 | #ifdef __cplusplus |
|
|
8459 | extern "C" void exit (int); |
|
|
8460 | #endif |
|
|
8461 | |
|
|
8462 | void fnord() { int i=42;} |
|
|
8463 | int main () |
|
|
8464 | { |
|
|
8465 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
8466 | int status = $lt_dlunknown; |
|
|
8467 | |
|
|
8468 | if (self) |
|
|
8469 | { |
|
|
8470 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
8471 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
8472 | /* dlclose (self); */ |
|
|
8473 | } |
|
|
8474 | else |
|
|
8475 | puts (dlerror ()); |
|
|
8476 | |
|
|
8477 | exit (status); |
|
|
8478 | } |
|
|
8479 | EOF |
|
|
8480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8481 | (eval $ac_link) 2>&5 |
|
|
8482 | ac_status=$? |
|
|
8483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8484 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
8485 | (./conftest; exit; ) >&5 2>/dev/null |
|
|
8486 | lt_status=$? |
|
|
8487 | case x$lt_status in |
|
|
8488 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
8489 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
8490 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
|
|
8491 | esac |
|
|
8492 | else : |
|
|
8493 | # compilation failed |
|
|
8494 | lt_cv_dlopen_self=no |
|
|
8495 | fi |
|
|
8496 | fi |
|
|
8497 | rm -fr conftest* |
|
|
8498 | |
|
|
8499 | |
|
|
8500 | fi |
|
|
8501 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
|
8502 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
|
8503 | |
|
|
8504 | if test "x$lt_cv_dlopen_self" = xyes; then |
|
|
8505 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
|
|
8506 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
8507 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
|
8508 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
8509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8510 | else |
|
|
8511 | if test "$cross_compiling" = yes; then : |
|
|
8512 | lt_cv_dlopen_self_static=cross |
|
|
8513 | else |
|
|
8514 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
8515 | lt_status=$lt_dlunknown |
|
|
8516 | cat > conftest.$ac_ext <<EOF |
|
|
8517 | #line 8517 "configure" |
|
|
8518 | #include "confdefs.h" |
|
|
8519 | |
|
|
8520 | #if HAVE_DLFCN_H |
|
|
8521 | #include <dlfcn.h> |
|
|
8522 | #endif |
|
|
8523 | |
|
|
8524 | #include <stdio.h> |
|
|
8525 | |
|
|
8526 | #ifdef RTLD_GLOBAL |
|
|
8527 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
8528 | #else |
|
|
8529 | # ifdef DL_GLOBAL |
|
|
8530 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
8531 | # else |
|
|
8532 | # define LT_DLGLOBAL 0 |
|
|
8533 | # endif |
|
|
8534 | #endif |
|
|
8535 | |
|
|
8536 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
8537 | find out it does not work in some platform. */ |
|
|
8538 | #ifndef LT_DLLAZY_OR_NOW |
|
|
8539 | # ifdef RTLD_LAZY |
|
|
8540 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
8541 | # else |
|
|
8542 | # ifdef DL_LAZY |
|
|
8543 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
8544 | # else |
|
|
8545 | # ifdef RTLD_NOW |
|
|
8546 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
8547 | # else |
|
|
8548 | # ifdef DL_NOW |
|
|
8549 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
8550 | # else |
|
|
8551 | # define LT_DLLAZY_OR_NOW 0 |
|
|
8552 | # endif |
|
|
8553 | # endif |
|
|
8554 | # endif |
|
|
8555 | # endif |
|
|
8556 | #endif |
|
|
8557 | |
|
|
8558 | #ifdef __cplusplus |
|
|
8559 | extern "C" void exit (int); |
|
|
8560 | #endif |
|
|
8561 | |
|
|
8562 | void fnord() { int i=42;} |
|
|
8563 | int main () |
|
|
8564 | { |
|
|
8565 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
8566 | int status = $lt_dlunknown; |
|
|
8567 | |
|
|
8568 | if (self) |
|
|
8569 | { |
|
|
8570 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
8571 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
8572 | /* dlclose (self); */ |
|
|
8573 | } |
|
|
8574 | else |
|
|
8575 | puts (dlerror ()); |
|
|
8576 | |
|
|
8577 | exit (status); |
|
|
8578 | } |
|
|
8579 | EOF |
|
|
8580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8581 | (eval $ac_link) 2>&5 |
|
|
8582 | ac_status=$? |
|
|
8583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8584 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
8585 | (./conftest; exit; ) >&5 2>/dev/null |
|
|
8586 | lt_status=$? |
|
|
8587 | case x$lt_status in |
|
|
8588 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
8589 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
8590 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
8591 | esac |
|
|
8592 | else : |
|
|
8593 | # compilation failed |
|
|
8594 | lt_cv_dlopen_self_static=no |
|
|
8595 | fi |
|
|
8596 | fi |
|
|
8597 | rm -fr conftest* |
|
|
8598 | |
|
|
8599 | |
|
|
8600 | fi |
|
|
8601 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
|
8602 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
|
8603 | fi |
|
|
8604 | |
|
|
8605 | CPPFLAGS="$save_CPPFLAGS" |
|
|
8606 | LDFLAGS="$save_LDFLAGS" |
|
|
8607 | LIBS="$save_LIBS" |
|
|
8608 | ;; |
|
|
8609 | esac |
|
|
8610 | |
|
|
8611 | case $lt_cv_dlopen_self in |
|
|
8612 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
|
8613 | *) enable_dlopen_self=unknown ;; |
|
|
8614 | esac |
|
|
8615 | |
|
|
8616 | case $lt_cv_dlopen_self_static in |
|
|
8617 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
8618 | *) enable_dlopen_self_static=unknown ;; |
|
|
8619 | esac |
|
|
8620 | fi |
|
|
8621 | |
|
|
8622 | |
|
|
8623 | # Report which library types will actually be built |
|
|
8624 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
|
8625 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
|
8626 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
8627 | echo "${ECHO_T}$can_build_shared" >&6 |
|
|
8628 | |
|
|
8629 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
|
8630 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
|
|
8631 | test "$can_build_shared" = "no" && enable_shared=no |
|
|
8632 | |
|
|
8633 | # On AIX, shared libraries and static libraries use the same namespace, and |
|
|
8634 | # are all built from PIC. |
|
|
8635 | case $host_os in |
|
|
8636 | aix3*) |
|
|
8637 | test "$enable_shared" = yes && enable_static=no |
|
|
8638 | if test -n "$RANLIB"; then |
|
|
8639 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
|
8640 | postinstall_cmds='$RANLIB $lib' |
|
|
8641 | fi |
|
|
8642 | ;; |
|
|
8643 | |
|
|
8644 | aix4* | aix5*) |
|
|
8645 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
|
8646 | test "$enable_shared" = yes && enable_static=no |
|
|
8647 | fi |
|
|
8648 | ;; |
|
|
8649 | esac |
|
|
8650 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
|
8651 | echo "${ECHO_T}$enable_shared" >&6 |
|
|
8652 | |
|
|
8653 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
|
8654 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
|
|
8655 | # Make sure either enable_shared or enable_static is yes. |
|
|
8656 | test "$enable_shared" = yes || enable_static=yes |
|
|
8657 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
|
8658 | echo "${ECHO_T}$enable_static" >&6 |
|
|
8659 | |
|
|
8660 | # The else clause should only fire when bootstrapping the |
|
|
8661 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
8662 | # with your package, and you will get complaints that there are |
|
|
8663 | # no rules to generate ltmain.sh. |
|
|
8664 | if test -f "$ltmain"; then |
|
|
8665 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
8666 | # without removal of \ escapes. |
|
|
8667 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
8668 | setopt NO_GLOB_SUBST |
|
|
8669 | fi |
|
|
8670 | # Now quote all the things that may contain metacharacters while being |
|
|
8671 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
8672 | # variables and quote the copies for generation of the libtool script. |
|
|
8673 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
|
8674 | SED SHELL STRIP \ |
|
|
8675 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
8676 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
8677 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
8678 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
8679 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
8680 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
8681 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
8682 | compiler \ |
|
|
8683 | CC \ |
|
|
8684 | LD \ |
|
|
8685 | lt_prog_compiler_wl \ |
|
|
8686 | lt_prog_compiler_pic \ |
|
|
8687 | lt_prog_compiler_static \ |
|
|
8688 | lt_prog_compiler_no_builtin_flag \ |
|
|
8689 | export_dynamic_flag_spec \ |
|
|
8690 | thread_safe_flag_spec \ |
|
|
8691 | whole_archive_flag_spec \ |
|
|
8692 | enable_shared_with_static_runtimes \ |
|
|
8693 | old_archive_cmds \ |
|
|
8694 | old_archive_from_new_cmds \ |
|
|
8695 | predep_objects \ |
|
|
8696 | postdep_objects \ |
|
|
8697 | predeps \ |
|
|
8698 | postdeps \ |
|
|
8699 | compiler_lib_search_path \ |
|
|
8700 | archive_cmds \ |
|
|
8701 | archive_expsym_cmds \ |
|
|
8702 | postinstall_cmds \ |
|
|
8703 | postuninstall_cmds \ |
|
|
8704 | old_archive_from_expsyms_cmds \ |
|
|
8705 | allow_undefined_flag \ |
|
|
8706 | no_undefined_flag \ |
|
|
8707 | export_symbols_cmds \ |
|
|
8708 | hardcode_libdir_flag_spec \ |
|
|
8709 | hardcode_libdir_flag_spec_ld \ |
|
|
8710 | hardcode_libdir_separator \ |
|
|
8711 | hardcode_automatic \ |
|
|
8712 | module_cmds \ |
|
|
8713 | module_expsym_cmds \ |
|
|
8714 | lt_cv_prog_compiler_c_o \ |
|
|
8715 | exclude_expsyms \ |
|
|
8716 | include_expsyms; do |
|
|
8717 | |
|
|
8718 | case $var in |
|
|
8719 | old_archive_cmds | \ |
|
|
8720 | old_archive_from_new_cmds | \ |
|
|
8721 | archive_cmds | \ |
|
|
8722 | archive_expsym_cmds | \ |
|
|
8723 | module_cmds | \ |
|
|
8724 | module_expsym_cmds | \ |
|
|
8725 | old_archive_from_expsyms_cmds | \ |
|
|
8726 | export_symbols_cmds | \ |
|
|
8727 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
8728 | postinstall_cmds | postuninstall_cmds | \ |
|
|
8729 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
8730 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
8731 | # Double-quote double-evaled strings. |
|
|
8732 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
8733 | ;; |
|
|
8734 | *) |
|
|
8735 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
8736 | ;; |
|
|
8737 | esac |
|
|
8738 | done |
|
|
8739 | |
|
|
8740 | case $lt_echo in |
|
|
8741 | *'\$0 --fallback-echo"') |
|
|
8742 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
8743 | ;; |
|
|
8744 | esac |
|
|
8745 | |
|
|
8746 | cfgfile="${ofile}T" |
|
|
8747 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
|
|
8748 | $rm -f "$cfgfile" |
|
|
8749 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
|
|
8750 | echo "$as_me: creating $ofile" >&6;} |
|
|
8751 | |
|
|
8752 | cat <<__EOF__ >> "$cfgfile" |
|
|
8753 | #! $SHELL |
|
|
8754 | |
|
|
8755 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
|
8756 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
|
8757 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
8758 | # |
|
|
8759 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
|
|
8760 | # Free Software Foundation, Inc. |
|
|
8761 | # |
|
|
8762 | # This file is part of GNU Libtool: |
|
|
8763 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
8764 | # |
|
|
8765 | # This program is free software; you can redistribute it and/or modify |
|
|
8766 | # it under the terms of the GNU General Public License as published by |
|
|
8767 | # the Free Software Foundation; either version 2 of the License, or |
|
|
8768 | # (at your option) any later version. |
|
|
8769 | # |
|
|
8770 | # This program is distributed in the hope that it will be useful, but |
|
|
8771 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
8772 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
8773 | # General Public License for more details. |
|
|
8774 | # |
|
|
8775 | # You should have received a copy of the GNU General Public License |
|
|
8776 | # along with this program; if not, write to the Free Software |
|
|
8777 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
|
8778 | # |
|
|
8779 | # As a special exception to the GNU General Public License, if you |
|
|
8780 | # distribute this file as part of a program that contains a |
|
|
8781 | # configuration script generated by Autoconf, you may include it under |
|
|
8782 | # the same distribution terms that you use for the rest of that program. |
|
|
8783 | |
|
|
8784 | # A sed program that does not truncate output. |
|
|
8785 | SED=$lt_SED |
|
|
8786 | |
|
|
8787 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
8788 | Xsed="$SED -e 1s/^X//" |
|
|
8789 | |
|
|
8790 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
8791 | # if CDPATH is set. |
|
|
8792 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
|
8793 | |
|
|
8794 | # The names of the tagged configurations supported by this script. |
|
|
8795 | available_tags= |
|
|
8796 | |
|
|
8797 | # ### BEGIN LIBTOOL CONFIG |
|
|
8798 | |
|
|
8799 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
8800 | |
|
|
8801 | # Shell to use when invoking shell scripts. |
|
|
8802 | SHELL=$lt_SHELL |
|
|
8803 | |
|
|
8804 | # Whether or not to build shared libraries. |
|
|
8805 | build_libtool_libs=$enable_shared |
|
|
8806 | |
|
|
8807 | # Whether or not to build static libraries. |
|
|
8808 | build_old_libs=$enable_static |
|
|
8809 | |
|
|
8810 | # Whether or not to add -lc for building shared libraries. |
|
|
8811 | build_libtool_need_lc=$archive_cmds_need_lc |
|
|
8812 | |
|
|
8813 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
8814 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
|
|
8815 | |
|
|
8816 | # Whether or not to optimize for fast installation. |
|
|
8817 | fast_install=$enable_fast_install |
|
|
8818 | |
|
|
8819 | # The host system. |
|
|
8820 | host_alias=$host_alias |
|
|
8821 | host=$host |
|
|
8822 | host_os=$host_os |
|
|
8823 | |
|
|
8824 | # The build system. |
|
|
8825 | build_alias=$build_alias |
|
|
8826 | build=$build |
|
|
8827 | build_os=$build_os |
|
|
8828 | |
|
|
8829 | # An echo program that does not interpret backslashes. |
|
|
8830 | echo=$lt_echo |
|
|
8831 | |
|
|
8832 | # The archiver. |
|
|
8833 | AR=$lt_AR |
|
|
8834 | AR_FLAGS=$lt_AR_FLAGS |
|
|
8835 | |
|
|
8836 | # A C compiler. |
|
|
8837 | LTCC=$lt_LTCC |
|
|
8838 | |
|
|
8839 | # LTCC compiler flags. |
|
|
8840 | LTCFLAGS=$lt_LTCFLAGS |
|
|
8841 | |
|
|
8842 | # A language-specific compiler. |
|
|
8843 | CC=$lt_compiler |
|
|
8844 | |
|
|
8845 | # Is the compiler the GNU C compiler? |
|
|
8846 | with_gcc=$GCC |
|
|
8847 | |
|
|
8848 | # An ERE matcher. |
|
|
8849 | EGREP=$lt_EGREP |
|
|
8850 | |
|
|
8851 | # The linker used to build libraries. |
|
|
8852 | LD=$lt_LD |
|
|
8853 | |
|
|
8854 | # Whether we need hard or soft links. |
|
|
8855 | LN_S=$lt_LN_S |
|
|
8856 | |
|
|
8857 | # A BSD-compatible nm program. |
|
|
8858 | NM=$lt_NM |
|
|
8859 | |
|
|
8860 | # A symbol stripping program |
|
|
8861 | STRIP=$lt_STRIP |
|
|
8862 | |
|
|
8863 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
8864 | MAGIC_CMD=$MAGIC_CMD |
|
|
8865 | |
|
|
8866 | # Used on cygwin: DLL creation program. |
|
|
8867 | DLLTOOL="$DLLTOOL" |
|
|
8868 | |
|
|
8869 | # Used on cygwin: object dumper. |
|
|
8870 | OBJDUMP="$OBJDUMP" |
|
|
8871 | |
|
|
8872 | # Used on cygwin: assembler. |
|
|
8873 | AS="$AS" |
|
|
8874 | |
|
|
8875 | # The name of the directory that contains temporary libtool files. |
|
|
8876 | objdir=$objdir |
|
|
8877 | |
|
|
8878 | # How to create reloadable object files. |
|
|
8879 | reload_flag=$lt_reload_flag |
|
|
8880 | reload_cmds=$lt_reload_cmds |
|
|
8881 | |
|
|
8882 | # How to pass a linker flag through the compiler. |
|
|
8883 | wl=$lt_lt_prog_compiler_wl |
|
|
8884 | |
|
|
8885 | # Object file suffix (normally "o"). |
|
|
8886 | objext="$ac_objext" |
|
|
8887 | |
|
|
8888 | # Old archive suffix (normally "a"). |
|
|
8889 | libext="$libext" |
|
|
8890 | |
|
|
8891 | # Shared library suffix (normally ".so"). |
|
|
8892 | shrext_cmds='$shrext_cmds' |
|
|
8893 | |
|
|
8894 | # Executable file suffix (normally ""). |
|
|
8895 | exeext="$exeext" |
|
|
8896 | |
|
|
8897 | # Additional compiler flags for building library objects. |
|
|
8898 | pic_flag=$lt_lt_prog_compiler_pic |
|
|
8899 | pic_mode=$pic_mode |
|
|
8900 | |
|
|
8901 | # What is the maximum length of a command? |
|
|
8902 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
8903 | |
|
|
8904 | # Does compiler simultaneously support -c and -o options? |
|
|
8905 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
|
|
8906 | |
|
|
8907 | # Must we lock files when doing compilation? |
|
|
8908 | need_locks=$lt_need_locks |
|
|
8909 | |
|
|
8910 | # Do we need the lib prefix for modules? |
|
|
8911 | need_lib_prefix=$need_lib_prefix |
|
|
8912 | |
|
|
8913 | # Do we need a version for libraries? |
|
|
8914 | need_version=$need_version |
|
|
8915 | |
|
|
8916 | # Whether dlopen is supported. |
|
|
8917 | dlopen_support=$enable_dlopen |
|
|
8918 | |
|
|
8919 | # Whether dlopen of programs is supported. |
|
|
8920 | dlopen_self=$enable_dlopen_self |
|
|
8921 | |
|
|
8922 | # Whether dlopen of statically linked programs is supported. |
|
|
8923 | dlopen_self_static=$enable_dlopen_self_static |
|
|
8924 | |
|
|
8925 | # Compiler flag to prevent dynamic linking. |
|
|
8926 | link_static_flag=$lt_lt_prog_compiler_static |
|
|
8927 | |
|
|
8928 | # Compiler flag to turn off builtin functions. |
|
|
8929 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
|
|
8930 | |
|
|
8931 | # Compiler flag to allow reflexive dlopens. |
|
|
8932 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
|
8933 | |
|
|
8934 | # Compiler flag to generate shared objects directly from archives. |
|
|
8935 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
|
8936 | |
|
|
8937 | # Compiler flag to generate thread-safe objects. |
|
|
8938 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
|
8939 | |
|
|
8940 | # Library versioning type. |
|
|
8941 | version_type=$version_type |
|
|
8942 | |
|
|
8943 | # Format of library name prefix. |
|
|
8944 | libname_spec=$lt_libname_spec |
|
|
8945 | |
|
|
8946 | # List of archive names. First name is the real one, the rest are links. |
|
|
8947 | # The last name is the one that the linker finds with -lNAME. |
|
|
8948 | library_names_spec=$lt_library_names_spec |
|
|
8949 | |
|
|
8950 | # The coded name of the library, if different from the real name. |
|
|
8951 | soname_spec=$lt_soname_spec |
|
|
8952 | |
|
|
8953 | # Commands used to build and install an old-style archive. |
|
|
8954 | RANLIB=$lt_RANLIB |
|
|
8955 | old_archive_cmds=$lt_old_archive_cmds |
|
|
8956 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
8957 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
8958 | |
|
|
8959 | # Create an old-style archive from a shared archive. |
|
|
8960 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
|
8961 | |
|
|
8962 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
8963 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
|
8964 | |
|
|
8965 | # Commands used to build and install a shared archive. |
|
|
8966 | archive_cmds=$lt_archive_cmds |
|
|
8967 | archive_expsym_cmds=$lt_archive_expsym_cmds |
|
|
8968 | postinstall_cmds=$lt_postinstall_cmds |
|
|
8969 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
8970 | |
|
|
8971 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
8972 | module_cmds=$lt_module_cmds |
|
|
8973 | module_expsym_cmds=$lt_module_expsym_cmds |
|
|
8974 | |
|
|
8975 | # Commands to strip libraries. |
|
|
8976 | old_striplib=$lt_old_striplib |
|
|
8977 | striplib=$lt_striplib |
|
|
8978 | |
|
|
8979 | # Dependencies to place before the objects being linked to create a |
|
|
8980 | # shared library. |
|
|
8981 | predep_objects=$lt_predep_objects |
|
|
8982 | |
|
|
8983 | # Dependencies to place after the objects being linked to create a |
|
|
8984 | # shared library. |
|
|
8985 | postdep_objects=$lt_postdep_objects |
|
|
8986 | |
|
|
8987 | # Dependencies to place before the objects being linked to create a |
|
|
8988 | # shared library. |
|
|
8989 | predeps=$lt_predeps |
|
|
8990 | |
|
|
8991 | # Dependencies to place after the objects being linked to create a |
|
|
8992 | # shared library. |
|
|
8993 | postdeps=$lt_postdeps |
|
|
8994 | |
|
|
8995 | # The library search path used internally by the compiler when linking |
|
|
8996 | # a shared library. |
|
|
8997 | compiler_lib_search_path=$lt_compiler_lib_search_path |
|
|
8998 | |
|
|
8999 | # Method to check whether dependent libraries are shared objects. |
|
|
9000 | deplibs_check_method=$lt_deplibs_check_method |
|
|
9001 | |
|
|
9002 | # Command to use when deplibs_check_method == file_magic. |
|
|
9003 | file_magic_cmd=$lt_file_magic_cmd |
|
|
9004 | |
|
|
9005 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
9006 | allow_undefined_flag=$lt_allow_undefined_flag |
|
|
9007 | |
|
|
9008 | # Flag that forces no undefined symbols. |
|
|
9009 | no_undefined_flag=$lt_no_undefined_flag |
|
|
9010 | |
|
|
9011 | # Commands used to finish a libtool library installation in a directory. |
|
|
9012 | finish_cmds=$lt_finish_cmds |
|
|
9013 | |
|
|
9014 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
9015 | finish_eval=$lt_finish_eval |
|
|
9016 | |
|
|
9017 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
9018 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
9019 | |
|
|
9020 | # Transform the output of nm in a proper C declaration |
|
|
9021 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
9022 | |
|
|
9023 | # Transform the output of nm in a C name address pair |
|
|
9024 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
9025 | |
|
|
9026 | # This is the shared library runtime path variable. |
|
|
9027 | runpath_var=$runpath_var |
|
|
9028 | |
|
|
9029 | # This is the shared library path variable. |
|
|
9030 | shlibpath_var=$shlibpath_var |
|
|
9031 | |
|
|
9032 | # Is shlibpath searched before the hard-coded library search path? |
|
|
9033 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
9034 | |
|
|
9035 | # How to hardcode a shared library path into an executable. |
|
|
9036 | hardcode_action=$hardcode_action |
|
|
9037 | |
|
|
9038 | # Whether we should hardcode library paths into libraries. |
|
|
9039 | hardcode_into_libs=$hardcode_into_libs |
|
|
9040 | |
|
|
9041 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
9042 | # This must work even if \$libdir does not exist. |
|
|
9043 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
|
9044 | |
|
|
9045 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
9046 | # a binary during linking. This must work even if \$libdir does |
|
|
9047 | # not exist. |
|
|
9048 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
|
|
9049 | |
|
|
9050 | # Whether we need a single -rpath flag with a separated argument. |
|
|
9051 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
|
9052 | |
|
|
9053 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
9054 | # resulting binary. |
|
|
9055 | hardcode_direct=$hardcode_direct |
|
|
9056 | |
|
|
9057 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
9058 | # resulting binary. |
|
|
9059 | hardcode_minus_L=$hardcode_minus_L |
|
|
9060 | |
|
|
9061 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
9062 | # the resulting binary. |
|
|
9063 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
|
9064 | |
|
|
9065 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
9066 | # and all subsequent libraries and executables linked against it. |
|
|
9067 | hardcode_automatic=$hardcode_automatic |
|
|
9068 | |
|
|
9069 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
9070 | # restored at relink time. |
|
|
9071 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
9072 | |
|
|
9073 | # Whether libtool must link a program against all its dependency libraries. |
|
|
9074 | link_all_deplibs=$link_all_deplibs |
|
|
9075 | |
|
|
9076 | # Compile-time system search path for libraries |
|
|
9077 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
9078 | |
|
|
9079 | # Run-time system search path for libraries |
|
|
9080 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
9081 | |
|
|
9082 | # Fix the shell variable \$srcfile for the compiler. |
|
|
9083 | fix_srcfile_path="$fix_srcfile_path" |
|
|
9084 | |
|
|
9085 | # Set to yes if exported symbols are required. |
|
|
9086 | always_export_symbols=$always_export_symbols |
|
|
9087 | |
|
|
9088 | # The commands to list exported symbols. |
|
|
9089 | export_symbols_cmds=$lt_export_symbols_cmds |
|
|
9090 | |
|
|
9091 | # The commands to extract the exported symbol list from a shared archive. |
|
|
9092 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
9093 | |
|
|
9094 | # Symbols that should not be listed in the preloaded symbols. |
|
|
9095 | exclude_expsyms=$lt_exclude_expsyms |
|
|
9096 | |
|
|
9097 | # Symbols that must always be exported. |
|
|
9098 | include_expsyms=$lt_include_expsyms |
|
|
9099 | |
|
|
9100 | # ### END LIBTOOL CONFIG |
|
|
9101 | |
|
|
9102 | __EOF__ |
|
|
9103 | |
|
|
9104 | |
|
|
9105 | case $host_os in |
|
|
9106 | aix3*) |
|
|
9107 | cat <<\EOF >> "$cfgfile" |
|
|
9108 | |
|
|
9109 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
9110 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
9111 | # vanish in a puff of smoke. |
|
|
9112 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
9113 | COLLECT_NAMES= |
|
|
9114 | export COLLECT_NAMES |
|
|
9115 | fi |
|
|
9116 | EOF |
|
|
9117 | ;; |
|
|
9118 | esac |
|
|
9119 | |
|
|
9120 | # We use sed instead of cat because bash on DJGPP gets confused if |
|
|
9121 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
9122 | # text mode, it properly converts lines to CR/LF. This bash problem |
|
|
9123 | # is reportedly fixed, but why not run on old versions too? |
|
|
9124 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
|
|
9125 | |
|
|
9126 | mv -f "$cfgfile" "$ofile" || \ |
|
|
9127 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
|
9128 | chmod +x "$ofile" |
|
|
9129 | |
|
|
9130 | else |
|
|
9131 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
9132 | # `config.status --recheck' to rerun these tests and create the |
|
|
9133 | # libtool script then. |
|
|
9134 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
9135 | if test -f "$ltmain_in"; then |
|
|
9136 | test -f Makefile && make "$ltmain" |
|
|
9137 | fi |
|
|
9138 | fi |
|
|
9139 | |
|
|
9140 | |
|
|
9141 | ac_ext=c |
|
|
9142 | ac_cpp='$CPP $CPPFLAGS' |
|
|
9143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
9144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
9145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
9146 | |
|
|
9147 | CC="$lt_save_CC" |
|
|
9148 | |
|
|
9149 | |
|
|
9150 | # Check whether --with-tags or --without-tags was given. |
|
|
9151 | if test "${with_tags+set}" = set; then |
|
|
9152 | withval="$with_tags" |
|
|
9153 | tagnames="$withval" |
|
|
9154 | fi; |
|
|
9155 | |
|
|
9156 | if test -f "$ltmain" && test -n "$tagnames"; then |
|
|
9157 | if test ! -f "${ofile}"; then |
|
|
9158 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
|
|
9159 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
|
|
9160 | fi |
|
|
9161 | |
|
|
9162 | if test -z "$LTCC"; then |
|
|
9163 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
|
|
9164 | if test -z "$LTCC"; then |
|
|
9165 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
|
|
9166 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
|
|
9167 | else |
|
|
9168 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
|
|
9169 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
|
|
9170 | fi |
|
|
9171 | fi |
|
|
9172 | if test -z "$LTCFLAGS"; then |
|
|
9173 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
|
|
9174 | fi |
|
|
9175 | |
|
|
9176 | # Extract list of available tagged configurations in $ofile. |
|
|
9177 | # Note that this assumes the entire list is on one line. |
|
|
9178 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
|
|
9179 | |
|
|
9180 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
9181 | for tagname in $tagnames; do |
|
|
9182 | IFS="$lt_save_ifs" |
|
|
9183 | # Check whether tagname contains only valid characters |
|
|
9184 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
|
|
9185 | "") ;; |
|
|
9186 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
|
|
9187 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
|
|
9188 | { (exit 1); exit 1; }; } |
|
|
9189 | ;; |
|
|
9190 | esac |
|
|
9191 | |
|
|
9192 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
|
|
9193 | then |
|
|
9194 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
|
|
9195 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
|
|
9196 | { (exit 1); exit 1; }; } |
|
|
9197 | fi |
|
|
9198 | |
|
|
9199 | # Update the list of available tags. |
|
|
9200 | if test -n "$tagname"; then |
|
|
9201 | echo appending configuration tag \"$tagname\" to $ofile |
|
|
9202 | |
|
|
9203 | case $tagname in |
|
|
9204 | CXX) |
|
|
9205 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
|
|
9206 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
|
9207 | (test "X$CXX" != "Xg++"))) ; then |
|
|
9208 | ac_ext=cc |
|
|
9209 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
9210 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
9211 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
9212 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
9213 | |
|
|
9214 | |
|
|
9215 | |
|
|
9216 | |
|
|
9217 | archive_cmds_need_lc_CXX=no |
|
|
9218 | allow_undefined_flag_CXX= |
|
|
9219 | always_export_symbols_CXX=no |
|
|
9220 | archive_expsym_cmds_CXX= |
|
|
9221 | export_dynamic_flag_spec_CXX= |
|
|
9222 | hardcode_direct_CXX=no |
|
|
9223 | hardcode_libdir_flag_spec_CXX= |
|
|
9224 | hardcode_libdir_flag_spec_ld_CXX= |
|
|
9225 | hardcode_libdir_separator_CXX= |
|
|
9226 | hardcode_minus_L_CXX=no |
|
|
9227 | hardcode_shlibpath_var_CXX=unsupported |
|
|
9228 | hardcode_automatic_CXX=no |
|
|
9229 | module_cmds_CXX= |
|
|
9230 | module_expsym_cmds_CXX= |
|
|
9231 | link_all_deplibs_CXX=unknown |
|
|
9232 | old_archive_cmds_CXX=$old_archive_cmds |
|
|
9233 | no_undefined_flag_CXX= |
|
|
9234 | whole_archive_flag_spec_CXX= |
|
|
9235 | enable_shared_with_static_runtimes_CXX=no |
|
|
9236 | |
|
|
9237 | # Dependencies to place before and after the object being linked: |
|
|
9238 | predep_objects_CXX= |
|
|
9239 | postdep_objects_CXX= |
|
|
9240 | predeps_CXX= |
|
|
9241 | postdeps_CXX= |
|
|
9242 | compiler_lib_search_path_CXX= |
|
|
9243 | |
|
|
9244 | # Source file extension for C++ test sources. |
|
|
9245 | ac_ext=cpp |
|
|
9246 | |
|
|
9247 | # Object file extension for compiled C++ test sources. |
|
|
9248 | objext=o |
|
|
9249 | objext_CXX=$objext |
|
|
9250 | |
|
|
9251 | # Code to be used in simple compile tests |
|
|
9252 | lt_simple_compile_test_code="int some_variable = 0;\n" |
|
|
9253 | |
|
|
9254 | # Code to be used in simple link tests |
|
|
9255 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
|
|
9256 | |
|
|
9257 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
9258 | |
|
|
9259 | # If no C compiler was specified, use CC. |
|
|
9260 | LTCC=${LTCC-"$CC"} |
|
|
9261 | |
|
|
9262 | # If no C compiler flags were specified, use CFLAGS. |
|
|
9263 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
9264 | |
|
|
9265 | # Allow CC to be a program name with arguments. |
|
|
9266 | compiler=$CC |
|
|
9267 | |
|
|
9268 | |
|
|
9269 | # save warnings/boilerplate of simple test code |
|
|
9270 | ac_outfile=conftest.$ac_objext |
|
|
9271 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
9272 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
9273 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
9274 | $rm conftest* |
|
|
9275 | |
|
|
9276 | ac_outfile=conftest.$ac_objext |
|
|
9277 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
9278 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
9279 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
9280 | $rm conftest* |
|
|
9281 | |
|
|
9282 | |
|
|
9283 | # Allow CC to be a program name with arguments. |
|
|
9284 | lt_save_CC=$CC |
|
|
9285 | lt_save_LD=$LD |
|
|
9286 | lt_save_GCC=$GCC |
|
|
9287 | GCC=$GXX |
|
|
9288 | lt_save_with_gnu_ld=$with_gnu_ld |
|
|
9289 | lt_save_path_LD=$lt_cv_path_LD |
|
|
9290 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
|
|
9291 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
|
|
9292 | else |
|
|
9293 | $as_unset lt_cv_prog_gnu_ld |
|
|
9294 | fi |
|
|
9295 | if test -n "${lt_cv_path_LDCXX+set}"; then |
|
|
9296 | lt_cv_path_LD=$lt_cv_path_LDCXX |
|
|
9297 | else |
|
|
9298 | $as_unset lt_cv_path_LD |
|
|
9299 | fi |
|
|
9300 | test -z "${LDCXX+set}" || LD=$LDCXX |
|
|
9301 | CC=${CXX-"c++"} |
|
|
9302 | compiler=$CC |
|
|
9303 | compiler_CXX=$CC |
|
|
9304 | for cc_temp in $compiler""; do |
|
|
9305 | case $cc_temp in |
|
|
9306 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
9307 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
9308 | \-*) ;; |
|
|
9309 | *) break;; |
|
|
9310 | esac |
|
|
9311 | done |
|
|
9312 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
9313 | |
|
|
9314 | |
|
|
9315 | # We don't want -fno-exception wen compiling C++ code, so set the |
|
|
9316 | # no_builtin_flag separately |
|
|
9317 | if test "$GXX" = yes; then |
|
|
9318 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
|
|
9319 | else |
|
|
9320 | lt_prog_compiler_no_builtin_flag_CXX= |
|
|
9321 | fi |
|
|
9322 | |
|
|
9323 | if test "$GXX" = yes; then |
|
|
9324 | # Set up default GNU C++ configuration |
|
|
9325 | |
|
|
9326 | |
|
|
9327 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
9328 | if test "${with_gnu_ld+set}" = set; then |
|
|
9329 | withval="$with_gnu_ld" |
|
|
9330 | test "$withval" = no || with_gnu_ld=yes |
|
|
9331 | else |
|
|
9332 | with_gnu_ld=no |
|
|
9333 | fi; |
|
|
9334 | ac_prog=ld |
|
|
9335 | if test "$GCC" = yes; then |
|
|
9336 | # Check if gcc -print-prog-name=ld gives a path. |
|
|
9337 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
|
|
9338 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
|
|
9339 | case $host in |
|
|
9340 | *-*-mingw*) |
|
|
9341 | # gcc leaves a trailing carriage return which upsets mingw |
|
|
9342 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
|
9343 | *) |
|
|
9344 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
|
9345 | esac |
|
|
9346 | case $ac_prog in |
|
|
9347 | # Accept absolute paths. |
|
|
9348 | [\\/]* | ?:[\\/]*) |
|
|
9349 | re_direlt='/[^/][^/]*/\.\./' |
|
|
9350 | # Canonicalize the pathname of ld |
|
|
9351 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
|
9352 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
9353 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
|
9354 | done |
|
|
9355 | test -z "$LD" && LD="$ac_prog" |
|
|
9356 | ;; |
|
|
9357 | "") |
|
|
9358 | # If it fails, then pretend we aren't using GCC. |
|
|
9359 | ac_prog=ld |
|
|
9360 | ;; |
|
|
9361 | *) |
|
|
9362 | # If it is relative, then search for the first ld in PATH. |
|
|
9363 | with_gnu_ld=unknown |
|
|
9364 | ;; |
|
|
9365 | esac |
|
|
9366 | elif test "$with_gnu_ld" = yes; then |
|
|
9367 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
|
9368 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
|
|
9369 | else |
|
|
9370 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
|
9371 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
|
9372 | fi |
|
|
9373 | if test "${lt_cv_path_LD+set}" = set; then |
|
|
9374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9375 | else |
|
|
9376 | if test -z "$LD"; then |
|
|
9377 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
9378 | for ac_dir in $PATH; do |
|
|
9379 | IFS="$lt_save_ifs" |
|
|
9380 | test -z "$ac_dir" && ac_dir=. |
|
|
9381 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
9382 | lt_cv_path_LD="$ac_dir/$ac_prog" |
|
|
9383 | # Check to see if the program is GNU ld. I'd rather use --version, |
|
|
9384 | # but apparently some variants of GNU ld only accept -v. |
|
|
9385 | # Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
9386 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
|
9387 | *GNU* | *'with BFD'*) |
|
|
9388 | test "$with_gnu_ld" != no && break |
|
|
9389 | ;; |
|
|
9390 | *) |
|
|
9391 | test "$with_gnu_ld" != yes && break |
|
|
9392 | ;; |
|
|
9393 | esac |
|
|
9394 | fi |
|
|
9395 | done |
|
|
9396 | IFS="$lt_save_ifs" |
|
|
9397 | else |
|
|
9398 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
9399 | fi |
|
|
9400 | fi |
|
|
9401 | |
|
|
9402 | LD="$lt_cv_path_LD" |
|
|
9403 | if test -n "$LD"; then |
|
|
9404 | echo "$as_me:$LINENO: result: $LD" >&5 |
|
|
9405 | echo "${ECHO_T}$LD" >&6 |
|
|
9406 | else |
|
|
9407 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
9408 | echo "${ECHO_T}no" >&6 |
|
|
9409 | fi |
|
|
9410 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
|
9411 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
|
9412 | { (exit 1); exit 1; }; } |
|
|
9413 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
|
9414 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
|
9415 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
|
9416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9417 | else |
|
|
9418 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
|
|
9419 | case `$LD -v 2>&1 </dev/null` in |
|
|
9420 | *GNU* | *'with BFD'*) |
|
|
9421 | lt_cv_prog_gnu_ld=yes |
|
|
9422 | ;; |
|
|
9423 | *) |
|
|
9424 | lt_cv_prog_gnu_ld=no |
|
|
9425 | ;; |
|
|
9426 | esac |
|
|
9427 | fi |
|
|
9428 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
|
9429 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
|
9430 | with_gnu_ld=$lt_cv_prog_gnu_ld |
|
|
9431 | |
|
|
9432 | |
|
|
9433 | |
|
|
9434 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
|
|
9435 | # archiving commands below assume that GNU ld is being used. |
|
|
9436 | if test "$with_gnu_ld" = yes; then |
|
|
9437 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
9438 | 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' |
|
|
9439 | |
|
|
9440 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
|
9441 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
|
9442 | |
|
|
9443 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
9444 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
|
|
9445 | # investigate it a little bit more. (MM) |
|
|
9446 | wlarc='${wl}' |
|
|
9447 | |
|
|
9448 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
9449 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
|
|
9450 | grep 'no-whole-archive' > /dev/null; then |
|
|
9451 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
9452 | else |
|
|
9453 | whole_archive_flag_spec_CXX= |
|
|
9454 | fi |
|
|
9455 | else |
|
|
9456 | with_gnu_ld=no |
|
|
9457 | wlarc= |
|
|
9458 | |
|
|
9459 | # A generic and very simple default shared library creation |
|
|
9460 | # command for GNU C++ for the case where it uses the native |
|
|
9461 | # linker, instead of GNU ld. If possible, this setting should |
|
|
9462 | # overridden to take advantage of the native linker features on |
|
|
9463 | # the platform it is being used on. |
|
|
9464 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
|
9465 | fi |
|
|
9466 | |
|
|
9467 | # Commands to make compiler produce verbose output that lists |
|
|
9468 | # what "hidden" libraries, object files and flags are used when |
|
|
9469 | # linking a shared library. |
|
|
9470 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
|
9471 | |
|
|
9472 | else |
|
|
9473 | GXX=no |
|
|
9474 | with_gnu_ld=no |
|
|
9475 | wlarc= |
|
|
9476 | fi |
|
|
9477 | |
|
|
9478 | # PORTME: fill in a description of your system's C++ link characteristics |
|
|
9479 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
9480 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
9481 | ld_shlibs_CXX=yes |
|
|
9482 | case $host_os in |
|
|
9483 | aix3*) |
|
|
9484 | # FIXME: insert proper C++ library support |
|
|
9485 | ld_shlibs_CXX=no |
|
|
9486 | ;; |
|
|
9487 | aix4* | aix5*) |
|
|
9488 | if test "$host_cpu" = ia64; then |
|
|
9489 | # On IA64, the linker does run time linking by default, so we don't |
|
|
9490 | # have to do anything special. |
|
|
9491 | aix_use_runtimelinking=no |
|
|
9492 | exp_sym_flag='-Bexport' |
|
|
9493 | no_entry_flag="" |
|
|
9494 | else |
|
|
9495 | aix_use_runtimelinking=no |
|
|
9496 | |
|
|
9497 | # Test if we are trying to use run time linking or normal |
|
|
9498 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
9499 | # need to do runtime linking. |
|
|
9500 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
9501 | for ld_flag in $LDFLAGS; do |
|
|
9502 | case $ld_flag in |
|
|
9503 | *-brtl*) |
|
|
9504 | aix_use_runtimelinking=yes |
|
|
9505 | break |
|
|
9506 | ;; |
|
|
9507 | esac |
|
|
9508 | done |
|
|
9509 | ;; |
|
|
9510 | esac |
|
|
9511 | |
|
|
9512 | exp_sym_flag='-bexport' |
|
|
9513 | no_entry_flag='-bnoentry' |
|
|
9514 | fi |
|
|
9515 | |
|
|
9516 | # When large executables or shared objects are built, AIX ld can |
|
|
9517 | # have problems creating the table of contents. If linking a library |
|
|
9518 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
9519 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
9520 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
9521 | |
|
|
9522 | archive_cmds_CXX='' |
|
|
9523 | hardcode_direct_CXX=yes |
|
|
9524 | hardcode_libdir_separator_CXX=':' |
|
|
9525 | link_all_deplibs_CXX=yes |
|
|
9526 | |
|
|
9527 | if test "$GXX" = yes; then |
|
|
9528 | case $host_os in aix4.[012]|aix4.[012].*) |
|
|
9529 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
9530 | # below for broken collect2 doesn't work under 4.3+ |
|
|
9531 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
9532 | if test -f "$collect2name" && \ |
|
|
9533 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
9534 | then |
|
|
9535 | # We have reworked collect2 |
|
|
9536 | hardcode_direct_CXX=yes |
|
|
9537 | else |
|
|
9538 | # We have old collect2 |
|
|
9539 | hardcode_direct_CXX=unsupported |
|
|
9540 | # It fails to find uninstalled libraries when the uninstalled |
|
|
9541 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
9542 | # to unsupported forces relinking |
|
|
9543 | hardcode_minus_L_CXX=yes |
|
|
9544 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
|
9545 | hardcode_libdir_separator_CXX= |
|
|
9546 | fi |
|
|
9547 | ;; |
|
|
9548 | esac |
|
|
9549 | shared_flag='-shared' |
|
|
9550 | if test "$aix_use_runtimelinking" = yes; then |
|
|
9551 | shared_flag="$shared_flag "'${wl}-G' |
|
|
9552 | fi |
|
|
9553 | else |
|
|
9554 | # not using gcc |
|
|
9555 | if test "$host_cpu" = ia64; then |
|
|
9556 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
9557 | # chokes on -Wl,-G. The following line is correct: |
|
|
9558 | shared_flag='-G' |
|
|
9559 | else |
|
|
9560 | if test "$aix_use_runtimelinking" = yes; then |
|
|
9561 | shared_flag='${wl}-G' |
|
|
9562 | else |
|
|
9563 | shared_flag='${wl}-bM:SRE' |
|
|
9564 | fi |
|
|
9565 | fi |
|
|
9566 | fi |
|
|
9567 | |
|
|
9568 | # It seems that -bexpall does not export symbols beginning with |
|
|
9569 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
9570 | always_export_symbols_CXX=yes |
|
|
9571 | if test "$aix_use_runtimelinking" = yes; then |
|
|
9572 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
9573 | # -berok will link without error, but may produce a broken library. |
|
|
9574 | allow_undefined_flag_CXX='-berok' |
|
|
9575 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
9576 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9577 | /* confdefs.h. */ |
|
|
9578 | _ACEOF |
|
|
9579 | cat confdefs.h >>conftest.$ac_ext |
|
|
9580 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9581 | /* end confdefs.h. */ |
|
|
9582 | |
|
|
9583 | int |
|
|
9584 | main () |
|
|
9585 | { |
|
|
9586 | |
|
|
9587 | ; |
|
|
9588 | return 0; |
|
|
9589 | } |
|
|
9590 | _ACEOF |
|
|
9591 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
9592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
9593 | (eval $ac_link) 2>conftest.er1 |
2329 | ac_status=$? |
9594 | ac_status=$? |
2330 | grep -v '^ *+' conftest.er1 >conftest.err |
9595 | grep -v '^ *+' conftest.er1 >conftest.err |
2331 | rm -f conftest.er1 |
9596 | rm -f conftest.er1 |
2332 | cat conftest.err >&5 |
9597 | cat conftest.err >&5 |
2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
… | |
… | |
2336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2337 | (eval $ac_try) 2>&5 |
9602 | (eval $ac_try) 2>&5 |
2338 | ac_status=$? |
9603 | ac_status=$? |
2339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2340 | (exit $ac_status); }; } && |
9605 | (exit $ac_status); }; } && |
2341 | { ac_try='test -s conftest.$ac_objext' |
9606 | { ac_try='test -s conftest$ac_exeext' |
2342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2343 | (eval $ac_try) 2>&5 |
9608 | (eval $ac_try) 2>&5 |
2344 | ac_status=$? |
9609 | ac_status=$? |
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2346 | (exit $ac_status); }; }; then |
9611 | (exit $ac_status); }; }; then |
2347 | ac_cv_header_stdc=yes |
9612 | |
|
|
9613 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
9614 | }'` |
|
|
9615 | # Check for a 64-bit object if we didn't find anything. |
|
|
9616 | 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; } |
|
|
9617 | }'`; fi |
2348 | else |
9618 | else |
2349 | echo "$as_me: failed program was:" >&5 |
9619 | echo "$as_me: failed program was:" >&5 |
2350 | sed 's/^/| /' conftest.$ac_ext >&5 |
9620 | sed 's/^/| /' conftest.$ac_ext >&5 |
2351 | |
9621 | |
2352 | ac_cv_header_stdc=no |
|
|
2353 | fi |
9622 | fi |
2354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9623 | rm -f conftest.err conftest.$ac_objext \ |
|
|
9624 | conftest$ac_exeext conftest.$ac_ext |
|
|
9625 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
2355 | |
9626 | |
2356 | if test $ac_cv_header_stdc = yes; then |
9627 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
2357 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
9628 | |
|
|
9629 | 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" |
|
|
9630 | else |
|
|
9631 | if test "$host_cpu" = ia64; then |
|
|
9632 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
|
|
9633 | allow_undefined_flag_CXX="-z nodefs" |
|
|
9634 | 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" |
|
|
9635 | else |
|
|
9636 | # Determine the default libpath from the value encoded in an empty executable. |
2358 | cat >conftest.$ac_ext <<_ACEOF |
9637 | cat >conftest.$ac_ext <<_ACEOF |
2359 | /* confdefs.h. */ |
9638 | /* confdefs.h. */ |
2360 | _ACEOF |
9639 | _ACEOF |
2361 | cat confdefs.h >>conftest.$ac_ext |
9640 | cat confdefs.h >>conftest.$ac_ext |
2362 | cat >>conftest.$ac_ext <<_ACEOF |
9641 | cat >>conftest.$ac_ext <<_ACEOF |
2363 | /* end confdefs.h. */ |
9642 | /* end confdefs.h. */ |
2364 | #include <string.h> |
|
|
2365 | |
9643 | |
2366 | _ACEOF |
|
|
2367 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
2368 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
2369 | : |
|
|
2370 | else |
|
|
2371 | ac_cv_header_stdc=no |
|
|
2372 | fi |
|
|
2373 | rm -f conftest* |
|
|
2374 | |
|
|
2375 | fi |
|
|
2376 | |
|
|
2377 | if test $ac_cv_header_stdc = yes; then |
|
|
2378 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
2379 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2380 | /* confdefs.h. */ |
|
|
2381 | _ACEOF |
|
|
2382 | cat confdefs.h >>conftest.$ac_ext |
|
|
2383 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2384 | /* end confdefs.h. */ |
|
|
2385 | #include <stdlib.h> |
|
|
2386 | |
|
|
2387 | _ACEOF |
|
|
2388 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
2389 | $EGREP "free" >/dev/null 2>&1; then |
|
|
2390 | : |
|
|
2391 | else |
|
|
2392 | ac_cv_header_stdc=no |
|
|
2393 | fi |
|
|
2394 | rm -f conftest* |
|
|
2395 | |
|
|
2396 | fi |
|
|
2397 | |
|
|
2398 | if test $ac_cv_header_stdc = yes; then |
|
|
2399 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
2400 | if test "$cross_compiling" = yes; then |
|
|
2401 | : |
|
|
2402 | else |
|
|
2403 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2404 | /* confdefs.h. */ |
|
|
2405 | _ACEOF |
|
|
2406 | cat confdefs.h >>conftest.$ac_ext |
|
|
2407 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2408 | /* end confdefs.h. */ |
|
|
2409 | #include <ctype.h> |
|
|
2410 | #if ((' ' & 0x0FF) == 0x020) |
|
|
2411 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
2412 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
2413 | #else |
|
|
2414 | # define ISLOWER(c) \ |
|
|
2415 | (('a' <= (c) && (c) <= 'i') \ |
|
|
2416 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
2417 | || ('s' <= (c) && (c) <= 'z')) |
|
|
2418 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
2419 | #endif |
|
|
2420 | |
|
|
2421 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
2422 | int |
9644 | int |
2423 | main () |
9645 | main () |
2424 | { |
9646 | { |
2425 | int i; |
9647 | |
2426 | for (i = 0; i < 256; i++) |
9648 | ; |
2427 | if (XOR (islower (i), ISLOWER (i)) |
9649 | return 0; |
2428 | || toupper (i) != TOUPPER (i)) |
|
|
2429 | exit(2); |
|
|
2430 | exit (0); |
|
|
2431 | } |
9650 | } |
2432 | _ACEOF |
9651 | _ACEOF |
2433 | rm -f conftest$ac_exeext |
9652 | rm -f conftest.$ac_objext conftest$ac_exeext |
2434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2435 | (eval $ac_link) 2>&5 |
|
|
2436 | ac_status=$? |
|
|
2437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2438 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
2439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2440 | (eval $ac_try) 2>&5 |
|
|
2441 | ac_status=$? |
|
|
2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2443 | (exit $ac_status); }; }; then |
|
|
2444 | : |
|
|
2445 | else |
|
|
2446 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
2447 | echo "$as_me: failed program was:" >&5 |
|
|
2448 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2449 | |
|
|
2450 | ( exit $ac_status ) |
|
|
2451 | ac_cv_header_stdc=no |
|
|
2452 | fi |
|
|
2453 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
2454 | fi |
|
|
2455 | fi |
|
|
2456 | fi |
|
|
2457 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
2458 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
2459 | if test $ac_cv_header_stdc = yes; then |
|
|
2460 | |
|
|
2461 | cat >>confdefs.h <<\_ACEOF |
|
|
2462 | #define STDC_HEADERS 1 |
|
|
2463 | _ACEOF |
|
|
2464 | |
|
|
2465 | fi |
|
|
2466 | |
|
|
2467 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
2468 | |
|
|
2469 | |
|
|
2470 | |
|
|
2471 | |
|
|
2472 | |
|
|
2473 | |
|
|
2474 | |
|
|
2475 | |
|
|
2476 | |
|
|
2477 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
2478 | inttypes.h stdint.h unistd.h |
|
|
2479 | do |
|
|
2480 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
2481 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
2482 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
2483 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
2484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2485 | else |
|
|
2486 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2487 | /* confdefs.h. */ |
|
|
2488 | _ACEOF |
|
|
2489 | cat confdefs.h >>conftest.$ac_ext |
|
|
2490 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2491 | /* end confdefs.h. */ |
|
|
2492 | $ac_includes_default |
|
|
2493 | |
|
|
2494 | #include <$ac_header> |
|
|
2495 | _ACEOF |
|
|
2496 | rm -f conftest.$ac_objext |
|
|
2497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2498 | (eval $ac_compile) 2>conftest.er1 |
9654 | (eval $ac_link) 2>conftest.er1 |
2499 | ac_status=$? |
9655 | ac_status=$? |
2500 | grep -v '^ *+' conftest.er1 >conftest.err |
9656 | grep -v '^ *+' conftest.er1 >conftest.err |
2501 | rm -f conftest.er1 |
9657 | rm -f conftest.er1 |
2502 | cat conftest.err >&5 |
9658 | cat conftest.err >&5 |
2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
… | |
… | |
2506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2507 | (eval $ac_try) 2>&5 |
9663 | (eval $ac_try) 2>&5 |
2508 | ac_status=$? |
9664 | ac_status=$? |
2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2510 | (exit $ac_status); }; } && |
9666 | (exit $ac_status); }; } && |
2511 | { ac_try='test -s conftest.$ac_objext' |
9667 | { ac_try='test -s conftest$ac_exeext' |
2512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2513 | (eval $ac_try) 2>&5 |
9669 | (eval $ac_try) 2>&5 |
2514 | ac_status=$? |
9670 | ac_status=$? |
2515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2516 | (exit $ac_status); }; }; then |
9672 | (exit $ac_status); }; }; then |
2517 | eval "$as_ac_Header=yes" |
9673 | |
|
|
9674 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
9675 | }'` |
|
|
9676 | # Check for a 64-bit object if we didn't find anything. |
|
|
9677 | 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; } |
|
|
9678 | }'`; fi |
2518 | else |
9679 | else |
2519 | echo "$as_me: failed program was:" >&5 |
9680 | echo "$as_me: failed program was:" >&5 |
2520 | sed 's/^/| /' conftest.$ac_ext >&5 |
9681 | sed 's/^/| /' conftest.$ac_ext >&5 |
2521 | |
9682 | |
2522 | eval "$as_ac_Header=no" |
|
|
2523 | fi |
9683 | fi |
2524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9684 | rm -f conftest.err conftest.$ac_objext \ |
|
|
9685 | conftest$ac_exeext conftest.$ac_ext |
|
|
9686 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
9687 | |
|
|
9688 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
9689 | # Warning - without using the other run time loading flags, |
|
|
9690 | # -berok will link without error, but may produce a broken library. |
|
|
9691 | no_undefined_flag_CXX=' ${wl}-bernotok' |
|
|
9692 | allow_undefined_flag_CXX=' ${wl}-berok' |
|
|
9693 | # Exported symbols can be pulled into shared objects from archives |
|
|
9694 | whole_archive_flag_spec_CXX='$convenience' |
|
|
9695 | archive_cmds_need_lc_CXX=yes |
|
|
9696 | # This is similar to how AIX traditionally builds its shared libraries. |
|
|
9697 | 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' |
|
|
9698 | fi |
|
|
9699 | fi |
|
|
9700 | ;; |
|
|
9701 | |
|
|
9702 | beos*) |
|
|
9703 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
9704 | allow_undefined_flag_CXX=unsupported |
|
|
9705 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
9706 | # support --undefined. This deserves some investigation. FIXME |
|
|
9707 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
9708 | else |
|
|
9709 | ld_shlibs_CXX=no |
|
|
9710 | fi |
|
|
9711 | ;; |
|
|
9712 | |
|
|
9713 | chorus*) |
|
|
9714 | case $cc_basename in |
|
|
9715 | *) |
|
|
9716 | # FIXME: insert proper C++ library support |
|
|
9717 | ld_shlibs_CXX=no |
|
|
9718 | ;; |
|
|
9719 | esac |
|
|
9720 | ;; |
|
|
9721 | |
|
|
9722 | cygwin* | mingw* | pw32*) |
|
|
9723 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
|
|
9724 | # as there is no search path for DLLs. |
|
|
9725 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
|
9726 | allow_undefined_flag_CXX=unsupported |
|
|
9727 | always_export_symbols_CXX=no |
|
|
9728 | enable_shared_with_static_runtimes_CXX=yes |
|
|
9729 | |
|
|
9730 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
|
9731 | 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' |
|
|
9732 | # If the export-symbols file already is a .def file (1st line |
|
|
9733 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
9734 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
9735 | cp $export_symbols $output_objdir/$soname.def; |
|
|
9736 | else |
|
|
9737 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
9738 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
9739 | fi~ |
|
|
9740 | $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' |
|
|
9741 | else |
|
|
9742 | ld_shlibs_CXX=no |
|
|
9743 | fi |
|
|
9744 | ;; |
|
|
9745 | darwin* | rhapsody*) |
|
|
9746 | case $host_os in |
|
|
9747 | rhapsody* | darwin1.[012]) |
|
|
9748 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
|
|
9749 | ;; |
|
|
9750 | *) # Darwin 1.3 on |
|
|
9751 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
9752 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
9753 | else |
|
|
9754 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
9755 | 10.[012]) |
|
|
9756 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
9757 | ;; |
|
|
9758 | 10.*) |
|
|
9759 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
|
|
9760 | ;; |
|
|
9761 | esac |
|
|
9762 | fi |
|
|
9763 | ;; |
|
|
9764 | esac |
|
|
9765 | archive_cmds_need_lc_CXX=no |
|
|
9766 | hardcode_direct_CXX=no |
|
|
9767 | hardcode_automatic_CXX=yes |
|
|
9768 | hardcode_shlibpath_var_CXX=unsupported |
|
|
9769 | whole_archive_flag_spec_CXX='' |
|
|
9770 | link_all_deplibs_CXX=yes |
|
|
9771 | |
|
|
9772 | if test "$GXX" = yes ; then |
|
|
9773 | lt_int_apple_cc_single_mod=no |
|
|
9774 | output_verbose_link_cmd='echo' |
|
|
9775 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
|
|
9776 | lt_int_apple_cc_single_mod=yes |
|
|
9777 | fi |
|
|
9778 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
9779 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
9780 | else |
|
|
9781 | 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' |
|
|
9782 | fi |
|
|
9783 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
9784 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
9785 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
9786 | 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}' |
|
|
9787 | else |
|
|
9788 | 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}' |
|
|
9789 | fi |
|
|
9790 | 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}' |
|
|
9791 | else |
|
|
9792 | case $cc_basename in |
|
|
9793 | xlc*) |
|
|
9794 | output_verbose_link_cmd='echo' |
|
|
9795 | 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' |
|
|
9796 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
9797 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
9798 | 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}' |
|
|
9799 | 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}' |
|
|
9800 | ;; |
|
|
9801 | *) |
|
|
9802 | ld_shlibs_CXX=no |
|
|
9803 | ;; |
|
|
9804 | esac |
|
|
9805 | fi |
|
|
9806 | ;; |
|
|
9807 | |
|
|
9808 | dgux*) |
|
|
9809 | case $cc_basename in |
|
|
9810 | ec++*) |
|
|
9811 | # FIXME: insert proper C++ library support |
|
|
9812 | ld_shlibs_CXX=no |
|
|
9813 | ;; |
|
|
9814 | ghcx*) |
|
|
9815 | # Green Hills C++ Compiler |
|
|
9816 | # FIXME: insert proper C++ library support |
|
|
9817 | ld_shlibs_CXX=no |
|
|
9818 | ;; |
|
|
9819 | *) |
|
|
9820 | # FIXME: insert proper C++ library support |
|
|
9821 | ld_shlibs_CXX=no |
|
|
9822 | ;; |
|
|
9823 | esac |
|
|
9824 | ;; |
|
|
9825 | freebsd[12]*) |
|
|
9826 | # C++ shared libraries reported to be fairly broken before switch to ELF |
|
|
9827 | ld_shlibs_CXX=no |
|
|
9828 | ;; |
|
|
9829 | freebsd-elf*) |
|
|
9830 | archive_cmds_need_lc_CXX=no |
|
|
9831 | ;; |
|
|
9832 | freebsd* | kfreebsd*-gnu | dragonfly*) |
|
|
9833 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
|
|
9834 | # conventions |
|
|
9835 | ld_shlibs_CXX=yes |
|
|
9836 | ;; |
|
|
9837 | gnu*) |
|
|
9838 | ;; |
|
|
9839 | hpux9*) |
|
|
9840 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
|
9841 | hardcode_libdir_separator_CXX=: |
|
|
9842 | export_dynamic_flag_spec_CXX='${wl}-E' |
|
|
9843 | hardcode_direct_CXX=yes |
|
|
9844 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
|
9845 | # but as the default |
|
|
9846 | # location of the library. |
|
|
9847 | |
|
|
9848 | case $cc_basename in |
|
|
9849 | CC*) |
|
|
9850 | # FIXME: insert proper C++ library support |
|
|
9851 | ld_shlibs_CXX=no |
|
|
9852 | ;; |
|
|
9853 | aCC*) |
|
|
9854 | 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' |
|
|
9855 | # Commands to make compiler produce verbose output that lists |
|
|
9856 | # what "hidden" libraries, object files and flags are used when |
|
|
9857 | # linking a shared library. |
|
|
9858 | # |
|
|
9859 | # There doesn't appear to be a way to prevent this compiler from |
|
|
9860 | # explicitly linking system object files so we need to strip them |
|
|
9861 | # from the output so that they don't get included in the library |
|
|
9862 | # dependencies. |
|
|
9863 | 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' |
|
|
9864 | ;; |
|
|
9865 | *) |
|
|
9866 | if test "$GXX" = yes; then |
|
|
9867 | 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' |
|
|
9868 | else |
|
|
9869 | # FIXME: insert proper C++ library support |
|
|
9870 | ld_shlibs_CXX=no |
|
|
9871 | fi |
|
|
9872 | ;; |
|
|
9873 | esac |
|
|
9874 | ;; |
|
|
9875 | hpux10*|hpux11*) |
|
|
9876 | if test $with_gnu_ld = no; then |
|
|
9877 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
|
9878 | hardcode_libdir_separator_CXX=: |
|
|
9879 | |
|
|
9880 | case $host_cpu in |
|
|
9881 | hppa*64*|ia64*) |
|
|
9882 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
|
|
9883 | ;; |
|
|
9884 | *) |
|
|
9885 | export_dynamic_flag_spec_CXX='${wl}-E' |
|
|
9886 | ;; |
|
|
9887 | esac |
|
|
9888 | fi |
|
|
9889 | case $host_cpu in |
|
|
9890 | hppa*64*|ia64*) |
|
|
9891 | hardcode_direct_CXX=no |
|
|
9892 | hardcode_shlibpath_var_CXX=no |
|
|
9893 | ;; |
|
|
9894 | *) |
|
|
9895 | hardcode_direct_CXX=yes |
|
|
9896 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
|
9897 | # but as the default |
|
|
9898 | # location of the library. |
|
|
9899 | ;; |
|
|
9900 | esac |
|
|
9901 | |
|
|
9902 | case $cc_basename in |
|
|
9903 | CC*) |
|
|
9904 | # FIXME: insert proper C++ library support |
|
|
9905 | ld_shlibs_CXX=no |
|
|
9906 | ;; |
|
|
9907 | aCC*) |
|
|
9908 | case $host_cpu in |
|
|
9909 | hppa*64*) |
|
|
9910 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
9911 | ;; |
|
|
9912 | ia64*) |
|
|
9913 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
9914 | ;; |
|
|
9915 | *) |
|
|
9916 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
9917 | ;; |
|
|
9918 | esac |
|
|
9919 | # Commands to make compiler produce verbose output that lists |
|
|
9920 | # what "hidden" libraries, object files and flags are used when |
|
|
9921 | # linking a shared library. |
|
|
9922 | # |
|
|
9923 | # There doesn't appear to be a way to prevent this compiler from |
|
|
9924 | # explicitly linking system object files so we need to strip them |
|
|
9925 | # from the output so that they don't get included in the library |
|
|
9926 | # dependencies. |
|
|
9927 | 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' |
|
|
9928 | ;; |
|
|
9929 | *) |
|
|
9930 | if test "$GXX" = yes; then |
|
|
9931 | if test $with_gnu_ld = no; then |
|
|
9932 | case $host_cpu in |
|
|
9933 | hppa*64*) |
|
|
9934 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
9935 | ;; |
|
|
9936 | ia64*) |
|
|
9937 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
9938 | ;; |
|
|
9939 | *) |
|
|
9940 | 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' |
|
|
9941 | ;; |
|
|
9942 | esac |
|
|
9943 | fi |
|
|
9944 | else |
|
|
9945 | # FIXME: insert proper C++ library support |
|
|
9946 | ld_shlibs_CXX=no |
2525 | fi |
9947 | fi |
2526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9948 | ;; |
2527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9949 | esac |
2528 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9950 | ;; |
2529 | cat >>confdefs.h <<_ACEOF |
9951 | interix3*) |
2530 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
9952 | hardcode_direct_CXX=no |
|
|
9953 | hardcode_shlibpath_var_CXX=no |
|
|
9954 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
9955 | export_dynamic_flag_spec_CXX='${wl}-E' |
|
|
9956 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
|
9957 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
|
9958 | # default) and relocated if they conflict, which is a slow very memory |
|
|
9959 | # consuming and fragmenting process. To avoid this, we pick a random, |
|
|
9960 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
|
9961 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
|
9962 | 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' |
|
|
9963 | 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' |
|
|
9964 | ;; |
|
|
9965 | irix5* | irix6*) |
|
|
9966 | case $cc_basename in |
|
|
9967 | CC*) |
|
|
9968 | # SGI C++ |
|
|
9969 | 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' |
|
|
9970 | |
|
|
9971 | # Archives containing C++ object files must be created using |
|
|
9972 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
|
|
9973 | # necessary to make sure instantiated templates are included |
|
|
9974 | # in the archive. |
|
|
9975 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
|
|
9976 | ;; |
|
|
9977 | *) |
|
|
9978 | if test "$GXX" = yes; then |
|
|
9979 | if test "$with_gnu_ld" = no; then |
|
|
9980 | 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' |
|
|
9981 | else |
|
|
9982 | 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' |
|
|
9983 | fi |
|
|
9984 | fi |
|
|
9985 | link_all_deplibs_CXX=yes |
|
|
9986 | ;; |
|
|
9987 | esac |
|
|
9988 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
|
9989 | hardcode_libdir_separator_CXX=: |
|
|
9990 | ;; |
|
|
9991 | linux*) |
|
|
9992 | case $cc_basename in |
|
|
9993 | KCC*) |
|
|
9994 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
9995 | |
|
|
9996 | # KCC will only create a shared library if the output file |
|
|
9997 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
9998 | # to its proper name (with version) after linking. |
|
|
9999 | 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' |
|
|
10000 | 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' |
|
|
10001 | # Commands to make compiler produce verbose output that lists |
|
|
10002 | # what "hidden" libraries, object files and flags are used when |
|
|
10003 | # linking a shared library. |
|
|
10004 | # |
|
|
10005 | # There doesn't appear to be a way to prevent this compiler from |
|
|
10006 | # explicitly linking system object files so we need to strip them |
|
|
10007 | # from the output so that they don't get included in the library |
|
|
10008 | # dependencies. |
|
|
10009 | 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' |
|
|
10010 | |
|
|
10011 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
|
|
10012 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
|
10013 | |
|
|
10014 | # Archives containing C++ object files must be created using |
|
|
10015 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
|
10016 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
|
10017 | ;; |
|
|
10018 | icpc*) |
|
|
10019 | # Intel C++ |
|
|
10020 | with_gnu_ld=yes |
|
|
10021 | # version 8.0 and above of icpc choke on multiply defined symbols |
|
|
10022 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
|
|
10023 | # earlier do not add the objects themselves. |
|
|
10024 | case `$CC -V 2>&1` in |
|
|
10025 | *"Version 7."*) |
|
|
10026 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
10027 | 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' |
|
|
10028 | ;; |
|
|
10029 | *) # Version 8.0 or newer |
|
|
10030 | tmp_idyn= |
|
|
10031 | case $host_cpu in |
|
|
10032 | ia64*) tmp_idyn=' -i_dynamic';; |
|
|
10033 | esac |
|
|
10034 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
10035 | 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' |
|
|
10036 | ;; |
|
|
10037 | esac |
|
|
10038 | archive_cmds_need_lc_CXX=no |
|
|
10039 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
10040 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
|
10041 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
|
10042 | ;; |
|
|
10043 | pgCC*) |
|
|
10044 | # Portland Group C++ compiler |
|
|
10045 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
|
|
10046 | 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' |
|
|
10047 | |
|
|
10048 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
|
10049 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
|
10050 | 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' |
|
|
10051 | ;; |
|
|
10052 | cxx*) |
|
|
10053 | # Compaq C++ |
|
|
10054 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
10055 | 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' |
|
|
10056 | |
|
|
10057 | runpath_var=LD_RUN_PATH |
|
|
10058 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
|
10059 | hardcode_libdir_separator_CXX=: |
|
|
10060 | |
|
|
10061 | # Commands to make compiler produce verbose output that lists |
|
|
10062 | # what "hidden" libraries, object files and flags are used when |
|
|
10063 | # linking a shared library. |
|
|
10064 | # |
|
|
10065 | # There doesn't appear to be a way to prevent this compiler from |
|
|
10066 | # explicitly linking system object files so we need to strip them |
|
|
10067 | # from the output so that they don't get included in the library |
|
|
10068 | # dependencies. |
|
|
10069 | 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' |
|
|
10070 | ;; |
|
|
10071 | esac |
|
|
10072 | ;; |
|
|
10073 | lynxos*) |
|
|
10074 | # FIXME: insert proper C++ library support |
|
|
10075 | ld_shlibs_CXX=no |
|
|
10076 | ;; |
|
|
10077 | m88k*) |
|
|
10078 | # FIXME: insert proper C++ library support |
|
|
10079 | ld_shlibs_CXX=no |
|
|
10080 | ;; |
|
|
10081 | mvs*) |
|
|
10082 | case $cc_basename in |
|
|
10083 | cxx*) |
|
|
10084 | # FIXME: insert proper C++ library support |
|
|
10085 | ld_shlibs_CXX=no |
|
|
10086 | ;; |
|
|
10087 | *) |
|
|
10088 | # FIXME: insert proper C++ library support |
|
|
10089 | ld_shlibs_CXX=no |
|
|
10090 | ;; |
|
|
10091 | esac |
|
|
10092 | ;; |
|
|
10093 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
10094 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
10095 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
|
|
10096 | wlarc= |
|
|
10097 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
|
10098 | hardcode_direct_CXX=yes |
|
|
10099 | hardcode_shlibpath_var_CXX=no |
|
|
10100 | fi |
|
|
10101 | # Workaround some broken pre-1.5 toolchains |
|
|
10102 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
|
|
10103 | ;; |
|
|
10104 | openbsd2*) |
|
|
10105 | # C++ shared libraries are fairly broken |
|
|
10106 | ld_shlibs_CXX=no |
|
|
10107 | ;; |
|
|
10108 | openbsd*) |
|
|
10109 | hardcode_direct_CXX=yes |
|
|
10110 | hardcode_shlibpath_var_CXX=no |
|
|
10111 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
|
10112 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
10113 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
10114 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
|
|
10115 | export_dynamic_flag_spec_CXX='${wl}-E' |
|
|
10116 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
10117 | fi |
|
|
10118 | output_verbose_link_cmd='echo' |
|
|
10119 | ;; |
|
|
10120 | osf3*) |
|
|
10121 | case $cc_basename in |
|
|
10122 | KCC*) |
|
|
10123 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
10124 | |
|
|
10125 | # KCC will only create a shared library if the output file |
|
|
10126 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
10127 | # to its proper name (with version) after linking. |
|
|
10128 | 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' |
|
|
10129 | |
|
|
10130 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
10131 | hardcode_libdir_separator_CXX=: |
|
|
10132 | |
|
|
10133 | # Archives containing C++ object files must be created using |
|
|
10134 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
|
10135 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
|
10136 | |
|
|
10137 | ;; |
|
|
10138 | RCC*) |
|
|
10139 | # Rational C++ 2.4.1 |
|
|
10140 | # FIXME: insert proper C++ library support |
|
|
10141 | ld_shlibs_CXX=no |
|
|
10142 | ;; |
|
|
10143 | cxx*) |
|
|
10144 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
|
10145 | 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' |
|
|
10146 | |
|
|
10147 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
|
10148 | hardcode_libdir_separator_CXX=: |
|
|
10149 | |
|
|
10150 | # Commands to make compiler produce verbose output that lists |
|
|
10151 | # what "hidden" libraries, object files and flags are used when |
|
|
10152 | # linking a shared library. |
|
|
10153 | # |
|
|
10154 | # There doesn't appear to be a way to prevent this compiler from |
|
|
10155 | # explicitly linking system object files so we need to strip them |
|
|
10156 | # from the output so that they don't get included in the library |
|
|
10157 | # dependencies. |
|
|
10158 | 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' |
|
|
10159 | ;; |
|
|
10160 | *) |
|
|
10161 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
10162 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
|
10163 | 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' |
|
|
10164 | |
|
|
10165 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
|
10166 | hardcode_libdir_separator_CXX=: |
|
|
10167 | |
|
|
10168 | # Commands to make compiler produce verbose output that lists |
|
|
10169 | # what "hidden" libraries, object files and flags are used when |
|
|
10170 | # linking a shared library. |
|
|
10171 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
|
10172 | |
|
|
10173 | else |
|
|
10174 | # FIXME: insert proper C++ library support |
|
|
10175 | ld_shlibs_CXX=no |
|
|
10176 | fi |
|
|
10177 | ;; |
|
|
10178 | esac |
|
|
10179 | ;; |
|
|
10180 | osf4* | osf5*) |
|
|
10181 | case $cc_basename in |
|
|
10182 | KCC*) |
|
|
10183 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
10184 | |
|
|
10185 | # KCC will only create a shared library if the output file |
|
|
10186 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
10187 | # to its proper name (with version) after linking. |
|
|
10188 | 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' |
|
|
10189 | |
|
|
10190 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
10191 | hardcode_libdir_separator_CXX=: |
|
|
10192 | |
|
|
10193 | # Archives containing C++ object files must be created using |
|
|
10194 | # the KAI C++ compiler. |
|
|
10195 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
|
|
10196 | ;; |
|
|
10197 | RCC*) |
|
|
10198 | # Rational C++ 2.4.1 |
|
|
10199 | # FIXME: insert proper C++ library support |
|
|
10200 | ld_shlibs_CXX=no |
|
|
10201 | ;; |
|
|
10202 | cxx*) |
|
|
10203 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
|
|
10204 | 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' |
|
|
10205 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
|
|
10206 | echo "-hidden">> $lib.exp~ |
|
|
10207 | $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~ |
|
|
10208 | $rm $lib.exp' |
|
|
10209 | |
|
|
10210 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
|
10211 | hardcode_libdir_separator_CXX=: |
|
|
10212 | |
|
|
10213 | # Commands to make compiler produce verbose output that lists |
|
|
10214 | # what "hidden" libraries, object files and flags are used when |
|
|
10215 | # linking a shared library. |
|
|
10216 | # |
|
|
10217 | # There doesn't appear to be a way to prevent this compiler from |
|
|
10218 | # explicitly linking system object files so we need to strip them |
|
|
10219 | # from the output so that they don't get included in the library |
|
|
10220 | # dependencies. |
|
|
10221 | 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' |
|
|
10222 | ;; |
|
|
10223 | *) |
|
|
10224 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
10225 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
|
10226 | 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' |
|
|
10227 | |
|
|
10228 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
|
10229 | hardcode_libdir_separator_CXX=: |
|
|
10230 | |
|
|
10231 | # Commands to make compiler produce verbose output that lists |
|
|
10232 | # what "hidden" libraries, object files and flags are used when |
|
|
10233 | # linking a shared library. |
|
|
10234 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
|
10235 | |
|
|
10236 | else |
|
|
10237 | # FIXME: insert proper C++ library support |
|
|
10238 | ld_shlibs_CXX=no |
|
|
10239 | fi |
|
|
10240 | ;; |
|
|
10241 | esac |
|
|
10242 | ;; |
|
|
10243 | psos*) |
|
|
10244 | # FIXME: insert proper C++ library support |
|
|
10245 | ld_shlibs_CXX=no |
|
|
10246 | ;; |
|
|
10247 | sunos4*) |
|
|
10248 | case $cc_basename in |
|
|
10249 | CC*) |
|
|
10250 | # Sun C++ 4.x |
|
|
10251 | # FIXME: insert proper C++ library support |
|
|
10252 | ld_shlibs_CXX=no |
|
|
10253 | ;; |
|
|
10254 | lcc*) |
|
|
10255 | # Lucid |
|
|
10256 | # FIXME: insert proper C++ library support |
|
|
10257 | ld_shlibs_CXX=no |
|
|
10258 | ;; |
|
|
10259 | *) |
|
|
10260 | # FIXME: insert proper C++ library support |
|
|
10261 | ld_shlibs_CXX=no |
|
|
10262 | ;; |
|
|
10263 | esac |
|
|
10264 | ;; |
|
|
10265 | solaris*) |
|
|
10266 | case $cc_basename in |
|
|
10267 | CC*) |
|
|
10268 | # Sun C++ 4.2, 5.x and Centerline C++ |
|
|
10269 | archive_cmds_need_lc_CXX=yes |
|
|
10270 | no_undefined_flag_CXX=' -zdefs' |
|
|
10271 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
10272 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
10273 | $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' |
|
|
10274 | |
|
|
10275 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
|
10276 | hardcode_shlibpath_var_CXX=no |
|
|
10277 | case $host_os in |
|
|
10278 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
10279 | *) |
|
|
10280 | # The C++ compiler is used as linker so we must use $wl |
|
|
10281 | # flag to pass the commands to the underlying system |
|
|
10282 | # linker. We must also pass each convience library through |
|
|
10283 | # to the system linker between allextract/defaultextract. |
|
|
10284 | # The C++ compiler will combine linker options so we |
|
|
10285 | # cannot just pass the convience library names through |
|
|
10286 | # without $wl. |
|
|
10287 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
10288 | 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' |
|
|
10289 | ;; |
|
|
10290 | esac |
|
|
10291 | link_all_deplibs_CXX=yes |
|
|
10292 | |
|
|
10293 | output_verbose_link_cmd='echo' |
|
|
10294 | |
|
|
10295 | # Archives containing C++ object files must be created using |
|
|
10296 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
|
10297 | # necessary to make sure instantiated templates are included |
|
|
10298 | # in the archive. |
|
|
10299 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
|
|
10300 | ;; |
|
|
10301 | gcx*) |
|
|
10302 | # Green Hills C++ Compiler |
|
|
10303 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
10304 | |
|
|
10305 | # The C++ compiler must be used to create the archive. |
|
|
10306 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
|
|
10307 | ;; |
|
|
10308 | *) |
|
|
10309 | # GNU C++ compiler with Solaris linker |
|
|
10310 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
10311 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
|
|
10312 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
|
|
10313 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
10314 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
10315 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
10316 | |
|
|
10317 | # Commands to make compiler produce verbose output that lists |
|
|
10318 | # what "hidden" libraries, object files and flags are used when |
|
|
10319 | # linking a shared library. |
|
|
10320 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
|
10321 | else |
|
|
10322 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
|
|
10323 | # platform. |
|
|
10324 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
10325 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
10326 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
10327 | |
|
|
10328 | # Commands to make compiler produce verbose output that lists |
|
|
10329 | # what "hidden" libraries, object files and flags are used when |
|
|
10330 | # linking a shared library. |
|
|
10331 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
|
10332 | fi |
|
|
10333 | |
|
|
10334 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
|
|
10335 | fi |
|
|
10336 | ;; |
|
|
10337 | esac |
|
|
10338 | ;; |
|
|
10339 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|
|
10340 | no_undefined_flag_CXX='${wl}-z,text' |
|
|
10341 | archive_cmds_need_lc_CXX=no |
|
|
10342 | hardcode_shlibpath_var_CXX=no |
|
|
10343 | runpath_var='LD_RUN_PATH' |
|
|
10344 | |
|
|
10345 | case $cc_basename in |
|
|
10346 | CC*) |
|
|
10347 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10348 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10349 | ;; |
|
|
10350 | *) |
|
|
10351 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10352 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10353 | ;; |
|
|
10354 | esac |
|
|
10355 | ;; |
|
|
10356 | sysv5* | sco3.2v5* | sco5v6*) |
|
|
10357 | # Note: We can NOT use -z defs as we might desire, because we do not |
|
|
10358 | # link with -lc, and that would cause any symbols used from libc to |
|
|
10359 | # always be unresolved, which means just about no library would |
|
|
10360 | # ever link correctly. If we're not using GNU ld we use -z text |
|
|
10361 | # though, which does catch some bad symbols but isn't as heavy-handed |
|
|
10362 | # as -z defs. |
|
|
10363 | # For security reasons, it is highly recommended that you always |
|
|
10364 | # use absolute paths for naming shared libraries, and exclude the |
|
|
10365 | # DT_RUNPATH tag from executables and libraries. But doing so |
|
|
10366 | # requires that you compile everything twice, which is a pain. |
|
|
10367 | # So that behaviour is only enabled if SCOABSPATH is set to a |
|
|
10368 | # non-empty value in the environment. Most likely only useful for |
|
|
10369 | # creating official distributions of packages. |
|
|
10370 | # This is a hack until libtool officially supports absolute path |
|
|
10371 | # names for shared libraries. |
|
|
10372 | no_undefined_flag_CXX='${wl}-z,text' |
|
|
10373 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
|
|
10374 | archive_cmds_need_lc_CXX=no |
|
|
10375 | hardcode_shlibpath_var_CXX=no |
|
|
10376 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
|
10377 | hardcode_libdir_separator_CXX=':' |
|
|
10378 | link_all_deplibs_CXX=yes |
|
|
10379 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
|
|
10380 | runpath_var='LD_RUN_PATH' |
|
|
10381 | |
|
|
10382 | case $cc_basename in |
|
|
10383 | CC*) |
|
|
10384 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10385 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10386 | ;; |
|
|
10387 | *) |
|
|
10388 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10389 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10390 | ;; |
|
|
10391 | esac |
|
|
10392 | ;; |
|
|
10393 | tandem*) |
|
|
10394 | case $cc_basename in |
|
|
10395 | NCC*) |
|
|
10396 | # NonStop-UX NCC 3.20 |
|
|
10397 | # FIXME: insert proper C++ library support |
|
|
10398 | ld_shlibs_CXX=no |
|
|
10399 | ;; |
|
|
10400 | *) |
|
|
10401 | # FIXME: insert proper C++ library support |
|
|
10402 | ld_shlibs_CXX=no |
|
|
10403 | ;; |
|
|
10404 | esac |
|
|
10405 | ;; |
|
|
10406 | vxworks*) |
|
|
10407 | # FIXME: insert proper C++ library support |
|
|
10408 | ld_shlibs_CXX=no |
|
|
10409 | ;; |
|
|
10410 | *) |
|
|
10411 | # FIXME: insert proper C++ library support |
|
|
10412 | ld_shlibs_CXX=no |
|
|
10413 | ;; |
|
|
10414 | esac |
|
|
10415 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
|
|
10416 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
|
|
10417 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
|
10418 | |
|
|
10419 | GCC_CXX="$GXX" |
|
|
10420 | LD_CXX="$LD" |
|
|
10421 | |
|
|
10422 | |
|
|
10423 | cat > conftest.$ac_ext <<EOF |
|
|
10424 | class Foo |
|
|
10425 | { |
|
|
10426 | public: |
|
|
10427 | Foo (void) { a = 0; } |
|
|
10428 | private: |
|
|
10429 | int a; |
|
|
10430 | }; |
|
|
10431 | EOF |
|
|
10432 | |
|
|
10433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10434 | (eval $ac_compile) 2>&5 |
|
|
10435 | ac_status=$? |
|
|
10436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10437 | (exit $ac_status); }; then |
|
|
10438 | # Parse the compiler output and extract the necessary |
|
|
10439 | # objects, libraries and library flags. |
|
|
10440 | |
|
|
10441 | # Sentinel used to keep track of whether or not we are before |
|
|
10442 | # the conftest object file. |
|
|
10443 | pre_test_object_deps_done=no |
|
|
10444 | |
|
|
10445 | # The `*' in the case matches for architectures that use `case' in |
|
|
10446 | # $output_verbose_cmd can trigger glob expansion during the loop |
|
|
10447 | # eval without this substitution. |
|
|
10448 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
|
|
10449 | |
|
|
10450 | for p in `eval $output_verbose_link_cmd`; do |
|
|
10451 | case $p in |
|
|
10452 | |
|
|
10453 | -L* | -R* | -l*) |
|
|
10454 | # Some compilers place space between "-{L,R}" and the path. |
|
|
10455 | # Remove the space. |
|
|
10456 | if test $p = "-L" \ |
|
|
10457 | || test $p = "-R"; then |
|
|
10458 | prev=$p |
|
|
10459 | continue |
|
|
10460 | else |
|
|
10461 | prev= |
|
|
10462 | fi |
|
|
10463 | |
|
|
10464 | if test "$pre_test_object_deps_done" = no; then |
|
|
10465 | case $p in |
|
|
10466 | -L* | -R*) |
|
|
10467 | # Internal compiler library paths should come after those |
|
|
10468 | # provided the user. The postdeps already come after the |
|
|
10469 | # user supplied libs so there is no need to process them. |
|
|
10470 | if test -z "$compiler_lib_search_path_CXX"; then |
|
|
10471 | compiler_lib_search_path_CXX="${prev}${p}" |
|
|
10472 | else |
|
|
10473 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
|
|
10474 | fi |
|
|
10475 | ;; |
|
|
10476 | # The "-l" case would never come before the object being |
|
|
10477 | # linked, so don't bother handling this case. |
|
|
10478 | esac |
|
|
10479 | else |
|
|
10480 | if test -z "$postdeps_CXX"; then |
|
|
10481 | postdeps_CXX="${prev}${p}" |
|
|
10482 | else |
|
|
10483 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
|
|
10484 | fi |
|
|
10485 | fi |
|
|
10486 | ;; |
|
|
10487 | |
|
|
10488 | *.$objext) |
|
|
10489 | # This assumes that the test object file only shows up |
|
|
10490 | # once in the compiler output. |
|
|
10491 | if test "$p" = "conftest.$objext"; then |
|
|
10492 | pre_test_object_deps_done=yes |
|
|
10493 | continue |
|
|
10494 | fi |
|
|
10495 | |
|
|
10496 | if test "$pre_test_object_deps_done" = no; then |
|
|
10497 | if test -z "$predep_objects_CXX"; then |
|
|
10498 | predep_objects_CXX="$p" |
|
|
10499 | else |
|
|
10500 | predep_objects_CXX="$predep_objects_CXX $p" |
|
|
10501 | fi |
|
|
10502 | else |
|
|
10503 | if test -z "$postdep_objects_CXX"; then |
|
|
10504 | postdep_objects_CXX="$p" |
|
|
10505 | else |
|
|
10506 | postdep_objects_CXX="$postdep_objects_CXX $p" |
|
|
10507 | fi |
|
|
10508 | fi |
|
|
10509 | ;; |
|
|
10510 | |
|
|
10511 | *) ;; # Ignore the rest. |
|
|
10512 | |
|
|
10513 | esac |
|
|
10514 | done |
|
|
10515 | |
|
|
10516 | # Clean up. |
|
|
10517 | rm -f a.out a.exe |
|
|
10518 | else |
|
|
10519 | echo "libtool.m4: error: problem compiling CXX test program" |
|
|
10520 | fi |
|
|
10521 | |
|
|
10522 | $rm -f confest.$objext |
|
|
10523 | |
|
|
10524 | # PORTME: override above test on systems where it is broken |
|
|
10525 | case $host_os in |
|
|
10526 | interix3*) |
|
|
10527 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
|
|
10528 | # hack all around it, let's just trust "g++" to DTRT. |
|
|
10529 | predep_objects_CXX= |
|
|
10530 | postdep_objects_CXX= |
|
|
10531 | postdeps_CXX= |
|
|
10532 | ;; |
|
|
10533 | |
|
|
10534 | solaris*) |
|
|
10535 | case $cc_basename in |
|
|
10536 | CC*) |
|
|
10537 | # Adding this requires a known-good setup of shared libraries for |
|
|
10538 | # Sun compiler versions before 5.6, else PIC objects from an old |
|
|
10539 | # archive will be linked into the output, leading to subtle bugs. |
|
|
10540 | postdeps_CXX='-lCstd -lCrun' |
|
|
10541 | ;; |
|
|
10542 | esac |
|
|
10543 | ;; |
|
|
10544 | esac |
|
|
10545 | |
|
|
10546 | |
|
|
10547 | case " $postdeps_CXX " in |
|
|
10548 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
|
|
10549 | esac |
|
|
10550 | |
|
|
10551 | lt_prog_compiler_wl_CXX= |
|
|
10552 | lt_prog_compiler_pic_CXX= |
|
|
10553 | lt_prog_compiler_static_CXX= |
|
|
10554 | |
|
|
10555 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
10556 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
10557 | |
|
|
10558 | # C++ specific cases for pic, static, wl, etc. |
|
|
10559 | if test "$GXX" = yes; then |
|
|
10560 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10561 | lt_prog_compiler_static_CXX='-static' |
|
|
10562 | |
|
|
10563 | case $host_os in |
|
|
10564 | aix*) |
|
|
10565 | # All AIX code is PIC. |
|
|
10566 | if test "$host_cpu" = ia64; then |
|
|
10567 | # AIX 5 now supports IA64 processor |
|
|
10568 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10569 | fi |
|
|
10570 | ;; |
|
|
10571 | amigaos*) |
|
|
10572 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
10573 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
10574 | # like `-m68040'. |
|
|
10575 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
|
|
10576 | ;; |
|
|
10577 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
10578 | # PIC is the default for these OSes. |
|
|
10579 | ;; |
|
|
10580 | mingw* | os2* | pw32*) |
|
|
10581 | # This hack is so that the source file can tell whether it is being |
|
|
10582 | # built for inclusion in a dll (and should export symbols for example). |
|
|
10583 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
|
|
10584 | ;; |
|
|
10585 | darwin* | rhapsody*) |
|
|
10586 | # PIC is the default on this platform |
|
|
10587 | # Common symbols not allowed in MH_DYLIB files |
|
|
10588 | lt_prog_compiler_pic_CXX='-fno-common' |
|
|
10589 | ;; |
|
|
10590 | *djgpp*) |
|
|
10591 | # DJGPP does not support shared libraries at all |
|
|
10592 | lt_prog_compiler_pic_CXX= |
|
|
10593 | ;; |
|
|
10594 | interix3*) |
|
|
10595 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
|
10596 | # Instead, we relocate shared libraries at runtime. |
|
|
10597 | ;; |
|
|
10598 | sysv4*MP*) |
|
|
10599 | if test -d /usr/nec; then |
|
|
10600 | lt_prog_compiler_pic_CXX=-Kconform_pic |
|
|
10601 | fi |
|
|
10602 | ;; |
|
|
10603 | hpux*) |
|
|
10604 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
10605 | # not for PA HP-UX. |
|
|
10606 | case $host_cpu in |
|
|
10607 | hppa*64*|ia64*) |
|
|
10608 | ;; |
|
|
10609 | *) |
|
|
10610 | lt_prog_compiler_pic_CXX='-fPIC' |
|
|
10611 | ;; |
|
|
10612 | esac |
|
|
10613 | ;; |
|
|
10614 | *) |
|
|
10615 | lt_prog_compiler_pic_CXX='-fPIC' |
|
|
10616 | ;; |
|
|
10617 | esac |
|
|
10618 | else |
|
|
10619 | case $host_os in |
|
|
10620 | aix4* | aix5*) |
|
|
10621 | # All AIX code is PIC. |
|
|
10622 | if test "$host_cpu" = ia64; then |
|
|
10623 | # AIX 5 now supports IA64 processor |
|
|
10624 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10625 | else |
|
|
10626 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
|
|
10627 | fi |
|
|
10628 | ;; |
|
|
10629 | chorus*) |
|
|
10630 | case $cc_basename in |
|
|
10631 | cxch68*) |
|
|
10632 | # Green Hills C++ Compiler |
|
|
10633 | # _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" |
|
|
10634 | ;; |
|
|
10635 | esac |
|
|
10636 | ;; |
|
|
10637 | darwin*) |
|
|
10638 | # PIC is the default on this platform |
|
|
10639 | # Common symbols not allowed in MH_DYLIB files |
|
|
10640 | case $cc_basename in |
|
|
10641 | xlc*) |
|
|
10642 | lt_prog_compiler_pic_CXX='-qnocommon' |
|
|
10643 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10644 | ;; |
|
|
10645 | esac |
|
|
10646 | ;; |
|
|
10647 | dgux*) |
|
|
10648 | case $cc_basename in |
|
|
10649 | ec++*) |
|
|
10650 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10651 | ;; |
|
|
10652 | ghcx*) |
|
|
10653 | # Green Hills C++ Compiler |
|
|
10654 | lt_prog_compiler_pic_CXX='-pic' |
|
|
10655 | ;; |
|
|
10656 | *) |
|
|
10657 | ;; |
|
|
10658 | esac |
|
|
10659 | ;; |
|
|
10660 | freebsd* | kfreebsd*-gnu | dragonfly*) |
|
|
10661 | # FreeBSD uses GNU C++ |
|
|
10662 | ;; |
|
|
10663 | hpux9* | hpux10* | hpux11*) |
|
|
10664 | case $cc_basename in |
|
|
10665 | CC*) |
|
|
10666 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10667 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
|
|
10668 | if test "$host_cpu" != ia64; then |
|
|
10669 | lt_prog_compiler_pic_CXX='+Z' |
|
|
10670 | fi |
|
|
10671 | ;; |
|
|
10672 | aCC*) |
|
|
10673 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10674 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
|
|
10675 | case $host_cpu in |
|
|
10676 | hppa*64*|ia64*) |
|
|
10677 | # +Z the default |
|
|
10678 | ;; |
|
|
10679 | *) |
|
|
10680 | lt_prog_compiler_pic_CXX='+Z' |
|
|
10681 | ;; |
|
|
10682 | esac |
|
|
10683 | ;; |
|
|
10684 | *) |
|
|
10685 | ;; |
|
|
10686 | esac |
|
|
10687 | ;; |
|
|
10688 | interix*) |
|
|
10689 | # This is c89, which is MS Visual C++ (no shared libs) |
|
|
10690 | # Anyone wants to do a port? |
|
|
10691 | ;; |
|
|
10692 | irix5* | irix6* | nonstopux*) |
|
|
10693 | case $cc_basename in |
|
|
10694 | CC*) |
|
|
10695 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10696 | lt_prog_compiler_static_CXX='-non_shared' |
|
|
10697 | # CC pic flag -KPIC is the default. |
|
|
10698 | ;; |
|
|
10699 | *) |
|
|
10700 | ;; |
|
|
10701 | esac |
|
|
10702 | ;; |
|
|
10703 | linux*) |
|
|
10704 | case $cc_basename in |
|
|
10705 | KCC*) |
|
|
10706 | # KAI C++ Compiler |
|
|
10707 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
|
10708 | lt_prog_compiler_pic_CXX='-fPIC' |
|
|
10709 | ;; |
|
|
10710 | icpc* | ecpc*) |
|
|
10711 | # Intel C++ |
|
|
10712 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10713 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10714 | lt_prog_compiler_static_CXX='-static' |
|
|
10715 | ;; |
|
|
10716 | pgCC*) |
|
|
10717 | # Portland Group C++ compiler. |
|
|
10718 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10719 | lt_prog_compiler_pic_CXX='-fpic' |
|
|
10720 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10721 | ;; |
|
|
10722 | cxx*) |
|
|
10723 | # Compaq C++ |
|
|
10724 | # Make sure the PIC flag is empty. It appears that all Alpha |
|
|
10725 | # Linux and Compaq Tru64 Unix objects are PIC. |
|
|
10726 | lt_prog_compiler_pic_CXX= |
|
|
10727 | lt_prog_compiler_static_CXX='-non_shared' |
|
|
10728 | ;; |
|
|
10729 | *) |
|
|
10730 | ;; |
|
|
10731 | esac |
|
|
10732 | ;; |
|
|
10733 | lynxos*) |
|
|
10734 | ;; |
|
|
10735 | m88k*) |
|
|
10736 | ;; |
|
|
10737 | mvs*) |
|
|
10738 | case $cc_basename in |
|
|
10739 | cxx*) |
|
|
10740 | lt_prog_compiler_pic_CXX='-W c,exportall' |
|
|
10741 | ;; |
|
|
10742 | *) |
|
|
10743 | ;; |
|
|
10744 | esac |
|
|
10745 | ;; |
|
|
10746 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
10747 | ;; |
|
|
10748 | osf3* | osf4* | osf5*) |
|
|
10749 | case $cc_basename in |
|
|
10750 | KCC*) |
|
|
10751 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
|
10752 | ;; |
|
|
10753 | RCC*) |
|
|
10754 | # Rational C++ 2.4.1 |
|
|
10755 | lt_prog_compiler_pic_CXX='-pic' |
|
|
10756 | ;; |
|
|
10757 | cxx*) |
|
|
10758 | # Digital/Compaq C++ |
|
|
10759 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10760 | # Make sure the PIC flag is empty. It appears that all Alpha |
|
|
10761 | # Linux and Compaq Tru64 Unix objects are PIC. |
|
|
10762 | lt_prog_compiler_pic_CXX= |
|
|
10763 | lt_prog_compiler_static_CXX='-non_shared' |
|
|
10764 | ;; |
|
|
10765 | *) |
|
|
10766 | ;; |
|
|
10767 | esac |
|
|
10768 | ;; |
|
|
10769 | psos*) |
|
|
10770 | ;; |
|
|
10771 | solaris*) |
|
|
10772 | case $cc_basename in |
|
|
10773 | CC*) |
|
|
10774 | # Sun C++ 4.2, 5.x and Centerline C++ |
|
|
10775 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10776 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10777 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
|
|
10778 | ;; |
|
|
10779 | gcx*) |
|
|
10780 | # Green Hills C++ Compiler |
|
|
10781 | lt_prog_compiler_pic_CXX='-PIC' |
|
|
10782 | ;; |
|
|
10783 | *) |
|
|
10784 | ;; |
|
|
10785 | esac |
|
|
10786 | ;; |
|
|
10787 | sunos4*) |
|
|
10788 | case $cc_basename in |
|
|
10789 | CC*) |
|
|
10790 | # Sun C++ 4.x |
|
|
10791 | lt_prog_compiler_pic_CXX='-pic' |
|
|
10792 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10793 | ;; |
|
|
10794 | lcc*) |
|
|
10795 | # Lucid |
|
|
10796 | lt_prog_compiler_pic_CXX='-pic' |
|
|
10797 | ;; |
|
|
10798 | *) |
|
|
10799 | ;; |
|
|
10800 | esac |
|
|
10801 | ;; |
|
|
10802 | tandem*) |
|
|
10803 | case $cc_basename in |
|
|
10804 | NCC*) |
|
|
10805 | # NonStop-UX NCC 3.20 |
|
|
10806 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10807 | ;; |
|
|
10808 | *) |
|
|
10809 | ;; |
|
|
10810 | esac |
|
|
10811 | ;; |
|
|
10812 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
10813 | case $cc_basename in |
|
|
10814 | CC*) |
|
|
10815 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10816 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10817 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10818 | ;; |
|
|
10819 | esac |
|
|
10820 | ;; |
|
|
10821 | vxworks*) |
|
|
10822 | ;; |
|
|
10823 | *) |
|
|
10824 | lt_prog_compiler_can_build_shared_CXX=no |
|
|
10825 | ;; |
|
|
10826 | esac |
|
|
10827 | fi |
|
|
10828 | |
|
|
10829 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
|
|
10830 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
|
|
10831 | |
|
|
10832 | # |
|
|
10833 | # Check to make sure the PIC flag actually works. |
|
|
10834 | # |
|
|
10835 | if test -n "$lt_prog_compiler_pic_CXX"; then |
|
|
10836 | |
|
|
10837 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
|
|
10838 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
|
|
10839 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
|
|
10840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10841 | else |
|
|
10842 | lt_prog_compiler_pic_works_CXX=no |
|
|
10843 | ac_outfile=conftest.$ac_objext |
|
|
10844 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
10845 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
|
|
10846 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
10847 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
10848 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
10849 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
10850 | # The option is referenced via a variable to avoid confusing sed. |
|
|
10851 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
10852 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
10853 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
10854 | -e 's:$: $lt_compiler_flag:'` |
|
|
10855 | (eval echo "\"\$as_me:10855: $lt_compile\"" >&5) |
|
|
10856 | (eval "$lt_compile" 2>conftest.err) |
|
|
10857 | ac_status=$? |
|
|
10858 | cat conftest.err >&5 |
|
|
10859 | echo "$as_me:10859: \$? = $ac_status" >&5 |
|
|
10860 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
10861 | # The compiler can only warn and ignore the option if not recognized |
|
|
10862 | # So say no if there are warnings other than the usual output. |
|
|
10863 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
10864 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
10865 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
|
10866 | lt_prog_compiler_pic_works_CXX=yes |
|
|
10867 | fi |
|
|
10868 | fi |
|
|
10869 | $rm conftest* |
|
|
10870 | |
|
|
10871 | fi |
|
|
10872 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
|
|
10873 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
|
|
10874 | |
|
|
10875 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
|
|
10876 | case $lt_prog_compiler_pic_CXX in |
|
|
10877 | "" | " "*) ;; |
|
|
10878 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
|
|
10879 | esac |
|
|
10880 | else |
|
|
10881 | lt_prog_compiler_pic_CXX= |
|
|
10882 | lt_prog_compiler_can_build_shared_CXX=no |
|
|
10883 | fi |
|
|
10884 | |
|
|
10885 | fi |
|
|
10886 | case $host_os in |
|
|
10887 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
10888 | *djgpp*) |
|
|
10889 | lt_prog_compiler_pic_CXX= |
|
|
10890 | ;; |
|
|
10891 | *) |
|
|
10892 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
|
|
10893 | ;; |
|
|
10894 | esac |
|
|
10895 | |
|
|
10896 | # |
|
|
10897 | # Check to make sure the static flag actually works. |
|
|
10898 | # |
|
|
10899 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
|
|
10900 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
|
10901 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
|
|
10902 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
|
|
10903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10904 | else |
|
|
10905 | lt_prog_compiler_static_works_CXX=no |
|
|
10906 | save_LDFLAGS="$LDFLAGS" |
|
|
10907 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
|
10908 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
10909 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
10910 | # The linker can only warn and ignore the option if not recognized |
|
|
10911 | # So say no if there are warnings |
|
|
10912 | if test -s conftest.err; then |
|
|
10913 | # Append any errors to the config.log. |
|
|
10914 | cat conftest.err 1>&5 |
|
|
10915 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
|
10916 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
10917 | if diff conftest.exp conftest.er2 >/dev/null; then |
|
|
10918 | lt_prog_compiler_static_works_CXX=yes |
|
|
10919 | fi |
|
|
10920 | else |
|
|
10921 | lt_prog_compiler_static_works_CXX=yes |
|
|
10922 | fi |
|
|
10923 | fi |
|
|
10924 | $rm conftest* |
|
|
10925 | LDFLAGS="$save_LDFLAGS" |
|
|
10926 | |
|
|
10927 | fi |
|
|
10928 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
|
|
10929 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 |
|
|
10930 | |
|
|
10931 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
|
|
10932 | : |
|
|
10933 | else |
|
|
10934 | lt_prog_compiler_static_CXX= |
|
|
10935 | fi |
|
|
10936 | |
|
|
10937 | |
|
|
10938 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
10939 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
10940 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
|
|
10941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10942 | else |
|
|
10943 | lt_cv_prog_compiler_c_o_CXX=no |
|
|
10944 | $rm -r conftest 2>/dev/null |
|
|
10945 | mkdir conftest |
|
|
10946 | cd conftest |
|
|
10947 | mkdir out |
|
|
10948 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
10949 | |
|
|
10950 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
|
10951 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
10952 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
10953 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
10954 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
10955 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
10956 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
10957 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
10958 | -e 's:$: $lt_compiler_flag:'` |
|
|
10959 | (eval echo "\"\$as_me:10959: $lt_compile\"" >&5) |
|
|
10960 | (eval "$lt_compile" 2>out/conftest.err) |
|
|
10961 | ac_status=$? |
|
|
10962 | cat out/conftest.err >&5 |
|
|
10963 | echo "$as_me:10963: \$? = $ac_status" >&5 |
|
|
10964 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
|
10965 | then |
|
|
10966 | # The compiler can only warn and ignore the option if not recognized |
|
|
10967 | # So say no if there are warnings |
|
|
10968 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
10969 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
|
10970 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
|
10971 | lt_cv_prog_compiler_c_o_CXX=yes |
|
|
10972 | fi |
|
|
10973 | fi |
|
|
10974 | chmod u+w . 2>&5 |
|
|
10975 | $rm conftest* |
|
|
10976 | # SGI C++ compiler will create directory out/ii_files/ for |
|
|
10977 | # template instantiation |
|
|
10978 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
|
10979 | $rm out/* && rmdir out |
|
|
10980 | cd .. |
|
|
10981 | rmdir conftest |
|
|
10982 | $rm conftest* |
|
|
10983 | |
|
|
10984 | fi |
|
|
10985 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
|
|
10986 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
|
|
10987 | |
|
|
10988 | |
|
|
10989 | hard_links="nottested" |
|
|
10990 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
|
|
10991 | # do not overwrite the value of need_locks provided by the user |
|
|
10992 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
10993 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
10994 | hard_links=yes |
|
|
10995 | $rm conftest* |
|
|
10996 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
10997 | touch conftest.a |
|
|
10998 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
10999 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
11000 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
11001 | echo "${ECHO_T}$hard_links" >&6 |
|
|
11002 | if test "$hard_links" = no; then |
|
|
11003 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
11004 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
11005 | need_locks=warn |
|
|
11006 | fi |
|
|
11007 | else |
|
|
11008 | need_locks=no |
|
|
11009 | fi |
|
|
11010 | |
|
|
11011 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
11012 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
11013 | |
|
|
11014 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
11015 | case $host_os in |
|
|
11016 | aix4* | aix5*) |
|
|
11017 | # If we're using GNU nm, then we don't want the "-C" option. |
|
|
11018 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
|
11019 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
|
11020 | 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' |
|
|
11021 | else |
|
|
11022 | 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' |
|
|
11023 | fi |
|
|
11024 | ;; |
|
|
11025 | pw32*) |
|
|
11026 | export_symbols_cmds_CXX="$ltdll_cmds" |
|
|
11027 | ;; |
|
|
11028 | cygwin* | mingw*) |
|
|
11029 | 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' |
|
|
11030 | ;; |
|
|
11031 | kfreebsd*-gnu) |
|
|
11032 | link_all_deplibs_CXX=no |
|
|
11033 | ;; |
|
|
11034 | linux*) |
|
|
11035 | link_all_deplibs_CXX=no |
|
|
11036 | ;; |
|
|
11037 | *) |
|
|
11038 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
11039 | ;; |
|
|
11040 | esac |
|
|
11041 | |
|
|
11042 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
|
|
11043 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
|
|
11044 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
|
11045 | |
|
|
11046 | # |
|
|
11047 | # Do we need to explicitly link libc? |
|
|
11048 | # |
|
|
11049 | case "x$archive_cmds_need_lc_CXX" in |
|
|
11050 | x|xyes) |
|
|
11051 | # Assume -lc should be added |
|
|
11052 | archive_cmds_need_lc_CXX=yes |
|
|
11053 | |
|
|
11054 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
11055 | case $archive_cmds_CXX in |
|
|
11056 | *'~'*) |
|
|
11057 | # FIXME: we may have to deal with multi-command sequences. |
|
|
11058 | ;; |
|
|
11059 | '$CC '*) |
|
|
11060 | # Test whether the compiler implicitly links with -lc since on some |
|
|
11061 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
11062 | # to ld, don't add -lc before -lgcc. |
|
|
11063 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
11064 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
11065 | $rm conftest* |
|
|
11066 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
11067 | |
|
|
11068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11069 | (eval $ac_compile) 2>&5 |
|
|
11070 | ac_status=$? |
|
|
11071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11072 | (exit $ac_status); } 2>conftest.err; then |
|
|
11073 | soname=conftest |
|
|
11074 | lib=conftest |
|
|
11075 | libobjs=conftest.$ac_objext |
|
|
11076 | deplibs= |
|
|
11077 | wl=$lt_prog_compiler_wl_CXX |
|
|
11078 | pic_flag=$lt_prog_compiler_pic_CXX |
|
|
11079 | compiler_flags=-v |
|
|
11080 | linker_flags=-v |
|
|
11081 | verstring= |
|
|
11082 | output_objdir=. |
|
|
11083 | libname=conftest |
|
|
11084 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
|
|
11085 | allow_undefined_flag_CXX= |
|
|
11086 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
11087 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
11088 | ac_status=$? |
|
|
11089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11090 | (exit $ac_status); } |
|
|
11091 | then |
|
|
11092 | archive_cmds_need_lc_CXX=no |
|
|
11093 | else |
|
|
11094 | archive_cmds_need_lc_CXX=yes |
|
|
11095 | fi |
|
|
11096 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
|
|
11097 | else |
|
|
11098 | cat conftest.err 1>&5 |
|
|
11099 | fi |
|
|
11100 | $rm conftest* |
|
|
11101 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
|
|
11102 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
|
|
11103 | ;; |
|
|
11104 | esac |
|
|
11105 | fi |
|
|
11106 | ;; |
|
|
11107 | esac |
|
|
11108 | |
|
|
11109 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
11110 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
11111 | library_names_spec= |
|
|
11112 | libname_spec='lib$name' |
|
|
11113 | soname_spec= |
|
|
11114 | shrext_cmds=".so" |
|
|
11115 | postinstall_cmds= |
|
|
11116 | postuninstall_cmds= |
|
|
11117 | finish_cmds= |
|
|
11118 | finish_eval= |
|
|
11119 | shlibpath_var= |
|
|
11120 | shlibpath_overrides_runpath=unknown |
|
|
11121 | version_type=none |
|
|
11122 | dynamic_linker="$host_os ld.so" |
|
|
11123 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
11124 | if test "$GCC" = yes; then |
|
|
11125 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
11126 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
|
11127 | # if the path contains ";" then we assume it to be the separator |
|
|
11128 | # otherwise default to the standard path separator (i.e. ":") - it is |
|
|
11129 | # assumed that no part of a normal pathname contains ";" but that should |
|
|
11130 | # okay in the real world where ";" in dirpaths is itself problematic. |
|
|
11131 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
11132 | else |
|
|
11133 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
11134 | fi |
|
|
11135 | else |
|
|
11136 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
11137 | fi |
|
|
11138 | need_lib_prefix=unknown |
|
|
11139 | hardcode_into_libs=no |
|
|
11140 | |
|
|
11141 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
11142 | # flags to be left without arguments |
|
|
11143 | need_version=unknown |
|
|
11144 | |
|
|
11145 | case $host_os in |
|
|
11146 | aix3*) |
|
|
11147 | version_type=linux |
|
|
11148 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
|
11149 | shlibpath_var=LIBPATH |
|
|
11150 | |
|
|
11151 | # AIX 3 has no versioning support, so we append a major version to the name. |
|
|
11152 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11153 | ;; |
|
|
11154 | |
|
|
11155 | aix4* | aix5*) |
|
|
11156 | version_type=linux |
|
|
11157 | need_lib_prefix=no |
|
|
11158 | need_version=no |
|
|
11159 | hardcode_into_libs=yes |
|
|
11160 | if test "$host_cpu" = ia64; then |
|
|
11161 | # AIX 5 supports IA64 |
|
|
11162 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
|
11163 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11164 | else |
|
|
11165 | # With GCC up to 2.95.x, collect2 would create an import file |
|
|
11166 | # for dependence libraries. The import file would start with |
|
|
11167 | # the line `#! .'. This would cause the generated library to |
|
|
11168 | # depend on `.', always an invalid library. This was fixed in |
|
|
11169 | # development snapshots of GCC prior to 3.0. |
|
|
11170 | case $host_os in |
|
|
11171 | aix4 | aix4.[01] | aix4.[01].*) |
|
|
11172 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
11173 | echo ' yes ' |
|
|
11174 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
11175 | : |
|
|
11176 | else |
|
|
11177 | can_build_shared=no |
|
|
11178 | fi |
|
|
11179 | ;; |
|
|
11180 | esac |
|
|
11181 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
|
11182 | # soname into executable. Probably we can add versioning support to |
|
|
11183 | # collect2, so additional links can be useful in future. |
|
|
11184 | if test "$aix_use_runtimelinking" = yes; then |
|
|
11185 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
11186 | # instead of lib<name>.a to let people know that these are not |
|
|
11187 | # typical AIX shared libraries. |
|
|
11188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11189 | else |
|
|
11190 | # We preserve .a as extension for shared libraries through AIX4.2 |
|
|
11191 | # and later when we are not doing run time linking. |
|
|
11192 | library_names_spec='${libname}${release}.a $libname.a' |
|
|
11193 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11194 | fi |
|
|
11195 | shlibpath_var=LIBPATH |
|
|
11196 | fi |
|
|
11197 | ;; |
|
|
11198 | |
|
|
11199 | amigaos*) |
|
|
11200 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
11201 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
11202 | 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' |
|
|
11203 | ;; |
|
|
11204 | |
|
|
11205 | beos*) |
|
|
11206 | library_names_spec='${libname}${shared_ext}' |
|
|
11207 | dynamic_linker="$host_os ld.so" |
|
|
11208 | shlibpath_var=LIBRARY_PATH |
|
|
11209 | ;; |
|
|
11210 | |
|
|
11211 | bsdi[45]*) |
|
|
11212 | version_type=linux |
|
|
11213 | need_version=no |
|
|
11214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11215 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11216 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
11217 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11218 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
11219 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
11220 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
11221 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
11222 | # libtool to hard-code these into programs |
|
|
11223 | ;; |
|
|
11224 | |
|
|
11225 | cygwin* | mingw* | pw32*) |
|
|
11226 | version_type=windows |
|
|
11227 | shrext_cmds=".dll" |
|
|
11228 | need_version=no |
|
|
11229 | need_lib_prefix=no |
|
|
11230 | |
|
|
11231 | case $GCC,$host_os in |
|
|
11232 | yes,cygwin* | yes,mingw* | yes,pw32*) |
|
|
11233 | library_names_spec='$libname.dll.a' |
|
|
11234 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
|
11235 | postinstall_cmds='base_file=`basename \${file}`~ |
|
|
11236 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
|
11237 | dldir=$destdir/`dirname \$dlpath`~ |
|
|
11238 | test -d \$dldir || mkdir -p \$dldir~ |
|
|
11239 | $install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
11240 | chmod a+x \$dldir/$dlname' |
|
|
11241 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
11242 | dlpath=$dir/\$dldll~ |
|
|
11243 | $rm \$dlpath' |
|
|
11244 | shlibpath_overrides_runpath=yes |
|
|
11245 | |
|
|
11246 | case $host_os in |
|
|
11247 | cygwin*) |
|
|
11248 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
|
11249 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
11250 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
|
11251 | ;; |
|
|
11252 | mingw*) |
|
|
11253 | # MinGW DLLs use traditional 'lib' prefix |
|
|
11254 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
11255 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
11256 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
|
11257 | # It is most probably a Windows format PATH printed by |
|
|
11258 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
|
11259 | # path with ; separators, and with drive letters. We can handle the |
|
|
11260 | # drive letters (cygwin fileutils understands them), so leave them, |
|
|
11261 | # especially as we might pass files found there to a mingw objdump, |
|
|
11262 | # which wouldn't understand a cygwinified path. Ahh. |
|
|
11263 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
11264 | else |
|
|
11265 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
11266 | fi |
|
|
11267 | ;; |
|
|
11268 | pw32*) |
|
|
11269 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
|
11270 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
11271 | ;; |
|
|
11272 | esac |
|
|
11273 | ;; |
|
|
11274 | |
|
|
11275 | *) |
|
|
11276 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
|
11277 | ;; |
|
|
11278 | esac |
|
|
11279 | dynamic_linker='Win32 ld.exe' |
|
|
11280 | # FIXME: first we should search . and the directory the executable is in |
|
|
11281 | shlibpath_var=PATH |
|
|
11282 | ;; |
|
|
11283 | |
|
|
11284 | darwin* | rhapsody*) |
|
|
11285 | dynamic_linker="$host_os dyld" |
|
|
11286 | version_type=darwin |
|
|
11287 | need_lib_prefix=no |
|
|
11288 | need_version=no |
|
|
11289 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
|
11290 | soname_spec='${libname}${release}${major}$shared_ext' |
|
|
11291 | shlibpath_overrides_runpath=yes |
|
|
11292 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
11293 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
|
11294 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
|
11295 | if test "$GCC" = yes; then |
|
|
11296 | 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"` |
|
|
11297 | else |
|
|
11298 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
|
11299 | fi |
|
|
11300 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
|
11301 | ;; |
|
|
11302 | |
|
|
11303 | dgux*) |
|
|
11304 | version_type=linux |
|
|
11305 | need_lib_prefix=no |
|
|
11306 | need_version=no |
|
|
11307 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
|
11308 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11309 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11310 | ;; |
|
|
11311 | |
|
|
11312 | freebsd1*) |
|
|
11313 | dynamic_linker=no |
|
|
11314 | ;; |
|
|
11315 | |
|
|
11316 | kfreebsd*-gnu) |
|
|
11317 | version_type=linux |
|
|
11318 | need_lib_prefix=no |
|
|
11319 | need_version=no |
|
|
11320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11321 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11322 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11323 | shlibpath_overrides_runpath=no |
|
|
11324 | hardcode_into_libs=yes |
|
|
11325 | dynamic_linker='GNU ld.so' |
|
|
11326 | ;; |
|
|
11327 | |
|
|
11328 | freebsd* | dragonfly*) |
|
|
11329 | # DragonFly does not have aout. When/if they implement a new |
|
|
11330 | # versioning mechanism, adjust this. |
|
|
11331 | if test -x /usr/bin/objformat; then |
|
|
11332 | objformat=`/usr/bin/objformat` |
|
|
11333 | else |
|
|
11334 | case $host_os in |
|
|
11335 | freebsd[123]*) objformat=aout ;; |
|
|
11336 | *) objformat=elf ;; |
|
|
11337 | esac |
|
|
11338 | fi |
|
|
11339 | version_type=freebsd-$objformat |
|
|
11340 | case $version_type in |
|
|
11341 | freebsd-elf*) |
|
|
11342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
11343 | need_version=no |
|
|
11344 | need_lib_prefix=no |
|
|
11345 | ;; |
|
|
11346 | freebsd-*) |
|
|
11347 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
|
11348 | need_version=yes |
|
|
11349 | ;; |
|
|
11350 | esac |
|
|
11351 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11352 | case $host_os in |
|
|
11353 | freebsd2*) |
|
|
11354 | shlibpath_overrides_runpath=yes |
|
|
11355 | ;; |
|
|
11356 | freebsd3.[01]* | freebsdelf3.[01]*) |
|
|
11357 | shlibpath_overrides_runpath=yes |
|
|
11358 | hardcode_into_libs=yes |
|
|
11359 | ;; |
|
|
11360 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
|
11361 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
|
11362 | shlibpath_overrides_runpath=no |
|
|
11363 | hardcode_into_libs=yes |
|
|
11364 | ;; |
|
|
11365 | freebsd*) # from 4.6 on |
|
|
11366 | shlibpath_overrides_runpath=yes |
|
|
11367 | hardcode_into_libs=yes |
|
|
11368 | ;; |
|
|
11369 | esac |
|
|
11370 | ;; |
|
|
11371 | |
|
|
11372 | gnu*) |
|
|
11373 | version_type=linux |
|
|
11374 | need_lib_prefix=no |
|
|
11375 | need_version=no |
|
|
11376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
|
11377 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11378 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11379 | hardcode_into_libs=yes |
|
|
11380 | ;; |
|
|
11381 | |
|
|
11382 | hpux9* | hpux10* | hpux11*) |
|
|
11383 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
11384 | # link against other versions. |
|
|
11385 | version_type=sunos |
|
|
11386 | need_lib_prefix=no |
|
|
11387 | need_version=no |
|
|
11388 | case $host_cpu in |
|
|
11389 | ia64*) |
|
|
11390 | shrext_cmds='.so' |
|
|
11391 | hardcode_into_libs=yes |
|
|
11392 | dynamic_linker="$host_os dld.so" |
|
|
11393 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11394 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
11395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11396 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11397 | if test "X$HPUX_IA64_MODE" = X32; then |
|
|
11398 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
|
11399 | else |
|
|
11400 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
|
11401 | fi |
|
|
11402 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
11403 | ;; |
|
|
11404 | hppa*64*) |
|
|
11405 | shrext_cmds='.sl' |
|
|
11406 | hardcode_into_libs=yes |
|
|
11407 | dynamic_linker="$host_os dld.sl" |
|
|
11408 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
|
11409 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
11410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11411 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11412 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
|
11413 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
11414 | ;; |
|
|
11415 | *) |
|
|
11416 | shrext_cmds='.sl' |
|
|
11417 | dynamic_linker="$host_os dld.sl" |
|
|
11418 | shlibpath_var=SHLIB_PATH |
|
|
11419 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
11420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11421 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11422 | ;; |
|
|
11423 | esac |
|
|
11424 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
11425 | postinstall_cmds='chmod 555 $lib' |
|
|
11426 | ;; |
|
|
11427 | |
|
|
11428 | interix3*) |
|
|
11429 | version_type=linux |
|
|
11430 | need_lib_prefix=no |
|
|
11431 | need_version=no |
|
|
11432 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11433 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11434 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
|
11435 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11436 | shlibpath_overrides_runpath=no |
|
|
11437 | hardcode_into_libs=yes |
|
|
11438 | ;; |
|
|
11439 | |
|
|
11440 | irix5* | irix6* | nonstopux*) |
|
|
11441 | case $host_os in |
|
|
11442 | nonstopux*) version_type=nonstopux ;; |
|
|
11443 | *) |
|
|
11444 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
11445 | version_type=linux |
|
|
11446 | else |
|
|
11447 | version_type=irix |
|
|
11448 | fi ;; |
|
|
11449 | esac |
|
|
11450 | need_lib_prefix=no |
|
|
11451 | need_version=no |
|
|
11452 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
11454 | case $host_os in |
|
|
11455 | irix5* | nonstopux*) |
|
|
11456 | libsuff= shlibsuff= |
|
|
11457 | ;; |
|
|
11458 | *) |
|
|
11459 | case $LD in # libtool.m4 will add one of these switches to LD |
|
|
11460 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
|
11461 | libsuff= shlibsuff= libmagic=32-bit;; |
|
|
11462 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
|
11463 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
11464 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
|
11465 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
11466 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
11467 | esac |
|
|
11468 | ;; |
|
|
11469 | esac |
|
|
11470 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
11471 | shlibpath_overrides_runpath=no |
|
|
11472 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
11473 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
11474 | hardcode_into_libs=yes |
|
|
11475 | ;; |
|
|
11476 | |
|
|
11477 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
11478 | linux*oldld* | linux*aout* | linux*coff*) |
|
|
11479 | dynamic_linker=no |
|
|
11480 | ;; |
|
|
11481 | |
|
|
11482 | # This must be Linux ELF. |
|
|
11483 | linux*) |
|
|
11484 | version_type=linux |
|
|
11485 | need_lib_prefix=no |
|
|
11486 | need_version=no |
|
|
11487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11488 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11489 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
11490 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11491 | shlibpath_overrides_runpath=no |
|
|
11492 | # This implies no fast_install, which is unacceptable. |
|
|
11493 | # Some rework will be needed to allow for fast_install |
|
|
11494 | # before this can be enabled. |
|
|
11495 | hardcode_into_libs=yes |
|
|
11496 | |
|
|
11497 | # Append ld.so.conf contents to the search path |
|
|
11498 | if test -f /etc/ld.so.conf; then |
|
|
11499 | 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' ' '` |
|
|
11500 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
|
11501 | fi |
|
|
11502 | |
|
|
11503 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
11504 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
11505 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
11506 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
11507 | # people can always --disable-shared, the test was removed, and we |
|
|
11508 | # assume the GNU/Linux dynamic linker is in use. |
|
|
11509 | dynamic_linker='GNU/Linux ld.so' |
|
|
11510 | ;; |
|
|
11511 | |
|
|
11512 | netbsdelf*-gnu) |
|
|
11513 | version_type=linux |
|
|
11514 | need_lib_prefix=no |
|
|
11515 | need_version=no |
|
|
11516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11517 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11518 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11519 | shlibpath_overrides_runpath=no |
|
|
11520 | hardcode_into_libs=yes |
|
|
11521 | dynamic_linker='NetBSD ld.elf_so' |
|
|
11522 | ;; |
|
|
11523 | |
|
|
11524 | knetbsd*-gnu) |
|
|
11525 | version_type=linux |
|
|
11526 | need_lib_prefix=no |
|
|
11527 | need_version=no |
|
|
11528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11529 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11530 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11531 | shlibpath_overrides_runpath=no |
|
|
11532 | hardcode_into_libs=yes |
|
|
11533 | dynamic_linker='GNU ld.so' |
|
|
11534 | ;; |
|
|
11535 | |
|
|
11536 | netbsd*) |
|
|
11537 | version_type=sunos |
|
|
11538 | need_lib_prefix=no |
|
|
11539 | need_version=no |
|
|
11540 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
11541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
11542 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
11543 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
11544 | else |
|
|
11545 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11546 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11547 | dynamic_linker='NetBSD ld.elf_so' |
|
|
11548 | fi |
|
|
11549 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11550 | shlibpath_overrides_runpath=yes |
|
|
11551 | hardcode_into_libs=yes |
|
|
11552 | ;; |
|
|
11553 | |
|
|
11554 | newsos6) |
|
|
11555 | version_type=linux |
|
|
11556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11557 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11558 | shlibpath_overrides_runpath=yes |
|
|
11559 | ;; |
|
|
11560 | |
|
|
11561 | nto-qnx*) |
|
|
11562 | version_type=linux |
|
|
11563 | need_lib_prefix=no |
|
|
11564 | need_version=no |
|
|
11565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11566 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11567 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11568 | shlibpath_overrides_runpath=yes |
|
|
11569 | ;; |
|
|
11570 | |
|
|
11571 | openbsd*) |
|
|
11572 | version_type=sunos |
|
|
11573 | sys_lib_dlsearch_path_spec="/usr/lib" |
|
|
11574 | need_lib_prefix=no |
|
|
11575 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
11576 | case $host_os in |
|
|
11577 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
|
11578 | *) need_version=no ;; |
|
|
11579 | esac |
|
|
11580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
11581 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
11582 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11583 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
11584 | case $host_os in |
|
|
11585 | openbsd2.[89] | openbsd2.[89].*) |
|
|
11586 | shlibpath_overrides_runpath=no |
|
|
11587 | ;; |
|
|
11588 | *) |
|
|
11589 | shlibpath_overrides_runpath=yes |
|
|
11590 | ;; |
|
|
11591 | esac |
|
|
11592 | else |
|
|
11593 | shlibpath_overrides_runpath=yes |
|
|
11594 | fi |
|
|
11595 | ;; |
|
|
11596 | |
|
|
11597 | os2*) |
|
|
11598 | libname_spec='$name' |
|
|
11599 | shrext_cmds=".dll" |
|
|
11600 | need_lib_prefix=no |
|
|
11601 | library_names_spec='$libname${shared_ext} $libname.a' |
|
|
11602 | dynamic_linker='OS/2 ld.exe' |
|
|
11603 | shlibpath_var=LIBPATH |
|
|
11604 | ;; |
|
|
11605 | |
|
|
11606 | osf3* | osf4* | osf5*) |
|
|
11607 | version_type=osf |
|
|
11608 | need_lib_prefix=no |
|
|
11609 | need_version=no |
|
|
11610 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11611 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11612 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11613 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
11614 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
11615 | ;; |
|
|
11616 | |
|
|
11617 | solaris*) |
|
|
11618 | version_type=linux |
|
|
11619 | need_lib_prefix=no |
|
|
11620 | need_version=no |
|
|
11621 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11622 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11623 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11624 | shlibpath_overrides_runpath=yes |
|
|
11625 | hardcode_into_libs=yes |
|
|
11626 | # ldd complains unless libraries are executable |
|
|
11627 | postinstall_cmds='chmod +x $lib' |
|
|
11628 | ;; |
|
|
11629 | |
|
|
11630 | sunos4*) |
|
|
11631 | version_type=sunos |
|
|
11632 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
11633 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
11634 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11635 | shlibpath_overrides_runpath=yes |
|
|
11636 | if test "$with_gnu_ld" = yes; then |
|
|
11637 | need_lib_prefix=no |
|
|
11638 | fi |
|
|
11639 | need_version=yes |
|
|
11640 | ;; |
|
|
11641 | |
|
|
11642 | sysv4 | sysv4.3*) |
|
|
11643 | version_type=linux |
|
|
11644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11645 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11646 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11647 | case $host_vendor in |
|
|
11648 | sni) |
|
|
11649 | shlibpath_overrides_runpath=no |
|
|
11650 | need_lib_prefix=no |
|
|
11651 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
11652 | runpath_var=LD_RUN_PATH |
|
|
11653 | ;; |
|
|
11654 | siemens) |
|
|
11655 | need_lib_prefix=no |
|
|
11656 | ;; |
|
|
11657 | motorola) |
|
|
11658 | need_lib_prefix=no |
|
|
11659 | need_version=no |
|
|
11660 | shlibpath_overrides_runpath=no |
|
|
11661 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
11662 | ;; |
|
|
11663 | esac |
|
|
11664 | ;; |
|
|
11665 | |
|
|
11666 | sysv4*MP*) |
|
|
11667 | if test -d /usr/nec ;then |
|
|
11668 | version_type=linux |
|
|
11669 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
|
11670 | soname_spec='$libname${shared_ext}.$major' |
|
|
11671 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11672 | fi |
|
|
11673 | ;; |
|
|
11674 | |
|
|
11675 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
11676 | version_type=freebsd-elf |
|
|
11677 | need_lib_prefix=no |
|
|
11678 | need_version=no |
|
|
11679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
11680 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11681 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11682 | hardcode_into_libs=yes |
|
|
11683 | if test "$with_gnu_ld" = yes; then |
|
|
11684 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
|
11685 | shlibpath_overrides_runpath=no |
|
|
11686 | else |
|
|
11687 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
|
11688 | shlibpath_overrides_runpath=yes |
|
|
11689 | case $host_os in |
|
|
11690 | sco3.2v5*) |
|
|
11691 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
|
11692 | ;; |
|
|
11693 | esac |
|
|
11694 | fi |
|
|
11695 | sys_lib_dlsearch_path_spec='/usr/lib' |
|
|
11696 | ;; |
|
|
11697 | |
|
|
11698 | uts4*) |
|
|
11699 | version_type=linux |
|
|
11700 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11701 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11702 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11703 | ;; |
|
|
11704 | |
|
|
11705 | *) |
|
|
11706 | dynamic_linker=no |
|
|
11707 | ;; |
|
|
11708 | esac |
|
|
11709 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
11710 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
11711 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
11712 | |
|
|
11713 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
11714 | if test "$GCC" = yes; then |
|
|
11715 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
11716 | fi |
|
|
11717 | |
|
|
11718 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
11719 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
11720 | hardcode_action_CXX= |
|
|
11721 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
|
|
11722 | test -n "$runpath_var_CXX" || \ |
|
|
11723 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
|
|
11724 | |
|
|
11725 | # We can hardcode non-existant directories. |
|
|
11726 | if test "$hardcode_direct_CXX" != no && |
|
|
11727 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
11728 | # have to relink, otherwise we might link with an installed library |
|
|
11729 | # when we should be linking with a yet-to-be-installed one |
|
|
11730 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
|
|
11731 | test "$hardcode_minus_L_CXX" != no; then |
|
|
11732 | # Linking always hardcodes the temporary library directory. |
|
|
11733 | hardcode_action_CXX=relink |
|
|
11734 | else |
|
|
11735 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
11736 | hardcode_action_CXX=immediate |
|
|
11737 | fi |
|
|
11738 | else |
|
|
11739 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
11740 | # directories. |
|
|
11741 | hardcode_action_CXX=unsupported |
|
|
11742 | fi |
|
|
11743 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
|
|
11744 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
|
|
11745 | |
|
|
11746 | if test "$hardcode_action_CXX" = relink; then |
|
|
11747 | # Fast installation is not supported |
|
|
11748 | enable_fast_install=no |
|
|
11749 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
11750 | test "$enable_shared" = no; then |
|
|
11751 | # Fast installation is not necessary |
|
|
11752 | enable_fast_install=needless |
|
|
11753 | fi |
|
|
11754 | |
|
|
11755 | |
|
|
11756 | # The else clause should only fire when bootstrapping the |
|
|
11757 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
11758 | # with your package, and you will get complaints that there are |
|
|
11759 | # no rules to generate ltmain.sh. |
|
|
11760 | if test -f "$ltmain"; then |
|
|
11761 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
11762 | # without removal of \ escapes. |
|
|
11763 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
11764 | setopt NO_GLOB_SUBST |
|
|
11765 | fi |
|
|
11766 | # Now quote all the things that may contain metacharacters while being |
|
|
11767 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
11768 | # variables and quote the copies for generation of the libtool script. |
|
|
11769 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
|
11770 | SED SHELL STRIP \ |
|
|
11771 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
11772 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
11773 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
11774 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
11775 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
11776 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
11777 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
11778 | compiler_CXX \ |
|
|
11779 | CC_CXX \ |
|
|
11780 | LD_CXX \ |
|
|
11781 | lt_prog_compiler_wl_CXX \ |
|
|
11782 | lt_prog_compiler_pic_CXX \ |
|
|
11783 | lt_prog_compiler_static_CXX \ |
|
|
11784 | lt_prog_compiler_no_builtin_flag_CXX \ |
|
|
11785 | export_dynamic_flag_spec_CXX \ |
|
|
11786 | thread_safe_flag_spec_CXX \ |
|
|
11787 | whole_archive_flag_spec_CXX \ |
|
|
11788 | enable_shared_with_static_runtimes_CXX \ |
|
|
11789 | old_archive_cmds_CXX \ |
|
|
11790 | old_archive_from_new_cmds_CXX \ |
|
|
11791 | predep_objects_CXX \ |
|
|
11792 | postdep_objects_CXX \ |
|
|
11793 | predeps_CXX \ |
|
|
11794 | postdeps_CXX \ |
|
|
11795 | compiler_lib_search_path_CXX \ |
|
|
11796 | archive_cmds_CXX \ |
|
|
11797 | archive_expsym_cmds_CXX \ |
|
|
11798 | postinstall_cmds_CXX \ |
|
|
11799 | postuninstall_cmds_CXX \ |
|
|
11800 | old_archive_from_expsyms_cmds_CXX \ |
|
|
11801 | allow_undefined_flag_CXX \ |
|
|
11802 | no_undefined_flag_CXX \ |
|
|
11803 | export_symbols_cmds_CXX \ |
|
|
11804 | hardcode_libdir_flag_spec_CXX \ |
|
|
11805 | hardcode_libdir_flag_spec_ld_CXX \ |
|
|
11806 | hardcode_libdir_separator_CXX \ |
|
|
11807 | hardcode_automatic_CXX \ |
|
|
11808 | module_cmds_CXX \ |
|
|
11809 | module_expsym_cmds_CXX \ |
|
|
11810 | lt_cv_prog_compiler_c_o_CXX \ |
|
|
11811 | exclude_expsyms_CXX \ |
|
|
11812 | include_expsyms_CXX; do |
|
|
11813 | |
|
|
11814 | case $var in |
|
|
11815 | old_archive_cmds_CXX | \ |
|
|
11816 | old_archive_from_new_cmds_CXX | \ |
|
|
11817 | archive_cmds_CXX | \ |
|
|
11818 | archive_expsym_cmds_CXX | \ |
|
|
11819 | module_cmds_CXX | \ |
|
|
11820 | module_expsym_cmds_CXX | \ |
|
|
11821 | old_archive_from_expsyms_cmds_CXX | \ |
|
|
11822 | export_symbols_cmds_CXX | \ |
|
|
11823 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
11824 | postinstall_cmds | postuninstall_cmds | \ |
|
|
11825 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
11826 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
11827 | # Double-quote double-evaled strings. |
|
|
11828 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
11829 | ;; |
|
|
11830 | *) |
|
|
11831 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
11832 | ;; |
|
|
11833 | esac |
|
|
11834 | done |
|
|
11835 | |
|
|
11836 | case $lt_echo in |
|
|
11837 | *'\$0 --fallback-echo"') |
|
|
11838 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
11839 | ;; |
|
|
11840 | esac |
|
|
11841 | |
|
|
11842 | cfgfile="$ofile" |
|
|
11843 | |
|
|
11844 | cat <<__EOF__ >> "$cfgfile" |
|
|
11845 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
|
11846 | |
|
|
11847 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
11848 | |
|
|
11849 | # Shell to use when invoking shell scripts. |
|
|
11850 | SHELL=$lt_SHELL |
|
|
11851 | |
|
|
11852 | # Whether or not to build shared libraries. |
|
|
11853 | build_libtool_libs=$enable_shared |
|
|
11854 | |
|
|
11855 | # Whether or not to build static libraries. |
|
|
11856 | build_old_libs=$enable_static |
|
|
11857 | |
|
|
11858 | # Whether or not to add -lc for building shared libraries. |
|
|
11859 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
|
|
11860 | |
|
|
11861 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
11862 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
|
|
11863 | |
|
|
11864 | # Whether or not to optimize for fast installation. |
|
|
11865 | fast_install=$enable_fast_install |
|
|
11866 | |
|
|
11867 | # The host system. |
|
|
11868 | host_alias=$host_alias |
|
|
11869 | host=$host |
|
|
11870 | host_os=$host_os |
|
|
11871 | |
|
|
11872 | # The build system. |
|
|
11873 | build_alias=$build_alias |
|
|
11874 | build=$build |
|
|
11875 | build_os=$build_os |
|
|
11876 | |
|
|
11877 | # An echo program that does not interpret backslashes. |
|
|
11878 | echo=$lt_echo |
|
|
11879 | |
|
|
11880 | # The archiver. |
|
|
11881 | AR=$lt_AR |
|
|
11882 | AR_FLAGS=$lt_AR_FLAGS |
|
|
11883 | |
|
|
11884 | # A C compiler. |
|
|
11885 | LTCC=$lt_LTCC |
|
|
11886 | |
|
|
11887 | # LTCC compiler flags. |
|
|
11888 | LTCFLAGS=$lt_LTCFLAGS |
|
|
11889 | |
|
|
11890 | # A language-specific compiler. |
|
|
11891 | CC=$lt_compiler_CXX |
|
|
11892 | |
|
|
11893 | # Is the compiler the GNU C compiler? |
|
|
11894 | with_gcc=$GCC_CXX |
|
|
11895 | |
|
|
11896 | # An ERE matcher. |
|
|
11897 | EGREP=$lt_EGREP |
|
|
11898 | |
|
|
11899 | # The linker used to build libraries. |
|
|
11900 | LD=$lt_LD_CXX |
|
|
11901 | |
|
|
11902 | # Whether we need hard or soft links. |
|
|
11903 | LN_S=$lt_LN_S |
|
|
11904 | |
|
|
11905 | # A BSD-compatible nm program. |
|
|
11906 | NM=$lt_NM |
|
|
11907 | |
|
|
11908 | # A symbol stripping program |
|
|
11909 | STRIP=$lt_STRIP |
|
|
11910 | |
|
|
11911 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
11912 | MAGIC_CMD=$MAGIC_CMD |
|
|
11913 | |
|
|
11914 | # Used on cygwin: DLL creation program. |
|
|
11915 | DLLTOOL="$DLLTOOL" |
|
|
11916 | |
|
|
11917 | # Used on cygwin: object dumper. |
|
|
11918 | OBJDUMP="$OBJDUMP" |
|
|
11919 | |
|
|
11920 | # Used on cygwin: assembler. |
|
|
11921 | AS="$AS" |
|
|
11922 | |
|
|
11923 | # The name of the directory that contains temporary libtool files. |
|
|
11924 | objdir=$objdir |
|
|
11925 | |
|
|
11926 | # How to create reloadable object files. |
|
|
11927 | reload_flag=$lt_reload_flag |
|
|
11928 | reload_cmds=$lt_reload_cmds |
|
|
11929 | |
|
|
11930 | # How to pass a linker flag through the compiler. |
|
|
11931 | wl=$lt_lt_prog_compiler_wl_CXX |
|
|
11932 | |
|
|
11933 | # Object file suffix (normally "o"). |
|
|
11934 | objext="$ac_objext" |
|
|
11935 | |
|
|
11936 | # Old archive suffix (normally "a"). |
|
|
11937 | libext="$libext" |
|
|
11938 | |
|
|
11939 | # Shared library suffix (normally ".so"). |
|
|
11940 | shrext_cmds='$shrext_cmds' |
|
|
11941 | |
|
|
11942 | # Executable file suffix (normally ""). |
|
|
11943 | exeext="$exeext" |
|
|
11944 | |
|
|
11945 | # Additional compiler flags for building library objects. |
|
|
11946 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
|
|
11947 | pic_mode=$pic_mode |
|
|
11948 | |
|
|
11949 | # What is the maximum length of a command? |
|
|
11950 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
11951 | |
|
|
11952 | # Does compiler simultaneously support -c and -o options? |
|
|
11953 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
|
|
11954 | |
|
|
11955 | # Must we lock files when doing compilation? |
|
|
11956 | need_locks=$lt_need_locks |
|
|
11957 | |
|
|
11958 | # Do we need the lib prefix for modules? |
|
|
11959 | need_lib_prefix=$need_lib_prefix |
|
|
11960 | |
|
|
11961 | # Do we need a version for libraries? |
|
|
11962 | need_version=$need_version |
|
|
11963 | |
|
|
11964 | # Whether dlopen is supported. |
|
|
11965 | dlopen_support=$enable_dlopen |
|
|
11966 | |
|
|
11967 | # Whether dlopen of programs is supported. |
|
|
11968 | dlopen_self=$enable_dlopen_self |
|
|
11969 | |
|
|
11970 | # Whether dlopen of statically linked programs is supported. |
|
|
11971 | dlopen_self_static=$enable_dlopen_self_static |
|
|
11972 | |
|
|
11973 | # Compiler flag to prevent dynamic linking. |
|
|
11974 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
|
|
11975 | |
|
|
11976 | # Compiler flag to turn off builtin functions. |
|
|
11977 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
|
|
11978 | |
|
|
11979 | # Compiler flag to allow reflexive dlopens. |
|
|
11980 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
|
|
11981 | |
|
|
11982 | # Compiler flag to generate shared objects directly from archives. |
|
|
11983 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
|
|
11984 | |
|
|
11985 | # Compiler flag to generate thread-safe objects. |
|
|
11986 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
|
|
11987 | |
|
|
11988 | # Library versioning type. |
|
|
11989 | version_type=$version_type |
|
|
11990 | |
|
|
11991 | # Format of library name prefix. |
|
|
11992 | libname_spec=$lt_libname_spec |
|
|
11993 | |
|
|
11994 | # List of archive names. First name is the real one, the rest are links. |
|
|
11995 | # The last name is the one that the linker finds with -lNAME. |
|
|
11996 | library_names_spec=$lt_library_names_spec |
|
|
11997 | |
|
|
11998 | # The coded name of the library, if different from the real name. |
|
|
11999 | soname_spec=$lt_soname_spec |
|
|
12000 | |
|
|
12001 | # Commands used to build and install an old-style archive. |
|
|
12002 | RANLIB=$lt_RANLIB |
|
|
12003 | old_archive_cmds=$lt_old_archive_cmds_CXX |
|
|
12004 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
12005 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
12006 | |
|
|
12007 | # Create an old-style archive from a shared archive. |
|
|
12008 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
|
|
12009 | |
|
|
12010 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
12011 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
|
|
12012 | |
|
|
12013 | # Commands used to build and install a shared archive. |
|
|
12014 | archive_cmds=$lt_archive_cmds_CXX |
|
|
12015 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
|
|
12016 | postinstall_cmds=$lt_postinstall_cmds |
|
|
12017 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
12018 | |
|
|
12019 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
12020 | module_cmds=$lt_module_cmds_CXX |
|
|
12021 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
|
|
12022 | |
|
|
12023 | # Commands to strip libraries. |
|
|
12024 | old_striplib=$lt_old_striplib |
|
|
12025 | striplib=$lt_striplib |
|
|
12026 | |
|
|
12027 | # Dependencies to place before the objects being linked to create a |
|
|
12028 | # shared library. |
|
|
12029 | predep_objects=$lt_predep_objects_CXX |
|
|
12030 | |
|
|
12031 | # Dependencies to place after the objects being linked to create a |
|
|
12032 | # shared library. |
|
|
12033 | postdep_objects=$lt_postdep_objects_CXX |
|
|
12034 | |
|
|
12035 | # Dependencies to place before the objects being linked to create a |
|
|
12036 | # shared library. |
|
|
12037 | predeps=$lt_predeps_CXX |
|
|
12038 | |
|
|
12039 | # Dependencies to place after the objects being linked to create a |
|
|
12040 | # shared library. |
|
|
12041 | postdeps=$lt_postdeps_CXX |
|
|
12042 | |
|
|
12043 | # The library search path used internally by the compiler when linking |
|
|
12044 | # a shared library. |
|
|
12045 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
|
|
12046 | |
|
|
12047 | # Method to check whether dependent libraries are shared objects. |
|
|
12048 | deplibs_check_method=$lt_deplibs_check_method |
|
|
12049 | |
|
|
12050 | # Command to use when deplibs_check_method == file_magic. |
|
|
12051 | file_magic_cmd=$lt_file_magic_cmd |
|
|
12052 | |
|
|
12053 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
12054 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
|
|
12055 | |
|
|
12056 | # Flag that forces no undefined symbols. |
|
|
12057 | no_undefined_flag=$lt_no_undefined_flag_CXX |
|
|
12058 | |
|
|
12059 | # Commands used to finish a libtool library installation in a directory. |
|
|
12060 | finish_cmds=$lt_finish_cmds |
|
|
12061 | |
|
|
12062 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
12063 | finish_eval=$lt_finish_eval |
|
|
12064 | |
|
|
12065 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
12066 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
12067 | |
|
|
12068 | # Transform the output of nm in a proper C declaration |
|
|
12069 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
12070 | |
|
|
12071 | # Transform the output of nm in a C name address pair |
|
|
12072 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
12073 | |
|
|
12074 | # This is the shared library runtime path variable. |
|
|
12075 | runpath_var=$runpath_var |
|
|
12076 | |
|
|
12077 | # This is the shared library path variable. |
|
|
12078 | shlibpath_var=$shlibpath_var |
|
|
12079 | |
|
|
12080 | # Is shlibpath searched before the hard-coded library search path? |
|
|
12081 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
12082 | |
|
|
12083 | # How to hardcode a shared library path into an executable. |
|
|
12084 | hardcode_action=$hardcode_action_CXX |
|
|
12085 | |
|
|
12086 | # Whether we should hardcode library paths into libraries. |
|
|
12087 | hardcode_into_libs=$hardcode_into_libs |
|
|
12088 | |
|
|
12089 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
12090 | # This must work even if \$libdir does not exist. |
|
|
12091 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
|
|
12092 | |
|
|
12093 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
12094 | # a binary during linking. This must work even if \$libdir does |
|
|
12095 | # not exist. |
|
|
12096 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
|
|
12097 | |
|
|
12098 | # Whether we need a single -rpath flag with a separated argument. |
|
|
12099 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
|
|
12100 | |
|
|
12101 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
12102 | # resulting binary. |
|
|
12103 | hardcode_direct=$hardcode_direct_CXX |
|
|
12104 | |
|
|
12105 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
12106 | # resulting binary. |
|
|
12107 | hardcode_minus_L=$hardcode_minus_L_CXX |
|
|
12108 | |
|
|
12109 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
12110 | # the resulting binary. |
|
|
12111 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
|
|
12112 | |
|
|
12113 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
12114 | # and all subsequent libraries and executables linked against it. |
|
|
12115 | hardcode_automatic=$hardcode_automatic_CXX |
|
|
12116 | |
|
|
12117 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
12118 | # restored at relink time. |
|
|
12119 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
12120 | |
|
|
12121 | # Whether libtool must link a program against all its dependency libraries. |
|
|
12122 | link_all_deplibs=$link_all_deplibs_CXX |
|
|
12123 | |
|
|
12124 | # Compile-time system search path for libraries |
|
|
12125 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
12126 | |
|
|
12127 | # Run-time system search path for libraries |
|
|
12128 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
12129 | |
|
|
12130 | # Fix the shell variable \$srcfile for the compiler. |
|
|
12131 | fix_srcfile_path="$fix_srcfile_path_CXX" |
|
|
12132 | |
|
|
12133 | # Set to yes if exported symbols are required. |
|
|
12134 | always_export_symbols=$always_export_symbols_CXX |
|
|
12135 | |
|
|
12136 | # The commands to list exported symbols. |
|
|
12137 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
|
|
12138 | |
|
|
12139 | # The commands to extract the exported symbol list from a shared archive. |
|
|
12140 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
12141 | |
|
|
12142 | # Symbols that should not be listed in the preloaded symbols. |
|
|
12143 | exclude_expsyms=$lt_exclude_expsyms_CXX |
|
|
12144 | |
|
|
12145 | # Symbols that must always be exported. |
|
|
12146 | include_expsyms=$lt_include_expsyms_CXX |
|
|
12147 | |
|
|
12148 | # ### END LIBTOOL TAG CONFIG: $tagname |
|
|
12149 | |
|
|
12150 | __EOF__ |
|
|
12151 | |
|
|
12152 | |
|
|
12153 | else |
|
|
12154 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
12155 | # `config.status --recheck' to rerun these tests and create the |
|
|
12156 | # libtool script then. |
|
|
12157 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
12158 | if test -f "$ltmain_in"; then |
|
|
12159 | test -f Makefile && make "$ltmain" |
|
|
12160 | fi |
|
|
12161 | fi |
|
|
12162 | |
|
|
12163 | |
|
|
12164 | ac_ext=c |
|
|
12165 | ac_cpp='$CPP $CPPFLAGS' |
|
|
12166 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
12167 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
12168 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
12169 | |
|
|
12170 | CC=$lt_save_CC |
|
|
12171 | LDCXX=$LD |
|
|
12172 | LD=$lt_save_LD |
|
|
12173 | GCC=$lt_save_GCC |
|
|
12174 | with_gnu_ldcxx=$with_gnu_ld |
|
|
12175 | with_gnu_ld=$lt_save_with_gnu_ld |
|
|
12176 | lt_cv_path_LDCXX=$lt_cv_path_LD |
|
|
12177 | lt_cv_path_LD=$lt_save_path_LD |
|
|
12178 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
|
|
12179 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
|
|
12180 | |
|
|
12181 | else |
|
|
12182 | tagname="" |
|
|
12183 | fi |
|
|
12184 | ;; |
|
|
12185 | |
|
|
12186 | F77) |
|
|
12187 | if test -n "$F77" && test "X$F77" != "Xno"; then |
|
|
12188 | |
|
|
12189 | ac_ext=f |
|
|
12190 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
|
12191 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
12192 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
|
12193 | |
|
|
12194 | |
|
|
12195 | archive_cmds_need_lc_F77=no |
|
|
12196 | allow_undefined_flag_F77= |
|
|
12197 | always_export_symbols_F77=no |
|
|
12198 | archive_expsym_cmds_F77= |
|
|
12199 | export_dynamic_flag_spec_F77= |
|
|
12200 | hardcode_direct_F77=no |
|
|
12201 | hardcode_libdir_flag_spec_F77= |
|
|
12202 | hardcode_libdir_flag_spec_ld_F77= |
|
|
12203 | hardcode_libdir_separator_F77= |
|
|
12204 | hardcode_minus_L_F77=no |
|
|
12205 | hardcode_automatic_F77=no |
|
|
12206 | module_cmds_F77= |
|
|
12207 | module_expsym_cmds_F77= |
|
|
12208 | link_all_deplibs_F77=unknown |
|
|
12209 | old_archive_cmds_F77=$old_archive_cmds |
|
|
12210 | no_undefined_flag_F77= |
|
|
12211 | whole_archive_flag_spec_F77= |
|
|
12212 | enable_shared_with_static_runtimes_F77=no |
|
|
12213 | |
|
|
12214 | # Source file extension for f77 test sources. |
|
|
12215 | ac_ext=f |
|
|
12216 | |
|
|
12217 | # Object file extension for compiled f77 test sources. |
|
|
12218 | objext=o |
|
|
12219 | objext_F77=$objext |
|
|
12220 | |
|
|
12221 | # Code to be used in simple compile tests |
|
|
12222 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
|
|
12223 | |
|
|
12224 | # Code to be used in simple link tests |
|
|
12225 | lt_simple_link_test_code=" program t\n end\n" |
|
|
12226 | |
|
|
12227 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
12228 | |
|
|
12229 | # If no C compiler was specified, use CC. |
|
|
12230 | LTCC=${LTCC-"$CC"} |
|
|
12231 | |
|
|
12232 | # If no C compiler flags were specified, use CFLAGS. |
|
|
12233 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
12234 | |
|
|
12235 | # Allow CC to be a program name with arguments. |
|
|
12236 | compiler=$CC |
|
|
12237 | |
|
|
12238 | |
|
|
12239 | # save warnings/boilerplate of simple test code |
|
|
12240 | ac_outfile=conftest.$ac_objext |
|
|
12241 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
12242 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
12243 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
12244 | $rm conftest* |
|
|
12245 | |
|
|
12246 | ac_outfile=conftest.$ac_objext |
|
|
12247 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
12248 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
12249 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
12250 | $rm conftest* |
|
|
12251 | |
|
|
12252 | |
|
|
12253 | # Allow CC to be a program name with arguments. |
|
|
12254 | lt_save_CC="$CC" |
|
|
12255 | CC=${F77-"f77"} |
|
|
12256 | compiler=$CC |
|
|
12257 | compiler_F77=$CC |
|
|
12258 | for cc_temp in $compiler""; do |
|
|
12259 | case $cc_temp in |
|
|
12260 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
12261 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
12262 | \-*) ;; |
|
|
12263 | *) break;; |
|
|
12264 | esac |
|
|
12265 | done |
|
|
12266 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
12267 | |
|
|
12268 | |
|
|
12269 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
|
12270 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
|
12271 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
12272 | echo "${ECHO_T}$can_build_shared" >&6 |
|
|
12273 | |
|
|
12274 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
|
12275 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
|
|
12276 | test "$can_build_shared" = "no" && enable_shared=no |
|
|
12277 | |
|
|
12278 | # On AIX, shared libraries and static libraries use the same namespace, and |
|
|
12279 | # are all built from PIC. |
|
|
12280 | case $host_os in |
|
|
12281 | aix3*) |
|
|
12282 | test "$enable_shared" = yes && enable_static=no |
|
|
12283 | if test -n "$RANLIB"; then |
|
|
12284 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
|
12285 | postinstall_cmds='$RANLIB $lib' |
|
|
12286 | fi |
|
|
12287 | ;; |
|
|
12288 | aix4* | aix5*) |
|
|
12289 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
|
12290 | test "$enable_shared" = yes && enable_static=no |
|
|
12291 | fi |
|
|
12292 | ;; |
|
|
12293 | esac |
|
|
12294 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
|
12295 | echo "${ECHO_T}$enable_shared" >&6 |
|
|
12296 | |
|
|
12297 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
|
12298 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
|
|
12299 | # Make sure either enable_shared or enable_static is yes. |
|
|
12300 | test "$enable_shared" = yes || enable_static=yes |
|
|
12301 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
|
12302 | echo "${ECHO_T}$enable_static" >&6 |
|
|
12303 | |
|
|
12304 | GCC_F77="$G77" |
|
|
12305 | LD_F77="$LD" |
|
|
12306 | |
|
|
12307 | lt_prog_compiler_wl_F77= |
|
|
12308 | lt_prog_compiler_pic_F77= |
|
|
12309 | lt_prog_compiler_static_F77= |
|
|
12310 | |
|
|
12311 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
12312 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
12313 | |
|
|
12314 | if test "$GCC" = yes; then |
|
|
12315 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12316 | lt_prog_compiler_static_F77='-static' |
|
|
12317 | |
|
|
12318 | case $host_os in |
|
|
12319 | aix*) |
|
|
12320 | # All AIX code is PIC. |
|
|
12321 | if test "$host_cpu" = ia64; then |
|
|
12322 | # AIX 5 now supports IA64 processor |
|
|
12323 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12324 | fi |
|
|
12325 | ;; |
|
|
12326 | |
|
|
12327 | amigaos*) |
|
|
12328 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
12329 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
12330 | # like `-m68040'. |
|
|
12331 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
|
|
12332 | ;; |
|
|
12333 | |
|
|
12334 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
12335 | # PIC is the default for these OSes. |
|
|
12336 | ;; |
|
|
12337 | |
|
|
12338 | mingw* | pw32* | os2*) |
|
|
12339 | # This hack is so that the source file can tell whether it is being |
|
|
12340 | # built for inclusion in a dll (and should export symbols for example). |
|
|
12341 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
|
12342 | ;; |
|
|
12343 | |
|
|
12344 | darwin* | rhapsody*) |
|
|
12345 | # PIC is the default on this platform |
|
|
12346 | # Common symbols not allowed in MH_DYLIB files |
|
|
12347 | lt_prog_compiler_pic_F77='-fno-common' |
|
|
12348 | ;; |
|
|
12349 | |
|
|
12350 | interix3*) |
|
|
12351 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
|
12352 | # Instead, we relocate shared libraries at runtime. |
|
|
12353 | ;; |
|
|
12354 | |
|
|
12355 | msdosdjgpp*) |
|
|
12356 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
|
|
12357 | # on systems that don't support them. |
|
|
12358 | lt_prog_compiler_can_build_shared_F77=no |
|
|
12359 | enable_shared=no |
|
|
12360 | ;; |
|
|
12361 | |
|
|
12362 | sysv4*MP*) |
|
|
12363 | if test -d /usr/nec; then |
|
|
12364 | lt_prog_compiler_pic_F77=-Kconform_pic |
|
|
12365 | fi |
|
|
12366 | ;; |
|
|
12367 | |
|
|
12368 | hpux*) |
|
|
12369 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
12370 | # not for PA HP-UX. |
|
|
12371 | case $host_cpu in |
|
|
12372 | hppa*64*|ia64*) |
|
|
12373 | # +Z the default |
|
|
12374 | ;; |
|
|
12375 | *) |
|
|
12376 | lt_prog_compiler_pic_F77='-fPIC' |
|
|
12377 | ;; |
|
|
12378 | esac |
|
|
12379 | ;; |
|
|
12380 | |
|
|
12381 | *) |
|
|
12382 | lt_prog_compiler_pic_F77='-fPIC' |
|
|
12383 | ;; |
|
|
12384 | esac |
|
|
12385 | else |
|
|
12386 | # PORTME Check for flag to pass linker flags through the system compiler. |
|
|
12387 | case $host_os in |
|
|
12388 | aix*) |
|
|
12389 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12390 | if test "$host_cpu" = ia64; then |
|
|
12391 | # AIX 5 now supports IA64 processor |
|
|
12392 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12393 | else |
|
|
12394 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
|
|
12395 | fi |
|
|
12396 | ;; |
|
|
12397 | darwin*) |
|
|
12398 | # PIC is the default on this platform |
|
|
12399 | # Common symbols not allowed in MH_DYLIB files |
|
|
12400 | case $cc_basename in |
|
|
12401 | xlc*) |
|
|
12402 | lt_prog_compiler_pic_F77='-qnocommon' |
|
|
12403 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12404 | ;; |
|
|
12405 | esac |
|
|
12406 | ;; |
|
|
12407 | |
|
|
12408 | mingw* | pw32* | os2*) |
|
|
12409 | # This hack is so that the source file can tell whether it is being |
|
|
12410 | # built for inclusion in a dll (and should export symbols for example). |
|
|
12411 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
|
12412 | ;; |
|
|
12413 | |
|
|
12414 | hpux9* | hpux10* | hpux11*) |
|
|
12415 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12416 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
12417 | # not for PA HP-UX. |
|
|
12418 | case $host_cpu in |
|
|
12419 | hppa*64*|ia64*) |
|
|
12420 | # +Z the default |
|
|
12421 | ;; |
|
|
12422 | *) |
|
|
12423 | lt_prog_compiler_pic_F77='+Z' |
|
|
12424 | ;; |
|
|
12425 | esac |
|
|
12426 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
|
12427 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
|
|
12428 | ;; |
|
|
12429 | |
|
|
12430 | irix5* | irix6* | nonstopux*) |
|
|
12431 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12432 | # PIC (with -KPIC) is the default. |
|
|
12433 | lt_prog_compiler_static_F77='-non_shared' |
|
|
12434 | ;; |
|
|
12435 | |
|
|
12436 | newsos6) |
|
|
12437 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12438 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12439 | ;; |
|
|
12440 | |
|
|
12441 | linux*) |
|
|
12442 | case $cc_basename in |
|
|
12443 | icc* | ecc*) |
|
|
12444 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12445 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12446 | lt_prog_compiler_static_F77='-static' |
|
|
12447 | ;; |
|
|
12448 | pgcc* | pgf77* | pgf90* | pgf95*) |
|
|
12449 | # Portland Group compilers (*not* the Pentium gcc compiler, |
|
|
12450 | # which looks to be a dead project) |
|
|
12451 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12452 | lt_prog_compiler_pic_F77='-fpic' |
|
|
12453 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12454 | ;; |
|
|
12455 | ccc*) |
|
|
12456 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12457 | # All Alpha code is PIC. |
|
|
12458 | lt_prog_compiler_static_F77='-non_shared' |
|
|
12459 | ;; |
|
|
12460 | esac |
|
|
12461 | ;; |
|
|
12462 | |
|
|
12463 | osf3* | osf4* | osf5*) |
|
|
12464 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12465 | # All OSF/1 code is PIC. |
|
|
12466 | lt_prog_compiler_static_F77='-non_shared' |
|
|
12467 | ;; |
|
|
12468 | |
|
|
12469 | solaris*) |
|
|
12470 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12471 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12472 | case $cc_basename in |
|
|
12473 | f77* | f90* | f95*) |
|
|
12474 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
|
|
12475 | *) |
|
|
12476 | lt_prog_compiler_wl_F77='-Wl,';; |
|
|
12477 | esac |
|
|
12478 | ;; |
|
|
12479 | |
|
|
12480 | sunos4*) |
|
|
12481 | lt_prog_compiler_wl_F77='-Qoption ld ' |
|
|
12482 | lt_prog_compiler_pic_F77='-PIC' |
|
|
12483 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12484 | ;; |
|
|
12485 | |
|
|
12486 | sysv4 | sysv4.2uw2* | sysv4.3*) |
|
|
12487 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12488 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12489 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12490 | ;; |
|
|
12491 | |
|
|
12492 | sysv4*MP*) |
|
|
12493 | if test -d /usr/nec ;then |
|
|
12494 | lt_prog_compiler_pic_F77='-Kconform_pic' |
|
|
12495 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12496 | fi |
|
|
12497 | ;; |
|
|
12498 | |
|
|
12499 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
12500 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12501 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12502 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12503 | ;; |
|
|
12504 | |
|
|
12505 | unicos*) |
|
|
12506 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12507 | lt_prog_compiler_can_build_shared_F77=no |
|
|
12508 | ;; |
|
|
12509 | |
|
|
12510 | uts4*) |
|
|
12511 | lt_prog_compiler_pic_F77='-pic' |
|
|
12512 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12513 | ;; |
|
|
12514 | |
|
|
12515 | *) |
|
|
12516 | lt_prog_compiler_can_build_shared_F77=no |
|
|
12517 | ;; |
|
|
12518 | esac |
|
|
12519 | fi |
|
|
12520 | |
|
|
12521 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
|
|
12522 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
|
|
12523 | |
|
|
12524 | # |
|
|
12525 | # Check to make sure the PIC flag actually works. |
|
|
12526 | # |
|
|
12527 | if test -n "$lt_prog_compiler_pic_F77"; then |
|
|
12528 | |
|
|
12529 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
|
|
12530 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
|
|
12531 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
|
|
12532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12533 | else |
|
|
12534 | lt_prog_compiler_pic_works_F77=no |
|
|
12535 | ac_outfile=conftest.$ac_objext |
|
|
12536 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
12537 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
|
|
12538 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
12539 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
12540 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
12541 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
12542 | # The option is referenced via a variable to avoid confusing sed. |
|
|
12543 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
12544 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
12545 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
12546 | -e 's:$: $lt_compiler_flag:'` |
|
|
12547 | (eval echo "\"\$as_me:12547: $lt_compile\"" >&5) |
|
|
12548 | (eval "$lt_compile" 2>conftest.err) |
|
|
12549 | ac_status=$? |
|
|
12550 | cat conftest.err >&5 |
|
|
12551 | echo "$as_me:12551: \$? = $ac_status" >&5 |
|
|
12552 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
12553 | # The compiler can only warn and ignore the option if not recognized |
|
|
12554 | # So say no if there are warnings other than the usual output. |
|
|
12555 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
12556 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
12557 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
|
12558 | lt_prog_compiler_pic_works_F77=yes |
|
|
12559 | fi |
|
|
12560 | fi |
|
|
12561 | $rm conftest* |
|
|
12562 | |
|
|
12563 | fi |
|
|
12564 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
|
|
12565 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
|
|
12566 | |
|
|
12567 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
|
|
12568 | case $lt_prog_compiler_pic_F77 in |
|
|
12569 | "" | " "*) ;; |
|
|
12570 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
|
|
12571 | esac |
|
|
12572 | else |
|
|
12573 | lt_prog_compiler_pic_F77= |
|
|
12574 | lt_prog_compiler_can_build_shared_F77=no |
|
|
12575 | fi |
|
|
12576 | |
|
|
12577 | fi |
|
|
12578 | case $host_os in |
|
|
12579 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
12580 | *djgpp*) |
|
|
12581 | lt_prog_compiler_pic_F77= |
|
|
12582 | ;; |
|
|
12583 | *) |
|
|
12584 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
|
|
12585 | ;; |
|
|
12586 | esac |
|
|
12587 | |
|
|
12588 | # |
|
|
12589 | # Check to make sure the static flag actually works. |
|
|
12590 | # |
|
|
12591 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
|
|
12592 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
|
12593 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
|
|
12594 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
|
|
12595 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12596 | else |
|
|
12597 | lt_prog_compiler_static_works_F77=no |
|
|
12598 | save_LDFLAGS="$LDFLAGS" |
|
|
12599 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
|
12600 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
12601 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
12602 | # The linker can only warn and ignore the option if not recognized |
|
|
12603 | # So say no if there are warnings |
|
|
12604 | if test -s conftest.err; then |
|
|
12605 | # Append any errors to the config.log. |
|
|
12606 | cat conftest.err 1>&5 |
|
|
12607 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
|
12608 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
12609 | if diff conftest.exp conftest.er2 >/dev/null; then |
|
|
12610 | lt_prog_compiler_static_works_F77=yes |
|
|
12611 | fi |
|
|
12612 | else |
|
|
12613 | lt_prog_compiler_static_works_F77=yes |
|
|
12614 | fi |
|
|
12615 | fi |
|
|
12616 | $rm conftest* |
|
|
12617 | LDFLAGS="$save_LDFLAGS" |
|
|
12618 | |
|
|
12619 | fi |
|
|
12620 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
|
|
12621 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 |
|
|
12622 | |
|
|
12623 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
|
|
12624 | : |
|
|
12625 | else |
|
|
12626 | lt_prog_compiler_static_F77= |
|
|
12627 | fi |
|
|
12628 | |
|
|
12629 | |
|
|
12630 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
12631 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
12632 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
|
|
12633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12634 | else |
|
|
12635 | lt_cv_prog_compiler_c_o_F77=no |
|
|
12636 | $rm -r conftest 2>/dev/null |
|
|
12637 | mkdir conftest |
|
|
12638 | cd conftest |
|
|
12639 | mkdir out |
|
|
12640 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
12641 | |
|
|
12642 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
|
12643 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
12644 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
12645 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
12646 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
12647 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
12648 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
12649 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
12650 | -e 's:$: $lt_compiler_flag:'` |
|
|
12651 | (eval echo "\"\$as_me:12651: $lt_compile\"" >&5) |
|
|
12652 | (eval "$lt_compile" 2>out/conftest.err) |
|
|
12653 | ac_status=$? |
|
|
12654 | cat out/conftest.err >&5 |
|
|
12655 | echo "$as_me:12655: \$? = $ac_status" >&5 |
|
|
12656 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
|
12657 | then |
|
|
12658 | # The compiler can only warn and ignore the option if not recognized |
|
|
12659 | # So say no if there are warnings |
|
|
12660 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
12661 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
|
12662 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
|
12663 | lt_cv_prog_compiler_c_o_F77=yes |
|
|
12664 | fi |
|
|
12665 | fi |
|
|
12666 | chmod u+w . 2>&5 |
|
|
12667 | $rm conftest* |
|
|
12668 | # SGI C++ compiler will create directory out/ii_files/ for |
|
|
12669 | # template instantiation |
|
|
12670 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
|
12671 | $rm out/* && rmdir out |
|
|
12672 | cd .. |
|
|
12673 | rmdir conftest |
|
|
12674 | $rm conftest* |
|
|
12675 | |
|
|
12676 | fi |
|
|
12677 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
|
|
12678 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
|
|
12679 | |
|
|
12680 | |
|
|
12681 | hard_links="nottested" |
|
|
12682 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
|
|
12683 | # do not overwrite the value of need_locks provided by the user |
|
|
12684 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
12685 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
12686 | hard_links=yes |
|
|
12687 | $rm conftest* |
|
|
12688 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
12689 | touch conftest.a |
|
|
12690 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
12691 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
12692 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
12693 | echo "${ECHO_T}$hard_links" >&6 |
|
|
12694 | if test "$hard_links" = no; then |
|
|
12695 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
12696 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
12697 | need_locks=warn |
|
|
12698 | fi |
|
|
12699 | else |
|
|
12700 | need_locks=no |
|
|
12701 | fi |
|
|
12702 | |
|
|
12703 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
12704 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
12705 | |
|
|
12706 | runpath_var= |
|
|
12707 | allow_undefined_flag_F77= |
|
|
12708 | enable_shared_with_static_runtimes_F77=no |
|
|
12709 | archive_cmds_F77= |
|
|
12710 | archive_expsym_cmds_F77= |
|
|
12711 | old_archive_From_new_cmds_F77= |
|
|
12712 | old_archive_from_expsyms_cmds_F77= |
|
|
12713 | export_dynamic_flag_spec_F77= |
|
|
12714 | whole_archive_flag_spec_F77= |
|
|
12715 | thread_safe_flag_spec_F77= |
|
|
12716 | hardcode_libdir_flag_spec_F77= |
|
|
12717 | hardcode_libdir_flag_spec_ld_F77= |
|
|
12718 | hardcode_libdir_separator_F77= |
|
|
12719 | hardcode_direct_F77=no |
|
|
12720 | hardcode_minus_L_F77=no |
|
|
12721 | hardcode_shlibpath_var_F77=unsupported |
|
|
12722 | link_all_deplibs_F77=unknown |
|
|
12723 | hardcode_automatic_F77=no |
|
|
12724 | module_cmds_F77= |
|
|
12725 | module_expsym_cmds_F77= |
|
|
12726 | always_export_symbols_F77=no |
|
|
12727 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
12728 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
12729 | # included in the symbol list |
|
|
12730 | include_expsyms_F77= |
|
|
12731 | # exclude_expsyms can be an extended regexp of symbols to exclude |
|
|
12732 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
12733 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
12734 | # as well as any symbol that contains `d'. |
|
|
12735 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
|
|
12736 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
12737 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
12738 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
12739 | # rely on this symbol name, it's probably fine to never include it in |
|
|
12740 | # preloaded symbol tables. |
|
|
12741 | extract_expsyms_cmds= |
|
|
12742 | # Just being paranoid about ensuring that cc_basename is set. |
|
|
12743 | for cc_temp in $compiler""; do |
|
|
12744 | case $cc_temp in |
|
|
12745 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
12746 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
12747 | \-*) ;; |
|
|
12748 | *) break;; |
|
|
12749 | esac |
|
|
12750 | done |
|
|
12751 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
12752 | |
|
|
12753 | case $host_os in |
|
|
12754 | cygwin* | mingw* | pw32*) |
|
|
12755 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
12756 | # When not using gcc, we currently assume that we are using |
|
|
12757 | # Microsoft Visual C++. |
|
|
12758 | if test "$GCC" != yes; then |
|
|
12759 | with_gnu_ld=no |
|
|
12760 | fi |
|
|
12761 | ;; |
|
|
12762 | interix*) |
|
|
12763 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
|
12764 | with_gnu_ld=yes |
|
|
12765 | ;; |
|
|
12766 | openbsd*) |
|
|
12767 | with_gnu_ld=no |
|
|
12768 | ;; |
|
|
12769 | esac |
|
|
12770 | |
|
|
12771 | ld_shlibs_F77=yes |
|
|
12772 | if test "$with_gnu_ld" = yes; then |
|
|
12773 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
12774 | wlarc='${wl}' |
|
|
12775 | |
|
|
12776 | # Set some defaults for GNU ld with shared library support. These |
|
|
12777 | # are reset later if shared libraries are not supported. Putting them |
|
|
12778 | # here allows them to be overridden if necessary. |
|
|
12779 | runpath_var=LD_RUN_PATH |
|
|
12780 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
|
|
12781 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
|
|
12782 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
12783 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
12784 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
12785 | else |
|
|
12786 | whole_archive_flag_spec_F77= |
|
|
12787 | fi |
|
|
12788 | supports_anon_versioning=no |
|
|
12789 | case `$LD -v 2>/dev/null` in |
|
|
12790 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
12791 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
12792 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
12793 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
12794 | *) supports_anon_versioning=yes ;; |
|
|
12795 | esac |
|
|
12796 | |
|
|
12797 | # See if GNU ld supports shared libraries. |
|
|
12798 | case $host_os in |
|
|
12799 | aix3* | aix4* | aix5*) |
|
|
12800 | # On AIX/PPC, the GNU linker is very broken |
|
|
12801 | if test "$host_cpu" != ia64; then |
|
|
12802 | ld_shlibs_F77=no |
|
|
12803 | cat <<EOF 1>&2 |
|
|
12804 | |
|
|
12805 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
12806 | *** to be unable to reliably create shared libraries on AIX. |
|
|
12807 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
12808 | *** really care for shared libraries, you may want to modify your PATH |
|
|
12809 | *** so that a non-GNU linker is found, and then restart. |
|
|
12810 | |
|
|
12811 | EOF |
|
|
12812 | fi |
|
|
12813 | ;; |
|
|
12814 | |
|
|
12815 | amigaos*) |
|
|
12816 | 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)' |
|
|
12817 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
12818 | hardcode_minus_L_F77=yes |
|
|
12819 | |
|
|
12820 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
12821 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
12822 | # to version 4, is to share data among multiple programs linked |
|
|
12823 | # with the same dynamic library. Since this doesn't match the |
|
|
12824 | # behavior of shared libraries on other platforms, we can't use |
|
|
12825 | # them. |
|
|
12826 | ld_shlibs_F77=no |
|
|
12827 | ;; |
|
|
12828 | |
|
|
12829 | beos*) |
|
|
12830 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
12831 | allow_undefined_flag_F77=unsupported |
|
|
12832 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
12833 | # support --undefined. This deserves some investigation. FIXME |
|
|
12834 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
12835 | else |
|
|
12836 | ld_shlibs_F77=no |
|
|
12837 | fi |
|
|
12838 | ;; |
|
|
12839 | |
|
|
12840 | cygwin* | mingw* | pw32*) |
|
|
12841 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
|
|
12842 | # as there is no search path for DLLs. |
|
|
12843 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
12844 | allow_undefined_flag_F77=unsupported |
|
|
12845 | always_export_symbols_F77=no |
|
|
12846 | enable_shared_with_static_runtimes_F77=yes |
|
|
12847 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
12848 | |
|
|
12849 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
|
12850 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
12851 | # If the export-symbols file already is a .def file (1st line |
|
|
12852 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
12853 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
12854 | cp $export_symbols $output_objdir/$soname.def; |
|
|
12855 | else |
|
|
12856 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
12857 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
12858 | fi~ |
|
|
12859 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
12860 | else |
|
|
12861 | ld_shlibs_F77=no |
|
|
12862 | fi |
|
|
12863 | ;; |
|
|
12864 | |
|
|
12865 | interix3*) |
|
|
12866 | hardcode_direct_F77=no |
|
|
12867 | hardcode_shlibpath_var_F77=no |
|
|
12868 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
|
12869 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
12870 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
|
12871 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
|
12872 | # default) and relocated if they conflict, which is a slow very memory |
|
|
12873 | # consuming and fragmenting process. To avoid this, we pick a random, |
|
|
12874 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
|
12875 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
|
12876 | 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' |
|
|
12877 | 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' |
|
|
12878 | ;; |
|
|
12879 | |
|
|
12880 | linux*) |
|
|
12881 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
12882 | tmp_addflag= |
|
|
12883 | case $cc_basename,$host_cpu in |
|
|
12884 | pgcc*) # Portland Group C compiler |
|
|
12885 | 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' |
|
|
12886 | tmp_addflag=' $pic_flag' |
|
|
12887 | ;; |
|
|
12888 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
|
12889 | 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' |
|
|
12890 | tmp_addflag=' $pic_flag -Mnomain' ;; |
|
|
12891 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
|
12892 | tmp_addflag=' -i_dynamic' ;; |
|
|
12893 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
|
12894 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
|
12895 | ifc* | ifort*) # Intel Fortran compiler |
|
|
12896 | tmp_addflag=' -nofor_main' ;; |
|
|
12897 | esac |
|
|
12898 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
12899 | |
|
|
12900 | if test $supports_anon_versioning = yes; then |
|
|
12901 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
12902 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
12903 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
12904 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
12905 | fi |
|
|
12906 | link_all_deplibs_F77=no |
|
|
12907 | else |
|
|
12908 | ld_shlibs_F77=no |
|
|
12909 | fi |
|
|
12910 | ;; |
|
|
12911 | |
|
|
12912 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
12913 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
12914 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
12915 | wlarc= |
|
|
12916 | else |
|
|
12917 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
12918 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
12919 | fi |
|
|
12920 | ;; |
|
|
12921 | |
|
|
12922 | solaris*) |
|
|
12923 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
|
12924 | ld_shlibs_F77=no |
|
|
12925 | cat <<EOF 1>&2 |
|
|
12926 | |
|
|
12927 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
12928 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
12929 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
12930 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
12931 | *** your PATH or compiler configuration so that the native linker is |
|
|
12932 | *** used, and then restart. |
|
|
12933 | |
|
|
12934 | EOF |
|
|
12935 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
12936 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
12937 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
12938 | else |
|
|
12939 | ld_shlibs_F77=no |
|
|
12940 | fi |
|
|
12941 | ;; |
|
|
12942 | |
|
|
12943 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
|
12944 | case `$LD -v 2>&1` in |
|
|
12945 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
|
12946 | ld_shlibs_F77=no |
|
|
12947 | cat <<_LT_EOF 1>&2 |
|
|
12948 | |
|
|
12949 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
|
12950 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
|
12951 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
12952 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
|
12953 | *** your PATH or compiler configuration so that the native linker is |
|
|
12954 | *** used, and then restart. |
|
|
12955 | |
|
|
12956 | _LT_EOF |
|
|
12957 | ;; |
|
|
12958 | *) |
|
|
12959 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
12960 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
|
12961 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
|
12962 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
|
12963 | else |
|
|
12964 | ld_shlibs_F77=no |
|
|
12965 | fi |
|
|
12966 | ;; |
|
|
12967 | esac |
|
|
12968 | ;; |
|
|
12969 | |
|
|
12970 | sunos4*) |
|
|
12971 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
12972 | wlarc= |
|
|
12973 | hardcode_direct_F77=yes |
|
|
12974 | hardcode_shlibpath_var_F77=no |
|
|
12975 | ;; |
|
|
12976 | |
|
|
12977 | *) |
|
|
12978 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
12979 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
12980 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
12981 | else |
|
|
12982 | ld_shlibs_F77=no |
|
|
12983 | fi |
|
|
12984 | ;; |
|
|
12985 | esac |
|
|
12986 | |
|
|
12987 | if test "$ld_shlibs_F77" = no; then |
|
|
12988 | runpath_var= |
|
|
12989 | hardcode_libdir_flag_spec_F77= |
|
|
12990 | export_dynamic_flag_spec_F77= |
|
|
12991 | whole_archive_flag_spec_F77= |
|
|
12992 | fi |
|
|
12993 | else |
|
|
12994 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
12995 | case $host_os in |
|
|
12996 | aix3*) |
|
|
12997 | allow_undefined_flag_F77=unsupported |
|
|
12998 | always_export_symbols_F77=yes |
|
|
12999 | 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' |
|
|
13000 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
13001 | # are no directories specified by -L. |
|
|
13002 | hardcode_minus_L_F77=yes |
|
|
13003 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
|
|
13004 | # Neither direct hardcoding nor static linking is supported with a |
|
|
13005 | # broken collect2. |
|
|
13006 | hardcode_direct_F77=unsupported |
|
|
13007 | fi |
|
|
13008 | ;; |
|
|
13009 | |
|
|
13010 | aix4* | aix5*) |
|
|
13011 | if test "$host_cpu" = ia64; then |
|
|
13012 | # On IA64, the linker does run time linking by default, so we don't |
|
|
13013 | # have to do anything special. |
|
|
13014 | aix_use_runtimelinking=no |
|
|
13015 | exp_sym_flag='-Bexport' |
|
|
13016 | no_entry_flag="" |
|
|
13017 | else |
|
|
13018 | # If we're using GNU nm, then we don't want the "-C" option. |
|
|
13019 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
|
13020 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
|
13021 | 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' |
|
|
13022 | else |
|
|
13023 | 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' |
|
|
13024 | fi |
|
|
13025 | aix_use_runtimelinking=no |
|
|
13026 | |
|
|
13027 | # Test if we are trying to use run time linking or normal |
|
|
13028 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
13029 | # need to do runtime linking. |
|
|
13030 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
13031 | for ld_flag in $LDFLAGS; do |
|
|
13032 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
|
13033 | aix_use_runtimelinking=yes |
|
|
13034 | break |
|
|
13035 | fi |
|
|
13036 | done |
|
|
13037 | ;; |
|
|
13038 | esac |
|
|
13039 | |
|
|
13040 | exp_sym_flag='-bexport' |
|
|
13041 | no_entry_flag='-bnoentry' |
|
|
13042 | fi |
|
|
13043 | |
|
|
13044 | # When large executables or shared objects are built, AIX ld can |
|
|
13045 | # have problems creating the table of contents. If linking a library |
|
|
13046 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
13047 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
13048 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
13049 | |
|
|
13050 | archive_cmds_F77='' |
|
|
13051 | hardcode_direct_F77=yes |
|
|
13052 | hardcode_libdir_separator_F77=':' |
|
|
13053 | link_all_deplibs_F77=yes |
|
|
13054 | |
|
|
13055 | if test "$GCC" = yes; then |
|
|
13056 | case $host_os in aix4.[012]|aix4.[012].*) |
|
|
13057 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
13058 | # below for broken collect2 doesn't work under 4.3+ |
|
|
13059 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
13060 | if test -f "$collect2name" && \ |
|
|
13061 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
13062 | then |
|
|
13063 | # We have reworked collect2 |
|
|
13064 | hardcode_direct_F77=yes |
|
|
13065 | else |
|
|
13066 | # We have old collect2 |
|
|
13067 | hardcode_direct_F77=unsupported |
|
|
13068 | # It fails to find uninstalled libraries when the uninstalled |
|
|
13069 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
13070 | # to unsupported forces relinking |
|
|
13071 | hardcode_minus_L_F77=yes |
|
|
13072 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13073 | hardcode_libdir_separator_F77= |
|
|
13074 | fi |
|
|
13075 | ;; |
|
|
13076 | esac |
|
|
13077 | shared_flag='-shared' |
|
|
13078 | if test "$aix_use_runtimelinking" = yes; then |
|
|
13079 | shared_flag="$shared_flag "'${wl}-G' |
|
|
13080 | fi |
|
|
13081 | else |
|
|
13082 | # not using gcc |
|
|
13083 | if test "$host_cpu" = ia64; then |
|
|
13084 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
13085 | # chokes on -Wl,-G. The following line is correct: |
|
|
13086 | shared_flag='-G' |
|
|
13087 | else |
|
|
13088 | if test "$aix_use_runtimelinking" = yes; then |
|
|
13089 | shared_flag='${wl}-G' |
|
|
13090 | else |
|
|
13091 | shared_flag='${wl}-bM:SRE' |
|
|
13092 | fi |
|
|
13093 | fi |
|
|
13094 | fi |
|
|
13095 | |
|
|
13096 | # It seems that -bexpall does not export symbols beginning with |
|
|
13097 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
13098 | always_export_symbols_F77=yes |
|
|
13099 | if test "$aix_use_runtimelinking" = yes; then |
|
|
13100 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
13101 | # -berok will link without error, but may produce a broken library. |
|
|
13102 | allow_undefined_flag_F77='-berok' |
|
|
13103 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
13104 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13105 | program main |
|
|
13106 | |
|
|
13107 | end |
2531 | _ACEOF |
13108 | _ACEOF |
|
|
13109 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13111 | (eval $ac_link) 2>conftest.er1 |
|
|
13112 | ac_status=$? |
|
|
13113 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13114 | rm -f conftest.er1 |
|
|
13115 | cat conftest.err >&5 |
|
|
13116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13117 | (exit $ac_status); } && |
|
|
13118 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|
|
13119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13120 | (eval $ac_try) 2>&5 |
|
|
13121 | ac_status=$? |
|
|
13122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13123 | (exit $ac_status); }; } && |
|
|
13124 | { ac_try='test -s conftest$ac_exeext' |
|
|
13125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13126 | (eval $ac_try) 2>&5 |
|
|
13127 | ac_status=$? |
|
|
13128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13129 | (exit $ac_status); }; }; then |
2532 | |
13130 | |
|
|
13131 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
13132 | }'` |
|
|
13133 | # Check for a 64-bit object if we didn't find anything. |
|
|
13134 | 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; } |
|
|
13135 | }'`; fi |
|
|
13136 | else |
|
|
13137 | echo "$as_me: failed program was:" >&5 |
|
|
13138 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13139 | |
|
|
13140 | fi |
|
|
13141 | rm -f conftest.err conftest.$ac_objext \ |
|
|
13142 | conftest$ac_exeext conftest.$ac_ext |
|
|
13143 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
13144 | |
|
|
13145 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
13146 | 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" |
|
|
13147 | else |
|
|
13148 | if test "$host_cpu" = ia64; then |
|
|
13149 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
|
|
13150 | allow_undefined_flag_F77="-z nodefs" |
|
|
13151 | 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" |
|
|
13152 | else |
|
|
13153 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
13154 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13155 | program main |
|
|
13156 | |
|
|
13157 | end |
|
|
13158 | _ACEOF |
|
|
13159 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13161 | (eval $ac_link) 2>conftest.er1 |
|
|
13162 | ac_status=$? |
|
|
13163 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13164 | rm -f conftest.er1 |
|
|
13165 | cat conftest.err >&5 |
|
|
13166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13167 | (exit $ac_status); } && |
|
|
13168 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|
|
13169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13170 | (eval $ac_try) 2>&5 |
|
|
13171 | ac_status=$? |
|
|
13172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13173 | (exit $ac_status); }; } && |
|
|
13174 | { ac_try='test -s conftest$ac_exeext' |
|
|
13175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13176 | (eval $ac_try) 2>&5 |
|
|
13177 | ac_status=$? |
|
|
13178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13179 | (exit $ac_status); }; }; then |
|
|
13180 | |
|
|
13181 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
13182 | }'` |
|
|
13183 | # Check for a 64-bit object if we didn't find anything. |
|
|
13184 | 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; } |
|
|
13185 | }'`; fi |
|
|
13186 | else |
|
|
13187 | echo "$as_me: failed program was:" >&5 |
|
|
13188 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13189 | |
|
|
13190 | fi |
|
|
13191 | rm -f conftest.err conftest.$ac_objext \ |
|
|
13192 | conftest$ac_exeext conftest.$ac_ext |
|
|
13193 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
13194 | |
|
|
13195 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
13196 | # Warning - without using the other run time loading flags, |
|
|
13197 | # -berok will link without error, but may produce a broken library. |
|
|
13198 | no_undefined_flag_F77=' ${wl}-bernotok' |
|
|
13199 | allow_undefined_flag_F77=' ${wl}-berok' |
|
|
13200 | # Exported symbols can be pulled into shared objects from archives |
|
|
13201 | whole_archive_flag_spec_F77='$convenience' |
|
|
13202 | archive_cmds_need_lc_F77=yes |
|
|
13203 | # This is similar to how AIX traditionally builds its shared libraries. |
|
|
13204 | 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' |
2533 | fi |
13205 | fi |
|
|
13206 | fi |
|
|
13207 | ;; |
2534 | |
13208 | |
|
|
13209 | amigaos*) |
|
|
13210 | 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)' |
|
|
13211 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13212 | hardcode_minus_L_F77=yes |
|
|
13213 | # see comment about different semantics on the GNU ld section |
|
|
13214 | ld_shlibs_F77=no |
|
|
13215 | ;; |
|
|
13216 | |
|
|
13217 | bsdi[45]*) |
|
|
13218 | export_dynamic_flag_spec_F77=-rdynamic |
|
|
13219 | ;; |
|
|
13220 | |
|
|
13221 | cygwin* | mingw* | pw32*) |
|
|
13222 | # When not using gcc, we currently assume that we are using |
|
|
13223 | # Microsoft Visual C++. |
|
|
13224 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
13225 | # no search path for DLLs. |
|
|
13226 | hardcode_libdir_flag_spec_F77=' ' |
|
|
13227 | allow_undefined_flag_F77=unsupported |
|
|
13228 | # Tell ltmain to make .lib files, not .a files. |
|
|
13229 | libext=lib |
|
|
13230 | # Tell ltmain to make .dll files, not .so files. |
|
|
13231 | shrext_cmds=".dll" |
|
|
13232 | # FIXME: Setting linknames here is a bad hack. |
|
|
13233 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
13234 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
13235 | old_archive_From_new_cmds_F77='true' |
|
|
13236 | # FIXME: Should let the user specify the lib program. |
|
|
13237 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
13238 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
|
|
13239 | enable_shared_with_static_runtimes_F77=yes |
|
|
13240 | ;; |
|
|
13241 | |
|
|
13242 | darwin* | rhapsody*) |
|
|
13243 | case $host_os in |
|
|
13244 | rhapsody* | darwin1.[012]) |
|
|
13245 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
|
|
13246 | ;; |
|
|
13247 | *) # Darwin 1.3 on |
|
|
13248 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
13249 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
13250 | else |
|
|
13251 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
13252 | 10.[012]) |
|
|
13253 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
13254 | ;; |
|
|
13255 | 10.*) |
|
|
13256 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
|
|
13257 | ;; |
|
|
13258 | esac |
|
|
13259 | fi |
|
|
13260 | ;; |
|
|
13261 | esac |
|
|
13262 | archive_cmds_need_lc_F77=no |
|
|
13263 | hardcode_direct_F77=no |
|
|
13264 | hardcode_automatic_F77=yes |
|
|
13265 | hardcode_shlibpath_var_F77=unsupported |
|
|
13266 | whole_archive_flag_spec_F77='' |
|
|
13267 | link_all_deplibs_F77=yes |
|
|
13268 | if test "$GCC" = yes ; then |
|
|
13269 | output_verbose_link_cmd='echo' |
|
|
13270 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
13271 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
13272 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
13273 | 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}' |
|
|
13274 | 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}' |
|
|
13275 | else |
|
|
13276 | case $cc_basename in |
|
|
13277 | xlc*) |
|
|
13278 | output_verbose_link_cmd='echo' |
|
|
13279 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
13280 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
13281 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
13282 | 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}' |
|
|
13283 | 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}' |
|
|
13284 | ;; |
|
|
13285 | *) |
|
|
13286 | ld_shlibs_F77=no |
|
|
13287 | ;; |
|
|
13288 | esac |
|
|
13289 | fi |
|
|
13290 | ;; |
|
|
13291 | |
|
|
13292 | dgux*) |
|
|
13293 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13294 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13295 | hardcode_shlibpath_var_F77=no |
|
|
13296 | ;; |
|
|
13297 | |
|
|
13298 | freebsd1*) |
|
|
13299 | ld_shlibs_F77=no |
|
|
13300 | ;; |
|
|
13301 | |
|
|
13302 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
13303 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
13304 | # does not break anything, and helps significantly (at the cost of a little |
|
|
13305 | # extra space). |
|
|
13306 | freebsd2.2*) |
|
|
13307 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
13308 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13309 | hardcode_direct_F77=yes |
|
|
13310 | hardcode_shlibpath_var_F77=no |
|
|
13311 | ;; |
|
|
13312 | |
|
|
13313 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
13314 | freebsd2*) |
|
|
13315 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
13316 | hardcode_direct_F77=yes |
|
|
13317 | hardcode_minus_L_F77=yes |
|
|
13318 | hardcode_shlibpath_var_F77=no |
|
|
13319 | ;; |
|
|
13320 | |
|
|
13321 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
13322 | freebsd* | dragonfly*) |
|
|
13323 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13324 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13325 | hardcode_direct_F77=yes |
|
|
13326 | hardcode_shlibpath_var_F77=no |
|
|
13327 | ;; |
|
|
13328 | |
|
|
13329 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. |
|
|
13330 | kfreebsd*-gnu) |
|
|
13331 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13332 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13333 | hardcode_direct_F77=yes |
|
|
13334 | hardcode_shlibpath_var_F77=no |
|
|
13335 | link_all_deplibs_F77=no |
|
|
13336 | ;; |
|
|
13337 | |
|
|
13338 | hpux9*) |
|
|
13339 | if test "$GCC" = yes; then |
|
|
13340 | 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' |
|
|
13341 | else |
|
|
13342 | 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' |
|
|
13343 | fi |
|
|
13344 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
|
13345 | hardcode_libdir_separator_F77=: |
|
|
13346 | hardcode_direct_F77=yes |
|
|
13347 | |
|
|
13348 | # hardcode_minus_L: Not really in the search PATH, |
|
|
13349 | # but as the default location of the library. |
|
|
13350 | hardcode_minus_L_F77=yes |
|
|
13351 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
13352 | ;; |
|
|
13353 | |
|
|
13354 | hpux10*) |
|
|
13355 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
13356 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13357 | else |
|
|
13358 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
|
13359 | fi |
|
|
13360 | if test "$with_gnu_ld" = no; then |
|
|
13361 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
|
13362 | hardcode_libdir_separator_F77=: |
|
|
13363 | |
|
|
13364 | hardcode_direct_F77=yes |
|
|
13365 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
13366 | |
|
|
13367 | # hardcode_minus_L: Not really in the search PATH, |
|
|
13368 | # but as the default location of the library. |
|
|
13369 | hardcode_minus_L_F77=yes |
|
|
13370 | fi |
|
|
13371 | ;; |
|
|
13372 | |
|
|
13373 | hpux11*) |
|
|
13374 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
13375 | case $host_cpu in |
|
|
13376 | hppa*64*) |
|
|
13377 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13378 | ;; |
|
|
13379 | ia64*) |
|
|
13380 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13381 | ;; |
|
|
13382 | *) |
|
|
13383 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13384 | ;; |
|
|
13385 | esac |
|
|
13386 | else |
|
|
13387 | case $host_cpu in |
|
|
13388 | hppa*64*) |
|
|
13389 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13390 | ;; |
|
|
13391 | ia64*) |
|
|
13392 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13393 | ;; |
|
|
13394 | *) |
|
|
13395 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13396 | ;; |
|
|
13397 | esac |
|
|
13398 | fi |
|
|
13399 | if test "$with_gnu_ld" = no; then |
|
|
13400 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
|
13401 | hardcode_libdir_separator_F77=: |
|
|
13402 | |
|
|
13403 | case $host_cpu in |
|
|
13404 | hppa*64*|ia64*) |
|
|
13405 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
|
|
13406 | hardcode_direct_F77=no |
|
|
13407 | hardcode_shlibpath_var_F77=no |
|
|
13408 | ;; |
|
|
13409 | *) |
|
|
13410 | hardcode_direct_F77=yes |
|
|
13411 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
13412 | |
|
|
13413 | # hardcode_minus_L: Not really in the search PATH, |
|
|
13414 | # but as the default location of the library. |
|
|
13415 | hardcode_minus_L_F77=yes |
|
|
13416 | ;; |
|
|
13417 | esac |
|
|
13418 | fi |
|
|
13419 | ;; |
|
|
13420 | |
|
|
13421 | irix5* | irix6* | nonstopux*) |
|
|
13422 | if test "$GCC" = yes; then |
|
|
13423 | 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' |
|
|
13424 | else |
|
|
13425 | 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' |
|
|
13426 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
|
|
13427 | fi |
|
|
13428 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
|
13429 | hardcode_libdir_separator_F77=: |
|
|
13430 | link_all_deplibs_F77=yes |
|
|
13431 | ;; |
|
|
13432 | |
|
|
13433 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
13434 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
13435 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
13436 | else |
|
|
13437 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
13438 | fi |
|
|
13439 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13440 | hardcode_direct_F77=yes |
|
|
13441 | hardcode_shlibpath_var_F77=no |
|
|
13442 | ;; |
|
|
13443 | |
|
|
13444 | newsos6) |
|
|
13445 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13446 | hardcode_direct_F77=yes |
|
|
13447 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
|
13448 | hardcode_libdir_separator_F77=: |
|
|
13449 | hardcode_shlibpath_var_F77=no |
|
|
13450 | ;; |
|
|
13451 | |
|
|
13452 | openbsd*) |
|
|
13453 | hardcode_direct_F77=yes |
|
|
13454 | hardcode_shlibpath_var_F77=no |
|
|
13455 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
13456 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13457 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
|
13458 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
|
13459 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
13460 | else |
|
|
13461 | case $host_os in |
|
|
13462 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
|
13463 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
13464 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13465 | ;; |
|
|
13466 | *) |
|
|
13467 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13468 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
|
13469 | ;; |
|
|
13470 | esac |
|
|
13471 | fi |
|
|
13472 | ;; |
|
|
13473 | |
|
|
13474 | os2*) |
|
|
13475 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13476 | hardcode_minus_L_F77=yes |
|
|
13477 | allow_undefined_flag_F77=unsupported |
|
|
13478 | 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' |
|
|
13479 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
13480 | ;; |
|
|
13481 | |
|
|
13482 | osf3*) |
|
|
13483 | if test "$GCC" = yes; then |
|
|
13484 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
|
13485 | 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' |
|
|
13486 | else |
|
|
13487 | allow_undefined_flag_F77=' -expect_unresolved \*' |
|
|
13488 | 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' |
|
|
13489 | fi |
|
|
13490 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
|
13491 | hardcode_libdir_separator_F77=: |
|
|
13492 | ;; |
|
|
13493 | |
|
|
13494 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
13495 | if test "$GCC" = yes; then |
|
|
13496 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
|
13497 | 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' |
|
|
13498 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
|
13499 | else |
|
|
13500 | allow_undefined_flag_F77=' -expect_unresolved \*' |
|
|
13501 | 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' |
|
|
13502 | 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~ |
|
|
13503 | $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' |
|
|
13504 | |
|
|
13505 | # Both c and cxx compiler support -rpath directly |
|
|
13506 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
|
|
13507 | fi |
|
|
13508 | hardcode_libdir_separator_F77=: |
|
|
13509 | ;; |
|
|
13510 | |
|
|
13511 | solaris*) |
|
|
13512 | no_undefined_flag_F77=' -z text' |
|
|
13513 | if test "$GCC" = yes; then |
|
|
13514 | wlarc='${wl}' |
|
|
13515 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13516 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
13517 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
|
13518 | else |
|
|
13519 | wlarc='' |
|
|
13520 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13521 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
13522 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
13523 | fi |
|
|
13524 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13525 | hardcode_shlibpath_var_F77=no |
|
|
13526 | case $host_os in |
|
|
13527 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
13528 | *) |
|
|
13529 | # The compiler driver will combine linker options so we |
|
|
13530 | # cannot just pass the convience library names through |
|
|
13531 | # without $wl, iff we do not link with $LD. |
|
|
13532 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
|
|
13533 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
13534 | case $wlarc in |
|
|
13535 | '') |
|
|
13536 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
|
|
13537 | *) |
|
|
13538 | 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' ;; |
|
|
13539 | esac ;; |
|
|
13540 | esac |
|
|
13541 | link_all_deplibs_F77=yes |
|
|
13542 | ;; |
|
|
13543 | |
|
|
13544 | sunos4*) |
|
|
13545 | if test "x$host_vendor" = xsequent; then |
|
|
13546 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
13547 | # files that make .init and .fini sections work. |
|
|
13548 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13549 | else |
|
|
13550 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
13551 | fi |
|
|
13552 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13553 | hardcode_direct_F77=yes |
|
|
13554 | hardcode_minus_L_F77=yes |
|
|
13555 | hardcode_shlibpath_var_F77=no |
|
|
13556 | ;; |
|
|
13557 | |
|
|
13558 | sysv4) |
|
|
13559 | case $host_vendor in |
|
|
13560 | sni) |
|
|
13561 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13562 | hardcode_direct_F77=yes # is this really true??? |
|
|
13563 | ;; |
|
|
13564 | siemens) |
|
|
13565 | ## LD is ld it makes a PLAMLIB |
|
|
13566 | ## CC just makes a GrossModule. |
|
|
13567 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
13568 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
|
|
13569 | hardcode_direct_F77=no |
|
|
13570 | ;; |
|
|
13571 | motorola) |
|
|
13572 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13573 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
|
|
13574 | ;; |
|
|
13575 | esac |
|
|
13576 | runpath_var='LD_RUN_PATH' |
|
|
13577 | hardcode_shlibpath_var_F77=no |
|
|
13578 | ;; |
|
|
13579 | |
|
|
13580 | sysv4.3*) |
|
|
13581 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13582 | hardcode_shlibpath_var_F77=no |
|
|
13583 | export_dynamic_flag_spec_F77='-Bexport' |
|
|
13584 | ;; |
|
|
13585 | |
|
|
13586 | sysv4*MP*) |
|
|
13587 | if test -d /usr/nec; then |
|
|
13588 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13589 | hardcode_shlibpath_var_F77=no |
|
|
13590 | runpath_var=LD_RUN_PATH |
|
|
13591 | hardcode_runpath_var=yes |
|
|
13592 | ld_shlibs_F77=yes |
|
|
13593 | fi |
|
|
13594 | ;; |
|
|
13595 | |
|
|
13596 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
|
|
13597 | no_undefined_flag_F77='${wl}-z,text' |
|
|
13598 | archive_cmds_need_lc_F77=no |
|
|
13599 | hardcode_shlibpath_var_F77=no |
|
|
13600 | runpath_var='LD_RUN_PATH' |
|
|
13601 | |
|
|
13602 | if test "$GCC" = yes; then |
|
|
13603 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13604 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13605 | else |
|
|
13606 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13607 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13608 | fi |
|
|
13609 | ;; |
|
|
13610 | |
|
|
13611 | sysv5* | sco3.2v5* | sco5v6*) |
|
|
13612 | # Note: We can NOT use -z defs as we might desire, because we do not |
|
|
13613 | # link with -lc, and that would cause any symbols used from libc to |
|
|
13614 | # always be unresolved, which means just about no library would |
|
|
13615 | # ever link correctly. If we're not using GNU ld we use -z text |
|
|
13616 | # though, which does catch some bad symbols but isn't as heavy-handed |
|
|
13617 | # as -z defs. |
|
|
13618 | no_undefined_flag_F77='${wl}-z,text' |
|
|
13619 | allow_undefined_flag_F77='${wl}-z,nodefs' |
|
|
13620 | archive_cmds_need_lc_F77=no |
|
|
13621 | hardcode_shlibpath_var_F77=no |
|
|
13622 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
|
13623 | hardcode_libdir_separator_F77=':' |
|
|
13624 | link_all_deplibs_F77=yes |
|
|
13625 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
|
|
13626 | runpath_var='LD_RUN_PATH' |
|
|
13627 | |
|
|
13628 | if test "$GCC" = yes; then |
|
|
13629 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13630 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13631 | else |
|
|
13632 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13633 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13634 | fi |
|
|
13635 | ;; |
|
|
13636 | |
|
|
13637 | uts4*) |
|
|
13638 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13639 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13640 | hardcode_shlibpath_var_F77=no |
|
|
13641 | ;; |
|
|
13642 | |
|
|
13643 | *) |
|
|
13644 | ld_shlibs_F77=no |
|
|
13645 | ;; |
|
|
13646 | esac |
|
|
13647 | fi |
|
|
13648 | |
|
|
13649 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
|
|
13650 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
|
|
13651 | test "$ld_shlibs_F77" = no && can_build_shared=no |
|
|
13652 | |
|
|
13653 | # |
|
|
13654 | # Do we need to explicitly link libc? |
|
|
13655 | # |
|
|
13656 | case "x$archive_cmds_need_lc_F77" in |
|
|
13657 | x|xyes) |
|
|
13658 | # Assume -lc should be added |
|
|
13659 | archive_cmds_need_lc_F77=yes |
|
|
13660 | |
|
|
13661 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
13662 | case $archive_cmds_F77 in |
|
|
13663 | *'~'*) |
|
|
13664 | # FIXME: we may have to deal with multi-command sequences. |
|
|
13665 | ;; |
|
|
13666 | '$CC '*) |
|
|
13667 | # Test whether the compiler implicitly links with -lc since on some |
|
|
13668 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
13669 | # to ld, don't add -lc before -lgcc. |
|
|
13670 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
13671 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
13672 | $rm conftest* |
|
|
13673 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
13674 | |
|
|
13675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13676 | (eval $ac_compile) 2>&5 |
|
|
13677 | ac_status=$? |
|
|
13678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13679 | (exit $ac_status); } 2>conftest.err; then |
|
|
13680 | soname=conftest |
|
|
13681 | lib=conftest |
|
|
13682 | libobjs=conftest.$ac_objext |
|
|
13683 | deplibs= |
|
|
13684 | wl=$lt_prog_compiler_wl_F77 |
|
|
13685 | pic_flag=$lt_prog_compiler_pic_F77 |
|
|
13686 | compiler_flags=-v |
|
|
13687 | linker_flags=-v |
|
|
13688 | verstring= |
|
|
13689 | output_objdir=. |
|
|
13690 | libname=conftest |
|
|
13691 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
|
|
13692 | allow_undefined_flag_F77= |
|
|
13693 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
13694 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
13695 | ac_status=$? |
|
|
13696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13697 | (exit $ac_status); } |
|
|
13698 | then |
|
|
13699 | archive_cmds_need_lc_F77=no |
|
|
13700 | else |
|
|
13701 | archive_cmds_need_lc_F77=yes |
|
|
13702 | fi |
|
|
13703 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
|
|
13704 | else |
|
|
13705 | cat conftest.err 1>&5 |
|
|
13706 | fi |
|
|
13707 | $rm conftest* |
|
|
13708 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
|
|
13709 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
|
|
13710 | ;; |
|
|
13711 | esac |
|
|
13712 | fi |
|
|
13713 | ;; |
|
|
13714 | esac |
|
|
13715 | |
|
|
13716 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
13717 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
13718 | library_names_spec= |
|
|
13719 | libname_spec='lib$name' |
|
|
13720 | soname_spec= |
|
|
13721 | shrext_cmds=".so" |
|
|
13722 | postinstall_cmds= |
|
|
13723 | postuninstall_cmds= |
|
|
13724 | finish_cmds= |
|
|
13725 | finish_eval= |
|
|
13726 | shlibpath_var= |
|
|
13727 | shlibpath_overrides_runpath=unknown |
|
|
13728 | version_type=none |
|
|
13729 | dynamic_linker="$host_os ld.so" |
|
|
13730 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
13731 | if test "$GCC" = yes; then |
|
|
13732 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
13733 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
|
13734 | # if the path contains ";" then we assume it to be the separator |
|
|
13735 | # otherwise default to the standard path separator (i.e. ":") - it is |
|
|
13736 | # assumed that no part of a normal pathname contains ";" but that should |
|
|
13737 | # okay in the real world where ";" in dirpaths is itself problematic. |
|
|
13738 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
13739 | else |
|
|
13740 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
13741 | fi |
|
|
13742 | else |
|
|
13743 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
13744 | fi |
|
|
13745 | need_lib_prefix=unknown |
|
|
13746 | hardcode_into_libs=no |
|
|
13747 | |
|
|
13748 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
13749 | # flags to be left without arguments |
|
|
13750 | need_version=unknown |
|
|
13751 | |
|
|
13752 | case $host_os in |
|
|
13753 | aix3*) |
|
|
13754 | version_type=linux |
|
|
13755 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
|
13756 | shlibpath_var=LIBPATH |
|
|
13757 | |
|
|
13758 | # AIX 3 has no versioning support, so we append a major version to the name. |
|
|
13759 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13760 | ;; |
|
|
13761 | |
|
|
13762 | aix4* | aix5*) |
|
|
13763 | version_type=linux |
|
|
13764 | need_lib_prefix=no |
|
|
13765 | need_version=no |
|
|
13766 | hardcode_into_libs=yes |
|
|
13767 | if test "$host_cpu" = ia64; then |
|
|
13768 | # AIX 5 supports IA64 |
|
|
13769 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
|
13770 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13771 | else |
|
|
13772 | # With GCC up to 2.95.x, collect2 would create an import file |
|
|
13773 | # for dependence libraries. The import file would start with |
|
|
13774 | # the line `#! .'. This would cause the generated library to |
|
|
13775 | # depend on `.', always an invalid library. This was fixed in |
|
|
13776 | # development snapshots of GCC prior to 3.0. |
|
|
13777 | case $host_os in |
|
|
13778 | aix4 | aix4.[01] | aix4.[01].*) |
|
|
13779 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
13780 | echo ' yes ' |
|
|
13781 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
13782 | : |
|
|
13783 | else |
|
|
13784 | can_build_shared=no |
|
|
13785 | fi |
|
|
13786 | ;; |
|
|
13787 | esac |
|
|
13788 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
|
13789 | # soname into executable. Probably we can add versioning support to |
|
|
13790 | # collect2, so additional links can be useful in future. |
|
|
13791 | if test "$aix_use_runtimelinking" = yes; then |
|
|
13792 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
13793 | # instead of lib<name>.a to let people know that these are not |
|
|
13794 | # typical AIX shared libraries. |
|
|
13795 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
13796 | else |
|
|
13797 | # We preserve .a as extension for shared libraries through AIX4.2 |
|
|
13798 | # and later when we are not doing run time linking. |
|
|
13799 | library_names_spec='${libname}${release}.a $libname.a' |
|
|
13800 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13801 | fi |
|
|
13802 | shlibpath_var=LIBPATH |
|
|
13803 | fi |
|
|
13804 | ;; |
|
|
13805 | |
|
|
13806 | amigaos*) |
|
|
13807 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
13808 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
13809 | 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' |
|
|
13810 | ;; |
|
|
13811 | |
|
|
13812 | beos*) |
|
|
13813 | library_names_spec='${libname}${shared_ext}' |
|
|
13814 | dynamic_linker="$host_os ld.so" |
|
|
13815 | shlibpath_var=LIBRARY_PATH |
|
|
13816 | ;; |
|
|
13817 | |
|
|
13818 | bsdi[45]*) |
|
|
13819 | version_type=linux |
|
|
13820 | need_version=no |
|
|
13821 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
13822 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13823 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
13824 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13825 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
13826 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
13827 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
13828 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
13829 | # libtool to hard-code these into programs |
|
|
13830 | ;; |
|
|
13831 | |
|
|
13832 | cygwin* | mingw* | pw32*) |
|
|
13833 | version_type=windows |
|
|
13834 | shrext_cmds=".dll" |
|
|
13835 | need_version=no |
|
|
13836 | need_lib_prefix=no |
|
|
13837 | |
|
|
13838 | case $GCC,$host_os in |
|
|
13839 | yes,cygwin* | yes,mingw* | yes,pw32*) |
|
|
13840 | library_names_spec='$libname.dll.a' |
|
|
13841 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
|
13842 | postinstall_cmds='base_file=`basename \${file}`~ |
|
|
13843 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
|
13844 | dldir=$destdir/`dirname \$dlpath`~ |
|
|
13845 | test -d \$dldir || mkdir -p \$dldir~ |
|
|
13846 | $install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
13847 | chmod a+x \$dldir/$dlname' |
|
|
13848 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
13849 | dlpath=$dir/\$dldll~ |
|
|
13850 | $rm \$dlpath' |
|
|
13851 | shlibpath_overrides_runpath=yes |
|
|
13852 | |
|
|
13853 | case $host_os in |
|
|
13854 | cygwin*) |
|
|
13855 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
|
13856 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
13857 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
|
13858 | ;; |
|
|
13859 | mingw*) |
|
|
13860 | # MinGW DLLs use traditional 'lib' prefix |
|
|
13861 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
13862 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
13863 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
|
13864 | # It is most probably a Windows format PATH printed by |
|
|
13865 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
|
13866 | # path with ; separators, and with drive letters. We can handle the |
|
|
13867 | # drive letters (cygwin fileutils understands them), so leave them, |
|
|
13868 | # especially as we might pass files found there to a mingw objdump, |
|
|
13869 | # which wouldn't understand a cygwinified path. Ahh. |
|
|
13870 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
13871 | else |
|
|
13872 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
13873 | fi |
|
|
13874 | ;; |
|
|
13875 | pw32*) |
|
|
13876 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
|
13877 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
13878 | ;; |
|
|
13879 | esac |
|
|
13880 | ;; |
|
|
13881 | |
|
|
13882 | *) |
|
|
13883 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
|
13884 | ;; |
|
|
13885 | esac |
|
|
13886 | dynamic_linker='Win32 ld.exe' |
|
|
13887 | # FIXME: first we should search . and the directory the executable is in |
|
|
13888 | shlibpath_var=PATH |
|
|
13889 | ;; |
|
|
13890 | |
|
|
13891 | darwin* | rhapsody*) |
|
|
13892 | dynamic_linker="$host_os dyld" |
|
|
13893 | version_type=darwin |
|
|
13894 | need_lib_prefix=no |
|
|
13895 | need_version=no |
|
|
13896 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
|
13897 | soname_spec='${libname}${release}${major}$shared_ext' |
|
|
13898 | shlibpath_overrides_runpath=yes |
|
|
13899 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
13900 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
|
13901 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
|
13902 | if test "$GCC" = yes; then |
|
|
13903 | 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"` |
|
|
13904 | else |
|
|
13905 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
|
13906 | fi |
|
|
13907 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
|
13908 | ;; |
|
|
13909 | |
|
|
13910 | dgux*) |
|
|
13911 | version_type=linux |
|
|
13912 | need_lib_prefix=no |
|
|
13913 | need_version=no |
|
|
13914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
|
13915 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13916 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13917 | ;; |
|
|
13918 | |
|
|
13919 | freebsd1*) |
|
|
13920 | dynamic_linker=no |
|
|
13921 | ;; |
|
|
13922 | |
|
|
13923 | kfreebsd*-gnu) |
|
|
13924 | version_type=linux |
|
|
13925 | need_lib_prefix=no |
|
|
13926 | need_version=no |
|
|
13927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
13928 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13929 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13930 | shlibpath_overrides_runpath=no |
|
|
13931 | hardcode_into_libs=yes |
|
|
13932 | dynamic_linker='GNU ld.so' |
|
|
13933 | ;; |
|
|
13934 | |
|
|
13935 | freebsd* | dragonfly*) |
|
|
13936 | # DragonFly does not have aout. When/if they implement a new |
|
|
13937 | # versioning mechanism, adjust this. |
|
|
13938 | if test -x /usr/bin/objformat; then |
|
|
13939 | objformat=`/usr/bin/objformat` |
|
|
13940 | else |
|
|
13941 | case $host_os in |
|
|
13942 | freebsd[123]*) objformat=aout ;; |
|
|
13943 | *) objformat=elf ;; |
|
|
13944 | esac |
|
|
13945 | fi |
|
|
13946 | version_type=freebsd-$objformat |
|
|
13947 | case $version_type in |
|
|
13948 | freebsd-elf*) |
|
|
13949 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
13950 | need_version=no |
|
|
13951 | need_lib_prefix=no |
|
|
13952 | ;; |
|
|
13953 | freebsd-*) |
|
|
13954 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
|
13955 | need_version=yes |
|
|
13956 | ;; |
|
|
13957 | esac |
|
|
13958 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13959 | case $host_os in |
|
|
13960 | freebsd2*) |
|
|
13961 | shlibpath_overrides_runpath=yes |
|
|
13962 | ;; |
|
|
13963 | freebsd3.[01]* | freebsdelf3.[01]*) |
|
|
13964 | shlibpath_overrides_runpath=yes |
|
|
13965 | hardcode_into_libs=yes |
|
|
13966 | ;; |
|
|
13967 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
|
13968 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
|
13969 | shlibpath_overrides_runpath=no |
|
|
13970 | hardcode_into_libs=yes |
|
|
13971 | ;; |
|
|
13972 | freebsd*) # from 4.6 on |
|
|
13973 | shlibpath_overrides_runpath=yes |
|
|
13974 | hardcode_into_libs=yes |
|
|
13975 | ;; |
|
|
13976 | esac |
|
|
13977 | ;; |
|
|
13978 | |
|
|
13979 | gnu*) |
|
|
13980 | version_type=linux |
|
|
13981 | need_lib_prefix=no |
|
|
13982 | need_version=no |
|
|
13983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
|
13984 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13985 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13986 | hardcode_into_libs=yes |
|
|
13987 | ;; |
|
|
13988 | |
|
|
13989 | hpux9* | hpux10* | hpux11*) |
|
|
13990 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
13991 | # link against other versions. |
|
|
13992 | version_type=sunos |
|
|
13993 | need_lib_prefix=no |
|
|
13994 | need_version=no |
|
|
13995 | case $host_cpu in |
|
|
13996 | ia64*) |
|
|
13997 | shrext_cmds='.so' |
|
|
13998 | hardcode_into_libs=yes |
|
|
13999 | dynamic_linker="$host_os dld.so" |
|
|
14000 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14001 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
14002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14003 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14004 | if test "X$HPUX_IA64_MODE" = X32; then |
|
|
14005 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
|
14006 | else |
|
|
14007 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
|
14008 | fi |
|
|
14009 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
14010 | ;; |
|
|
14011 | hppa*64*) |
|
|
14012 | shrext_cmds='.sl' |
|
|
14013 | hardcode_into_libs=yes |
|
|
14014 | dynamic_linker="$host_os dld.sl" |
|
|
14015 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
|
14016 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
14017 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14018 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14019 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
|
14020 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
14021 | ;; |
|
|
14022 | *) |
|
|
14023 | shrext_cmds='.sl' |
|
|
14024 | dynamic_linker="$host_os dld.sl" |
|
|
14025 | shlibpath_var=SHLIB_PATH |
|
|
14026 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
14027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14028 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14029 | ;; |
|
|
14030 | esac |
|
|
14031 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
14032 | postinstall_cmds='chmod 555 $lib' |
|
|
14033 | ;; |
|
|
14034 | |
|
|
14035 | interix3*) |
|
|
14036 | version_type=linux |
|
|
14037 | need_lib_prefix=no |
|
|
14038 | need_version=no |
|
|
14039 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
14040 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14041 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
|
14042 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14043 | shlibpath_overrides_runpath=no |
|
|
14044 | hardcode_into_libs=yes |
|
|
14045 | ;; |
|
|
14046 | |
|
|
14047 | irix5* | irix6* | nonstopux*) |
|
|
14048 | case $host_os in |
|
|
14049 | nonstopux*) version_type=nonstopux ;; |
|
|
14050 | *) |
|
|
14051 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
14052 | version_type=linux |
|
|
14053 | else |
|
|
14054 | version_type=irix |
|
|
14055 | fi ;; |
|
|
14056 | esac |
|
|
14057 | need_lib_prefix=no |
|
|
14058 | need_version=no |
|
|
14059 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
14061 | case $host_os in |
|
|
14062 | irix5* | nonstopux*) |
|
|
14063 | libsuff= shlibsuff= |
|
|
14064 | ;; |
|
|
14065 | *) |
|
|
14066 | case $LD in # libtool.m4 will add one of these switches to LD |
|
|
14067 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
|
14068 | libsuff= shlibsuff= libmagic=32-bit;; |
|
|
14069 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
|
14070 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
14071 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
|
14072 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
14073 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
14074 | esac |
|
|
14075 | ;; |
|
|
14076 | esac |
|
|
14077 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
14078 | shlibpath_overrides_runpath=no |
|
|
14079 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
14080 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
14081 | hardcode_into_libs=yes |
|
|
14082 | ;; |
|
|
14083 | |
|
|
14084 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
14085 | linux*oldld* | linux*aout* | linux*coff*) |
|
|
14086 | dynamic_linker=no |
|
|
14087 | ;; |
|
|
14088 | |
|
|
14089 | # This must be Linux ELF. |
|
|
14090 | linux*) |
|
|
14091 | version_type=linux |
|
|
14092 | need_lib_prefix=no |
|
|
14093 | need_version=no |
|
|
14094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14095 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14096 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
14097 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14098 | shlibpath_overrides_runpath=no |
|
|
14099 | # This implies no fast_install, which is unacceptable. |
|
|
14100 | # Some rework will be needed to allow for fast_install |
|
|
14101 | # before this can be enabled. |
|
|
14102 | hardcode_into_libs=yes |
|
|
14103 | |
|
|
14104 | # Append ld.so.conf contents to the search path |
|
|
14105 | if test -f /etc/ld.so.conf; then |
|
|
14106 | 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' ' '` |
|
|
14107 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
|
14108 | fi |
|
|
14109 | |
|
|
14110 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
14111 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
14112 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
14113 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
14114 | # people can always --disable-shared, the test was removed, and we |
|
|
14115 | # assume the GNU/Linux dynamic linker is in use. |
|
|
14116 | dynamic_linker='GNU/Linux ld.so' |
|
|
14117 | ;; |
|
|
14118 | |
|
|
14119 | netbsdelf*-gnu) |
|
|
14120 | version_type=linux |
|
|
14121 | need_lib_prefix=no |
|
|
14122 | need_version=no |
|
|
14123 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
14124 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14125 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14126 | shlibpath_overrides_runpath=no |
|
|
14127 | hardcode_into_libs=yes |
|
|
14128 | dynamic_linker='NetBSD ld.elf_so' |
|
|
14129 | ;; |
|
|
14130 | |
|
|
14131 | knetbsd*-gnu) |
|
|
14132 | version_type=linux |
|
|
14133 | need_lib_prefix=no |
|
|
14134 | need_version=no |
|
|
14135 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
14136 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14137 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14138 | shlibpath_overrides_runpath=no |
|
|
14139 | hardcode_into_libs=yes |
|
|
14140 | dynamic_linker='GNU ld.so' |
|
|
14141 | ;; |
|
|
14142 | |
|
|
14143 | netbsd*) |
|
|
14144 | version_type=sunos |
|
|
14145 | need_lib_prefix=no |
|
|
14146 | need_version=no |
|
|
14147 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
14148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
14149 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
14150 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
14151 | else |
|
|
14152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
14153 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14154 | dynamic_linker='NetBSD ld.elf_so' |
|
|
14155 | fi |
|
|
14156 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14157 | shlibpath_overrides_runpath=yes |
|
|
14158 | hardcode_into_libs=yes |
|
|
14159 | ;; |
|
|
14160 | |
|
|
14161 | newsos6) |
|
|
14162 | version_type=linux |
|
|
14163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14164 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14165 | shlibpath_overrides_runpath=yes |
|
|
14166 | ;; |
|
|
14167 | |
|
|
14168 | nto-qnx*) |
|
|
14169 | version_type=linux |
|
|
14170 | need_lib_prefix=no |
|
|
14171 | need_version=no |
|
|
14172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14173 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14174 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14175 | shlibpath_overrides_runpath=yes |
|
|
14176 | ;; |
|
|
14177 | |
|
|
14178 | openbsd*) |
|
|
14179 | version_type=sunos |
|
|
14180 | sys_lib_dlsearch_path_spec="/usr/lib" |
|
|
14181 | need_lib_prefix=no |
|
|
14182 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
14183 | case $host_os in |
|
|
14184 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
|
14185 | *) need_version=no ;; |
|
|
14186 | esac |
|
|
14187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
14188 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
14189 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14190 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
14191 | case $host_os in |
|
|
14192 | openbsd2.[89] | openbsd2.[89].*) |
|
|
14193 | shlibpath_overrides_runpath=no |
|
|
14194 | ;; |
|
|
14195 | *) |
|
|
14196 | shlibpath_overrides_runpath=yes |
|
|
14197 | ;; |
|
|
14198 | esac |
|
|
14199 | else |
|
|
14200 | shlibpath_overrides_runpath=yes |
|
|
14201 | fi |
|
|
14202 | ;; |
|
|
14203 | |
|
|
14204 | os2*) |
|
|
14205 | libname_spec='$name' |
|
|
14206 | shrext_cmds=".dll" |
|
|
14207 | need_lib_prefix=no |
|
|
14208 | library_names_spec='$libname${shared_ext} $libname.a' |
|
|
14209 | dynamic_linker='OS/2 ld.exe' |
|
|
14210 | shlibpath_var=LIBPATH |
|
|
14211 | ;; |
|
|
14212 | |
|
|
14213 | osf3* | osf4* | osf5*) |
|
|
14214 | version_type=osf |
|
|
14215 | need_lib_prefix=no |
|
|
14216 | need_version=no |
|
|
14217 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14219 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14220 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
14221 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
14222 | ;; |
|
|
14223 | |
|
|
14224 | solaris*) |
|
|
14225 | version_type=linux |
|
|
14226 | need_lib_prefix=no |
|
|
14227 | need_version=no |
|
|
14228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14229 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14230 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14231 | shlibpath_overrides_runpath=yes |
|
|
14232 | hardcode_into_libs=yes |
|
|
14233 | # ldd complains unless libraries are executable |
|
|
14234 | postinstall_cmds='chmod +x $lib' |
|
|
14235 | ;; |
|
|
14236 | |
|
|
14237 | sunos4*) |
|
|
14238 | version_type=sunos |
|
|
14239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
14240 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
14241 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14242 | shlibpath_overrides_runpath=yes |
|
|
14243 | if test "$with_gnu_ld" = yes; then |
|
|
14244 | need_lib_prefix=no |
|
|
14245 | fi |
|
|
14246 | need_version=yes |
|
|
14247 | ;; |
|
|
14248 | |
|
|
14249 | sysv4 | sysv4.3*) |
|
|
14250 | version_type=linux |
|
|
14251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14252 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14253 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14254 | case $host_vendor in |
|
|
14255 | sni) |
|
|
14256 | shlibpath_overrides_runpath=no |
|
|
14257 | need_lib_prefix=no |
|
|
14258 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
14259 | runpath_var=LD_RUN_PATH |
|
|
14260 | ;; |
|
|
14261 | siemens) |
|
|
14262 | need_lib_prefix=no |
|
|
14263 | ;; |
|
|
14264 | motorola) |
|
|
14265 | need_lib_prefix=no |
|
|
14266 | need_version=no |
|
|
14267 | shlibpath_overrides_runpath=no |
|
|
14268 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
14269 | ;; |
|
|
14270 | esac |
|
|
14271 | ;; |
|
|
14272 | |
|
|
14273 | sysv4*MP*) |
|
|
14274 | if test -d /usr/nec ;then |
|
|
14275 | version_type=linux |
|
|
14276 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
|
14277 | soname_spec='$libname${shared_ext}.$major' |
|
|
14278 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14279 | fi |
|
|
14280 | ;; |
|
|
14281 | |
|
|
14282 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
14283 | version_type=freebsd-elf |
|
|
14284 | need_lib_prefix=no |
|
|
14285 | need_version=no |
|
|
14286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
14287 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14288 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14289 | hardcode_into_libs=yes |
|
|
14290 | if test "$with_gnu_ld" = yes; then |
|
|
14291 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
|
14292 | shlibpath_overrides_runpath=no |
|
|
14293 | else |
|
|
14294 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
|
14295 | shlibpath_overrides_runpath=yes |
|
|
14296 | case $host_os in |
|
|
14297 | sco3.2v5*) |
|
|
14298 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
|
14299 | ;; |
|
|
14300 | esac |
|
|
14301 | fi |
|
|
14302 | sys_lib_dlsearch_path_spec='/usr/lib' |
|
|
14303 | ;; |
|
|
14304 | |
|
|
14305 | uts4*) |
|
|
14306 | version_type=linux |
|
|
14307 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14308 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14309 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14310 | ;; |
|
|
14311 | |
|
|
14312 | *) |
|
|
14313 | dynamic_linker=no |
|
|
14314 | ;; |
|
|
14315 | esac |
|
|
14316 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
14317 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
14318 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
14319 | |
|
|
14320 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
14321 | if test "$GCC" = yes; then |
|
|
14322 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
14323 | fi |
|
|
14324 | |
|
|
14325 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
14326 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
14327 | hardcode_action_F77= |
|
|
14328 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
|
|
14329 | test -n "$runpath_var_F77" || \ |
|
|
14330 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
|
|
14331 | |
|
|
14332 | # We can hardcode non-existant directories. |
|
|
14333 | if test "$hardcode_direct_F77" != no && |
|
|
14334 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
14335 | # have to relink, otherwise we might link with an installed library |
|
|
14336 | # when we should be linking with a yet-to-be-installed one |
|
|
14337 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
|
|
14338 | test "$hardcode_minus_L_F77" != no; then |
|
|
14339 | # Linking always hardcodes the temporary library directory. |
|
|
14340 | hardcode_action_F77=relink |
|
|
14341 | else |
|
|
14342 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
14343 | hardcode_action_F77=immediate |
|
|
14344 | fi |
|
|
14345 | else |
|
|
14346 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
14347 | # directories. |
|
|
14348 | hardcode_action_F77=unsupported |
|
|
14349 | fi |
|
|
14350 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
|
|
14351 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
|
|
14352 | |
|
|
14353 | if test "$hardcode_action_F77" = relink; then |
|
|
14354 | # Fast installation is not supported |
|
|
14355 | enable_fast_install=no |
|
|
14356 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
14357 | test "$enable_shared" = no; then |
|
|
14358 | # Fast installation is not necessary |
|
|
14359 | enable_fast_install=needless |
|
|
14360 | fi |
|
|
14361 | |
|
|
14362 | |
|
|
14363 | # The else clause should only fire when bootstrapping the |
|
|
14364 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
14365 | # with your package, and you will get complaints that there are |
|
|
14366 | # no rules to generate ltmain.sh. |
|
|
14367 | if test -f "$ltmain"; then |
|
|
14368 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
14369 | # without removal of \ escapes. |
|
|
14370 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
14371 | setopt NO_GLOB_SUBST |
|
|
14372 | fi |
|
|
14373 | # Now quote all the things that may contain metacharacters while being |
|
|
14374 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
14375 | # variables and quote the copies for generation of the libtool script. |
|
|
14376 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
|
14377 | SED SHELL STRIP \ |
|
|
14378 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
14379 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
14380 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
14381 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
14382 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
14383 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
14384 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
14385 | compiler_F77 \ |
|
|
14386 | CC_F77 \ |
|
|
14387 | LD_F77 \ |
|
|
14388 | lt_prog_compiler_wl_F77 \ |
|
|
14389 | lt_prog_compiler_pic_F77 \ |
|
|
14390 | lt_prog_compiler_static_F77 \ |
|
|
14391 | lt_prog_compiler_no_builtin_flag_F77 \ |
|
|
14392 | export_dynamic_flag_spec_F77 \ |
|
|
14393 | thread_safe_flag_spec_F77 \ |
|
|
14394 | whole_archive_flag_spec_F77 \ |
|
|
14395 | enable_shared_with_static_runtimes_F77 \ |
|
|
14396 | old_archive_cmds_F77 \ |
|
|
14397 | old_archive_from_new_cmds_F77 \ |
|
|
14398 | predep_objects_F77 \ |
|
|
14399 | postdep_objects_F77 \ |
|
|
14400 | predeps_F77 \ |
|
|
14401 | postdeps_F77 \ |
|
|
14402 | compiler_lib_search_path_F77 \ |
|
|
14403 | archive_cmds_F77 \ |
|
|
14404 | archive_expsym_cmds_F77 \ |
|
|
14405 | postinstall_cmds_F77 \ |
|
|
14406 | postuninstall_cmds_F77 \ |
|
|
14407 | old_archive_from_expsyms_cmds_F77 \ |
|
|
14408 | allow_undefined_flag_F77 \ |
|
|
14409 | no_undefined_flag_F77 \ |
|
|
14410 | export_symbols_cmds_F77 \ |
|
|
14411 | hardcode_libdir_flag_spec_F77 \ |
|
|
14412 | hardcode_libdir_flag_spec_ld_F77 \ |
|
|
14413 | hardcode_libdir_separator_F77 \ |
|
|
14414 | hardcode_automatic_F77 \ |
|
|
14415 | module_cmds_F77 \ |
|
|
14416 | module_expsym_cmds_F77 \ |
|
|
14417 | lt_cv_prog_compiler_c_o_F77 \ |
|
|
14418 | exclude_expsyms_F77 \ |
|
|
14419 | include_expsyms_F77; do |
|
|
14420 | |
|
|
14421 | case $var in |
|
|
14422 | old_archive_cmds_F77 | \ |
|
|
14423 | old_archive_from_new_cmds_F77 | \ |
|
|
14424 | archive_cmds_F77 | \ |
|
|
14425 | archive_expsym_cmds_F77 | \ |
|
|
14426 | module_cmds_F77 | \ |
|
|
14427 | module_expsym_cmds_F77 | \ |
|
|
14428 | old_archive_from_expsyms_cmds_F77 | \ |
|
|
14429 | export_symbols_cmds_F77 | \ |
|
|
14430 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
14431 | postinstall_cmds | postuninstall_cmds | \ |
|
|
14432 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
14433 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
14434 | # Double-quote double-evaled strings. |
|
|
14435 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
14436 | ;; |
|
|
14437 | *) |
|
|
14438 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
14439 | ;; |
|
|
14440 | esac |
|
|
14441 | done |
|
|
14442 | |
|
|
14443 | case $lt_echo in |
|
|
14444 | *'\$0 --fallback-echo"') |
|
|
14445 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
14446 | ;; |
|
|
14447 | esac |
|
|
14448 | |
|
|
14449 | cfgfile="$ofile" |
|
|
14450 | |
|
|
14451 | cat <<__EOF__ >> "$cfgfile" |
|
|
14452 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
|
14453 | |
|
|
14454 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
14455 | |
|
|
14456 | # Shell to use when invoking shell scripts. |
|
|
14457 | SHELL=$lt_SHELL |
|
|
14458 | |
|
|
14459 | # Whether or not to build shared libraries. |
|
|
14460 | build_libtool_libs=$enable_shared |
|
|
14461 | |
|
|
14462 | # Whether or not to build static libraries. |
|
|
14463 | build_old_libs=$enable_static |
|
|
14464 | |
|
|
14465 | # Whether or not to add -lc for building shared libraries. |
|
|
14466 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
|
|
14467 | |
|
|
14468 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
14469 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
|
|
14470 | |
|
|
14471 | # Whether or not to optimize for fast installation. |
|
|
14472 | fast_install=$enable_fast_install |
|
|
14473 | |
|
|
14474 | # The host system. |
|
|
14475 | host_alias=$host_alias |
|
|
14476 | host=$host |
|
|
14477 | host_os=$host_os |
|
|
14478 | |
|
|
14479 | # The build system. |
|
|
14480 | build_alias=$build_alias |
|
|
14481 | build=$build |
|
|
14482 | build_os=$build_os |
|
|
14483 | |
|
|
14484 | # An echo program that does not interpret backslashes. |
|
|
14485 | echo=$lt_echo |
|
|
14486 | |
|
|
14487 | # The archiver. |
|
|
14488 | AR=$lt_AR |
|
|
14489 | AR_FLAGS=$lt_AR_FLAGS |
|
|
14490 | |
|
|
14491 | # A C compiler. |
|
|
14492 | LTCC=$lt_LTCC |
|
|
14493 | |
|
|
14494 | # LTCC compiler flags. |
|
|
14495 | LTCFLAGS=$lt_LTCFLAGS |
|
|
14496 | |
|
|
14497 | # A language-specific compiler. |
|
|
14498 | CC=$lt_compiler_F77 |
|
|
14499 | |
|
|
14500 | # Is the compiler the GNU C compiler? |
|
|
14501 | with_gcc=$GCC_F77 |
|
|
14502 | |
|
|
14503 | # An ERE matcher. |
|
|
14504 | EGREP=$lt_EGREP |
|
|
14505 | |
|
|
14506 | # The linker used to build libraries. |
|
|
14507 | LD=$lt_LD_F77 |
|
|
14508 | |
|
|
14509 | # Whether we need hard or soft links. |
|
|
14510 | LN_S=$lt_LN_S |
|
|
14511 | |
|
|
14512 | # A BSD-compatible nm program. |
|
|
14513 | NM=$lt_NM |
|
|
14514 | |
|
|
14515 | # A symbol stripping program |
|
|
14516 | STRIP=$lt_STRIP |
|
|
14517 | |
|
|
14518 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
14519 | MAGIC_CMD=$MAGIC_CMD |
|
|
14520 | |
|
|
14521 | # Used on cygwin: DLL creation program. |
|
|
14522 | DLLTOOL="$DLLTOOL" |
|
|
14523 | |
|
|
14524 | # Used on cygwin: object dumper. |
|
|
14525 | OBJDUMP="$OBJDUMP" |
|
|
14526 | |
|
|
14527 | # Used on cygwin: assembler. |
|
|
14528 | AS="$AS" |
|
|
14529 | |
|
|
14530 | # The name of the directory that contains temporary libtool files. |
|
|
14531 | objdir=$objdir |
|
|
14532 | |
|
|
14533 | # How to create reloadable object files. |
|
|
14534 | reload_flag=$lt_reload_flag |
|
|
14535 | reload_cmds=$lt_reload_cmds |
|
|
14536 | |
|
|
14537 | # How to pass a linker flag through the compiler. |
|
|
14538 | wl=$lt_lt_prog_compiler_wl_F77 |
|
|
14539 | |
|
|
14540 | # Object file suffix (normally "o"). |
|
|
14541 | objext="$ac_objext" |
|
|
14542 | |
|
|
14543 | # Old archive suffix (normally "a"). |
|
|
14544 | libext="$libext" |
|
|
14545 | |
|
|
14546 | # Shared library suffix (normally ".so"). |
|
|
14547 | shrext_cmds='$shrext_cmds' |
|
|
14548 | |
|
|
14549 | # Executable file suffix (normally ""). |
|
|
14550 | exeext="$exeext" |
|
|
14551 | |
|
|
14552 | # Additional compiler flags for building library objects. |
|
|
14553 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
|
|
14554 | pic_mode=$pic_mode |
|
|
14555 | |
|
|
14556 | # What is the maximum length of a command? |
|
|
14557 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
14558 | |
|
|
14559 | # Does compiler simultaneously support -c and -o options? |
|
|
14560 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
|
|
14561 | |
|
|
14562 | # Must we lock files when doing compilation? |
|
|
14563 | need_locks=$lt_need_locks |
|
|
14564 | |
|
|
14565 | # Do we need the lib prefix for modules? |
|
|
14566 | need_lib_prefix=$need_lib_prefix |
|
|
14567 | |
|
|
14568 | # Do we need a version for libraries? |
|
|
14569 | need_version=$need_version |
|
|
14570 | |
|
|
14571 | # Whether dlopen is supported. |
|
|
14572 | dlopen_support=$enable_dlopen |
|
|
14573 | |
|
|
14574 | # Whether dlopen of programs is supported. |
|
|
14575 | dlopen_self=$enable_dlopen_self |
|
|
14576 | |
|
|
14577 | # Whether dlopen of statically linked programs is supported. |
|
|
14578 | dlopen_self_static=$enable_dlopen_self_static |
|
|
14579 | |
|
|
14580 | # Compiler flag to prevent dynamic linking. |
|
|
14581 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
|
|
14582 | |
|
|
14583 | # Compiler flag to turn off builtin functions. |
|
|
14584 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
|
|
14585 | |
|
|
14586 | # Compiler flag to allow reflexive dlopens. |
|
|
14587 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
|
|
14588 | |
|
|
14589 | # Compiler flag to generate shared objects directly from archives. |
|
|
14590 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
|
|
14591 | |
|
|
14592 | # Compiler flag to generate thread-safe objects. |
|
|
14593 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
|
|
14594 | |
|
|
14595 | # Library versioning type. |
|
|
14596 | version_type=$version_type |
|
|
14597 | |
|
|
14598 | # Format of library name prefix. |
|
|
14599 | libname_spec=$lt_libname_spec |
|
|
14600 | |
|
|
14601 | # List of archive names. First name is the real one, the rest are links. |
|
|
14602 | # The last name is the one that the linker finds with -lNAME. |
|
|
14603 | library_names_spec=$lt_library_names_spec |
|
|
14604 | |
|
|
14605 | # The coded name of the library, if different from the real name. |
|
|
14606 | soname_spec=$lt_soname_spec |
|
|
14607 | |
|
|
14608 | # Commands used to build and install an old-style archive. |
|
|
14609 | RANLIB=$lt_RANLIB |
|
|
14610 | old_archive_cmds=$lt_old_archive_cmds_F77 |
|
|
14611 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
14612 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
14613 | |
|
|
14614 | # Create an old-style archive from a shared archive. |
|
|
14615 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
|
|
14616 | |
|
|
14617 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
14618 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
|
|
14619 | |
|
|
14620 | # Commands used to build and install a shared archive. |
|
|
14621 | archive_cmds=$lt_archive_cmds_F77 |
|
|
14622 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
|
|
14623 | postinstall_cmds=$lt_postinstall_cmds |
|
|
14624 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
14625 | |
|
|
14626 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
14627 | module_cmds=$lt_module_cmds_F77 |
|
|
14628 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
|
|
14629 | |
|
|
14630 | # Commands to strip libraries. |
|
|
14631 | old_striplib=$lt_old_striplib |
|
|
14632 | striplib=$lt_striplib |
|
|
14633 | |
|
|
14634 | # Dependencies to place before the objects being linked to create a |
|
|
14635 | # shared library. |
|
|
14636 | predep_objects=$lt_predep_objects_F77 |
|
|
14637 | |
|
|
14638 | # Dependencies to place after the objects being linked to create a |
|
|
14639 | # shared library. |
|
|
14640 | postdep_objects=$lt_postdep_objects_F77 |
|
|
14641 | |
|
|
14642 | # Dependencies to place before the objects being linked to create a |
|
|
14643 | # shared library. |
|
|
14644 | predeps=$lt_predeps_F77 |
|
|
14645 | |
|
|
14646 | # Dependencies to place after the objects being linked to create a |
|
|
14647 | # shared library. |
|
|
14648 | postdeps=$lt_postdeps_F77 |
|
|
14649 | |
|
|
14650 | # The library search path used internally by the compiler when linking |
|
|
14651 | # a shared library. |
|
|
14652 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
|
|
14653 | |
|
|
14654 | # Method to check whether dependent libraries are shared objects. |
|
|
14655 | deplibs_check_method=$lt_deplibs_check_method |
|
|
14656 | |
|
|
14657 | # Command to use when deplibs_check_method == file_magic. |
|
|
14658 | file_magic_cmd=$lt_file_magic_cmd |
|
|
14659 | |
|
|
14660 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
14661 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
|
|
14662 | |
|
|
14663 | # Flag that forces no undefined symbols. |
|
|
14664 | no_undefined_flag=$lt_no_undefined_flag_F77 |
|
|
14665 | |
|
|
14666 | # Commands used to finish a libtool library installation in a directory. |
|
|
14667 | finish_cmds=$lt_finish_cmds |
|
|
14668 | |
|
|
14669 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
14670 | finish_eval=$lt_finish_eval |
|
|
14671 | |
|
|
14672 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
14673 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
14674 | |
|
|
14675 | # Transform the output of nm in a proper C declaration |
|
|
14676 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
14677 | |
|
|
14678 | # Transform the output of nm in a C name address pair |
|
|
14679 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
14680 | |
|
|
14681 | # This is the shared library runtime path variable. |
|
|
14682 | runpath_var=$runpath_var |
|
|
14683 | |
|
|
14684 | # This is the shared library path variable. |
|
|
14685 | shlibpath_var=$shlibpath_var |
|
|
14686 | |
|
|
14687 | # Is shlibpath searched before the hard-coded library search path? |
|
|
14688 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
14689 | |
|
|
14690 | # How to hardcode a shared library path into an executable. |
|
|
14691 | hardcode_action=$hardcode_action_F77 |
|
|
14692 | |
|
|
14693 | # Whether we should hardcode library paths into libraries. |
|
|
14694 | hardcode_into_libs=$hardcode_into_libs |
|
|
14695 | |
|
|
14696 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
14697 | # This must work even if \$libdir does not exist. |
|
|
14698 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
|
|
14699 | |
|
|
14700 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
14701 | # a binary during linking. This must work even if \$libdir does |
|
|
14702 | # not exist. |
|
|
14703 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
|
|
14704 | |
|
|
14705 | # Whether we need a single -rpath flag with a separated argument. |
|
|
14706 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
|
|
14707 | |
|
|
14708 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
14709 | # resulting binary. |
|
|
14710 | hardcode_direct=$hardcode_direct_F77 |
|
|
14711 | |
|
|
14712 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
14713 | # resulting binary. |
|
|
14714 | hardcode_minus_L=$hardcode_minus_L_F77 |
|
|
14715 | |
|
|
14716 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
14717 | # the resulting binary. |
|
|
14718 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
|
|
14719 | |
|
|
14720 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
14721 | # and all subsequent libraries and executables linked against it. |
|
|
14722 | hardcode_automatic=$hardcode_automatic_F77 |
|
|
14723 | |
|
|
14724 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
14725 | # restored at relink time. |
|
|
14726 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
14727 | |
|
|
14728 | # Whether libtool must link a program against all its dependency libraries. |
|
|
14729 | link_all_deplibs=$link_all_deplibs_F77 |
|
|
14730 | |
|
|
14731 | # Compile-time system search path for libraries |
|
|
14732 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
14733 | |
|
|
14734 | # Run-time system search path for libraries |
|
|
14735 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
14736 | |
|
|
14737 | # Fix the shell variable \$srcfile for the compiler. |
|
|
14738 | fix_srcfile_path="$fix_srcfile_path_F77" |
|
|
14739 | |
|
|
14740 | # Set to yes if exported symbols are required. |
|
|
14741 | always_export_symbols=$always_export_symbols_F77 |
|
|
14742 | |
|
|
14743 | # The commands to list exported symbols. |
|
|
14744 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
|
|
14745 | |
|
|
14746 | # The commands to extract the exported symbol list from a shared archive. |
|
|
14747 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
14748 | |
|
|
14749 | # Symbols that should not be listed in the preloaded symbols. |
|
|
14750 | exclude_expsyms=$lt_exclude_expsyms_F77 |
|
|
14751 | |
|
|
14752 | # Symbols that must always be exported. |
|
|
14753 | include_expsyms=$lt_include_expsyms_F77 |
|
|
14754 | |
|
|
14755 | # ### END LIBTOOL TAG CONFIG: $tagname |
|
|
14756 | |
|
|
14757 | __EOF__ |
|
|
14758 | |
|
|
14759 | |
|
|
14760 | else |
|
|
14761 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
14762 | # `config.status --recheck' to rerun these tests and create the |
|
|
14763 | # libtool script then. |
|
|
14764 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
14765 | if test -f "$ltmain_in"; then |
|
|
14766 | test -f Makefile && make "$ltmain" |
|
|
14767 | fi |
|
|
14768 | fi |
|
|
14769 | |
|
|
14770 | |
|
|
14771 | ac_ext=c |
|
|
14772 | ac_cpp='$CPP $CPPFLAGS' |
|
|
14773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
14774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
14775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
14776 | |
|
|
14777 | CC="$lt_save_CC" |
|
|
14778 | |
|
|
14779 | else |
|
|
14780 | tagname="" |
|
|
14781 | fi |
|
|
14782 | ;; |
|
|
14783 | |
|
|
14784 | GCJ) |
|
|
14785 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
|
|
14786 | |
|
|
14787 | |
|
|
14788 | |
|
|
14789 | # Source file extension for Java test sources. |
|
|
14790 | ac_ext=java |
|
|
14791 | |
|
|
14792 | # Object file extension for compiled Java test sources. |
|
|
14793 | objext=o |
|
|
14794 | objext_GCJ=$objext |
|
|
14795 | |
|
|
14796 | # Code to be used in simple compile tests |
|
|
14797 | lt_simple_compile_test_code="class foo {}\n" |
|
|
14798 | |
|
|
14799 | # Code to be used in simple link tests |
|
|
14800 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
|
|
14801 | |
|
|
14802 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
14803 | |
|
|
14804 | # If no C compiler was specified, use CC. |
|
|
14805 | LTCC=${LTCC-"$CC"} |
|
|
14806 | |
|
|
14807 | # If no C compiler flags were specified, use CFLAGS. |
|
|
14808 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
14809 | |
|
|
14810 | # Allow CC to be a program name with arguments. |
|
|
14811 | compiler=$CC |
|
|
14812 | |
|
|
14813 | |
|
|
14814 | # save warnings/boilerplate of simple test code |
|
|
14815 | ac_outfile=conftest.$ac_objext |
|
|
14816 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
14817 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
14818 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
14819 | $rm conftest* |
|
|
14820 | |
|
|
14821 | ac_outfile=conftest.$ac_objext |
|
|
14822 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
14823 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
14824 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
14825 | $rm conftest* |
|
|
14826 | |
|
|
14827 | |
|
|
14828 | # Allow CC to be a program name with arguments. |
|
|
14829 | lt_save_CC="$CC" |
|
|
14830 | CC=${GCJ-"gcj"} |
|
|
14831 | compiler=$CC |
|
|
14832 | compiler_GCJ=$CC |
|
|
14833 | for cc_temp in $compiler""; do |
|
|
14834 | case $cc_temp in |
|
|
14835 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
14836 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
14837 | \-*) ;; |
|
|
14838 | *) break;; |
|
|
14839 | esac |
2535 | done |
14840 | done |
|
|
14841 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
14842 | |
|
|
14843 | |
|
|
14844 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
|
|
14845 | archive_cmds_need_lc_GCJ=no |
|
|
14846 | |
|
|
14847 | old_archive_cmds_GCJ=$old_archive_cmds |
|
|
14848 | |
|
|
14849 | |
|
|
14850 | lt_prog_compiler_no_builtin_flag_GCJ= |
|
|
14851 | |
|
|
14852 | if test "$GCC" = yes; then |
|
|
14853 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
|
|
14854 | |
|
|
14855 | |
|
|
14856 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
|
14857 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
|
14858 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
|
|
14859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
14860 | else |
|
|
14861 | lt_cv_prog_compiler_rtti_exceptions=no |
|
|
14862 | ac_outfile=conftest.$ac_objext |
|
|
14863 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
14864 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
|
14865 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
14866 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
14867 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
14868 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
14869 | # The option is referenced via a variable to avoid confusing sed. |
|
|
14870 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
14871 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
14872 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
14873 | -e 's:$: $lt_compiler_flag:'` |
|
|
14874 | (eval echo "\"\$as_me:14874: $lt_compile\"" >&5) |
|
|
14875 | (eval "$lt_compile" 2>conftest.err) |
|
|
14876 | ac_status=$? |
|
|
14877 | cat conftest.err >&5 |
|
|
14878 | echo "$as_me:14878: \$? = $ac_status" >&5 |
|
|
14879 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
14880 | # The compiler can only warn and ignore the option if not recognized |
|
|
14881 | # So say no if there are warnings other than the usual output. |
|
|
14882 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
14883 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
14884 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
|
14885 | lt_cv_prog_compiler_rtti_exceptions=yes |
|
|
14886 | fi |
|
|
14887 | fi |
|
|
14888 | $rm conftest* |
|
|
14889 | |
|
|
14890 | fi |
|
|
14891 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
|
14892 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
|
|
14893 | |
|
|
14894 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
|
14895 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
|
|
14896 | else |
|
|
14897 | : |
|
|
14898 | fi |
|
|
14899 | |
|
|
14900 | fi |
|
|
14901 | |
|
|
14902 | lt_prog_compiler_wl_GCJ= |
|
|
14903 | lt_prog_compiler_pic_GCJ= |
|
|
14904 | lt_prog_compiler_static_GCJ= |
|
|
14905 | |
|
|
14906 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
14907 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
14908 | |
|
|
14909 | if test "$GCC" = yes; then |
|
|
14910 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
14911 | lt_prog_compiler_static_GCJ='-static' |
|
|
14912 | |
|
|
14913 | case $host_os in |
|
|
14914 | aix*) |
|
|
14915 | # All AIX code is PIC. |
|
|
14916 | if test "$host_cpu" = ia64; then |
|
|
14917 | # AIX 5 now supports IA64 processor |
|
|
14918 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
14919 | fi |
|
|
14920 | ;; |
|
|
14921 | |
|
|
14922 | amigaos*) |
|
|
14923 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
14924 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
14925 | # like `-m68040'. |
|
|
14926 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
|
|
14927 | ;; |
|
|
14928 | |
|
|
14929 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
14930 | # PIC is the default for these OSes. |
|
|
14931 | ;; |
|
|
14932 | |
|
|
14933 | mingw* | pw32* | os2*) |
|
|
14934 | # This hack is so that the source file can tell whether it is being |
|
|
14935 | # built for inclusion in a dll (and should export symbols for example). |
|
|
14936 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
|
|
14937 | ;; |
|
|
14938 | |
|
|
14939 | darwin* | rhapsody*) |
|
|
14940 | # PIC is the default on this platform |
|
|
14941 | # Common symbols not allowed in MH_DYLIB files |
|
|
14942 | lt_prog_compiler_pic_GCJ='-fno-common' |
|
|
14943 | ;; |
|
|
14944 | |
|
|
14945 | interix3*) |
|
|
14946 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
|
14947 | # Instead, we relocate shared libraries at runtime. |
|
|
14948 | ;; |
|
|
14949 | |
|
|
14950 | msdosdjgpp*) |
|
|
14951 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
|
|
14952 | # on systems that don't support them. |
|
|
14953 | lt_prog_compiler_can_build_shared_GCJ=no |
|
|
14954 | enable_shared=no |
|
|
14955 | ;; |
|
|
14956 | |
|
|
14957 | sysv4*MP*) |
|
|
14958 | if test -d /usr/nec; then |
|
|
14959 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
|
|
14960 | fi |
|
|
14961 | ;; |
|
|
14962 | |
|
|
14963 | hpux*) |
|
|
14964 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
14965 | # not for PA HP-UX. |
|
|
14966 | case $host_cpu in |
|
|
14967 | hppa*64*|ia64*) |
|
|
14968 | # +Z the default |
|
|
14969 | ;; |
|
|
14970 | *) |
|
|
14971 | lt_prog_compiler_pic_GCJ='-fPIC' |
|
|
14972 | ;; |
|
|
14973 | esac |
|
|
14974 | ;; |
|
|
14975 | |
|
|
14976 | *) |
|
|
14977 | lt_prog_compiler_pic_GCJ='-fPIC' |
|
|
14978 | ;; |
|
|
14979 | esac |
|
|
14980 | else |
|
|
14981 | # PORTME Check for flag to pass linker flags through the system compiler. |
|
|
14982 | case $host_os in |
|
|
14983 | aix*) |
|
|
14984 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
14985 | if test "$host_cpu" = ia64; then |
|
|
14986 | # AIX 5 now supports IA64 processor |
|
|
14987 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
14988 | else |
|
|
14989 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
|
|
14990 | fi |
|
|
14991 | ;; |
|
|
14992 | darwin*) |
|
|
14993 | # PIC is the default on this platform |
|
|
14994 | # Common symbols not allowed in MH_DYLIB files |
|
|
14995 | case $cc_basename in |
|
|
14996 | xlc*) |
|
|
14997 | lt_prog_compiler_pic_GCJ='-qnocommon' |
|
|
14998 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
14999 | ;; |
|
|
15000 | esac |
|
|
15001 | ;; |
|
|
15002 | |
|
|
15003 | mingw* | pw32* | os2*) |
|
|
15004 | # This hack is so that the source file can tell whether it is being |
|
|
15005 | # built for inclusion in a dll (and should export symbols for example). |
|
|
15006 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
|
|
15007 | ;; |
|
|
15008 | |
|
|
15009 | hpux9* | hpux10* | hpux11*) |
|
|
15010 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15011 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
15012 | # not for PA HP-UX. |
|
|
15013 | case $host_cpu in |
|
|
15014 | hppa*64*|ia64*) |
|
|
15015 | # +Z the default |
|
|
15016 | ;; |
|
|
15017 | *) |
|
|
15018 | lt_prog_compiler_pic_GCJ='+Z' |
|
|
15019 | ;; |
|
|
15020 | esac |
|
|
15021 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
|
15022 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
|
|
15023 | ;; |
|
|
15024 | |
|
|
15025 | irix5* | irix6* | nonstopux*) |
|
|
15026 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15027 | # PIC (with -KPIC) is the default. |
|
|
15028 | lt_prog_compiler_static_GCJ='-non_shared' |
|
|
15029 | ;; |
|
|
15030 | |
|
|
15031 | newsos6) |
|
|
15032 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15033 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15034 | ;; |
|
|
15035 | |
|
|
15036 | linux*) |
|
|
15037 | case $cc_basename in |
|
|
15038 | icc* | ecc*) |
|
|
15039 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15040 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15041 | lt_prog_compiler_static_GCJ='-static' |
|
|
15042 | ;; |
|
|
15043 | pgcc* | pgf77* | pgf90* | pgf95*) |
|
|
15044 | # Portland Group compilers (*not* the Pentium gcc compiler, |
|
|
15045 | # which looks to be a dead project) |
|
|
15046 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15047 | lt_prog_compiler_pic_GCJ='-fpic' |
|
|
15048 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15049 | ;; |
|
|
15050 | ccc*) |
|
|
15051 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15052 | # All Alpha code is PIC. |
|
|
15053 | lt_prog_compiler_static_GCJ='-non_shared' |
|
|
15054 | ;; |
|
|
15055 | esac |
|
|
15056 | ;; |
|
|
15057 | |
|
|
15058 | osf3* | osf4* | osf5*) |
|
|
15059 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15060 | # All OSF/1 code is PIC. |
|
|
15061 | lt_prog_compiler_static_GCJ='-non_shared' |
|
|
15062 | ;; |
|
|
15063 | |
|
|
15064 | solaris*) |
|
|
15065 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15066 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15067 | case $cc_basename in |
|
|
15068 | f77* | f90* | f95*) |
|
|
15069 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
|
|
15070 | *) |
|
|
15071 | lt_prog_compiler_wl_GCJ='-Wl,';; |
|
|
15072 | esac |
|
|
15073 | ;; |
|
|
15074 | |
|
|
15075 | sunos4*) |
|
|
15076 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
|
|
15077 | lt_prog_compiler_pic_GCJ='-PIC' |
|
|
15078 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15079 | ;; |
|
|
15080 | |
|
|
15081 | sysv4 | sysv4.2uw2* | sysv4.3*) |
|
|
15082 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15083 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15084 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15085 | ;; |
|
|
15086 | |
|
|
15087 | sysv4*MP*) |
|
|
15088 | if test -d /usr/nec ;then |
|
|
15089 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
|
|
15090 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15091 | fi |
|
|
15092 | ;; |
|
|
15093 | |
|
|
15094 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
15095 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15096 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15097 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15098 | ;; |
|
|
15099 | |
|
|
15100 | unicos*) |
|
|
15101 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15102 | lt_prog_compiler_can_build_shared_GCJ=no |
|
|
15103 | ;; |
|
|
15104 | |
|
|
15105 | uts4*) |
|
|
15106 | lt_prog_compiler_pic_GCJ='-pic' |
|
|
15107 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15108 | ;; |
|
|
15109 | |
|
|
15110 | *) |
|
|
15111 | lt_prog_compiler_can_build_shared_GCJ=no |
|
|
15112 | ;; |
|
|
15113 | esac |
|
|
15114 | fi |
|
|
15115 | |
|
|
15116 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
|
|
15117 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
|
|
15118 | |
|
|
15119 | # |
|
|
15120 | # Check to make sure the PIC flag actually works. |
|
|
15121 | # |
|
|
15122 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
|
|
15123 | |
|
|
15124 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
|
|
15125 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
|
|
15126 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
|
|
15127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
15128 | else |
|
|
15129 | lt_prog_compiler_pic_works_GCJ=no |
|
|
15130 | ac_outfile=conftest.$ac_objext |
|
|
15131 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
15132 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
|
|
15133 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
15134 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
15135 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
15136 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
15137 | # The option is referenced via a variable to avoid confusing sed. |
|
|
15138 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
15139 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
15140 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
15141 | -e 's:$: $lt_compiler_flag:'` |
|
|
15142 | (eval echo "\"\$as_me:15142: $lt_compile\"" >&5) |
|
|
15143 | (eval "$lt_compile" 2>conftest.err) |
|
|
15144 | ac_status=$? |
|
|
15145 | cat conftest.err >&5 |
|
|
15146 | echo "$as_me:15146: \$? = $ac_status" >&5 |
|
|
15147 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
15148 | # The compiler can only warn and ignore the option if not recognized |
|
|
15149 | # So say no if there are warnings other than the usual output. |
|
|
15150 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
15151 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
15152 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
|
15153 | lt_prog_compiler_pic_works_GCJ=yes |
|
|
15154 | fi |
|
|
15155 | fi |
|
|
15156 | $rm conftest* |
|
|
15157 | |
|
|
15158 | fi |
|
|
15159 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
|
|
15160 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
|
|
15161 | |
|
|
15162 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
|
|
15163 | case $lt_prog_compiler_pic_GCJ in |
|
|
15164 | "" | " "*) ;; |
|
|
15165 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
|
|
15166 | esac |
|
|
15167 | else |
|
|
15168 | lt_prog_compiler_pic_GCJ= |
|
|
15169 | lt_prog_compiler_can_build_shared_GCJ=no |
|
|
15170 | fi |
|
|
15171 | |
|
|
15172 | fi |
|
|
15173 | case $host_os in |
|
|
15174 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
15175 | *djgpp*) |
|
|
15176 | lt_prog_compiler_pic_GCJ= |
|
|
15177 | ;; |
|
|
15178 | *) |
|
|
15179 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
|
|
15180 | ;; |
|
|
15181 | esac |
|
|
15182 | |
|
|
15183 | # |
|
|
15184 | # Check to make sure the static flag actually works. |
|
|
15185 | # |
|
|
15186 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
|
|
15187 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
|
15188 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
|
|
15189 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
|
|
15190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
15191 | else |
|
|
15192 | lt_prog_compiler_static_works_GCJ=no |
|
|
15193 | save_LDFLAGS="$LDFLAGS" |
|
|
15194 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
|
15195 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
15196 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
15197 | # The linker can only warn and ignore the option if not recognized |
|
|
15198 | # So say no if there are warnings |
|
|
15199 | if test -s conftest.err; then |
|
|
15200 | # Append any errors to the config.log. |
|
|
15201 | cat conftest.err 1>&5 |
|
|
15202 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
|
15203 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
15204 | if diff conftest.exp conftest.er2 >/dev/null; then |
|
|
15205 | lt_prog_compiler_static_works_GCJ=yes |
|
|
15206 | fi |
|
|
15207 | else |
|
|
15208 | lt_prog_compiler_static_works_GCJ=yes |
|
|
15209 | fi |
|
|
15210 | fi |
|
|
15211 | $rm conftest* |
|
|
15212 | LDFLAGS="$save_LDFLAGS" |
|
|
15213 | |
|
|
15214 | fi |
|
|
15215 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
|
|
15216 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 |
|
|
15217 | |
|
|
15218 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
|
|
15219 | : |
|
|
15220 | else |
|
|
15221 | lt_prog_compiler_static_GCJ= |
|
|
15222 | fi |
|
|
15223 | |
|
|
15224 | |
|
|
15225 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
15226 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
15227 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
|
|
15228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
15229 | else |
|
|
15230 | lt_cv_prog_compiler_c_o_GCJ=no |
|
|
15231 | $rm -r conftest 2>/dev/null |
|
|
15232 | mkdir conftest |
|
|
15233 | cd conftest |
|
|
15234 | mkdir out |
|
|
15235 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
15236 | |
|
|
15237 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
|
15238 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
15239 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
15240 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
15241 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
15242 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
15243 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
15244 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
15245 | -e 's:$: $lt_compiler_flag:'` |
|
|
15246 | (eval echo "\"\$as_me:15246: $lt_compile\"" >&5) |
|
|
15247 | (eval "$lt_compile" 2>out/conftest.err) |
|
|
15248 | ac_status=$? |
|
|
15249 | cat out/conftest.err >&5 |
|
|
15250 | echo "$as_me:15250: \$? = $ac_status" >&5 |
|
|
15251 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
|
15252 | then |
|
|
15253 | # The compiler can only warn and ignore the option if not recognized |
|
|
15254 | # So say no if there are warnings |
|
|
15255 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
15256 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
|
15257 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
|
15258 | lt_cv_prog_compiler_c_o_GCJ=yes |
|
|
15259 | fi |
|
|
15260 | fi |
|
|
15261 | chmod u+w . 2>&5 |
|
|
15262 | $rm conftest* |
|
|
15263 | # SGI C++ compiler will create directory out/ii_files/ for |
|
|
15264 | # template instantiation |
|
|
15265 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
|
15266 | $rm out/* && rmdir out |
|
|
15267 | cd .. |
|
|
15268 | rmdir conftest |
|
|
15269 | $rm conftest* |
|
|
15270 | |
|
|
15271 | fi |
|
|
15272 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
|
|
15273 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
|
|
15274 | |
|
|
15275 | |
|
|
15276 | hard_links="nottested" |
|
|
15277 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
|
|
15278 | # do not overwrite the value of need_locks provided by the user |
|
|
15279 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
15280 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
15281 | hard_links=yes |
|
|
15282 | $rm conftest* |
|
|
15283 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
15284 | touch conftest.a |
|
|
15285 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
15286 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
15287 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
15288 | echo "${ECHO_T}$hard_links" >&6 |
|
|
15289 | if test "$hard_links" = no; then |
|
|
15290 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
15291 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
15292 | need_locks=warn |
|
|
15293 | fi |
|
|
15294 | else |
|
|
15295 | need_locks=no |
|
|
15296 | fi |
|
|
15297 | |
|
|
15298 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
15299 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
15300 | |
|
|
15301 | runpath_var= |
|
|
15302 | allow_undefined_flag_GCJ= |
|
|
15303 | enable_shared_with_static_runtimes_GCJ=no |
|
|
15304 | archive_cmds_GCJ= |
|
|
15305 | archive_expsym_cmds_GCJ= |
|
|
15306 | old_archive_From_new_cmds_GCJ= |
|
|
15307 | old_archive_from_expsyms_cmds_GCJ= |
|
|
15308 | export_dynamic_flag_spec_GCJ= |
|
|
15309 | whole_archive_flag_spec_GCJ= |
|
|
15310 | thread_safe_flag_spec_GCJ= |
|
|
15311 | hardcode_libdir_flag_spec_GCJ= |
|
|
15312 | hardcode_libdir_flag_spec_ld_GCJ= |
|
|
15313 | hardcode_libdir_separator_GCJ= |
|
|
15314 | hardcode_direct_GCJ=no |
|
|
15315 | hardcode_minus_L_GCJ=no |
|
|
15316 | hardcode_shlibpath_var_GCJ=unsupported |
|
|
15317 | link_all_deplibs_GCJ=unknown |
|
|
15318 | hardcode_automatic_GCJ=no |
|
|
15319 | module_cmds_GCJ= |
|
|
15320 | module_expsym_cmds_GCJ= |
|
|
15321 | always_export_symbols_GCJ=no |
|
|
15322 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
15323 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
15324 | # included in the symbol list |
|
|
15325 | include_expsyms_GCJ= |
|
|
15326 | # exclude_expsyms can be an extended regexp of symbols to exclude |
|
|
15327 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
15328 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
15329 | # as well as any symbol that contains `d'. |
|
|
15330 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
|
|
15331 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
15332 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
15333 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
15334 | # rely on this symbol name, it's probably fine to never include it in |
|
|
15335 | # preloaded symbol tables. |
|
|
15336 | extract_expsyms_cmds= |
|
|
15337 | # Just being paranoid about ensuring that cc_basename is set. |
|
|
15338 | for cc_temp in $compiler""; do |
|
|
15339 | case $cc_temp in |
|
|
15340 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
15341 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
15342 | \-*) ;; |
|
|
15343 | *) break;; |
|
|
15344 | esac |
|
|
15345 | done |
|
|
15346 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
15347 | |
|
|
15348 | case $host_os in |
|
|
15349 | cygwin* | mingw* | pw32*) |
|
|
15350 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
15351 | # When not using gcc, we currently assume that we are using |
|
|
15352 | # Microsoft Visual C++. |
|
|
15353 | if test "$GCC" != yes; then |
|
|
15354 | with_gnu_ld=no |
|
|
15355 | fi |
|
|
15356 | ;; |
|
|
15357 | interix*) |
|
|
15358 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
|
15359 | with_gnu_ld=yes |
|
|
15360 | ;; |
|
|
15361 | openbsd*) |
|
|
15362 | with_gnu_ld=no |
|
|
15363 | ;; |
|
|
15364 | esac |
|
|
15365 | |
|
|
15366 | ld_shlibs_GCJ=yes |
|
|
15367 | if test "$with_gnu_ld" = yes; then |
|
|
15368 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
15369 | wlarc='${wl}' |
|
|
15370 | |
|
|
15371 | # Set some defaults for GNU ld with shared library support. These |
|
|
15372 | # are reset later if shared libraries are not supported. Putting them |
|
|
15373 | # here allows them to be overridden if necessary. |
|
|
15374 | runpath_var=LD_RUN_PATH |
|
|
15375 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
|
|
15376 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
|
|
15377 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
15378 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
15379 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
15380 | else |
|
|
15381 | whole_archive_flag_spec_GCJ= |
|
|
15382 | fi |
|
|
15383 | supports_anon_versioning=no |
|
|
15384 | case `$LD -v 2>/dev/null` in |
|
|
15385 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
15386 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
15387 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
15388 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
15389 | *) supports_anon_versioning=yes ;; |
|
|
15390 | esac |
|
|
15391 | |
|
|
15392 | # See if GNU ld supports shared libraries. |
|
|
15393 | case $host_os in |
|
|
15394 | aix3* | aix4* | aix5*) |
|
|
15395 | # On AIX/PPC, the GNU linker is very broken |
|
|
15396 | if test "$host_cpu" != ia64; then |
|
|
15397 | ld_shlibs_GCJ=no |
|
|
15398 | cat <<EOF 1>&2 |
|
|
15399 | |
|
|
15400 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
15401 | *** to be unable to reliably create shared libraries on AIX. |
|
|
15402 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
15403 | *** really care for shared libraries, you may want to modify your PATH |
|
|
15404 | *** so that a non-GNU linker is found, and then restart. |
|
|
15405 | |
|
|
15406 | EOF |
|
|
15407 | fi |
|
|
15408 | ;; |
|
|
15409 | |
|
|
15410 | amigaos*) |
|
|
15411 | 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)' |
|
|
15412 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15413 | hardcode_minus_L_GCJ=yes |
|
|
15414 | |
|
|
15415 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
15416 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
15417 | # to version 4, is to share data among multiple programs linked |
|
|
15418 | # with the same dynamic library. Since this doesn't match the |
|
|
15419 | # behavior of shared libraries on other platforms, we can't use |
|
|
15420 | # them. |
|
|
15421 | ld_shlibs_GCJ=no |
|
|
15422 | ;; |
|
|
15423 | |
|
|
15424 | beos*) |
|
|
15425 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15426 | allow_undefined_flag_GCJ=unsupported |
|
|
15427 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
15428 | # support --undefined. This deserves some investigation. FIXME |
|
|
15429 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15430 | else |
|
|
15431 | ld_shlibs_GCJ=no |
|
|
15432 | fi |
|
|
15433 | ;; |
|
|
15434 | |
|
|
15435 | cygwin* | mingw* | pw32*) |
|
|
15436 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
|
|
15437 | # as there is no search path for DLLs. |
|
|
15438 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15439 | allow_undefined_flag_GCJ=unsupported |
|
|
15440 | always_export_symbols_GCJ=no |
|
|
15441 | enable_shared_with_static_runtimes_GCJ=yes |
|
|
15442 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
15443 | |
|
|
15444 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
|
15445 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
15446 | # If the export-symbols file already is a .def file (1st line |
|
|
15447 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
15448 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
15449 | cp $export_symbols $output_objdir/$soname.def; |
|
|
15450 | else |
|
|
15451 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
15452 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
15453 | fi~ |
|
|
15454 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
15455 | else |
|
|
15456 | ld_shlibs_GCJ=no |
|
|
15457 | fi |
|
|
15458 | ;; |
|
|
15459 | |
|
|
15460 | interix3*) |
|
|
15461 | hardcode_direct_GCJ=no |
|
|
15462 | hardcode_shlibpath_var_GCJ=no |
|
|
15463 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
|
15464 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
15465 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
|
15466 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
|
15467 | # default) and relocated if they conflict, which is a slow very memory |
|
|
15468 | # consuming and fragmenting process. To avoid this, we pick a random, |
|
|
15469 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
|
15470 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
|
15471 | 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' |
|
|
15472 | 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' |
|
|
15473 | ;; |
|
|
15474 | |
|
|
15475 | linux*) |
|
|
15476 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15477 | tmp_addflag= |
|
|
15478 | case $cc_basename,$host_cpu in |
|
|
15479 | pgcc*) # Portland Group C compiler |
|
|
15480 | 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' |
|
|
15481 | tmp_addflag=' $pic_flag' |
|
|
15482 | ;; |
|
|
15483 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
|
15484 | 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' |
|
|
15485 | tmp_addflag=' $pic_flag -Mnomain' ;; |
|
|
15486 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
|
15487 | tmp_addflag=' -i_dynamic' ;; |
|
|
15488 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
|
15489 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
|
15490 | ifc* | ifort*) # Intel Fortran compiler |
|
|
15491 | tmp_addflag=' -nofor_main' ;; |
|
|
15492 | esac |
|
|
15493 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15494 | |
|
|
15495 | if test $supports_anon_versioning = yes; then |
|
|
15496 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
15497 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
15498 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
15499 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
15500 | fi |
|
|
15501 | link_all_deplibs_GCJ=no |
|
|
15502 | else |
|
|
15503 | ld_shlibs_GCJ=no |
|
|
15504 | fi |
|
|
15505 | ;; |
|
|
15506 | |
|
|
15507 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
15508 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
15509 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
15510 | wlarc= |
|
|
15511 | else |
|
|
15512 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15513 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
15514 | fi |
|
|
15515 | ;; |
|
|
15516 | |
|
|
15517 | solaris*) |
|
|
15518 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
|
15519 | ld_shlibs_GCJ=no |
|
|
15520 | cat <<EOF 1>&2 |
|
|
15521 | |
|
|
15522 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
15523 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
15524 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
15525 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
15526 | *** your PATH or compiler configuration so that the native linker is |
|
|
15527 | *** used, and then restart. |
|
|
15528 | |
|
|
15529 | EOF |
|
|
15530 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15531 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15532 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
15533 | else |
|
|
15534 | ld_shlibs_GCJ=no |
|
|
15535 | fi |
|
|
15536 | ;; |
|
|
15537 | |
|
|
15538 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
|
15539 | case `$LD -v 2>&1` in |
|
|
15540 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
|
15541 | ld_shlibs_GCJ=no |
|
|
15542 | cat <<_LT_EOF 1>&2 |
|
|
15543 | |
|
|
15544 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
|
15545 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
|
15546 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
15547 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
|
15548 | *** your PATH or compiler configuration so that the native linker is |
|
|
15549 | *** used, and then restart. |
|
|
15550 | |
|
|
15551 | _LT_EOF |
|
|
15552 | ;; |
|
|
15553 | *) |
|
|
15554 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15555 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
|
15556 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
|
15557 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
|
15558 | else |
|
|
15559 | ld_shlibs_GCJ=no |
|
|
15560 | fi |
|
|
15561 | ;; |
|
|
15562 | esac |
|
|
15563 | ;; |
|
|
15564 | |
|
|
15565 | sunos4*) |
|
|
15566 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
15567 | wlarc= |
|
|
15568 | hardcode_direct_GCJ=yes |
|
|
15569 | hardcode_shlibpath_var_GCJ=no |
|
|
15570 | ;; |
|
|
15571 | |
|
|
15572 | *) |
|
|
15573 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15574 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15575 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
15576 | else |
|
|
15577 | ld_shlibs_GCJ=no |
|
|
15578 | fi |
|
|
15579 | ;; |
|
|
15580 | esac |
|
|
15581 | |
|
|
15582 | if test "$ld_shlibs_GCJ" = no; then |
|
|
15583 | runpath_var= |
|
|
15584 | hardcode_libdir_flag_spec_GCJ= |
|
|
15585 | export_dynamic_flag_spec_GCJ= |
|
|
15586 | whole_archive_flag_spec_GCJ= |
|
|
15587 | fi |
|
|
15588 | else |
|
|
15589 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
15590 | case $host_os in |
|
|
15591 | aix3*) |
|
|
15592 | allow_undefined_flag_GCJ=unsupported |
|
|
15593 | always_export_symbols_GCJ=yes |
|
|
15594 | 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' |
|
|
15595 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
15596 | # are no directories specified by -L. |
|
|
15597 | hardcode_minus_L_GCJ=yes |
|
|
15598 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
|
|
15599 | # Neither direct hardcoding nor static linking is supported with a |
|
|
15600 | # broken collect2. |
|
|
15601 | hardcode_direct_GCJ=unsupported |
|
|
15602 | fi |
|
|
15603 | ;; |
|
|
15604 | |
|
|
15605 | aix4* | aix5*) |
|
|
15606 | if test "$host_cpu" = ia64; then |
|
|
15607 | # On IA64, the linker does run time linking by default, so we don't |
|
|
15608 | # have to do anything special. |
|
|
15609 | aix_use_runtimelinking=no |
|
|
15610 | exp_sym_flag='-Bexport' |
|
|
15611 | no_entry_flag="" |
|
|
15612 | else |
|
|
15613 | # If we're using GNU nm, then we don't want the "-C" option. |
|
|
15614 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
|
15615 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
|
15616 | 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' |
|
|
15617 | else |
|
|
15618 | 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' |
|
|
15619 | fi |
|
|
15620 | aix_use_runtimelinking=no |
|
|
15621 | |
|
|
15622 | # Test if we are trying to use run time linking or normal |
|
|
15623 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
15624 | # need to do runtime linking. |
|
|
15625 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
15626 | for ld_flag in $LDFLAGS; do |
|
|
15627 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
|
15628 | aix_use_runtimelinking=yes |
|
|
15629 | break |
|
|
15630 | fi |
|
|
15631 | done |
|
|
15632 | ;; |
|
|
15633 | esac |
|
|
15634 | |
|
|
15635 | exp_sym_flag='-bexport' |
|
|
15636 | no_entry_flag='-bnoentry' |
|
|
15637 | fi |
|
|
15638 | |
|
|
15639 | # When large executables or shared objects are built, AIX ld can |
|
|
15640 | # have problems creating the table of contents. If linking a library |
|
|
15641 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
15642 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
15643 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
15644 | |
|
|
15645 | archive_cmds_GCJ='' |
|
|
15646 | hardcode_direct_GCJ=yes |
|
|
15647 | hardcode_libdir_separator_GCJ=':' |
|
|
15648 | link_all_deplibs_GCJ=yes |
|
|
15649 | |
|
|
15650 | if test "$GCC" = yes; then |
|
|
15651 | case $host_os in aix4.[012]|aix4.[012].*) |
|
|
15652 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
15653 | # below for broken collect2 doesn't work under 4.3+ |
|
|
15654 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
15655 | if test -f "$collect2name" && \ |
|
|
15656 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
15657 | then |
|
|
15658 | # We have reworked collect2 |
|
|
15659 | hardcode_direct_GCJ=yes |
|
|
15660 | else |
|
|
15661 | # We have old collect2 |
|
|
15662 | hardcode_direct_GCJ=unsupported |
|
|
15663 | # It fails to find uninstalled libraries when the uninstalled |
|
|
15664 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
15665 | # to unsupported forces relinking |
|
|
15666 | hardcode_minus_L_GCJ=yes |
|
|
15667 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15668 | hardcode_libdir_separator_GCJ= |
|
|
15669 | fi |
|
|
15670 | ;; |
|
|
15671 | esac |
|
|
15672 | shared_flag='-shared' |
|
|
15673 | if test "$aix_use_runtimelinking" = yes; then |
|
|
15674 | shared_flag="$shared_flag "'${wl}-G' |
|
|
15675 | fi |
|
|
15676 | else |
|
|
15677 | # not using gcc |
|
|
15678 | if test "$host_cpu" = ia64; then |
|
|
15679 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
15680 | # chokes on -Wl,-G. The following line is correct: |
|
|
15681 | shared_flag='-G' |
|
|
15682 | else |
|
|
15683 | if test "$aix_use_runtimelinking" = yes; then |
|
|
15684 | shared_flag='${wl}-G' |
|
|
15685 | else |
|
|
15686 | shared_flag='${wl}-bM:SRE' |
|
|
15687 | fi |
|
|
15688 | fi |
|
|
15689 | fi |
|
|
15690 | |
|
|
15691 | # It seems that -bexpall does not export symbols beginning with |
|
|
15692 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
15693 | always_export_symbols_GCJ=yes |
|
|
15694 | if test "$aix_use_runtimelinking" = yes; then |
|
|
15695 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
15696 | # -berok will link without error, but may produce a broken library. |
|
|
15697 | allow_undefined_flag_GCJ='-berok' |
|
|
15698 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
15699 | cat >conftest.$ac_ext <<_ACEOF |
|
|
15700 | /* confdefs.h. */ |
|
|
15701 | _ACEOF |
|
|
15702 | cat confdefs.h >>conftest.$ac_ext |
|
|
15703 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
15704 | /* end confdefs.h. */ |
|
|
15705 | |
|
|
15706 | int |
|
|
15707 | main () |
|
|
15708 | { |
|
|
15709 | |
|
|
15710 | ; |
|
|
15711 | return 0; |
|
|
15712 | } |
|
|
15713 | _ACEOF |
|
|
15714 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
15715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
15716 | (eval $ac_link) 2>conftest.er1 |
|
|
15717 | ac_status=$? |
|
|
15718 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
15719 | rm -f conftest.er1 |
|
|
15720 | cat conftest.err >&5 |
|
|
15721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15722 | (exit $ac_status); } && |
|
|
15723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
15724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
15725 | (eval $ac_try) 2>&5 |
|
|
15726 | ac_status=$? |
|
|
15727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15728 | (exit $ac_status); }; } && |
|
|
15729 | { ac_try='test -s conftest$ac_exeext' |
|
|
15730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
15731 | (eval $ac_try) 2>&5 |
|
|
15732 | ac_status=$? |
|
|
15733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15734 | (exit $ac_status); }; }; then |
|
|
15735 | |
|
|
15736 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
15737 | }'` |
|
|
15738 | # Check for a 64-bit object if we didn't find anything. |
|
|
15739 | 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; } |
|
|
15740 | }'`; fi |
|
|
15741 | else |
|
|
15742 | echo "$as_me: failed program was:" >&5 |
|
|
15743 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
15744 | |
|
|
15745 | fi |
|
|
15746 | rm -f conftest.err conftest.$ac_objext \ |
|
|
15747 | conftest$ac_exeext conftest.$ac_ext |
|
|
15748 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
15749 | |
|
|
15750 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
15751 | 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" |
|
|
15752 | else |
|
|
15753 | if test "$host_cpu" = ia64; then |
|
|
15754 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
|
|
15755 | allow_undefined_flag_GCJ="-z nodefs" |
|
|
15756 | 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" |
|
|
15757 | else |
|
|
15758 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
15759 | cat >conftest.$ac_ext <<_ACEOF |
|
|
15760 | /* confdefs.h. */ |
|
|
15761 | _ACEOF |
|
|
15762 | cat confdefs.h >>conftest.$ac_ext |
|
|
15763 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
15764 | /* end confdefs.h. */ |
|
|
15765 | |
|
|
15766 | int |
|
|
15767 | main () |
|
|
15768 | { |
|
|
15769 | |
|
|
15770 | ; |
|
|
15771 | return 0; |
|
|
15772 | } |
|
|
15773 | _ACEOF |
|
|
15774 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
15775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
15776 | (eval $ac_link) 2>conftest.er1 |
|
|
15777 | ac_status=$? |
|
|
15778 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
15779 | rm -f conftest.er1 |
|
|
15780 | cat conftest.err >&5 |
|
|
15781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15782 | (exit $ac_status); } && |
|
|
15783 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
15784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
15785 | (eval $ac_try) 2>&5 |
|
|
15786 | ac_status=$? |
|
|
15787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15788 | (exit $ac_status); }; } && |
|
|
15789 | { ac_try='test -s conftest$ac_exeext' |
|
|
15790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
15791 | (eval $ac_try) 2>&5 |
|
|
15792 | ac_status=$? |
|
|
15793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15794 | (exit $ac_status); }; }; then |
|
|
15795 | |
|
|
15796 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
15797 | }'` |
|
|
15798 | # Check for a 64-bit object if we didn't find anything. |
|
|
15799 | 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; } |
|
|
15800 | }'`; fi |
|
|
15801 | else |
|
|
15802 | echo "$as_me: failed program was:" >&5 |
|
|
15803 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
15804 | |
|
|
15805 | fi |
|
|
15806 | rm -f conftest.err conftest.$ac_objext \ |
|
|
15807 | conftest$ac_exeext conftest.$ac_ext |
|
|
15808 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
15809 | |
|
|
15810 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
15811 | # Warning - without using the other run time loading flags, |
|
|
15812 | # -berok will link without error, but may produce a broken library. |
|
|
15813 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
|
|
15814 | allow_undefined_flag_GCJ=' ${wl}-berok' |
|
|
15815 | # Exported symbols can be pulled into shared objects from archives |
|
|
15816 | whole_archive_flag_spec_GCJ='$convenience' |
|
|
15817 | archive_cmds_need_lc_GCJ=yes |
|
|
15818 | # This is similar to how AIX traditionally builds its shared libraries. |
|
|
15819 | 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' |
|
|
15820 | fi |
|
|
15821 | fi |
|
|
15822 | ;; |
|
|
15823 | |
|
|
15824 | amigaos*) |
|
|
15825 | 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)' |
|
|
15826 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15827 | hardcode_minus_L_GCJ=yes |
|
|
15828 | # see comment about different semantics on the GNU ld section |
|
|
15829 | ld_shlibs_GCJ=no |
|
|
15830 | ;; |
|
|
15831 | |
|
|
15832 | bsdi[45]*) |
|
|
15833 | export_dynamic_flag_spec_GCJ=-rdynamic |
|
|
15834 | ;; |
|
|
15835 | |
|
|
15836 | cygwin* | mingw* | pw32*) |
|
|
15837 | # When not using gcc, we currently assume that we are using |
|
|
15838 | # Microsoft Visual C++. |
|
|
15839 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
15840 | # no search path for DLLs. |
|
|
15841 | hardcode_libdir_flag_spec_GCJ=' ' |
|
|
15842 | allow_undefined_flag_GCJ=unsupported |
|
|
15843 | # Tell ltmain to make .lib files, not .a files. |
|
|
15844 | libext=lib |
|
|
15845 | # Tell ltmain to make .dll files, not .so files. |
|
|
15846 | shrext_cmds=".dll" |
|
|
15847 | # FIXME: Setting linknames here is a bad hack. |
|
|
15848 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
15849 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
15850 | old_archive_From_new_cmds_GCJ='true' |
|
|
15851 | # FIXME: Should let the user specify the lib program. |
|
|
15852 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
15853 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
|
|
15854 | enable_shared_with_static_runtimes_GCJ=yes |
|
|
15855 | ;; |
|
|
15856 | |
|
|
15857 | darwin* | rhapsody*) |
|
|
15858 | case $host_os in |
|
|
15859 | rhapsody* | darwin1.[012]) |
|
|
15860 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
|
|
15861 | ;; |
|
|
15862 | *) # Darwin 1.3 on |
|
|
15863 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
15864 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
15865 | else |
|
|
15866 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
15867 | 10.[012]) |
|
|
15868 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
15869 | ;; |
|
|
15870 | 10.*) |
|
|
15871 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
|
|
15872 | ;; |
|
|
15873 | esac |
|
|
15874 | fi |
|
|
15875 | ;; |
|
|
15876 | esac |
|
|
15877 | archive_cmds_need_lc_GCJ=no |
|
|
15878 | hardcode_direct_GCJ=no |
|
|
15879 | hardcode_automatic_GCJ=yes |
|
|
15880 | hardcode_shlibpath_var_GCJ=unsupported |
|
|
15881 | whole_archive_flag_spec_GCJ='' |
|
|
15882 | link_all_deplibs_GCJ=yes |
|
|
15883 | if test "$GCC" = yes ; then |
|
|
15884 | output_verbose_link_cmd='echo' |
|
|
15885 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
15886 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
15887 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
15888 | 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}' |
|
|
15889 | 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}' |
|
|
15890 | else |
|
|
15891 | case $cc_basename in |
|
|
15892 | xlc*) |
|
|
15893 | output_verbose_link_cmd='echo' |
|
|
15894 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
15895 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
15896 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
15897 | 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}' |
|
|
15898 | 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}' |
|
|
15899 | ;; |
|
|
15900 | *) |
|
|
15901 | ld_shlibs_GCJ=no |
|
|
15902 | ;; |
|
|
15903 | esac |
|
|
15904 | fi |
|
|
15905 | ;; |
|
|
15906 | |
|
|
15907 | dgux*) |
|
|
15908 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
15909 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15910 | hardcode_shlibpath_var_GCJ=no |
|
|
15911 | ;; |
|
|
15912 | |
|
|
15913 | freebsd1*) |
|
|
15914 | ld_shlibs_GCJ=no |
|
|
15915 | ;; |
|
|
15916 | |
|
|
15917 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
15918 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
15919 | # does not break anything, and helps significantly (at the cost of a little |
|
|
15920 | # extra space). |
|
|
15921 | freebsd2.2*) |
|
|
15922 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
15923 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
15924 | hardcode_direct_GCJ=yes |
|
|
15925 | hardcode_shlibpath_var_GCJ=no |
|
|
15926 | ;; |
|
|
15927 | |
|
|
15928 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
15929 | freebsd2*) |
|
|
15930 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
15931 | hardcode_direct_GCJ=yes |
|
|
15932 | hardcode_minus_L_GCJ=yes |
|
|
15933 | hardcode_shlibpath_var_GCJ=no |
|
|
15934 | ;; |
|
|
15935 | |
|
|
15936 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
15937 | freebsd* | dragonfly*) |
|
|
15938 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15939 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
15940 | hardcode_direct_GCJ=yes |
|
|
15941 | hardcode_shlibpath_var_GCJ=no |
|
|
15942 | ;; |
|
|
15943 | |
|
|
15944 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. |
|
|
15945 | kfreebsd*-gnu) |
|
|
15946 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15947 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
15948 | hardcode_direct_GCJ=yes |
|
|
15949 | hardcode_shlibpath_var_GCJ=no |
|
|
15950 | link_all_deplibs_GCJ=no |
|
|
15951 | ;; |
|
|
15952 | |
|
|
15953 | hpux9*) |
|
|
15954 | if test "$GCC" = yes; then |
|
|
15955 | 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' |
|
|
15956 | else |
|
|
15957 | 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' |
|
|
15958 | fi |
|
|
15959 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
|
15960 | hardcode_libdir_separator_GCJ=: |
|
|
15961 | hardcode_direct_GCJ=yes |
|
|
15962 | |
|
|
15963 | # hardcode_minus_L: Not really in the search PATH, |
|
|
15964 | # but as the default location of the library. |
|
|
15965 | hardcode_minus_L_GCJ=yes |
|
|
15966 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
15967 | ;; |
|
|
15968 | |
|
|
15969 | hpux10*) |
|
|
15970 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
15971 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15972 | else |
|
|
15973 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
|
15974 | fi |
|
|
15975 | if test "$with_gnu_ld" = no; then |
|
|
15976 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
|
15977 | hardcode_libdir_separator_GCJ=: |
|
|
15978 | |
|
|
15979 | hardcode_direct_GCJ=yes |
|
|
15980 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
15981 | |
|
|
15982 | # hardcode_minus_L: Not really in the search PATH, |
|
|
15983 | # but as the default location of the library. |
|
|
15984 | hardcode_minus_L_GCJ=yes |
|
|
15985 | fi |
|
|
15986 | ;; |
|
|
15987 | |
|
|
15988 | hpux11*) |
|
|
15989 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
15990 | case $host_cpu in |
|
|
15991 | hppa*64*) |
|
|
15992 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15993 | ;; |
|
|
15994 | ia64*) |
|
|
15995 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15996 | ;; |
|
|
15997 | *) |
|
|
15998 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15999 | ;; |
|
|
16000 | esac |
|
|
16001 | else |
|
|
16002 | case $host_cpu in |
|
|
16003 | hppa*64*) |
|
|
16004 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16005 | ;; |
|
|
16006 | ia64*) |
|
|
16007 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16008 | ;; |
|
|
16009 | *) |
|
|
16010 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16011 | ;; |
|
|
16012 | esac |
|
|
16013 | fi |
|
|
16014 | if test "$with_gnu_ld" = no; then |
|
|
16015 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
|
16016 | hardcode_libdir_separator_GCJ=: |
|
|
16017 | |
|
|
16018 | case $host_cpu in |
|
|
16019 | hppa*64*|ia64*) |
|
|
16020 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
|
|
16021 | hardcode_direct_GCJ=no |
|
|
16022 | hardcode_shlibpath_var_GCJ=no |
|
|
16023 | ;; |
|
|
16024 | *) |
|
|
16025 | hardcode_direct_GCJ=yes |
|
|
16026 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
16027 | |
|
|
16028 | # hardcode_minus_L: Not really in the search PATH, |
|
|
16029 | # but as the default location of the library. |
|
|
16030 | hardcode_minus_L_GCJ=yes |
|
|
16031 | ;; |
|
|
16032 | esac |
|
|
16033 | fi |
|
|
16034 | ;; |
|
|
16035 | |
|
|
16036 | irix5* | irix6* | nonstopux*) |
|
|
16037 | if test "$GCC" = yes; then |
|
|
16038 | 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' |
|
|
16039 | else |
|
|
16040 | 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' |
|
|
16041 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
|
|
16042 | fi |
|
|
16043 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
|
16044 | hardcode_libdir_separator_GCJ=: |
|
|
16045 | link_all_deplibs_GCJ=yes |
|
|
16046 | ;; |
|
|
16047 | |
|
|
16048 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
16049 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
16050 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
16051 | else |
|
|
16052 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
16053 | fi |
|
|
16054 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
16055 | hardcode_direct_GCJ=yes |
|
|
16056 | hardcode_shlibpath_var_GCJ=no |
|
|
16057 | ;; |
|
|
16058 | |
|
|
16059 | newsos6) |
|
|
16060 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16061 | hardcode_direct_GCJ=yes |
|
|
16062 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
|
16063 | hardcode_libdir_separator_GCJ=: |
|
|
16064 | hardcode_shlibpath_var_GCJ=no |
|
|
16065 | ;; |
|
|
16066 | |
|
|
16067 | openbsd*) |
|
|
16068 | hardcode_direct_GCJ=yes |
|
|
16069 | hardcode_shlibpath_var_GCJ=no |
|
|
16070 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
16071 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16072 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
|
16073 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
|
16074 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
16075 | else |
|
|
16076 | case $host_os in |
|
|
16077 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
|
16078 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
16079 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
16080 | ;; |
|
|
16081 | *) |
|
|
16082 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16083 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
|
16084 | ;; |
|
|
16085 | esac |
|
|
16086 | fi |
|
|
16087 | ;; |
|
|
16088 | |
|
|
16089 | os2*) |
|
|
16090 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
16091 | hardcode_minus_L_GCJ=yes |
|
|
16092 | allow_undefined_flag_GCJ=unsupported |
|
|
16093 | 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' |
|
|
16094 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
16095 | ;; |
|
|
16096 | |
|
|
16097 | osf3*) |
|
|
16098 | if test "$GCC" = yes; then |
|
|
16099 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
|
16100 | 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' |
|
|
16101 | else |
|
|
16102 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
|
16103 | 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' |
|
|
16104 | fi |
|
|
16105 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
|
16106 | hardcode_libdir_separator_GCJ=: |
|
|
16107 | ;; |
|
|
16108 | |
|
|
16109 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
16110 | if test "$GCC" = yes; then |
|
|
16111 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
|
16112 | 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' |
|
|
16113 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
|
16114 | else |
|
|
16115 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
|
16116 | 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' |
|
|
16117 | 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~ |
|
|
16118 | $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' |
|
|
16119 | |
|
|
16120 | # Both c and cxx compiler support -rpath directly |
|
|
16121 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
|
|
16122 | fi |
|
|
16123 | hardcode_libdir_separator_GCJ=: |
|
|
16124 | ;; |
|
|
16125 | |
|
|
16126 | solaris*) |
|
|
16127 | no_undefined_flag_GCJ=' -z text' |
|
|
16128 | if test "$GCC" = yes; then |
|
|
16129 | wlarc='${wl}' |
|
|
16130 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16131 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
16132 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
|
16133 | else |
|
|
16134 | wlarc='' |
|
|
16135 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16136 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
16137 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
16138 | fi |
|
|
16139 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
16140 | hardcode_shlibpath_var_GCJ=no |
|
|
16141 | case $host_os in |
|
|
16142 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
16143 | *) |
|
|
16144 | # The compiler driver will combine linker options so we |
|
|
16145 | # cannot just pass the convience library names through |
|
|
16146 | # without $wl, iff we do not link with $LD. |
|
|
16147 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
|
|
16148 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
16149 | case $wlarc in |
|
|
16150 | '') |
|
|
16151 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
|
|
16152 | *) |
|
|
16153 | 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' ;; |
|
|
16154 | esac ;; |
|
|
16155 | esac |
|
|
16156 | link_all_deplibs_GCJ=yes |
|
|
16157 | ;; |
|
|
16158 | |
|
|
16159 | sunos4*) |
|
|
16160 | if test "x$host_vendor" = xsequent; then |
|
|
16161 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
16162 | # files that make .init and .fini sections work. |
|
|
16163 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16164 | else |
|
|
16165 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
16166 | fi |
|
|
16167 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
16168 | hardcode_direct_GCJ=yes |
|
|
16169 | hardcode_minus_L_GCJ=yes |
|
|
16170 | hardcode_shlibpath_var_GCJ=no |
|
|
16171 | ;; |
|
|
16172 | |
|
|
16173 | sysv4) |
|
|
16174 | case $host_vendor in |
|
|
16175 | sni) |
|
|
16176 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16177 | hardcode_direct_GCJ=yes # is this really true??? |
|
|
16178 | ;; |
|
|
16179 | siemens) |
|
|
16180 | ## LD is ld it makes a PLAMLIB |
|
|
16181 | ## CC just makes a GrossModule. |
|
|
16182 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
16183 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
|
|
16184 | hardcode_direct_GCJ=no |
|
|
16185 | ;; |
|
|
16186 | motorola) |
|
|
16187 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16188 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
|
|
16189 | ;; |
|
|
16190 | esac |
|
|
16191 | runpath_var='LD_RUN_PATH' |
|
|
16192 | hardcode_shlibpath_var_GCJ=no |
|
|
16193 | ;; |
|
|
16194 | |
|
|
16195 | sysv4.3*) |
|
|
16196 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16197 | hardcode_shlibpath_var_GCJ=no |
|
|
16198 | export_dynamic_flag_spec_GCJ='-Bexport' |
|
|
16199 | ;; |
|
|
16200 | |
|
|
16201 | sysv4*MP*) |
|
|
16202 | if test -d /usr/nec; then |
|
|
16203 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16204 | hardcode_shlibpath_var_GCJ=no |
|
|
16205 | runpath_var=LD_RUN_PATH |
|
|
16206 | hardcode_runpath_var=yes |
|
|
16207 | ld_shlibs_GCJ=yes |
|
|
16208 | fi |
|
|
16209 | ;; |
|
|
16210 | |
|
|
16211 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
|
|
16212 | no_undefined_flag_GCJ='${wl}-z,text' |
|
|
16213 | archive_cmds_need_lc_GCJ=no |
|
|
16214 | hardcode_shlibpath_var_GCJ=no |
|
|
16215 | runpath_var='LD_RUN_PATH' |
|
|
16216 | |
|
|
16217 | if test "$GCC" = yes; then |
|
|
16218 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16219 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16220 | else |
|
|
16221 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16222 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16223 | fi |
|
|
16224 | ;; |
|
|
16225 | |
|
|
16226 | sysv5* | sco3.2v5* | sco5v6*) |
|
|
16227 | # Note: We can NOT use -z defs as we might desire, because we do not |
|
|
16228 | # link with -lc, and that would cause any symbols used from libc to |
|
|
16229 | # always be unresolved, which means just about no library would |
|
|
16230 | # ever link correctly. If we're not using GNU ld we use -z text |
|
|
16231 | # though, which does catch some bad symbols but isn't as heavy-handed |
|
|
16232 | # as -z defs. |
|
|
16233 | no_undefined_flag_GCJ='${wl}-z,text' |
|
|
16234 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
|
|
16235 | archive_cmds_need_lc_GCJ=no |
|
|
16236 | hardcode_shlibpath_var_GCJ=no |
|
|
16237 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
|
16238 | hardcode_libdir_separator_GCJ=':' |
|
|
16239 | link_all_deplibs_GCJ=yes |
|
|
16240 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
|
|
16241 | runpath_var='LD_RUN_PATH' |
|
|
16242 | |
|
|
16243 | if test "$GCC" = yes; then |
|
|
16244 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16245 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16246 | else |
|
|
16247 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16248 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16249 | fi |
|
|
16250 | ;; |
|
|
16251 | |
|
|
16252 | uts4*) |
|
|
16253 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16254 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
16255 | hardcode_shlibpath_var_GCJ=no |
|
|
16256 | ;; |
|
|
16257 | |
|
|
16258 | *) |
|
|
16259 | ld_shlibs_GCJ=no |
|
|
16260 | ;; |
|
|
16261 | esac |
|
|
16262 | fi |
|
|
16263 | |
|
|
16264 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
|
|
16265 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
|
|
16266 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
|
|
16267 | |
|
|
16268 | # |
|
|
16269 | # Do we need to explicitly link libc? |
|
|
16270 | # |
|
|
16271 | case "x$archive_cmds_need_lc_GCJ" in |
|
|
16272 | x|xyes) |
|
|
16273 | # Assume -lc should be added |
|
|
16274 | archive_cmds_need_lc_GCJ=yes |
|
|
16275 | |
|
|
16276 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
16277 | case $archive_cmds_GCJ in |
|
|
16278 | *'~'*) |
|
|
16279 | # FIXME: we may have to deal with multi-command sequences. |
|
|
16280 | ;; |
|
|
16281 | '$CC '*) |
|
|
16282 | # Test whether the compiler implicitly links with -lc since on some |
|
|
16283 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
16284 | # to ld, don't add -lc before -lgcc. |
|
|
16285 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
16286 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
16287 | $rm conftest* |
|
|
16288 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
16289 | |
|
|
16290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
16291 | (eval $ac_compile) 2>&5 |
|
|
16292 | ac_status=$? |
|
|
16293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16294 | (exit $ac_status); } 2>conftest.err; then |
|
|
16295 | soname=conftest |
|
|
16296 | lib=conftest |
|
|
16297 | libobjs=conftest.$ac_objext |
|
|
16298 | deplibs= |
|
|
16299 | wl=$lt_prog_compiler_wl_GCJ |
|
|
16300 | pic_flag=$lt_prog_compiler_pic_GCJ |
|
|
16301 | compiler_flags=-v |
|
|
16302 | linker_flags=-v |
|
|
16303 | verstring= |
|
|
16304 | output_objdir=. |
|
|
16305 | libname=conftest |
|
|
16306 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
|
|
16307 | allow_undefined_flag_GCJ= |
|
|
16308 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
16309 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
16310 | ac_status=$? |
|
|
16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16312 | (exit $ac_status); } |
|
|
16313 | then |
|
|
16314 | archive_cmds_need_lc_GCJ=no |
|
|
16315 | else |
|
|
16316 | archive_cmds_need_lc_GCJ=yes |
|
|
16317 | fi |
|
|
16318 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
|
|
16319 | else |
|
|
16320 | cat conftest.err 1>&5 |
|
|
16321 | fi |
|
|
16322 | $rm conftest* |
|
|
16323 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
|
|
16324 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
|
|
16325 | ;; |
|
|
16326 | esac |
|
|
16327 | fi |
|
|
16328 | ;; |
|
|
16329 | esac |
|
|
16330 | |
|
|
16331 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
16332 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
16333 | library_names_spec= |
|
|
16334 | libname_spec='lib$name' |
|
|
16335 | soname_spec= |
|
|
16336 | shrext_cmds=".so" |
|
|
16337 | postinstall_cmds= |
|
|
16338 | postuninstall_cmds= |
|
|
16339 | finish_cmds= |
|
|
16340 | finish_eval= |
|
|
16341 | shlibpath_var= |
|
|
16342 | shlibpath_overrides_runpath=unknown |
|
|
16343 | version_type=none |
|
|
16344 | dynamic_linker="$host_os ld.so" |
|
|
16345 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
16346 | if test "$GCC" = yes; then |
|
|
16347 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
16348 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
|
16349 | # if the path contains ";" then we assume it to be the separator |
|
|
16350 | # otherwise default to the standard path separator (i.e. ":") - it is |
|
|
16351 | # assumed that no part of a normal pathname contains ";" but that should |
|
|
16352 | # okay in the real world where ";" in dirpaths is itself problematic. |
|
|
16353 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
16354 | else |
|
|
16355 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
16356 | fi |
|
|
16357 | else |
|
|
16358 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
16359 | fi |
|
|
16360 | need_lib_prefix=unknown |
|
|
16361 | hardcode_into_libs=no |
|
|
16362 | |
|
|
16363 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
16364 | # flags to be left without arguments |
|
|
16365 | need_version=unknown |
|
|
16366 | |
|
|
16367 | case $host_os in |
|
|
16368 | aix3*) |
|
|
16369 | version_type=linux |
|
|
16370 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
|
16371 | shlibpath_var=LIBPATH |
|
|
16372 | |
|
|
16373 | # AIX 3 has no versioning support, so we append a major version to the name. |
|
|
16374 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16375 | ;; |
|
|
16376 | |
|
|
16377 | aix4* | aix5*) |
|
|
16378 | version_type=linux |
|
|
16379 | need_lib_prefix=no |
|
|
16380 | need_version=no |
|
|
16381 | hardcode_into_libs=yes |
|
|
16382 | if test "$host_cpu" = ia64; then |
|
|
16383 | # AIX 5 supports IA64 |
|
|
16384 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
|
16385 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16386 | else |
|
|
16387 | # With GCC up to 2.95.x, collect2 would create an import file |
|
|
16388 | # for dependence libraries. The import file would start with |
|
|
16389 | # the line `#! .'. This would cause the generated library to |
|
|
16390 | # depend on `.', always an invalid library. This was fixed in |
|
|
16391 | # development snapshots of GCC prior to 3.0. |
|
|
16392 | case $host_os in |
|
|
16393 | aix4 | aix4.[01] | aix4.[01].*) |
|
|
16394 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
16395 | echo ' yes ' |
|
|
16396 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
16397 | : |
|
|
16398 | else |
|
|
16399 | can_build_shared=no |
|
|
16400 | fi |
|
|
16401 | ;; |
|
|
16402 | esac |
|
|
16403 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
|
16404 | # soname into executable. Probably we can add versioning support to |
|
|
16405 | # collect2, so additional links can be useful in future. |
|
|
16406 | if test "$aix_use_runtimelinking" = yes; then |
|
|
16407 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
16408 | # instead of lib<name>.a to let people know that these are not |
|
|
16409 | # typical AIX shared libraries. |
|
|
16410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16411 | else |
|
|
16412 | # We preserve .a as extension for shared libraries through AIX4.2 |
|
|
16413 | # and later when we are not doing run time linking. |
|
|
16414 | library_names_spec='${libname}${release}.a $libname.a' |
|
|
16415 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16416 | fi |
|
|
16417 | shlibpath_var=LIBPATH |
|
|
16418 | fi |
|
|
16419 | ;; |
|
|
16420 | |
|
|
16421 | amigaos*) |
|
|
16422 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
16423 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
16424 | 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' |
|
|
16425 | ;; |
|
|
16426 | |
|
|
16427 | beos*) |
|
|
16428 | library_names_spec='${libname}${shared_ext}' |
|
|
16429 | dynamic_linker="$host_os ld.so" |
|
|
16430 | shlibpath_var=LIBRARY_PATH |
|
|
16431 | ;; |
|
|
16432 | |
|
|
16433 | bsdi[45]*) |
|
|
16434 | version_type=linux |
|
|
16435 | need_version=no |
|
|
16436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16437 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16438 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
16439 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16440 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
16441 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
16442 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
16443 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
16444 | # libtool to hard-code these into programs |
|
|
16445 | ;; |
|
|
16446 | |
|
|
16447 | cygwin* | mingw* | pw32*) |
|
|
16448 | version_type=windows |
|
|
16449 | shrext_cmds=".dll" |
|
|
16450 | need_version=no |
|
|
16451 | need_lib_prefix=no |
|
|
16452 | |
|
|
16453 | case $GCC,$host_os in |
|
|
16454 | yes,cygwin* | yes,mingw* | yes,pw32*) |
|
|
16455 | library_names_spec='$libname.dll.a' |
|
|
16456 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
|
16457 | postinstall_cmds='base_file=`basename \${file}`~ |
|
|
16458 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
|
16459 | dldir=$destdir/`dirname \$dlpath`~ |
|
|
16460 | test -d \$dldir || mkdir -p \$dldir~ |
|
|
16461 | $install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
16462 | chmod a+x \$dldir/$dlname' |
|
|
16463 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
16464 | dlpath=$dir/\$dldll~ |
|
|
16465 | $rm \$dlpath' |
|
|
16466 | shlibpath_overrides_runpath=yes |
|
|
16467 | |
|
|
16468 | case $host_os in |
|
|
16469 | cygwin*) |
|
|
16470 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
|
16471 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
16472 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
|
16473 | ;; |
|
|
16474 | mingw*) |
|
|
16475 | # MinGW DLLs use traditional 'lib' prefix |
|
|
16476 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
16477 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
16478 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
|
16479 | # It is most probably a Windows format PATH printed by |
|
|
16480 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
|
16481 | # path with ; separators, and with drive letters. We can handle the |
|
|
16482 | # drive letters (cygwin fileutils understands them), so leave them, |
|
|
16483 | # especially as we might pass files found there to a mingw objdump, |
|
|
16484 | # which wouldn't understand a cygwinified path. Ahh. |
|
|
16485 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
16486 | else |
|
|
16487 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
16488 | fi |
|
|
16489 | ;; |
|
|
16490 | pw32*) |
|
|
16491 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
|
16492 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
16493 | ;; |
|
|
16494 | esac |
|
|
16495 | ;; |
|
|
16496 | |
|
|
16497 | *) |
|
|
16498 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
|
16499 | ;; |
|
|
16500 | esac |
|
|
16501 | dynamic_linker='Win32 ld.exe' |
|
|
16502 | # FIXME: first we should search . and the directory the executable is in |
|
|
16503 | shlibpath_var=PATH |
|
|
16504 | ;; |
|
|
16505 | |
|
|
16506 | darwin* | rhapsody*) |
|
|
16507 | dynamic_linker="$host_os dyld" |
|
|
16508 | version_type=darwin |
|
|
16509 | need_lib_prefix=no |
|
|
16510 | need_version=no |
|
|
16511 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
|
16512 | soname_spec='${libname}${release}${major}$shared_ext' |
|
|
16513 | shlibpath_overrides_runpath=yes |
|
|
16514 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
16515 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
|
16516 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
|
16517 | if test "$GCC" = yes; then |
|
|
16518 | 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"` |
|
|
16519 | else |
|
|
16520 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
|
16521 | fi |
|
|
16522 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
|
16523 | ;; |
|
|
16524 | |
|
|
16525 | dgux*) |
|
|
16526 | version_type=linux |
|
|
16527 | need_lib_prefix=no |
|
|
16528 | need_version=no |
|
|
16529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
|
16530 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16531 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16532 | ;; |
|
|
16533 | |
|
|
16534 | freebsd1*) |
|
|
16535 | dynamic_linker=no |
|
|
16536 | ;; |
|
|
16537 | |
|
|
16538 | kfreebsd*-gnu) |
|
|
16539 | version_type=linux |
|
|
16540 | need_lib_prefix=no |
|
|
16541 | need_version=no |
|
|
16542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16543 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16544 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16545 | shlibpath_overrides_runpath=no |
|
|
16546 | hardcode_into_libs=yes |
|
|
16547 | dynamic_linker='GNU ld.so' |
|
|
16548 | ;; |
|
|
16549 | |
|
|
16550 | freebsd* | dragonfly*) |
|
|
16551 | # DragonFly does not have aout. When/if they implement a new |
|
|
16552 | # versioning mechanism, adjust this. |
|
|
16553 | if test -x /usr/bin/objformat; then |
|
|
16554 | objformat=`/usr/bin/objformat` |
|
|
16555 | else |
|
|
16556 | case $host_os in |
|
|
16557 | freebsd[123]*) objformat=aout ;; |
|
|
16558 | *) objformat=elf ;; |
|
|
16559 | esac |
|
|
16560 | fi |
|
|
16561 | version_type=freebsd-$objformat |
|
|
16562 | case $version_type in |
|
|
16563 | freebsd-elf*) |
|
|
16564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
16565 | need_version=no |
|
|
16566 | need_lib_prefix=no |
|
|
16567 | ;; |
|
|
16568 | freebsd-*) |
|
|
16569 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
|
16570 | need_version=yes |
|
|
16571 | ;; |
|
|
16572 | esac |
|
|
16573 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16574 | case $host_os in |
|
|
16575 | freebsd2*) |
|
|
16576 | shlibpath_overrides_runpath=yes |
|
|
16577 | ;; |
|
|
16578 | freebsd3.[01]* | freebsdelf3.[01]*) |
|
|
16579 | shlibpath_overrides_runpath=yes |
|
|
16580 | hardcode_into_libs=yes |
|
|
16581 | ;; |
|
|
16582 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
|
16583 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
|
16584 | shlibpath_overrides_runpath=no |
|
|
16585 | hardcode_into_libs=yes |
|
|
16586 | ;; |
|
|
16587 | freebsd*) # from 4.6 on |
|
|
16588 | shlibpath_overrides_runpath=yes |
|
|
16589 | hardcode_into_libs=yes |
|
|
16590 | ;; |
|
|
16591 | esac |
|
|
16592 | ;; |
|
|
16593 | |
|
|
16594 | gnu*) |
|
|
16595 | version_type=linux |
|
|
16596 | need_lib_prefix=no |
|
|
16597 | need_version=no |
|
|
16598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
|
16599 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16600 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16601 | hardcode_into_libs=yes |
|
|
16602 | ;; |
|
|
16603 | |
|
|
16604 | hpux9* | hpux10* | hpux11*) |
|
|
16605 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
16606 | # link against other versions. |
|
|
16607 | version_type=sunos |
|
|
16608 | need_lib_prefix=no |
|
|
16609 | need_version=no |
|
|
16610 | case $host_cpu in |
|
|
16611 | ia64*) |
|
|
16612 | shrext_cmds='.so' |
|
|
16613 | hardcode_into_libs=yes |
|
|
16614 | dynamic_linker="$host_os dld.so" |
|
|
16615 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16616 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
16617 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16618 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16619 | if test "X$HPUX_IA64_MODE" = X32; then |
|
|
16620 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
|
16621 | else |
|
|
16622 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
|
16623 | fi |
|
|
16624 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
16625 | ;; |
|
|
16626 | hppa*64*) |
|
|
16627 | shrext_cmds='.sl' |
|
|
16628 | hardcode_into_libs=yes |
|
|
16629 | dynamic_linker="$host_os dld.sl" |
|
|
16630 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
|
16631 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
16632 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16633 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16634 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
|
16635 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
16636 | ;; |
|
|
16637 | *) |
|
|
16638 | shrext_cmds='.sl' |
|
|
16639 | dynamic_linker="$host_os dld.sl" |
|
|
16640 | shlibpath_var=SHLIB_PATH |
|
|
16641 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
16642 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16643 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16644 | ;; |
|
|
16645 | esac |
|
|
16646 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
16647 | postinstall_cmds='chmod 555 $lib' |
|
|
16648 | ;; |
|
|
16649 | |
|
|
16650 | interix3*) |
|
|
16651 | version_type=linux |
|
|
16652 | need_lib_prefix=no |
|
|
16653 | need_version=no |
|
|
16654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16655 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16656 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
|
16657 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16658 | shlibpath_overrides_runpath=no |
|
|
16659 | hardcode_into_libs=yes |
|
|
16660 | ;; |
|
|
16661 | |
|
|
16662 | irix5* | irix6* | nonstopux*) |
|
|
16663 | case $host_os in |
|
|
16664 | nonstopux*) version_type=nonstopux ;; |
|
|
16665 | *) |
|
|
16666 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
16667 | version_type=linux |
|
|
16668 | else |
|
|
16669 | version_type=irix |
|
|
16670 | fi ;; |
|
|
16671 | esac |
|
|
16672 | need_lib_prefix=no |
|
|
16673 | need_version=no |
|
|
16674 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16675 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
16676 | case $host_os in |
|
|
16677 | irix5* | nonstopux*) |
|
|
16678 | libsuff= shlibsuff= |
|
|
16679 | ;; |
|
|
16680 | *) |
|
|
16681 | case $LD in # libtool.m4 will add one of these switches to LD |
|
|
16682 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
|
16683 | libsuff= shlibsuff= libmagic=32-bit;; |
|
|
16684 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
|
16685 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
16686 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
|
16687 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
16688 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
16689 | esac |
|
|
16690 | ;; |
|
|
16691 | esac |
|
|
16692 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
16693 | shlibpath_overrides_runpath=no |
|
|
16694 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
16695 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
16696 | hardcode_into_libs=yes |
|
|
16697 | ;; |
|
|
16698 | |
|
|
16699 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
16700 | linux*oldld* | linux*aout* | linux*coff*) |
|
|
16701 | dynamic_linker=no |
|
|
16702 | ;; |
|
|
16703 | |
|
|
16704 | # This must be Linux ELF. |
|
|
16705 | linux*) |
|
|
16706 | version_type=linux |
|
|
16707 | need_lib_prefix=no |
|
|
16708 | need_version=no |
|
|
16709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16710 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16711 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
16712 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16713 | shlibpath_overrides_runpath=no |
|
|
16714 | # This implies no fast_install, which is unacceptable. |
|
|
16715 | # Some rework will be needed to allow for fast_install |
|
|
16716 | # before this can be enabled. |
|
|
16717 | hardcode_into_libs=yes |
|
|
16718 | |
|
|
16719 | # Append ld.so.conf contents to the search path |
|
|
16720 | if test -f /etc/ld.so.conf; then |
|
|
16721 | 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' ' '` |
|
|
16722 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
|
16723 | fi |
|
|
16724 | |
|
|
16725 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
16726 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
16727 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
16728 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
16729 | # people can always --disable-shared, the test was removed, and we |
|
|
16730 | # assume the GNU/Linux dynamic linker is in use. |
|
|
16731 | dynamic_linker='GNU/Linux ld.so' |
|
|
16732 | ;; |
|
|
16733 | |
|
|
16734 | netbsdelf*-gnu) |
|
|
16735 | version_type=linux |
|
|
16736 | need_lib_prefix=no |
|
|
16737 | need_version=no |
|
|
16738 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16739 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16740 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16741 | shlibpath_overrides_runpath=no |
|
|
16742 | hardcode_into_libs=yes |
|
|
16743 | dynamic_linker='NetBSD ld.elf_so' |
|
|
16744 | ;; |
|
|
16745 | |
|
|
16746 | knetbsd*-gnu) |
|
|
16747 | version_type=linux |
|
|
16748 | need_lib_prefix=no |
|
|
16749 | need_version=no |
|
|
16750 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16751 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16752 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16753 | shlibpath_overrides_runpath=no |
|
|
16754 | hardcode_into_libs=yes |
|
|
16755 | dynamic_linker='GNU ld.so' |
|
|
16756 | ;; |
|
|
16757 | |
|
|
16758 | netbsd*) |
|
|
16759 | version_type=sunos |
|
|
16760 | need_lib_prefix=no |
|
|
16761 | need_version=no |
|
|
16762 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
16763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
16764 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
16765 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
16766 | else |
|
|
16767 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16768 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16769 | dynamic_linker='NetBSD ld.elf_so' |
|
|
16770 | fi |
|
|
16771 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16772 | shlibpath_overrides_runpath=yes |
|
|
16773 | hardcode_into_libs=yes |
|
|
16774 | ;; |
|
|
16775 | |
|
|
16776 | newsos6) |
|
|
16777 | version_type=linux |
|
|
16778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16779 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16780 | shlibpath_overrides_runpath=yes |
|
|
16781 | ;; |
|
|
16782 | |
|
|
16783 | nto-qnx*) |
|
|
16784 | version_type=linux |
|
|
16785 | need_lib_prefix=no |
|
|
16786 | need_version=no |
|
|
16787 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16788 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16789 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16790 | shlibpath_overrides_runpath=yes |
|
|
16791 | ;; |
|
|
16792 | |
|
|
16793 | openbsd*) |
|
|
16794 | version_type=sunos |
|
|
16795 | sys_lib_dlsearch_path_spec="/usr/lib" |
|
|
16796 | need_lib_prefix=no |
|
|
16797 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
16798 | case $host_os in |
|
|
16799 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
|
16800 | *) need_version=no ;; |
|
|
16801 | esac |
|
|
16802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
16803 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
16804 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16805 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
16806 | case $host_os in |
|
|
16807 | openbsd2.[89] | openbsd2.[89].*) |
|
|
16808 | shlibpath_overrides_runpath=no |
|
|
16809 | ;; |
|
|
16810 | *) |
|
|
16811 | shlibpath_overrides_runpath=yes |
|
|
16812 | ;; |
|
|
16813 | esac |
|
|
16814 | else |
|
|
16815 | shlibpath_overrides_runpath=yes |
|
|
16816 | fi |
|
|
16817 | ;; |
|
|
16818 | |
|
|
16819 | os2*) |
|
|
16820 | libname_spec='$name' |
|
|
16821 | shrext_cmds=".dll" |
|
|
16822 | need_lib_prefix=no |
|
|
16823 | library_names_spec='$libname${shared_ext} $libname.a' |
|
|
16824 | dynamic_linker='OS/2 ld.exe' |
|
|
16825 | shlibpath_var=LIBPATH |
|
|
16826 | ;; |
|
|
16827 | |
|
|
16828 | osf3* | osf4* | osf5*) |
|
|
16829 | version_type=osf |
|
|
16830 | need_lib_prefix=no |
|
|
16831 | need_version=no |
|
|
16832 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16834 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16835 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
16836 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
16837 | ;; |
|
|
16838 | |
|
|
16839 | solaris*) |
|
|
16840 | version_type=linux |
|
|
16841 | need_lib_prefix=no |
|
|
16842 | need_version=no |
|
|
16843 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16844 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16845 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16846 | shlibpath_overrides_runpath=yes |
|
|
16847 | hardcode_into_libs=yes |
|
|
16848 | # ldd complains unless libraries are executable |
|
|
16849 | postinstall_cmds='chmod +x $lib' |
|
|
16850 | ;; |
|
|
16851 | |
|
|
16852 | sunos4*) |
|
|
16853 | version_type=sunos |
|
|
16854 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
16855 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
16856 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16857 | shlibpath_overrides_runpath=yes |
|
|
16858 | if test "$with_gnu_ld" = yes; then |
|
|
16859 | need_lib_prefix=no |
|
|
16860 | fi |
|
|
16861 | need_version=yes |
|
|
16862 | ;; |
|
|
16863 | |
|
|
16864 | sysv4 | sysv4.3*) |
|
|
16865 | version_type=linux |
|
|
16866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16867 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16868 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16869 | case $host_vendor in |
|
|
16870 | sni) |
|
|
16871 | shlibpath_overrides_runpath=no |
|
|
16872 | need_lib_prefix=no |
|
|
16873 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
16874 | runpath_var=LD_RUN_PATH |
|
|
16875 | ;; |
|
|
16876 | siemens) |
|
|
16877 | need_lib_prefix=no |
|
|
16878 | ;; |
|
|
16879 | motorola) |
|
|
16880 | need_lib_prefix=no |
|
|
16881 | need_version=no |
|
|
16882 | shlibpath_overrides_runpath=no |
|
|
16883 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
16884 | ;; |
|
|
16885 | esac |
|
|
16886 | ;; |
|
|
16887 | |
|
|
16888 | sysv4*MP*) |
|
|
16889 | if test -d /usr/nec ;then |
|
|
16890 | version_type=linux |
|
|
16891 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
|
16892 | soname_spec='$libname${shared_ext}.$major' |
|
|
16893 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16894 | fi |
|
|
16895 | ;; |
|
|
16896 | |
|
|
16897 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
16898 | version_type=freebsd-elf |
|
|
16899 | need_lib_prefix=no |
|
|
16900 | need_version=no |
|
|
16901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
16902 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16903 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16904 | hardcode_into_libs=yes |
|
|
16905 | if test "$with_gnu_ld" = yes; then |
|
|
16906 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
|
16907 | shlibpath_overrides_runpath=no |
|
|
16908 | else |
|
|
16909 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
|
16910 | shlibpath_overrides_runpath=yes |
|
|
16911 | case $host_os in |
|
|
16912 | sco3.2v5*) |
|
|
16913 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
|
16914 | ;; |
|
|
16915 | esac |
|
|
16916 | fi |
|
|
16917 | sys_lib_dlsearch_path_spec='/usr/lib' |
|
|
16918 | ;; |
|
|
16919 | |
|
|
16920 | uts4*) |
|
|
16921 | version_type=linux |
|
|
16922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16923 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16924 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16925 | ;; |
|
|
16926 | |
|
|
16927 | *) |
|
|
16928 | dynamic_linker=no |
|
|
16929 | ;; |
|
|
16930 | esac |
|
|
16931 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
16932 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
16933 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
16934 | |
|
|
16935 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
16936 | if test "$GCC" = yes; then |
|
|
16937 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
16938 | fi |
|
|
16939 | |
|
|
16940 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
16941 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
16942 | hardcode_action_GCJ= |
|
|
16943 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
|
|
16944 | test -n "$runpath_var_GCJ" || \ |
|
|
16945 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
|
|
16946 | |
|
|
16947 | # We can hardcode non-existant directories. |
|
|
16948 | if test "$hardcode_direct_GCJ" != no && |
|
|
16949 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
16950 | # have to relink, otherwise we might link with an installed library |
|
|
16951 | # when we should be linking with a yet-to-be-installed one |
|
|
16952 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
|
|
16953 | test "$hardcode_minus_L_GCJ" != no; then |
|
|
16954 | # Linking always hardcodes the temporary library directory. |
|
|
16955 | hardcode_action_GCJ=relink |
|
|
16956 | else |
|
|
16957 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
16958 | hardcode_action_GCJ=immediate |
|
|
16959 | fi |
|
|
16960 | else |
|
|
16961 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
16962 | # directories. |
|
|
16963 | hardcode_action_GCJ=unsupported |
|
|
16964 | fi |
|
|
16965 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
|
|
16966 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
|
|
16967 | |
|
|
16968 | if test "$hardcode_action_GCJ" = relink; then |
|
|
16969 | # Fast installation is not supported |
|
|
16970 | enable_fast_install=no |
|
|
16971 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
16972 | test "$enable_shared" = no; then |
|
|
16973 | # Fast installation is not necessary |
|
|
16974 | enable_fast_install=needless |
|
|
16975 | fi |
|
|
16976 | |
|
|
16977 | |
|
|
16978 | # The else clause should only fire when bootstrapping the |
|
|
16979 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
16980 | # with your package, and you will get complaints that there are |
|
|
16981 | # no rules to generate ltmain.sh. |
|
|
16982 | if test -f "$ltmain"; then |
|
|
16983 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
16984 | # without removal of \ escapes. |
|
|
16985 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
16986 | setopt NO_GLOB_SUBST |
|
|
16987 | fi |
|
|
16988 | # Now quote all the things that may contain metacharacters while being |
|
|
16989 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
16990 | # variables and quote the copies for generation of the libtool script. |
|
|
16991 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
|
16992 | SED SHELL STRIP \ |
|
|
16993 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
16994 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
16995 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
16996 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
16997 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
16998 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
16999 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
17000 | compiler_GCJ \ |
|
|
17001 | CC_GCJ \ |
|
|
17002 | LD_GCJ \ |
|
|
17003 | lt_prog_compiler_wl_GCJ \ |
|
|
17004 | lt_prog_compiler_pic_GCJ \ |
|
|
17005 | lt_prog_compiler_static_GCJ \ |
|
|
17006 | lt_prog_compiler_no_builtin_flag_GCJ \ |
|
|
17007 | export_dynamic_flag_spec_GCJ \ |
|
|
17008 | thread_safe_flag_spec_GCJ \ |
|
|
17009 | whole_archive_flag_spec_GCJ \ |
|
|
17010 | enable_shared_with_static_runtimes_GCJ \ |
|
|
17011 | old_archive_cmds_GCJ \ |
|
|
17012 | old_archive_from_new_cmds_GCJ \ |
|
|
17013 | predep_objects_GCJ \ |
|
|
17014 | postdep_objects_GCJ \ |
|
|
17015 | predeps_GCJ \ |
|
|
17016 | postdeps_GCJ \ |
|
|
17017 | compiler_lib_search_path_GCJ \ |
|
|
17018 | archive_cmds_GCJ \ |
|
|
17019 | archive_expsym_cmds_GCJ \ |
|
|
17020 | postinstall_cmds_GCJ \ |
|
|
17021 | postuninstall_cmds_GCJ \ |
|
|
17022 | old_archive_from_expsyms_cmds_GCJ \ |
|
|
17023 | allow_undefined_flag_GCJ \ |
|
|
17024 | no_undefined_flag_GCJ \ |
|
|
17025 | export_symbols_cmds_GCJ \ |
|
|
17026 | hardcode_libdir_flag_spec_GCJ \ |
|
|
17027 | hardcode_libdir_flag_spec_ld_GCJ \ |
|
|
17028 | hardcode_libdir_separator_GCJ \ |
|
|
17029 | hardcode_automatic_GCJ \ |
|
|
17030 | module_cmds_GCJ \ |
|
|
17031 | module_expsym_cmds_GCJ \ |
|
|
17032 | lt_cv_prog_compiler_c_o_GCJ \ |
|
|
17033 | exclude_expsyms_GCJ \ |
|
|
17034 | include_expsyms_GCJ; do |
|
|
17035 | |
|
|
17036 | case $var in |
|
|
17037 | old_archive_cmds_GCJ | \ |
|
|
17038 | old_archive_from_new_cmds_GCJ | \ |
|
|
17039 | archive_cmds_GCJ | \ |
|
|
17040 | archive_expsym_cmds_GCJ | \ |
|
|
17041 | module_cmds_GCJ | \ |
|
|
17042 | module_expsym_cmds_GCJ | \ |
|
|
17043 | old_archive_from_expsyms_cmds_GCJ | \ |
|
|
17044 | export_symbols_cmds_GCJ | \ |
|
|
17045 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
17046 | postinstall_cmds | postuninstall_cmds | \ |
|
|
17047 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
17048 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
17049 | # Double-quote double-evaled strings. |
|
|
17050 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
17051 | ;; |
|
|
17052 | *) |
|
|
17053 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
17054 | ;; |
|
|
17055 | esac |
|
|
17056 | done |
|
|
17057 | |
|
|
17058 | case $lt_echo in |
|
|
17059 | *'\$0 --fallback-echo"') |
|
|
17060 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
17061 | ;; |
|
|
17062 | esac |
|
|
17063 | |
|
|
17064 | cfgfile="$ofile" |
|
|
17065 | |
|
|
17066 | cat <<__EOF__ >> "$cfgfile" |
|
|
17067 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
|
17068 | |
|
|
17069 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
17070 | |
|
|
17071 | # Shell to use when invoking shell scripts. |
|
|
17072 | SHELL=$lt_SHELL |
|
|
17073 | |
|
|
17074 | # Whether or not to build shared libraries. |
|
|
17075 | build_libtool_libs=$enable_shared |
|
|
17076 | |
|
|
17077 | # Whether or not to build static libraries. |
|
|
17078 | build_old_libs=$enable_static |
|
|
17079 | |
|
|
17080 | # Whether or not to add -lc for building shared libraries. |
|
|
17081 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
|
|
17082 | |
|
|
17083 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
17084 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
|
|
17085 | |
|
|
17086 | # Whether or not to optimize for fast installation. |
|
|
17087 | fast_install=$enable_fast_install |
|
|
17088 | |
|
|
17089 | # The host system. |
|
|
17090 | host_alias=$host_alias |
|
|
17091 | host=$host |
|
|
17092 | host_os=$host_os |
|
|
17093 | |
|
|
17094 | # The build system. |
|
|
17095 | build_alias=$build_alias |
|
|
17096 | build=$build |
|
|
17097 | build_os=$build_os |
|
|
17098 | |
|
|
17099 | # An echo program that does not interpret backslashes. |
|
|
17100 | echo=$lt_echo |
|
|
17101 | |
|
|
17102 | # The archiver. |
|
|
17103 | AR=$lt_AR |
|
|
17104 | AR_FLAGS=$lt_AR_FLAGS |
|
|
17105 | |
|
|
17106 | # A C compiler. |
|
|
17107 | LTCC=$lt_LTCC |
|
|
17108 | |
|
|
17109 | # LTCC compiler flags. |
|
|
17110 | LTCFLAGS=$lt_LTCFLAGS |
|
|
17111 | |
|
|
17112 | # A language-specific compiler. |
|
|
17113 | CC=$lt_compiler_GCJ |
|
|
17114 | |
|
|
17115 | # Is the compiler the GNU C compiler? |
|
|
17116 | with_gcc=$GCC_GCJ |
|
|
17117 | |
|
|
17118 | # An ERE matcher. |
|
|
17119 | EGREP=$lt_EGREP |
|
|
17120 | |
|
|
17121 | # The linker used to build libraries. |
|
|
17122 | LD=$lt_LD_GCJ |
|
|
17123 | |
|
|
17124 | # Whether we need hard or soft links. |
|
|
17125 | LN_S=$lt_LN_S |
|
|
17126 | |
|
|
17127 | # A BSD-compatible nm program. |
|
|
17128 | NM=$lt_NM |
|
|
17129 | |
|
|
17130 | # A symbol stripping program |
|
|
17131 | STRIP=$lt_STRIP |
|
|
17132 | |
|
|
17133 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
17134 | MAGIC_CMD=$MAGIC_CMD |
|
|
17135 | |
|
|
17136 | # Used on cygwin: DLL creation program. |
|
|
17137 | DLLTOOL="$DLLTOOL" |
|
|
17138 | |
|
|
17139 | # Used on cygwin: object dumper. |
|
|
17140 | OBJDUMP="$OBJDUMP" |
|
|
17141 | |
|
|
17142 | # Used on cygwin: assembler. |
|
|
17143 | AS="$AS" |
|
|
17144 | |
|
|
17145 | # The name of the directory that contains temporary libtool files. |
|
|
17146 | objdir=$objdir |
|
|
17147 | |
|
|
17148 | # How to create reloadable object files. |
|
|
17149 | reload_flag=$lt_reload_flag |
|
|
17150 | reload_cmds=$lt_reload_cmds |
|
|
17151 | |
|
|
17152 | # How to pass a linker flag through the compiler. |
|
|
17153 | wl=$lt_lt_prog_compiler_wl_GCJ |
|
|
17154 | |
|
|
17155 | # Object file suffix (normally "o"). |
|
|
17156 | objext="$ac_objext" |
|
|
17157 | |
|
|
17158 | # Old archive suffix (normally "a"). |
|
|
17159 | libext="$libext" |
|
|
17160 | |
|
|
17161 | # Shared library suffix (normally ".so"). |
|
|
17162 | shrext_cmds='$shrext_cmds' |
|
|
17163 | |
|
|
17164 | # Executable file suffix (normally ""). |
|
|
17165 | exeext="$exeext" |
|
|
17166 | |
|
|
17167 | # Additional compiler flags for building library objects. |
|
|
17168 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
|
|
17169 | pic_mode=$pic_mode |
|
|
17170 | |
|
|
17171 | # What is the maximum length of a command? |
|
|
17172 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
17173 | |
|
|
17174 | # Does compiler simultaneously support -c and -o options? |
|
|
17175 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
|
|
17176 | |
|
|
17177 | # Must we lock files when doing compilation? |
|
|
17178 | need_locks=$lt_need_locks |
|
|
17179 | |
|
|
17180 | # Do we need the lib prefix for modules? |
|
|
17181 | need_lib_prefix=$need_lib_prefix |
|
|
17182 | |
|
|
17183 | # Do we need a version for libraries? |
|
|
17184 | need_version=$need_version |
|
|
17185 | |
|
|
17186 | # Whether dlopen is supported. |
|
|
17187 | dlopen_support=$enable_dlopen |
|
|
17188 | |
|
|
17189 | # Whether dlopen of programs is supported. |
|
|
17190 | dlopen_self=$enable_dlopen_self |
|
|
17191 | |
|
|
17192 | # Whether dlopen of statically linked programs is supported. |
|
|
17193 | dlopen_self_static=$enable_dlopen_self_static |
|
|
17194 | |
|
|
17195 | # Compiler flag to prevent dynamic linking. |
|
|
17196 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
|
|
17197 | |
|
|
17198 | # Compiler flag to turn off builtin functions. |
|
|
17199 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
|
|
17200 | |
|
|
17201 | # Compiler flag to allow reflexive dlopens. |
|
|
17202 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
|
|
17203 | |
|
|
17204 | # Compiler flag to generate shared objects directly from archives. |
|
|
17205 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
|
|
17206 | |
|
|
17207 | # Compiler flag to generate thread-safe objects. |
|
|
17208 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
|
|
17209 | |
|
|
17210 | # Library versioning type. |
|
|
17211 | version_type=$version_type |
|
|
17212 | |
|
|
17213 | # Format of library name prefix. |
|
|
17214 | libname_spec=$lt_libname_spec |
|
|
17215 | |
|
|
17216 | # List of archive names. First name is the real one, the rest are links. |
|
|
17217 | # The last name is the one that the linker finds with -lNAME. |
|
|
17218 | library_names_spec=$lt_library_names_spec |
|
|
17219 | |
|
|
17220 | # The coded name of the library, if different from the real name. |
|
|
17221 | soname_spec=$lt_soname_spec |
|
|
17222 | |
|
|
17223 | # Commands used to build and install an old-style archive. |
|
|
17224 | RANLIB=$lt_RANLIB |
|
|
17225 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
|
|
17226 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
17227 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
17228 | |
|
|
17229 | # Create an old-style archive from a shared archive. |
|
|
17230 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
|
|
17231 | |
|
|
17232 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
17233 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
|
|
17234 | |
|
|
17235 | # Commands used to build and install a shared archive. |
|
|
17236 | archive_cmds=$lt_archive_cmds_GCJ |
|
|
17237 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
|
|
17238 | postinstall_cmds=$lt_postinstall_cmds |
|
|
17239 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
17240 | |
|
|
17241 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
17242 | module_cmds=$lt_module_cmds_GCJ |
|
|
17243 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
|
|
17244 | |
|
|
17245 | # Commands to strip libraries. |
|
|
17246 | old_striplib=$lt_old_striplib |
|
|
17247 | striplib=$lt_striplib |
|
|
17248 | |
|
|
17249 | # Dependencies to place before the objects being linked to create a |
|
|
17250 | # shared library. |
|
|
17251 | predep_objects=$lt_predep_objects_GCJ |
|
|
17252 | |
|
|
17253 | # Dependencies to place after the objects being linked to create a |
|
|
17254 | # shared library. |
|
|
17255 | postdep_objects=$lt_postdep_objects_GCJ |
|
|
17256 | |
|
|
17257 | # Dependencies to place before the objects being linked to create a |
|
|
17258 | # shared library. |
|
|
17259 | predeps=$lt_predeps_GCJ |
|
|
17260 | |
|
|
17261 | # Dependencies to place after the objects being linked to create a |
|
|
17262 | # shared library. |
|
|
17263 | postdeps=$lt_postdeps_GCJ |
|
|
17264 | |
|
|
17265 | # The library search path used internally by the compiler when linking |
|
|
17266 | # a shared library. |
|
|
17267 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
|
|
17268 | |
|
|
17269 | # Method to check whether dependent libraries are shared objects. |
|
|
17270 | deplibs_check_method=$lt_deplibs_check_method |
|
|
17271 | |
|
|
17272 | # Command to use when deplibs_check_method == file_magic. |
|
|
17273 | file_magic_cmd=$lt_file_magic_cmd |
|
|
17274 | |
|
|
17275 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
17276 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
|
|
17277 | |
|
|
17278 | # Flag that forces no undefined symbols. |
|
|
17279 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
|
|
17280 | |
|
|
17281 | # Commands used to finish a libtool library installation in a directory. |
|
|
17282 | finish_cmds=$lt_finish_cmds |
|
|
17283 | |
|
|
17284 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
17285 | finish_eval=$lt_finish_eval |
|
|
17286 | |
|
|
17287 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
17288 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
17289 | |
|
|
17290 | # Transform the output of nm in a proper C declaration |
|
|
17291 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
17292 | |
|
|
17293 | # Transform the output of nm in a C name address pair |
|
|
17294 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
17295 | |
|
|
17296 | # This is the shared library runtime path variable. |
|
|
17297 | runpath_var=$runpath_var |
|
|
17298 | |
|
|
17299 | # This is the shared library path variable. |
|
|
17300 | shlibpath_var=$shlibpath_var |
|
|
17301 | |
|
|
17302 | # Is shlibpath searched before the hard-coded library search path? |
|
|
17303 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
17304 | |
|
|
17305 | # How to hardcode a shared library path into an executable. |
|
|
17306 | hardcode_action=$hardcode_action_GCJ |
|
|
17307 | |
|
|
17308 | # Whether we should hardcode library paths into libraries. |
|
|
17309 | hardcode_into_libs=$hardcode_into_libs |
|
|
17310 | |
|
|
17311 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
17312 | # This must work even if \$libdir does not exist. |
|
|
17313 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
|
|
17314 | |
|
|
17315 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
17316 | # a binary during linking. This must work even if \$libdir does |
|
|
17317 | # not exist. |
|
|
17318 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
|
|
17319 | |
|
|
17320 | # Whether we need a single -rpath flag with a separated argument. |
|
|
17321 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
|
|
17322 | |
|
|
17323 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
17324 | # resulting binary. |
|
|
17325 | hardcode_direct=$hardcode_direct_GCJ |
|
|
17326 | |
|
|
17327 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
17328 | # resulting binary. |
|
|
17329 | hardcode_minus_L=$hardcode_minus_L_GCJ |
|
|
17330 | |
|
|
17331 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
17332 | # the resulting binary. |
|
|
17333 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
|
|
17334 | |
|
|
17335 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
17336 | # and all subsequent libraries and executables linked against it. |
|
|
17337 | hardcode_automatic=$hardcode_automatic_GCJ |
|
|
17338 | |
|
|
17339 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
17340 | # restored at relink time. |
|
|
17341 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
17342 | |
|
|
17343 | # Whether libtool must link a program against all its dependency libraries. |
|
|
17344 | link_all_deplibs=$link_all_deplibs_GCJ |
|
|
17345 | |
|
|
17346 | # Compile-time system search path for libraries |
|
|
17347 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
17348 | |
|
|
17349 | # Run-time system search path for libraries |
|
|
17350 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
17351 | |
|
|
17352 | # Fix the shell variable \$srcfile for the compiler. |
|
|
17353 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
|
|
17354 | |
|
|
17355 | # Set to yes if exported symbols are required. |
|
|
17356 | always_export_symbols=$always_export_symbols_GCJ |
|
|
17357 | |
|
|
17358 | # The commands to list exported symbols. |
|
|
17359 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
|
|
17360 | |
|
|
17361 | # The commands to extract the exported symbol list from a shared archive. |
|
|
17362 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
17363 | |
|
|
17364 | # Symbols that should not be listed in the preloaded symbols. |
|
|
17365 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
|
|
17366 | |
|
|
17367 | # Symbols that must always be exported. |
|
|
17368 | include_expsyms=$lt_include_expsyms_GCJ |
|
|
17369 | |
|
|
17370 | # ### END LIBTOOL TAG CONFIG: $tagname |
|
|
17371 | |
|
|
17372 | __EOF__ |
|
|
17373 | |
|
|
17374 | |
|
|
17375 | else |
|
|
17376 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
17377 | # `config.status --recheck' to rerun these tests and create the |
|
|
17378 | # libtool script then. |
|
|
17379 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
17380 | if test -f "$ltmain_in"; then |
|
|
17381 | test -f Makefile && make "$ltmain" |
|
|
17382 | fi |
|
|
17383 | fi |
|
|
17384 | |
|
|
17385 | |
|
|
17386 | ac_ext=c |
|
|
17387 | ac_cpp='$CPP $CPPFLAGS' |
|
|
17388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
17389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
17390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
17391 | |
|
|
17392 | CC="$lt_save_CC" |
|
|
17393 | |
|
|
17394 | else |
|
|
17395 | tagname="" |
|
|
17396 | fi |
|
|
17397 | ;; |
|
|
17398 | |
|
|
17399 | RC) |
|
|
17400 | |
|
|
17401 | |
|
|
17402 | |
|
|
17403 | # Source file extension for RC test sources. |
|
|
17404 | ac_ext=rc |
|
|
17405 | |
|
|
17406 | # Object file extension for compiled RC test sources. |
|
|
17407 | objext=o |
|
|
17408 | objext_RC=$objext |
|
|
17409 | |
|
|
17410 | # Code to be used in simple compile tests |
|
|
17411 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
|
|
17412 | |
|
|
17413 | # Code to be used in simple link tests |
|
|
17414 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
|
|
17415 | |
|
|
17416 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
17417 | |
|
|
17418 | # If no C compiler was specified, use CC. |
|
|
17419 | LTCC=${LTCC-"$CC"} |
|
|
17420 | |
|
|
17421 | # If no C compiler flags were specified, use CFLAGS. |
|
|
17422 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
17423 | |
|
|
17424 | # Allow CC to be a program name with arguments. |
|
|
17425 | compiler=$CC |
|
|
17426 | |
|
|
17427 | |
|
|
17428 | # save warnings/boilerplate of simple test code |
|
|
17429 | ac_outfile=conftest.$ac_objext |
|
|
17430 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
17431 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
17432 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
17433 | $rm conftest* |
|
|
17434 | |
|
|
17435 | ac_outfile=conftest.$ac_objext |
|
|
17436 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
17437 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
17438 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
17439 | $rm conftest* |
|
|
17440 | |
|
|
17441 | |
|
|
17442 | # Allow CC to be a program name with arguments. |
|
|
17443 | lt_save_CC="$CC" |
|
|
17444 | CC=${RC-"windres"} |
|
|
17445 | compiler=$CC |
|
|
17446 | compiler_RC=$CC |
|
|
17447 | for cc_temp in $compiler""; do |
|
|
17448 | case $cc_temp in |
|
|
17449 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
17450 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
17451 | \-*) ;; |
|
|
17452 | *) break;; |
|
|
17453 | esac |
|
|
17454 | done |
|
|
17455 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
17456 | |
|
|
17457 | lt_cv_prog_compiler_c_o_RC=yes |
|
|
17458 | |
|
|
17459 | # The else clause should only fire when bootstrapping the |
|
|
17460 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
17461 | # with your package, and you will get complaints that there are |
|
|
17462 | # no rules to generate ltmain.sh. |
|
|
17463 | if test -f "$ltmain"; then |
|
|
17464 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
17465 | # without removal of \ escapes. |
|
|
17466 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
17467 | setopt NO_GLOB_SUBST |
|
|
17468 | fi |
|
|
17469 | # Now quote all the things that may contain metacharacters while being |
|
|
17470 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
17471 | # variables and quote the copies for generation of the libtool script. |
|
|
17472 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
|
17473 | SED SHELL STRIP \ |
|
|
17474 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
17475 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
17476 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
17477 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
17478 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
17479 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
17480 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
17481 | compiler_RC \ |
|
|
17482 | CC_RC \ |
|
|
17483 | LD_RC \ |
|
|
17484 | lt_prog_compiler_wl_RC \ |
|
|
17485 | lt_prog_compiler_pic_RC \ |
|
|
17486 | lt_prog_compiler_static_RC \ |
|
|
17487 | lt_prog_compiler_no_builtin_flag_RC \ |
|
|
17488 | export_dynamic_flag_spec_RC \ |
|
|
17489 | thread_safe_flag_spec_RC \ |
|
|
17490 | whole_archive_flag_spec_RC \ |
|
|
17491 | enable_shared_with_static_runtimes_RC \ |
|
|
17492 | old_archive_cmds_RC \ |
|
|
17493 | old_archive_from_new_cmds_RC \ |
|
|
17494 | predep_objects_RC \ |
|
|
17495 | postdep_objects_RC \ |
|
|
17496 | predeps_RC \ |
|
|
17497 | postdeps_RC \ |
|
|
17498 | compiler_lib_search_path_RC \ |
|
|
17499 | archive_cmds_RC \ |
|
|
17500 | archive_expsym_cmds_RC \ |
|
|
17501 | postinstall_cmds_RC \ |
|
|
17502 | postuninstall_cmds_RC \ |
|
|
17503 | old_archive_from_expsyms_cmds_RC \ |
|
|
17504 | allow_undefined_flag_RC \ |
|
|
17505 | no_undefined_flag_RC \ |
|
|
17506 | export_symbols_cmds_RC \ |
|
|
17507 | hardcode_libdir_flag_spec_RC \ |
|
|
17508 | hardcode_libdir_flag_spec_ld_RC \ |
|
|
17509 | hardcode_libdir_separator_RC \ |
|
|
17510 | hardcode_automatic_RC \ |
|
|
17511 | module_cmds_RC \ |
|
|
17512 | module_expsym_cmds_RC \ |
|
|
17513 | lt_cv_prog_compiler_c_o_RC \ |
|
|
17514 | exclude_expsyms_RC \ |
|
|
17515 | include_expsyms_RC; do |
|
|
17516 | |
|
|
17517 | case $var in |
|
|
17518 | old_archive_cmds_RC | \ |
|
|
17519 | old_archive_from_new_cmds_RC | \ |
|
|
17520 | archive_cmds_RC | \ |
|
|
17521 | archive_expsym_cmds_RC | \ |
|
|
17522 | module_cmds_RC | \ |
|
|
17523 | module_expsym_cmds_RC | \ |
|
|
17524 | old_archive_from_expsyms_cmds_RC | \ |
|
|
17525 | export_symbols_cmds_RC | \ |
|
|
17526 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
17527 | postinstall_cmds | postuninstall_cmds | \ |
|
|
17528 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
17529 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
17530 | # Double-quote double-evaled strings. |
|
|
17531 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
17532 | ;; |
|
|
17533 | *) |
|
|
17534 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
17535 | ;; |
|
|
17536 | esac |
|
|
17537 | done |
|
|
17538 | |
|
|
17539 | case $lt_echo in |
|
|
17540 | *'\$0 --fallback-echo"') |
|
|
17541 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
17542 | ;; |
|
|
17543 | esac |
|
|
17544 | |
|
|
17545 | cfgfile="$ofile" |
|
|
17546 | |
|
|
17547 | cat <<__EOF__ >> "$cfgfile" |
|
|
17548 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
|
17549 | |
|
|
17550 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
17551 | |
|
|
17552 | # Shell to use when invoking shell scripts. |
|
|
17553 | SHELL=$lt_SHELL |
|
|
17554 | |
|
|
17555 | # Whether or not to build shared libraries. |
|
|
17556 | build_libtool_libs=$enable_shared |
|
|
17557 | |
|
|
17558 | # Whether or not to build static libraries. |
|
|
17559 | build_old_libs=$enable_static |
|
|
17560 | |
|
|
17561 | # Whether or not to add -lc for building shared libraries. |
|
|
17562 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
|
|
17563 | |
|
|
17564 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
17565 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
|
|
17566 | |
|
|
17567 | # Whether or not to optimize for fast installation. |
|
|
17568 | fast_install=$enable_fast_install |
|
|
17569 | |
|
|
17570 | # The host system. |
|
|
17571 | host_alias=$host_alias |
|
|
17572 | host=$host |
|
|
17573 | host_os=$host_os |
|
|
17574 | |
|
|
17575 | # The build system. |
|
|
17576 | build_alias=$build_alias |
|
|
17577 | build=$build |
|
|
17578 | build_os=$build_os |
|
|
17579 | |
|
|
17580 | # An echo program that does not interpret backslashes. |
|
|
17581 | echo=$lt_echo |
|
|
17582 | |
|
|
17583 | # The archiver. |
|
|
17584 | AR=$lt_AR |
|
|
17585 | AR_FLAGS=$lt_AR_FLAGS |
|
|
17586 | |
|
|
17587 | # A C compiler. |
|
|
17588 | LTCC=$lt_LTCC |
|
|
17589 | |
|
|
17590 | # LTCC compiler flags. |
|
|
17591 | LTCFLAGS=$lt_LTCFLAGS |
|
|
17592 | |
|
|
17593 | # A language-specific compiler. |
|
|
17594 | CC=$lt_compiler_RC |
|
|
17595 | |
|
|
17596 | # Is the compiler the GNU C compiler? |
|
|
17597 | with_gcc=$GCC_RC |
|
|
17598 | |
|
|
17599 | # An ERE matcher. |
|
|
17600 | EGREP=$lt_EGREP |
|
|
17601 | |
|
|
17602 | # The linker used to build libraries. |
|
|
17603 | LD=$lt_LD_RC |
|
|
17604 | |
|
|
17605 | # Whether we need hard or soft links. |
|
|
17606 | LN_S=$lt_LN_S |
|
|
17607 | |
|
|
17608 | # A BSD-compatible nm program. |
|
|
17609 | NM=$lt_NM |
|
|
17610 | |
|
|
17611 | # A symbol stripping program |
|
|
17612 | STRIP=$lt_STRIP |
|
|
17613 | |
|
|
17614 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
17615 | MAGIC_CMD=$MAGIC_CMD |
|
|
17616 | |
|
|
17617 | # Used on cygwin: DLL creation program. |
|
|
17618 | DLLTOOL="$DLLTOOL" |
|
|
17619 | |
|
|
17620 | # Used on cygwin: object dumper. |
|
|
17621 | OBJDUMP="$OBJDUMP" |
|
|
17622 | |
|
|
17623 | # Used on cygwin: assembler. |
|
|
17624 | AS="$AS" |
|
|
17625 | |
|
|
17626 | # The name of the directory that contains temporary libtool files. |
|
|
17627 | objdir=$objdir |
|
|
17628 | |
|
|
17629 | # How to create reloadable object files. |
|
|
17630 | reload_flag=$lt_reload_flag |
|
|
17631 | reload_cmds=$lt_reload_cmds |
|
|
17632 | |
|
|
17633 | # How to pass a linker flag through the compiler. |
|
|
17634 | wl=$lt_lt_prog_compiler_wl_RC |
|
|
17635 | |
|
|
17636 | # Object file suffix (normally "o"). |
|
|
17637 | objext="$ac_objext" |
|
|
17638 | |
|
|
17639 | # Old archive suffix (normally "a"). |
|
|
17640 | libext="$libext" |
|
|
17641 | |
|
|
17642 | # Shared library suffix (normally ".so"). |
|
|
17643 | shrext_cmds='$shrext_cmds' |
|
|
17644 | |
|
|
17645 | # Executable file suffix (normally ""). |
|
|
17646 | exeext="$exeext" |
|
|
17647 | |
|
|
17648 | # Additional compiler flags for building library objects. |
|
|
17649 | pic_flag=$lt_lt_prog_compiler_pic_RC |
|
|
17650 | pic_mode=$pic_mode |
|
|
17651 | |
|
|
17652 | # What is the maximum length of a command? |
|
|
17653 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
17654 | |
|
|
17655 | # Does compiler simultaneously support -c and -o options? |
|
|
17656 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
|
|
17657 | |
|
|
17658 | # Must we lock files when doing compilation? |
|
|
17659 | need_locks=$lt_need_locks |
|
|
17660 | |
|
|
17661 | # Do we need the lib prefix for modules? |
|
|
17662 | need_lib_prefix=$need_lib_prefix |
|
|
17663 | |
|
|
17664 | # Do we need a version for libraries? |
|
|
17665 | need_version=$need_version |
|
|
17666 | |
|
|
17667 | # Whether dlopen is supported. |
|
|
17668 | dlopen_support=$enable_dlopen |
|
|
17669 | |
|
|
17670 | # Whether dlopen of programs is supported. |
|
|
17671 | dlopen_self=$enable_dlopen_self |
|
|
17672 | |
|
|
17673 | # Whether dlopen of statically linked programs is supported. |
|
|
17674 | dlopen_self_static=$enable_dlopen_self_static |
|
|
17675 | |
|
|
17676 | # Compiler flag to prevent dynamic linking. |
|
|
17677 | link_static_flag=$lt_lt_prog_compiler_static_RC |
|
|
17678 | |
|
|
17679 | # Compiler flag to turn off builtin functions. |
|
|
17680 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
|
|
17681 | |
|
|
17682 | # Compiler flag to allow reflexive dlopens. |
|
|
17683 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
|
|
17684 | |
|
|
17685 | # Compiler flag to generate shared objects directly from archives. |
|
|
17686 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
|
|
17687 | |
|
|
17688 | # Compiler flag to generate thread-safe objects. |
|
|
17689 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
|
|
17690 | |
|
|
17691 | # Library versioning type. |
|
|
17692 | version_type=$version_type |
|
|
17693 | |
|
|
17694 | # Format of library name prefix. |
|
|
17695 | libname_spec=$lt_libname_spec |
|
|
17696 | |
|
|
17697 | # List of archive names. First name is the real one, the rest are links. |
|
|
17698 | # The last name is the one that the linker finds with -lNAME. |
|
|
17699 | library_names_spec=$lt_library_names_spec |
|
|
17700 | |
|
|
17701 | # The coded name of the library, if different from the real name. |
|
|
17702 | soname_spec=$lt_soname_spec |
|
|
17703 | |
|
|
17704 | # Commands used to build and install an old-style archive. |
|
|
17705 | RANLIB=$lt_RANLIB |
|
|
17706 | old_archive_cmds=$lt_old_archive_cmds_RC |
|
|
17707 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
17708 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
17709 | |
|
|
17710 | # Create an old-style archive from a shared archive. |
|
|
17711 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
|
|
17712 | |
|
|
17713 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
17714 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
|
|
17715 | |
|
|
17716 | # Commands used to build and install a shared archive. |
|
|
17717 | archive_cmds=$lt_archive_cmds_RC |
|
|
17718 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
|
|
17719 | postinstall_cmds=$lt_postinstall_cmds |
|
|
17720 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
17721 | |
|
|
17722 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
17723 | module_cmds=$lt_module_cmds_RC |
|
|
17724 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
|
|
17725 | |
|
|
17726 | # Commands to strip libraries. |
|
|
17727 | old_striplib=$lt_old_striplib |
|
|
17728 | striplib=$lt_striplib |
|
|
17729 | |
|
|
17730 | # Dependencies to place before the objects being linked to create a |
|
|
17731 | # shared library. |
|
|
17732 | predep_objects=$lt_predep_objects_RC |
|
|
17733 | |
|
|
17734 | # Dependencies to place after the objects being linked to create a |
|
|
17735 | # shared library. |
|
|
17736 | postdep_objects=$lt_postdep_objects_RC |
|
|
17737 | |
|
|
17738 | # Dependencies to place before the objects being linked to create a |
|
|
17739 | # shared library. |
|
|
17740 | predeps=$lt_predeps_RC |
|
|
17741 | |
|
|
17742 | # Dependencies to place after the objects being linked to create a |
|
|
17743 | # shared library. |
|
|
17744 | postdeps=$lt_postdeps_RC |
|
|
17745 | |
|
|
17746 | # The library search path used internally by the compiler when linking |
|
|
17747 | # a shared library. |
|
|
17748 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
|
|
17749 | |
|
|
17750 | # Method to check whether dependent libraries are shared objects. |
|
|
17751 | deplibs_check_method=$lt_deplibs_check_method |
|
|
17752 | |
|
|
17753 | # Command to use when deplibs_check_method == file_magic. |
|
|
17754 | file_magic_cmd=$lt_file_magic_cmd |
|
|
17755 | |
|
|
17756 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
17757 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
|
|
17758 | |
|
|
17759 | # Flag that forces no undefined symbols. |
|
|
17760 | no_undefined_flag=$lt_no_undefined_flag_RC |
|
|
17761 | |
|
|
17762 | # Commands used to finish a libtool library installation in a directory. |
|
|
17763 | finish_cmds=$lt_finish_cmds |
|
|
17764 | |
|
|
17765 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
17766 | finish_eval=$lt_finish_eval |
|
|
17767 | |
|
|
17768 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
17769 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
17770 | |
|
|
17771 | # Transform the output of nm in a proper C declaration |
|
|
17772 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
17773 | |
|
|
17774 | # Transform the output of nm in a C name address pair |
|
|
17775 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
17776 | |
|
|
17777 | # This is the shared library runtime path variable. |
|
|
17778 | runpath_var=$runpath_var |
|
|
17779 | |
|
|
17780 | # This is the shared library path variable. |
|
|
17781 | shlibpath_var=$shlibpath_var |
|
|
17782 | |
|
|
17783 | # Is shlibpath searched before the hard-coded library search path? |
|
|
17784 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
17785 | |
|
|
17786 | # How to hardcode a shared library path into an executable. |
|
|
17787 | hardcode_action=$hardcode_action_RC |
|
|
17788 | |
|
|
17789 | # Whether we should hardcode library paths into libraries. |
|
|
17790 | hardcode_into_libs=$hardcode_into_libs |
|
|
17791 | |
|
|
17792 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
17793 | # This must work even if \$libdir does not exist. |
|
|
17794 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
|
|
17795 | |
|
|
17796 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
17797 | # a binary during linking. This must work even if \$libdir does |
|
|
17798 | # not exist. |
|
|
17799 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
|
|
17800 | |
|
|
17801 | # Whether we need a single -rpath flag with a separated argument. |
|
|
17802 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
|
|
17803 | |
|
|
17804 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
17805 | # resulting binary. |
|
|
17806 | hardcode_direct=$hardcode_direct_RC |
|
|
17807 | |
|
|
17808 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
17809 | # resulting binary. |
|
|
17810 | hardcode_minus_L=$hardcode_minus_L_RC |
|
|
17811 | |
|
|
17812 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
17813 | # the resulting binary. |
|
|
17814 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
|
|
17815 | |
|
|
17816 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
17817 | # and all subsequent libraries and executables linked against it. |
|
|
17818 | hardcode_automatic=$hardcode_automatic_RC |
|
|
17819 | |
|
|
17820 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
17821 | # restored at relink time. |
|
|
17822 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
17823 | |
|
|
17824 | # Whether libtool must link a program against all its dependency libraries. |
|
|
17825 | link_all_deplibs=$link_all_deplibs_RC |
|
|
17826 | |
|
|
17827 | # Compile-time system search path for libraries |
|
|
17828 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
17829 | |
|
|
17830 | # Run-time system search path for libraries |
|
|
17831 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
17832 | |
|
|
17833 | # Fix the shell variable \$srcfile for the compiler. |
|
|
17834 | fix_srcfile_path="$fix_srcfile_path_RC" |
|
|
17835 | |
|
|
17836 | # Set to yes if exported symbols are required. |
|
|
17837 | always_export_symbols=$always_export_symbols_RC |
|
|
17838 | |
|
|
17839 | # The commands to list exported symbols. |
|
|
17840 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
|
|
17841 | |
|
|
17842 | # The commands to extract the exported symbol list from a shared archive. |
|
|
17843 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
17844 | |
|
|
17845 | # Symbols that should not be listed in the preloaded symbols. |
|
|
17846 | exclude_expsyms=$lt_exclude_expsyms_RC |
|
|
17847 | |
|
|
17848 | # Symbols that must always be exported. |
|
|
17849 | include_expsyms=$lt_include_expsyms_RC |
|
|
17850 | |
|
|
17851 | # ### END LIBTOOL TAG CONFIG: $tagname |
|
|
17852 | |
|
|
17853 | __EOF__ |
|
|
17854 | |
|
|
17855 | |
|
|
17856 | else |
|
|
17857 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
17858 | # `config.status --recheck' to rerun these tests and create the |
|
|
17859 | # libtool script then. |
|
|
17860 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
17861 | if test -f "$ltmain_in"; then |
|
|
17862 | test -f Makefile && make "$ltmain" |
|
|
17863 | fi |
|
|
17864 | fi |
|
|
17865 | |
|
|
17866 | |
|
|
17867 | ac_ext=c |
|
|
17868 | ac_cpp='$CPP $CPPFLAGS' |
|
|
17869 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
17870 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
17871 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
17872 | |
|
|
17873 | CC="$lt_save_CC" |
|
|
17874 | |
|
|
17875 | ;; |
|
|
17876 | |
|
|
17877 | *) |
|
|
17878 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
|
|
17879 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
|
|
17880 | { (exit 1); exit 1; }; } |
|
|
17881 | ;; |
|
|
17882 | esac |
|
|
17883 | |
|
|
17884 | # Append the new tag name to the list of available tags. |
|
|
17885 | if test -n "$tagname" ; then |
|
|
17886 | available_tags="$available_tags $tagname" |
|
|
17887 | fi |
|
|
17888 | fi |
|
|
17889 | done |
|
|
17890 | IFS="$lt_save_ifs" |
|
|
17891 | |
|
|
17892 | # Now substitute the updated list of available tags. |
|
|
17893 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
|
|
17894 | mv "${ofile}T" "$ofile" |
|
|
17895 | chmod +x "$ofile" |
|
|
17896 | else |
|
|
17897 | rm -f "${ofile}T" |
|
|
17898 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
|
|
17899 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
|
|
17900 | { (exit 1); exit 1; }; } |
|
|
17901 | fi |
|
|
17902 | fi |
|
|
17903 | |
|
|
17904 | |
|
|
17905 | |
|
|
17906 | # This can be used to rebuild libtool when needed |
|
|
17907 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
|
17908 | |
|
|
17909 | # Always use our own libtool. |
|
|
17910 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
|
17911 | |
|
|
17912 | # Prevent multiple expansion |
|
|
17913 | |
|
|
17914 | |
|
|
17915 | |
|
|
17916 | |
|
|
17917 | |
|
|
17918 | |
|
|
17919 | |
|
|
17920 | |
|
|
17921 | |
|
|
17922 | |
|
|
17923 | |
|
|
17924 | |
|
|
17925 | |
|
|
17926 | |
|
|
17927 | |
|
|
17928 | |
|
|
17929 | |
|
|
17930 | |
|
|
17931 | |
|
|
17932 | |
|
|
17933 | |
|
|
17934 | ac_ext=cc |
|
|
17935 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
17936 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
17937 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
17938 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
17939 | |
2536 | |
17940 | |
2537 | |
17941 | |
2538 | |
17942 | |
2539 | |
17943 | |
2540 | |
17944 | |
… | |
… | |
3117 | done |
18521 | done |
3118 | |
18522 | |
3119 | fi |
18523 | fi |
3120 | |
18524 | |
3121 | |
18525 | |
|
|
18526 | |
|
|
18527 | echo "$as_me:$LINENO: checking for tty group" >&5 |
|
|
18528 | echo $ECHO_N "checking for tty group... $ECHO_C" >&6 |
|
|
18529 | if test "${tty_group+set}" = set; then |
|
|
18530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
18531 | else |
|
|
18532 | if test "$cross_compiling" = yes; then |
|
|
18533 | tty_group=no |
|
|
18534 | else |
|
|
18535 | cat >conftest.$ac_ext <<_ACEOF |
|
|
18536 | /* confdefs.h. */ |
|
|
18537 | _ACEOF |
|
|
18538 | cat confdefs.h >>conftest.$ac_ext |
|
|
18539 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
18540 | /* end confdefs.h. */ |
|
|
18541 | |
|
|
18542 | #include <sys/types.h> |
|
|
18543 | #include <sys/stat.h> |
|
|
18544 | #include <unistd.h> |
|
|
18545 | #include <grp.h> |
|
|
18546 | |
|
|
18547 | main() |
|
|
18548 | { |
|
|
18549 | struct stat st; |
|
|
18550 | struct group *gr; |
|
|
18551 | char *tty; |
|
|
18552 | gr = getgrnam("tty"); |
|
|
18553 | tty = ttyname(0); |
|
|
18554 | if (gr != 0 |
|
|
18555 | && tty != 0 |
|
|
18556 | && (stat(tty, &st)) == 0 |
|
|
18557 | && st.st_gid == gr->gr_gid) |
|
|
18558 | return 0; |
|
|
18559 | else |
|
|
18560 | return 1; |
|
|
18561 | } |
|
|
18562 | _ACEOF |
|
|
18563 | rm -f conftest$ac_exeext |
|
|
18564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
18565 | (eval $ac_link) 2>&5 |
|
|
18566 | ac_status=$? |
|
|
18567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
18568 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
18569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
18570 | (eval $ac_try) 2>&5 |
|
|
18571 | ac_status=$? |
|
|
18572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
18573 | (exit $ac_status); }; }; then |
|
|
18574 | tty_group=yes |
|
|
18575 | else |
|
|
18576 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
18577 | echo "$as_me: failed program was:" >&5 |
|
|
18578 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
18579 | |
|
|
18580 | ( exit $ac_status ) |
|
|
18581 | tty_group=no |
|
|
18582 | fi |
|
|
18583 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
18584 | fi |
|
|
18585 | fi |
|
|
18586 | echo "$as_me:$LINENO: result: $tty_group" >&5 |
|
|
18587 | echo "${ECHO_T}$tty_group" >&6 |
|
|
18588 | if test x$tty_group = xyes; then |
|
|
18589 | |
|
|
18590 | cat >>confdefs.h <<\_ACEOF |
|
|
18591 | #define TTY_GID_SUPPORT 1 |
|
|
18592 | _ACEOF |
|
|
18593 | |
|
|
18594 | fi |
|
|
18595 | |
|
|
18596 | |
|
|
18597 | support_utmp=yes |
|
|
18598 | support_wtmp=yes |
|
|
18599 | support_lastlog=yes |
|
|
18600 | |
|
|
18601 | # Check whether --enable-utmp or --disable-utmp was given. |
|
|
18602 | if test "${enable_utmp+set}" = set; then |
|
|
18603 | enableval="$enable_utmp" |
|
|
18604 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
18605 | support_utmp=$enableval |
|
|
18606 | fi |
|
|
18607 | fi; |
|
|
18608 | |
|
|
18609 | # Check whether --enable-wtmp or --disable-wtmp was given. |
|
|
18610 | if test "${enable_wtmp+set}" = set; then |
|
|
18611 | enableval="$enable_wtmp" |
|
|
18612 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
18613 | support_wtmp=$enableval |
|
|
18614 | fi |
|
|
18615 | fi; |
|
|
18616 | |
|
|
18617 | # Check whether --enable-lastlog or --disable-lastlog was given. |
|
|
18618 | if test "${enable_lastlog+set}" = set; then |
|
|
18619 | enableval="$enable_lastlog" |
|
|
18620 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
18621 | support_lastlog=$enableval |
|
|
18622 | fi |
|
|
18623 | fi; |
|
|
18624 | |
|
|
18625 | if test x$support_utmp = xyes; then |
|
|
18626 | |
|
|
18627 | cat >>confdefs.h <<\_ACEOF |
|
|
18628 | #define UTMP_SUPPORT 1 |
|
|
18629 | _ACEOF |
|
|
18630 | |
|
|
18631 | fi |
|
|
18632 | if test x$support_wtmp = xyes; then |
|
|
18633 | |
|
|
18634 | cat >>confdefs.h <<\_ACEOF |
|
|
18635 | #define WTMP_SUPPORT 1 |
|
|
18636 | _ACEOF |
|
|
18637 | |
|
|
18638 | fi |
|
|
18639 | if test x$support_lastlog = xyes; then |
|
|
18640 | |
|
|
18641 | cat >>confdefs.h <<\_ACEOF |
|
|
18642 | #define LASTLOG_SUPPORT 1 |
|
|
18643 | _ACEOF |
|
|
18644 | |
|
|
18645 | fi |
3122 | |
18646 | |
3123 | |
18647 | |
3124 | |
18648 | |
3125 | |
18649 | |
3126 | for ac_func in \ |
18650 | for ac_func in \ |
… | |
… | |
4641 | #define LASTLOGX_FILE "$path_lastlogx" |
20165 | #define LASTLOGX_FILE "$path_lastlogx" |
4642 | _ACEOF |
20166 | _ACEOF |
4643 | |
20167 | |
4644 | fi |
20168 | fi |
4645 | |
20169 | |
|
|
20170 | if test x$support_utmp != xyes; then |
|
|
20171 | echo " utmp support: disabled" |
|
|
20172 | echo |
|
|
20173 | else |
|
|
20174 | echo " utmp support: enabled |
|
|
20175 | utmp file: $path_utmp |
|
|
20176 | utmpx file: $path_utmpx |
|
|
20177 | wtmp file: $path_wtmp |
|
|
20178 | wtmpx file: $path_wtmpx |
|
|
20179 | lastlog file: $path_lastlog |
|
|
20180 | lastlogx file: $path_lastlogx" |
|
|
20181 | fi |
|
|
20182 | |
4646 | |
20183 | |
4647 | |
20184 | |
4648 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
20185 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
4649 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
20186 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
4650 | if test "${can_pass_fds+set}" = set; then |
20187 | if test "${can_pass_fds+set}" = set; then |
… | |
… | |
4655 | _ACEOF |
20192 | _ACEOF |
4656 | cat confdefs.h >>conftest.$ac_ext |
20193 | cat confdefs.h >>conftest.$ac_ext |
4657 | cat >>conftest.$ac_ext <<_ACEOF |
20194 | cat >>conftest.$ac_ext <<_ACEOF |
4658 | /* end confdefs.h. */ |
20195 | /* end confdefs.h. */ |
4659 | |
20196 | |
4660 | #include <cstddef> // broken bsds (is that redundant) need this |
20197 | #include <cstddef> // broken bsds (is that redundant?) need this |
4661 | #include <sys/types.h> |
20198 | #include <sys/types.h> |
4662 | #include <sys/socket.h> |
20199 | #include <sys/socket.h> |
4663 | #include <sys/uio.h> |
20200 | #include <sys/uio.h> |
4664 | |
20201 | |
4665 | int |
20202 | int |
… | |
… | |
4739 | { (exit 1); exit 1; }; } |
20276 | { (exit 1); exit 1; }; } |
4740 | fi |
20277 | fi |
4741 | |
20278 | |
4742 | |
20279 | |
4743 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
20280 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
4744 | |
|
|
4745 | cat >confcache <<\_ACEOF |
20281 | cat >confcache <<\_ACEOF |
4746 | # This file is a shell script that caches the results of configure |
20282 | # This file is a shell script that caches the results of configure |
4747 | # tests run on this system so they can be shared between configure |
20283 | # tests run on this system so they can be shared between configure |
4748 | # scripts and configure runs, see configure's option --config-cache. |
20284 | # scripts and configure runs, see configure's option --config-cache. |
4749 | # It is not useful on other systems. If it contains results you don't |
20285 | # It is not useful on other systems. If it contains results you don't |
… | |
… | |
5371 | s,@EXEEXT@,$EXEEXT,;t t |
20907 | s,@EXEEXT@,$EXEEXT,;t t |
5372 | s,@OBJEXT@,$OBJEXT,;t t |
20908 | s,@OBJEXT@,$OBJEXT,;t t |
5373 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
20909 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
5374 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
20910 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
5375 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
20911 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
|
|
20912 | s,@CC@,$CC,;t t |
|
|
20913 | s,@CFLAGS@,$CFLAGS,;t t |
|
|
20914 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
|
|
20915 | s,@EGREP@,$EGREP,;t t |
|
|
20916 | s,@LN_S@,$LN_S,;t t |
|
|
20917 | s,@ECHO@,$ECHO,;t t |
5376 | s,@RM@,$RM,;t t |
20918 | s,@AR@,$AR,;t t |
|
|
20919 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
|
|
20920 | s,@RANLIB@,$RANLIB,;t t |
|
|
20921 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
|
20922 | s,@STRIP@,$STRIP,;t t |
|
|
20923 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
|
20924 | s,@CPP@,$CPP,;t t |
5377 | s,@CXXCPP@,$CXXCPP,;t t |
20925 | s,@CXXCPP@,$CXXCPP,;t t |
5378 | s,@EGREP@,$EGREP,;t t |
20926 | s,@F77@,$F77,;t t |
|
|
20927 | s,@FFLAGS@,$FFLAGS,;t t |
|
|
20928 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
|
|
20929 | s,@LIBTOOL@,$LIBTOOL,;t t |
5379 | s,@LIBOBJS@,$LIBOBJS,;t t |
20930 | s,@LIBOBJS@,$LIBOBJS,;t t |
5380 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
20931 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
5381 | CEOF |
20932 | CEOF |
5382 | |
20933 | |
5383 | _ACEOF |
20934 | _ACEOF |