Imported Upstream version 1.4.0
Asias He
12 years ago
0 | commit babdf267e0b7ba4729a11710a2deeab79730b63a | |
1 | Author: fujiwarat <takao.fujiwara1@gmail.com> | |
2 | Date: 2010-11-30 18:12:48 +0900 | |
3 | ||
4 | Released 0.1.4 | |
5 | ||
6 | M configure.ac | |
0 | commit c2bec278b43a888a9c496e0ad6c125275d2a19ee | |
1 | Author: fujiwarat <takao.fujiwara1@gmail.com> | |
2 | Date: 2010-12-03 15:27:18 +0900 | |
3 | ||
4 | Released 1.4.0 | |
5 | ||
6 | M README | |
7 | M configure.ac | |
8 | ||
9 | commit d447097f46e71bae95136c4254b397b553d4c8ec | |
10 | Author: fujiwarat <takao.fujiwara1@gmail.com> | |
11 | Date: 2010-12-03 15:27:14 +0900 | |
12 | ||
13 | Changed GTK+ configure option. | |
14 | ||
15 | M configure.ac | |
16 | ||
17 | commit 4dcc13b93296673ec80a3cb6c3e1dd826fca8f7b | |
18 | Author: fujiwarat <takao.fujiwara1@gmail.com> | |
19 | Date: 2010-11-09 17:51:50 +0900 | |
20 | ||
21 | Supported GTK3. | |
22 | ||
23 | M configure.ac | |
24 | M setup/Makefile.am | |
25 | M setup/setup-gtk2.c | |
26 | ||
27 | commit 647815dcc289e788628b5a333f5869520f97ef08 | |
28 | Author: fujiwarat <takao.fujiwara1@gmail.com> | |
29 | Date: 2010-11-08 15:03:59 +0900 | |
30 | ||
31 | Integrated gdbus for IBus 1.4 | |
32 | ||
33 | M setup/iconfig-gtk2.c | |
7 | 34 | |
8 | 35 | commit 49fcd3d7c22667947f9388795582f6e09593613f |
9 | 36 | Author: fujiwarat <takao.fujiwara1@gmail.com> |
167 | 167 | GREP = @GREP@ |
168 | 168 | GTK2_CFLAGS = @GTK2_CFLAGS@ |
169 | 169 | GTK2_LIBS = @GTK2_LIBS@ |
170 | GTK3_CFLAGS = @GTK3_CFLAGS@ | |
171 | GTK3_LIBS = @GTK3_LIBS@ | |
170 | 172 | IBUS_CFLAGS = @IBUS_CFLAGS@ |
171 | 173 | IBUS_LIBS = @IBUS_LIBS@ |
172 | 174 | INPUT_PAD_CFLAGS = @INPUT_PAD_CFLAGS@ |
212 | 214 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
213 | 215 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
214 | 216 | PKG_CONFIG = @PKG_CONFIG@ |
217 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
218 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
215 | 219 | POFILES = @POFILES@ |
216 | 220 | POSUB = @POSUB@ |
217 | 221 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ |
262 | 266 | libinput_pad_VERSION = @libinput_pad_VERSION@ |
263 | 267 | localedir = @localedir@ |
264 | 268 | localstatedir = @localstatedir@ |
265 | lt_ECHO = @lt_ECHO@ | |
266 | 269 | mandir = @mandir@ |
267 | 270 | mkdir_p = @mkdir_p@ |
268 | 271 | oldincludedir = @oldincludedir@ |
0 | 0 | ibus-input-pad |
1 | 1 | It is Input Pad for IBus |
2 | 2 | |
3 | The ibus-input-pad version 1.4.x requires ibus 1.4(1.3.99.x) or later. | |
4 | If you use old ibus versions(1.2, 1.3), please use ibus-input-pad 0.1.x . | |
5 |
12 | 12 | |
13 | 13 | m4_ifndef([AC_AUTOCONF_VERSION], |
14 | 14 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
15 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, | |
16 | [m4_warning([this file was generated for autoconf 2.65. | |
15 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],, | |
16 | [m4_warning([this file was generated for autoconf 2.66. | |
17 | 17 | You have another version of autoconf. It may work, but is not guaranteed to. |
18 | 18 | If you have problems, you may need to regenerate the build system entirely. |
19 | 19 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
111 | 111 | int |
112 | 112 | main () |
113 | 113 | { |
114 | int major, minor, micro; | |
114 | unsigned int major, minor, micro; | |
115 | 115 | char *tmp_version; |
116 | 116 | |
117 | 117 | fclose (fopen ("conf.glibtest", "w")); |
118 | 118 | |
119 | 119 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
120 | 120 | tmp_version = g_strdup("$min_glib_version"); |
121 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
121 | if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) { | |
122 | 122 | printf("%s, bad version string\n", "$min_glib_version"); |
123 | 123 | exit(1); |
124 | 124 | } |
157 | 157 | } |
158 | 158 | else |
159 | 159 | { |
160 | printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", | |
160 | printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n", | |
161 | 161 | glib_major_version, glib_minor_version, glib_micro_version); |
162 | printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", | |
162 | printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n", | |
163 | 163 | major, minor, micro); |
164 | 164 | printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); |
165 | 165 | printf("***\n"); |
512 | 512 | |
513 | 513 | dnl These rules are solely for the distribution goal. While doing this |
514 | 514 | dnl we only have to keep exactly one list of the available catalogs |
515 | dnl in configure.in. | |
515 | dnl in configure.ac. | |
516 | 516 | for lang in $ALL_LINGUAS; do |
517 | 517 | GMOFILES="$GMOFILES $lang.gmo" |
518 | 518 | POFILES="$POFILES $lang.po" |
641 | 641 | dnl |
642 | 642 | dnl Now the definitions that aclocal will find |
643 | 643 | dnl |
644 | ifdef(glib_configure_in,[],[ | |
644 | ifdef(glib_configure_ac,[],[ | |
645 | 645 | AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) |
646 | 646 | AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) |
647 | 647 | ])dnl |
814 | 814 | AC_DEFUN([IT_PO_SUBDIR], |
815 | 815 | [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. |
816 | 816 | dnl |
817 | dnl The following CONFIG_COMMANDS should be exetuted at the very end | |
817 | dnl The following CONFIG_COMMANDS should be executed at the very end | |
818 | 818 | dnl of config.status. |
819 | 819 | AC_CONFIG_COMMANDS_PRE([ |
820 | 820 | AC_CONFIG_COMMANDS([$1/stamp-it], [ |
860 | 860 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
861 | 861 | # |
862 | 862 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
863 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
863 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | |
864 | # Inc. | |
864 | 865 | # Written by Gordon Matzigkeit, 1996 |
865 | 866 | # |
866 | 867 | # This file is free software; the Free Software Foundation gives |
869 | 870 | |
870 | 871 | m4_define([_LT_COPYING], [dnl |
871 | 872 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
872 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
873 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | |
874 | # Inc. | |
873 | 875 | # Written by Gordon Matzigkeit, 1996 |
874 | 876 | # |
875 | 877 | # This file is part of GNU Libtool. |
896 | 898 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
897 | 899 | ]) |
898 | 900 | |
899 | # serial 56 LT_INIT | |
901 | # serial 57 LT_INIT | |
900 | 902 | |
901 | 903 | |
902 | 904 | # LT_PREREQ(VERSION) |
925 | 927 | # ------------------ |
926 | 928 | AC_DEFUN([LT_INIT], |
927 | 929 | [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
930 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
928 | 931 | AC_BEFORE([$0], [LT_LANG])dnl |
929 | 932 | AC_BEFORE([$0], [LT_OUTPUT])dnl |
930 | 933 | AC_BEFORE([$0], [LTDL_INIT])dnl |
940 | 943 | AC_REQUIRE([LTVERSION_VERSION])dnl |
941 | 944 | AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
942 | 945 | m4_require([_LT_PROG_LTMAIN])dnl |
946 | ||
947 | _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) | |
943 | 948 | |
944 | 949 | dnl Parse OPTIONS |
945 | 950 | _LT_SET_OPTIONS([$0], [$1]) |
977 | 982 | *) break;; |
978 | 983 | esac |
979 | 984 | done |
980 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
985 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
981 | 986 | ]) |
982 | 987 | |
983 | 988 | |
997 | 1002 | m4_defun([_LT_SETUP], |
998 | 1003 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
999 | 1004 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
1005 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | |
1006 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | |
1007 | ||
1000 | 1008 | _LT_DECL([], [host_alias], [0], [The host system])dnl |
1001 | 1009 | _LT_DECL([], [host], [0])dnl |
1002 | 1010 | _LT_DECL([], [host_os], [0])dnl |
1038 | 1046 | _LT_CHECK_OBJDIR |
1039 | 1047 | |
1040 | 1048 | m4_require([_LT_TAG_COMPILER])dnl |
1041 | _LT_PROG_ECHO_BACKSLASH | |
1042 | 1049 | |
1043 | 1050 | case $host_os in |
1044 | 1051 | aix3*) |
1052 | 1059 | ;; |
1053 | 1060 | esac |
1054 | 1061 | |
1055 | # Sed substitution that helps us do robust quoting. It backslashifies | |
1056 | # metacharacters that are still active within double-quoted strings. | |
1057 | sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | |
1058 | ||
1059 | # Same as above, but do not quote variable references. | |
1060 | double_quote_subst='s/\([["`\\]]\)/\\\1/g' | |
1061 | ||
1062 | # Sed substitution to delay expansion of an escaped shell variable in a | |
1063 | # double_quote_subst'ed string. | |
1064 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
1065 | ||
1066 | # Sed substitution to delay expansion of an escaped single quote. | |
1067 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
1068 | ||
1069 | # Sed substitution to avoid accidental globbing in evaled expressions | |
1070 | no_glob_subst='s/\*/\\\*/g' | |
1071 | ||
1072 | 1062 | # Global variables: |
1073 | 1063 | ofile=libtool |
1074 | 1064 | can_build_shared=yes |
1108 | 1098 | _LT_CONFIG_COMMANDS |
1109 | 1099 | ])# _LT_SETUP |
1110 | 1100 | |
1101 | ||
1102 | # _LT_PREPARE_SED_QUOTE_VARS | |
1103 | # -------------------------- | |
1104 | # Define a few sed substitution that help us do robust quoting. | |
1105 | m4_defun([_LT_PREPARE_SED_QUOTE_VARS], | |
1106 | [# Backslashify metacharacters that are still active within | |
1107 | # double-quoted strings. | |
1108 | sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | |
1109 | ||
1110 | # Same as above, but do not quote variable references. | |
1111 | double_quote_subst='s/\([["`\\]]\)/\\\1/g' | |
1112 | ||
1113 | # Sed substitution to delay expansion of an escaped shell variable in a | |
1114 | # double_quote_subst'ed string. | |
1115 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
1116 | ||
1117 | # Sed substitution to delay expansion of an escaped single quote. | |
1118 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
1119 | ||
1120 | # Sed substitution to avoid accidental globbing in evaled expressions | |
1121 | no_glob_subst='s/\*/\\\*/g' | |
1122 | ]) | |
1111 | 1123 | |
1112 | 1124 | # _LT_PROG_LTMAIN |
1113 | 1125 | # --------------- |
1261 | 1273 | # declaration there will have the same value as in `configure'. VARNAME |
1262 | 1274 | # must have a single quote delimited value for this to work. |
1263 | 1275 | m4_define([_LT_CONFIG_STATUS_DECLARE], |
1264 | [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) | |
1276 | [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) | |
1265 | 1277 | |
1266 | 1278 | |
1267 | 1279 | # _LT_CONFIG_STATUS_DECLARATIONS |
1271 | 1283 | # embedded single quotes properly. In configure, this macro expands |
1272 | 1284 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
1273 | 1285 | # |
1274 | # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' | |
1286 | # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' | |
1275 | 1287 | m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
1276 | 1288 | [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
1277 | 1289 | [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
1370 | 1382 | LTCFLAGS='$LTCFLAGS' |
1371 | 1383 | compiler='$compiler_DEFAULT' |
1372 | 1384 | |
1385 | # A function that is used when there is no print builtin or printf. | |
1386 | func_fallback_echo () | |
1387 | { | |
1388 | eval 'cat <<_LTECHO_EOF | |
1389 | \$[]1 | |
1390 | _LTECHO_EOF' | |
1391 | } | |
1392 | ||
1373 | 1393 | # Quote evaled strings. |
1374 | 1394 | for var in lt_decl_all_varnames([[ \ |
1375 | 1395 | ]], lt_decl_quote_varnames); do |
1376 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
1396 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
1377 | 1397 | *[[\\\\\\\`\\"\\\$]]*) |
1378 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
1398 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
1379 | 1399 | ;; |
1380 | 1400 | *) |
1381 | 1401 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
1386 | 1406 | # Double-quote double-evaled strings. |
1387 | 1407 | for var in lt_decl_all_varnames([[ \ |
1388 | 1408 | ]], lt_decl_dquote_varnames); do |
1389 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
1409 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
1390 | 1410 | *[[\\\\\\\`\\"\\\$]]*) |
1391 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
1411 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
1392 | 1412 | ;; |
1393 | 1413 | *) |
1394 | 1414 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
1396 | 1416 | esac |
1397 | 1417 | done |
1398 | 1418 | |
1399 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
1400 | case \$lt_ECHO in | |
1401 | *'\\\[$]0 --fallback-echo"')dnl " | |
1402 | lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` | |
1403 | ;; | |
1404 | esac | |
1405 | ||
1406 | 1419 | _LT_OUTPUT_LIBTOOL_INIT |
1407 | 1420 | ]) |
1408 | 1421 | |
1422 | # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) | |
1423 | # ------------------------------------ | |
1424 | # Generate a child script FILE with all initialization necessary to | |
1425 | # reuse the environment learned by the parent script, and make the | |
1426 | # file executable. If COMMENT is supplied, it is inserted after the | |
1427 | # `#!' sequence but before initialization text begins. After this | |
1428 | # macro, additional text can be appended to FILE to form the body of | |
1429 | # the child script. The macro ends with non-zero status if the | |
1430 | # file could not be fully written (such as if the disk is full). | |
1431 | m4_ifdef([AS_INIT_GENERATED], | |
1432 | [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], | |
1433 | [m4_defun([_LT_GENERATED_FILE_INIT], | |
1434 | [m4_require([AS_PREPARE])]dnl | |
1435 | [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl | |
1436 | [lt_write_fail=0 | |
1437 | cat >$1 <<_ASEOF || lt_write_fail=1 | |
1438 | #! $SHELL | |
1439 | # Generated by $as_me. | |
1440 | $2 | |
1441 | SHELL=\${CONFIG_SHELL-$SHELL} | |
1442 | export SHELL | |
1443 | _ASEOF | |
1444 | cat >>$1 <<\_ASEOF || lt_write_fail=1 | |
1445 | AS_SHELL_SANITIZE | |
1446 | _AS_PREPARE | |
1447 | exec AS_MESSAGE_FD>&1 | |
1448 | _ASEOF | |
1449 | test $lt_write_fail = 0 && chmod +x $1[]dnl | |
1450 | m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT | |
1409 | 1451 | |
1410 | 1452 | # LT_OUTPUT |
1411 | 1453 | # --------- |
1415 | 1457 | AC_DEFUN([LT_OUTPUT], |
1416 | 1458 | [: ${CONFIG_LT=./config.lt} |
1417 | 1459 | AC_MSG_NOTICE([creating $CONFIG_LT]) |
1418 | cat >"$CONFIG_LT" <<_LTEOF | |
1419 | #! $SHELL | |
1420 | # Generated by $as_me. | |
1421 | # Run this file to recreate a libtool stub with the current configuration. | |
1422 | ||
1460 | _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], | |
1461 | [# Run this file to recreate a libtool stub with the current configuration.]) | |
1462 | ||
1463 | cat >>"$CONFIG_LT" <<\_LTEOF | |
1423 | 1464 | lt_cl_silent=false |
1424 | SHELL=\${CONFIG_SHELL-$SHELL} | |
1425 | _LTEOF | |
1426 | ||
1427 | cat >>"$CONFIG_LT" <<\_LTEOF | |
1428 | AS_SHELL_SANITIZE | |
1429 | _AS_PREPARE | |
1430 | ||
1431 | exec AS_MESSAGE_FD>&1 | |
1432 | 1465 | exec AS_MESSAGE_LOG_FD>>config.log |
1433 | 1466 | { |
1434 | 1467 | echo |
1454 | 1487 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
1455 | 1488 | configured by $[0], generated by m4_PACKAGE_STRING. |
1456 | 1489 | |
1457 | Copyright (C) 2008 Free Software Foundation, Inc. | |
1490 | Copyright (C) 2010 Free Software Foundation, Inc. | |
1458 | 1491 | This config.lt script is free software; the Free Software Foundation |
1459 | 1492 | gives unlimited permision to copy, distribute and modify it." |
1460 | 1493 | |
1499 | 1532 | # appending to config.log, which fails on DOS, as config.log is still kept |
1500 | 1533 | # open by configure. Here we exec the FD to /dev/null, effectively closing |
1501 | 1534 | # config.log, so it can be properly (re)opened and appended to by config.lt. |
1502 | if test "$no_create" != yes; then | |
1503 | lt_cl_success=: | |
1504 | test "$silent" = yes && | |
1505 | lt_config_lt_args="$lt_config_lt_args --quiet" | |
1506 | exec AS_MESSAGE_LOG_FD>/dev/null | |
1507 | $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | |
1508 | exec AS_MESSAGE_LOG_FD>>config.log | |
1509 | $lt_cl_success || AS_EXIT(1) | |
1510 | fi | |
1535 | lt_cl_success=: | |
1536 | test "$silent" = yes && | |
1537 | lt_config_lt_args="$lt_config_lt_args --quiet" | |
1538 | exec AS_MESSAGE_LOG_FD>/dev/null | |
1539 | $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | |
1540 | exec AS_MESSAGE_LOG_FD>>config.log | |
1541 | $lt_cl_success || AS_EXIT(1) | |
1511 | 1542 | ])# LT_OUTPUT |
1512 | 1543 | |
1513 | 1544 | |
1684 | 1715 | AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
1685 | 1716 | AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
1686 | 1717 | AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
1718 | AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) | |
1687 | 1719 | dnl aclocal-1.4 backwards compatibility: |
1688 | 1720 | dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
1689 | 1721 | dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
1690 | 1722 | dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
1691 | 1723 | dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
1724 | dnl AC_DEFUN([AC_LIBTOOL_RC], []) | |
1692 | 1725 | |
1693 | 1726 | |
1694 | 1727 | # _LT_TAG_COMPILER |
1793 | 1826 | [lt_cv_ld_exported_symbols_list=no]) |
1794 | 1827 | LDFLAGS="$save_LDFLAGS" |
1795 | 1828 | ]) |
1829 | AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], | |
1830 | [lt_cv_ld_force_load=no | |
1831 | cat > conftest.c << _LT_EOF | |
1832 | int forced_loaded() { return 2;} | |
1833 | _LT_EOF | |
1834 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD | |
1835 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD | |
1836 | echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | |
1837 | $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | |
1838 | echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD | |
1839 | $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD | |
1840 | cat > conftest.c << _LT_EOF | |
1841 | int main() { return 0;} | |
1842 | _LT_EOF | |
1843 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD | |
1844 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
1845 | _lt_result=$? | |
1846 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
1847 | lt_cv_ld_force_load=yes | |
1848 | else | |
1849 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
1850 | fi | |
1851 | rm -f conftest.err libconftest.a conftest conftest.c | |
1852 | rm -rf conftest.dSYM | |
1853 | ]) | |
1796 | 1854 | case $host_os in |
1797 | 1855 | rhapsody* | darwin1.[[012]]) |
1798 | 1856 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1820 | 1878 | else |
1821 | 1879 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
1822 | 1880 | fi |
1823 | if test "$DSYMUTIL" != ":"; then | |
1881 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
1824 | 1882 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
1825 | 1883 | else |
1826 | 1884 | _lt_dsymutil= |
1840 | 1898 | _LT_TAGVAR(hardcode_direct, $1)=no |
1841 | 1899 | _LT_TAGVAR(hardcode_automatic, $1)=yes |
1842 | 1900 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
1843 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' | |
1901 | if test "$lt_cv_ld_force_load" = "yes"; then | |
1902 | _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
1903 | else | |
1904 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' | |
1905 | fi | |
1844 | 1906 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
1845 | 1907 | _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
1846 | 1908 | case $cc_basename in |
1848 | 1910 | *) _lt_dar_can_shared=$GCC ;; |
1849 | 1911 | esac |
1850 | 1912 | if test "$_lt_dar_can_shared" = "yes"; then |
1851 | output_verbose_link_cmd=echo | |
1913 | output_verbose_link_cmd=func_echo_all | |
1852 | 1914 | _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
1853 | 1915 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
1854 | 1916 | _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
1894 | 1956 | # _LT_SHELL_INIT(ARG) |
1895 | 1957 | # ------------------- |
1896 | 1958 | m4_define([_LT_SHELL_INIT], |
1897 | [ifdef([AC_DIVERSION_NOTICE], | |
1898 | [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | |
1899 | [AC_DIVERT_PUSH(NOTICE)]) | |
1900 | $1 | |
1901 | AC_DIVERT_POP | |
1902 | ])# _LT_SHELL_INIT | |
1959 | [m4_divert_text([M4SH-INIT], [$1 | |
1960 | ])])# _LT_SHELL_INIT | |
1961 | ||
1903 | 1962 | |
1904 | 1963 | |
1905 | 1964 | # _LT_PROG_ECHO_BACKSLASH |
1906 | 1965 | # ----------------------- |
1907 | # Add some code to the start of the generated configure script which | |
1908 | # will find an echo command which doesn't interpret backslashes. | |
1966 | # Find how we can fake an echo command that does not interpret backslash. | |
1967 | # In particular, with Autoconf 2.60 or later we add some code to the start | |
1968 | # of the generated configure script which will find a shell with a builtin | |
1969 | # printf (which we can use as an echo command). | |
1909 | 1970 | m4_defun([_LT_PROG_ECHO_BACKSLASH], |
1910 | [_LT_SHELL_INIT([ | |
1911 | # Check that we are running under the correct shell. | |
1912 | SHELL=${CONFIG_SHELL-/bin/sh} | |
1913 | ||
1914 | case X$lt_ECHO in | |
1915 | X*--fallback-echo) | |
1916 | # Remove one level of quotation (which was required for Make). | |
1917 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | |
1918 | ;; | |
1971 | [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
1972 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
1973 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
1974 | ||
1975 | AC_MSG_CHECKING([how to print strings]) | |
1976 | # Test print first, because it will be a builtin if present. | |
1977 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
1978 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
1979 | ECHO='print -r --' | |
1980 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
1981 | ECHO='printf %s\n' | |
1982 | else | |
1983 | # Use this function as a fallback that always works. | |
1984 | func_fallback_echo () | |
1985 | { | |
1986 | eval 'cat <<_LTECHO_EOF | |
1987 | $[]1 | |
1988 | _LTECHO_EOF' | |
1989 | } | |
1990 | ECHO='func_fallback_echo' | |
1991 | fi | |
1992 | ||
1993 | # func_echo_all arg... | |
1994 | # Invoke $ECHO with all args, space-separated. | |
1995 | func_echo_all () | |
1996 | { | |
1997 | $ECHO "$*" | |
1998 | } | |
1999 | ||
2000 | case "$ECHO" in | |
2001 | printf*) AC_MSG_RESULT([printf]) ;; | |
2002 | print*) AC_MSG_RESULT([print -r]) ;; | |
2003 | *) AC_MSG_RESULT([cat]) ;; | |
1919 | 2004 | esac |
1920 | 2005 | |
1921 | ECHO=${lt_ECHO-echo} | |
1922 | if test "X[$]1" = X--no-reexec; then | |
1923 | # Discard the --no-reexec flag, and continue. | |
1924 | shift | |
1925 | elif test "X[$]1" = X--fallback-echo; then | |
1926 | # Avoid inline document here, it may be left over | |
1927 | : | |
1928 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
1929 | # Yippee, $ECHO works! | |
1930 | : | |
1931 | else | |
1932 | # Restart under the correct shell. | |
1933 | exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
1934 | fi | |
1935 | ||
1936 | if test "X[$]1" = X--fallback-echo; then | |
1937 | # used as fallback echo | |
1938 | shift | |
1939 | cat <<_LT_EOF | |
1940 | [$]* | |
1941 | _LT_EOF | |
1942 | exit 0 | |
1943 | fi | |
1944 | ||
1945 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
1946 | # if CDPATH is set. | |
1947 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
1948 | ||
1949 | if test -z "$lt_ECHO"; then | |
1950 | if test "X${echo_test_string+set}" != Xset; then | |
1951 | # find a string as large as possible, as long as the shell can cope with it | |
1952 | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | |
1953 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
1954 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
1955 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
1956 | then | |
1957 | break | |
1958 | fi | |
1959 | done | |
1960 | fi | |
1961 | ||
1962 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
1963 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
1964 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
1965 | : | |
1966 | else | |
1967 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
1968 | # backslashes. This makes it impossible to quote backslashes using | |
1969 | # echo "$something" | sed 's/\\/\\\\/g' | |
1970 | # | |
1971 | # So, first we look for a working echo in the user's PATH. | |
1972 | ||
1973 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
1974 | for dir in $PATH /usr/ucb; do | |
1975 | IFS="$lt_save_ifs" | |
1976 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
1977 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
1978 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
1979 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
1980 | ECHO="$dir/echo" | |
1981 | break | |
1982 | fi | |
1983 | done | |
1984 | IFS="$lt_save_ifs" | |
1985 | ||
1986 | if test "X$ECHO" = Xecho; then | |
1987 | # We didn't find a better echo, so look for alternatives. | |
1988 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
1989 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
1990 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
1991 | # This shell has a builtin print -r that does the trick. | |
1992 | ECHO='print -r' | |
1993 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
1994 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
1995 | # If we have ksh, try running configure again with it. | |
1996 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
1997 | export ORIGINAL_CONFIG_SHELL | |
1998 | CONFIG_SHELL=/bin/ksh | |
1999 | export CONFIG_SHELL | |
2000 | exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | |
2001 | else | |
2002 | # Try using printf. | |
2003 | ECHO='printf %s\n' | |
2004 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
2005 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
2006 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
2007 | # Cool, printf works | |
2008 | : | |
2009 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | |
2010 | test "X$echo_testing_string" = 'X\t' && | |
2011 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
2012 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
2013 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
2014 | export CONFIG_SHELL | |
2015 | SHELL="$CONFIG_SHELL" | |
2016 | export SHELL | |
2017 | ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | |
2018 | elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | |
2019 | test "X$echo_testing_string" = 'X\t' && | |
2020 | echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
2021 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
2022 | ECHO="$CONFIG_SHELL [$]0 --fallback-echo" | |
2023 | else | |
2024 | # maybe with a smaller string... | |
2025 | prev=: | |
2026 | ||
2027 | for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | |
2028 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
2029 | then | |
2030 | break | |
2031 | fi | |
2032 | prev="$cmd" | |
2033 | done | |
2034 | ||
2035 | if test "$prev" != 'sed 50q "[$]0"'; then | |
2036 | echo_test_string=`eval $prev` | |
2037 | export echo_test_string | |
2038 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | |
2039 | else | |
2040 | # Oops. We lost completely, so just stick with echo. | |
2041 | ECHO=echo | |
2042 | fi | |
2043 | fi | |
2044 | fi | |
2045 | fi | |
2046 | fi | |
2047 | fi | |
2048 | ||
2049 | # Copy echo and quote the copy suitably for passing to libtool from | |
2050 | # the Makefile, instead of quoting the original, which is used later. | |
2051 | lt_ECHO=$ECHO | |
2052 | if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | |
2053 | lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | |
2054 | fi | |
2055 | ||
2056 | AC_SUBST(lt_ECHO) | |
2057 | ]) | |
2006 | m4_ifdef([_AS_DETECT_SUGGESTED], | |
2007 | [_AS_DETECT_SUGGESTED([ | |
2008 | test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( | |
2009 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
2010 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
2011 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
2012 | PATH=/empty FPATH=/empty; export PATH FPATH | |
2013 | test "X`printf %s $ECHO`" = "X$ECHO" \ | |
2014 | || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) | |
2015 | ||
2058 | 2016 | _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) |
2059 | _LT_DECL([], [ECHO], [1], | |
2060 | [An echo program that does not interpret backslashes]) | |
2017 | _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) | |
2061 | 2018 | ])# _LT_PROG_ECHO_BACKSLASH |
2062 | 2019 | |
2063 | 2020 | |
2089 | 2046 | ;; |
2090 | 2047 | *-*-irix6*) |
2091 | 2048 | # Find out which ABI we are using. |
2092 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext | |
2049 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | |
2093 | 2050 | if AC_TRY_EVAL(ac_compile); then |
2094 | 2051 | if test "$lt_cv_prog_gnu_ld" = yes; then |
2095 | 2052 | case `/usr/bin/file conftest.$ac_objext` in |
2241 | 2198 | esac |
2242 | 2199 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
2243 | 2200 | fi |
2201 | ||
2202 | case $host_os in | |
2203 | darwin*) | |
2204 | lock_old_archive_extraction=yes ;; | |
2205 | *) | |
2206 | lock_old_archive_extraction=no ;; | |
2207 | esac | |
2244 | 2208 | _LT_DECL([], [old_postinstall_cmds], [2]) |
2245 | 2209 | _LT_DECL([], [old_postuninstall_cmds], [2]) |
2246 | 2210 | _LT_TAGDECL([], [old_archive_cmds], [2], |
2247 | 2211 | [Commands used to build an old-style archive]) |
2212 | _LT_DECL([], [lock_old_archive_extraction], [0], | |
2213 | [Whether to use a lock for old archive extraction]) | |
2248 | 2214 | ])# _LT_CMD_OLD_ARCHIVE |
2249 | 2215 | |
2250 | 2216 | |
2269 | 2235 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
2270 | 2236 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
2271 | 2237 | -e 's:$: $lt_compiler_flag:'` |
2272 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | |
2238 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | |
2273 | 2239 | (eval "$lt_compile" 2>conftest.err) |
2274 | 2240 | ac_status=$? |
2275 | 2241 | cat conftest.err >&AS_MESSAGE_LOG_FD |
2276 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
2242 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
2277 | 2243 | if (exit $ac_status) && test -s "$ac_outfile"; then |
2278 | 2244 | # The compiler can only warn and ignore the option if not recognized |
2279 | 2245 | # So say no if there are warnings other than the usual output. |
2280 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
2246 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
2281 | 2247 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
2282 | 2248 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
2283 | 2249 | $2=yes |
2317 | 2283 | if test -s conftest.err; then |
2318 | 2284 | # Append any errors to the config.log. |
2319 | 2285 | cat conftest.err 1>&AS_MESSAGE_LOG_FD |
2320 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
2286 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
2321 | 2287 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
2322 | 2288 | if diff conftest.exp conftest.er2 >/dev/null; then |
2323 | 2289 | $2=yes |
2377 | 2343 | # the test eventually succeeds (with a max line length of 256k). |
2378 | 2344 | # Instead, let's just punt: use the minimum linelength reported by |
2379 | 2345 | # all of the supported platforms: 8192 (on NT/2K/XP). |
2346 | lt_cv_sys_max_cmd_len=8192; | |
2347 | ;; | |
2348 | ||
2349 | mint*) | |
2350 | # On MiNT this can take a long time and run out of memory. | |
2380 | 2351 | lt_cv_sys_max_cmd_len=8192; |
2381 | 2352 | ;; |
2382 | 2353 | |
2444 | 2415 | # If test is not a shell built-in, we'll probably end up computing a |
2445 | 2416 | # maximum length that is only half of the actual maximum length, but |
2446 | 2417 | # we can't tell. |
2447 | while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
2448 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
2418 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
2419 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
2449 | 2420 | test $i != 17 # 1/2 MB should be enough |
2450 | 2421 | do |
2451 | 2422 | i=`expr $i + 1` |
2496 | 2467 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
2497 | 2468 | lt_status=$lt_dlunknown |
2498 | 2469 | cat > conftest.$ac_ext <<_LT_EOF |
2499 | [#line __oline__ "configure" | |
2470 | [#line $LINENO "configure" | |
2500 | 2471 | #include "confdefs.h" |
2501 | 2472 | |
2502 | 2473 | #if HAVE_DLFCN_H |
2537 | 2508 | # endif |
2538 | 2509 | #endif |
2539 | 2510 | |
2540 | void fnord() { int i=42;} | |
2511 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
2512 | correspondingly for the symbols needed. */ | |
2513 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
2514 | void fnord () __attribute__((visibility("default"))); | |
2515 | #endif | |
2516 | ||
2517 | void fnord () { int i=42; } | |
2541 | 2518 | int main () |
2542 | 2519 | { |
2543 | 2520 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
2546 | 2523 | if (self) |
2547 | 2524 | { |
2548 | 2525 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
2549 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
2526 | else | |
2527 | { | |
2528 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
2529 | else puts (dlerror ()); | |
2530 | } | |
2550 | 2531 | /* dlclose (self); */ |
2551 | 2532 | } |
2552 | 2533 | else |
2722 | 2703 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
2723 | 2704 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
2724 | 2705 | -e 's:$: $lt_compiler_flag:'` |
2725 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | |
2706 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | |
2726 | 2707 | (eval "$lt_compile" 2>out/conftest.err) |
2727 | 2708 | ac_status=$? |
2728 | 2709 | cat out/conftest.err >&AS_MESSAGE_LOG_FD |
2729 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
2730 | 2711 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
2731 | 2712 | then |
2732 | 2713 | # The compiler can only warn and ignore the option if not recognized |
2733 | 2714 | # So say no if there are warnings |
2734 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
2715 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
2735 | 2716 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
2736 | 2717 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
2737 | 2718 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
2890 | 2871 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
2891 | 2872 | m4_require([_LT_DECL_OBJDUMP])dnl |
2892 | 2873 | m4_require([_LT_DECL_SED])dnl |
2874 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | |
2893 | 2875 | AC_MSG_CHECKING([dynamic linker characteristics]) |
2894 | 2876 | m4_if([$1], |
2895 | 2877 | [], [ |
2898 | 2880 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
2899 | 2881 | *) lt_awk_arg="/^libraries:/" ;; |
2900 | 2882 | esac |
2901 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
2902 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
2883 | case $host_os in | |
2884 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; | |
2885 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
2886 | esac | |
2887 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
2888 | case $lt_search_path_spec in | |
2889 | *\;*) | |
2903 | 2890 | # if the path contains ";" then we assume it to be the separator |
2904 | 2891 | # otherwise default to the standard path separator (i.e. ":") - it is |
2905 | 2892 | # assumed that no part of a normal pathname contains ";" but that should |
2906 | 2893 | # okay in the real world where ";" in dirpaths is itself problematic. |
2907 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
2908 | else | |
2909 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
2910 | fi | |
2894 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
2895 | ;; | |
2896 | *) | |
2897 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
2898 | ;; | |
2899 | esac | |
2911 | 2900 | # Ok, now we have the path, separated by spaces, we can step through it |
2912 | 2901 | # and add multilib dir if necessary. |
2913 | 2902 | lt_tmp_lt_search_path_spec= |
2920 | 2909 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
2921 | 2910 | fi |
2922 | 2911 | done |
2923 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
2912 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
2924 | 2913 | BEGIN {RS=" "; FS="/|\n";} { |
2925 | 2914 | lt_foo=""; |
2926 | 2915 | lt_count=0; |
2940 | 2929 | if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
2941 | 2930 | if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
2942 | 2931 | }'` |
2943 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
2932 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
2933 | # for these hosts. | |
2934 | case $host_os in | |
2935 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
2936 | $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; | |
2937 | esac | |
2938 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
2944 | 2939 | else |
2945 | 2940 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
2946 | 2941 | fi]) |
3028 | 3023 | m68k) |
3029 | 3024 | library_names_spec='$libname.ixlibrary $libname.a' |
3030 | 3025 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
3031 | 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' | |
3026 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' | |
3032 | 3027 | ;; |
3033 | 3028 | esac |
3034 | 3029 | ;; |
3081 | 3076 | cygwin*) |
3082 | 3077 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
3083 | 3078 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
3084 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
3079 | m4_if([$1], [],[ | |
3080 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) | |
3085 | 3081 | ;; |
3086 | 3082 | mingw* | cegcc*) |
3087 | 3083 | # MinGW DLLs use traditional 'lib' prefix |
3088 | 3084 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
3089 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
3090 | if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | |
3091 | # It is most probably a Windows format PATH printed by | |
3092 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
3093 | # path with ; separators, and with drive letters. We can handle the | |
3094 | # drive letters (cygwin fileutils understands them), so leave them, | |
3095 | # especially as we might pass files found there to a mingw objdump, | |
3096 | # which wouldn't understand a cygwinified path. Ahh. | |
3097 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
3098 | else | |
3099 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
3100 | fi | |
3101 | 3085 | ;; |
3102 | 3086 | pw32*) |
3103 | 3087 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
3194 | 3178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
3195 | 3179 | soname_spec='${libname}${release}${shared_ext}$major' |
3196 | 3180 | shlibpath_var=LD_LIBRARY_PATH |
3181 | hardcode_into_libs=yes | |
3182 | ;; | |
3183 | ||
3184 | haiku*) | |
3185 | version_type=linux | |
3186 | need_lib_prefix=no | |
3187 | need_version=no | |
3188 | dynamic_linker="$host_os runtime_loader" | |
3189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
3190 | soname_spec='${libname}${release}${shared_ext}$major' | |
3191 | shlibpath_var=LIBRARY_PATH | |
3192 | shlibpath_overrides_runpath=yes | |
3193 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
3197 | 3194 | hardcode_into_libs=yes |
3198 | 3195 | ;; |
3199 | 3196 | |
3239 | 3236 | soname_spec='${libname}${release}${shared_ext}$major' |
3240 | 3237 | ;; |
3241 | 3238 | esac |
3242 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
3239 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
3243 | 3240 | postinstall_cmds='chmod 555 $lib' |
3241 | # or fails outright, so override atomically: | |
3242 | install_override_mode=555 | |
3244 | 3243 | ;; |
3245 | 3244 | |
3246 | 3245 | interix[[3-9]]*) |
3298 | 3297 | ;; |
3299 | 3298 | |
3300 | 3299 | # This must be Linux ELF. |
3301 | linux* | k*bsd*-gnu) | |
3300 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
3302 | 3301 | version_type=linux |
3303 | 3302 | need_lib_prefix=no |
3304 | 3303 | need_version=no |
3307 | 3306 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
3308 | 3307 | shlibpath_var=LD_LIBRARY_PATH |
3309 | 3308 | shlibpath_overrides_runpath=no |
3309 | ||
3310 | 3310 | # Some binutils ld are patched to set DT_RUNPATH |
3311 | save_LDFLAGS=$LDFLAGS | |
3312 | save_libdir=$libdir | |
3313 | eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ | |
3314 | LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" | |
3315 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | |
3316 | [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], | |
3317 | [shlibpath_overrides_runpath=yes])]) | |
3318 | LDFLAGS=$save_LDFLAGS | |
3319 | libdir=$save_libdir | |
3311 | AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], | |
3312 | [lt_cv_shlibpath_overrides_runpath=no | |
3313 | save_LDFLAGS=$LDFLAGS | |
3314 | save_libdir=$libdir | |
3315 | eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ | |
3316 | LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" | |
3317 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | |
3318 | [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], | |
3319 | [lt_cv_shlibpath_overrides_runpath=yes])]) | |
3320 | LDFLAGS=$save_LDFLAGS | |
3321 | libdir=$save_libdir | |
3322 | ]) | |
3323 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
3320 | 3324 | |
3321 | 3325 | # This implies no fast_install, which is unacceptable. |
3322 | 3326 | # Some rework will be needed to allow for fast_install |
3328 | 3332 | |
3329 | 3333 | # Append ld.so.conf contents to the search path |
3330 | 3334 | if test -f /etc/ld.so.conf; then |
3331 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
3335 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
3332 | 3336 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
3337 | ||
3333 | 3338 | fi |
3334 | 3339 | |
3335 | 3340 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
3561 | 3566 | The last name is the one that the linker finds with -lNAME]]) |
3562 | 3567 | _LT_DECL([], [soname_spec], [1], |
3563 | 3568 | [[The coded name of the library, if different from the real name]]) |
3569 | _LT_DECL([], [install_override_mode], [1], | |
3570 | [Permission mode override for installation of shared libraries]) | |
3564 | 3571 | _LT_DECL([], [postinstall_cmds], [2], |
3565 | 3572 | [Command to use after installation of a shared archive]) |
3566 | 3573 | _LT_DECL([], [postuninstall_cmds], [2], |
3673 | 3680 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
3674 | 3681 | m4_require([_LT_DECL_SED])dnl |
3675 | 3682 | m4_require([_LT_DECL_EGREP])dnl |
3683 | m4_require([_LT_PROG_ECHO_BACKSLASH])dnl | |
3676 | 3684 | |
3677 | 3685 | AC_ARG_WITH([gnu-ld], |
3678 | 3686 | [AS_HELP_STRING([--with-gnu-ld], |
3802 | 3810 | fi |
3803 | 3811 | ;; |
3804 | 3812 | esac |
3805 | _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl | |
3806 | _LT_DECL([], [reload_cmds], [2])dnl | |
3813 | _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl | |
3814 | _LT_TAGDECL([], [reload_cmds], [2])dnl | |
3807 | 3815 | ])# _LT_CMD_RELOAD |
3808 | 3816 | |
3809 | 3817 | |
3855 | 3863 | # Base MSYS/MinGW do not provide the 'file' command needed by |
3856 | 3864 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
3857 | 3865 | # unless we find 'file', for example because we are cross-compiling. |
3858 | if ( file / ) >/dev/null 2>&1; then | |
3866 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
3867 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
3859 | 3868 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3860 | 3869 | lt_cv_file_magic_cmd='func_win32_libid' |
3861 | 3870 | else |
3862 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3871 | # Keep this pattern in sync with the one in func_win32_libid. | |
3872 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
3863 | 3873 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3864 | 3874 | fi |
3865 | 3875 | ;; |
3866 | 3876 | |
3867 | cegcc) | |
3877 | cegcc*) | |
3868 | 3878 | # use the weaker test based on 'objdump'. See mingw*. |
3869 | 3879 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
3870 | 3880 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
3894 | 3904 | lt_cv_deplibs_check_method=pass_all |
3895 | 3905 | ;; |
3896 | 3906 | |
3907 | haiku*) | |
3908 | lt_cv_deplibs_check_method=pass_all | |
3909 | ;; | |
3910 | ||
3897 | 3911 | hpux10.20* | hpux11*) |
3898 | 3912 | lt_cv_file_magic_cmd=/usr/bin/file |
3899 | 3913 | case $host_cpu in |
3902 | 3916 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3903 | 3917 | ;; |
3904 | 3918 | hppa*64*) |
3905 | [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]'] | |
3919 | [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] | |
3906 | 3920 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3907 | 3921 | ;; |
3908 | 3922 | *) |
3909 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' | |
3923 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' | |
3910 | 3924 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3911 | 3925 | ;; |
3912 | 3926 | esac |
3928 | 3942 | ;; |
3929 | 3943 | |
3930 | 3944 | # This must be Linux ELF. |
3931 | linux* | k*bsd*-gnu) | |
3945 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
3932 | 3946 | lt_cv_deplibs_check_method=pass_all |
3933 | 3947 | ;; |
3934 | 3948 | |
4070 | 4084 | NM="$lt_cv_path_NM" |
4071 | 4085 | else |
4072 | 4086 | # Didn't find any BSD compatible name lister, look for dumpbin. |
4073 | AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) | |
4087 | if test -n "$DUMPBIN"; then : | |
4088 | # Let the user override the test. | |
4089 | else | |
4090 | AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) | |
4091 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
4092 | *COFF*) | |
4093 | DUMPBIN="$DUMPBIN -symbols" | |
4094 | ;; | |
4095 | *) | |
4096 | DUMPBIN=: | |
4097 | ;; | |
4098 | esac | |
4099 | fi | |
4074 | 4100 | AC_SUBST([DUMPBIN]) |
4075 | 4101 | if test "$DUMPBIN" != ":"; then |
4076 | 4102 | NM="$DUMPBIN" |
4083 | 4109 | AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
4084 | 4110 | [lt_cv_nm_interface="BSD nm" |
4085 | 4111 | echo "int some_variable = 0;" > conftest.$ac_ext |
4086 | (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | |
4112 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | |
4087 | 4113 | (eval "$ac_compile" 2>conftest.err) |
4088 | 4114 | cat conftest.err >&AS_MESSAGE_LOG_FD |
4089 | (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) | |
4115 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) | |
4090 | 4116 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4091 | 4117 | cat conftest.err >&AS_MESSAGE_LOG_FD |
4092 | (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) | |
4118 | (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) | |
4093 | 4119 | cat conftest.out >&AS_MESSAGE_LOG_FD |
4094 | 4120 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
4095 | 4121 | lt_cv_nm_interface="MS dumpbin" |
4112 | 4138 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4113 | 4139 | LIBM= |
4114 | 4140 | case $host in |
4115 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | |
4141 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | |
4116 | 4142 | # These system don't have libm, or don't need it |
4117 | 4143 | ;; |
4118 | 4144 | *-ncr-sysv4.3*) |
4140 | 4166 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
4141 | 4167 | |
4142 | 4168 | if test "$GCC" = yes; then |
4143 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | |
4169 | case $cc_basename in | |
4170 | nvcc*) | |
4171 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; | |
4172 | *) | |
4173 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; | |
4174 | esac | |
4144 | 4175 | |
4145 | 4176 | _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
4146 | 4177 | lt_cv_prog_compiler_rtti_exceptions, |
4157 | 4188 | m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
4158 | 4189 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4159 | 4190 | AC_REQUIRE([AC_PROG_CC])dnl |
4191 | AC_REQUIRE([AC_PROG_AWK])dnl | |
4160 | 4192 | AC_REQUIRE([LT_PATH_NM])dnl |
4161 | 4193 | AC_REQUIRE([LT_PATH_LD])dnl |
4162 | 4194 | m4_require([_LT_DECL_SED])dnl |
4282 | 4314 | if AC_TRY_EVAL(ac_compile); then |
4283 | 4315 | # Now try to grab the symbols. |
4284 | 4316 | nlist=conftest.nm |
4285 | if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then | |
4317 | if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then | |
4286 | 4318 | # Try sorting and uniquifying the output. |
4287 | 4319 | if sort "$nlist" | uniq > "$nlist"T; then |
4288 | 4320 | mv -f "$nlist"T "$nlist" |
4443 | 4475 | *djgpp*) |
4444 | 4476 | # DJGPP does not support shared libraries at all |
4445 | 4477 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4478 | ;; | |
4479 | haiku*) | |
4480 | # PIC is the default for Haiku. | |
4481 | # The "-static" flag exists, but is broken. | |
4482 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
4446 | 4483 | ;; |
4447 | 4484 | interix[[3-9]]*) |
4448 | 4485 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
4549 | 4586 | ;; |
4550 | 4587 | esac |
4551 | 4588 | ;; |
4552 | linux* | k*bsd*-gnu) | |
4589 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4553 | 4590 | case $cc_basename in |
4554 | 4591 | KCC*) |
4555 | 4592 | # KAI C++ Compiler |
4582 | 4619 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4583 | 4620 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4584 | 4621 | ;; |
4585 | xlc* | xlC*) | |
4586 | # IBM XL 8.0 on PPC | |
4622 | xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) | |
4623 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
4587 | 4624 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4588 | 4625 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
4589 | 4626 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4645 | 4682 | ;; |
4646 | 4683 | solaris*) |
4647 | 4684 | case $cc_basename in |
4648 | CC*) | |
4685 | CC* | sunCC*) | |
4649 | 4686 | # Sun C++ 4.2, 5.x and Centerline C++ |
4650 | 4687 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4651 | 4688 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4749 | 4786 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
4750 | 4787 | ;; |
4751 | 4788 | |
4789 | haiku*) | |
4790 | # PIC is the default for Haiku. | |
4791 | # The "-static" flag exists, but is broken. | |
4792 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
4793 | ;; | |
4794 | ||
4752 | 4795 | hpux*) |
4753 | 4796 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
4754 | 4797 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
4789 | 4832 | |
4790 | 4833 | *) |
4791 | 4834 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4835 | ;; | |
4836 | esac | |
4837 | ||
4838 | case $cc_basename in | |
4839 | nvcc*) # Cuda Compiler Driver 2.2 | |
4840 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' | |
4841 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' | |
4792 | 4842 | ;; |
4793 | 4843 | esac |
4794 | 4844 | else |
4833 | 4883 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4834 | 4884 | ;; |
4835 | 4885 | |
4836 | linux* | k*bsd*-gnu) | |
4886 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4837 | 4887 | case $cc_basename in |
4838 | 4888 | # old Intel for x86_64 which still supported -KPIC. |
4839 | 4889 | ecc*) |
4854 | 4904 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
4855 | 4905 | _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
4856 | 4906 | ;; |
4857 | pgcc* | pgf77* | pgf90* | pgf95*) | |
4907 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
4858 | 4908 | # Portland Group compilers (*not* the Pentium gcc compiler, |
4859 | 4909 | # which looks to be a dead project) |
4860 | 4910 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4866 | 4916 | # All Alpha code is PIC. |
4867 | 4917 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4868 | 4918 | ;; |
4869 | xl*) | |
4870 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
4919 | xl* | bgxl* | bgf* | mpixl*) | |
4920 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
4871 | 4921 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4872 | 4922 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
4873 | 4923 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4874 | 4924 | ;; |
4875 | 4925 | *) |
4876 | 4926 | case `$CC -V 2>&1 | sed 5q` in |
4927 | *Sun\ F* | *Sun*Fortran*) | |
4928 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
4929 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4930 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4931 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | |
4932 | ;; | |
4877 | 4933 | *Sun\ C*) |
4878 | 4934 | # Sun C 5.9 |
4879 | 4935 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4880 | 4936 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4881 | 4937 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4882 | 4938 | ;; |
4883 | *Sun\ F*) | |
4884 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
4885 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4886 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4887 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | |
4888 | ;; | |
4889 | 4939 | esac |
4890 | 4940 | ;; |
4891 | 4941 | esac |
4916 | 4966 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4917 | 4967 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4918 | 4968 | case $cc_basename in |
4919 | f77* | f90* | f95*) | |
4969 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
4920 | 4970 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
4921 | 4971 | *) |
4922 | 4972 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
5026 | 5076 | aix[[4-9]]*) |
5027 | 5077 | # If we're using GNU nm, then we don't want the "-C" option. |
5028 | 5078 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
5079 | # Also, AIX nm treats weak defined symbols like other global defined | |
5080 | # symbols, whereas GNU nm marks them as "W". | |
5029 | 5081 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
5030 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
5082 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
5031 | 5083 | else |
5032 | 5084 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
5033 | 5085 | fi |
5105 | 5157 | esac |
5106 | 5158 | |
5107 | 5159 | _LT_TAGVAR(ld_shlibs, $1)=yes |
5160 | ||
5161 | # On some targets, GNU ld is compatible enough with the native linker | |
5162 | # that we're better off using the native interface for both. | |
5163 | lt_use_gnu_ld_interface=no | |
5108 | 5164 | if test "$with_gnu_ld" = yes; then |
5165 | case $host_os in | |
5166 | aix*) | |
5167 | # The AIX port of GNU ld has always aspired to compatibility | |
5168 | # with the native linker. However, as the warning in the GNU ld | |
5169 | # block says, versions before 2.19.5* couldn't really create working | |
5170 | # shared libraries, regardless of the interface used. | |
5171 | case `$LD -v 2>&1` in | |
5172 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
5173 | *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; | |
5174 | *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; | |
5175 | *) | |
5176 | lt_use_gnu_ld_interface=yes | |
5177 | ;; | |
5178 | esac | |
5179 | ;; | |
5180 | *) | |
5181 | lt_use_gnu_ld_interface=yes | |
5182 | ;; | |
5183 | esac | |
5184 | fi | |
5185 | ||
5186 | if test "$lt_use_gnu_ld_interface" = yes; then | |
5109 | 5187 | # If archive_cmds runs LD, not CC, wlarc should be empty |
5110 | 5188 | wlarc='${wl}' |
5111 | 5189 | |
5123 | 5201 | fi |
5124 | 5202 | supports_anon_versioning=no |
5125 | 5203 | case `$LD -v 2>&1` in |
5204 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
5126 | 5205 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
5127 | 5206 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
5128 | 5207 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
5138 | 5217 | _LT_TAGVAR(ld_shlibs, $1)=no |
5139 | 5218 | cat <<_LT_EOF 1>&2 |
5140 | 5219 | |
5141 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
5220 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
5142 | 5221 | *** to be unable to reliably create shared libraries on AIX. |
5143 | 5222 | *** Therefore, libtool is disabling shared libraries support. If you |
5144 | *** really care for shared libraries, you may want to modify your PATH | |
5145 | *** so that a non-GNU linker is found, and then restart. | |
5223 | *** really care for shared libraries, you may want to install binutils | |
5224 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
5225 | *** You will then need to restart the configuration process. | |
5146 | 5226 | |
5147 | 5227 | _LT_EOF |
5148 | 5228 | fi |
5178 | 5258 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
5179 | 5259 | # as there is no search path for DLLs. |
5180 | 5260 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5261 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
5181 | 5262 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5182 | 5263 | _LT_TAGVAR(always_export_symbols, $1)=no |
5183 | 5264 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5199 | 5280 | fi |
5200 | 5281 | ;; |
5201 | 5282 | |
5283 | haiku*) | |
5284 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5285 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
5286 | ;; | |
5287 | ||
5202 | 5288 | interix[[3-9]]*) |
5203 | 5289 | _LT_TAGVAR(hardcode_direct, $1)=no |
5204 | 5290 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5214 | 5300 | _LT_TAGVAR(archive_expsym_cmds, $1)='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' |
5215 | 5301 | ;; |
5216 | 5302 | |
5217 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
5303 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
5218 | 5304 | tmp_diet=no |
5219 | 5305 | if test "$host_os" = linux-dietlibc; then |
5220 | 5306 | case $cc_basename in |
5228 | 5314 | tmp_sharedflag='-shared' |
5229 | 5315 | case $cc_basename,$host_cpu in |
5230 | 5316 | pgcc*) # Portland Group C compiler |
5231 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
5317 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
5232 | 5318 | tmp_addflag=' $pic_flag' |
5233 | 5319 | ;; |
5234 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
5235 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
5320 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
5321 | # Portland Group f77 and f90 compilers | |
5322 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
5236 | 5323 | tmp_addflag=' $pic_flag -Mnomain' ;; |
5237 | 5324 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
5238 | 5325 | tmp_addflag=' -i_dynamic' ;; |
5243 | 5330 | lf95*) # Lahey Fortran 8.1 |
5244 | 5331 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
5245 | 5332 | tmp_sharedflag='--shared' ;; |
5246 | xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
5333 | xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
5247 | 5334 | tmp_sharedflag='-qmkshrobj' |
5248 | 5335 | tmp_addflag= ;; |
5336 | nvcc*) # Cuda Compiler Driver 2.2 | |
5337 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
5338 | _LT_TAGVAR(compiler_needs_object, $1)=yes | |
5339 | ;; | |
5249 | 5340 | esac |
5250 | 5341 | case `$CC -V 2>&1 | sed 5q` in |
5251 | 5342 | *Sun\ C*) # Sun C 5.9 |
5252 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
5343 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
5253 | 5344 | _LT_TAGVAR(compiler_needs_object, $1)=yes |
5254 | 5345 | tmp_sharedflag='-G' ;; |
5255 | 5346 | *Sun\ F*) # Sun Fortran 8.3 |
5265 | 5356 | fi |
5266 | 5357 | |
5267 | 5358 | case $cc_basename in |
5268 | xlf*) | |
5359 | xlf* | bgf* | bgxlf* | mpixlf*) | |
5269 | 5360 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
5270 | 5361 | _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
5271 | 5362 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5272 | 5363 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' |
5273 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
5364 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
5274 | 5365 | if test "x$supports_anon_versioning" = xyes; then |
5275 | 5366 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
5276 | 5367 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
5277 | 5368 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
5278 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
5369 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
5279 | 5370 | fi |
5280 | 5371 | ;; |
5281 | 5372 | esac |
5396 | 5487 | else |
5397 | 5488 | # If we're using GNU nm, then we don't want the "-C" option. |
5398 | 5489 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
5490 | # Also, AIX nm treats weak defined symbols like other global | |
5491 | # defined symbols, whereas GNU nm marks them as "W". | |
5399 | 5492 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
5400 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
5493 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
5401 | 5494 | else |
5402 | 5495 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
5403 | 5496 | fi |
5486 | 5579 | # empty executable. |
5487 | 5580 | _LT_SYS_MODULE_PATH_AIX |
5488 | 5581 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
5489 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
5582 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
5490 | 5583 | else |
5491 | 5584 | if test "$host_cpu" = ia64; then |
5492 | 5585 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
5501 | 5594 | # -berok will link without error, but may produce a broken library. |
5502 | 5595 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
5503 | 5596 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
5504 | # Exported symbols can be pulled into shared objects from archives | |
5505 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
5597 | if test "$with_gnu_ld" = yes; then | |
5598 | # We only use this code for GNU lds that support --whole-archive. | |
5599 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
5600 | else | |
5601 | # Exported symbols can be pulled into shared objects from archives | |
5602 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
5603 | fi | |
5506 | 5604 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
5507 | 5605 | # This is similar to how AIX traditionally builds its shared libraries. |
5508 | 5606 | _LT_TAGVAR(archive_expsym_cmds, $1)="\$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' |
5541 | 5639 | # Tell ltmain to make .dll files, not .so files. |
5542 | 5640 | shrext_cmds=".dll" |
5543 | 5641 | # FIXME: Setting linknames here is a bad hack. |
5544 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
5642 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
5545 | 5643 | # The linker will automatically build a .lib file if we build a DLL. |
5546 | 5644 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
5547 | 5645 | # FIXME: Should let the user specify the lib program. |
5608 | 5706 | ;; |
5609 | 5707 | |
5610 | 5708 | hpux10*) |
5611 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
5709 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
5612 | 5710 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5613 | 5711 | else |
5614 | 5712 | _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
5627 | 5725 | ;; |
5628 | 5726 | |
5629 | 5727 | hpux11*) |
5630 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
5728 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
5631 | 5729 | case $host_cpu in |
5632 | 5730 | hppa*64*) |
5633 | 5731 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
5648 | 5746 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
5649 | 5747 | ;; |
5650 | 5748 | *) |
5651 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
5749 | m4_if($1, [], [ | |
5750 | # Older versions of the 11.00 compiler do not understand -b yet | |
5751 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
5752 | _LT_LINKER_OPTION([if $CC understands -b], | |
5753 | _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], | |
5754 | [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], | |
5755 | [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], | |
5756 | [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) | |
5652 | 5757 | ;; |
5653 | 5758 | esac |
5654 | 5759 | fi |
5676 | 5781 | |
5677 | 5782 | irix5* | irix6* | nonstopux*) |
5678 | 5783 | if test "$GCC" = yes; then |
5679 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
5784 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
5680 | 5785 | # Try to use the -exported_symbol ld option, if it does not |
5681 | 5786 | # work, assume that -exports_file does not work either and |
5682 | 5787 | # implicitly export all symbols. |
5683 | 5788 | save_LDFLAGS="$LDFLAGS" |
5684 | 5789 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
5685 | 5790 | AC_LINK_IFELSE(int foo(void) {}, |
5686 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
5791 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
5687 | 5792 | ) |
5688 | 5793 | LDFLAGS="$save_LDFLAGS" |
5689 | 5794 | else |
5690 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
5691 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
5795 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
5796 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
5692 | 5797 | fi |
5693 | 5798 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
5694 | 5799 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5750 | 5855 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5751 | 5856 | _LT_TAGVAR(hardcode_minus_L, $1)=yes |
5752 | 5857 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5753 | _LT_TAGVAR(archive_cmds, $1)='$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' | |
5858 | _LT_TAGVAR(archive_cmds, $1)='$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' | |
5754 | 5859 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
5755 | 5860 | ;; |
5756 | 5861 | |
5757 | 5862 | osf3*) |
5758 | 5863 | if test "$GCC" = yes; then |
5759 | 5864 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
5760 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
5865 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
5761 | 5866 | else |
5762 | 5867 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
5763 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
5868 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
5764 | 5869 | fi |
5765 | 5870 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
5766 | 5871 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5770 | 5875 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
5771 | 5876 | if test "$GCC" = yes; then |
5772 | 5877 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
5773 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
5878 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
5774 | 5879 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
5775 | 5880 | else |
5776 | 5881 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
5777 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
5882 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
5778 | 5883 | _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
5779 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
5884 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
5780 | 5885 | |
5781 | 5886 | # Both c and cxx compiler support -rpath directly |
5782 | 5887 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
5967 | 6072 | # Test whether the compiler implicitly links with -lc since on some |
5968 | 6073 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
5969 | 6074 | # to ld, don't add -lc before -lgcc. |
5970 | AC_MSG_CHECKING([whether -lc should be explicitly linked in]) | |
5971 | $RM conftest* | |
5972 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
5973 | ||
5974 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | |
5975 | soname=conftest | |
5976 | lib=conftest | |
5977 | libobjs=conftest.$ac_objext | |
5978 | deplibs= | |
5979 | wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) | |
5980 | pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) | |
5981 | compiler_flags=-v | |
5982 | linker_flags=-v | |
5983 | verstring= | |
5984 | output_objdir=. | |
5985 | libname=conftest | |
5986 | lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) | |
5987 | _LT_TAGVAR(allow_undefined_flag, $1)= | |
5988 | if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) | |
5989 | then | |
5990 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
5991 | else | |
5992 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
5993 | fi | |
5994 | _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | |
5995 | else | |
5996 | cat conftest.err 1>&5 | |
5997 | fi | |
5998 | $RM conftest* | |
5999 | AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) | |
6075 | AC_CACHE_CHECK([whether -lc should be explicitly linked in], | |
6076 | [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), | |
6077 | [$RM conftest* | |
6078 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6079 | ||
6080 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | |
6081 | soname=conftest | |
6082 | lib=conftest | |
6083 | libobjs=conftest.$ac_objext | |
6084 | deplibs= | |
6085 | wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) | |
6086 | pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) | |
6087 | compiler_flags=-v | |
6088 | linker_flags=-v | |
6089 | verstring= | |
6090 | output_objdir=. | |
6091 | libname=conftest | |
6092 | lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) | |
6093 | _LT_TAGVAR(allow_undefined_flag, $1)= | |
6094 | if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) | |
6095 | then | |
6096 | lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6097 | else | |
6098 | lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
6099 | fi | |
6100 | _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | |
6101 | else | |
6102 | cat conftest.err 1>&5 | |
6103 | fi | |
6104 | $RM conftest* | |
6105 | ]) | |
6106 | _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) | |
6000 | 6107 | ;; |
6001 | 6108 | esac |
6002 | 6109 | fi |
6162 | 6269 | ])# _LT_LANG_C_CONFIG |
6163 | 6270 | |
6164 | 6271 | |
6165 | # _LT_PROG_CXX | |
6166 | # ------------ | |
6167 | # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ | |
6168 | # compiler, we have our own version here. | |
6169 | m4_defun([_LT_PROG_CXX], | |
6170 | [ | |
6171 | pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) | |
6172 | AC_PROG_CXX | |
6272 | # _LT_LANG_CXX_CONFIG([TAG]) | |
6273 | # -------------------------- | |
6274 | # Ensure that the configuration variables for a C++ compiler are suitably | |
6275 | # defined. These variables are subsequently used by _LT_CONFIG to write | |
6276 | # the compiler configuration to `libtool'. | |
6277 | m4_defun([_LT_LANG_CXX_CONFIG], | |
6278 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
6279 | m4_require([_LT_DECL_EGREP])dnl | |
6173 | 6280 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
6174 | 6281 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
6175 | 6282 | (test "X$CXX" != "Xg++"))) ; then |
6177 | 6284 | else |
6178 | 6285 | _lt_caught_CXX_error=yes |
6179 | 6286 | fi |
6180 | popdef([AC_MSG_ERROR]) | |
6181 | ])# _LT_PROG_CXX | |
6182 | ||
6183 | dnl aclocal-1.4 backwards compatibility: | |
6184 | dnl AC_DEFUN([_LT_PROG_CXX], []) | |
6185 | ||
6186 | ||
6187 | # _LT_LANG_CXX_CONFIG([TAG]) | |
6188 | # -------------------------- | |
6189 | # Ensure that the configuration variables for a C++ compiler are suitably | |
6190 | # defined. These variables are subsequently used by _LT_CONFIG to write | |
6191 | # the compiler configuration to `libtool'. | |
6192 | m4_defun([_LT_LANG_CXX_CONFIG], | |
6193 | [AC_REQUIRE([_LT_PROG_CXX])dnl | |
6194 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
6195 | m4_require([_LT_DECL_EGREP])dnl | |
6196 | 6287 | |
6197 | 6288 | AC_LANG_PUSH(C++) |
6198 | 6289 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6214 | 6305 | _LT_TAGVAR(module_expsym_cmds, $1)= |
6215 | 6306 | _LT_TAGVAR(link_all_deplibs, $1)=unknown |
6216 | 6307 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
6308 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
6309 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
6217 | 6310 | _LT_TAGVAR(no_undefined_flag, $1)= |
6218 | 6311 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
6219 | 6312 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
6316 | 6409 | # Commands to make compiler produce verbose output that lists |
6317 | 6410 | # what "hidden" libraries, object files and flags are used when |
6318 | 6411 | # linking a shared library. |
6319 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
6412 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
6320 | 6413 | |
6321 | 6414 | else |
6322 | 6415 | GXX=no |
6428 | 6521 | _LT_SYS_MODULE_PATH_AIX |
6429 | 6522 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
6430 | 6523 | |
6431 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
6524 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
6432 | 6525 | else |
6433 | 6526 | if test "$host_cpu" = ia64; then |
6434 | 6527 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
6443 | 6536 | # -berok will link without error, but may produce a broken library. |
6444 | 6537 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
6445 | 6538 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
6446 | # Exported symbols can be pulled into shared objects from archives | |
6447 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
6539 | if test "$with_gnu_ld" = yes; then | |
6540 | # We only use this code for GNU lds that support --whole-archive. | |
6541 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
6542 | else | |
6543 | # Exported symbols can be pulled into shared objects from archives | |
6544 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
6545 | fi | |
6448 | 6546 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
6449 | 6547 | # This is similar to how AIX traditionally builds its shared |
6450 | 6548 | # libraries. |
6477 | 6575 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
6478 | 6576 | # as there is no search path for DLLs. |
6479 | 6577 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
6578 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
6480 | 6579 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
6481 | 6580 | _LT_TAGVAR(always_export_symbols, $1)=no |
6482 | 6581 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
6537 | 6636 | gnu*) |
6538 | 6637 | ;; |
6539 | 6638 | |
6639 | haiku*) | |
6640 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6641 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6642 | ;; | |
6643 | ||
6540 | 6644 | hpux9*) |
6541 | 6645 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
6542 | 6646 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6561 | 6665 | # explicitly linking system object files so we need to strip them |
6562 | 6666 | # from the output so that they don't get included in the library |
6563 | 6667 | # dependencies. |
6564 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
6668 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
6565 | 6669 | ;; |
6566 | 6670 | *) |
6567 | 6671 | if test "$GXX" = yes; then |
6626 | 6730 | # explicitly linking system object files so we need to strip them |
6627 | 6731 | # from the output so that they don't get included in the library |
6628 | 6732 | # dependencies. |
6629 | 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 "X$list" | $Xsed' | |
6733 | 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; func_echo_all "$list"' | |
6630 | 6734 | ;; |
6631 | 6735 | *) |
6632 | 6736 | if test "$GXX" = yes; then |
6669 | 6773 | case $cc_basename in |
6670 | 6774 | CC*) |
6671 | 6775 | # SGI C++ |
6672 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
6776 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
6673 | 6777 | |
6674 | 6778 | # Archives containing C++ object files must be created using |
6675 | 6779 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
6680 | 6784 | *) |
6681 | 6785 | if test "$GXX" = yes; then |
6682 | 6786 | if test "$with_gnu_ld" = no; then |
6683 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
6787 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
6684 | 6788 | else |
6685 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | |
6789 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | |
6686 | 6790 | fi |
6687 | 6791 | fi |
6688 | 6792 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
6693 | 6797 | _LT_TAGVAR(inherit_rpath, $1)=yes |
6694 | 6798 | ;; |
6695 | 6799 | |
6696 | linux* | k*bsd*-gnu) | |
6800 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6697 | 6801 | case $cc_basename in |
6698 | 6802 | KCC*) |
6699 | 6803 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
6711 | 6815 | # explicitly linking system object files so we need to strip them |
6712 | 6816 | # from the output so that they don't get included in the library |
6713 | 6817 | # dependencies. |
6714 | 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 "X$list" | $Xsed' | |
6818 | 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; func_echo_all "$list"' | |
6715 | 6819 | |
6716 | 6820 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
6717 | 6821 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
6748 | 6852 | pgCC* | pgcpp*) |
6749 | 6853 | # Portland Group C++ compiler |
6750 | 6854 | case `$CC -V` in |
6751 | *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) | |
6855 | *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) | |
6752 | 6856 | _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ |
6753 | 6857 | rm -rf $tpldir~ |
6754 | 6858 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
6755 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
6859 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
6756 | 6860 | _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ |
6757 | 6861 | rm -rf $tpldir~ |
6758 | 6862 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
6759 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
6863 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
6760 | 6864 | $RANLIB $oldlib' |
6761 | 6865 | _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ |
6762 | 6866 | rm -rf $tpldir~ |
6763 | 6867 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
6764 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
6868 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
6765 | 6869 | _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ |
6766 | 6870 | rm -rf $tpldir~ |
6767 | 6871 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
6768 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
6872 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
6769 | 6873 | ;; |
6770 | *) # Version 6 will use weak symbols | |
6874 | *) # Version 6 and above use weak symbols | |
6771 | 6875 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
6772 | 6876 | _LT_TAGVAR(archive_expsym_cmds, $1)='$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' |
6773 | 6877 | ;; |
6775 | 6879 | |
6776 | 6880 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
6777 | 6881 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
6778 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
6882 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
6779 | 6883 | ;; |
6780 | 6884 | cxx*) |
6781 | 6885 | # Compaq C++ |
6794 | 6898 | # explicitly linking system object files so we need to strip them |
6795 | 6899 | # from the output so that they don't get included in the library |
6796 | 6900 | # dependencies. |
6797 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' | |
6901 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' | |
6798 | 6902 | ;; |
6799 | xl*) | |
6903 | xl* | mpixl* | bgxl*) | |
6800 | 6904 | # IBM XL 8.0 on PPC, with GNU ld |
6801 | 6905 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6802 | 6906 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
6816 | 6920 | _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
6817 | 6921 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
6818 | 6922 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
6819 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
6923 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
6820 | 6924 | _LT_TAGVAR(compiler_needs_object, $1)=yes |
6821 | 6925 | |
6822 | 6926 | # Not sure whether something based on |
6823 | 6927 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
6824 | 6928 | # would be better. |
6825 | output_verbose_link_cmd='echo' | |
6929 | output_verbose_link_cmd='func_echo_all' | |
6826 | 6930 | |
6827 | 6931 | # Archives containing C++ object files must be created using |
6828 | 6932 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
6891 | 6995 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
6892 | 6996 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
6893 | 6997 | fi |
6894 | output_verbose_link_cmd=echo | |
6998 | output_verbose_link_cmd=func_echo_all | |
6895 | 6999 | else |
6896 | 7000 | _LT_TAGVAR(ld_shlibs, $1)=no |
6897 | 7001 | fi |
6926 | 7030 | case $host in |
6927 | 7031 | osf3*) |
6928 | 7032 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6929 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
7033 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
6930 | 7034 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6931 | 7035 | ;; |
6932 | 7036 | *) |
6933 | 7037 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6934 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
7038 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
6935 | 7039 | _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
6936 | 7040 | echo "-hidden">> $lib.exp~ |
6937 | $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | |
7041 | $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~ | |
6938 | 7042 | $RM $lib.exp' |
6939 | 7043 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
6940 | 7044 | ;; |
6950 | 7054 | # explicitly linking system object files so we need to strip them |
6951 | 7055 | # from the output so that they don't get included in the library |
6952 | 7056 | # dependencies. |
6953 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' | |
7057 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' | |
6954 | 7058 | ;; |
6955 | 7059 | *) |
6956 | 7060 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
6957 | 7061 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6958 | 7062 | case $host in |
6959 | 7063 | osf3*) |
6960 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
7064 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
6961 | 7065 | ;; |
6962 | 7066 | *) |
6963 | _LT_TAGVAR(archive_cmds, $1)='$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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
7067 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
6964 | 7068 | ;; |
6965 | 7069 | esac |
6966 | 7070 | |
6970 | 7074 | # Commands to make compiler produce verbose output that lists |
6971 | 7075 | # what "hidden" libraries, object files and flags are used when |
6972 | 7076 | # linking a shared library. |
6973 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
7077 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
6974 | 7078 | |
6975 | 7079 | else |
6976 | 7080 | # FIXME: insert proper C++ library support |
7006 | 7110 | |
7007 | 7111 | solaris*) |
7008 | 7112 | case $cc_basename in |
7009 | CC*) | |
7113 | CC* | sunCC*) | |
7010 | 7114 | # Sun C++ 4.2, 5.x and Centerline C++ |
7011 | 7115 | _LT_TAGVAR(archive_cmds_need_lc,$1)=yes |
7012 | 7116 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
7027 | 7131 | esac |
7028 | 7132 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
7029 | 7133 | |
7030 | output_verbose_link_cmd='echo' | |
7134 | output_verbose_link_cmd='func_echo_all' | |
7031 | 7135 | |
7032 | 7136 | # Archives containing C++ object files must be created using |
7033 | 7137 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
7054 | 7158 | # Commands to make compiler produce verbose output that lists |
7055 | 7159 | # what "hidden" libraries, object files and flags are used when |
7056 | 7160 | # linking a shared library. |
7057 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
7161 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
7058 | 7162 | else |
7059 | 7163 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
7060 | 7164 | # platform. |
7065 | 7169 | # Commands to make compiler produce verbose output that lists |
7066 | 7170 | # what "hidden" libraries, object files and flags are used when |
7067 | 7171 | # linking a shared library. |
7068 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
7172 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
7069 | 7173 | fi |
7070 | 7174 | |
7071 | 7175 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
7119 | 7223 | CC*) |
7120 | 7224 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7121 | 7225 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7226 | _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ | |
7227 | '"$_LT_TAGVAR(old_archive_cmds, $1)" | |
7228 | _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ | |
7229 | '"$_LT_TAGVAR(reload_cmds, $1)" | |
7122 | 7230 | ;; |
7123 | 7231 | *) |
7124 | 7232 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7365 | 7473 | |
7366 | 7474 | solaris*) |
7367 | 7475 | case $cc_basename in |
7368 | CC*) | |
7476 | CC* | sunCC*) | |
7369 | 7477 | # The more standards-conforming stlport4 library is |
7370 | 7478 | # incompatible with the Cstd library. Avoid specifying |
7371 | 7479 | # it if it's in CXXFLAGS. Ignore libCrun as |
7409 | 7517 | ])# _LT_SYS_HIDDEN_LIBDEPS |
7410 | 7518 | |
7411 | 7519 | |
7412 | # _LT_PROG_F77 | |
7413 | # ------------ | |
7414 | # Since AC_PROG_F77 is broken, in that it returns the empty string | |
7415 | # if there is no fortran compiler, we have our own version here. | |
7416 | m4_defun([_LT_PROG_F77], | |
7417 | [ | |
7418 | pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) | |
7419 | AC_PROG_F77 | |
7420 | if test -z "$F77" || test "X$F77" = "Xno"; then | |
7421 | _lt_disable_F77=yes | |
7422 | fi | |
7423 | popdef([AC_MSG_ERROR]) | |
7424 | ])# _LT_PROG_F77 | |
7425 | ||
7426 | dnl aclocal-1.4 backwards compatibility: | |
7427 | dnl AC_DEFUN([_LT_PROG_F77], []) | |
7428 | ||
7429 | ||
7430 | 7520 | # _LT_LANG_F77_CONFIG([TAG]) |
7431 | 7521 | # -------------------------- |
7432 | 7522 | # Ensure that the configuration variables for a Fortran 77 compiler are |
7433 | 7523 | # suitably defined. These variables are subsequently used by _LT_CONFIG |
7434 | 7524 | # to write the compiler configuration to `libtool'. |
7435 | 7525 | m4_defun([_LT_LANG_F77_CONFIG], |
7436 | [AC_REQUIRE([_LT_PROG_F77])dnl | |
7437 | AC_LANG_PUSH(Fortran 77) | |
7526 | [AC_LANG_PUSH(Fortran 77) | |
7527 | if test -z "$F77" || test "X$F77" = "Xno"; then | |
7528 | _lt_disable_F77=yes | |
7529 | fi | |
7438 | 7530 | |
7439 | 7531 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
7440 | 7532 | _LT_TAGVAR(allow_undefined_flag, $1)= |
7453 | 7545 | _LT_TAGVAR(module_expsym_cmds, $1)= |
7454 | 7546 | _LT_TAGVAR(link_all_deplibs, $1)=unknown |
7455 | 7547 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
7548 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
7549 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
7456 | 7550 | _LT_TAGVAR(no_undefined_flag, $1)= |
7457 | 7551 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
7458 | 7552 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
7552 | 7646 | ])# _LT_LANG_F77_CONFIG |
7553 | 7647 | |
7554 | 7648 | |
7555 | # _LT_PROG_FC | |
7556 | # ----------- | |
7557 | # Since AC_PROG_FC is broken, in that it returns the empty string | |
7558 | # if there is no fortran compiler, we have our own version here. | |
7559 | m4_defun([_LT_PROG_FC], | |
7560 | [ | |
7561 | pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) | |
7562 | AC_PROG_FC | |
7563 | if test -z "$FC" || test "X$FC" = "Xno"; then | |
7564 | _lt_disable_FC=yes | |
7565 | fi | |
7566 | popdef([AC_MSG_ERROR]) | |
7567 | ])# _LT_PROG_FC | |
7568 | ||
7569 | dnl aclocal-1.4 backwards compatibility: | |
7570 | dnl AC_DEFUN([_LT_PROG_FC], []) | |
7571 | ||
7572 | ||
7573 | 7649 | # _LT_LANG_FC_CONFIG([TAG]) |
7574 | 7650 | # ------------------------- |
7575 | 7651 | # Ensure that the configuration variables for a Fortran compiler are |
7576 | 7652 | # suitably defined. These variables are subsequently used by _LT_CONFIG |
7577 | 7653 | # to write the compiler configuration to `libtool'. |
7578 | 7654 | m4_defun([_LT_LANG_FC_CONFIG], |
7579 | [AC_REQUIRE([_LT_PROG_FC])dnl | |
7580 | AC_LANG_PUSH(Fortran) | |
7655 | [AC_LANG_PUSH(Fortran) | |
7656 | ||
7657 | if test -z "$FC" || test "X$FC" = "Xno"; then | |
7658 | _lt_disable_FC=yes | |
7659 | fi | |
7581 | 7660 | |
7582 | 7661 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
7583 | 7662 | _LT_TAGVAR(allow_undefined_flag, $1)= |
7596 | 7675 | _LT_TAGVAR(module_expsym_cmds, $1)= |
7597 | 7676 | _LT_TAGVAR(link_all_deplibs, $1)=unknown |
7598 | 7677 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
7678 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
7679 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
7599 | 7680 | _LT_TAGVAR(no_undefined_flag, $1)= |
7600 | 7681 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
7601 | 7682 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
7741 | 7822 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
7742 | 7823 | |
7743 | 7824 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
7825 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
7826 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
7744 | 7827 | |
7745 | 7828 | if test -n "$compiler"; then |
7746 | 7829 | _LT_COMPILER_NO_RTTI($1) |
8102 | 8185 | func_dirname () |
8103 | 8186 | { |
8104 | 8187 | # Extract subdirectory from the argument. |
8105 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
8188 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
8106 | 8189 | if test "X$func_dirname_result" = "X${1}"; then |
8107 | 8190 | func_dirname_result="${3}" |
8108 | 8191 | else |
8113 | 8196 | # func_basename file |
8114 | 8197 | func_basename () |
8115 | 8198 | { |
8116 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
8199 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
8117 | 8200 | } |
8118 | 8201 | |
8119 | 8202 | dnl func_dirname_and_basename |
8129 | 8212 | func_stripname () |
8130 | 8213 | { |
8131 | 8214 | case ${2} in |
8132 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
8133 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
8134 | *) func_stripname_result=`$ECHO "X${3}" \ | |
8135 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
8215 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
8216 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
8136 | 8217 | esac |
8137 | 8218 | } |
8138 | 8219 | |
8143 | 8224 | # func_opt_split |
8144 | 8225 | func_opt_split () |
8145 | 8226 | { |
8146 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
8147 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
8227 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
8228 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
8148 | 8229 | } |
8149 | 8230 | |
8150 | 8231 | # func_lo2o object |
8151 | 8232 | func_lo2o () |
8152 | 8233 | { |
8153 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
8234 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
8154 | 8235 | } |
8155 | 8236 | |
8156 | 8237 | # func_xform libobj-or-source |
8157 | 8238 | func_xform () |
8158 | 8239 | { |
8159 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` | |
8240 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'` | |
8160 | 8241 | } |
8161 | 8242 | |
8162 | 8243 | # func_arith arithmetic-term... |
8204 | 8285 | |
8205 | 8286 | # Helper functions for option handling. -*- Autoconf -*- |
8206 | 8287 | # |
8207 | # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | |
8288 | # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, | |
8289 | # Inc. | |
8208 | 8290 | # Written by Gary V. Vaughan, 2004 |
8209 | 8291 | # |
8210 | 8292 | # This file is free software; the Free Software Foundation gives |
8211 | 8293 | # unlimited permission to copy and/or distribute it, with or without |
8212 | 8294 | # modifications, as long as this notice is preserved. |
8213 | 8295 | |
8214 | # serial 6 ltoptions.m4 | |
8296 | # serial 7 ltoptions.m4 | |
8215 | 8297 | |
8216 | 8298 | # This is to help aclocal find these macros, as it can't see m4_define. |
8217 | 8299 | AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) |
8326 | 8408 | [enable_win32_dll=yes |
8327 | 8409 | |
8328 | 8410 | case $host in |
8329 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | |
8411 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | |
8330 | 8412 | AC_CHECK_TOOL(AS, as, false) |
8331 | 8413 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
8332 | 8414 | AC_CHECK_TOOL(OBJDUMP, objdump, false) |
8334 | 8416 | esac |
8335 | 8417 | |
8336 | 8418 | test -z "$AS" && AS=as |
8337 | _LT_DECL([], [AS], [0], [Assembler program])dnl | |
8419 | _LT_DECL([], [AS], [1], [Assembler program])dnl | |
8338 | 8420 | |
8339 | 8421 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
8340 | _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl | |
8422 | _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl | |
8341 | 8423 | |
8342 | 8424 | test -z "$OBJDUMP" && OBJDUMP=objdump |
8343 | _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl | |
8425 | _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl | |
8344 | 8426 | ])# win32-dll |
8345 | 8427 | |
8346 | 8428 | AU_DEFUN([AC_LIBTOOL_WIN32_DLL], |
8700 | 8782 | |
8701 | 8783 | # Generated from ltversion.in. |
8702 | 8784 | |
8703 | # serial 3017 ltversion.m4 | |
8785 | # serial 3175 ltversion.m4 | |
8704 | 8786 | # This file is part of GNU Libtool |
8705 | 8787 | |
8706 | m4_define([LT_PACKAGE_VERSION], [2.2.6b]) | |
8707 | m4_define([LT_PACKAGE_REVISION], [1.3017]) | |
8788 | m4_define([LT_PACKAGE_VERSION], [2.2.10]) | |
8789 | m4_define([LT_PACKAGE_REVISION], [1.3175]) | |
8708 | 8790 | |
8709 | 8791 | AC_DEFUN([LTVERSION_VERSION], |
8710 | [macro_version='2.2.6b' | |
8711 | macro_revision='1.3017' | |
8792 | [macro_version='2.2.10' | |
8793 | macro_revision='1.3175' | |
8712 | 8794 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
8713 | 8795 | _LT_DECL(, macro_revision, 0) |
8714 | 8796 | ]) |
8715 | 8797 | |
8716 | 8798 | # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- |
8717 | 8799 | # |
8718 | # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. | |
8800 | # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. | |
8719 | 8801 | # Written by Scott James Remnant, 2004. |
8720 | 8802 | # |
8721 | 8803 | # This file is free software; the Free Software Foundation gives |
8722 | 8804 | # unlimited permission to copy and/or distribute it, with or without |
8723 | 8805 | # modifications, as long as this notice is preserved. |
8724 | 8806 | |
8725 | # serial 4 lt~obsolete.m4 | |
8807 | # serial 5 lt~obsolete.m4 | |
8726 | 8808 | |
8727 | 8809 | # These exist entirely to fool aclocal when bootstrapping libtool. |
8728 | 8810 | # |
8792 | 8874 | m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) |
8793 | 8875 | m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) |
8794 | 8876 | m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) |
8795 | m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) | |
8796 | 8877 | m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) |
8797 | 8878 | m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) |
8798 | 8879 | m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) |
8805 | 8886 | m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) |
8806 | 8887 | m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) |
8807 | 8888 | m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) |
8808 | ||
8809 | # nls.m4 serial 3 (gettext-0.15) | |
8810 | dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc. | |
8889 | m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) | |
8890 | m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) | |
8891 | m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) | |
8892 | m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) | |
8893 | m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) | |
8894 | m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) | |
8895 | m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) | |
8896 | ||
8897 | # nls.m4 serial 5 (gettext-0.18) | |
8898 | dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, | |
8899 | dnl Inc. | |
8811 | 8900 | dnl This file is free software; the Free Software Foundation |
8812 | 8901 | dnl gives unlimited permission to copy and/or distribute it, |
8813 | 8902 | dnl with or without modifications, as long as this notice is preserved. |
8825 | 8914 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. |
8826 | 8915 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. |
8827 | 8916 | |
8828 | AC_PREREQ(2.50) | |
8917 | AC_PREREQ([2.50]) | |
8829 | 8918 | |
8830 | 8919 | AC_DEFUN([AM_NLS], |
8831 | 8920 | [ |
8832 | 8921 | AC_MSG_CHECKING([whether NLS is requested]) |
8833 | 8922 | dnl Default is enabled NLS |
8834 | AC_ARG_ENABLE(nls, | |
8923 | AC_ARG_ENABLE([nls], | |
8835 | 8924 | [ --disable-nls do not use Native Language Support], |
8836 | 8925 | USE_NLS=$enableval, USE_NLS=yes) |
8837 | AC_MSG_RESULT($USE_NLS) | |
8838 | AC_SUBST(USE_NLS) | |
8926 | AC_MSG_RESULT([$USE_NLS]) | |
8927 | AC_SUBST([USE_NLS]) | |
8839 | 8928 | ]) |
8840 | 8929 | |
8841 | 8930 | # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
8931 | # serial 1 (pkg-config-0.24) | |
8842 | 8932 | # |
8843 | 8933 | # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. |
8844 | 8934 | # |
8866 | 8956 | AC_DEFUN([PKG_PROG_PKG_CONFIG], |
8867 | 8957 | [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
8868 | 8958 | m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) |
8869 | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl | |
8959 | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) | |
8960 | AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) | |
8961 | AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) | |
8962 | ||
8870 | 8963 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
8871 | 8964 | AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
8872 | 8965 | fi |
8879 | 8972 | AC_MSG_RESULT([no]) |
8880 | 8973 | PKG_CONFIG="" |
8881 | 8974 | fi |
8882 | ||
8883 | 8975 | fi[]dnl |
8884 | 8976 | ])# PKG_PROG_PKG_CONFIG |
8885 | 8977 | |
8888 | 8980 | # Check to see whether a particular set of modules exists. Similar |
8889 | 8981 | # to PKG_CHECK_MODULES(), but does not set variables or print errors. |
8890 | 8982 | # |
8891 | # | |
8892 | # Similar to PKG_CHECK_MODULES, make sure that the first instance of | |
8893 | # this or PKG_CHECK_MODULES is called, or make sure to call | |
8894 | # PKG_CHECK_EXISTS manually | |
8983 | # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
8984 | # only at the first occurence in configure.ac, so if the first place | |
8985 | # it's called might be skipped (such as if it is within an "if", you | |
8986 | # have to call PKG_CHECK_EXISTS manually | |
8895 | 8987 | # -------------------------------------------------------------- |
8896 | 8988 | AC_DEFUN([PKG_CHECK_EXISTS], |
8897 | 8989 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
8898 | 8990 | if test -n "$PKG_CONFIG" && \ |
8899 | 8991 | AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
8900 | m4_ifval([$2], [$2], [:]) | |
8992 | m4_default([$2], [:]) | |
8901 | 8993 | m4_ifvaln([$3], [else |
8902 | 8994 | $3])dnl |
8903 | 8995 | fi]) |
8904 | ||
8905 | 8996 | |
8906 | 8997 | # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
8907 | 8998 | # --------------------------------------------- |
8955 | 9046 | See the pkg-config man page for more details.]) |
8956 | 9047 | |
8957 | 9048 | if test $pkg_failed = yes; then |
9049 | AC_MSG_RESULT([no]) | |
8958 | 9050 | _PKG_SHORT_ERRORS_SUPPORTED |
8959 | 9051 | if test $_pkg_short_errors_supported = yes; then |
8960 | 9052 | $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` |
8964 | 9056 | # Put the nasty error message in config.log where it belongs |
8965 | 9057 | echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
8966 | 9058 | |
8967 | ifelse([$4], , [AC_MSG_ERROR(dnl | |
9059 | m4_default([$4], [AC_MSG_ERROR( | |
8968 | 9060 | [Package requirements ($2) were not met: |
8969 | 9061 | |
8970 | 9062 | $$1_PKG_ERRORS |
8972 | 9064 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
8973 | 9065 | installed software in a non-standard prefix. |
8974 | 9066 | |
8975 | _PKG_TEXT | |
8976 | ])], | |
8977 | [AC_MSG_RESULT([no]) | |
8978 | $4]) | |
9067 | _PKG_TEXT]) | |
9068 | ]) | |
8979 | 9069 | elif test $pkg_failed = untried; then |
8980 | ifelse([$4], , [AC_MSG_FAILURE(dnl | |
9070 | AC_MSG_RESULT([no]) | |
9071 | m4_default([$4], [AC_MSG_FAILURE( | |
8981 | 9072 | [The pkg-config script could not be found or is too old. Make sure it |
8982 | 9073 | is in your PATH or set the PKG_CONFIG environment variable to the full |
8983 | 9074 | path to pkg-config. |
8984 | 9075 | |
8985 | 9076 | _PKG_TEXT |
8986 | 9077 | |
8987 | To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], | |
8988 | [$4]) | |
9078 | To get pkg-config, see <http://pkg-config.freedesktop.org/>.]) | |
9079 | ]) | |
8989 | 9080 | else |
8990 | 9081 | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
8991 | 9082 | $1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
8992 | 9083 | AC_MSG_RESULT([yes]) |
8993 | ifelse([$3], , :, [$3]) | |
9084 | $3 | |
8994 | 9085 | fi[]dnl |
8995 | 9086 | ])# PKG_CHECK_MODULES |
8996 | 9087 |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.65 for ibus-input-pad 0.1.4. | |
2 | # Generated by GNU Autoconf 2.66 for ibus-input-pad 1.4.0. | |
3 | 3 | # |
4 | 4 | # Report bugs to <http://code.google.com/p/input-pad/issues/entry>. |
5 | 5 | # |
6 | 6 | # |
7 | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | |
9 | # Inc. | |
8 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
9 | # Foundation, Inc. | |
10 | 10 | # |
11 | 11 | # |
12 | 12 | # This configure script is free software; the Free Software Foundation |
172 | 172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
173 | 173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
174 | 174 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
175 | test \$(( 1 + 1 )) = 2 || exit 1" | |
175 | test \$(( 1 + 1 )) = 2 || exit 1 | |
176 | ||
177 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
178 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
179 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
180 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
181 | PATH=/empty FPATH=/empty; export PATH FPATH | |
182 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
183 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
176 | 184 | if (eval "$as_required") 2>/dev/null; then : |
177 | 185 | as_have_required=yes |
178 | 186 | else |
318 | 326 | test -d "$as_dir" && break |
319 | 327 | done |
320 | 328 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
321 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
329 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
322 | 330 | |
323 | 331 | |
324 | 332 | } # as_fn_mkdir_p |
358 | 366 | fi # as_fn_arith |
359 | 367 | |
360 | 368 | |
361 | # as_fn_error ERROR [LINENO LOG_FD] | |
362 | # --------------------------------- | |
369 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
370 | # ---------------------------------------- | |
363 | 371 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
364 | 372 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
365 | # script with status $?, using 1 if that was 0. | |
373 | # script with STATUS, using 1 if that was 0. | |
366 | 374 | as_fn_error () |
367 | 375 | { |
368 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
369 | if test "$3"; then | |
370 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
371 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
376 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
377 | if test "$4"; then | |
378 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
379 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
372 | 380 | fi |
373 | $as_echo "$as_me: error: $1" >&2 | |
381 | $as_echo "$as_me: error: $2" >&2 | |
374 | 382 | as_fn_exit $as_status |
375 | 383 | } # as_fn_error |
376 | 384 | |
527 | 535 | # Sed expression to map a string onto a valid variable name. |
528 | 536 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
529 | 537 | |
530 | ||
531 | ||
532 | # Check that we are running under the correct shell. | |
533 | 538 | SHELL=${CONFIG_SHELL-/bin/sh} |
534 | ||
535 | case X$lt_ECHO in | |
536 | X*--fallback-echo) | |
537 | # Remove one level of quotation (which was required for Make). | |
538 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
539 | ;; | |
540 | esac | |
541 | ||
542 | ECHO=${lt_ECHO-echo} | |
543 | if test "X$1" = X--no-reexec; then | |
544 | # Discard the --no-reexec flag, and continue. | |
545 | shift | |
546 | elif test "X$1" = X--fallback-echo; then | |
547 | # Avoid inline document here, it may be left over | |
548 | : | |
549 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
550 | # Yippee, $ECHO works! | |
551 | : | |
552 | else | |
553 | # Restart under the correct shell. | |
554 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
555 | fi | |
556 | ||
557 | if test "X$1" = X--fallback-echo; then | |
558 | # used as fallback echo | |
559 | shift | |
560 | cat <<_LT_EOF | |
561 | $* | |
562 | _LT_EOF | |
563 | exit 0 | |
564 | fi | |
565 | ||
566 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
567 | # if CDPATH is set. | |
568 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
569 | ||
570 | if test -z "$lt_ECHO"; then | |
571 | if test "X${echo_test_string+set}" != Xset; then | |
572 | # find a string as large as possible, as long as the shell can cope with it | |
573 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
574 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
575 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
576 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
577 | then | |
578 | break | |
579 | fi | |
580 | done | |
581 | fi | |
582 | ||
583 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
584 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
585 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
586 | : | |
587 | else | |
588 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
589 | # backslashes. This makes it impossible to quote backslashes using | |
590 | # echo "$something" | sed 's/\\/\\\\/g' | |
591 | # | |
592 | # So, first we look for a working echo in the user's PATH. | |
593 | ||
594 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
595 | for dir in $PATH /usr/ucb; do | |
596 | IFS="$lt_save_ifs" | |
597 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
598 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
599 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
600 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
601 | ECHO="$dir/echo" | |
602 | break | |
603 | fi | |
604 | done | |
605 | IFS="$lt_save_ifs" | |
606 | ||
607 | if test "X$ECHO" = Xecho; then | |
608 | # We didn't find a better echo, so look for alternatives. | |
609 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
610 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
611 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
612 | # This shell has a builtin print -r that does the trick. | |
613 | ECHO='print -r' | |
614 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
615 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
616 | # If we have ksh, try running configure again with it. | |
617 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
618 | export ORIGINAL_CONFIG_SHELL | |
619 | CONFIG_SHELL=/bin/ksh | |
620 | export CONFIG_SHELL | |
621 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
622 | else | |
623 | # Try using printf. | |
624 | ECHO='printf %s\n' | |
625 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
626 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
627 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
628 | # Cool, printf works | |
629 | : | |
630 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
631 | test "X$echo_testing_string" = 'X\t' && | |
632 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
633 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
634 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
635 | export CONFIG_SHELL | |
636 | SHELL="$CONFIG_SHELL" | |
637 | export SHELL | |
638 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
639 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
640 | test "X$echo_testing_string" = 'X\t' && | |
641 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
642 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
643 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
644 | else | |
645 | # maybe with a smaller string... | |
646 | prev=: | |
647 | ||
648 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
649 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
650 | then | |
651 | break | |
652 | fi | |
653 | prev="$cmd" | |
654 | done | |
655 | ||
656 | if test "$prev" != 'sed 50q "$0"'; then | |
657 | echo_test_string=`eval $prev` | |
658 | export echo_test_string | |
659 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
660 | else | |
661 | # Oops. We lost completely, so just stick with echo. | |
662 | ECHO=echo | |
663 | fi | |
664 | fi | |
665 | fi | |
666 | fi | |
667 | fi | |
668 | fi | |
669 | ||
670 | # Copy echo and quote the copy suitably for passing to libtool from | |
671 | # the Makefile, instead of quoting the original, which is used later. | |
672 | lt_ECHO=$ECHO | |
673 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
674 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
675 | fi | |
676 | ||
677 | ||
678 | 539 | |
679 | 540 | |
680 | 541 | test -n "$DJDIR" || exec 7<&0 </dev/null |
681 | 542 | exec 6>&1 |
682 | 543 | |
683 | 544 | # Name of the host. |
684 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
545 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
685 | 546 | # so uname gets run too. |
686 | 547 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
687 | 548 | |
700 | 561 | # Identity of this package. |
701 | 562 | PACKAGE_NAME='ibus-input-pad' |
702 | 563 | PACKAGE_TARNAME='ibus-input-pad' |
703 | PACKAGE_VERSION='0.1.4' | |
704 | PACKAGE_STRING='ibus-input-pad 0.1.4' | |
564 | PACKAGE_VERSION='1.4.0' | |
565 | PACKAGE_STRING='ibus-input-pad 1.4.0' | |
705 | 566 | PACKAGE_BUGREPORT='http://code.google.com/p/input-pad/issues/entry' |
706 | 567 | PACKAGE_URL='' |
707 | 568 | |
761 | 622 | INPUT_PAD_CFLAGS |
762 | 623 | IBUS_LIBS |
763 | 624 | IBUS_CFLAGS |
625 | GTK3_LIBS | |
626 | GTK3_CFLAGS | |
627 | HAVE_GTK2_FALSE | |
628 | HAVE_GTK2_TRUE | |
629 | HAVE_GTK3_FALSE | |
630 | HAVE_GTK3_TRUE | |
764 | 631 | GTK2_LIBS |
765 | 632 | GTK2_CFLAGS |
766 | 633 | GLIB2_LIBS |
770 | 637 | GLIB_GENMARSHAL |
771 | 638 | GLIB_LIBS |
772 | 639 | GLIB_CFLAGS |
640 | PKG_CONFIG_LIBDIR | |
641 | PKG_CONFIG_PATH | |
773 | 642 | PKG_CONFIG |
774 | 643 | DATE_DISPLAY |
775 | 644 | DATADIRNAME |
808 | 677 | LIPO |
809 | 678 | NMEDIT |
810 | 679 | DSYMUTIL |
811 | lt_ECHO | |
812 | 680 | RANLIB |
813 | 681 | AR |
814 | 682 | OBJDUMP |
929 | 797 | enable_fast_install |
930 | 798 | with_gnu_ld |
931 | 799 | enable_libtool_lock |
800 | with_gnu_ld | |
932 | 801 | enable_nls |
933 | 802 | enable_glibtest |
803 | with_gtk | |
934 | 804 | ' |
935 | 805 | ac_precious_vars='build_alias |
936 | 806 | host_alias |
941 | 811 | LIBS |
942 | 812 | CPPFLAGS |
943 | 813 | CPP |
814 | CPPFLAGS | |
815 | CC | |
816 | LDFLAGS | |
817 | LIBS | |
818 | CPPFLAGS | |
944 | 819 | CXX |
945 | 820 | CXXFLAGS |
821 | LIBS | |
822 | CPPFLAGS | |
946 | 823 | CCC |
947 | 824 | CXXCPP |
825 | CPPFLAGS | |
948 | 826 | PKG_CONFIG |
827 | PKG_CONFIG_PATH | |
828 | PKG_CONFIG_LIBDIR | |
949 | 829 | GLIB2_CFLAGS |
950 | 830 | GLIB2_LIBS |
951 | 831 | GTK2_CFLAGS |
952 | 832 | GTK2_LIBS |
833 | GTK3_CFLAGS | |
834 | GTK3_LIBS | |
953 | 835 | IBUS_CFLAGS |
836 | IBUS_LIBS | |
954 | 837 | IBUS_LIBS |
955 | 838 | INPUT_PAD_CFLAGS |
956 | 839 | INPUT_PAD_LIBS' |
1062 | 945 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1063 | 946 | # Reject names that are not valid shell variable names. |
1064 | 947 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1065 | as_fn_error "invalid feature name: $ac_useropt" | |
948 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1066 | 949 | ac_useropt_orig=$ac_useropt |
1067 | 950 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1068 | 951 | case $ac_user_opts in |
1088 | 971 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1089 | 972 | # Reject names that are not valid shell variable names. |
1090 | 973 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1091 | as_fn_error "invalid feature name: $ac_useropt" | |
974 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1092 | 975 | ac_useropt_orig=$ac_useropt |
1093 | 976 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1094 | 977 | case $ac_user_opts in |
1292 | 1175 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1293 | 1176 | # Reject names that are not valid shell variable names. |
1294 | 1177 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1295 | as_fn_error "invalid package name: $ac_useropt" | |
1178 | as_fn_error $? "invalid package name: $ac_useropt" | |
1296 | 1179 | ac_useropt_orig=$ac_useropt |
1297 | 1180 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1298 | 1181 | case $ac_user_opts in |
1308 | 1191 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1309 | 1192 | # Reject names that are not valid shell variable names. |
1310 | 1193 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1311 | as_fn_error "invalid package name: $ac_useropt" | |
1194 | as_fn_error $? "invalid package name: $ac_useropt" | |
1312 | 1195 | ac_useropt_orig=$ac_useropt |
1313 | 1196 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1314 | 1197 | case $ac_user_opts in |
1338 | 1221 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1339 | 1222 | x_libraries=$ac_optarg ;; |
1340 | 1223 | |
1341 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1342 | Try \`$0 --help' for more information." | |
1224 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1225 | Try \`$0 --help' for more information" | |
1343 | 1226 | ;; |
1344 | 1227 | |
1345 | 1228 | *=*) |
1347 | 1230 | # Reject names that are not valid shell variable names. |
1348 | 1231 | case $ac_envvar in #( |
1349 | 1232 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
1350 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1233 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1351 | 1234 | esac |
1352 | 1235 | eval $ac_envvar=\$ac_optarg |
1353 | 1236 | export $ac_envvar ;; |
1365 | 1248 | |
1366 | 1249 | if test -n "$ac_prev"; then |
1367 | 1250 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1368 | as_fn_error "missing argument to $ac_option" | |
1251 | as_fn_error $? "missing argument to $ac_option" | |
1369 | 1252 | fi |
1370 | 1253 | |
1371 | 1254 | if test -n "$ac_unrecognized_opts"; then |
1372 | 1255 | case $enable_option_checking in |
1373 | 1256 | no) ;; |
1374 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1257 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1375 | 1258 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1376 | 1259 | esac |
1377 | 1260 | fi |
1394 | 1277 | [\\/$]* | ?:[\\/]* ) continue;; |
1395 | 1278 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1396 | 1279 | esac |
1397 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1280 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1398 | 1281 | done |
1399 | 1282 | |
1400 | 1283 | # There might be people who depend on the old broken behavior: `$host' |
1408 | 1291 | if test "x$host_alias" != x; then |
1409 | 1292 | if test "x$build_alias" = x; then |
1410 | 1293 | cross_compiling=maybe |
1411 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1412 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1294 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1295 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
1413 | 1296 | elif test "x$build_alias" != "x$host_alias"; then |
1414 | 1297 | cross_compiling=yes |
1415 | 1298 | fi |
1424 | 1307 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1425 | 1308 | ac_ls_di=`ls -di .` && |
1426 | 1309 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1427 | as_fn_error "working directory cannot be determined" | |
1310 | as_fn_error $? "working directory cannot be determined" | |
1428 | 1311 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1429 | as_fn_error "pwd does not report name of working directory" | |
1312 | as_fn_error $? "pwd does not report name of working directory" | |
1430 | 1313 | |
1431 | 1314 | |
1432 | 1315 | # Find the source files, if location was not specified. |
1465 | 1348 | fi |
1466 | 1349 | if test ! -r "$srcdir/$ac_unique_file"; then |
1467 | 1350 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1468 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1351 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1469 | 1352 | fi |
1470 | 1353 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1471 | 1354 | ac_abs_confdir=`( |
1472 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1355 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1473 | 1356 | pwd)` |
1474 | 1357 | # When building in place, set srcdir=. |
1475 | 1358 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1495 | 1378 | # Omit some internal or obsolete options to make the list less imposing. |
1496 | 1379 | # This message is too long to be a string in the A/UX 3.1 sh. |
1497 | 1380 | cat <<_ACEOF |
1498 | \`configure' configures ibus-input-pad 0.1.4 to adapt to many kinds of systems. | |
1381 | \`configure' configures ibus-input-pad 1.4.0 to adapt to many kinds of systems. | |
1499 | 1382 | |
1500 | 1383 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1501 | 1384 | |
1509 | 1392 | --help=short display options specific to this package |
1510 | 1393 | --help=recursive display the short help of all the included packages |
1511 | 1394 | -V, --version display version information and exit |
1512 | -q, --quiet, --silent do not print \`checking...' messages | |
1395 | -q, --quiet, --silent do not print \`checking ...' messages | |
1513 | 1396 | --cache-file=FILE cache test results in FILE [disabled] |
1514 | 1397 | -C, --config-cache alias for \`--cache-file=config.cache' |
1515 | 1398 | -n, --no-create do not create output files |
1565 | 1448 | |
1566 | 1449 | if test -n "$ac_init_help"; then |
1567 | 1450 | case $ac_init_help in |
1568 | short | recursive ) echo "Configuration of ibus-input-pad 0.1.4:";; | |
1451 | short | recursive ) echo "Configuration of ibus-input-pad 1.4.0:";; | |
1569 | 1452 | esac |
1570 | 1453 | cat <<\_ACEOF |
1571 | 1454 | |
1591 | 1474 | --with-pic try to use only PIC/non-PIC objects [default=use |
1592 | 1475 | both] |
1593 | 1476 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1477 | --with-gtk=2.0|3.0 Select GTK+ version. The default is 2.0 | |
1594 | 1478 | |
1595 | 1479 | Some influential environment variables: |
1596 | 1480 | CC C compiler command |
1605 | 1489 | CXXFLAGS C++ compiler flags |
1606 | 1490 | CXXCPP C++ preprocessor |
1607 | 1491 | PKG_CONFIG path to pkg-config utility |
1492 | PKG_CONFIG_PATH | |
1493 | directories to add to pkg-config's search path | |
1494 | PKG_CONFIG_LIBDIR | |
1495 | path overriding pkg-config's built-in search path | |
1608 | 1496 | GLIB2_CFLAGS |
1609 | 1497 | C compiler flags for GLIB2, overriding pkg-config |
1610 | 1498 | GLIB2_LIBS linker flags for GLIB2, overriding pkg-config |
1611 | 1499 | GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config |
1612 | 1500 | GTK2_LIBS linker flags for GTK2, overriding pkg-config |
1501 | GTK3_CFLAGS C compiler flags for GTK3, overriding pkg-config | |
1502 | GTK3_LIBS linker flags for GTK3, overriding pkg-config | |
1613 | 1503 | IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config |
1614 | 1504 | IBUS_LIBS linker flags for IBUS, overriding pkg-config |
1615 | 1505 | INPUT_PAD_CFLAGS |
1683 | 1573 | test -n "$ac_init_help" && exit $ac_status |
1684 | 1574 | if $ac_init_version; then |
1685 | 1575 | cat <<\_ACEOF |
1686 | ibus-input-pad configure 0.1.4 | |
1687 | generated by GNU Autoconf 2.65 | |
1688 | ||
1689 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1576 | ibus-input-pad configure 1.4.0 | |
1577 | generated by GNU Autoconf 2.66 | |
1578 | ||
1579 | Copyright (C) 2010 Free Software Foundation, Inc. | |
1690 | 1580 | This configure script is free software; the Free Software Foundation |
1691 | 1581 | gives unlimited permission to copy, distribute and modify it. |
1692 | 1582 | _ACEOF |
1780 | 1670 | ac_fn_c_check_header_mongrel () |
1781 | 1671 | { |
1782 | 1672 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1783 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1673 | if eval "test \"\${$3+set}\"" = set; then : | |
1784 | 1674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1785 | 1675 | $as_echo_n "checking for $2... " >&6; } |
1786 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1676 | if eval "test \"\${$3+set}\"" = set; then : | |
1787 | 1677 | $as_echo_n "(cached) " >&6 |
1788 | 1678 | fi |
1789 | 1679 | eval ac_res=\$$3 |
1842 | 1732 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
1843 | 1733 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1844 | 1734 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1845 | ( cat <<\_ASBOX | |
1846 | ## -------------------------------------------------------------- ## | |
1735 | ( $as_echo "## -------------------------------------------------------------- ## | |
1847 | 1736 | ## Report this to http://code.google.com/p/input-pad/issues/entry ## |
1848 | ## -------------------------------------------------------------- ## | |
1849 | _ASBOX | |
1737 | ## -------------------------------------------------------------- ##" | |
1850 | 1738 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
1851 | 1739 | ;; |
1852 | 1740 | esac |
1853 | 1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1854 | 1742 | $as_echo_n "checking for $2... " >&6; } |
1855 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1743 | if eval "test \"\${$3+set}\"" = set; then : | |
1856 | 1744 | $as_echo_n "(cached) " >&6 |
1857 | 1745 | else |
1858 | 1746 | eval "$3=\$ac_header_compiler" |
1916 | 1804 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1917 | 1805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1918 | 1806 | $as_echo_n "checking for $2... " >&6; } |
1919 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1807 | if eval "test \"\${$3+set}\"" = set; then : | |
1920 | 1808 | $as_echo_n "(cached) " >&6 |
1921 | 1809 | else |
1922 | 1810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2030 | 1918 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2031 | 1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
2032 | 1920 | $as_echo_n "checking for $2... " >&6; } |
2033 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1921 | if eval "test \"\${$3+set}\"" = set; then : | |
2034 | 1922 | $as_echo_n "(cached) " >&6 |
2035 | 1923 | else |
2036 | 1924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2175 | 2063 | This file contains any messages produced by compilers while |
2176 | 2064 | running configure, to aid debugging if configure makes a mistake. |
2177 | 2065 | |
2178 | It was created by ibus-input-pad $as_me 0.1.4, which was | |
2179 | generated by GNU Autoconf 2.65. Invocation command line was | |
2066 | It was created by ibus-input-pad $as_me 1.4.0, which was | |
2067 | generated by GNU Autoconf 2.66. Invocation command line was | |
2180 | 2068 | |
2181 | 2069 | $ $0 $@ |
2182 | 2070 | |
2286 | 2174 | { |
2287 | 2175 | echo |
2288 | 2176 | |
2289 | cat <<\_ASBOX | |
2290 | ## ---------------- ## | |
2177 | $as_echo "## ---------------- ## | |
2291 | 2178 | ## Cache variables. ## |
2292 | ## ---------------- ## | |
2293 | _ASBOX | |
2179 | ## ---------------- ##" | |
2294 | 2180 | echo |
2295 | 2181 | # The following way of writing the cache mishandles newlines in values, |
2296 | 2182 | ( |
2324 | 2210 | ) |
2325 | 2211 | echo |
2326 | 2212 | |
2327 | cat <<\_ASBOX | |
2328 | ## ----------------- ## | |
2213 | $as_echo "## ----------------- ## | |
2329 | 2214 | ## Output variables. ## |
2330 | ## ----------------- ## | |
2331 | _ASBOX | |
2215 | ## ----------------- ##" | |
2332 | 2216 | echo |
2333 | 2217 | for ac_var in $ac_subst_vars |
2334 | 2218 | do |
2341 | 2225 | echo |
2342 | 2226 | |
2343 | 2227 | if test -n "$ac_subst_files"; then |
2344 | cat <<\_ASBOX | |
2345 | ## ------------------- ## | |
2228 | $as_echo "## ------------------- ## | |
2346 | 2229 | ## File substitutions. ## |
2347 | ## ------------------- ## | |
2348 | _ASBOX | |
2230 | ## ------------------- ##" | |
2349 | 2231 | echo |
2350 | 2232 | for ac_var in $ac_subst_files |
2351 | 2233 | do |
2359 | 2241 | fi |
2360 | 2242 | |
2361 | 2243 | if test -s confdefs.h; then |
2362 | cat <<\_ASBOX | |
2363 | ## ----------- ## | |
2244 | $as_echo "## ----------- ## | |
2364 | 2245 | ## confdefs.h. ## |
2365 | ## ----------- ## | |
2366 | _ASBOX | |
2246 | ## ----------- ##" | |
2367 | 2247 | echo |
2368 | 2248 | cat confdefs.h |
2369 | 2249 | echo |
2418 | 2298 | ac_site_file1=NONE |
2419 | 2299 | ac_site_file2=NONE |
2420 | 2300 | if test -n "$CONFIG_SITE"; then |
2421 | ac_site_file1=$CONFIG_SITE | |
2301 | # We do not want a PATH search for config.site. | |
2302 | case $CONFIG_SITE in #(( | |
2303 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2304 | */*) ac_site_file1=$CONFIG_SITE;; | |
2305 | *) ac_site_file1=./$CONFIG_SITE;; | |
2306 | esac | |
2422 | 2307 | elif test "x$prefix" != xNONE; then |
2423 | 2308 | ac_site_file1=$prefix/share/config.site |
2424 | 2309 | ac_site_file2=$prefix/etc/config.site |
2433 | 2318 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2434 | 2319 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2435 | 2320 | sed 's/^/| /' "$ac_site_file" >&5 |
2436 | . "$ac_site_file" | |
2321 | . "$ac_site_file" \ | |
2322 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2323 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2324 | as_fn_error $? "failed to load site script $ac_site_file | |
2325 | See \`config.log' for more details" "$LINENO" 5; } | |
2437 | 2326 | fi |
2438 | 2327 | done |
2439 | 2328 | |
2509 | 2398 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2510 | 2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2511 | 2400 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2512 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2401 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2513 | 2402 | fi |
2514 | 2403 | ## -------------------- ## |
2515 | 2404 | ## Main body of script. ## |
2526 | 2415 | |
2527 | 2416 | ac_aux_dir= |
2528 | 2417 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2529 | for ac_t in install-sh install.sh shtool; do | |
2530 | if test -f "$ac_dir/$ac_t"; then | |
2531 | ac_aux_dir=$ac_dir | |
2532 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2533 | break 2 | |
2534 | fi | |
2535 | done | |
2418 | if test -f "$ac_dir/install-sh"; then | |
2419 | ac_aux_dir=$ac_dir | |
2420 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2421 | break | |
2422 | elif test -f "$ac_dir/install.sh"; then | |
2423 | ac_aux_dir=$ac_dir | |
2424 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2425 | break | |
2426 | elif test -f "$ac_dir/shtool"; then | |
2427 | ac_aux_dir=$ac_dir | |
2428 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2429 | break | |
2430 | fi | |
2536 | 2431 | done |
2537 | 2432 | if test -z "$ac_aux_dir"; then |
2538 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2433 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2539 | 2434 | fi |
2540 | 2435 | |
2541 | 2436 | # These three variables are undocumented and unsupported, |
2651 | 2546 | ' |
2652 | 2547 | case `pwd` in |
2653 | 2548 | *[\\\"\#\$\&\'\`$am_lf]*) |
2654 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2549 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2655 | 2550 | esac |
2656 | 2551 | case $srcdir in |
2657 | 2552 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2658 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2553 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2659 | 2554 | esac |
2660 | 2555 | |
2661 | 2556 | # Do `set' in a subshell so we don't clobber the current shell's |
2677 | 2572 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2678 | 2573 | # broken ls alias from the environment. This has actually |
2679 | 2574 | # happened. Such a system could not be considered "sane". |
2680 | as_fn_error "ls -t appears to fail. Make sure there is not a broken | |
2575 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2681 | 2576 | alias in your environment" "$LINENO" 5 |
2682 | 2577 | fi |
2683 | 2578 | |
2687 | 2582 | # Ok. |
2688 | 2583 | : |
2689 | 2584 | else |
2690 | as_fn_error "newly created file is older than distributed files! | |
2585 | as_fn_error $? "newly created file is older than distributed files! | |
2691 | 2586 | Check your system clock" "$LINENO" 5 |
2692 | 2587 | fi |
2693 | 2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2925 | 2820 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2926 | 2821 | set x ${MAKE-make} |
2927 | 2822 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2928 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2823 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
2929 | 2824 | $as_echo_n "(cached) " >&6 |
2930 | 2825 | else |
2931 | 2826 | cat >conftest.make <<\_ACEOF |
2933 | 2828 | all: |
2934 | 2829 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2935 | 2830 | _ACEOF |
2936 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2831 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2937 | 2832 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2938 | 2833 | *@@@%%%=?*=@@@%%%*) |
2939 | 2834 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2967 | 2862 | am__isrc=' -I$(srcdir)' |
2968 | 2863 | # test to see if srcdir already configured |
2969 | 2864 | if test -f $srcdir/config.status; then |
2970 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2865 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2971 | 2866 | fi |
2972 | 2867 | fi |
2973 | 2868 | |
2983 | 2878 | |
2984 | 2879 | # Define the identity of the package. |
2985 | 2880 | PACKAGE='ibus-input-pad' |
2986 | VERSION='0.1.4' | |
2881 | VERSION='1.4.0' | |
2987 | 2882 | |
2988 | 2883 | |
2989 | 2884 | cat >>confdefs.h <<_ACEOF |
3385 | 3280 | |
3386 | 3281 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3387 | 3282 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3388 | as_fn_error "no acceptable C compiler found in \$PATH | |
3389 | See \`config.log' for more details." "$LINENO" 5; } | |
3283 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3284 | See \`config.log' for more details" "$LINENO" 5; } | |
3390 | 3285 | |
3391 | 3286 | # Provide some information about the compiler. |
3392 | 3287 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3500 | 3395 | |
3501 | 3396 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3502 | 3397 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3503 | { as_fn_set_status 77 | |
3504 | as_fn_error "C compiler cannot create executables | |
3505 | See \`config.log' for more details." "$LINENO" 5; }; } | |
3398 | as_fn_error 77 "C compiler cannot create executables | |
3399 | See \`config.log' for more details" "$LINENO" 5; } | |
3506 | 3400 | else |
3507 | 3401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3508 | 3402 | $as_echo "yes" >&6; } |
3544 | 3438 | else |
3545 | 3439 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3546 | 3440 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3547 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3548 | See \`config.log' for more details." "$LINENO" 5; } | |
3441 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3442 | See \`config.log' for more details" "$LINENO" 5; } | |
3549 | 3443 | fi |
3550 | 3444 | rm -f conftest conftest$ac_cv_exeext |
3551 | 3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3602 | 3496 | else |
3603 | 3497 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3604 | 3498 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3605 | as_fn_error "cannot run C compiled programs. | |
3499 | as_fn_error $? "cannot run C compiled programs. | |
3606 | 3500 | If you meant to cross compile, use \`--host'. |
3607 | See \`config.log' for more details." "$LINENO" 5; } | |
3501 | See \`config.log' for more details" "$LINENO" 5; } | |
3608 | 3502 | fi |
3609 | 3503 | fi |
3610 | 3504 | fi |
3655 | 3549 | |
3656 | 3550 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3657 | 3551 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3658 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3659 | See \`config.log' for more details." "$LINENO" 5; } | |
3552 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3553 | See \`config.log' for more details" "$LINENO" 5; } | |
3660 | 3554 | fi |
3661 | 3555 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3662 | 3556 | fi |
4131 | 4025 | else |
4132 | 4026 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4133 | 4027 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4134 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
4135 | See \`config.log' for more details." "$LINENO" 5; } | |
4028 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4029 | See \`config.log' for more details" "$LINENO" 5; } | |
4136 | 4030 | fi |
4137 | 4031 | |
4138 | 4032 | ac_ext=c |
4193 | 4087 | done |
4194 | 4088 | IFS=$as_save_IFS |
4195 | 4089 | if test -z "$ac_cv_path_GREP"; then |
4196 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4090 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4197 | 4091 | fi |
4198 | 4092 | else |
4199 | 4093 | ac_cv_path_GREP=$GREP |
4259 | 4153 | done |
4260 | 4154 | IFS=$as_save_IFS |
4261 | 4155 | if test -z "$ac_cv_path_EGREP"; then |
4262 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4156 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4263 | 4157 | fi |
4264 | 4158 | else |
4265 | 4159 | ac_cv_path_EGREP=$EGREP |
4391 | 4285 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4392 | 4286 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
4393 | 4287 | " |
4394 | eval as_val=\$$as_ac_Header | |
4395 | if test "x$as_val" = x""yes; then : | |
4288 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4396 | 4289 | cat >>confdefs.h <<_ACEOF |
4397 | 4290 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4398 | 4291 | _ACEOF |
4469 | 4362 | |
4470 | 4363 | |
4471 | 4364 | |
4472 | libinput_pad_VERSION="0.1" | |
4365 | libinput_pad_VERSION="1.4" | |
4473 | 4366 | |
4474 | 4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: $PACKAGE sub version $libinput_pad_VERSION" >&5 |
4475 | 4368 | $as_echo "$as_me: $PACKAGE sub version $libinput_pad_VERSION" >&6;} |
4485 | 4378 | ' |
4486 | 4379 | case `pwd` in |
4487 | 4380 | *[\\\"\#\$\&\'\`$am_lf]*) |
4488 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
4381 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
4489 | 4382 | esac |
4490 | 4383 | case $srcdir in |
4491 | 4384 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
4492 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
4385 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
4493 | 4386 | esac |
4494 | 4387 | |
4495 | 4388 | # Do `set' in a subshell so we don't clobber the current shell's |
4511 | 4404 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
4512 | 4405 | # broken ls alias from the environment. This has actually |
4513 | 4406 | # happened. Such a system could not be considered "sane". |
4514 | as_fn_error "ls -t appears to fail. Make sure there is not a broken | |
4407 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4515 | 4408 | alias in your environment" "$LINENO" 5 |
4516 | 4409 | fi |
4517 | 4410 | |
4521 | 4414 | # Ok. |
4522 | 4415 | : |
4523 | 4416 | else |
4524 | as_fn_error "newly created file is older than distributed files! | |
4417 | as_fn_error $? "newly created file is older than distributed files! | |
4525 | 4418 | Check your system clock" "$LINENO" 5 |
4526 | 4419 | fi |
4527 | 4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4880 | 4773 | |
4881 | 4774 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4882 | 4775 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4883 | as_fn_error "no acceptable C compiler found in \$PATH | |
4884 | See \`config.log' for more details." "$LINENO" 5; } | |
4776 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
4777 | See \`config.log' for more details" "$LINENO" 5; } | |
4885 | 4778 | |
4886 | 4779 | # Provide some information about the compiler. |
4887 | 4780 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
5256 | 5149 | fi |
5257 | 5150 | set dummy $CC; ac_cc=`$as_echo "$2" | |
5258 | 5151 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
5259 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : | |
5152 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then : | |
5260 | 5153 | $as_echo_n "(cached) " >&6 |
5261 | 5154 | else |
5262 | 5155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5933 | 5826 | |
5934 | 5827 | |
5935 | 5828 | |
5936 | macro_version='2.2.6b' | |
5937 | macro_revision='1.3017' | |
5829 | macro_version='2.2.10' | |
5830 | macro_revision='1.3175' | |
5938 | 5831 | |
5939 | 5832 | |
5940 | 5833 | |
5952 | 5845 | |
5953 | 5846 | # Make sure we can run config.sub. |
5954 | 5847 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
5955 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
5848 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
5956 | 5849 | |
5957 | 5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5958 | 5851 | $as_echo_n "checking build system type... " >&6; } |
5963 | 5856 | test "x$ac_build_alias" = x && |
5964 | 5857 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
5965 | 5858 | test "x$ac_build_alias" = x && |
5966 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
5859 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5967 | 5860 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
5968 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
5861 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
5969 | 5862 | |
5970 | 5863 | fi |
5971 | 5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
5972 | 5865 | $as_echo "$ac_cv_build" >&6; } |
5973 | 5866 | case $ac_cv_build in |
5974 | 5867 | *-*-*) ;; |
5975 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
5868 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5976 | 5869 | esac |
5977 | 5870 | build=$ac_cv_build |
5978 | 5871 | ac_save_IFS=$IFS; IFS='-' |
5997 | 5890 | ac_cv_host=$ac_cv_build |
5998 | 5891 | else |
5999 | 5892 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
6000 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
5893 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
6001 | 5894 | fi |
6002 | 5895 | |
6003 | 5896 | fi |
6005 | 5898 | $as_echo "$ac_cv_host" >&6; } |
6006 | 5899 | case $ac_cv_host in |
6007 | 5900 | *-*-*) ;; |
6008 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
5901 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
6009 | 5902 | esac |
6010 | 5903 | host=$ac_cv_host |
6011 | 5904 | ac_save_IFS=$IFS; IFS='-' |
6019 | 5912 | host_os=$* |
6020 | 5913 | IFS=$ac_save_IFS |
6021 | 5914 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
5915 | ||
5916 | ||
5917 | # Backslashify metacharacters that are still active within | |
5918 | # double-quoted strings. | |
5919 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5920 | ||
5921 | # Same as above, but do not quote variable references. | |
5922 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5923 | ||
5924 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5925 | # double_quote_subst'ed string. | |
5926 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5927 | ||
5928 | # Sed substitution to delay expansion of an escaped single quote. | |
5929 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5930 | ||
5931 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5932 | no_glob_subst='s/\*/\\\*/g' | |
5933 | ||
5934 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5935 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5936 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5937 | ||
5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5939 | $as_echo_n "checking how to print strings... " >&6; } | |
5940 | # Test print first, because it will be a builtin if present. | |
5941 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5942 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5943 | ECHO='print -r --' | |
5944 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5945 | ECHO='printf %s\n' | |
5946 | else | |
5947 | # Use this function as a fallback that always works. | |
5948 | func_fallback_echo () | |
5949 | { | |
5950 | eval 'cat <<_LTECHO_EOF | |
5951 | $1 | |
5952 | _LTECHO_EOF' | |
5953 | } | |
5954 | ECHO='func_fallback_echo' | |
5955 | fi | |
5956 | ||
5957 | # func_echo_all arg... | |
5958 | # Invoke $ECHO with all args, space-separated. | |
5959 | func_echo_all () | |
5960 | { | |
5961 | $ECHO "" | |
5962 | } | |
5963 | ||
5964 | case "$ECHO" in | |
5965 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5966 | $as_echo "printf" >&6; } ;; | |
5967 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5968 | $as_echo "print -r" >&6; } ;; | |
5969 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5970 | $as_echo "cat" >&6; } ;; | |
5971 | esac | |
5972 | ||
5973 | ||
5974 | ||
5975 | ||
5976 | ||
5977 | ||
5978 | ||
5979 | ||
5980 | ||
5981 | ||
5982 | ||
5983 | ||
6022 | 5984 | |
6023 | 5985 | |
6024 | 5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
6078 | 6040 | done |
6079 | 6041 | IFS=$as_save_IFS |
6080 | 6042 | if test -z "$ac_cv_path_SED"; then |
6081 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
6043 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
6082 | 6044 | fi |
6083 | 6045 | else |
6084 | 6046 | ac_cv_path_SED=$SED |
6157 | 6119 | done |
6158 | 6120 | IFS=$as_save_IFS |
6159 | 6121 | if test -z "$ac_cv_path_FGREP"; then |
6160 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6122 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
6161 | 6123 | fi |
6162 | 6124 | else |
6163 | 6125 | ac_cv_path_FGREP=$FGREP |
6273 | 6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6274 | 6236 | $as_echo "no" >&6; } |
6275 | 6237 | fi |
6276 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
6238 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
6277 | 6239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
6278 | 6240 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
6279 | 6241 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
6356 | 6318 | NM="$lt_cv_path_NM" |
6357 | 6319 | else |
6358 | 6320 | # Didn't find any BSD compatible name lister, look for dumpbin. |
6359 | if test -n "$ac_tool_prefix"; then | |
6360 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
6321 | if test -n "$DUMPBIN"; then : | |
6322 | # Let the user override the test. | |
6323 | else | |
6324 | if test -n "$ac_tool_prefix"; then | |
6325 | for ac_prog in dumpbin "link -dump" | |
6361 | 6326 | do |
6362 | 6327 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
6363 | 6328 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
6401 | 6366 | fi |
6402 | 6367 | if test -z "$DUMPBIN"; then |
6403 | 6368 | ac_ct_DUMPBIN=$DUMPBIN |
6404 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
6369 | for ac_prog in dumpbin "link -dump" | |
6405 | 6370 | do |
6406 | 6371 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6407 | 6372 | set dummy $ac_prog; ac_word=$2 |
6456 | 6421 | fi |
6457 | 6422 | fi |
6458 | 6423 | |
6424 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
6425 | *COFF*) | |
6426 | DUMPBIN="$DUMPBIN -symbols" | |
6427 | ;; | |
6428 | *) | |
6429 | DUMPBIN=: | |
6430 | ;; | |
6431 | esac | |
6432 | fi | |
6459 | 6433 | |
6460 | 6434 | if test "$DUMPBIN" != ":"; then |
6461 | 6435 | NM="$DUMPBIN" |
6475 | 6449 | else |
6476 | 6450 | lt_cv_nm_interface="BSD nm" |
6477 | 6451 | echo "int some_variable = 0;" > conftest.$ac_ext |
6478 | (eval echo "\"\$as_me:6479: $ac_compile\"" >&5) | |
6452 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6479 | 6453 | (eval "$ac_compile" 2>conftest.err) |
6480 | 6454 | cat conftest.err >&5 |
6481 | (eval echo "\"\$as_me:6482: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6455 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6482 | 6456 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
6483 | 6457 | cat conftest.err >&5 |
6484 | (eval echo "\"\$as_me:6485: output\"" >&5) | |
6458 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6485 | 6459 | cat conftest.out >&5 |
6486 | 6460 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
6487 | 6461 | lt_cv_nm_interface="MS dumpbin" |
6535 | 6509 | # the test eventually succeeds (with a max line length of 256k). |
6536 | 6510 | # Instead, let's just punt: use the minimum linelength reported by |
6537 | 6511 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6512 | lt_cv_sys_max_cmd_len=8192; | |
6513 | ;; | |
6514 | ||
6515 | mint*) | |
6516 | # On MiNT this can take a long time and run out of memory. | |
6538 | 6517 | lt_cv_sys_max_cmd_len=8192; |
6539 | 6518 | ;; |
6540 | 6519 | |
6602 | 6581 | # If test is not a shell built-in, we'll probably end up computing a |
6603 | 6582 | # maximum length that is only half of the actual maximum length, but |
6604 | 6583 | # we can't tell. |
6605 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
6606 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
6584 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6585 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6607 | 6586 | test $i != 17 # 1/2 MB should be enough |
6608 | 6587 | do |
6609 | 6588 | i=`expr $i + 1` |
6874 | 6853 | # Base MSYS/MinGW do not provide the 'file' command needed by |
6875 | 6854 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
6876 | 6855 | # unless we find 'file', for example because we are cross-compiling. |
6877 | if ( file / ) >/dev/null 2>&1; then | |
6856 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6857 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6878 | 6858 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6879 | 6859 | lt_cv_file_magic_cmd='func_win32_libid' |
6880 | 6860 | else |
6881 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6861 | # Keep this pattern in sync with the one in func_win32_libid. | |
6862 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6882 | 6863 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
6883 | 6864 | fi |
6884 | 6865 | ;; |
6885 | 6866 | |
6886 | cegcc) | |
6867 | cegcc*) | |
6887 | 6868 | # use the weaker test based on 'objdump'. See mingw*. |
6888 | 6869 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
6889 | 6870 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
6913 | 6894 | lt_cv_deplibs_check_method=pass_all |
6914 | 6895 | ;; |
6915 | 6896 | |
6897 | haiku*) | |
6898 | lt_cv_deplibs_check_method=pass_all | |
6899 | ;; | |
6900 | ||
6916 | 6901 | hpux10.20* | hpux11*) |
6917 | 6902 | lt_cv_file_magic_cmd=/usr/bin/file |
6918 | 6903 | case $host_cpu in |
6921 | 6906 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
6922 | 6907 | ;; |
6923 | 6908 | hppa*64*) |
6924 | 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]' | |
6909 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | |
6925 | 6910 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6926 | 6911 | ;; |
6927 | 6912 | *) |
6928 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
6913 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6929 | 6914 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6930 | 6915 | ;; |
6931 | 6916 | esac |
6947 | 6932 | ;; |
6948 | 6933 | |
6949 | 6934 | # This must be Linux ELF. |
6950 | linux* | k*bsd*-gnu) | |
6935 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6951 | 6936 | lt_cv_deplibs_check_method=pass_all |
6952 | 6937 | ;; |
6953 | 6938 | |
7362 | 7347 | esac |
7363 | 7348 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
7364 | 7349 | fi |
7350 | ||
7351 | case $host_os in | |
7352 | darwin*) | |
7353 | lock_old_archive_extraction=yes ;; | |
7354 | *) | |
7355 | lock_old_archive_extraction=no ;; | |
7356 | esac | |
7357 | ||
7358 | ||
7359 | ||
7360 | ||
7361 | ||
7365 | 7362 | |
7366 | 7363 | |
7367 | 7364 | |
7532 | 7529 | test $ac_status = 0; }; then |
7533 | 7530 | # Now try to grab the symbols. |
7534 | 7531 | nlist=conftest.nm |
7535 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | |
7536 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
7532 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7533 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7537 | 7534 | ac_status=$? |
7538 | 7535 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7539 | 7536 | test $ac_status = 0; } && test -s "$nlist"; then |
7686 | 7683 | ;; |
7687 | 7684 | *-*-irix6*) |
7688 | 7685 | # Find out which ABI we are using. |
7689 | echo '#line 7690 "configure"' > conftest.$ac_ext | |
7686 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7690 | 7687 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7691 | 7688 | (eval $ac_compile) 2>&5 |
7692 | 7689 | ac_status=$? |
8398 | 8395 | fi |
8399 | 8396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8400 | 8397 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
8399 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8400 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
8401 | $as_echo_n "(cached) " >&6 | |
8402 | else | |
8403 | lt_cv_ld_force_load=no | |
8404 | cat > conftest.c << _LT_EOF | |
8405 | int forced_loaded() { return 2;} | |
8406 | _LT_EOF | |
8407 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8408 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8409 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8410 | $AR cru libconftest.a conftest.o 2>&5 | |
8411 | echo "$RANLIB libconftest.a" >&5 | |
8412 | $RANLIB libconftest.a 2>&5 | |
8413 | cat > conftest.c << _LT_EOF | |
8414 | int main() { return 0;} | |
8415 | _LT_EOF | |
8416 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8417 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8418 | _lt_result=$? | |
8419 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8420 | lt_cv_ld_force_load=yes | |
8421 | else | |
8422 | cat conftest.err >&5 | |
8423 | fi | |
8424 | rm -f conftest.err libconftest.a conftest conftest.c | |
8425 | rm -rf conftest.dSYM | |
8426 | ||
8427 | fi | |
8428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8429 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8401 | 8430 | case $host_os in |
8402 | 8431 | rhapsody* | darwin1.[012]) |
8403 | 8432 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
8425 | 8454 | else |
8426 | 8455 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
8427 | 8456 | fi |
8428 | if test "$DSYMUTIL" != ":"; then | |
8457 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8429 | 8458 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
8430 | 8459 | else |
8431 | 8460 | _lt_dsymutil= |
8446 | 8475 | |
8447 | 8476 | done |
8448 | 8477 | |
8449 | ||
8450 | ||
8451 | ac_ext=cpp | |
8452 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8453 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8454 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8455 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8456 | if test -z "$CXX"; then | |
8457 | if test -n "$CCC"; then | |
8458 | CXX=$CCC | |
8459 | else | |
8460 | if test -n "$ac_tool_prefix"; then | |
8461 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
8462 | do | |
8463 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
8464 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
8465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8466 | $as_echo_n "checking for $ac_word... " >&6; } | |
8467 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
8468 | $as_echo_n "(cached) " >&6 | |
8469 | else | |
8470 | if test -n "$CXX"; then | |
8471 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8472 | else | |
8473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8474 | for as_dir in $PATH | |
8475 | do | |
8476 | IFS=$as_save_IFS | |
8477 | test -z "$as_dir" && as_dir=. | |
8478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8480 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
8481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8482 | break 2 | |
8483 | fi | |
8484 | done | |
8485 | done | |
8486 | IFS=$as_save_IFS | |
8487 | ||
8488 | fi | |
8489 | fi | |
8490 | CXX=$ac_cv_prog_CXX | |
8491 | if test -n "$CXX"; then | |
8492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
8493 | $as_echo "$CXX" >&6; } | |
8494 | else | |
8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8496 | $as_echo "no" >&6; } | |
8497 | fi | |
8498 | ||
8499 | ||
8500 | test -n "$CXX" && break | |
8501 | done | |
8502 | fi | |
8503 | if test -z "$CXX"; then | |
8504 | ac_ct_CXX=$CXX | |
8505 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
8506 | do | |
8507 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8508 | set dummy $ac_prog; ac_word=$2 | |
8509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8510 | $as_echo_n "checking for $ac_word... " >&6; } | |
8511 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
8512 | $as_echo_n "(cached) " >&6 | |
8513 | else | |
8514 | if test -n "$ac_ct_CXX"; then | |
8515 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
8516 | else | |
8517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8518 | for as_dir in $PATH | |
8519 | do | |
8520 | IFS=$as_save_IFS | |
8521 | test -z "$as_dir" && as_dir=. | |
8522 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8524 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
8525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8526 | break 2 | |
8527 | fi | |
8528 | done | |
8529 | done | |
8530 | IFS=$as_save_IFS | |
8531 | ||
8532 | fi | |
8533 | fi | |
8534 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
8535 | if test -n "$ac_ct_CXX"; then | |
8536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
8537 | $as_echo "$ac_ct_CXX" >&6; } | |
8538 | else | |
8539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8540 | $as_echo "no" >&6; } | |
8541 | fi | |
8542 | ||
8543 | ||
8544 | test -n "$ac_ct_CXX" && break | |
8545 | done | |
8546 | ||
8547 | if test "x$ac_ct_CXX" = x; then | |
8548 | CXX="g++" | |
8549 | else | |
8550 | case $cross_compiling:$ac_tool_warned in | |
8551 | yes:) | |
8552 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8553 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8554 | ac_tool_warned=yes ;; | |
8555 | esac | |
8556 | CXX=$ac_ct_CXX | |
8557 | fi | |
8558 | fi | |
8559 | ||
8560 | fi | |
8561 | fi | |
8562 | # Provide some information about the compiler. | |
8563 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
8564 | set X $ac_compile | |
8565 | ac_compiler=$2 | |
8566 | for ac_option in --version -v -V -qversion; do | |
8567 | { { ac_try="$ac_compiler $ac_option >&5" | |
8568 | case "(($ac_try" in | |
8569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8570 | *) ac_try_echo=$ac_try;; | |
8571 | esac | |
8572 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
8573 | $as_echo "$ac_try_echo"; } >&5 | |
8574 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
8575 | ac_status=$? | |
8576 | if test -s conftest.err; then | |
8577 | sed '10a\ | |
8578 | ... rest of stderr output deleted ... | |
8579 | 10q' conftest.err >conftest.er1 | |
8580 | cat conftest.er1 >&5 | |
8581 | fi | |
8582 | rm -f conftest.er1 conftest.err | |
8583 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8584 | test $ac_status = 0; } | |
8585 | done | |
8586 | ||
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
8588 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
8589 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
8590 | $as_echo_n "(cached) " >&6 | |
8591 | else | |
8592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8593 | /* end confdefs.h. */ | |
8594 | ||
8595 | int | |
8596 | main () | |
8597 | { | |
8598 | #ifndef __GNUC__ | |
8599 | choke me | |
8600 | #endif | |
8601 | ||
8602 | ; | |
8603 | return 0; | |
8604 | } | |
8605 | _ACEOF | |
8606 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
8607 | ac_compiler_gnu=yes | |
8608 | else | |
8609 | ac_compiler_gnu=no | |
8610 | fi | |
8611 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8612 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
8613 | ||
8614 | fi | |
8615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
8616 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
8617 | if test $ac_compiler_gnu = yes; then | |
8618 | GXX=yes | |
8619 | else | |
8620 | GXX= | |
8621 | fi | |
8622 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
8623 | ac_save_CXXFLAGS=$CXXFLAGS | |
8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
8625 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
8626 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
8627 | $as_echo_n "(cached) " >&6 | |
8628 | else | |
8629 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
8630 | ac_cxx_werror_flag=yes | |
8631 | ac_cv_prog_cxx_g=no | |
8632 | CXXFLAGS="-g" | |
8633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8634 | /* end confdefs.h. */ | |
8635 | ||
8636 | int | |
8637 | main () | |
8638 | { | |
8639 | ||
8640 | ; | |
8641 | return 0; | |
8642 | } | |
8643 | _ACEOF | |
8644 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
8645 | ac_cv_prog_cxx_g=yes | |
8646 | else | |
8647 | CXXFLAGS="" | |
8648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8649 | /* end confdefs.h. */ | |
8650 | ||
8651 | int | |
8652 | main () | |
8653 | { | |
8654 | ||
8655 | ; | |
8656 | return 0; | |
8657 | } | |
8658 | _ACEOF | |
8659 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
8660 | ||
8661 | else | |
8662 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
8663 | CXXFLAGS="-g" | |
8664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8665 | /* end confdefs.h. */ | |
8666 | ||
8667 | int | |
8668 | main () | |
8669 | { | |
8670 | ||
8671 | ; | |
8672 | return 0; | |
8673 | } | |
8674 | _ACEOF | |
8675 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
8676 | ac_cv_prog_cxx_g=yes | |
8677 | fi | |
8678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8679 | fi | |
8680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8681 | fi | |
8682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8683 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
8684 | fi | |
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
8686 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
8687 | if test "$ac_test_CXXFLAGS" = set; then | |
8688 | CXXFLAGS=$ac_save_CXXFLAGS | |
8689 | elif test $ac_cv_prog_cxx_g = yes; then | |
8690 | if test "$GXX" = yes; then | |
8691 | CXXFLAGS="-g -O2" | |
8692 | else | |
8693 | CXXFLAGS="-g" | |
8694 | fi | |
8695 | else | |
8696 | if test "$GXX" = yes; then | |
8697 | CXXFLAGS="-O2" | |
8698 | else | |
8699 | CXXFLAGS= | |
8700 | fi | |
8701 | fi | |
8702 | ac_ext=c | |
8703 | ac_cpp='$CPP $CPPFLAGS' | |
8704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8707 | ||
8708 | depcc="$CXX" am_compiler_list= | |
8709 | ||
8710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
8711 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
8712 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : | |
8713 | $as_echo_n "(cached) " >&6 | |
8714 | else | |
8715 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
8716 | # We make a subdir and do the tests there. Otherwise we can end up | |
8717 | # making bogus files that we don't know about and never remove. For | |
8718 | # instance it was reported that on HP-UX the gcc test will end up | |
8719 | # making a dummy file named `D' -- because `-MD' means `put the output | |
8720 | # in D'. | |
8721 | mkdir conftest.dir | |
8722 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
8723 | # using a relative directory. | |
8724 | cp "$am_depcomp" conftest.dir | |
8725 | cd conftest.dir | |
8726 | # We will build objects and dependencies in a subdirectory because | |
8727 | # it helps to detect inapplicable dependency modes. For instance | |
8728 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
8729 | # side effect of compilation, but ICC will put the dependencies in | |
8730 | # the current directory while Tru64 will put them in the object | |
8731 | # directory. | |
8732 | mkdir sub | |
8733 | ||
8734 | am_cv_CXX_dependencies_compiler_type=none | |
8735 | if test "$am_compiler_list" = ""; then | |
8736 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
8737 | fi | |
8738 | am__universal=false | |
8739 | case " $depcc " in #( | |
8740 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
8741 | esac | |
8742 | ||
8743 | for depmode in $am_compiler_list; do | |
8744 | # Setup a source with many dependencies, because some compilers | |
8745 | # like to wrap large dependency lists on column 80 (with \), and | |
8746 | # we should not choose a depcomp mode which is confused by this. | |
8747 | # | |
8748 | # We need to recreate these files for each test, as the compiler may | |
8749 | # overwrite some of them when testing with obscure command lines. | |
8750 | # This happens at least with the AIX C compiler. | |
8751 | : > sub/conftest.c | |
8752 | for i in 1 2 3 4 5 6; do | |
8753 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
8754 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
8755 | # Solaris 8's {/usr,}/bin/sh. | |
8756 | touch sub/conftst$i.h | |
8757 | done | |
8758 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
8759 | ||
8760 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
8761 | # mode. It turns out that the SunPro C++ compiler does not properly | |
8762 | # handle `-M -o', and we need to detect this. Also, some Intel | |
8763 | # versions had trouble with output in subdirs | |
8764 | am__obj=sub/conftest.${OBJEXT-o} | |
8765 | am__minus_obj="-o $am__obj" | |
8766 | case $depmode in | |
8767 | gcc) | |
8768 | # This depmode causes a compiler race in universal mode. | |
8769 | test "$am__universal" = false || continue | |
8770 | ;; | |
8771 | nosideeffect) | |
8772 | # after this tag, mechanisms are not by side-effect, so they'll | |
8773 | # only be used when explicitly requested | |
8774 | if test "x$enable_dependency_tracking" = xyes; then | |
8775 | continue | |
8776 | else | |
8777 | break | |
8778 | fi | |
8779 | ;; | |
8780 | msvisualcpp | msvcmsys) | |
8781 | # This compiler won't grok `-c -o', but also, the minuso test has | |
8782 | # not run yet. These depmodes are late enough in the game, and | |
8783 | # so weak that their functioning should not be impacted. | |
8784 | am__obj=conftest.${OBJEXT-o} | |
8785 | am__minus_obj= | |
8786 | ;; | |
8787 | none) break ;; | |
8788 | esac | |
8789 | if depmode=$depmode \ | |
8790 | source=sub/conftest.c object=$am__obj \ | |
8791 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
8792 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
8793 | >/dev/null 2>conftest.err && | |
8794 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
8795 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
8796 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
8797 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
8798 | # icc doesn't choke on unknown options, it will just issue warnings | |
8799 | # or remarks (even with -Werror). So we grep stderr for any message | |
8800 | # that says an option was ignored or not supported. | |
8801 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
8802 | # icc: Command line warning: ignoring option '-M'; no argument required | |
8803 | # The diagnosis changed in icc 8.0: | |
8804 | # icc: Command line remark: option '-MP' not supported | |
8805 | if (grep 'ignoring option' conftest.err || | |
8806 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
8807 | am_cv_CXX_dependencies_compiler_type=$depmode | |
8808 | break | |
8809 | fi | |
8810 | fi | |
8811 | done | |
8812 | ||
8813 | cd .. | |
8814 | rm -rf conftest.dir | |
8815 | else | |
8816 | am_cv_CXX_dependencies_compiler_type=none | |
8817 | fi | |
8818 | ||
8819 | fi | |
8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
8821 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
8822 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
8823 | ||
8824 | if | |
8825 | test "x$enable_dependency_tracking" != xno \ | |
8826 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
8827 | am__fastdepCXX_TRUE= | |
8828 | am__fastdepCXX_FALSE='#' | |
8829 | else | |
8830 | am__fastdepCXX_TRUE='#' | |
8831 | am__fastdepCXX_FALSE= | |
8832 | fi | |
8833 | ||
8834 | ||
8835 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
8836 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
8837 | (test "X$CXX" != "Xg++"))) ; then | |
8838 | ac_ext=cpp | |
8839 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8840 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8841 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8842 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
8844 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
8845 | if test -z "$CXXCPP"; then | |
8846 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
8847 | $as_echo_n "(cached) " >&6 | |
8848 | else | |
8849 | # Double quotes because CXXCPP needs to be expanded | |
8850 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
8851 | do | |
8852 | ac_preproc_ok=false | |
8853 | for ac_cxx_preproc_warn_flag in '' yes | |
8854 | do | |
8855 | # Use a header file that comes with gcc, so configuring glibc | |
8856 | # with a fresh cross-compiler works. | |
8857 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8858 | # <limits.h> exists even on freestanding compilers. | |
8859 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8860 | # not just through cpp. "Syntax error" is here to catch this case. | |
8861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8862 | /* end confdefs.h. */ | |
8863 | #ifdef __STDC__ | |
8864 | # include <limits.h> | |
8865 | #else | |
8866 | # include <assert.h> | |
8867 | #endif | |
8868 | Syntax error | |
8869 | _ACEOF | |
8870 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
8871 | ||
8872 | else | |
8873 | # Broken: fails on valid input. | |
8874 | continue | |
8875 | fi | |
8876 | rm -f conftest.err conftest.$ac_ext | |
8877 | ||
8878 | # OK, works on sane cases. Now check whether nonexistent headers | |
8879 | # can be detected and how. | |
8880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8881 | /* end confdefs.h. */ | |
8882 | #include <ac_nonexistent.h> | |
8883 | _ACEOF | |
8884 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
8885 | # Broken: success on invalid input. | |
8886 | continue | |
8887 | else | |
8888 | # Passes both tests. | |
8889 | ac_preproc_ok=: | |
8890 | break | |
8891 | fi | |
8892 | rm -f conftest.err conftest.$ac_ext | |
8893 | ||
8894 | done | |
8895 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8896 | rm -f conftest.err conftest.$ac_ext | |
8897 | if $ac_preproc_ok; then : | |
8898 | break | |
8899 | fi | |
8900 | ||
8901 | done | |
8902 | ac_cv_prog_CXXCPP=$CXXCPP | |
8903 | ||
8904 | fi | |
8905 | CXXCPP=$ac_cv_prog_CXXCPP | |
8906 | else | |
8907 | ac_cv_prog_CXXCPP=$CXXCPP | |
8908 | fi | |
8909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
8910 | $as_echo "$CXXCPP" >&6; } | |
8911 | ac_preproc_ok=false | |
8912 | for ac_cxx_preproc_warn_flag in '' yes | |
8913 | do | |
8914 | # Use a header file that comes with gcc, so configuring glibc | |
8915 | # with a fresh cross-compiler works. | |
8916 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8917 | # <limits.h> exists even on freestanding compilers. | |
8918 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8919 | # not just through cpp. "Syntax error" is here to catch this case. | |
8920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8921 | /* end confdefs.h. */ | |
8922 | #ifdef __STDC__ | |
8923 | # include <limits.h> | |
8924 | #else | |
8925 | # include <assert.h> | |
8926 | #endif | |
8927 | Syntax error | |
8928 | _ACEOF | |
8929 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
8930 | ||
8931 | else | |
8932 | # Broken: fails on valid input. | |
8933 | continue | |
8934 | fi | |
8935 | rm -f conftest.err conftest.$ac_ext | |
8936 | ||
8937 | # OK, works on sane cases. Now check whether nonexistent headers | |
8938 | # can be detected and how. | |
8939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8940 | /* end confdefs.h. */ | |
8941 | #include <ac_nonexistent.h> | |
8942 | _ACEOF | |
8943 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
8944 | # Broken: success on invalid input. | |
8945 | continue | |
8946 | else | |
8947 | # Passes both tests. | |
8948 | ac_preproc_ok=: | |
8949 | break | |
8950 | fi | |
8951 | rm -f conftest.err conftest.$ac_ext | |
8952 | ||
8953 | done | |
8954 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8955 | rm -f conftest.err conftest.$ac_ext | |
8956 | if $ac_preproc_ok; then : | |
8957 | ||
8958 | else | |
8959 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8960 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8961 | _lt_caught_CXX_error=yes; } | |
8962 | fi | |
8963 | ||
8964 | ac_ext=c | |
8965 | ac_cpp='$CPP $CPPFLAGS' | |
8966 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8967 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8968 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8969 | ||
8970 | else | |
8971 | _lt_caught_CXX_error=yes | |
8972 | fi | |
8973 | 8478 | |
8974 | 8479 | |
8975 | 8480 | |
9097 | 8602 | |
9098 | 8603 | |
9099 | 8604 | |
8605 | ||
9100 | 8606 | test -z "$LN_S" && LN_S="ln -s" |
9101 | 8607 | |
9102 | 8608 | |
9142 | 8648 | cat >>confdefs.h <<_ACEOF |
9143 | 8649 | #define LT_OBJDIR "$lt_cv_objdir/" |
9144 | 8650 | _ACEOF |
9145 | ||
9146 | ||
9147 | ||
9148 | ||
9149 | ||
9150 | ||
9151 | ||
9152 | ||
9153 | ||
9154 | ||
9155 | ||
9156 | ||
9157 | ||
9158 | 8651 | |
9159 | 8652 | |
9160 | 8653 | |
9171 | 8664 | ;; |
9172 | 8665 | esac |
9173 | 8666 | |
9174 | # Sed substitution that helps us do robust quoting. It backslashifies | |
9175 | # metacharacters that are still active within double-quoted strings. | |
9176 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
9177 | ||
9178 | # Same as above, but do not quote variable references. | |
9179 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
9180 | ||
9181 | # Sed substitution to delay expansion of an escaped shell variable in a | |
9182 | # double_quote_subst'ed string. | |
9183 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
9184 | ||
9185 | # Sed substitution to delay expansion of an escaped single quote. | |
9186 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
9187 | ||
9188 | # Sed substitution to avoid accidental globbing in evaled expressions | |
9189 | no_glob_subst='s/\*/\\\*/g' | |
9190 | ||
9191 | 8667 | # Global variables: |
9192 | 8668 | ofile=libtool |
9193 | 8669 | can_build_shared=yes |
9216 | 8692 | *) break;; |
9217 | 8693 | esac |
9218 | 8694 | done |
9219 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
8695 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
9220 | 8696 | |
9221 | 8697 | |
9222 | 8698 | # Only perform the check for file, if the check method requires it |
9421 | 8897 | lt_prog_compiler_no_builtin_flag= |
9422 | 8898 | |
9423 | 8899 | if test "$GCC" = yes; then |
9424 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
8900 | case $cc_basename in | |
8901 | nvcc*) | |
8902 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8903 | *) | |
8904 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8905 | esac | |
9425 | 8906 | |
9426 | 8907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
9427 | 8908 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
9441 | 8922 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
9442 | 8923 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
9443 | 8924 | -e 's:$: $lt_compiler_flag:'` |
9444 | (eval echo "\"\$as_me:9445: $lt_compile\"" >&5) | |
8925 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9445 | 8926 | (eval "$lt_compile" 2>conftest.err) |
9446 | 8927 | ac_status=$? |
9447 | 8928 | cat conftest.err >&5 |
9448 | echo "$as_me:9449: \$? = $ac_status" >&5 | |
8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9449 | 8930 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9450 | 8931 | # The compiler can only warn and ignore the option if not recognized |
9451 | 8932 | # So say no if there are warnings other than the usual output. |
9452 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8933 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9453 | 8934 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9454 | 8935 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
9455 | 8936 | lt_cv_prog_compiler_rtti_exceptions=yes |
9527 | 9008 | lt_prog_compiler_pic='-fno-common' |
9528 | 9009 | ;; |
9529 | 9010 | |
9011 | haiku*) | |
9012 | # PIC is the default for Haiku. | |
9013 | # The "-static" flag exists, but is broken. | |
9014 | lt_prog_compiler_static= | |
9015 | ;; | |
9016 | ||
9530 | 9017 | hpux*) |
9531 | 9018 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
9532 | 9019 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
9567 | 9054 | |
9568 | 9055 | *) |
9569 | 9056 | lt_prog_compiler_pic='-fPIC' |
9057 | ;; | |
9058 | esac | |
9059 | ||
9060 | case $cc_basename in | |
9061 | nvcc*) # Cuda Compiler Driver 2.2 | |
9062 | lt_prog_compiler_wl='-Xlinker ' | |
9063 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
9570 | 9064 | ;; |
9571 | 9065 | esac |
9572 | 9066 | else |
9610 | 9104 | lt_prog_compiler_static='-non_shared' |
9611 | 9105 | ;; |
9612 | 9106 | |
9613 | linux* | k*bsd*-gnu) | |
9107 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
9614 | 9108 | case $cc_basename in |
9615 | 9109 | # old Intel for x86_64 which still supported -KPIC. |
9616 | 9110 | ecc*) |
9631 | 9125 | lt_prog_compiler_pic='--shared' |
9632 | 9126 | lt_prog_compiler_static='--static' |
9633 | 9127 | ;; |
9634 | pgcc* | pgf77* | pgf90* | pgf95*) | |
9128 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9635 | 9129 | # Portland Group compilers (*not* the Pentium gcc compiler, |
9636 | 9130 | # which looks to be a dead project) |
9637 | 9131 | lt_prog_compiler_wl='-Wl,' |
9643 | 9137 | # All Alpha code is PIC. |
9644 | 9138 | lt_prog_compiler_static='-non_shared' |
9645 | 9139 | ;; |
9646 | xl*) | |
9647 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
9140 | xl* | bgxl* | bgf* | mpixl*) | |
9141 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9648 | 9142 | lt_prog_compiler_wl='-Wl,' |
9649 | 9143 | lt_prog_compiler_pic='-qpic' |
9650 | 9144 | lt_prog_compiler_static='-qstaticlink' |
9651 | 9145 | ;; |
9652 | 9146 | *) |
9653 | 9147 | case `$CC -V 2>&1 | sed 5q` in |
9148 | *Sun\ F* | *Sun*Fortran*) | |
9149 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9150 | lt_prog_compiler_pic='-KPIC' | |
9151 | lt_prog_compiler_static='-Bstatic' | |
9152 | lt_prog_compiler_wl='' | |
9153 | ;; | |
9654 | 9154 | *Sun\ C*) |
9655 | 9155 | # Sun C 5.9 |
9656 | 9156 | lt_prog_compiler_pic='-KPIC' |
9657 | 9157 | lt_prog_compiler_static='-Bstatic' |
9658 | 9158 | lt_prog_compiler_wl='-Wl,' |
9659 | 9159 | ;; |
9660 | *Sun\ F*) | |
9661 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9662 | lt_prog_compiler_pic='-KPIC' | |
9663 | lt_prog_compiler_static='-Bstatic' | |
9664 | lt_prog_compiler_wl='' | |
9665 | ;; | |
9666 | 9160 | esac |
9667 | 9161 | ;; |
9668 | 9162 | esac |
9693 | 9187 | lt_prog_compiler_pic='-KPIC' |
9694 | 9188 | lt_prog_compiler_static='-Bstatic' |
9695 | 9189 | case $cc_basename in |
9696 | f77* | f90* | f95*) | |
9190 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9697 | 9191 | lt_prog_compiler_wl='-Qoption ld ';; |
9698 | 9192 | *) |
9699 | 9193 | lt_prog_compiler_wl='-Wl,';; |
9780 | 9274 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
9781 | 9275 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
9782 | 9276 | -e 's:$: $lt_compiler_flag:'` |
9783 | (eval echo "\"\$as_me:9784: $lt_compile\"" >&5) | |
9277 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9784 | 9278 | (eval "$lt_compile" 2>conftest.err) |
9785 | 9279 | ac_status=$? |
9786 | 9280 | cat conftest.err >&5 |
9787 | echo "$as_me:9788: \$? = $ac_status" >&5 | |
9281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9788 | 9282 | if (exit $ac_status) && test -s "$ac_outfile"; then |
9789 | 9283 | # The compiler can only warn and ignore the option if not recognized |
9790 | 9284 | # So say no if there are warnings other than the usual output. |
9791 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
9285 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9792 | 9286 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9793 | 9287 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
9794 | 9288 | lt_cv_prog_compiler_pic_works=yes |
9836 | 9330 | if test -s conftest.err; then |
9837 | 9331 | # Append any errors to the config.log. |
9838 | 9332 | cat conftest.err 1>&5 |
9839 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
9333 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9840 | 9334 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9841 | 9335 | if diff conftest.exp conftest.er2 >/dev/null; then |
9842 | 9336 | lt_cv_prog_compiler_static_works=yes |
9885 | 9379 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
9886 | 9380 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
9887 | 9381 | -e 's:$: $lt_compiler_flag:'` |
9888 | (eval echo "\"\$as_me:9889: $lt_compile\"" >&5) | |
9382 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9889 | 9383 | (eval "$lt_compile" 2>out/conftest.err) |
9890 | 9384 | ac_status=$? |
9891 | 9385 | cat out/conftest.err >&5 |
9892 | echo "$as_me:9893: \$? = $ac_status" >&5 | |
9386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9893 | 9387 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9894 | 9388 | then |
9895 | 9389 | # The compiler can only warn and ignore the option if not recognized |
9896 | 9390 | # So say no if there are warnings |
9897 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
9391 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9898 | 9392 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9899 | 9393 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
9900 | 9394 | lt_cv_prog_compiler_c_o=yes |
9940 | 9434 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
9941 | 9435 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
9942 | 9436 | -e 's:$: $lt_compiler_flag:'` |
9943 | (eval echo "\"\$as_me:9944: $lt_compile\"" >&5) | |
9437 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9944 | 9438 | (eval "$lt_compile" 2>out/conftest.err) |
9945 | 9439 | ac_status=$? |
9946 | 9440 | cat out/conftest.err >&5 |
9947 | echo "$as_me:9948: \$? = $ac_status" >&5 | |
9441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9948 | 9442 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9949 | 9443 | then |
9950 | 9444 | # The compiler can only warn and ignore the option if not recognized |
9951 | 9445 | # So say no if there are warnings |
9952 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
9446 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9953 | 9447 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9954 | 9448 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
9955 | 9449 | lt_cv_prog_compiler_c_o=yes |
10062 | 9556 | esac |
10063 | 9557 | |
10064 | 9558 | ld_shlibs=yes |
9559 | ||
9560 | # On some targets, GNU ld is compatible enough with the native linker | |
9561 | # that we're better off using the native interface for both. | |
9562 | lt_use_gnu_ld_interface=no | |
10065 | 9563 | if test "$with_gnu_ld" = yes; then |
9564 | case $host_os in | |
9565 | aix*) | |
9566 | # The AIX port of GNU ld has always aspired to compatibility | |
9567 | # with the native linker. However, as the warning in the GNU ld | |
9568 | # block says, versions before 2.19.5* couldn't really create working | |
9569 | # shared libraries, regardless of the interface used. | |
9570 | case `$LD -v 2>&1` in | |
9571 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9572 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9573 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9574 | *) | |
9575 | lt_use_gnu_ld_interface=yes | |
9576 | ;; | |
9577 | esac | |
9578 | ;; | |
9579 | *) | |
9580 | lt_use_gnu_ld_interface=yes | |
9581 | ;; | |
9582 | esac | |
9583 | fi | |
9584 | ||
9585 | if test "$lt_use_gnu_ld_interface" = yes; then | |
10066 | 9586 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10067 | 9587 | wlarc='${wl}' |
10068 | 9588 | |
10080 | 9600 | fi |
10081 | 9601 | supports_anon_versioning=no |
10082 | 9602 | case `$LD -v 2>&1` in |
9603 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
10083 | 9604 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
10084 | 9605 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
10085 | 9606 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
10095 | 9616 | ld_shlibs=no |
10096 | 9617 | cat <<_LT_EOF 1>&2 |
10097 | 9618 | |
10098 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
9619 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
10099 | 9620 | *** to be unable to reliably create shared libraries on AIX. |
10100 | 9621 | *** Therefore, libtool is disabling shared libraries support. If you |
10101 | *** really care for shared libraries, you may want to modify your PATH | |
10102 | *** so that a non-GNU linker is found, and then restart. | |
9622 | *** really care for shared libraries, you may want to install binutils | |
9623 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9624 | *** You will then need to restart the configuration process. | |
10103 | 9625 | |
10104 | 9626 | _LT_EOF |
10105 | 9627 | fi |
10135 | 9657 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
10136 | 9658 | # as there is no search path for DLLs. |
10137 | 9659 | hardcode_libdir_flag_spec='-L$libdir' |
9660 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
10138 | 9661 | allow_undefined_flag=unsupported |
10139 | 9662 | always_export_symbols=no |
10140 | 9663 | enable_shared_with_static_runtimes=yes |
10156 | 9679 | fi |
10157 | 9680 | ;; |
10158 | 9681 | |
9682 | haiku*) | |
9683 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9684 | link_all_deplibs=yes | |
9685 | ;; | |
9686 | ||
10159 | 9687 | interix[3-9]*) |
10160 | 9688 | hardcode_direct=no |
10161 | 9689 | hardcode_shlibpath_var=no |
10171 | 9699 | 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' |
10172 | 9700 | ;; |
10173 | 9701 | |
10174 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
9702 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
10175 | 9703 | tmp_diet=no |
10176 | 9704 | if test "$host_os" = linux-dietlibc; then |
10177 | 9705 | case $cc_basename in |
10185 | 9713 | tmp_sharedflag='-shared' |
10186 | 9714 | case $cc_basename,$host_cpu in |
10187 | 9715 | pgcc*) # Portland Group C compiler |
10188 | 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' | |
9716 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
10189 | 9717 | tmp_addflag=' $pic_flag' |
10190 | 9718 | ;; |
10191 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
10192 | 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' | |
9719 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9720 | # Portland Group f77 and f90 compilers | |
9721 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
10193 | 9722 | tmp_addflag=' $pic_flag -Mnomain' ;; |
10194 | 9723 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
10195 | 9724 | tmp_addflag=' -i_dynamic' ;; |
10200 | 9729 | lf95*) # Lahey Fortran 8.1 |
10201 | 9730 | whole_archive_flag_spec= |
10202 | 9731 | tmp_sharedflag='--shared' ;; |
10203 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9732 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
10204 | 9733 | tmp_sharedflag='-qmkshrobj' |
10205 | 9734 | tmp_addflag= ;; |
9735 | nvcc*) # Cuda Compiler Driver 2.2 | |
9736 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
9737 | compiler_needs_object=yes | |
9738 | ;; | |
10206 | 9739 | esac |
10207 | 9740 | case `$CC -V 2>&1 | sed 5q` in |
10208 | 9741 | *Sun\ C*) # Sun C 5.9 |
10209 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
9742 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
10210 | 9743 | compiler_needs_object=yes |
10211 | 9744 | tmp_sharedflag='-G' ;; |
10212 | 9745 | *Sun\ F*) # Sun Fortran 8.3 |
10222 | 9755 | fi |
10223 | 9756 | |
10224 | 9757 | case $cc_basename in |
10225 | xlf*) | |
9758 | xlf* | bgf* | bgxlf* | mpixlf*) | |
10226 | 9759 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
10227 | 9760 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
10228 | 9761 | hardcode_libdir_flag_spec= |
10229 | 9762 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
10230 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9763 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
10231 | 9764 | if test "x$supports_anon_versioning" = xyes; then |
10232 | 9765 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
10233 | 9766 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
10234 | 9767 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
10235 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9768 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
10236 | 9769 | fi |
10237 | 9770 | ;; |
10238 | 9771 | esac |
10353 | 9886 | else |
10354 | 9887 | # If we're using GNU nm, then we don't want the "-C" option. |
10355 | 9888 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
9889 | # Also, AIX nm treats weak defined symbols like other global | |
9890 | # defined symbols, whereas GNU nm marks them as "W". | |
10356 | 9891 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
10357 | 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' | |
9892 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
10358 | 9893 | else |
10359 | 9894 | 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' |
10360 | 9895 | fi |
10472 | 10007 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10473 | 10008 | |
10474 | 10009 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10475 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
10010 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
10476 | 10011 | else |
10477 | 10012 | if test "$host_cpu" = ia64; then |
10478 | 10013 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
10516 | 10051 | # -berok will link without error, but may produce a broken library. |
10517 | 10052 | no_undefined_flag=' ${wl}-bernotok' |
10518 | 10053 | allow_undefined_flag=' ${wl}-berok' |
10519 | # Exported symbols can be pulled into shared objects from archives | |
10520 | whole_archive_flag_spec='$convenience' | |
10054 | if test "$with_gnu_ld" = yes; then | |
10055 | # We only use this code for GNU lds that support --whole-archive. | |
10056 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10057 | else | |
10058 | # Exported symbols can be pulled into shared objects from archives | |
10059 | whole_archive_flag_spec='$convenience' | |
10060 | fi | |
10521 | 10061 | archive_cmds_need_lc=yes |
10522 | 10062 | # This is similar to how AIX traditionally builds its shared libraries. |
10523 | 10063 | 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' |
10556 | 10096 | # Tell ltmain to make .dll files, not .so files. |
10557 | 10097 | shrext_cmds=".dll" |
10558 | 10098 | # FIXME: Setting linknames here is a bad hack. |
10559 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10099 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10560 | 10100 | # The linker will automatically build a .lib file if we build a DLL. |
10561 | 10101 | old_archive_from_new_cmds='true' |
10562 | 10102 | # FIXME: Should let the user specify the lib program. |
10572 | 10112 | hardcode_direct=no |
10573 | 10113 | hardcode_automatic=yes |
10574 | 10114 | hardcode_shlibpath_var=unsupported |
10575 | whole_archive_flag_spec='' | |
10115 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10116 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
10117 | else | |
10118 | whole_archive_flag_spec='' | |
10119 | fi | |
10576 | 10120 | link_all_deplibs=yes |
10577 | 10121 | allow_undefined_flag="$_lt_dar_allow_undefined" |
10578 | 10122 | case $cc_basename in |
10580 | 10124 | *) _lt_dar_can_shared=$GCC ;; |
10581 | 10125 | esac |
10582 | 10126 | if test "$_lt_dar_can_shared" = "yes"; then |
10583 | output_verbose_link_cmd=echo | |
10127 | output_verbose_link_cmd=func_echo_all | |
10584 | 10128 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
10585 | 10129 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
10586 | 10130 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
10646 | 10190 | ;; |
10647 | 10191 | |
10648 | 10192 | hpux10*) |
10649 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
10193 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10650 | 10194 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10651 | 10195 | else |
10652 | 10196 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
10665 | 10209 | ;; |
10666 | 10210 | |
10667 | 10211 | hpux11*) |
10668 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
10212 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10669 | 10213 | case $host_cpu in |
10670 | 10214 | hppa*64*) |
10671 | 10215 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
10686 | 10230 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
10687 | 10231 | ;; |
10688 | 10232 | *) |
10689 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10233 | ||
10234 | # Older versions of the 11.00 compiler do not understand -b yet | |
10235 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10237 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10238 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
10239 | $as_echo_n "(cached) " >&6 | |
10240 | else | |
10241 | lt_cv_prog_compiler__b=no | |
10242 | save_LDFLAGS="$LDFLAGS" | |
10243 | LDFLAGS="$LDFLAGS -b" | |
10244 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10245 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10246 | # The linker can only warn and ignore the option if not recognized | |
10247 | # So say no if there are warnings | |
10248 | if test -s conftest.err; then | |
10249 | # Append any errors to the config.log. | |
10250 | cat conftest.err 1>&5 | |
10251 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10252 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10253 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10254 | lt_cv_prog_compiler__b=yes | |
10255 | fi | |
10256 | else | |
10257 | lt_cv_prog_compiler__b=yes | |
10258 | fi | |
10259 | fi | |
10260 | $RM -r conftest* | |
10261 | LDFLAGS="$save_LDFLAGS" | |
10262 | ||
10263 | fi | |
10264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10265 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10266 | ||
10267 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10268 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10269 | else | |
10270 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10271 | fi | |
10272 | ||
10690 | 10273 | ;; |
10691 | 10274 | esac |
10692 | 10275 | fi |
10714 | 10297 | |
10715 | 10298 | irix5* | irix6* | nonstopux*) |
10716 | 10299 | if test "$GCC" = yes; then |
10717 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10300 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10718 | 10301 | # Try to use the -exported_symbol ld option, if it does not |
10719 | 10302 | # work, assume that -exports_file does not work either and |
10720 | 10303 | # implicitly export all symbols. |
10725 | 10308 | int foo(void) {} |
10726 | 10309 | _ACEOF |
10727 | 10310 | if ac_fn_c_try_link "$LINENO"; then : |
10728 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
10311 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
10729 | 10312 | |
10730 | 10313 | fi |
10731 | 10314 | rm -f core conftest.err conftest.$ac_objext \ |
10732 | 10315 | conftest$ac_exeext conftest.$ac_ext |
10733 | 10316 | LDFLAGS="$save_LDFLAGS" |
10734 | 10317 | else |
10735 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
10736 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
10318 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
10319 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
10737 | 10320 | fi |
10738 | 10321 | archive_cmds_need_lc='no' |
10739 | 10322 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10795 | 10378 | hardcode_libdir_flag_spec='-L$libdir' |
10796 | 10379 | hardcode_minus_L=yes |
10797 | 10380 | allow_undefined_flag=unsupported |
10798 | 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' | |
10381 | 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' | |
10799 | 10382 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
10800 | 10383 | ;; |
10801 | 10384 | |
10802 | 10385 | osf3*) |
10803 | 10386 | if test "$GCC" = yes; then |
10804 | 10387 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
10805 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10388 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10806 | 10389 | else |
10807 | 10390 | allow_undefined_flag=' -expect_unresolved \*' |
10808 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
10391 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
10809 | 10392 | fi |
10810 | 10393 | archive_cmds_need_lc='no' |
10811 | 10394 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10815 | 10398 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10816 | 10399 | if test "$GCC" = yes; then |
10817 | 10400 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
10818 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10401 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
10819 | 10402 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
10820 | 10403 | else |
10821 | 10404 | allow_undefined_flag=' -expect_unresolved \*' |
10822 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
10405 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
10823 | 10406 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
10824 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
10407 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
10825 | 10408 | |
10826 | 10409 | # Both c and cxx compiler support -rpath directly |
10827 | 10410 | hardcode_libdir_flag_spec='-rpath $libdir' |
11024 | 10607 | # to ld, don't add -lc before -lgcc. |
11025 | 10608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
11026 | 10609 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
11027 | $RM conftest* | |
11028 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11029 | ||
11030 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10610 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
10611 | $as_echo_n "(cached) " >&6 | |
10612 | else | |
10613 | $RM conftest* | |
10614 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10615 | ||
10616 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
11031 | 10617 | (eval $ac_compile) 2>&5 |
11032 | 10618 | ac_status=$? |
11033 | 10619 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11034 | 10620 | test $ac_status = 0; } 2>conftest.err; then |
11035 | soname=conftest | |
11036 | lib=conftest | |
11037 | libobjs=conftest.$ac_objext | |
11038 | deplibs= | |
11039 | wl=$lt_prog_compiler_wl | |
11040 | pic_flag=$lt_prog_compiler_pic | |
11041 | compiler_flags=-v | |
11042 | linker_flags=-v | |
11043 | verstring= | |
11044 | output_objdir=. | |
11045 | libname=conftest | |
11046 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
11047 | allow_undefined_flag= | |
11048 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10621 | soname=conftest | |
10622 | lib=conftest | |
10623 | libobjs=conftest.$ac_objext | |
10624 | deplibs= | |
10625 | wl=$lt_prog_compiler_wl | |
10626 | pic_flag=$lt_prog_compiler_pic | |
10627 | compiler_flags=-v | |
10628 | linker_flags=-v | |
10629 | verstring= | |
10630 | output_objdir=. | |
10631 | libname=conftest | |
10632 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10633 | allow_undefined_flag= | |
10634 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
11049 | 10635 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11050 | 10636 | ac_status=$? |
11051 | 10637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11052 | 10638 | test $ac_status = 0; } |
11053 | then | |
11054 | archive_cmds_need_lc=no | |
11055 | else | |
11056 | archive_cmds_need_lc=yes | |
11057 | fi | |
11058 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
11059 | else | |
11060 | cat conftest.err 1>&5 | |
11061 | fi | |
11062 | $RM conftest* | |
11063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
11064 | $as_echo "$archive_cmds_need_lc" >&6; } | |
10639 | then | |
10640 | lt_cv_archive_cmds_need_lc=no | |
10641 | else | |
10642 | lt_cv_archive_cmds_need_lc=yes | |
10643 | fi | |
10644 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10645 | else | |
10646 | cat conftest.err 1>&5 | |
10647 | fi | |
10648 | $RM conftest* | |
10649 | ||
10650 | fi | |
10651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10652 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10653 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
11065 | 10654 | ;; |
11066 | 10655 | esac |
11067 | 10656 | fi |
11232 | 10821 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
11233 | 10822 | *) lt_awk_arg="/^libraries:/" ;; |
11234 | 10823 | esac |
11235 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
11236 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
10824 | case $host_os in | |
10825 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10826 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10827 | esac | |
10828 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10829 | case $lt_search_path_spec in | |
10830 | *\;*) | |
11237 | 10831 | # if the path contains ";" then we assume it to be the separator |
11238 | 10832 | # otherwise default to the standard path separator (i.e. ":") - it is |
11239 | 10833 | # assumed that no part of a normal pathname contains ";" but that should |
11240 | 10834 | # okay in the real world where ";" in dirpaths is itself problematic. |
11241 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
11242 | else | |
11243 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11244 | fi | |
10835 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10836 | ;; | |
10837 | *) | |
10838 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10839 | ;; | |
10840 | esac | |
11245 | 10841 | # Ok, now we have the path, separated by spaces, we can step through it |
11246 | 10842 | # and add multilib dir if necessary. |
11247 | 10843 | lt_tmp_lt_search_path_spec= |
11254 | 10850 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
11255 | 10851 | fi |
11256 | 10852 | done |
11257 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
10853 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
11258 | 10854 | BEGIN {RS=" "; FS="/|\n";} { |
11259 | 10855 | lt_foo=""; |
11260 | 10856 | lt_count=0; |
11274 | 10870 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
11275 | 10871 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
11276 | 10872 | }'` |
11277 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
10873 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10874 | # for these hosts. | |
10875 | case $host_os in | |
10876 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10877 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10878 | esac | |
10879 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
11278 | 10880 | else |
11279 | 10881 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11280 | 10882 | fi |
11362 | 10964 | m68k) |
11363 | 10965 | library_names_spec='$libname.ixlibrary $libname.a' |
11364 | 10966 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
11365 | 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' | |
10967 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' | |
11366 | 10968 | ;; |
11367 | 10969 | esac |
11368 | 10970 | ;; |
11415 | 11017 | cygwin*) |
11416 | 11018 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
11417 | 11019 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11418 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
11020 | ||
11021 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11419 | 11022 | ;; |
11420 | 11023 | mingw* | cegcc*) |
11421 | 11024 | # MinGW DLLs use traditional 'lib' prefix |
11422 | 11025 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11423 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
11424 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11425 | # It is most probably a Windows format PATH printed by | |
11426 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
11427 | # path with ; separators, and with drive letters. We can handle the | |
11428 | # drive letters (cygwin fileutils understands them), so leave them, | |
11429 | # especially as we might pass files found there to a mingw objdump, | |
11430 | # which wouldn't understand a cygwinified path. Ahh. | |
11431 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11432 | else | |
11433 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11434 | fi | |
11435 | 11026 | ;; |
11436 | 11027 | pw32*) |
11437 | 11028 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
11531 | 11122 | hardcode_into_libs=yes |
11532 | 11123 | ;; |
11533 | 11124 | |
11125 | haiku*) | |
11126 | version_type=linux | |
11127 | need_lib_prefix=no | |
11128 | need_version=no | |
11129 | dynamic_linker="$host_os runtime_loader" | |
11130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11131 | soname_spec='${libname}${release}${shared_ext}$major' | |
11132 | shlibpath_var=LIBRARY_PATH | |
11133 | shlibpath_overrides_runpath=yes | |
11134 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11135 | hardcode_into_libs=yes | |
11136 | ;; | |
11137 | ||
11534 | 11138 | hpux9* | hpux10* | hpux11*) |
11535 | 11139 | # Give a soname corresponding to the major version so that dld.sl refuses to |
11536 | 11140 | # link against other versions. |
11573 | 11177 | soname_spec='${libname}${release}${shared_ext}$major' |
11574 | 11178 | ;; |
11575 | 11179 | esac |
11576 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
11180 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11577 | 11181 | postinstall_cmds='chmod 555 $lib' |
11182 | # or fails outright, so override atomically: | |
11183 | install_override_mode=555 | |
11578 | 11184 | ;; |
11579 | 11185 | |
11580 | 11186 | interix[3-9]*) |
11632 | 11238 | ;; |
11633 | 11239 | |
11634 | 11240 | # This must be Linux ELF. |
11635 | linux* | k*bsd*-gnu) | |
11241 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
11636 | 11242 | version_type=linux |
11637 | 11243 | need_lib_prefix=no |
11638 | 11244 | need_version=no |
11641 | 11247 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
11642 | 11248 | shlibpath_var=LD_LIBRARY_PATH |
11643 | 11249 | shlibpath_overrides_runpath=no |
11250 | ||
11644 | 11251 | # Some binutils ld are patched to set DT_RUNPATH |
11645 | save_LDFLAGS=$LDFLAGS | |
11646 | save_libdir=$libdir | |
11647 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11648 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11252 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | |
11253 | $as_echo_n "(cached) " >&6 | |
11254 | else | |
11255 | lt_cv_shlibpath_overrides_runpath=no | |
11256 | save_LDFLAGS=$LDFLAGS | |
11257 | save_libdir=$libdir | |
11258 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11259 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11650 | 11261 | /* end confdefs.h. */ |
11651 | 11262 | |
11652 | 11263 | int |
11659 | 11270 | _ACEOF |
11660 | 11271 | if ac_fn_c_try_link "$LINENO"; then : |
11661 | 11272 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
11662 | shlibpath_overrides_runpath=yes | |
11273 | lt_cv_shlibpath_overrides_runpath=yes | |
11663 | 11274 | fi |
11664 | 11275 | fi |
11665 | 11276 | rm -f core conftest.err conftest.$ac_objext \ |
11666 | 11277 | conftest$ac_exeext conftest.$ac_ext |
11667 | LDFLAGS=$save_LDFLAGS | |
11668 | libdir=$save_libdir | |
11278 | LDFLAGS=$save_LDFLAGS | |
11279 | libdir=$save_libdir | |
11280 | ||
11281 | fi | |
11282 | ||
11283 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11669 | 11284 | |
11670 | 11285 | # This implies no fast_install, which is unacceptable. |
11671 | 11286 | # Some rework will be needed to allow for fast_install |
11677 | 11292 | |
11678 | 11293 | # Append ld.so.conf contents to the search path |
11679 | 11294 | if test -f /etc/ld.so.conf; then |
11680 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
11295 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
11681 | 11296 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
11297 | ||
11682 | 11298 | fi |
11683 | 11299 | |
11684 | 11300 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11980 | 11596 | |
11981 | 11597 | |
11982 | 11598 | |
11599 | ||
11600 | ||
11601 | ||
11602 | ||
11603 | ||
11983 | 11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11984 | 11605 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11985 | 11606 | hardcode_action= |
12310 | 11931 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12311 | 11932 | lt_status=$lt_dlunknown |
12312 | 11933 | cat > conftest.$ac_ext <<_LT_EOF |
12313 | #line 12314 "configure" | |
11934 | #line $LINENO "configure" | |
12314 | 11935 | #include "confdefs.h" |
12315 | 11936 | |
12316 | 11937 | #if HAVE_DLFCN_H |
12351 | 11972 | # endif |
12352 | 11973 | #endif |
12353 | 11974 | |
12354 | void fnord() { int i=42;} | |
11975 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11976 | correspondingly for the symbols needed. */ | |
11977 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11978 | void fnord () __attribute__((visibility("default"))); | |
11979 | #endif | |
11980 | ||
11981 | void fnord () { int i=42; } | |
12355 | 11982 | int main () |
12356 | 11983 | { |
12357 | 11984 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12360 | 11987 | if (self) |
12361 | 11988 | { |
12362 | 11989 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12363 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11990 | else | |
11991 | { | |
11992 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11993 | else puts (dlerror ()); | |
11994 | } | |
12364 | 11995 | /* dlclose (self); */ |
12365 | 11996 | } |
12366 | 11997 | else |
12406 | 12037 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12407 | 12038 | lt_status=$lt_dlunknown |
12408 | 12039 | cat > conftest.$ac_ext <<_LT_EOF |
12409 | #line 12410 "configure" | |
12040 | #line $LINENO "configure" | |
12410 | 12041 | #include "confdefs.h" |
12411 | 12042 | |
12412 | 12043 | #if HAVE_DLFCN_H |
12447 | 12078 | # endif |
12448 | 12079 | #endif |
12449 | 12080 | |
12450 | void fnord() { int i=42;} | |
12081 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12082 | correspondingly for the symbols needed. */ | |
12083 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12084 | void fnord () __attribute__((visibility("default"))); | |
12085 | #endif | |
12086 | ||
12087 | void fnord () { int i=42; } | |
12451 | 12088 | int main () |
12452 | 12089 | { |
12453 | 12090 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12456 | 12093 | if (self) |
12457 | 12094 | { |
12458 | 12095 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12459 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12096 | else | |
12097 | { | |
12098 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12099 | else puts (dlerror ()); | |
12100 | } | |
12460 | 12101 | /* dlclose (self); */ |
12461 | 12102 | } |
12462 | 12103 | else |
12613 | 12254 | |
12614 | 12255 | CC="$lt_save_CC" |
12615 | 12256 | |
12257 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12258 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12259 | (test "X$CXX" != "Xg++"))) ; then | |
12260 | ac_ext=cpp | |
12261 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12262 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12263 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12264 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12266 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12267 | if test -z "$CXXCPP"; then | |
12268 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : | |
12269 | $as_echo_n "(cached) " >&6 | |
12270 | else | |
12271 | # Double quotes because CXXCPP needs to be expanded | |
12272 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
12273 | do | |
12274 | ac_preproc_ok=false | |
12275 | for ac_cxx_preproc_warn_flag in '' yes | |
12276 | do | |
12277 | # Use a header file that comes with gcc, so configuring glibc | |
12278 | # with a fresh cross-compiler works. | |
12279 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12280 | # <limits.h> exists even on freestanding compilers. | |
12281 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12282 | # not just through cpp. "Syntax error" is here to catch this case. | |
12283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12284 | /* end confdefs.h. */ | |
12285 | #ifdef __STDC__ | |
12286 | # include <limits.h> | |
12287 | #else | |
12288 | # include <assert.h> | |
12289 | #endif | |
12290 | Syntax error | |
12291 | _ACEOF | |
12292 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12293 | ||
12294 | else | |
12295 | # Broken: fails on valid input. | |
12296 | continue | |
12297 | fi | |
12298 | rm -f conftest.err conftest.$ac_ext | |
12299 | ||
12300 | # OK, works on sane cases. Now check whether nonexistent headers | |
12301 | # can be detected and how. | |
12302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12303 | /* end confdefs.h. */ | |
12304 | #include <ac_nonexistent.h> | |
12305 | _ACEOF | |
12306 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12307 | # Broken: success on invalid input. | |
12308 | continue | |
12309 | else | |
12310 | # Passes both tests. | |
12311 | ac_preproc_ok=: | |
12312 | break | |
12313 | fi | |
12314 | rm -f conftest.err conftest.$ac_ext | |
12315 | ||
12316 | done | |
12317 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12318 | rm -f conftest.err conftest.$ac_ext | |
12319 | if $ac_preproc_ok; then : | |
12320 | break | |
12321 | fi | |
12322 | ||
12323 | done | |
12324 | ac_cv_prog_CXXCPP=$CXXCPP | |
12325 | ||
12326 | fi | |
12327 | CXXCPP=$ac_cv_prog_CXXCPP | |
12328 | else | |
12329 | ac_cv_prog_CXXCPP=$CXXCPP | |
12330 | fi | |
12331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12332 | $as_echo "$CXXCPP" >&6; } | |
12333 | ac_preproc_ok=false | |
12334 | for ac_cxx_preproc_warn_flag in '' yes | |
12335 | do | |
12336 | # Use a header file that comes with gcc, so configuring glibc | |
12337 | # with a fresh cross-compiler works. | |
12338 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12339 | # <limits.h> exists even on freestanding compilers. | |
12340 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12341 | # not just through cpp. "Syntax error" is here to catch this case. | |
12342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12343 | /* end confdefs.h. */ | |
12344 | #ifdef __STDC__ | |
12345 | # include <limits.h> | |
12346 | #else | |
12347 | # include <assert.h> | |
12348 | #endif | |
12349 | Syntax error | |
12350 | _ACEOF | |
12351 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12352 | ||
12353 | else | |
12354 | # Broken: fails on valid input. | |
12355 | continue | |
12356 | fi | |
12357 | rm -f conftest.err conftest.$ac_ext | |
12358 | ||
12359 | # OK, works on sane cases. Now check whether nonexistent headers | |
12360 | # can be detected and how. | |
12361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12362 | /* end confdefs.h. */ | |
12363 | #include <ac_nonexistent.h> | |
12364 | _ACEOF | |
12365 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12366 | # Broken: success on invalid input. | |
12367 | continue | |
12368 | else | |
12369 | # Passes both tests. | |
12370 | ac_preproc_ok=: | |
12371 | break | |
12372 | fi | |
12373 | rm -f conftest.err conftest.$ac_ext | |
12374 | ||
12375 | done | |
12376 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12377 | rm -f conftest.err conftest.$ac_ext | |
12378 | if $ac_preproc_ok; then : | |
12379 | ||
12380 | else | |
12381 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12382 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12383 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
12384 | See \`config.log' for more details" "$LINENO" 5; } | |
12385 | fi | |
12386 | ||
12387 | ac_ext=c | |
12388 | ac_cpp='$CPP $CPPFLAGS' | |
12389 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12390 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12391 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12392 | ||
12393 | else | |
12394 | _lt_caught_CXX_error=yes | |
12395 | fi | |
12616 | 12396 | |
12617 | 12397 | ac_ext=cpp |
12618 | 12398 | ac_cpp='$CXXCPP $CPPFLAGS' |
12639 | 12419 | module_expsym_cmds_CXX= |
12640 | 12420 | link_all_deplibs_CXX=unknown |
12641 | 12421 | old_archive_cmds_CXX=$old_archive_cmds |
12422 | reload_flag_CXX=$reload_flag | |
12423 | reload_cmds_CXX=$reload_cmds | |
12642 | 12424 | no_undefined_flag_CXX= |
12643 | 12425 | whole_archive_flag_spec_CXX= |
12644 | 12426 | enable_shared_with_static_runtimes_CXX=no |
12721 | 12503 | *) break;; |
12722 | 12504 | esac |
12723 | 12505 | done |
12724 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
12506 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
12725 | 12507 | |
12726 | 12508 | |
12727 | 12509 | if test -n "$compiler"; then |
12821 | 12603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12822 | 12604 | $as_echo "no" >&6; } |
12823 | 12605 | fi |
12824 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
12606 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
12825 | 12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
12826 | 12608 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
12827 | 12609 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
12883 | 12665 | # Commands to make compiler produce verbose output that lists |
12884 | 12666 | # what "hidden" libraries, object files and flags are used when |
12885 | 12667 | # linking a shared library. |
12886 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12668 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12887 | 12669 | |
12888 | 12670 | else |
12889 | 12671 | GXX=no |
13025 | 12807 | |
13026 | 12808 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
13027 | 12809 | |
13028 | 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
12810 | 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
13029 | 12811 | else |
13030 | 12812 | if test "$host_cpu" = ia64; then |
13031 | 12813 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
13069 | 12851 | # -berok will link without error, but may produce a broken library. |
13070 | 12852 | no_undefined_flag_CXX=' ${wl}-bernotok' |
13071 | 12853 | allow_undefined_flag_CXX=' ${wl}-berok' |
13072 | # Exported symbols can be pulled into shared objects from archives | |
13073 | whole_archive_flag_spec_CXX='$convenience' | |
12854 | if test "$with_gnu_ld" = yes; then | |
12855 | # We only use this code for GNU lds that support --whole-archive. | |
12856 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12857 | else | |
12858 | # Exported symbols can be pulled into shared objects from archives | |
12859 | whole_archive_flag_spec_CXX='$convenience' | |
12860 | fi | |
13074 | 12861 | archive_cmds_need_lc_CXX=yes |
13075 | 12862 | # This is similar to how AIX traditionally builds its shared |
13076 | 12863 | # libraries. |
13103 | 12890 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
13104 | 12891 | # as there is no search path for DLLs. |
13105 | 12892 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
12893 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
13106 | 12894 | allow_undefined_flag_CXX=unsupported |
13107 | 12895 | always_export_symbols_CXX=no |
13108 | 12896 | enable_shared_with_static_runtimes_CXX=yes |
13129 | 12917 | hardcode_direct_CXX=no |
13130 | 12918 | hardcode_automatic_CXX=yes |
13131 | 12919 | hardcode_shlibpath_var_CXX=unsupported |
13132 | whole_archive_flag_spec_CXX='' | |
12920 | if test "$lt_cv_ld_force_load" = "yes"; then | |
12921 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
12922 | else | |
12923 | whole_archive_flag_spec_CXX='' | |
12924 | fi | |
13133 | 12925 | link_all_deplibs_CXX=yes |
13134 | 12926 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
13135 | 12927 | case $cc_basename in |
13137 | 12929 | *) _lt_dar_can_shared=$GCC ;; |
13138 | 12930 | esac |
13139 | 12931 | if test "$_lt_dar_can_shared" = "yes"; then |
13140 | output_verbose_link_cmd=echo | |
12932 | output_verbose_link_cmd=func_echo_all | |
13141 | 12933 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
13142 | 12934 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
13143 | 12935 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
13190 | 12982 | gnu*) |
13191 | 12983 | ;; |
13192 | 12984 | |
12985 | haiku*) | |
12986 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12987 | link_all_deplibs_CXX=yes | |
12988 | ;; | |
12989 | ||
13193 | 12990 | hpux9*) |
13194 | 12991 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
13195 | 12992 | hardcode_libdir_separator_CXX=: |
13214 | 13011 | # explicitly linking system object files so we need to strip them |
13215 | 13012 | # from the output so that they don't get included in the library |
13216 | 13013 | # dependencies. |
13217 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
13014 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13218 | 13015 | ;; |
13219 | 13016 | *) |
13220 | 13017 | if test "$GXX" = yes; then |
13279 | 13076 | # explicitly linking system object files so we need to strip them |
13280 | 13077 | # from the output so that they don't get included in the library |
13281 | 13078 | # dependencies. |
13282 | 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 "X$list" | $Xsed' | |
13079 | 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; func_echo_all "$list"' | |
13283 | 13080 | ;; |
13284 | 13081 | *) |
13285 | 13082 | if test "$GXX" = yes; then |
13322 | 13119 | case $cc_basename in |
13323 | 13120 | CC*) |
13324 | 13121 | # SGI C++ |
13325 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
13122 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13326 | 13123 | |
13327 | 13124 | # Archives containing C++ object files must be created using |
13328 | 13125 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
13333 | 13130 | *) |
13334 | 13131 | if test "$GXX" = yes; then |
13335 | 13132 | if test "$with_gnu_ld" = no; then |
13336 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13133 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13337 | 13134 | else |
13338 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | |
13135 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | |
13339 | 13136 | fi |
13340 | 13137 | fi |
13341 | 13138 | link_all_deplibs_CXX=yes |
13346 | 13143 | inherit_rpath_CXX=yes |
13347 | 13144 | ;; |
13348 | 13145 | |
13349 | linux* | k*bsd*-gnu) | |
13146 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
13350 | 13147 | case $cc_basename in |
13351 | 13148 | KCC*) |
13352 | 13149 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
13364 | 13161 | # explicitly linking system object files so we need to strip them |
13365 | 13162 | # from the output so that they don't get included in the library |
13366 | 13163 | # dependencies. |
13367 | 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 "X$list" | $Xsed' | |
13164 | 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; func_echo_all "$list"' | |
13368 | 13165 | |
13369 | 13166 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
13370 | 13167 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
13401 | 13198 | pgCC* | pgcpp*) |
13402 | 13199 | # Portland Group C++ compiler |
13403 | 13200 | case `$CC -V` in |
13404 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) | |
13201 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
13405 | 13202 | prelink_cmds_CXX='tpldir=Template.dir~ |
13406 | 13203 | rm -rf $tpldir~ |
13407 | 13204 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
13408 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
13205 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
13409 | 13206 | old_archive_cmds_CXX='tpldir=Template.dir~ |
13410 | 13207 | rm -rf $tpldir~ |
13411 | 13208 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
13412 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
13209 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
13413 | 13210 | $RANLIB $oldlib' |
13414 | 13211 | archive_cmds_CXX='tpldir=Template.dir~ |
13415 | 13212 | rm -rf $tpldir~ |
13416 | 13213 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
13417 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13214 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13418 | 13215 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
13419 | 13216 | rm -rf $tpldir~ |
13420 | 13217 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
13421 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
13218 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
13422 | 13219 | ;; |
13423 | *) # Version 6 will use weak symbols | |
13220 | *) # Version 6 and above use weak symbols | |
13424 | 13221 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
13425 | 13222 | 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' |
13426 | 13223 | ;; |
13428 | 13225 | |
13429 | 13226 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
13430 | 13227 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
13431 | 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' | |
13228 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
13432 | 13229 | ;; |
13433 | 13230 | cxx*) |
13434 | 13231 | # Compaq C++ |
13447 | 13244 | # explicitly linking system object files so we need to strip them |
13448 | 13245 | # from the output so that they don't get included in the library |
13449 | 13246 | # dependencies. |
13450 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' | |
13247 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' | |
13451 | 13248 | ;; |
13452 | xl*) | |
13249 | xl* | mpixl* | bgxl*) | |
13453 | 13250 | # IBM XL 8.0 on PPC, with GNU ld |
13454 | 13251 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13455 | 13252 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
13469 | 13266 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
13470 | 13267 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
13471 | 13268 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
13472 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
13269 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
13473 | 13270 | compiler_needs_object_CXX=yes |
13474 | 13271 | |
13475 | 13272 | # Not sure whether something based on |
13476 | 13273 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
13477 | 13274 | # would be better. |
13478 | output_verbose_link_cmd='echo' | |
13275 | output_verbose_link_cmd='func_echo_all' | |
13479 | 13276 | |
13480 | 13277 | # Archives containing C++ object files must be created using |
13481 | 13278 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
13544 | 13341 | export_dynamic_flag_spec_CXX='${wl}-E' |
13545 | 13342 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
13546 | 13343 | fi |
13547 | output_verbose_link_cmd=echo | |
13344 | output_verbose_link_cmd=func_echo_all | |
13548 | 13345 | else |
13549 | 13346 | ld_shlibs_CXX=no |
13550 | 13347 | fi |
13579 | 13376 | case $host in |
13580 | 13377 | osf3*) |
13581 | 13378 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
13582 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
13379 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13583 | 13380 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
13584 | 13381 | ;; |
13585 | 13382 | *) |
13586 | 13383 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
13587 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
13384 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13588 | 13385 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
13589 | 13386 | echo "-hidden">> $lib.exp~ |
13590 | $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | |
13387 | $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~ | |
13591 | 13388 | $RM $lib.exp' |
13592 | 13389 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
13593 | 13390 | ;; |
13603 | 13400 | # explicitly linking system object files so we need to strip them |
13604 | 13401 | # from the output so that they don't get included in the library |
13605 | 13402 | # dependencies. |
13606 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' | |
13403 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' | |
13607 | 13404 | ;; |
13608 | 13405 | *) |
13609 | 13406 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
13610 | 13407 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
13611 | 13408 | case $host in |
13612 | 13409 | osf3*) |
13613 | 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13410 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13614 | 13411 | ;; |
13615 | 13412 | *) |
13616 | 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13413 | 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13617 | 13414 | ;; |
13618 | 13415 | esac |
13619 | 13416 | |
13623 | 13420 | # Commands to make compiler produce verbose output that lists |
13624 | 13421 | # what "hidden" libraries, object files and flags are used when |
13625 | 13422 | # linking a shared library. |
13626 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
13423 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13627 | 13424 | |
13628 | 13425 | else |
13629 | 13426 | # FIXME: insert proper C++ library support |
13659 | 13456 | |
13660 | 13457 | solaris*) |
13661 | 13458 | case $cc_basename in |
13662 | CC*) | |
13459 | CC* | sunCC*) | |
13663 | 13460 | # Sun C++ 4.2, 5.x and Centerline C++ |
13664 | 13461 | archive_cmds_need_lc_CXX=yes |
13665 | 13462 | no_undefined_flag_CXX=' -zdefs' |
13680 | 13477 | esac |
13681 | 13478 | link_all_deplibs_CXX=yes |
13682 | 13479 | |
13683 | output_verbose_link_cmd='echo' | |
13480 | output_verbose_link_cmd='func_echo_all' | |
13684 | 13481 | |
13685 | 13482 | # Archives containing C++ object files must be created using |
13686 | 13483 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
13707 | 13504 | # Commands to make compiler produce verbose output that lists |
13708 | 13505 | # what "hidden" libraries, object files and flags are used when |
13709 | 13506 | # linking a shared library. |
13710 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
13507 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13711 | 13508 | else |
13712 | 13509 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
13713 | 13510 | # platform. |
13718 | 13515 | # Commands to make compiler produce verbose output that lists |
13719 | 13516 | # what "hidden" libraries, object files and flags are used when |
13720 | 13517 | # linking a shared library. |
13721 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
13518 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13722 | 13519 | fi |
13723 | 13520 | |
13724 | 13521 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
13772 | 13569 | CC*) |
13773 | 13570 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
13774 | 13571 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
13572 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
13573 | '"$old_archive_cmds_CXX" | |
13574 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13575 | '"$reload_cmds_CXX" | |
13775 | 13576 | ;; |
13776 | 13577 | *) |
13777 | 13578 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
13953 | 13754 | |
13954 | 13755 | solaris*) |
13955 | 13756 | case $cc_basename in |
13956 | CC*) | |
13757 | CC* | sunCC*) | |
13957 | 13758 | # The more standards-conforming stlport4 library is |
13958 | 13759 | # incompatible with the Cstd library. Avoid specifying |
13959 | 13760 | # it if it's in CXXFLAGS. Ignore libCrun as |
14068 | 13869 | *djgpp*) |
14069 | 13870 | # DJGPP does not support shared libraries at all |
14070 | 13871 | lt_prog_compiler_pic_CXX= |
13872 | ;; | |
13873 | haiku*) | |
13874 | # PIC is the default for Haiku. | |
13875 | # The "-static" flag exists, but is broken. | |
13876 | lt_prog_compiler_static_CXX= | |
14071 | 13877 | ;; |
14072 | 13878 | interix[3-9]*) |
14073 | 13879 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
14174 | 13980 | ;; |
14175 | 13981 | esac |
14176 | 13982 | ;; |
14177 | linux* | k*bsd*-gnu) | |
13983 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
14178 | 13984 | case $cc_basename in |
14179 | 13985 | KCC*) |
14180 | 13986 | # KAI C++ Compiler |
14207 | 14013 | lt_prog_compiler_pic_CXX= |
14208 | 14014 | lt_prog_compiler_static_CXX='-non_shared' |
14209 | 14015 | ;; |
14210 | xlc* | xlC*) | |
14211 | # IBM XL 8.0 on PPC | |
14016 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
14017 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
14212 | 14018 | lt_prog_compiler_wl_CXX='-Wl,' |
14213 | 14019 | lt_prog_compiler_pic_CXX='-qpic' |
14214 | 14020 | lt_prog_compiler_static_CXX='-qstaticlink' |
14270 | 14076 | ;; |
14271 | 14077 | solaris*) |
14272 | 14078 | case $cc_basename in |
14273 | CC*) | |
14079 | CC* | sunCC*) | |
14274 | 14080 | # Sun C++ 4.2, 5.x and Centerline C++ |
14275 | 14081 | lt_prog_compiler_pic_CXX='-KPIC' |
14276 | 14082 | lt_prog_compiler_static_CXX='-Bstatic' |
14362 | 14168 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14363 | 14169 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14364 | 14170 | -e 's:$: $lt_compiler_flag:'` |
14365 | (eval echo "\"\$as_me:14366: $lt_compile\"" >&5) | |
14171 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14366 | 14172 | (eval "$lt_compile" 2>conftest.err) |
14367 | 14173 | ac_status=$? |
14368 | 14174 | cat conftest.err >&5 |
14369 | echo "$as_me:14370: \$? = $ac_status" >&5 | |
14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14370 | 14176 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14371 | 14177 | # The compiler can only warn and ignore the option if not recognized |
14372 | 14178 | # So say no if there are warnings other than the usual output. |
14373 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
14179 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
14374 | 14180 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14375 | 14181 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14376 | 14182 | lt_cv_prog_compiler_pic_works_CXX=yes |
14415 | 14221 | if test -s conftest.err; then |
14416 | 14222 | # Append any errors to the config.log. |
14417 | 14223 | cat conftest.err 1>&5 |
14418 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
14224 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
14419 | 14225 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14420 | 14226 | if diff conftest.exp conftest.er2 >/dev/null; then |
14421 | 14227 | lt_cv_prog_compiler_static_works_CXX=yes |
14461 | 14267 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14462 | 14268 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14463 | 14269 | -e 's:$: $lt_compiler_flag:'` |
14464 | (eval echo "\"\$as_me:14465: $lt_compile\"" >&5) | |
14270 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14465 | 14271 | (eval "$lt_compile" 2>out/conftest.err) |
14466 | 14272 | ac_status=$? |
14467 | 14273 | cat out/conftest.err >&5 |
14468 | echo "$as_me:14469: \$? = $ac_status" >&5 | |
14274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14469 | 14275 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14470 | 14276 | then |
14471 | 14277 | # The compiler can only warn and ignore the option if not recognized |
14472 | 14278 | # So say no if there are warnings |
14473 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
14279 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14474 | 14280 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14475 | 14281 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14476 | 14282 | lt_cv_prog_compiler_c_o_CXX=yes |
14513 | 14319 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14514 | 14320 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14515 | 14321 | -e 's:$: $lt_compiler_flag:'` |
14516 | (eval echo "\"\$as_me:14517: $lt_compile\"" >&5) | |
14322 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14517 | 14323 | (eval "$lt_compile" 2>out/conftest.err) |
14518 | 14324 | ac_status=$? |
14519 | 14325 | cat out/conftest.err >&5 |
14520 | echo "$as_me:14521: \$? = $ac_status" >&5 | |
14326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14521 | 14327 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14522 | 14328 | then |
14523 | 14329 | # The compiler can only warn and ignore the option if not recognized |
14524 | 14330 | # So say no if there are warnings |
14525 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
14331 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14526 | 14332 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14527 | 14333 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14528 | 14334 | lt_cv_prog_compiler_c_o_CXX=yes |
14577 | 14383 | aix[4-9]*) |
14578 | 14384 | # If we're using GNU nm, then we don't want the "-C" option. |
14579 | 14385 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14386 | # Also, AIX nm treats weak defined symbols like other global defined | |
14387 | # symbols, whereas GNU nm marks them as "W". | |
14580 | 14388 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
14581 | 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' | |
14389 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
14582 | 14390 | else |
14583 | 14391 | 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' |
14584 | 14392 | fi |
14625 | 14433 | # to ld, don't add -lc before -lgcc. |
14626 | 14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
14627 | 14435 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
14628 | $RM conftest* | |
14629 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14630 | ||
14631 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14436 | if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : | |
14437 | $as_echo_n "(cached) " >&6 | |
14438 | else | |
14439 | $RM conftest* | |
14440 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14441 | ||
14442 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14632 | 14443 | (eval $ac_compile) 2>&5 |
14633 | 14444 | ac_status=$? |
14634 | 14445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14635 | 14446 | test $ac_status = 0; } 2>conftest.err; then |
14636 | soname=conftest | |
14637 | lib=conftest | |
14638 | libobjs=conftest.$ac_objext | |
14639 | deplibs= | |
14640 | wl=$lt_prog_compiler_wl_CXX | |
14641 | pic_flag=$lt_prog_compiler_pic_CXX | |
14642 | compiler_flags=-v | |
14643 | linker_flags=-v | |
14644 | verstring= | |
14645 | output_objdir=. | |
14646 | libname=conftest | |
14647 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14648 | allow_undefined_flag_CXX= | |
14649 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
14447 | soname=conftest | |
14448 | lib=conftest | |
14449 | libobjs=conftest.$ac_objext | |
14450 | deplibs= | |
14451 | wl=$lt_prog_compiler_wl_CXX | |
14452 | pic_flag=$lt_prog_compiler_pic_CXX | |
14453 | compiler_flags=-v | |
14454 | linker_flags=-v | |
14455 | verstring= | |
14456 | output_objdir=. | |
14457 | libname=conftest | |
14458 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14459 | allow_undefined_flag_CXX= | |
14460 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
14650 | 14461 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14651 | 14462 | ac_status=$? |
14652 | 14463 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14653 | 14464 | test $ac_status = 0; } |
14654 | then | |
14655 | archive_cmds_need_lc_CXX=no | |
14656 | else | |
14657 | archive_cmds_need_lc_CXX=yes | |
14658 | fi | |
14659 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14660 | else | |
14661 | cat conftest.err 1>&5 | |
14662 | fi | |
14663 | $RM conftest* | |
14664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 | |
14665 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } | |
14465 | then | |
14466 | lt_cv_archive_cmds_need_lc_CXX=no | |
14467 | else | |
14468 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14469 | fi | |
14470 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14471 | else | |
14472 | cat conftest.err 1>&5 | |
14473 | fi | |
14474 | $RM conftest* | |
14475 | ||
14476 | fi | |
14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14478 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14479 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
14666 | 14480 | ;; |
14667 | 14481 | esac |
14668 | 14482 | fi |
14819 | 14633 | m68k) |
14820 | 14634 | library_names_spec='$libname.ixlibrary $libname.a' |
14821 | 14635 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
14822 | 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' | |
14636 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' | |
14823 | 14637 | ;; |
14824 | 14638 | esac |
14825 | 14639 | ;; |
14872 | 14686 | cygwin*) |
14873 | 14687 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
14874 | 14688 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14875 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14689 | ||
14876 | 14690 | ;; |
14877 | 14691 | mingw* | cegcc*) |
14878 | 14692 | # MinGW DLLs use traditional 'lib' prefix |
14879 | 14693 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14880 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14881 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
14882 | # It is most probably a Windows format PATH printed by | |
14883 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14884 | # path with ; separators, and with drive letters. We can handle the | |
14885 | # drive letters (cygwin fileutils understands them), so leave them, | |
14886 | # especially as we might pass files found there to a mingw objdump, | |
14887 | # which wouldn't understand a cygwinified path. Ahh. | |
14888 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14889 | else | |
14890 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14891 | fi | |
14892 | 14694 | ;; |
14893 | 14695 | pw32*) |
14894 | 14696 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
14987 | 14789 | hardcode_into_libs=yes |
14988 | 14790 | ;; |
14989 | 14791 | |
14792 | haiku*) | |
14793 | version_type=linux | |
14794 | need_lib_prefix=no | |
14795 | need_version=no | |
14796 | dynamic_linker="$host_os runtime_loader" | |
14797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14798 | soname_spec='${libname}${release}${shared_ext}$major' | |
14799 | shlibpath_var=LIBRARY_PATH | |
14800 | shlibpath_overrides_runpath=yes | |
14801 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
14802 | hardcode_into_libs=yes | |
14803 | ;; | |
14804 | ||
14990 | 14805 | hpux9* | hpux10* | hpux11*) |
14991 | 14806 | # Give a soname corresponding to the major version so that dld.sl refuses to |
14992 | 14807 | # link against other versions. |
15029 | 14844 | soname_spec='${libname}${release}${shared_ext}$major' |
15030 | 14845 | ;; |
15031 | 14846 | esac |
15032 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
14847 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
15033 | 14848 | postinstall_cmds='chmod 555 $lib' |
14849 | # or fails outright, so override atomically: | |
14850 | install_override_mode=555 | |
15034 | 14851 | ;; |
15035 | 14852 | |
15036 | 14853 | interix[3-9]*) |
15088 | 14905 | ;; |
15089 | 14906 | |
15090 | 14907 | # This must be Linux ELF. |
15091 | linux* | k*bsd*-gnu) | |
14908 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
15092 | 14909 | version_type=linux |
15093 | 14910 | need_lib_prefix=no |
15094 | 14911 | need_version=no |
15097 | 14914 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15098 | 14915 | shlibpath_var=LD_LIBRARY_PATH |
15099 | 14916 | shlibpath_overrides_runpath=no |
14917 | ||
15100 | 14918 | # Some binutils ld are patched to set DT_RUNPATH |
15101 | save_LDFLAGS=$LDFLAGS | |
15102 | save_libdir=$libdir | |
15103 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15104 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14919 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | |
14920 | $as_echo_n "(cached) " >&6 | |
14921 | else | |
14922 | lt_cv_shlibpath_overrides_runpath=no | |
14923 | save_LDFLAGS=$LDFLAGS | |
14924 | save_libdir=$libdir | |
14925 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
14926 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
14927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15106 | 14928 | /* end confdefs.h. */ |
15107 | 14929 | |
15108 | 14930 | int |
15115 | 14937 | _ACEOF |
15116 | 14938 | if ac_fn_cxx_try_link "$LINENO"; then : |
15117 | 14939 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
15118 | shlibpath_overrides_runpath=yes | |
14940 | lt_cv_shlibpath_overrides_runpath=yes | |
15119 | 14941 | fi |
15120 | 14942 | fi |
15121 | 14943 | rm -f core conftest.err conftest.$ac_objext \ |
15122 | 14944 | conftest$ac_exeext conftest.$ac_ext |
15123 | LDFLAGS=$save_LDFLAGS | |
15124 | libdir=$save_libdir | |
14945 | LDFLAGS=$save_LDFLAGS | |
14946 | libdir=$save_libdir | |
14947 | ||
14948 | fi | |
14949 | ||
14950 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
15125 | 14951 | |
15126 | 14952 | # This implies no fast_install, which is unacceptable. |
15127 | 14953 | # Some rework will be needed to allow for fast_install |
15133 | 14959 | |
15134 | 14960 | # Append ld.so.conf contents to the search path |
15135 | 14961 | if test -f /etc/ld.so.conf; then |
15136 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
14962 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | |
15137 | 14963 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
14964 | ||
15138 | 14965 | fi |
15139 | 14966 | |
15140 | 14967 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15385 | 15212 | |
15386 | 15213 | |
15387 | 15214 | |
15215 | ||
15216 | ||
15388 | 15217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
15389 | 15218 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
15390 | 15219 | hardcode_action_CXX= |
15486 | 15315 | |
15487 | 15316 | case "$am__api_version" in |
15488 | 15317 | 1.01234) |
15489 | as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 | |
15318 | as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 | |
15490 | 15319 | ;; |
15491 | 15320 | *) |
15492 | 15321 | ;; |
15503 | 15332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 |
15504 | 15333 | $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } |
15505 | 15334 | test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || |
15506 | as_fn_error "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5 | |
15335 | as_fn_error $? "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5 | |
15507 | 15336 | fi |
15508 | 15337 | |
15509 | 15338 | # Extract the first word of "intltool-update", so it can be a program name with args. |
15627 | 15456 | |
15628 | 15457 | |
15629 | 15458 | if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then |
15630 | as_fn_error "The intltool scripts were not found. Please install intltool." "$LINENO" 5 | |
15459 | as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5 | |
15631 | 15460 | fi |
15632 | 15461 | |
15633 | 15462 | INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' |
15909 | 15738 | |
15910 | 15739 | |
15911 | 15740 | if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then |
15912 | as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5 | |
15741 | as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 | |
15913 | 15742 | fi |
15914 | 15743 | xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" |
15915 | 15744 | mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" |
15916 | 15745 | mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" |
15917 | 15746 | if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then |
15918 | as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5 | |
15747 | as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5 | |
15919 | 15748 | fi |
15920 | 15749 | |
15921 | 15750 | # Extract the first word of "perl", so it can be a program name with args. |
15959 | 15788 | |
15960 | 15789 | |
15961 | 15790 | if test -z "$INTLTOOL_PERL"; then |
15962 | as_fn_error "perl not found" "$LINENO" 5 | |
15791 | as_fn_error $? "perl not found" "$LINENO" 5 | |
15963 | 15792 | fi |
15964 | 15793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5 |
15965 | 15794 | $as_echo_n "checking for perl >= 5.8.1... " >&6; } |
15966 | 15795 | $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 |
15967 | 15796 | if test $? -ne 0; then |
15968 | as_fn_error "perl 5.8.1 is required for intltool" "$LINENO" 5 | |
15797 | as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5 | |
15969 | 15798 | else |
15970 | 15799 | IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" |
15971 | 15800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5 |
15978 | 15807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
15979 | 15808 | $as_echo "ok" >&6; } |
15980 | 15809 | else |
15981 | as_fn_error "XML::Parser perl module is required for intltool" "$LINENO" 5 | |
15810 | as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 | |
15982 | 15811 | fi |
15983 | 15812 | fi |
15984 | 15813 | |
16063 | 15892 | |
16064 | 15893 | |
16065 | 15894 | |
15895 | ||
15896 | ||
15897 | ||
15898 | ||
16066 | 15899 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
16067 | 15900 | if test -n "$ac_tool_prefix"; then |
16068 | 15901 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
16175 | 16008 | $as_echo "no" >&6; } |
16176 | 16009 | PKG_CONFIG="" |
16177 | 16010 | fi |
16178 | ||
16179 | 16011 | fi |
16180 | 16012 | |
16181 | 16013 | no_glib="" |
16235 | 16067 | int |
16236 | 16068 | main () |
16237 | 16069 | { |
16238 | int major, minor, micro; | |
16070 | unsigned int major, minor, micro; | |
16239 | 16071 | char *tmp_version; |
16240 | 16072 | |
16241 | 16073 | fclose (fopen ("conf.glibtest", "w")); |
16242 | 16074 | |
16243 | 16075 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
16244 | 16076 | tmp_version = g_strdup("$min_glib_version"); |
16245 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
16077 | if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) { | |
16246 | 16078 | printf("%s, bad version string\n", "$min_glib_version"); |
16247 | 16079 | exit(1); |
16248 | 16080 | } |
16281 | 16113 | } |
16282 | 16114 | else |
16283 | 16115 | { |
16284 | printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", | |
16116 | printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n", | |
16285 | 16117 | glib_major_version, glib_minor_version, glib_micro_version); |
16286 | printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", | |
16118 | printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n", | |
16287 | 16119 | major, minor, micro); |
16288 | 16120 | printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); |
16289 | 16121 | printf("***\n"); |
16433 | 16265 | |
16434 | 16266 | |
16435 | 16267 | if test $pkg_failed = yes; then |
16268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16269 | $as_echo "no" >&6; } | |
16436 | 16270 | |
16437 | 16271 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
16438 | 16272 | _pkg_short_errors_supported=yes |
16451 | 16285 | # Put the nasty error message in config.log where it belongs |
16452 | 16286 | echo "$GLIB2_PKG_ERRORS" >&5 |
16453 | 16287 | |
16454 | as_fn_error "Package requirements ( | |
16288 | as_fn_error $? "Package requirements ( | |
16455 | 16289 | glib-2.0 >= 2.8 |
16456 | 16290 | ) were not met: |
16457 | 16291 | |
16459 | 16293 | |
16460 | 16294 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
16461 | 16295 | installed software in a non-standard prefix. |
16296 | ||
16297 | Alternatively, you may set the environment variables GLIB2_CFLAGS | |
16298 | and GLIB2_LIBS to avoid the need to call pkg-config. | |
16299 | See the pkg-config man page for more details." "$LINENO" 5 | |
16300 | ||
16301 | elif test $pkg_failed = untried; then | |
16302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16303 | $as_echo "no" >&6; } | |
16304 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16305 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16306 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
16307 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
16308 | path to pkg-config. | |
16462 | 16309 | |
16463 | 16310 | Alternatively, you may set the environment variables GLIB2_CFLAGS |
16464 | 16311 | and GLIB2_LIBS to avoid the need to call pkg-config. |
16465 | 16312 | See the pkg-config man page for more details. |
16466 | " "$LINENO" 5 | |
16467 | elif test $pkg_failed = untried; then | |
16468 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16469 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16470 | as_fn_error "The pkg-config script could not be found or is too old. Make sure it | |
16471 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
16472 | path to pkg-config. | |
16473 | ||
16474 | Alternatively, you may set the environment variables GLIB2_CFLAGS | |
16475 | and GLIB2_LIBS to avoid the need to call pkg-config. | |
16476 | See the pkg-config man page for more details. | |
16477 | 16313 | |
16478 | 16314 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
16479 | See \`config.log' for more details." "$LINENO" 5; } | |
16315 | See \`config.log' for more details" "$LINENO" 5; } | |
16316 | ||
16480 | 16317 | else |
16481 | 16318 | GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS |
16482 | 16319 | GLIB2_LIBS=$pkg_cv_GLIB2_LIBS |
16483 | 16320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16484 | 16321 | $as_echo "yes" >&6; } |
16485 | : | |
16486 | fi | |
16487 | ||
16322 | ||
16323 | fi | |
16324 | ||
16325 | ||
16326 | # Check whether --with-gtk was given. | |
16327 | if test "${with_gtk+set}" = set; then : | |
16328 | withval=$with_gtk; case "$with_gtk" in | |
16329 | 2.0|3.0) ;; | |
16330 | *) as_fn_error $? "invalid gtk version specified" "$LINENO" 5 ;; | |
16331 | esac | |
16332 | else | |
16333 | with_gtk=2.0 | |
16334 | ||
16335 | fi | |
16336 | ||
16337 | ||
16338 | case "$with_gtk" in | |
16339 | 2.0) | |
16488 | 16340 | |
16489 | 16341 | pkg_failed=no |
16490 | 16342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5 |
16495 | 16347 | elif test -n "$PKG_CONFIG"; then |
16496 | 16348 | if test -n "$PKG_CONFIG" && \ |
16497 | 16349 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" |
16498 | gtk+-2.0 | |
16499 | \""; } >&5 | |
16350 | gtk+-2.0 | |
16351 | \""; } >&5 | |
16500 | 16352 | ($PKG_CONFIG --exists --print-errors " |
16501 | gtk+-2.0 | |
16502 | ") 2>&5 | |
16353 | gtk+-2.0 | |
16354 | ") 2>&5 | |
16503 | 16355 | ac_status=$? |
16504 | 16356 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16505 | 16357 | test $ac_status = 0; }; then |
16506 | 16358 | pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags " |
16507 | gtk+-2.0 | |
16508 | " 2>/dev/null` | |
16359 | gtk+-2.0 | |
16360 | " 2>/dev/null` | |
16509 | 16361 | else |
16510 | 16362 | pkg_failed=yes |
16511 | 16363 | fi |
16517 | 16369 | elif test -n "$PKG_CONFIG"; then |
16518 | 16370 | if test -n "$PKG_CONFIG" && \ |
16519 | 16371 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" |
16520 | gtk+-2.0 | |
16521 | \""; } >&5 | |
16372 | gtk+-2.0 | |
16373 | \""; } >&5 | |
16522 | 16374 | ($PKG_CONFIG --exists --print-errors " |
16523 | gtk+-2.0 | |
16524 | ") 2>&5 | |
16375 | gtk+-2.0 | |
16376 | ") 2>&5 | |
16525 | 16377 | ac_status=$? |
16526 | 16378 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16527 | 16379 | test $ac_status = 0; }; then |
16528 | 16380 | pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs " |
16529 | gtk+-2.0 | |
16530 | " 2>/dev/null` | |
16381 | gtk+-2.0 | |
16382 | " 2>/dev/null` | |
16531 | 16383 | else |
16532 | 16384 | pkg_failed=yes |
16533 | 16385 | fi |
16538 | 16390 | |
16539 | 16391 | |
16540 | 16392 | if test $pkg_failed = yes; then |
16393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16394 | $as_echo "no" >&6; } | |
16541 | 16395 | |
16542 | 16396 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
16543 | 16397 | _pkg_short_errors_supported=yes |
16546 | 16400 | fi |
16547 | 16401 | if test $_pkg_short_errors_supported = yes; then |
16548 | 16402 | GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " |
16549 | gtk+-2.0 | |
16550 | " 2>&1` | |
16403 | gtk+-2.0 | |
16404 | " 2>&1` | |
16551 | 16405 | else |
16552 | 16406 | GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors " |
16553 | gtk+-2.0 | |
16554 | " 2>&1` | |
16407 | gtk+-2.0 | |
16408 | " 2>&1` | |
16555 | 16409 | fi |
16556 | 16410 | # Put the nasty error message in config.log where it belongs |
16557 | 16411 | echo "$GTK2_PKG_ERRORS" >&5 |
16558 | 16412 | |
16559 | as_fn_error "Package requirements ( | |
16560 | gtk+-2.0 | |
16561 | ) were not met: | |
16413 | as_fn_error $? "Package requirements ( | |
16414 | gtk+-2.0 | |
16415 | ) were not met: | |
16562 | 16416 | |
16563 | 16417 | $GTK2_PKG_ERRORS |
16564 | 16418 | |
16565 | 16419 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
16566 | 16420 | installed software in a non-standard prefix. |
16421 | ||
16422 | Alternatively, you may set the environment variables GTK2_CFLAGS | |
16423 | and GTK2_LIBS to avoid the need to call pkg-config. | |
16424 | See the pkg-config man page for more details." "$LINENO" 5 | |
16425 | ||
16426 | elif test $pkg_failed = untried; then | |
16427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16428 | $as_echo "no" >&6; } | |
16429 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16430 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16431 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
16432 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
16433 | path to pkg-config. | |
16567 | 16434 | |
16568 | 16435 | Alternatively, you may set the environment variables GTK2_CFLAGS |
16569 | 16436 | and GTK2_LIBS to avoid the need to call pkg-config. |
16570 | 16437 | See the pkg-config man page for more details. |
16571 | " "$LINENO" 5 | |
16572 | elif test $pkg_failed = untried; then | |
16573 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16574 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16575 | as_fn_error "The pkg-config script could not be found or is too old. Make sure it | |
16576 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
16577 | path to pkg-config. | |
16578 | ||
16579 | Alternatively, you may set the environment variables GTK2_CFLAGS | |
16580 | and GTK2_LIBS to avoid the need to call pkg-config. | |
16581 | See the pkg-config man page for more details. | |
16582 | 16438 | |
16583 | 16439 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
16584 | See \`config.log' for more details." "$LINENO" 5; } | |
16440 | See \`config.log' for more details" "$LINENO" 5; } | |
16441 | ||
16585 | 16442 | else |
16586 | 16443 | GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS |
16587 | 16444 | GTK2_LIBS=$pkg_cv_GTK2_LIBS |
16588 | 16445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16589 | 16446 | $as_echo "yes" >&6; } |
16590 | : | |
16591 | fi | |
16447 | ||
16448 | fi | |
16449 | if false; then | |
16450 | HAVE_GTK3_TRUE= | |
16451 | HAVE_GTK3_FALSE='#' | |
16452 | else | |
16453 | HAVE_GTK3_TRUE='#' | |
16454 | HAVE_GTK3_FALSE= | |
16455 | fi | |
16456 | ||
16457 | if true; then | |
16458 | HAVE_GTK2_TRUE= | |
16459 | HAVE_GTK2_FALSE='#' | |
16460 | else | |
16461 | HAVE_GTK2_TRUE='#' | |
16462 | HAVE_GTK2_FALSE= | |
16463 | fi | |
16464 | ||
16465 | ;; | |
16466 | 3.0) | |
16467 | ||
16468 | pkg_failed=no | |
16469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5 | |
16470 | $as_echo_n "checking for GTK3... " >&6; } | |
16471 | ||
16472 | if test -n "$GTK3_CFLAGS"; then | |
16473 | pkg_cv_GTK3_CFLAGS="$GTK3_CFLAGS" | |
16474 | elif test -n "$PKG_CONFIG"; then | |
16475 | if test -n "$PKG_CONFIG" && \ | |
16476 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | |
16477 | gtk+-3.0 | |
16478 | \""; } >&5 | |
16479 | ($PKG_CONFIG --exists --print-errors " | |
16480 | gtk+-3.0 | |
16481 | ") 2>&5 | |
16482 | ac_status=$? | |
16483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16484 | test $ac_status = 0; }; then | |
16485 | pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags " | |
16486 | gtk+-3.0 | |
16487 | " 2>/dev/null` | |
16488 | else | |
16489 | pkg_failed=yes | |
16490 | fi | |
16491 | else | |
16492 | pkg_failed=untried | |
16493 | fi | |
16494 | if test -n "$GTK3_LIBS"; then | |
16495 | pkg_cv_GTK3_LIBS="$GTK3_LIBS" | |
16496 | elif test -n "$PKG_CONFIG"; then | |
16497 | if test -n "$PKG_CONFIG" && \ | |
16498 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" | |
16499 | gtk+-3.0 | |
16500 | \""; } >&5 | |
16501 | ($PKG_CONFIG --exists --print-errors " | |
16502 | gtk+-3.0 | |
16503 | ") 2>&5 | |
16504 | ac_status=$? | |
16505 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16506 | test $ac_status = 0; }; then | |
16507 | pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs " | |
16508 | gtk+-3.0 | |
16509 | " 2>/dev/null` | |
16510 | else | |
16511 | pkg_failed=yes | |
16512 | fi | |
16513 | else | |
16514 | pkg_failed=untried | |
16515 | fi | |
16516 | ||
16517 | ||
16518 | ||
16519 | if test $pkg_failed = yes; then | |
16520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16521 | $as_echo "no" >&6; } | |
16522 | ||
16523 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16524 | _pkg_short_errors_supported=yes | |
16525 | else | |
16526 | _pkg_short_errors_supported=no | |
16527 | fi | |
16528 | if test $_pkg_short_errors_supported = yes; then | |
16529 | GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " | |
16530 | gtk+-3.0 | |
16531 | " 2>&1` | |
16532 | else | |
16533 | GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors " | |
16534 | gtk+-3.0 | |
16535 | " 2>&1` | |
16536 | fi | |
16537 | # Put the nasty error message in config.log where it belongs | |
16538 | echo "$GTK3_PKG_ERRORS" >&5 | |
16539 | ||
16540 | as_fn_error $? "Package requirements ( | |
16541 | gtk+-3.0 | |
16542 | ) were not met: | |
16543 | ||
16544 | $GTK3_PKG_ERRORS | |
16545 | ||
16546 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
16547 | installed software in a non-standard prefix. | |
16548 | ||
16549 | Alternatively, you may set the environment variables GTK3_CFLAGS | |
16550 | and GTK3_LIBS to avoid the need to call pkg-config. | |
16551 | See the pkg-config man page for more details." "$LINENO" 5 | |
16552 | ||
16553 | elif test $pkg_failed = untried; then | |
16554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16555 | $as_echo "no" >&6; } | |
16556 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16557 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16558 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
16559 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
16560 | path to pkg-config. | |
16561 | ||
16562 | Alternatively, you may set the environment variables GTK3_CFLAGS | |
16563 | and GTK3_LIBS to avoid the need to call pkg-config. | |
16564 | See the pkg-config man page for more details. | |
16565 | ||
16566 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
16567 | See \`config.log' for more details" "$LINENO" 5; } | |
16568 | ||
16569 | else | |
16570 | GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS | |
16571 | GTK3_LIBS=$pkg_cv_GTK3_LIBS | |
16572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16573 | $as_echo "yes" >&6; } | |
16574 | ||
16575 | fi | |
16576 | if true; then | |
16577 | HAVE_GTK3_TRUE= | |
16578 | HAVE_GTK3_FALSE='#' | |
16579 | else | |
16580 | HAVE_GTK3_TRUE='#' | |
16581 | HAVE_GTK3_FALSE= | |
16582 | fi | |
16583 | ||
16584 | if false; then | |
16585 | HAVE_GTK2_TRUE= | |
16586 | HAVE_GTK2_FALSE='#' | |
16587 | else | |
16588 | HAVE_GTK2_TRUE='#' | |
16589 | HAVE_GTK2_FALSE= | |
16590 | fi | |
16591 | ||
16592 | ;; | |
16593 | esac | |
16592 | 16594 | |
16593 | 16595 | |
16594 | 16596 | |
16632 | 16634 | |
16633 | 16635 | |
16634 | 16636 | if test $pkg_failed = yes; then |
16637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16638 | $as_echo "no" >&6; } | |
16635 | 16639 | |
16636 | 16640 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
16637 | 16641 | _pkg_short_errors_supported=yes |
16646 | 16650 | # Put the nasty error message in config.log where it belongs |
16647 | 16651 | echo "$IBUS_PKG_ERRORS" >&5 |
16648 | 16652 | |
16649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16650 | $as_echo "no" >&6; } | |
16651 | 16653 | |
16652 | 16654 | pkg_failed=no |
16653 | 16655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5 |
16689 | 16691 | |
16690 | 16692 | |
16691 | 16693 | if test $pkg_failed = yes; then |
16694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16695 | $as_echo "no" >&6; } | |
16692 | 16696 | |
16693 | 16697 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
16694 | 16698 | _pkg_short_errors_supported=yes |
16703 | 16707 | # Put the nasty error message in config.log where it belongs |
16704 | 16708 | echo "$IBUS_PKG_ERRORS" >&5 |
16705 | 16709 | |
16706 | as_fn_error "Package requirements (ibus-1.0) were not met: | |
16710 | as_fn_error $? "Package requirements (ibus-1.0) were not met: | |
16707 | 16711 | |
16708 | 16712 | $IBUS_PKG_ERRORS |
16709 | 16713 | |
16710 | 16714 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
16711 | 16715 | installed software in a non-standard prefix. |
16716 | ||
16717 | Alternatively, you may set the environment variables IBUS_CFLAGS | |
16718 | and IBUS_LIBS to avoid the need to call pkg-config. | |
16719 | See the pkg-config man page for more details." "$LINENO" 5 | |
16720 | ||
16721 | elif test $pkg_failed = untried; then | |
16722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16723 | $as_echo "no" >&6; } | |
16724 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16725 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16726 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
16727 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
16728 | path to pkg-config. | |
16712 | 16729 | |
16713 | 16730 | Alternatively, you may set the environment variables IBUS_CFLAGS |
16714 | 16731 | and IBUS_LIBS to avoid the need to call pkg-config. |
16715 | 16732 | See the pkg-config man page for more details. |
16716 | " "$LINENO" 5 | |
16717 | elif test $pkg_failed = untried; then | |
16718 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16719 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16720 | as_fn_error "The pkg-config script could not be found or is too old. Make sure it | |
16721 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
16722 | path to pkg-config. | |
16723 | ||
16724 | Alternatively, you may set the environment variables IBUS_CFLAGS | |
16725 | and IBUS_LIBS to avoid the need to call pkg-config. | |
16726 | See the pkg-config man page for more details. | |
16727 | 16733 | |
16728 | 16734 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
16729 | See \`config.log' for more details." "$LINENO" 5; } | |
16735 | See \`config.log' for more details" "$LINENO" 5; } | |
16736 | ||
16730 | 16737 | else |
16731 | 16738 | IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS |
16732 | 16739 | IBUS_LIBS=$pkg_cv_IBUS_LIBS |
16733 | 16740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16734 | 16741 | $as_echo "yes" >&6; } |
16735 | : | |
16742 | ||
16736 | 16743 | fi |
16737 | 16744 | { $as_echo "$as_me:${as_lineno-$LINENO}: IBUS version is old" >&5 |
16738 | 16745 | $as_echo "$as_me: IBUS version is old" >&6;} |
16741 | 16748 | |
16742 | 16749 | |
16743 | 16750 | elif test $pkg_failed = untried; then |
16751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16752 | $as_echo "no" >&6; } | |
16744 | 16753 | |
16745 | 16754 | pkg_failed=no |
16746 | 16755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5 |
16782 | 16791 | |
16783 | 16792 | |
16784 | 16793 | if test $pkg_failed = yes; then |
16794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16795 | $as_echo "no" >&6; } | |
16785 | 16796 | |
16786 | 16797 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
16787 | 16798 | _pkg_short_errors_supported=yes |
16796 | 16807 | # Put the nasty error message in config.log where it belongs |
16797 | 16808 | echo "$IBUS_PKG_ERRORS" >&5 |
16798 | 16809 | |
16799 | as_fn_error "Package requirements (ibus-1.0) were not met: | |
16810 | as_fn_error $? "Package requirements (ibus-1.0) were not met: | |
16800 | 16811 | |
16801 | 16812 | $IBUS_PKG_ERRORS |
16802 | 16813 | |
16803 | 16814 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
16804 | 16815 | installed software in a non-standard prefix. |
16816 | ||
16817 | Alternatively, you may set the environment variables IBUS_CFLAGS | |
16818 | and IBUS_LIBS to avoid the need to call pkg-config. | |
16819 | See the pkg-config man page for more details." "$LINENO" 5 | |
16820 | ||
16821 | elif test $pkg_failed = untried; then | |
16822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16823 | $as_echo "no" >&6; } | |
16824 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16825 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16826 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
16827 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
16828 | path to pkg-config. | |
16805 | 16829 | |
16806 | 16830 | Alternatively, you may set the environment variables IBUS_CFLAGS |
16807 | 16831 | and IBUS_LIBS to avoid the need to call pkg-config. |
16808 | 16832 | See the pkg-config man page for more details. |
16809 | " "$LINENO" 5 | |
16810 | elif test $pkg_failed = untried; then | |
16811 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16812 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16813 | as_fn_error "The pkg-config script could not be found or is too old. Make sure it | |
16814 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
16815 | path to pkg-config. | |
16816 | ||
16817 | Alternatively, you may set the environment variables IBUS_CFLAGS | |
16818 | and IBUS_LIBS to avoid the need to call pkg-config. | |
16819 | See the pkg-config man page for more details. | |
16820 | 16833 | |
16821 | 16834 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
16822 | See \`config.log' for more details." "$LINENO" 5; } | |
16835 | See \`config.log' for more details" "$LINENO" 5; } | |
16836 | ||
16823 | 16837 | else |
16824 | 16838 | IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS |
16825 | 16839 | IBUS_LIBS=$pkg_cv_IBUS_LIBS |
16826 | 16840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16827 | 16841 | $as_echo "yes" >&6; } |
16828 | : | |
16842 | ||
16829 | 16843 | fi |
16830 | 16844 | { $as_echo "$as_me:${as_lineno-$LINENO}: IBUS version is old" >&5 |
16831 | 16845 | $as_echo "$as_me: IBUS version is old" >&6;} |
16895 | 16909 | |
16896 | 16910 | |
16897 | 16911 | if test $pkg_failed = yes; then |
16912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16913 | $as_echo "no" >&6; } | |
16898 | 16914 | |
16899 | 16915 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
16900 | 16916 | _pkg_short_errors_supported=yes |
16913 | 16929 | # Put the nasty error message in config.log where it belongs |
16914 | 16930 | echo "$INPUT_PAD_PKG_ERRORS" >&5 |
16915 | 16931 | |
16916 | as_fn_error "Package requirements ( | |
16932 | as_fn_error $? "Package requirements ( | |
16917 | 16933 | input-pad |
16918 | 16934 | ) were not met: |
16919 | 16935 | |
16921 | 16937 | |
16922 | 16938 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
16923 | 16939 | installed software in a non-standard prefix. |
16940 | ||
16941 | Alternatively, you may set the environment variables INPUT_PAD_CFLAGS | |
16942 | and INPUT_PAD_LIBS to avoid the need to call pkg-config. | |
16943 | See the pkg-config man page for more details." "$LINENO" 5 | |
16944 | ||
16945 | elif test $pkg_failed = untried; then | |
16946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16947 | $as_echo "no" >&6; } | |
16948 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16949 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16950 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
16951 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
16952 | path to pkg-config. | |
16924 | 16953 | |
16925 | 16954 | Alternatively, you may set the environment variables INPUT_PAD_CFLAGS |
16926 | 16955 | and INPUT_PAD_LIBS to avoid the need to call pkg-config. |
16927 | 16956 | See the pkg-config man page for more details. |
16928 | " "$LINENO" 5 | |
16929 | elif test $pkg_failed = untried; then | |
16930 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16931 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16932 | as_fn_error "The pkg-config script could not be found or is too old. Make sure it | |
16933 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
16934 | path to pkg-config. | |
16935 | ||
16936 | Alternatively, you may set the environment variables INPUT_PAD_CFLAGS | |
16937 | and INPUT_PAD_LIBS to avoid the need to call pkg-config. | |
16938 | See the pkg-config man page for more details. | |
16939 | 16957 | |
16940 | 16958 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
16941 | See \`config.log' for more details." "$LINENO" 5; } | |
16959 | See \`config.log' for more details" "$LINENO" 5; } | |
16960 | ||
16942 | 16961 | else |
16943 | 16962 | INPUT_PAD_CFLAGS=$pkg_cv_INPUT_PAD_CFLAGS |
16944 | 16963 | INPUT_PAD_LIBS=$pkg_cv_INPUT_PAD_LIBS |
16945 | 16964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16946 | 16965 | $as_echo "yes" >&6; } |
16947 | : | |
16966 | ||
16948 | 16967 | fi |
16949 | 16968 | |
16950 | 16969 | GETTEXT_PACKAGE=ibus-input-pad |
17766 | 17785 | |
17767 | 17786 | ac_libobjs= |
17768 | 17787 | ac_ltlibobjs= |
17788 | U= | |
17769 | 17789 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17770 | 17790 | # 1. Remove the extension, and $U if already installed. |
17771 | 17791 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
17789 | 17809 | fi |
17790 | 17810 | |
17791 | 17811 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
17792 | as_fn_error "conditional \"AMDEP\" was never defined. | |
17812 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
17793 | 17813 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17794 | 17814 | fi |
17795 | 17815 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
17796 | as_fn_error "conditional \"am__fastdepCC\" was never defined. | |
17816 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
17797 | 17817 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17798 | 17818 | fi |
17799 | 17819 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
17800 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
17820 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
17801 | 17821 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17802 | 17822 | fi |
17803 | 17823 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
17804 | as_fn_error "conditional \"am__fastdepCC\" was never defined. | |
17824 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
17805 | 17825 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17806 | 17826 | fi |
17807 | 17827 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
17808 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. | |
17828 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
17809 | 17829 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17810 | 17830 | fi |
17811 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
17812 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. | |
17831 | ||
17832 | ac_config_commands="$ac_config_commands po/stamp-it" | |
17833 | ||
17834 | ||
17835 | if test -z "${HAVE_GTK3_TRUE}" && test -z "${HAVE_GTK3_FALSE}"; then | |
17836 | as_fn_error $? "conditional \"HAVE_GTK3\" was never defined. | |
17813 | 17837 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
17814 | 17838 | fi |
17815 | ||
17816 | ac_config_commands="$ac_config_commands po/stamp-it" | |
17817 | ||
17818 | ||
17839 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then | |
17840 | as_fn_error $? "conditional \"HAVE_GTK2\" was never defined. | |
17841 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17842 | fi | |
17843 | if test -z "${HAVE_GTK3_TRUE}" && test -z "${HAVE_GTK3_FALSE}"; then | |
17844 | as_fn_error $? "conditional \"HAVE_GTK3\" was never defined. | |
17845 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17846 | fi | |
17847 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then | |
17848 | as_fn_error $? "conditional \"HAVE_GTK2\" was never defined. | |
17849 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17850 | fi | |
17819 | 17851 | |
17820 | 17852 | : ${CONFIG_STATUS=./config.status} |
17821 | 17853 | ac_write_fail=0 |
17963 | 17995 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
17964 | 17996 | |
17965 | 17997 | |
17966 | # as_fn_error ERROR [LINENO LOG_FD] | |
17967 | # --------------------------------- | |
17998 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
17999 | # ---------------------------------------- | |
17968 | 18000 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
17969 | 18001 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
17970 | # script with status $?, using 1 if that was 0. | |
18002 | # script with STATUS, using 1 if that was 0. | |
17971 | 18003 | as_fn_error () |
17972 | 18004 | { |
17973 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
17974 | if test "$3"; then | |
17975 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
17976 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
18005 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
18006 | if test "$4"; then | |
18007 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18008 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
17977 | 18009 | fi |
17978 | $as_echo "$as_me: error: $1" >&2 | |
18010 | $as_echo "$as_me: error: $2" >&2 | |
17979 | 18011 | as_fn_exit $as_status |
17980 | 18012 | } # as_fn_error |
17981 | 18013 | |
18171 | 18203 | test -d "$as_dir" && break |
18172 | 18204 | done |
18173 | 18205 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
18174 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
18206 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
18175 | 18207 | |
18176 | 18208 | |
18177 | 18209 | } # as_fn_mkdir_p |
18224 | 18256 | # report actual input values of CONFIG_FILES etc. instead of their |
18225 | 18257 | # values after options handling. |
18226 | 18258 | ac_log=" |
18227 | This file was extended by ibus-input-pad $as_me 0.1.4, which was | |
18228 | generated by GNU Autoconf 2.65. Invocation command line was | |
18259 | This file was extended by ibus-input-pad $as_me 1.4.0, which was | |
18260 | generated by GNU Autoconf 2.66. Invocation command line was | |
18229 | 18261 | |
18230 | 18262 | CONFIG_FILES = $CONFIG_FILES |
18231 | 18263 | CONFIG_HEADERS = $CONFIG_HEADERS |
18290 | 18322 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
18291 | 18323 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
18292 | 18324 | ac_cs_version="\\ |
18293 | ibus-input-pad config.status 0.1.4 | |
18294 | configured by $0, generated by GNU Autoconf 2.65, | |
18325 | ibus-input-pad config.status 1.4.0 | |
18326 | configured by $0, generated by GNU Autoconf 2.66, | |
18295 | 18327 | with options \\"\$ac_cs_config\\" |
18296 | 18328 | |
18297 | Copyright (C) 2009 Free Software Foundation, Inc. | |
18329 | Copyright (C) 2010 Free Software Foundation, Inc. | |
18298 | 18330 | This config.status script is free software; the Free Software Foundation |
18299 | 18331 | gives unlimited permission to copy, distribute and modify it." |
18300 | 18332 | |
18350 | 18382 | ac_need_defaults=false;; |
18351 | 18383 | --he | --h) |
18352 | 18384 | # Conflict between --help and --header |
18353 | as_fn_error "ambiguous option: \`$1' | |
18385 | as_fn_error $? "ambiguous option: \`$1' | |
18354 | 18386 | Try \`$0 --help' for more information.";; |
18355 | 18387 | --help | --hel | -h ) |
18356 | 18388 | $as_echo "$ac_cs_usage"; exit ;; |
18359 | 18391 | ac_cs_silent=: ;; |
18360 | 18392 | |
18361 | 18393 | # This is an error. |
18362 | -*) as_fn_error "unrecognized option: \`$1' | |
18394 | -*) as_fn_error $? "unrecognized option: \`$1' | |
18363 | 18395 | Try \`$0 --help' for more information." ;; |
18364 | 18396 | |
18365 | 18397 | *) as_fn_append ac_config_targets " $1" |
18413 | 18445 | sed_quote_subst='$sed_quote_subst' |
18414 | 18446 | double_quote_subst='$double_quote_subst' |
18415 | 18447 | delay_variable_subst='$delay_variable_subst' |
18416 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
18417 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
18418 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
18419 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
18420 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
18421 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
18422 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
18423 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
18424 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
18425 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
18426 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
18427 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
18428 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
18429 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
18430 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
18431 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
18432 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
18433 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
18434 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
18435 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
18436 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
18437 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
18438 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
18439 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
18440 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
18441 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
18442 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
18443 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18444 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
18445 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
18446 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
18447 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
18448 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
18449 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
18450 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
18451 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18452 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18453 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18454 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
18455 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
18456 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
18457 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
18458 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
18459 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
18460 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
18461 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
18462 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
18463 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
18464 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
18465 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
18466 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
18467 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
18468 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
18469 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
18470 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
18471 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
18472 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
18473 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
18474 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
18475 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
18476 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
18477 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
18478 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18479 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18480 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
18481 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
18482 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18483 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18484 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
18485 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18486 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18487 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18488 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18489 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18490 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18491 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
18492 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
18493 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
18494 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18495 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
18496 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
18497 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
18498 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
18499 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
18500 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
18501 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
18502 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
18503 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
18504 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
18505 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
18506 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18507 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
18508 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
18509 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18510 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18511 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
18512 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
18513 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
18514 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
18515 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
18516 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
18517 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
18518 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18519 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18520 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18521 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18522 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18523 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
18524 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
18525 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
18526 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18527 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
18528 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
18529 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
18530 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
18531 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
18532 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
18533 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
18534 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' | |
18535 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
18536 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
18537 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
18538 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
18539 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
18540 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18541 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18542 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18543 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18544 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18545 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18546 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18547 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18548 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18549 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18550 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18551 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18552 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18553 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18554 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18555 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18556 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18557 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18558 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18559 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18560 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18561 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18562 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18563 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18564 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18565 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18566 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18567 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18568 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18569 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18570 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18571 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18572 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18573 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18574 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18575 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18576 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18577 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18578 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18579 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18580 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18581 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18582 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18583 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18584 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18585 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18586 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
18448 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18449 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
18450 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18451 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18452 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18453 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18454 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18455 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18456 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18457 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18458 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18459 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18460 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18461 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18462 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18463 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18464 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18465 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18466 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18467 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18468 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18469 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18470 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18471 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18472 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18473 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18474 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18475 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18476 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18477 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18478 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18479 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18480 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18481 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18482 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18483 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18484 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18485 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18486 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18487 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18488 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18489 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18490 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18491 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18492 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18493 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18494 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18495 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18496 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18497 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18498 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18499 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18500 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18501 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18502 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18503 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18504 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18505 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18506 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18507 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18508 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18509 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18510 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18511 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18512 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18513 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18514 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18515 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18516 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18517 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18518 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18519 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18520 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18521 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18522 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18523 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18524 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18525 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18526 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18527 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18528 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
18529 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18530 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18531 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18532 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18533 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18534 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18535 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18536 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18537 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
18538 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18539 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18540 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18541 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18542 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18543 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18544 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18545 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18546 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18547 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18548 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18549 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18550 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18551 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18552 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18553 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18554 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18555 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18556 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18557 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18558 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18559 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18560 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18561 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18562 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18563 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18564 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18565 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18566 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18567 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18568 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
18569 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
18570 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
18571 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
18572 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
18573 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
18574 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
18575 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18576 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18577 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18578 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
18579 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
18580 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18581 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
18582 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
18583 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
18584 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
18585 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
18586 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
18587 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18588 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18589 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
18590 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18591 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18592 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18593 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18594 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18595 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18596 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18597 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18598 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
18599 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18600 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
18601 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
18602 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
18603 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
18604 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
18605 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
18606 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
18607 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
18608 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
18609 | fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' | |
18610 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
18611 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18612 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18613 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
18614 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
18615 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
18616 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
18617 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
18618 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18619 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
18620 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18621 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
18622 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
18587 | 18623 | |
18588 | 18624 | LTCC='$LTCC' |
18589 | 18625 | LTCFLAGS='$LTCFLAGS' |
18590 | 18626 | compiler='$compiler_DEFAULT' |
18591 | 18627 | |
18628 | # A function that is used when there is no print builtin or printf. | |
18629 | func_fallback_echo () | |
18630 | { | |
18631 | eval 'cat <<_LTECHO_EOF | |
18632 | \$1 | |
18633 | _LTECHO_EOF' | |
18634 | } | |
18635 | ||
18592 | 18636 | # Quote evaled strings. |
18593 | for var in SED \ | |
18637 | for var in SHELL \ | |
18638 | ECHO \ | |
18639 | SED \ | |
18594 | 18640 | GREP \ |
18595 | 18641 | EGREP \ |
18596 | 18642 | FGREP \ |
18614 | 18660 | lt_cv_sys_global_symbol_to_cdecl \ |
18615 | 18661 | lt_cv_sys_global_symbol_to_c_name_address \ |
18616 | 18662 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
18617 | SHELL \ | |
18618 | ECHO \ | |
18619 | 18663 | lt_prog_compiler_no_builtin_flag \ |
18620 | 18664 | lt_prog_compiler_wl \ |
18621 | 18665 | lt_prog_compiler_pic \ |
18645 | 18689 | libname_spec \ |
18646 | 18690 | library_names_spec \ |
18647 | 18691 | soname_spec \ |
18692 | install_override_mode \ | |
18648 | 18693 | finish_eval \ |
18649 | 18694 | old_striplib \ |
18650 | 18695 | striplib \ |
18655 | 18700 | postdeps \ |
18656 | 18701 | compiler_lib_search_path \ |
18657 | 18702 | LD_CXX \ |
18703 | reload_flag_CXX \ | |
18658 | 18704 | compiler_CXX \ |
18659 | 18705 | lt_prog_compiler_no_builtin_flag_CXX \ |
18660 | 18706 | lt_prog_compiler_wl_CXX \ |
18680 | 18726 | predeps_CXX \ |
18681 | 18727 | postdeps_CXX \ |
18682 | 18728 | compiler_lib_search_path_CXX; do |
18683 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
18729 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18684 | 18730 | *[\\\\\\\`\\"\\\$]*) |
18685 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
18731 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
18686 | 18732 | ;; |
18687 | 18733 | *) |
18688 | 18734 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
18709 | 18755 | finish_cmds \ |
18710 | 18756 | sys_lib_search_path_spec \ |
18711 | 18757 | sys_lib_dlsearch_path_spec \ |
18758 | reload_cmds_CXX \ | |
18712 | 18759 | old_archive_cmds_CXX \ |
18713 | 18760 | old_archive_from_new_cmds_CXX \ |
18714 | 18761 | old_archive_from_expsyms_cmds_CXX \ |
18718 | 18765 | module_expsym_cmds_CXX \ |
18719 | 18766 | export_symbols_cmds_CXX \ |
18720 | 18767 | prelink_cmds_CXX; do |
18721 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
18768 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18722 | 18769 | *[\\\\\\\`\\"\\\$]*) |
18723 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
18770 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
18724 | 18771 | ;; |
18725 | 18772 | *) |
18726 | 18773 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
18727 | 18774 | ;; |
18728 | 18775 | esac |
18729 | 18776 | done |
18730 | ||
18731 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
18732 | case \$lt_ECHO in | |
18733 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
18734 | ;; | |
18735 | esac | |
18736 | 18777 | |
18737 | 18778 | ac_aux_dir='$ac_aux_dir' |
18738 | 18779 | xsi_shell='$xsi_shell' |
18776 | 18817 | "setup/Makefile") CONFIG_FILES="$CONFIG_FILES setup/Makefile" ;; |
18777 | 18818 | "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; |
18778 | 18819 | |
18779 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
18820 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
18780 | 18821 | esac |
18781 | 18822 | done |
18782 | 18823 | |
18814 | 18855 | { |
18815 | 18856 | tmp=./conf$$-$RANDOM |
18816 | 18857 | (umask 077 && mkdir "$tmp") |
18817 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
18858 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
18818 | 18859 | |
18819 | 18860 | # Set up the scripts for CONFIG_FILES section. |
18820 | 18861 | # No need to generate them if there are no CONFIG_FILES. |
18831 | 18872 | fi |
18832 | 18873 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
18833 | 18874 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
18834 | ac_cs_awk_cr='\r' | |
18875 | ac_cs_awk_cr='\\r' | |
18835 | 18876 | else |
18836 | 18877 | ac_cs_awk_cr=$ac_cr |
18837 | 18878 | fi |
18845 | 18886 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
18846 | 18887 | echo "_ACEOF" |
18847 | 18888 | } >conf$$subs.sh || |
18848 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18849 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
18889 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18890 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
18850 | 18891 | ac_delim='%!_!# ' |
18851 | 18892 | for ac_last_try in false false false false false :; do |
18852 | 18893 | . ./conf$$subs.sh || |
18853 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18894 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18854 | 18895 | |
18855 | 18896 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
18856 | 18897 | if test $ac_delim_n = $ac_delim_num; then |
18857 | 18898 | break |
18858 | 18899 | elif $ac_last_try; then |
18859 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18900 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
18860 | 18901 | else |
18861 | 18902 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
18862 | 18903 | fi |
18945 | 18986 | else |
18946 | 18987 | cat |
18947 | 18988 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
18948 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
18989 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
18949 | 18990 | _ACEOF |
18950 | 18991 | |
18951 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
18952 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
18992 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
18993 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
18953 | 18994 | # trailing colons and then remove the whole line if VPATH becomes empty |
18954 | 18995 | # (actually we leave an empty line to preserve line numbers). |
18955 | 18996 | if test "x$srcdir" = x.; then |
18956 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
18957 | s/:*\$(srcdir):*/:/ | |
18958 | s/:*\${srcdir}:*/:/ | |
18959 | s/:*@srcdir@:*/:/ | |
18960 | s/^\([^=]*=[ ]*\):*/\1/ | |
18997 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
18998 | h | |
18999 | s/// | |
19000 | s/^/:/ | |
19001 | s/[ ]*$/:/ | |
19002 | s/:\$(srcdir):/:/g | |
19003 | s/:\${srcdir}:/:/g | |
19004 | s/:@srcdir@:/:/g | |
19005 | s/^:*// | |
18961 | 19006 | s/:*$// |
19007 | x | |
19008 | s/\(=[ ]*\).*/\1/ | |
19009 | G | |
19010 | s/\n// | |
18962 | 19011 | s/^[^=]*=[ ]*$// |
18963 | 19012 | }' |
18964 | 19013 | fi |
18986 | 19035 | if test -z "$ac_t"; then |
18987 | 19036 | break |
18988 | 19037 | elif $ac_last_try; then |
18989 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
19038 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
18990 | 19039 | else |
18991 | 19040 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
18992 | 19041 | fi |
19071 | 19120 | _ACAWK |
19072 | 19121 | _ACEOF |
19073 | 19122 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19074 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
19123 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
19075 | 19124 | fi # test -n "$CONFIG_HEADERS" |
19076 | 19125 | |
19077 | 19126 | |
19084 | 19133 | esac |
19085 | 19134 | case $ac_mode$ac_tag in |
19086 | 19135 | :[FHL]*:*);; |
19087 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
19136 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
19088 | 19137 | :[FH]-) ac_tag=-:-;; |
19089 | 19138 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
19090 | 19139 | esac |
19112 | 19161 | [\\/$]*) false;; |
19113 | 19162 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
19114 | 19163 | esac || |
19115 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
19164 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
19116 | 19165 | esac |
19117 | 19166 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
19118 | 19167 | as_fn_append ac_file_inputs " '$ac_f'" |
19139 | 19188 | |
19140 | 19189 | case $ac_tag in |
19141 | 19190 | *:-:* | *:-) cat >"$tmp/stdin" \ |
19142 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
19191 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
19143 | 19192 | esac |
19144 | 19193 | ;; |
19145 | 19194 | esac |
19276 | 19325 | $ac_datarootdir_hack |
19277 | 19326 | " |
19278 | 19327 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
19279 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
19328 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19280 | 19329 | |
19281 | 19330 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
19282 | 19331 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
19283 | 19332 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
19284 | 19333 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
19285 | which seems to be undefined. Please make sure it is defined." >&5 | |
19334 | which seems to be undefined. Please make sure it is defined" >&5 | |
19286 | 19335 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
19287 | which seems to be undefined. Please make sure it is defined." >&2;} | |
19336 | which seems to be undefined. Please make sure it is defined" >&2;} | |
19288 | 19337 | |
19289 | 19338 | rm -f "$tmp/stdin" |
19290 | 19339 | case $ac_file in |
19291 | 19340 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
19292 | 19341 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
19293 | 19342 | esac \ |
19294 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
19343 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19295 | 19344 | ;; |
19296 | 19345 | :H) |
19297 | 19346 | # |
19302 | 19351 | $as_echo "/* $configure_input */" \ |
19303 | 19352 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
19304 | 19353 | } >"$tmp/config.h" \ |
19305 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
19354 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19306 | 19355 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
19307 | 19356 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
19308 | 19357 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
19309 | 19358 | else |
19310 | 19359 | rm -f "$ac_file" |
19311 | 19360 | mv "$tmp/config.h" "$ac_file" \ |
19312 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
19361 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19313 | 19362 | fi |
19314 | 19363 | else |
19315 | 19364 | $as_echo "/* $configure_input */" \ |
19316 | 19365 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
19317 | || as_fn_error "could not create -" "$LINENO" 5 | |
19366 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
19318 | 19367 | fi |
19319 | 19368 | # Compute "$ac_file"'s index in $config_headers. |
19320 | 19369 | _am_arg="$ac_file" |
19475 | 19524 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
19476 | 19525 | # |
19477 | 19526 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
19478 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
19527 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | |
19528 | # Inc. | |
19479 | 19529 | # Written by Gordon Matzigkeit, 1996 |
19480 | 19530 | # |
19481 | 19531 | # This file is part of GNU Libtool. |
19523 | 19573 | # Whether or not to optimize for fast installation. |
19524 | 19574 | fast_install=$enable_fast_install |
19525 | 19575 | |
19576 | # Shell to use when invoking shell scripts. | |
19577 | SHELL=$lt_SHELL | |
19578 | ||
19579 | # An echo program that protects backslashes. | |
19580 | ECHO=$lt_ECHO | |
19581 | ||
19526 | 19582 | # The host system. |
19527 | 19583 | host_alias=$host_alias |
19528 | 19584 | host=$host |
19572 | 19628 | # turn newlines into spaces. |
19573 | 19629 | NL2SP=$lt_lt_NL2SP |
19574 | 19630 | |
19575 | # How to create reloadable object files. | |
19576 | reload_flag=$lt_reload_flag | |
19577 | reload_cmds=$lt_reload_cmds | |
19578 | ||
19579 | 19631 | # An object symbol dumper. |
19580 | 19632 | OBJDUMP=$lt_OBJDUMP |
19581 | 19633 | |
19597 | 19649 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19598 | 19650 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19599 | 19651 | |
19652 | # Whether to use a lock for old archive extraction. | |
19653 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19654 | ||
19600 | 19655 | # A C compiler. |
19601 | 19656 | LTCC=$lt_CC |
19602 | 19657 | |
19617 | 19672 | |
19618 | 19673 | # The name of the directory that contains temporary libtool files. |
19619 | 19674 | objdir=$objdir |
19620 | ||
19621 | # Shell to use when invoking shell scripts. | |
19622 | SHELL=$lt_SHELL | |
19623 | ||
19624 | # An echo program that does not interpret backslashes. | |
19625 | ECHO=$lt_ECHO | |
19626 | 19675 | |
19627 | 19676 | # Used to examine libraries when file_magic_cmd begins with "file". |
19628 | 19677 | MAGIC_CMD=$MAGIC_CMD |
19686 | 19735 | # The coded name of the library, if different from the real name. |
19687 | 19736 | soname_spec=$lt_soname_spec |
19688 | 19737 | |
19738 | # Permission mode override for installation of shared libraries. | |
19739 | install_override_mode=$lt_install_override_mode | |
19740 | ||
19689 | 19741 | # Command to use after installation of a shared archive. |
19690 | 19742 | postinstall_cmds=$lt_postinstall_cmds |
19691 | 19743 | |
19724 | 19776 | |
19725 | 19777 | # The linker used to build libraries. |
19726 | 19778 | LD=$lt_LD |
19779 | ||
19780 | # How to create reloadable object files. | |
19781 | reload_flag=$lt_reload_flag | |
19782 | reload_cmds=$lt_reload_cmds | |
19727 | 19783 | |
19728 | 19784 | # Commands used to build an old-style archive. |
19729 | 19785 | old_archive_cmds=$lt_old_archive_cmds |
19998 | 20054 | func_dirname () |
19999 | 20055 | { |
20000 | 20056 | # Extract subdirectory from the argument. |
20001 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
20057 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
20002 | 20058 | if test "X$func_dirname_result" = "X${1}"; then |
20003 | 20059 | func_dirname_result="${3}" |
20004 | 20060 | else |
20009 | 20065 | # func_basename file |
20010 | 20066 | func_basename () |
20011 | 20067 | { |
20012 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
20068 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
20013 | 20069 | } |
20014 | 20070 | |
20015 | 20071 | |
20022 | 20078 | func_stripname () |
20023 | 20079 | { |
20024 | 20080 | case ${2} in |
20025 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
20026 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
20027 | *) func_stripname_result=`$ECHO "X${3}" \ | |
20028 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
20081 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
20082 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
20029 | 20083 | esac |
20030 | 20084 | } |
20031 | 20085 | |
20036 | 20090 | # func_opt_split |
20037 | 20091 | func_opt_split () |
20038 | 20092 | { |
20039 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
20040 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
20093 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
20094 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
20041 | 20095 | } |
20042 | 20096 | |
20043 | 20097 | # func_lo2o object |
20044 | 20098 | func_lo2o () |
20045 | 20099 | { |
20046 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
20100 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
20047 | 20101 | } |
20048 | 20102 | |
20049 | 20103 | # func_xform libobj-or-source |
20050 | 20104 | func_xform () |
20051 | 20105 | { |
20052 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
20106 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
20053 | 20107 | } |
20054 | 20108 | |
20055 | 20109 | # func_arith arithmetic-term... |
20110 | 20164 | # The linker used to build libraries. |
20111 | 20165 | LD=$lt_LD_CXX |
20112 | 20166 | |
20167 | # How to create reloadable object files. | |
20168 | reload_flag=$lt_reload_flag_CXX | |
20169 | reload_cmds=$lt_reload_cmds_CXX | |
20170 | ||
20113 | 20171 | # Commands used to build an old-style archive. |
20114 | 20172 | old_archive_cmds=$lt_old_archive_cmds_CXX |
20115 | 20173 | |
20261 | 20319 | esac ;; |
20262 | 20320 | "po/stamp-it":C) |
20263 | 20321 | if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then |
20264 | as_fn_error "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 | |
20322 | as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5 | |
20265 | 20323 | fi |
20266 | 20324 | rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" |
20267 | 20325 | >"po/stamp-it.tmp" |
20289 | 20347 | ac_clean_files=$ac_clean_files_save |
20290 | 20348 | |
20291 | 20349 | test $ac_write_fail = 0 || |
20292 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
20350 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
20293 | 20351 | |
20294 | 20352 | |
20295 | 20353 | # configure is writing to config.log, and then calls config.status. |
20310 | 20368 | exec 5>>config.log |
20311 | 20369 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
20312 | 20370 | # would make configure fail if this is the last instruction. |
20313 | $ac_cs_success || as_fn_exit $? | |
20371 | $ac_cs_success || as_fn_exit 1 | |
20314 | 20372 | fi |
20315 | 20373 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
20316 | 20374 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
20317 | 20375 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
20318 | 20376 | fi |
20319 | 20377 | |
20378 | echo " | |
20379 | ibus-input-pad version 1.4.0 | |
20380 | ||
20381 | ||
20382 | libinput_pad version: $libinput_pad_VERSION | |
20383 | GTK+ version: $with_gtk | |
20384 | " |
20 | 20 | |
21 | 21 | dnl - if not 1, append datestamp to the version number. |
22 | 22 | m4_define([ibus_released], [1]) |
23 | m4_define([ibus_major_version], [0]) | |
24 | m4_define([ibus_minor_version], [1]) | |
25 | m4_define([ibus_micro_version], [4]) | |
23 | m4_define([ibus_major_version], [1]) | |
24 | m4_define([ibus_minor_version], [4]) | |
25 | m4_define([ibus_micro_version], [0]) | |
26 | 26 | m4_define(ibus_maybe_datestamp, |
27 | 27 | m4_esyscmd([if test x]ibus_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi])) |
28 | 28 | |
65 | 65 | glib-2.0 >= 2.8 |
66 | 66 | ]) |
67 | 67 | |
68 | PKG_CHECK_MODULES(GTK2, [ | |
69 | gtk+-2.0 | |
70 | ]) | |
68 | dnl - check gtk | |
69 | AC_ARG_WITH([gtk], | |
70 | [AS_HELP_STRING([--with-gtk=2.0|3.0], | |
71 | [Select GTK+ version. The default is 2.0])], | |
72 | [case "$with_gtk" in | |
73 | 2.0|3.0) ;; | |
74 | *) AC_MSG_ERROR([invalid gtk version specified]) ;; | |
75 | esac], | |
76 | [with_gtk=2.0] | |
77 | ) | |
78 | ||
79 | case "$with_gtk" in | |
80 | 2.0) | |
81 | PKG_CHECK_MODULES(GTK2, [ | |
82 | gtk+-2.0 | |
83 | ]) | |
84 | AM_CONDITIONAL(HAVE_GTK3, false) | |
85 | AM_CONDITIONAL(HAVE_GTK2, true) | |
86 | ;; | |
87 | 3.0) | |
88 | PKG_CHECK_MODULES(GTK3, [ | |
89 | gtk+-3.0 | |
90 | ]) | |
91 | AM_CONDITIONAL(HAVE_GTK3, true) | |
92 | AM_CONDITIONAL(HAVE_GTK2, false) | |
93 | ;; | |
94 | esac | |
71 | 95 | |
72 | 96 | m4_define([ibus_pc_name], [ibus-1.0]) |
73 | 97 | PKG_CHECK_MODULES(IBUS, |
99 | 123 | ]) |
100 | 124 | |
101 | 125 | AC_OUTPUT |
126 | echo " | |
127 | ibus-input-pad version ibus_version | |
128 | ||
129 | ||
130 | libinput_pad version: $libinput_pad_VERSION | |
131 | GTK+ version: $with_gtk | |
132 | " |
166 | 166 | GREP = @GREP@ |
167 | 167 | GTK2_CFLAGS = @GTK2_CFLAGS@ |
168 | 168 | GTK2_LIBS = @GTK2_LIBS@ |
169 | GTK3_CFLAGS = @GTK3_CFLAGS@ | |
170 | GTK3_LIBS = @GTK3_LIBS@ | |
169 | 171 | IBUS_CFLAGS = @IBUS_CFLAGS@ |
170 | 172 | IBUS_LIBS = @IBUS_LIBS@ |
171 | 173 | INPUT_PAD_CFLAGS = @INPUT_PAD_CFLAGS@ |
211 | 213 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
212 | 214 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
213 | 215 | PKG_CONFIG = @PKG_CONFIG@ |
216 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
217 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
214 | 218 | POFILES = @POFILES@ |
215 | 219 | POSUB = @POSUB@ |
216 | 220 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ |
261 | 265 | libinput_pad_VERSION = @libinput_pad_VERSION@ |
262 | 266 | localedir = @localedir@ |
263 | 267 | localstatedir = @localstatedir@ |
264 | lt_ECHO = @lt_ECHO@ | |
265 | 268 | mandir = @mandir@ |
266 | 269 | mkdir_p = @mkdir_p@ |
267 | 270 | oldincludedir = @oldincludedir@ |
0 | 0 | # Generated from ltmain.m4sh. |
1 | 1 | |
2 | # ltmain.sh (GNU libtool) 2.2.6b | |
2 | # libtool (GNU libtool) 2.2.10 | |
3 | 3 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
4 | 4 | |
5 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. | |
5 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, | |
6 | # 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | |
6 | 7 | # This is free software; see the source for copying conditions. There is NO |
7 | 8 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
8 | 9 | |
31 | 32 | # |
32 | 33 | # Provide generalized library-building support services. |
33 | 34 | # |
34 | # --config show all configuration variables | |
35 | # --debug enable verbose shell tracing | |
36 | # -n, --dry-run display commands without modifying any files | |
37 | # --features display basic configuration information and exit | |
38 | # --mode=MODE use operation mode MODE | |
39 | # --preserve-dup-deps don't remove duplicate dependency libraries | |
40 | # --quiet, --silent don't print informational messages | |
41 | # --tag=TAG use configuration variables from tag TAG | |
42 | # -v, --verbose print informational messages (default) | |
43 | # --version print version information | |
44 | # -h, --help print short or long help message | |
35 | # --config show all configuration variables | |
36 | # --debug enable verbose shell tracing | |
37 | # -n, --dry-run display commands without modifying any files | |
38 | # --features display basic configuration information and exit | |
39 | # --mode=MODE use operation mode MODE | |
40 | # --preserve-dup-deps don't remove duplicate dependency libraries | |
41 | # --quiet, --silent don't print informational messages | |
42 | # --no-quiet, --no-silent | |
43 | # print informational messages (default) | |
44 | # --tag=TAG use configuration variables from tag TAG | |
45 | # -v, --verbose print more informational messages than default | |
46 | # --no-verbose don't print the extra informational messages | |
47 | # --version print version information | |
48 | # -h, --help, --help-all print short, long, or detailed help message | |
45 | 49 | # |
46 | 50 | # MODE must be one of the following: |
47 | 51 | # |
48 | # clean remove files from the build directory | |
49 | # compile compile a source file into a libtool object | |
50 | # execute automatically set library path, then run a program | |
51 | # finish complete the installation of libtool libraries | |
52 | # install install libraries or executables | |
53 | # link create a library or an executable | |
54 | # uninstall remove libraries from an installed directory | |
52 | # clean remove files from the build directory | |
53 | # compile compile a source file into a libtool object | |
54 | # execute automatically set library path, then run a program | |
55 | # finish complete the installation of libtool libraries | |
56 | # install install libraries or executables | |
57 | # link create a library or an executable | |
58 | # uninstall remove libraries from an installed directory | |
55 | 59 | # |
56 | # MODE-ARGS vary depending on the MODE. | |
60 | # MODE-ARGS vary depending on the MODE. When passed as first option, | |
61 | # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. | |
57 | 62 | # Try `$progname --help --mode=MODE' for a more detailed description of MODE. |
58 | 63 | # |
59 | 64 | # When reporting a bug, please describe a test case to reproduce it and |
60 | 65 | # include the following information: |
61 | 66 | # |
62 | # host-triplet: $host | |
63 | # shell: $SHELL | |
64 | # compiler: $LTCC | |
65 | # compiler flags: $LTCFLAGS | |
66 | # linker: $LD (gnu? $with_gnu_ld) | |
67 | # $progname: (GNU libtool) 2.2.6b | |
68 | # automake: $automake_version | |
69 | # autoconf: $autoconf_version | |
67 | # host-triplet: $host | |
68 | # shell: $SHELL | |
69 | # compiler: $LTCC | |
70 | # compiler flags: $LTCFLAGS | |
71 | # linker: $LD (gnu? $with_gnu_ld) | |
72 | # $progname: (GNU libtool) 2.2.10 | |
73 | # automake: $automake_version | |
74 | # autoconf: $autoconf_version | |
70 | 75 | # |
71 | 76 | # Report bugs to <bug-libtool@gnu.org>. |
72 | 77 | |
73 | PROGRAM=ltmain.sh | |
78 | PROGRAM=libtool | |
74 | 79 | PACKAGE=libtool |
75 | VERSION=2.2.6b | |
80 | VERSION=2.2.10 | |
76 | 81 | TIMESTAMP="" |
77 | package_revision=1.3017 | |
82 | package_revision=1.3175 | |
78 | 83 | |
79 | 84 | # Be Bourne compatible |
80 | 85 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
90 | 95 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
91 | 96 | DUALCASE=1; export DUALCASE # for MKS sh |
92 | 97 | |
98 | # A function that is used when there is no print builtin or printf. | |
99 | func_fallback_echo () | |
100 | { | |
101 | eval 'cat <<_LTECHO_EOF | |
102 | $1 | |
103 | _LTECHO_EOF' | |
104 | } | |
105 | ||
93 | 106 | # NLS nuisances: We save the old values to restore during execute mode. |
94 | # Only set LANG and LC_ALL to C if already set. | |
95 | # These must not be set unconditionally because not all systems understand | |
96 | # e.g. LANG=C (notably SCO). | |
97 | 107 | lt_user_locale= |
98 | 108 | lt_safe_locale= |
99 | 109 | for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES |
106 | 116 | lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" |
107 | 117 | fi" |
108 | 118 | done |
119 | LC_ALL=C | |
120 | LANGUAGE=C | |
121 | export LANGUAGE LC_ALL | |
109 | 122 | |
110 | 123 | $lt_unset CDPATH |
111 | 124 | |
112 | 125 | |
126 | # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh | |
127 | # is ksh but when the shell is invoked as "sh" and the current value of | |
128 | # the _XPG environment variable is not equal to 1 (one), the special | |
129 | # positional parameter $0, within a function call, is the name of the | |
130 | # function. | |
131 | progpath="$0" | |
113 | 132 | |
114 | 133 | |
115 | 134 | |
116 | 135 | : ${CP="cp -f"} |
117 | : ${ECHO="echo"} | |
136 | test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} | |
118 | 137 | : ${EGREP="/bin/grep -E"} |
119 | 138 | : ${FGREP="/bin/grep -F"} |
120 | 139 | : ${GREP="/bin/grep"} |
158 | 177 | func_dirname_and_basename () |
159 | 178 | { |
160 | 179 | # Extract subdirectory from the argument. |
161 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
180 | func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` | |
162 | 181 | if test "X$func_dirname_result" = "X${1}"; then |
163 | 182 | func_dirname_result="${3}" |
164 | 183 | else |
165 | 184 | func_dirname_result="$func_dirname_result${2}" |
166 | 185 | fi |
167 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
186 | func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` | |
168 | 187 | } |
169 | 188 | |
170 | 189 | # Generated shell functions inserted here. |
171 | 190 | |
172 | # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh | |
173 | # is ksh but when the shell is invoked as "sh" and the current value of | |
174 | # the _XPG environment variable is not equal to 1 (one), the special | |
175 | # positional parameter $0, within a function call, is the name of the | |
176 | # function. | |
177 | progpath="$0" | |
191 | # These SED scripts presuppose an absolute path with a trailing slash. | |
192 | pathcar='s,^/\([^/]*\).*$,\1,' | |
193 | pathcdr='s,^/[^/]*,,' | |
194 | removedotparts=':dotsl | |
195 | s@/\./@/@g | |
196 | t dotsl | |
197 | s,/\.$,/,' | |
198 | collapseslashes='s@/\{1,\}@/@g' | |
199 | finalslash='s,/*$,/,' | |
200 | ||
201 | # func_normal_abspath PATH | |
202 | # Remove doubled-up and trailing slashes, "." path components, | |
203 | # and cancel out any ".." path components in PATH after making | |
204 | # it an absolute path. | |
205 | # value returned in "$func_normal_abspath_result" | |
206 | func_normal_abspath () | |
207 | { | |
208 | # Start from root dir and reassemble the path. | |
209 | func_normal_abspath_result= | |
210 | func_normal_abspath_tpath=$1 | |
211 | func_normal_abspath_altnamespace= | |
212 | case $func_normal_abspath_tpath in | |
213 | "") | |
214 | # Empty path, that just means $cwd. | |
215 | func_stripname '' '/' "`pwd`" | |
216 | func_normal_abspath_result=$func_stripname_result | |
217 | return | |
218 | ;; | |
219 | # The next three entries are used to spot a run of precisely | |
220 | # two leading slashes without using negated character classes; | |
221 | # we take advantage of case's first-match behaviour. | |
222 | ///*) | |
223 | # Unusual form of absolute path, do nothing. | |
224 | ;; | |
225 | //*) | |
226 | # Not necessarily an ordinary path; POSIX reserves leading '//' | |
227 | # and for example Cygwin uses it to access remote file shares | |
228 | # over CIFS/SMB, so we conserve a leading double slash if found. | |
229 | func_normal_abspath_altnamespace=/ | |
230 | ;; | |
231 | /*) | |
232 | # Absolute path, do nothing. | |
233 | ;; | |
234 | *) | |
235 | # Relative path, prepend $cwd. | |
236 | func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath | |
237 | ;; | |
238 | esac | |
239 | # Cancel out all the simple stuff to save iterations. We also want | |
240 | # the path to end with a slash for ease of parsing, so make sure | |
241 | # there is one (and only one) here. | |
242 | func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ | |
243 | -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"` | |
244 | while :; do | |
245 | # Processed it all yet? | |
246 | if test "$func_normal_abspath_tpath" = / ; then | |
247 | # If we ascended to the root using ".." the result may be empty now. | |
248 | if test -z "$func_normal_abspath_result" ; then | |
249 | func_normal_abspath_result=/ | |
250 | fi | |
251 | break | |
252 | fi | |
253 | func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ | |
254 | -e "$pathcar"` | |
255 | func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ | |
256 | -e "$pathcdr"` | |
257 | # Figure out what to do with it | |
258 | case $func_normal_abspath_tcomponent in | |
259 | "") | |
260 | # Trailing empty path component, ignore it. | |
261 | ;; | |
262 | ..) | |
263 | # Parent dir; strip last assembled component from result. | |
264 | func_dirname "$func_normal_abspath_result" | |
265 | func_normal_abspath_result=$func_dirname_result | |
266 | ;; | |
267 | *) | |
268 | # Actual path component, append it. | |
269 | func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent | |
270 | ;; | |
271 | esac | |
272 | done | |
273 | # Restore leading double-slash if one was found on entry. | |
274 | func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result | |
275 | } | |
276 | ||
277 | # func_relative_path SRCDIR DSTDIR | |
278 | # generates a relative path from SRCDIR to DSTDIR, with a trailing | |
279 | # slash if non-empty, suitable for immediately appending a filename | |
280 | # without needing to append a separator. | |
281 | # value returned in "$func_relative_path_result" | |
282 | func_relative_path () | |
283 | { | |
284 | func_relative_path_result= | |
285 | func_normal_abspath "$1" | |
286 | func_relative_path_tlibdir=$func_normal_abspath_result | |
287 | func_normal_abspath "$2" | |
288 | func_relative_path_tbindir=$func_normal_abspath_result | |
289 | ||
290 | # Ascend the tree starting from libdir | |
291 | while :; do | |
292 | # check if we have found a prefix of bindir | |
293 | case $func_relative_path_tbindir in | |
294 | $func_relative_path_tlibdir) | |
295 | # found an exact match | |
296 | func_relative_path_tcancelled= | |
297 | break | |
298 | ;; | |
299 | $func_relative_path_tlibdir*) | |
300 | # found a matching prefix | |
301 | func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" | |
302 | func_relative_path_tcancelled=$func_stripname_result | |
303 | if test -z "$func_relative_path_result"; then | |
304 | func_relative_path_result=. | |
305 | fi | |
306 | break | |
307 | ;; | |
308 | *) | |
309 | func_dirname $func_relative_path_tlibdir | |
310 | func_relative_path_tlibdir=${func_dirname_result} | |
311 | if test "x$func_relative_path_tlibdir" = x ; then | |
312 | # Have to descend all the way to the root! | |
313 | func_relative_path_result=../$func_relative_path_result | |
314 | func_relative_path_tcancelled=$func_relative_path_tbindir | |
315 | break | |
316 | fi | |
317 | func_relative_path_result=../$func_relative_path_result | |
318 | ;; | |
319 | esac | |
320 | done | |
321 | ||
322 | # Now calculate path; take care to avoid doubling-up slashes. | |
323 | func_stripname '' '/' "$func_relative_path_result" | |
324 | func_relative_path_result=$func_stripname_result | |
325 | func_stripname '/' '/' "$func_relative_path_tcancelled" | |
326 | if test "x$func_stripname_result" != x ; then | |
327 | func_relative_path_result=${func_relative_path_result}/${func_stripname_result} | |
328 | fi | |
329 | ||
330 | # Normalisation. If bindir is libdir, return empty string, | |
331 | # else relative path ending with a slash; either way, target | |
332 | # file name can be directly appended. | |
333 | if test ! -z "$func_relative_path_result"; then | |
334 | func_stripname './' '' "$func_relative_path_result/" | |
335 | func_relative_path_result=$func_stripname_result | |
336 | fi | |
337 | } | |
178 | 338 | |
179 | 339 | # The name of this program: |
180 | # In the unlikely event $progname began with a '-', it would play havoc with | |
181 | # func_echo (imagine progname=-n), so we prepend ./ in that case: | |
182 | 340 | func_dirname_and_basename "$progpath" |
183 | 341 | progname=$func_basename_result |
184 | case $progname in | |
185 | -*) progname=./$progname ;; | |
186 | esac | |
187 | 342 | |
188 | 343 | # Make sure we have an absolute path for reexecution: |
189 | 344 | case $progpath in |
257 | 412 | : |
258 | 413 | } |
259 | 414 | |
415 | # func_echo_all arg... | |
416 | # Invoke $ECHO with all args, space-separated. | |
417 | func_echo_all () | |
418 | { | |
419 | $ECHO "$*" | |
420 | } | |
421 | ||
260 | 422 | # func_error arg... |
261 | 423 | # Echo program name prefixed message to standard error. |
262 | 424 | func_error () |
325 | 487 | case $my_directory_path in */*) ;; *) break ;; esac |
326 | 488 | |
327 | 489 | # ...otherwise throw away the child directory and loop |
328 | my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` | |
490 | my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"` | |
329 | 491 | done |
330 | my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` | |
492 | my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` | |
331 | 493 | |
332 | 494 | save_mkdir_p_IFS="$IFS"; IFS=':' |
333 | 495 | for my_dir in $my_dir_list; do |
377 | 539 | func_fatal_error "cannot create temporary directory \`$my_tmpdir'" |
378 | 540 | fi |
379 | 541 | |
380 | $ECHO "X$my_tmpdir" | $Xsed | |
542 | $ECHO "$my_tmpdir" | |
381 | 543 | } |
382 | 544 | |
383 | 545 | |
391 | 553 | { |
392 | 554 | case $1 in |
393 | 555 | *[\\\`\"\$]*) |
394 | func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; | |
556 | func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;; | |
395 | 557 | *) |
396 | 558 | func_quote_for_eval_unquoted_result="$1" ;; |
397 | 559 | esac |
418 | 580 | { |
419 | 581 | case $1 in |
420 | 582 | *[\\\`\"]*) |
421 | my_arg=`$ECHO "X$1" | $Xsed \ | |
583 | my_arg=`$ECHO "$1" | $SED \ | |
422 | 584 | -e "$double_quote_subst" -e "$sed_double_backslash"` ;; |
423 | 585 | *) |
424 | 586 | my_arg="$1" ;; |
488 | 650 | } |
489 | 651 | |
490 | 652 | |
491 | ||
492 | ||
493 | ||
494 | 653 | # func_version |
495 | 654 | # Echo version message to standard output and exit. |
496 | 655 | func_version () |
497 | 656 | { |
498 | $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { | |
657 | $SED -n '/(C)/!b go | |
658 | :more | |
659 | /\./!{ | |
660 | N | |
661 | s/\n# / / | |
662 | b more | |
663 | } | |
664 | :go | |
665 | /^# '$PROGRAM' (GNU /,/# warranty; / { | |
499 | 666 | s/^# // |
500 | 667 | s/^# *$// |
501 | 668 | s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ |
508 | 675 | # Echo short help message to standard output and exit. |
509 | 676 | func_usage () |
510 | 677 | { |
511 | $SED -n '/^# Usage:/,/# -h/ { | |
678 | $SED -n '/^# Usage:/,/^# *.*--help/ { | |
512 | 679 | s/^# // |
513 | 680 | s/^# *$// |
514 | 681 | s/\$progname/'$progname'/ |
515 | 682 | p |
516 | 683 | }' < "$progpath" |
517 | $ECHO | |
684 | echo | |
518 | 685 | $ECHO "run \`$progname --help | more' for full usage" |
519 | 686 | exit $? |
520 | 687 | } |
521 | 688 | |
522 | # func_help | |
523 | # Echo long help message to standard output and exit. | |
689 | # func_help [NOEXIT] | |
690 | # Echo long help message to standard output and exit, | |
691 | # unless 'noexit' is passed as argument. | |
524 | 692 | func_help () |
525 | 693 | { |
526 | 694 | $SED -n '/^# Usage:/,/# Report bugs to/ { |
537 | 705 | s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ |
538 | 706 | p |
539 | 707 | }' < "$progpath" |
540 | exit $? | |
708 | ret=$? | |
709 | if test -z "$1"; then | |
710 | exit $ret | |
711 | fi | |
541 | 712 | } |
542 | 713 | |
543 | 714 | # func_missing_arg argname |
545 | 716 | # exit_cmd. |
546 | 717 | func_missing_arg () |
547 | 718 | { |
548 | func_error "missing argument for $1" | |
719 | func_error "missing argument for $1." | |
549 | 720 | exit_cmd=exit |
550 | 721 | } |
551 | 722 | |
555 | 726 | |
556 | 727 | |
557 | 728 | |
558 | # Check that we have a working $ECHO. | |
559 | if test "X$1" = X--no-reexec; then | |
560 | # Discard the --no-reexec flag, and continue. | |
561 | shift | |
562 | elif test "X$1" = X--fallback-echo; then | |
563 | # Avoid inline document here, it may be left over | |
564 | : | |
565 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then | |
566 | # Yippee, $ECHO works! | |
567 | : | |
568 | else | |
569 | # Restart under the correct shell, and then maybe $ECHO will work. | |
570 | exec $SHELL "$progpath" --no-reexec ${1+"$@"} | |
571 | fi | |
572 | ||
573 | if test "X$1" = X--fallback-echo; then | |
574 | # used as fallback echo | |
575 | shift | |
576 | cat <<EOF | |
577 | $* | |
578 | EOF | |
579 | exit $EXIT_SUCCESS | |
580 | fi | |
581 | 729 | |
582 | 730 | magic="%%%MAGIC variable%%%" |
583 | 731 | magic_exe="%%%MAGIC EXE variable%%%" |
635 | 783 | # Display the features supported by this script. |
636 | 784 | func_features () |
637 | 785 | { |
638 | $ECHO "host: $host" | |
786 | echo "host: $host" | |
639 | 787 | if test "$build_libtool_libs" = yes; then |
640 | $ECHO "enable shared libraries" | |
788 | echo "enable shared libraries" | |
641 | 789 | else |
642 | $ECHO "disable shared libraries" | |
790 | echo "disable shared libraries" | |
643 | 791 | fi |
644 | 792 | if test "$build_old_libs" = yes; then |
645 | $ECHO "enable static libraries" | |
793 | echo "enable static libraries" | |
646 | 794 | else |
647 | $ECHO "disable static libraries" | |
795 | echo "disable static libraries" | |
648 | 796 | fi |
649 | 797 | |
650 | 798 | exit $? |
771 | 919 | |
772 | 920 | --quiet|--silent) preserve_args="$preserve_args $opt" |
773 | 921 | opt_silent=: |
922 | opt_verbose=false | |
923 | ;; | |
924 | ||
925 | --no-quiet|--no-silent) | |
926 | preserve_args="$preserve_args $opt" | |
927 | opt_silent=false | |
774 | 928 | ;; |
775 | 929 | |
776 | 930 | --verbose| -v) preserve_args="$preserve_args $opt" |
777 | 931 | opt_silent=false |
932 | opt_verbose=: | |
933 | ;; | |
934 | ||
935 | --no-verbose) preserve_args="$preserve_args $opt" | |
936 | opt_verbose=false | |
778 | 937 | ;; |
779 | 938 | |
780 | 939 | --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break |
792 | 951 | |
793 | 952 | -\?|-h) func_usage ;; |
794 | 953 | --help) opt_help=: ;; |
954 | --help-all) opt_help=': help-all' ;; | |
795 | 955 | --version) func_version ;; |
796 | 956 | |
797 | 957 | -*) func_fatal_help "unrecognized option \`$opt'" ;; |
1015 | 1175 | func_quote_for_eval "$arg" |
1016 | 1176 | CC_quoted="$CC_quoted $func_quote_for_eval_result" |
1017 | 1177 | done |
1178 | CC_expanded=`func_echo_all $CC` | |
1179 | CC_quoted_expanded=`func_echo_all $CC_quoted` | |
1018 | 1180 | case $@ in |
1019 | 1181 | # Blanks in the command may have been stripped by the calling shell, |
1020 | 1182 | # but not from the CC environment variable when configure was run. |
1021 | " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; | |
1183 | " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ | |
1184 | " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; | |
1022 | 1185 | # Blanks at the start of $base_compile will cause this to fail |
1023 | 1186 | # if we don't check for them as well. |
1024 | 1187 | *) |
1032 | 1195 | func_quote_for_eval "$arg" |
1033 | 1196 | CC_quoted="$CC_quoted $func_quote_for_eval_result" |
1034 | 1197 | done |
1198 | CC_expanded=`func_echo_all $CC` | |
1199 | CC_quoted_expanded=`func_echo_all $CC_quoted` | |
1035 | 1200 | case "$@ " in |
1036 | " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) | |
1201 | " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ | |
1202 | " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) | |
1037 | 1203 | # The compiler in the base compile command matches |
1038 | 1204 | # the one in the tagged configuration. |
1039 | 1205 | # Assume this is the tagged configuration we want. |
1212 | 1378 | *.[cCFSifmso] | \ |
1213 | 1379 | *.ada | *.adb | *.ads | *.asm | \ |
1214 | 1380 | *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ |
1215 | *.[fF][09]? | *.for | *.java | *.obj | *.sx) | |
1381 | *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup) | |
1216 | 1382 | func_xform "$libobj" |
1217 | 1383 | libobj=$func_xform_result |
1218 | 1384 | ;; |
1287 | 1453 | # Calculate the filename of the output object if compiler does |
1288 | 1454 | # not support -o with -c |
1289 | 1455 | if test "$compiler_c_o" = no; then |
1290 | output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} | |
1456 | output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext} | |
1291 | 1457 | lockfile="$output_obj.lock" |
1292 | 1458 | else |
1293 | 1459 | output_obj= |
1444 | 1610 | } |
1445 | 1611 | |
1446 | 1612 | $opt_help || { |
1447 | test "$mode" = compile && func_mode_compile ${1+"$@"} | |
1613 | test "$mode" = compile && func_mode_compile ${1+"$@"} | |
1448 | 1614 | } |
1449 | 1615 | |
1450 | 1616 | func_mode_help () |
1481 | 1647 | |
1482 | 1648 | -o OUTPUT-FILE set the output file name to OUTPUT-FILE |
1483 | 1649 | -no-suppress do not suppress compiler output for multiple passes |
1484 | -prefer-pic try to building PIC objects only | |
1485 | -prefer-non-pic try to building non-PIC objects only | |
1650 | -prefer-pic try to build PIC objects only | |
1651 | -prefer-non-pic try to build non-PIC objects only | |
1486 | 1652 | -shared do not build a \`.o' file suitable for static linking |
1487 | 1653 | -static only build a \`.o' file suitable for static linking |
1654 | -Wc,FLAG pass FLAG directly to the compiler | |
1488 | 1655 | |
1489 | 1656 | COMPILE-COMMAND is a command to be used in creating a \`standard' object file |
1490 | 1657 | from the given SOURCEFILE. |
1537 | 1704 | |
1538 | 1705 | The following components of INSTALL-COMMAND are treated specially: |
1539 | 1706 | |
1540 | -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation | |
1707 | -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation | |
1541 | 1708 | |
1542 | 1709 | The rest of the components are interpreted as arguments to that command (only |
1543 | 1710 | BSD-compatible install options are recognized)." |
1557 | 1724 | |
1558 | 1725 | -all-static do not do any dynamic linking at all |
1559 | 1726 | -avoid-version do not add a version suffix if possible |
1727 | -bindir BINDIR specify path to binaries directory (for systems where | |
1728 | libraries must be found in the PATH setting at runtime) | |
1560 | 1729 | -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime |
1561 | 1730 | -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols |
1562 | 1731 | -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) |
1585 | 1754 | -version-info CURRENT[:REVISION[:AGE]] |
1586 | 1755 | specify library version info [each variable defaults to 0] |
1587 | 1756 | -weak LIBNAME declare that the target provides the LIBNAME interface |
1757 | -Wc,FLAG | |
1758 | -Xcompiler FLAG pass linker-specific FLAG directly to the compiler | |
1759 | -Wl,FLAG | |
1760 | -Xlinker FLAG pass linker-specific FLAG directly to the linker | |
1761 | -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) | |
1588 | 1762 | |
1589 | 1763 | All other options (arguments beginning with \`-') are ignored. |
1590 | 1764 | |
1622 | 1796 | ;; |
1623 | 1797 | esac |
1624 | 1798 | |
1625 | $ECHO | |
1799 | echo | |
1626 | 1800 | $ECHO "Try \`$progname --help' for more information about other modes." |
1627 | ||
1628 | exit $? | |
1629 | 1801 | } |
1630 | 1802 | |
1631 | # Now that we've collected a possible --mode arg, show help if necessary | |
1632 | $opt_help && func_mode_help | |
1803 | # Now that we've collected a possible --mode arg, show help if necessary | |
1804 | if $opt_help; then | |
1805 | if test "$opt_help" = :; then | |
1806 | func_mode_help | |
1807 | else | |
1808 | { | |
1809 | func_help noexit | |
1810 | for mode in compile link execute install finish uninstall clean; do | |
1811 | func_mode_help | |
1812 | done | |
1813 | } | sed -n '1p; 2,$s/^Usage:/ or: /p' | |
1814 | { | |
1815 | func_help noexit | |
1816 | for mode in compile link execute install finish uninstall clean; do | |
1817 | echo | |
1818 | func_mode_help | |
1819 | done | |
1820 | } | | |
1821 | sed '1d | |
1822 | /^When reporting/,/^Report/{ | |
1823 | H | |
1824 | d | |
1825 | } | |
1826 | $x | |
1827 | /information about other modes/d | |
1828 | /more detailed .*MODE/d | |
1829 | s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' | |
1830 | fi | |
1831 | exit $? | |
1832 | fi | |
1633 | 1833 | |
1634 | 1834 | |
1635 | 1835 | # func_mode_execute arg... |
1711 | 1911 | for file |
1712 | 1912 | do |
1713 | 1913 | case $file in |
1714 | -*) ;; | |
1914 | -* | *.la | *.lo ) ;; | |
1715 | 1915 | *) |
1716 | 1916 | # Do a test to see if this is really a libtool program. |
1717 | 1917 | if func_ltwrapper_script_p "$file"; then |
1753 | 1953 | # Display what would be done. |
1754 | 1954 | if test -n "$shlibpath_var"; then |
1755 | 1955 | eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" |
1756 | $ECHO "export $shlibpath_var" | |
1956 | echo "export $shlibpath_var" | |
1757 | 1957 | fi |
1758 | 1958 | $ECHO "$cmd$args" |
1759 | 1959 | exit $EXIT_SUCCESS |
1794 | 1994 | # Exit here if they wanted silent mode. |
1795 | 1995 | $opt_silent && exit $EXIT_SUCCESS |
1796 | 1996 | |
1797 | $ECHO "X----------------------------------------------------------------------" | $Xsed | |
1798 | $ECHO "Libraries have been installed in:" | |
1997 | echo "----------------------------------------------------------------------" | |
1998 | echo "Libraries have been installed in:" | |
1799 | 1999 | for libdir in $libdirs; do |
1800 | 2000 | $ECHO " $libdir" |
1801 | 2001 | done |
1802 | $ECHO | |
1803 | $ECHO "If you ever happen to want to link against installed libraries" | |
1804 | $ECHO "in a given directory, LIBDIR, you must either use libtool, and" | |
1805 | $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" | |
1806 | $ECHO "flag during linking and do at least one of the following:" | |
2002 | echo | |
2003 | echo "If you ever happen to want to link against installed libraries" | |
2004 | echo "in a given directory, LIBDIR, you must either use libtool, and" | |
2005 | echo "specify the full pathname of the library, or use the \`-LLIBDIR'" | |
2006 | echo "flag during linking and do at least one of the following:" | |
1807 | 2007 | if test -n "$shlibpath_var"; then |
1808 | $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" | |
1809 | $ECHO " during execution" | |
2008 | echo " - add LIBDIR to the \`$shlibpath_var' environment variable" | |
2009 | echo " during execution" | |
1810 | 2010 | fi |
1811 | 2011 | if test -n "$runpath_var"; then |
1812 | $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" | |
1813 | $ECHO " during linking" | |
2012 | echo " - add LIBDIR to the \`$runpath_var' environment variable" | |
2013 | echo " during linking" | |
1814 | 2014 | fi |
1815 | 2015 | if test -n "$hardcode_libdir_flag_spec"; then |
1816 | 2016 | libdir=LIBDIR |
1822 | 2022 | $ECHO " - have your system administrator run these commands:$admincmds" |
1823 | 2023 | fi |
1824 | 2024 | if test -f /etc/ld.so.conf; then |
1825 | $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" | |
2025 | echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" | |
1826 | 2026 | fi |
1827 | $ECHO | |
1828 | ||
1829 | $ECHO "See any operating system documentation about shared libraries for" | |
2027 | echo | |
2028 | ||
2029 | echo "See any operating system documentation about shared libraries for" | |
1830 | 2030 | case $host in |
1831 | 2031 | solaris2.[6789]|solaris2.1[0-9]) |
1832 | $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" | |
1833 | $ECHO "pages." | |
2032 | echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" | |
2033 | echo "pages." | |
1834 | 2034 | ;; |
1835 | 2035 | *) |
1836 | $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." | |
2036 | echo "more information, such as the ld(1) and ld.so(8) manual pages." | |
1837 | 2037 | ;; |
1838 | 2038 | esac |
1839 | $ECHO "X----------------------------------------------------------------------" | $Xsed | |
2039 | echo "----------------------------------------------------------------------" | |
1840 | 2040 | exit $EXIT_SUCCESS |
1841 | 2041 | } |
1842 | 2042 | |
1851 | 2051 | # install_prog (especially on Windows NT). |
1852 | 2052 | if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || |
1853 | 2053 | # Allow the use of GNU shtool's install command. |
1854 | $ECHO "X$nonopt" | $GREP shtool >/dev/null; then | |
2054 | case $nonopt in *shtool*) :;; *) false;; esac; then | |
1855 | 2055 | # Aesthetically quote it. |
1856 | 2056 | func_quote_for_eval "$nonopt" |
1857 | 2057 | install_prog="$func_quote_for_eval_result " |
1866 | 2066 | # Aesthetically quote it. |
1867 | 2067 | func_quote_for_eval "$arg" |
1868 | 2068 | install_prog="$install_prog$func_quote_for_eval_result" |
2069 | install_shared_prog=$install_prog | |
2070 | case " $install_prog " in | |
2071 | *[\\\ /]cp\ *) install_cp=: ;; | |
2072 | *) install_cp=false ;; | |
2073 | esac | |
1869 | 2074 | |
1870 | 2075 | # We need to accept at least all the BSD install flags. |
1871 | 2076 | dest= |
1875 | 2080 | install_type= |
1876 | 2081 | isdir=no |
1877 | 2082 | stripme= |
2083 | no_mode=: | |
1878 | 2084 | for arg |
1879 | 2085 | do |
2086 | arg2= | |
1880 | 2087 | if test -n "$dest"; then |
1881 | 2088 | files="$files $dest" |
1882 | 2089 | dest=$arg |
1886 | 2093 | case $arg in |
1887 | 2094 | -d) isdir=yes ;; |
1888 | 2095 | -f) |
1889 | case " $install_prog " in | |
1890 | *[\\\ /]cp\ *) ;; | |
1891 | *) prev=$arg ;; | |
1892 | esac | |
2096 | if $install_cp; then :; else | |
2097 | prev=$arg | |
2098 | fi | |
1893 | 2099 | ;; |
1894 | 2100 | -g | -m | -o) |
1895 | 2101 | prev=$arg |
1903 | 2109 | *) |
1904 | 2110 | # If the previous option needed an argument, then skip it. |
1905 | 2111 | if test -n "$prev"; then |
2112 | if test "x$prev" = x-m && test -n "$install_override_mode"; then | |
2113 | arg2=$install_override_mode | |
2114 | no_mode=false | |
2115 | fi | |
1906 | 2116 | prev= |
1907 | 2117 | else |
1908 | 2118 | dest=$arg |
1914 | 2124 | # Aesthetically quote the argument. |
1915 | 2125 | func_quote_for_eval "$arg" |
1916 | 2126 | install_prog="$install_prog $func_quote_for_eval_result" |
2127 | if test -n "$arg2"; then | |
2128 | func_quote_for_eval "$arg2" | |
2129 | fi | |
2130 | install_shared_prog="$install_shared_prog $func_quote_for_eval_result" | |
1917 | 2131 | done |
1918 | 2132 | |
1919 | 2133 | test -z "$install_prog" && \ |
1921 | 2135 | |
1922 | 2136 | test -n "$prev" && \ |
1923 | 2137 | func_fatal_help "the \`$prev' option requires an argument" |
2138 | ||
2139 | if test -n "$install_override_mode" && $no_mode; then | |
2140 | if $install_cp; then :; else | |
2141 | func_quote_for_eval "$install_override_mode" | |
2142 | install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result" | |
2143 | fi | |
2144 | fi | |
1924 | 2145 | |
1925 | 2146 | if test -z "$files"; then |
1926 | 2147 | if test -z "$dest"; then |
2009 | 2230 | |
2010 | 2231 | if test -n "$relink_command"; then |
2011 | 2232 | # Determine the prefix the user has applied to our future dir. |
2012 | inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` | |
2233 | inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` | |
2013 | 2234 | |
2014 | 2235 | # Don't allow the user to place us outside of our expected |
2015 | 2236 | # location b/c this prevents finding dependent libraries that |
2022 | 2243 | |
2023 | 2244 | if test -n "$inst_prefix_dir"; then |
2024 | 2245 | # Stick the inst_prefix_dir data into the link command. |
2025 | relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` | |
2246 | relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` | |
2026 | 2247 | else |
2027 | relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` | |
2248 | relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` | |
2028 | 2249 | fi |
2029 | 2250 | |
2030 | 2251 | func_warning "relinking \`$file'" |
2042 | 2263 | test -n "$relink_command" && srcname="$realname"T |
2043 | 2264 | |
2044 | 2265 | # Install the shared library and build the symlinks. |
2045 | func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ | |
2266 | func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ | |
2046 | 2267 | 'exit $?' |
2047 | 2268 | tstripme="$stripme" |
2048 | 2269 | case $host_os in |
2182 | 2403 | if test -f "$lib"; then |
2183 | 2404 | func_source "$lib" |
2184 | 2405 | fi |
2185 | libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test | |
2406 | libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test | |
2186 | 2407 | if test -n "$libdir" && test ! -f "$libfile"; then |
2187 | 2408 | func_warning "\`$lib' has not been installed in \`$libdir'" |
2188 | 2409 | finalize=no |
2201 | 2422 | file="$func_basename_result" |
2202 | 2423 | outputname="$tmpdir/$file" |
2203 | 2424 | # Replace the output file specification. |
2204 | relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` | |
2425 | relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` | |
2205 | 2426 | |
2206 | 2427 | $opt_silent || { |
2207 | 2428 | func_quote_for_expand "$relink_command" |
2220 | 2441 | } |
2221 | 2442 | else |
2222 | 2443 | # Install the binary that we compiled earlier. |
2223 | file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` | |
2444 | file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` | |
2224 | 2445 | fi |
2225 | 2446 | fi |
2226 | 2447 | |
2322 | 2543 | extern \"C\" { |
2323 | 2544 | #endif |
2324 | 2545 | |
2546 | #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) | |
2547 | #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" | |
2548 | #endif | |
2549 | ||
2325 | 2550 | /* External symbol declarations for the compiler. */\ |
2326 | 2551 | " |
2327 | 2552 | |
2331 | 2556 | $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" |
2332 | 2557 | |
2333 | 2558 | # Add our own program objects to the symbol list. |
2334 | progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` | |
2559 | progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` | |
2335 | 2560 | for progfile in $progfiles; do |
2336 | 2561 | func_verbose "extracting global C symbols from \`$progfile'" |
2337 | 2562 | $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" |
2370 | 2595 | eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' |
2371 | 2596 | eval '$MV "$nlist"T "$nlist"' |
2372 | 2597 | case $host in |
2373 | *cygwin | *mingw* | *cegcc* ) | |
2598 | *cygwin* | *mingw* | *cegcc* ) | |
2374 | 2599 | eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' |
2375 | 2600 | eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' |
2376 | 2601 | ;; |
2414 | 2639 | if test -f "$nlist"S; then |
2415 | 2640 | eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' |
2416 | 2641 | else |
2417 | $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" | |
2642 | echo '/* NONE */' >> "$output_objdir/$my_dlsyms" | |
2418 | 2643 | fi |
2419 | 2644 | |
2420 | $ECHO >> "$output_objdir/$my_dlsyms" "\ | |
2645 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2421 | 2646 | |
2422 | 2647 | /* The mapping between symbol names and symbols. */ |
2423 | 2648 | typedef struct { |
2427 | 2652 | " |
2428 | 2653 | case $host in |
2429 | 2654 | *cygwin* | *mingw* | *cegcc* ) |
2430 | $ECHO >> "$output_objdir/$my_dlsyms" "\ | |
2655 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2431 | 2656 | /* DATA imports from DLLs on WIN32 con't be const, because |
2432 | 2657 | runtime relocations are performed -- see ld's documentation |
2433 | 2658 | on pseudo-relocs. */" |
2440 | 2665 | lt_dlsym_const=const ;; |
2441 | 2666 | esac |
2442 | 2667 | |
2443 | $ECHO >> "$output_objdir/$my_dlsyms" "\ | |
2668 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2444 | 2669 | extern $lt_dlsym_const lt_dlsymlist |
2445 | 2670 | lt_${my_prefix}_LTX_preloaded_symbols[]; |
2446 | 2671 | $lt_dlsym_const lt_dlsymlist |
2456 | 2681 | eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" |
2457 | 2682 | ;; |
2458 | 2683 | esac |
2459 | $ECHO >> "$output_objdir/$my_dlsyms" "\ | |
2684 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2460 | 2685 | {0, (void *) 0} |
2461 | 2686 | }; |
2462 | 2687 | |
2514 | 2739 | case $host in |
2515 | 2740 | *cygwin* | *mingw* | *cegcc* ) |
2516 | 2741 | if test -f "$output_objdir/$my_outputname.def"; then |
2517 | compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` | |
2518 | finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` | |
2742 | compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` | |
2743 | finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` | |
2519 | 2744 | else |
2520 | compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` | |
2521 | finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` | |
2745 | compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` | |
2746 | finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` | |
2522 | 2747 | fi |
2523 | 2748 | ;; |
2524 | 2749 | *) |
2525 | compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` | |
2526 | finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` | |
2750 | compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` | |
2751 | finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` | |
2527 | 2752 | ;; |
2528 | 2753 | esac |
2529 | 2754 | ;; |
2537 | 2762 | # really was required. |
2538 | 2763 | |
2539 | 2764 | # Nullify the symbol file. |
2540 | compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` | |
2541 | finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` | |
2765 | compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` | |
2766 | finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` | |
2542 | 2767 | fi |
2543 | 2768 | } |
2544 | 2769 | |
2548 | 2773 | # Need a lot of goo to handle *both* DLLs and import libs |
2549 | 2774 | # Has to be a shell function in order to 'eat' the argument |
2550 | 2775 | # that is supplied when $file_magic_command is called. |
2776 | # Despite the name, also deal with 64 bit binaries. | |
2551 | 2777 | func_win32_libid () |
2552 | 2778 | { |
2553 | 2779 | $opt_debug |
2558 | 2784 | win32_libid_type="x86 archive import" |
2559 | 2785 | ;; |
2560 | 2786 | *ar\ archive*) # could be an import, or static |
2787 | # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. | |
2561 | 2788 | if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | |
2562 | $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then | |
2789 | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then | |
2563 | 2790 | win32_nmres=`eval $NM -f posix -A $1 | |
2564 | 2791 | $SED -n -e ' |
2565 | 2792 | 1,100{ |
2597 | 2824 | $opt_debug |
2598 | 2825 | f_ex_an_ar_dir="$1"; shift |
2599 | 2826 | f_ex_an_ar_oldlib="$1" |
2600 | func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' | |
2827 | if test "$lock_old_archive_extraction" = yes; then | |
2828 | lockfile=$f_ex_an_ar_oldlib.lock | |
2829 | until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do | |
2830 | func_echo "Waiting for $lockfile to be removed" | |
2831 | sleep 2 | |
2832 | done | |
2833 | fi | |
2834 | func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ | |
2835 | 'stat=$?; rm -f "$lockfile"; exit $stat' | |
2836 | if test "$lock_old_archive_extraction" = yes; then | |
2837 | $opt_dry_run || rm -f "$lockfile" | |
2838 | fi | |
2601 | 2839 | if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then |
2602 | 2840 | : |
2603 | 2841 | else |
2668 | 2906 | darwin_file= |
2669 | 2907 | darwin_files= |
2670 | 2908 | for darwin_file in $darwin_filelist; do |
2671 | darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` | |
2909 | darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` | |
2672 | 2910 | $LIPO -create -output "$darwin_file" $darwin_files |
2673 | 2911 | done # $darwin_filelist |
2674 | 2912 | $RM -rf unfat-$$ |
2683 | 2921 | func_extract_an_archive "$my_xdir" "$my_xabs" |
2684 | 2922 | ;; |
2685 | 2923 | esac |
2686 | my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` | |
2924 | my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` | |
2687 | 2925 | done |
2688 | 2926 | |
2689 | 2927 | func_extract_archives_result="$my_oldobjs" |
2690 | 2928 | } |
2691 | ||
2692 | ||
2693 | ||
2694 | # func_emit_wrapper_part1 [arg=no] | |
2695 | # | |
2696 | # Emit the first part of a libtool wrapper script on stdout. | |
2697 | # For more information, see the description associated with | |
2698 | # func_emit_wrapper(), below. | |
2699 | func_emit_wrapper_part1 () | |
2700 | { | |
2701 | func_emit_wrapper_part1_arg1=no | |
2702 | if test -n "$1" ; then | |
2703 | func_emit_wrapper_part1_arg1=$1 | |
2704 | fi | |
2705 | ||
2706 | $ECHO "\ | |
2707 | #! $SHELL | |
2708 | ||
2709 | # $output - temporary wrapper script for $objdir/$outputname | |
2710 | # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION | |
2711 | # | |
2712 | # The $output program cannot be directly executed until all the libtool | |
2713 | # libraries that it depends on are installed. | |
2714 | # | |
2715 | # This wrapper script should never be moved out of the build directory. | |
2716 | # If it is, it will not operate correctly. | |
2717 | ||
2718 | # Sed substitution that helps us do robust quoting. It backslashifies | |
2719 | # metacharacters that are still active within double-quoted strings. | |
2720 | Xsed='${SED} -e 1s/^X//' | |
2721 | sed_quote_subst='$sed_quote_subst' | |
2722 | ||
2723 | # Be Bourne compatible | |
2724 | if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then | |
2725 | emulate sh | |
2726 | NULLCMD=: | |
2727 | # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which | |
2728 | # is contrary to our usage. Disable this feature. | |
2729 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
2730 | setopt NO_GLOB_SUBST | |
2731 | else | |
2732 | case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac | |
2733 | fi | |
2734 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
2735 | DUALCASE=1; export DUALCASE # for MKS sh | |
2736 | ||
2737 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
2738 | # if CDPATH is set. | |
2739 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
2740 | ||
2741 | relink_command=\"$relink_command\" | |
2742 | ||
2743 | # This environment variable determines our operation mode. | |
2744 | if test \"\$libtool_install_magic\" = \"$magic\"; then | |
2745 | # install mode needs the following variables: | |
2746 | generated_by_libtool_version='$macro_version' | |
2747 | notinst_deplibs='$notinst_deplibs' | |
2748 | else | |
2749 | # When we are sourced in execute mode, \$file and \$ECHO are already set. | |
2750 | if test \"\$libtool_execute_magic\" != \"$magic\"; then | |
2751 | ECHO=\"$qecho\" | |
2752 | file=\"\$0\" | |
2753 | # Make sure echo works. | |
2754 | if test \"X\$1\" = X--no-reexec; then | |
2755 | # Discard the --no-reexec flag, and continue. | |
2756 | shift | |
2757 | elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then | |
2758 | # Yippee, \$ECHO works! | |
2759 | : | |
2760 | else | |
2761 | # Restart under the correct shell, and then maybe \$ECHO will work. | |
2762 | exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} | |
2763 | fi | |
2764 | fi\ | |
2765 | " | |
2766 | $ECHO "\ | |
2767 | ||
2768 | # Find the directory that this script lives in. | |
2769 | thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` | |
2770 | test \"x\$thisdir\" = \"x\$file\" && thisdir=. | |
2771 | ||
2772 | # Follow symbolic links until we get to the real thisdir. | |
2773 | file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` | |
2774 | while test -n \"\$file\"; do | |
2775 | destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` | |
2776 | ||
2777 | # If there was a directory component, then change thisdir. | |
2778 | if test \"x\$destdir\" != \"x\$file\"; then | |
2779 | case \"\$destdir\" in | |
2780 | [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; | |
2781 | *) thisdir=\"\$thisdir/\$destdir\" ;; | |
2782 | esac | |
2783 | fi | |
2784 | ||
2785 | file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` | |
2786 | file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` | |
2787 | done | |
2788 | " | |
2789 | } | |
2790 | # end: func_emit_wrapper_part1 | |
2791 | ||
2792 | # func_emit_wrapper_part2 [arg=no] | |
2793 | # | |
2794 | # Emit the second part of a libtool wrapper script on stdout. | |
2795 | # For more information, see the description associated with | |
2796 | # func_emit_wrapper(), below. | |
2797 | func_emit_wrapper_part2 () | |
2798 | { | |
2799 | func_emit_wrapper_part2_arg1=no | |
2800 | if test -n "$1" ; then | |
2801 | func_emit_wrapper_part2_arg1=$1 | |
2802 | fi | |
2803 | ||
2804 | $ECHO "\ | |
2805 | ||
2806 | # Usually 'no', except on cygwin/mingw when embedded into | |
2807 | # the cwrapper. | |
2808 | WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 | |
2809 | if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then | |
2810 | # special case for '.' | |
2811 | if test \"\$thisdir\" = \".\"; then | |
2812 | thisdir=\`pwd\` | |
2813 | fi | |
2814 | # remove .libs from thisdir | |
2815 | case \"\$thisdir\" in | |
2816 | *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; | |
2817 | $objdir ) thisdir=. ;; | |
2818 | esac | |
2819 | fi | |
2820 | ||
2821 | # Try to get the absolute directory name. | |
2822 | absdir=\`cd \"\$thisdir\" && pwd\` | |
2823 | test -n \"\$absdir\" && thisdir=\"\$absdir\" | |
2824 | " | |
2825 | ||
2826 | if test "$fast_install" = yes; then | |
2827 | $ECHO "\ | |
2828 | program=lt-'$outputname'$exeext | |
2829 | progdir=\"\$thisdir/$objdir\" | |
2830 | ||
2831 | if test ! -f \"\$progdir/\$program\" || | |
2832 | { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ | |
2833 | test \"X\$file\" != \"X\$progdir/\$program\"; }; then | |
2834 | ||
2835 | file=\"\$\$-\$program\" | |
2836 | ||
2837 | if test ! -d \"\$progdir\"; then | |
2838 | $MKDIR \"\$progdir\" | |
2839 | else | |
2840 | $RM \"\$progdir/\$file\" | |
2841 | fi" | |
2842 | ||
2843 | $ECHO "\ | |
2844 | ||
2845 | # relink executable if necessary | |
2846 | if test -n \"\$relink_command\"; then | |
2847 | if relink_command_output=\`eval \$relink_command 2>&1\`; then : | |
2848 | else | |
2849 | $ECHO \"\$relink_command_output\" >&2 | |
2850 | $RM \"\$progdir/\$file\" | |
2851 | exit 1 | |
2852 | fi | |
2853 | fi | |
2854 | ||
2855 | $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || | |
2856 | { $RM \"\$progdir/\$program\"; | |
2857 | $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } | |
2858 | $RM \"\$progdir/\$file\" | |
2859 | fi" | |
2860 | else | |
2861 | $ECHO "\ | |
2862 | program='$outputname' | |
2863 | progdir=\"\$thisdir/$objdir\" | |
2864 | " | |
2865 | fi | |
2866 | ||
2867 | $ECHO "\ | |
2868 | ||
2869 | if test -f \"\$progdir/\$program\"; then" | |
2870 | ||
2871 | # Export our shlibpath_var if we have one. | |
2872 | if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then | |
2873 | $ECHO "\ | |
2874 | # Add our own library path to $shlibpath_var | |
2875 | $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" | |
2876 | ||
2877 | # Some systems cannot cope with colon-terminated $shlibpath_var | |
2878 | # The second colon is a workaround for a bug in BeOS R4 sed | |
2879 | $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` | |
2880 | ||
2881 | export $shlibpath_var | |
2882 | " | |
2883 | fi | |
2884 | ||
2885 | # fixup the dll searchpath if we need to. | |
2886 | if test -n "$dllsearchpath"; then | |
2887 | $ECHO "\ | |
2888 | # Add the dll search path components to the executable PATH | |
2889 | PATH=$dllsearchpath:\$PATH | |
2890 | " | |
2891 | fi | |
2892 | ||
2893 | $ECHO "\ | |
2894 | if test \"\$libtool_execute_magic\" != \"$magic\"; then | |
2895 | # Run the actual program with our arguments. | |
2896 | " | |
2897 | case $host in | |
2898 | # Backslashes separate directories on plain windows | |
2899 | *-*-mingw | *-*-os2* | *-cegcc*) | |
2900 | $ECHO "\ | |
2901 | exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} | |
2902 | " | |
2903 | ;; | |
2904 | ||
2905 | *) | |
2906 | $ECHO "\ | |
2907 | exec \"\$progdir/\$program\" \${1+\"\$@\"} | |
2908 | " | |
2909 | ;; | |
2910 | esac | |
2911 | $ECHO "\ | |
2912 | \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 | |
2913 | exit 1 | |
2914 | fi | |
2915 | else | |
2916 | # The program doesn't exist. | |
2917 | \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 | |
2918 | \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 | |
2919 | $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 | |
2920 | exit 1 | |
2921 | fi | |
2922 | fi\ | |
2923 | " | |
2924 | } | |
2925 | # end: func_emit_wrapper_part2 | |
2926 | 2929 | |
2927 | 2930 | |
2928 | 2931 | # func_emit_wrapper [arg=no] |
2941 | 2944 | # behavior. |
2942 | 2945 | func_emit_wrapper () |
2943 | 2946 | { |
2944 | func_emit_wrapper_arg1=no | |
2945 | if test -n "$1" ; then | |
2946 | func_emit_wrapper_arg1=$1 | |
2947 | func_emit_wrapper_arg1=${1-no} | |
2948 | ||
2949 | $ECHO "\ | |
2950 | #! $SHELL | |
2951 | ||
2952 | # $output - temporary wrapper script for $objdir/$outputname | |
2953 | # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION | |
2954 | # | |
2955 | # The $output program cannot be directly executed until all the libtool | |
2956 | # libraries that it depends on are installed. | |
2957 | # | |
2958 | # This wrapper script should never be moved out of the build directory. | |
2959 | # If it is, it will not operate correctly. | |
2960 | ||
2961 | # Sed substitution that helps us do robust quoting. It backslashifies | |
2962 | # metacharacters that are still active within double-quoted strings. | |
2963 | sed_quote_subst='$sed_quote_subst' | |
2964 | ||
2965 | # Be Bourne compatible | |
2966 | if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then | |
2967 | emulate sh | |
2968 | NULLCMD=: | |
2969 | # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which | |
2970 | # is contrary to our usage. Disable this feature. | |
2971 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
2972 | setopt NO_GLOB_SUBST | |
2973 | else | |
2974 | case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac | |
2975 | fi | |
2976 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
2977 | DUALCASE=1; export DUALCASE # for MKS sh | |
2978 | ||
2979 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
2980 | # if CDPATH is set. | |
2981 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
2982 | ||
2983 | relink_command=\"$relink_command\" | |
2984 | ||
2985 | # This environment variable determines our operation mode. | |
2986 | if test \"\$libtool_install_magic\" = \"$magic\"; then | |
2987 | # install mode needs the following variables: | |
2988 | generated_by_libtool_version='$macro_version' | |
2989 | notinst_deplibs='$notinst_deplibs' | |
2990 | else | |
2991 | # When we are sourced in execute mode, \$file and \$ECHO are already set. | |
2992 | if test \"\$libtool_execute_magic\" != \"$magic\"; then | |
2993 | file=\"\$0\"" | |
2994 | ||
2995 | qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` | |
2996 | $ECHO "\ | |
2997 | ||
2998 | # A function that is used when there is no print builtin or printf. | |
2999 | func_fallback_echo () | |
3000 | { | |
3001 | eval 'cat <<_LTECHO_EOF | |
3002 | \$1 | |
3003 | _LTECHO_EOF' | |
3004 | } | |
3005 | ECHO=\"$qECHO\" | |
3006 | fi | |
3007 | ||
3008 | # Very basic option parsing. These options are (a) specific to | |
3009 | # the libtool wrapper, (b) are identical between the wrapper | |
3010 | # /script/ and the wrapper /executable/ which is used only on | |
3011 | # windows platforms, and (c) all begin with the string "--lt-" | |
3012 | # (application programs are unlikely to have options which match | |
3013 | # this pattern). | |
3014 | # | |
3015 | # There are only two supported options: --lt-debug and | |
3016 | # --lt-dump-script. There is, deliberately, no --lt-help. | |
3017 | # | |
3018 | # The first argument to this parsing function should be the | |
3019 | # script's $0 value, followed by "$@". | |
3020 | lt_option_debug= | |
3021 | func_parse_lt_options () | |
3022 | { | |
3023 | lt_script_arg0=\$0 | |
3024 | shift | |
3025 | for lt_opt | |
3026 | do | |
3027 | case \"\$lt_opt\" in | |
3028 | --lt-debug) lt_option_debug=1 ;; | |
3029 | --lt-dump-script) | |
3030 | lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` | |
3031 | test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. | |
3032 | lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` | |
3033 | cat \"\$lt_dump_D/\$lt_dump_F\" | |
3034 | exit 0 | |
3035 | ;; | |
3036 | --lt-*) | |
3037 | \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 | |
3038 | exit 1 | |
3039 | ;; | |
3040 | esac | |
3041 | done | |
3042 | ||
3043 | # Print the debug banner immediately: | |
3044 | if test -n \"\$lt_option_debug\"; then | |
3045 | echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2 | |
3046 | fi | |
3047 | } | |
3048 | ||
3049 | # Used when --lt-debug. Prints its arguments to stdout | |
3050 | # (redirection is the responsibility of the caller) | |
3051 | func_lt_dump_args () | |
3052 | { | |
3053 | lt_dump_args_N=1; | |
3054 | for lt_arg | |
3055 | do | |
3056 | \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\" | |
3057 | lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` | |
3058 | done | |
3059 | } | |
3060 | ||
3061 | # Core function for launching the target application | |
3062 | func_exec_program_core () | |
3063 | { | |
3064 | " | |
3065 | case $host in | |
3066 | # Backslashes separate directories on plain windows | |
3067 | *-*-mingw | *-*-os2* | *-cegcc*) | |
3068 | $ECHO "\ | |
3069 | if test -n \"\$lt_option_debug\"; then | |
3070 | \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2 | |
3071 | func_lt_dump_args \${1+\"\$@\"} 1>&2 | |
3072 | fi | |
3073 | exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} | |
3074 | " | |
3075 | ;; | |
3076 | ||
3077 | *) | |
3078 | $ECHO "\ | |
3079 | if test -n \"\$lt_option_debug\"; then | |
3080 | \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2 | |
3081 | func_lt_dump_args \${1+\"\$@\"} 1>&2 | |
3082 | fi | |
3083 | exec \"\$progdir/\$program\" \${1+\"\$@\"} | |
3084 | " | |
3085 | ;; | |
3086 | esac | |
3087 | $ECHO "\ | |
3088 | \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 | |
3089 | exit 1 | |
3090 | } | |
3091 | ||
3092 | # A function to encapsulate launching the target application | |
3093 | # Strips options in the --lt-* namespace from \$@ and | |
3094 | # launches target application with the remaining arguments. | |
3095 | func_exec_program () | |
3096 | { | |
3097 | for lt_wr_arg | |
3098 | do | |
3099 | case \$lt_wr_arg in | |
3100 | --lt-*) ;; | |
3101 | *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; | |
3102 | esac | |
3103 | shift | |
3104 | done | |
3105 | func_exec_program_core \${1+\"\$@\"} | |
3106 | } | |
3107 | ||
3108 | # Parse options | |
3109 | func_parse_lt_options \"\$0\" \${1+\"\$@\"} | |
3110 | ||
3111 | # Find the directory that this script lives in. | |
3112 | thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` | |
3113 | test \"x\$thisdir\" = \"x\$file\" && thisdir=. | |
3114 | ||
3115 | # Follow symbolic links until we get to the real thisdir. | |
3116 | file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` | |
3117 | while test -n \"\$file\"; do | |
3118 | destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` | |
3119 | ||
3120 | # If there was a directory component, then change thisdir. | |
3121 | if test \"x\$destdir\" != \"x\$file\"; then | |
3122 | case \"\$destdir\" in | |
3123 | [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; | |
3124 | *) thisdir=\"\$thisdir/\$destdir\" ;; | |
3125 | esac | |
3126 | fi | |
3127 | ||
3128 | file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` | |
3129 | file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` | |
3130 | done | |
3131 | ||
3132 | # Usually 'no', except on cygwin/mingw when embedded into | |
3133 | # the cwrapper. | |
3134 | WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 | |
3135 | if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then | |
3136 | # special case for '.' | |
3137 | if test \"\$thisdir\" = \".\"; then | |
3138 | thisdir=\`pwd\` | |
3139 | fi | |
3140 | # remove .libs from thisdir | |
3141 | case \"\$thisdir\" in | |
3142 | *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; | |
3143 | $objdir ) thisdir=. ;; | |
3144 | esac | |
3145 | fi | |
3146 | ||
3147 | # Try to get the absolute directory name. | |
3148 | absdir=\`cd \"\$thisdir\" && pwd\` | |
3149 | test -n \"\$absdir\" && thisdir=\"\$absdir\" | |
3150 | " | |
3151 | ||
3152 | if test "$fast_install" = yes; then | |
3153 | $ECHO "\ | |
3154 | program=lt-'$outputname'$exeext | |
3155 | progdir=\"\$thisdir/$objdir\" | |
3156 | ||
3157 | if test ! -f \"\$progdir/\$program\" || | |
3158 | { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ | |
3159 | test \"X\$file\" != \"X\$progdir/\$program\"; }; then | |
3160 | ||
3161 | file=\"\$\$-\$program\" | |
3162 | ||
3163 | if test ! -d \"\$progdir\"; then | |
3164 | $MKDIR \"\$progdir\" | |
3165 | else | |
3166 | $RM \"\$progdir/\$file\" | |
3167 | fi" | |
3168 | ||
3169 | $ECHO "\ | |
3170 | ||
3171 | # relink executable if necessary | |
3172 | if test -n \"\$relink_command\"; then | |
3173 | if relink_command_output=\`eval \$relink_command 2>&1\`; then : | |
3174 | else | |
3175 | $ECHO \"\$relink_command_output\" >&2 | |
3176 | $RM \"\$progdir/\$file\" | |
3177 | exit 1 | |
3178 | fi | |
3179 | fi | |
3180 | ||
3181 | $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || | |
3182 | { $RM \"\$progdir/\$program\"; | |
3183 | $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } | |
3184 | $RM \"\$progdir/\$file\" | |
3185 | fi" | |
3186 | else | |
3187 | $ECHO "\ | |
3188 | program='$outputname' | |
3189 | progdir=\"\$thisdir/$objdir\" | |
3190 | " | |
2947 | 3191 | fi |
2948 | 3192 | |
2949 | # split this up so that func_emit_cwrapperexe_src | |
2950 | # can call each part independently. | |
2951 | func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" | |
2952 | func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" | |
3193 | $ECHO "\ | |
3194 | ||
3195 | if test -f \"\$progdir/\$program\"; then" | |
3196 | ||
3197 | # Export our shlibpath_var if we have one. | |
3198 | if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then | |
3199 | $ECHO "\ | |
3200 | # Add our own library path to $shlibpath_var | |
3201 | $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" | |
3202 | ||
3203 | # Some systems cannot cope with colon-terminated $shlibpath_var | |
3204 | # The second colon is a workaround for a bug in BeOS R4 sed | |
3205 | $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` | |
3206 | ||
3207 | export $shlibpath_var | |
3208 | " | |
3209 | fi | |
3210 | ||
3211 | # fixup the dll searchpath if we need to. | |
3212 | if test -n "$dllsearchpath"; then | |
3213 | $ECHO "\ | |
3214 | # Add the dll search path components to the executable PATH | |
3215 | PATH=$dllsearchpath:\$PATH | |
3216 | " | |
3217 | fi | |
3218 | ||
3219 | $ECHO "\ | |
3220 | if test \"\$libtool_execute_magic\" != \"$magic\"; then | |
3221 | # Run the actual program with our arguments. | |
3222 | func_exec_program \${1+\"\$@\"} | |
3223 | fi | |
3224 | else | |
3225 | # The program doesn't exist. | |
3226 | \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 | |
3227 | \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 | |
3228 | \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 | |
3229 | exit 1 | |
3230 | fi | |
3231 | fi\ | |
3232 | " | |
2953 | 3233 | } |
2954 | 3234 | |
2955 | 3235 | |
2977 | 3257 | func_to_host_path () |
2978 | 3258 | { |
2979 | 3259 | func_to_host_path_result="$1" |
2980 | if test -n "$1" ; then | |
3260 | if test -n "$1"; then | |
2981 | 3261 | case $host in |
2982 | 3262 | *mingw* ) |
2983 | 3263 | lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' |
2984 | 3264 | case $build in |
2985 | 3265 | *mingw* ) # actually, msys |
2986 | 3266 | # awkward: cmd appends spaces to result |
2987 | lt_sed_strip_trailing_spaces="s/[ ]*\$//" | |
2988 | func_to_host_path_tmp1=`( cmd //c echo "$1" |\ | |
2989 | $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` | |
2990 | func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ | |
2991 | $SED -e "$lt_sed_naive_backslashify"` | |
3267 | func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null | | |
3268 | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` | |
2992 | 3269 | ;; |
2993 | 3270 | *cygwin* ) |
2994 | func_to_host_path_tmp1=`cygpath -w "$1"` | |
2995 | func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ | |
2996 | $SED -e "$lt_sed_naive_backslashify"` | |
3271 | func_to_host_path_result=`cygpath -w "$1" | | |
3272 | $SED -e "$lt_sed_naive_backslashify"` | |
2997 | 3273 | ;; |
2998 | 3274 | * ) |
2999 | 3275 | # Unfortunately, winepath does not exit with a non-zero |
3005 | 3281 | # the odd construction: |
3006 | 3282 | func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` |
3007 | 3283 | if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then |
3008 | func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ | |
3284 | func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" | | |
3009 | 3285 | $SED -e "$lt_sed_naive_backslashify"` |
3010 | 3286 | else |
3011 | 3287 | # Allow warning below. |
3012 | func_to_host_path_result="" | |
3288 | func_to_host_path_result= | |
3013 | 3289 | fi |
3014 | 3290 | ;; |
3015 | 3291 | esac |
3016 | 3292 | if test -z "$func_to_host_path_result" ; then |
3017 | 3293 | func_error "Could not determine host path corresponding to" |
3018 | func_error " '$1'" | |
3294 | func_error " \`$1'" | |
3019 | 3295 | func_error "Continuing, but uninstalled executables may not work." |
3020 | 3296 | # Fallback: |
3021 | 3297 | func_to_host_path_result="$1" |
3048 | 3324 | func_to_host_pathlist () |
3049 | 3325 | { |
3050 | 3326 | func_to_host_pathlist_result="$1" |
3051 | if test -n "$1" ; then | |
3327 | if test -n "$1"; then | |
3052 | 3328 | case $host in |
3053 | 3329 | *mingw* ) |
3054 | 3330 | lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' |
3055 | 3331 | # Remove leading and trailing path separator characters from |
3056 | 3332 | # ARG. msys behavior is inconsistent here, cygpath turns them |
3057 | 3333 | # into '.;' and ';.', and winepath ignores them completely. |
3058 | func_to_host_pathlist_tmp2="$1" | |
3059 | # Once set for this call, this variable should not be | |
3060 | # reassigned. It is used in tha fallback case. | |
3061 | func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ | |
3062 | $SED -e 's|^:*||' -e 's|:*$||'` | |
3334 | func_stripname : : "$1" | |
3335 | func_to_host_pathlist_tmp1=$func_stripname_result | |
3063 | 3336 | case $build in |
3064 | 3337 | *mingw* ) # Actually, msys. |
3065 | 3338 | # Awkward: cmd appends spaces to result. |
3066 | lt_sed_strip_trailing_spaces="s/[ ]*\$//" | |
3067 | func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ | |
3068 | $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` | |
3069 | func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ | |
3070 | $SED -e "$lt_sed_naive_backslashify"` | |
3339 | func_to_host_pathlist_result=` | |
3340 | ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null | | |
3341 | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` | |
3071 | 3342 | ;; |
3072 | 3343 | *cygwin* ) |
3073 | func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` | |
3074 | func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ | |
3344 | func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" | | |
3075 | 3345 | $SED -e "$lt_sed_naive_backslashify"` |
3076 | 3346 | ;; |
3077 | 3347 | * ) |
3087 | 3357 | if test -z "$func_to_host_pathlist_result" ; then |
3088 | 3358 | func_to_host_pathlist_result="$func_to_host_path_result" |
3089 | 3359 | else |
3090 | func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" | |
3360 | func_append func_to_host_pathlist_result ";$func_to_host_path_result" | |
3091 | 3361 | fi |
3092 | 3362 | fi |
3093 | 3363 | fi |
3094 | IFS=: | |
3095 | 3364 | done |
3096 | 3365 | IFS=$func_to_host_pathlist_oldIFS |
3097 | 3366 | ;; |
3098 | 3367 | esac |
3099 | if test -z "$func_to_host_pathlist_result" ; then | |
3368 | if test -z "$func_to_host_pathlist_result"; then | |
3100 | 3369 | func_error "Could not determine the host path(s) corresponding to" |
3101 | func_error " '$1'" | |
3370 | func_error " \`$1'" | |
3102 | 3371 | func_error "Continuing, but uninstalled executables may not work." |
3103 | 3372 | # Fallback. This may break if $1 contains DOS-style drive |
3104 | 3373 | # specifications. The fix is not to complicate the expression |
3115 | 3384 | ;; |
3116 | 3385 | esac |
3117 | 3386 | case "$1" in |
3118 | *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" | |
3387 | *: ) func_append func_to_host_pathlist_result ";" | |
3119 | 3388 | ;; |
3120 | 3389 | esac |
3121 | 3390 | ;; |
3140 | 3409 | |
3141 | 3410 | This wrapper executable should never be moved out of the build directory. |
3142 | 3411 | If it is, it will not operate correctly. |
3143 | ||
3144 | Currently, it simply execs the wrapper *script* "$SHELL $output", | |
3145 | but could eventually absorb all of the scripts functionality and | |
3146 | exec $objdir/$outputname directly. | |
3147 | 3412 | */ |
3148 | 3413 | EOF |
3149 | 3414 | cat <<"EOF" |
3415 | #ifdef _MSC_VER | |
3416 | # define _CRT_SECURE_NO_DEPRECATE 1 | |
3417 | #endif | |
3150 | 3418 | #include <stdio.h> |
3151 | 3419 | #include <stdlib.h> |
3152 | 3420 | #ifdef _MSC_VER |
3153 | 3421 | # include <direct.h> |
3154 | 3422 | # include <process.h> |
3155 | 3423 | # include <io.h> |
3156 | # define setmode _setmode | |
3157 | 3424 | #else |
3158 | 3425 | # include <unistd.h> |
3159 | 3426 | # include <stdint.h> |
3160 | 3427 | # ifdef __CYGWIN__ |
3161 | 3428 | # include <io.h> |
3162 | # define HAVE_SETENV | |
3163 | # ifdef __STRICT_ANSI__ | |
3164 | char *realpath (const char *, char *); | |
3165 | int putenv (char *); | |
3166 | int setenv (const char *, const char *, int); | |
3167 | # endif | |
3168 | 3429 | # endif |
3169 | 3430 | #endif |
3170 | 3431 | #include <malloc.h> |
3176 | 3437 | #include <fcntl.h> |
3177 | 3438 | #include <sys/stat.h> |
3178 | 3439 | |
3440 | /* declarations of non-ANSI functions */ | |
3441 | #if defined(__MINGW32__) | |
3442 | # ifdef __STRICT_ANSI__ | |
3443 | int _putenv (const char *); | |
3444 | # endif | |
3445 | #elif defined(__CYGWIN__) | |
3446 | # ifdef __STRICT_ANSI__ | |
3447 | char *realpath (const char *, char *); | |
3448 | int putenv (char *); | |
3449 | int setenv (const char *, const char *, int); | |
3450 | # endif | |
3451 | /* #elif defined (other platforms) ... */ | |
3452 | #endif | |
3453 | ||
3454 | /* portability defines, excluding path handling macros */ | |
3455 | #if defined(_MSC_VER) | |
3456 | # define setmode _setmode | |
3457 | # define stat _stat | |
3458 | # define chmod _chmod | |
3459 | # define getcwd _getcwd | |
3460 | # define putenv _putenv | |
3461 | # define S_IXUSR _S_IEXEC | |
3462 | # ifndef _INTPTR_T_DEFINED | |
3463 | # define _INTPTR_T_DEFINED | |
3464 | # define intptr_t int | |
3465 | # endif | |
3466 | #elif defined(__MINGW32__) | |
3467 | # define setmode _setmode | |
3468 | # define stat _stat | |
3469 | # define chmod _chmod | |
3470 | # define getcwd _getcwd | |
3471 | # define putenv _putenv | |
3472 | #elif defined(__CYGWIN__) | |
3473 | # define HAVE_SETENV | |
3474 | # define FOPEN_WB "wb" | |
3475 | /* #elif defined (other platforms) ... */ | |
3476 | #endif | |
3477 | ||
3179 | 3478 | #if defined(PATH_MAX) |
3180 | 3479 | # define LT_PATHMAX PATH_MAX |
3181 | 3480 | #elif defined(MAXPATHLEN) |
3191 | 3490 | # define S_IXGRP 0 |
3192 | 3491 | #endif |
3193 | 3492 | |
3194 | #ifdef _MSC_VER | |
3195 | # define S_IXUSR _S_IEXEC | |
3196 | # define stat _stat | |
3197 | # ifndef _INTPTR_T_DEFINED | |
3198 | # define intptr_t int | |
3199 | # endif | |
3200 | #endif | |
3201 | ||
3493 | /* path handling portability macros */ | |
3202 | 3494 | #ifndef DIR_SEPARATOR |
3203 | 3495 | # define DIR_SEPARATOR '/' |
3204 | 3496 | # define PATH_SEPARATOR ':' |
3229 | 3521 | # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) |
3230 | 3522 | #endif /* PATH_SEPARATOR_2 */ |
3231 | 3523 | |
3232 | #ifdef __CYGWIN__ | |
3233 | # define FOPEN_WB "wb" | |
3234 | #endif | |
3235 | ||
3236 | 3524 | #ifndef FOPEN_WB |
3237 | 3525 | # define FOPEN_WB "w" |
3238 | 3526 | #endif |
3245 | 3533 | if (stale) { free ((void *) stale); stale = 0; } \ |
3246 | 3534 | } while (0) |
3247 | 3535 | |
3248 | #undef LTWRAPPER_DEBUGPRINTF | |
3249 | #if defined DEBUGWRAPPER | |
3250 | # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args | |
3251 | static void | |
3252 | ltwrapper_debugprintf (const char *fmt, ...) | |
3253 | { | |
3254 | va_list args; | |
3255 | va_start (args, fmt); | |
3256 | (void) vfprintf (stderr, fmt, args); | |
3257 | va_end (args); | |
3258 | } | |
3536 | #if defined(LT_DEBUGWRAPPER) | |
3537 | static int lt_debug = 1; | |
3259 | 3538 | #else |
3260 | # define LTWRAPPER_DEBUGPRINTF(args) | |
3539 | static int lt_debug = 0; | |
3261 | 3540 | #endif |
3262 | 3541 | |
3263 | const char *program_name = NULL; | |
3542 | const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ | |
3264 | 3543 | |
3265 | 3544 | void *xmalloc (size_t num); |
3266 | 3545 | char *xstrdup (const char *string); |
3270 | 3549 | int make_executable (const char *path); |
3271 | 3550 | int check_executable (const char *path); |
3272 | 3551 | char *strendzap (char *str, const char *pat); |
3273 | void lt_fatal (const char *message, ...); | |
3552 | void lt_debugprintf (const char *file, int line, const char *fmt, ...); | |
3553 | void lt_fatal (const char *file, int line, const char *message, ...); | |
3554 | static const char *nonnull (const char *s); | |
3555 | static const char *nonempty (const char *s); | |
3274 | 3556 | void lt_setenv (const char *name, const char *value); |
3275 | 3557 | char *lt_extend_str (const char *orig_value, const char *add, int to_end); |
3276 | void lt_opt_process_env_set (const char *arg); | |
3277 | void lt_opt_process_env_prepend (const char *arg); | |
3278 | void lt_opt_process_env_append (const char *arg); | |
3279 | int lt_split_name_value (const char *arg, char** name, char** value); | |
3280 | 3558 | void lt_update_exe_path (const char *name, const char *value); |
3281 | 3559 | void lt_update_lib_path (const char *name, const char *value); |
3282 | ||
3283 | static const char *script_text_part1 = | |
3560 | char **prepare_spawn (char **argv); | |
3561 | void lt_dump_script (FILE *f); | |
3284 | 3562 | EOF |
3285 | ||
3286 | func_emit_wrapper_part1 yes | | |
3287 | $SED -e 's/\([\\"]\)/\\\1/g' \ | |
3288 | -e 's/^/ "/' -e 's/$/\\n"/' | |
3289 | echo ";" | |
3290 | cat <<EOF | |
3291 | ||
3292 | static const char *script_text_part2 = | |
3293 | EOF | |
3294 | func_emit_wrapper_part2 yes | | |
3295 | $SED -e 's/\([\\"]\)/\\\1/g' \ | |
3296 | -e 's/^/ "/' -e 's/$/\\n"/' | |
3297 | echo ";" | |
3298 | 3563 | |
3299 | 3564 | cat <<EOF |
3300 | 3565 | const char * MAGIC_EXE = "$magic_exe"; |
3339 | 3604 | cat <<"EOF" |
3340 | 3605 | |
3341 | 3606 | #define LTWRAPPER_OPTION_PREFIX "--lt-" |
3342 | #define LTWRAPPER_OPTION_PREFIX_LENGTH 5 | |
3343 | ||
3344 | static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH; | |
3607 | ||
3345 | 3608 | static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX; |
3346 | ||
3347 | 3609 | static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script"; |
3348 | ||
3349 | static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7; | |
3350 | static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set"; | |
3351 | /* argument is putenv-style "foo=bar", value of foo is set to bar */ | |
3352 | ||
3353 | static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11; | |
3354 | static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend"; | |
3355 | /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */ | |
3356 | ||
3357 | static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10; | |
3358 | static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append"; | |
3359 | /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */ | |
3610 | static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug"; | |
3360 | 3611 | |
3361 | 3612 | int |
3362 | 3613 | main (int argc, char *argv[]) |
3373 | 3624 | int i; |
3374 | 3625 | |
3375 | 3626 | program_name = (char *) xstrdup (base_name (argv[0])); |
3376 | LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0])); | |
3377 | LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name)); | |
3378 | ||
3379 | /* very simple arg parsing; don't want to rely on getopt */ | |
3627 | newargz = XMALLOC (char *, argc + 1); | |
3628 | ||
3629 | /* very simple arg parsing; don't want to rely on getopt | |
3630 | * also, copy all non cwrapper options to newargz, except | |
3631 | * argz[0], which is handled differently | |
3632 | */ | |
3633 | newargc=0; | |
3380 | 3634 | for (i = 1; i < argc; i++) |
3381 | 3635 | { |
3382 | 3636 | if (strcmp (argv[i], dumpscript_opt) == 0) |
3390 | 3644 | esac |
3391 | 3645 | |
3392 | 3646 | cat <<"EOF" |
3393 | printf ("%s", script_text_part1); | |
3394 | printf ("%s", script_text_part2); | |
3647 | lt_dump_script (stdout); | |
3395 | 3648 | return 0; |
3396 | 3649 | } |
3650 | if (strcmp (argv[i], debug_opt) == 0) | |
3651 | { | |
3652 | lt_debug = 1; | |
3653 | continue; | |
3654 | } | |
3655 | if (strcmp (argv[i], ltwrapper_option_prefix) == 0) | |
3656 | { | |
3657 | /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX | |
3658 | namespace, but it is not one of the ones we know about and | |
3659 | have already dealt with, above (inluding dump-script), then | |
3660 | report an error. Otherwise, targets might begin to believe | |
3661 | they are allowed to use options in the LTWRAPPER_OPTION_PREFIX | |
3662 | namespace. The first time any user complains about this, we'll | |
3663 | need to make LTWRAPPER_OPTION_PREFIX a configure-time option | |
3664 | or a configure.ac-settable value. | |
3665 | */ | |
3666 | lt_fatal (__FILE__, __LINE__, | |
3667 | "unrecognized %s option: '%s'", | |
3668 | ltwrapper_option_prefix, argv[i]); | |
3669 | } | |
3670 | /* otherwise ... */ | |
3671 | newargz[++newargc] = xstrdup (argv[i]); | |
3397 | 3672 | } |
3398 | ||
3399 | newargz = XMALLOC (char *, argc + 1); | |
3673 | newargz[++newargc] = NULL; | |
3674 | ||
3675 | EOF | |
3676 | cat <<EOF | |
3677 | /* The GNU banner must be the first non-error debug message */ | |
3678 | lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n"); | |
3679 | EOF | |
3680 | cat <<"EOF" | |
3681 | lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]); | |
3682 | lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name); | |
3683 | ||
3400 | 3684 | tmp_pathspec = find_executable (argv[0]); |
3401 | 3685 | if (tmp_pathspec == NULL) |
3402 | lt_fatal ("Couldn't find %s", argv[0]); | |
3403 | LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n", | |
3404 | tmp_pathspec)); | |
3686 | lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]); | |
3687 | lt_debugprintf (__FILE__, __LINE__, | |
3688 | "(main) found exe (before symlink chase) at: %s\n", | |
3689 | tmp_pathspec); | |
3405 | 3690 | |
3406 | 3691 | actual_cwrapper_path = chase_symlinks (tmp_pathspec); |
3407 | LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n", | |
3408 | actual_cwrapper_path)); | |
3692 | lt_debugprintf (__FILE__, __LINE__, | |
3693 | "(main) found exe (after symlink chase) at: %s\n", | |
3694 | actual_cwrapper_path); | |
3409 | 3695 | XFREE (tmp_pathspec); |
3410 | 3696 | |
3411 | actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path)); | |
3697 | actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path)); | |
3412 | 3698 | strendzap (actual_cwrapper_path, actual_cwrapper_name); |
3413 | 3699 | |
3414 | 3700 | /* wrapper name transforms */ |
3426 | 3712 | target_name = tmp_pathspec; |
3427 | 3713 | tmp_pathspec = 0; |
3428 | 3714 | |
3429 | LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n", | |
3430 | target_name)); | |
3715 | lt_debugprintf (__FILE__, __LINE__, | |
3716 | "(main) libtool target name: %s\n", | |
3717 | target_name); | |
3431 | 3718 | EOF |
3432 | 3719 | |
3433 | 3720 | cat <<EOF |
3480 | 3767 | lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); |
3481 | 3768 | lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); |
3482 | 3769 | |
3483 | newargc=0; | |
3484 | for (i = 1; i < argc; i++) | |
3485 | { | |
3486 | if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0) | |
3487 | { | |
3488 | if (argv[i][env_set_opt_len] == '=') | |
3489 | { | |
3490 | const char *p = argv[i] + env_set_opt_len + 1; | |
3491 | lt_opt_process_env_set (p); | |
3492 | } | |
3493 | else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc) | |
3494 | { | |
3495 | lt_opt_process_env_set (argv[++i]); /* don't copy */ | |
3496 | } | |
3497 | else | |
3498 | lt_fatal ("%s missing required argument", env_set_opt); | |
3499 | continue; | |
3500 | } | |
3501 | if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0) | |
3502 | { | |
3503 | if (argv[i][env_prepend_opt_len] == '=') | |
3504 | { | |
3505 | const char *p = argv[i] + env_prepend_opt_len + 1; | |
3506 | lt_opt_process_env_prepend (p); | |
3507 | } | |
3508 | else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc) | |
3509 | { | |
3510 | lt_opt_process_env_prepend (argv[++i]); /* don't copy */ | |
3511 | } | |
3512 | else | |
3513 | lt_fatal ("%s missing required argument", env_prepend_opt); | |
3514 | continue; | |
3515 | } | |
3516 | if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0) | |
3517 | { | |
3518 | if (argv[i][env_append_opt_len] == '=') | |
3519 | { | |
3520 | const char *p = argv[i] + env_append_opt_len + 1; | |
3521 | lt_opt_process_env_append (p); | |
3522 | } | |
3523 | else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc) | |
3524 | { | |
3525 | lt_opt_process_env_append (argv[++i]); /* don't copy */ | |
3526 | } | |
3527 | else | |
3528 | lt_fatal ("%s missing required argument", env_append_opt); | |
3529 | continue; | |
3530 | } | |
3531 | if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0) | |
3532 | { | |
3533 | /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX | |
3534 | namespace, but it is not one of the ones we know about and | |
3535 | have already dealt with, above (inluding dump-script), then | |
3536 | report an error. Otherwise, targets might begin to believe | |
3537 | they are allowed to use options in the LTWRAPPER_OPTION_PREFIX | |
3538 | namespace. The first time any user complains about this, we'll | |
3539 | need to make LTWRAPPER_OPTION_PREFIX a configure-time option | |
3540 | or a configure.ac-settable value. | |
3541 | */ | |
3542 | lt_fatal ("Unrecognized option in %s namespace: '%s'", | |
3543 | ltwrapper_option_prefix, argv[i]); | |
3544 | } | |
3545 | /* otherwise ... */ | |
3546 | newargz[++newargc] = xstrdup (argv[i]); | |
3547 | } | |
3548 | newargz[++newargc] = NULL; | |
3549 | ||
3550 | LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>"))); | |
3770 | lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n", | |
3771 | nonnull (lt_argv_zero)); | |
3551 | 3772 | for (i = 0; i < newargc; i++) |
3552 | 3773 | { |
3553 | LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>"))); | |
3774 | lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n", | |
3775 | i, nonnull (newargz[i])); | |
3554 | 3776 | } |
3555 | 3777 | |
3556 | 3778 | EOF |
3559 | 3781 | mingw*) |
3560 | 3782 | cat <<"EOF" |
3561 | 3783 | /* execv doesn't actually work on mingw as expected on unix */ |
3784 | newargz = prepare_spawn (newargz); | |
3562 | 3785 | rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); |
3563 | 3786 | if (rval == -1) |
3564 | 3787 | { |
3565 | 3788 | /* failed to start process */ |
3566 | LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); | |
3789 | lt_debugprintf (__FILE__, __LINE__, | |
3790 | "(main) failed to launch target \"%s\": %s\n", | |
3791 | lt_argv_zero, nonnull (strerror (errno))); | |
3567 | 3792 | return 127; |
3568 | 3793 | } |
3569 | 3794 | return rval; |
3585 | 3810 | { |
3586 | 3811 | void *p = (void *) malloc (num); |
3587 | 3812 | if (!p) |
3588 | lt_fatal ("Memory exhausted"); | |
3813 | lt_fatal (__FILE__, __LINE__, "memory exhausted"); | |
3589 | 3814 | |
3590 | 3815 | return p; |
3591 | 3816 | } |
3619 | 3844 | { |
3620 | 3845 | struct stat st; |
3621 | 3846 | |
3622 | LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", | |
3623 | path ? (*path ? path : "EMPTY!") : "NULL!")); | |
3847 | lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n", | |
3848 | nonempty (path)); | |
3624 | 3849 | if ((!path) || (!*path)) |
3625 | 3850 | return 0; |
3626 | 3851 | |
3637 | 3862 | int rval = 0; |
3638 | 3863 | struct stat st; |
3639 | 3864 | |
3640 | LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", | |
3641 | path ? (*path ? path : "EMPTY!") : "NULL!")); | |
3865 | lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", | |
3866 | nonempty (path)); | |
3642 | 3867 | if ((!path) || (!*path)) |
3643 | 3868 | return 0; |
3644 | 3869 | |
3664 | 3889 | int tmp_len; |
3665 | 3890 | char *concat_name; |
3666 | 3891 | |
3667 | LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", | |
3668 | wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); | |
3892 | lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", | |
3893 | nonempty (wrapper)); | |
3669 | 3894 | |
3670 | 3895 | if ((wrapper == NULL) || (*wrapper == '\0')) |
3671 | 3896 | return NULL; |
3718 | 3943 | { |
3719 | 3944 | /* empty path: current directory */ |
3720 | 3945 | if (getcwd (tmp, LT_PATHMAX) == NULL) |
3721 | lt_fatal ("getcwd failed"); | |
3946 | lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", | |
3947 | nonnull (strerror (errno))); | |
3722 | 3948 | tmp_len = strlen (tmp); |
3723 | 3949 | concat_name = |
3724 | 3950 | XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); |
3743 | 3969 | } |
3744 | 3970 | /* Relative path | not found in path: prepend cwd */ |
3745 | 3971 | if (getcwd (tmp, LT_PATHMAX) == NULL) |
3746 | lt_fatal ("getcwd failed"); | |
3972 | lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", | |
3973 | nonnull (strerror (errno))); | |
3747 | 3974 | tmp_len = strlen (tmp); |
3748 | 3975 | concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); |
3749 | 3976 | memcpy (concat_name, tmp, tmp_len); |
3769 | 3996 | int has_symlinks = 0; |
3770 | 3997 | while (strlen (tmp_pathspec) && !has_symlinks) |
3771 | 3998 | { |
3772 | LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", | |
3773 | tmp_pathspec)); | |
3999 | lt_debugprintf (__FILE__, __LINE__, | |
4000 | "checking path component for symlinks: %s\n", | |
4001 | tmp_pathspec); | |
3774 | 4002 | if (lstat (tmp_pathspec, &s) == 0) |
3775 | 4003 | { |
3776 | 4004 | if (S_ISLNK (s.st_mode) != 0) |
3792 | 4020 | } |
3793 | 4021 | else |
3794 | 4022 | { |
3795 | char *errstr = strerror (errno); | |
3796 | lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); | |
4023 | lt_fatal (__FILE__, __LINE__, | |
4024 | "error accessing file \"%s\": %s", | |
4025 | tmp_pathspec, nonnull (strerror (errno))); | |
3797 | 4026 | } |
3798 | 4027 | } |
3799 | 4028 | XFREE (tmp_pathspec); |
3806 | 4035 | tmp_pathspec = realpath (pathspec, buf); |
3807 | 4036 | if (tmp_pathspec == 0) |
3808 | 4037 | { |
3809 | lt_fatal ("Could not follow symlinks for %s", pathspec); | |
4038 | lt_fatal (__FILE__, __LINE__, | |
4039 | "could not follow symlinks for %s", pathspec); | |
3810 | 4040 | } |
3811 | 4041 | return xstrdup (tmp_pathspec); |
3812 | 4042 | #endif |
3832 | 4062 | return str; |
3833 | 4063 | } |
3834 | 4064 | |
4065 | void | |
4066 | lt_debugprintf (const char *file, int line, const char *fmt, ...) | |
4067 | { | |
4068 | va_list args; | |
4069 | if (lt_debug) | |
4070 | { | |
4071 | (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); | |
4072 | va_start (args, fmt); | |
4073 | (void) vfprintf (stderr, fmt, args); | |
4074 | va_end (args); | |
4075 | } | |
4076 | } | |
4077 | ||
3835 | 4078 | static void |
3836 | lt_error_core (int exit_status, const char *mode, | |
4079 | lt_error_core (int exit_status, const char *file, | |
4080 | int line, const char *mode, | |
3837 | 4081 | const char *message, va_list ap) |
3838 | 4082 | { |
3839 | fprintf (stderr, "%s: %s: ", program_name, mode); | |
4083 | fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); | |
3840 | 4084 | vfprintf (stderr, message, ap); |
3841 | 4085 | fprintf (stderr, ".\n"); |
3842 | 4086 | |
3845 | 4089 | } |
3846 | 4090 | |
3847 | 4091 | void |
3848 | lt_fatal (const char *message, ...) | |
4092 | lt_fatal (const char *file, int line, const char *message, ...) | |
3849 | 4093 | { |
3850 | 4094 | va_list ap; |
3851 | 4095 | va_start (ap, message); |
3852 | lt_error_core (EXIT_FAILURE, "FATAL", message, ap); | |
4096 | lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); | |
3853 | 4097 | va_end (ap); |
4098 | } | |
4099 | ||
4100 | static const char * | |
4101 | nonnull (const char *s) | |
4102 | { | |
4103 | return s ? s : "(null)"; | |
4104 | } | |
4105 | ||
4106 | static const char * | |
4107 | nonempty (const char *s) | |
4108 | { | |
4109 | return (s && !*s) ? "(empty)" : nonnull (s); | |
3854 | 4110 | } |
3855 | 4111 | |
3856 | 4112 | void |
3857 | 4113 | lt_setenv (const char *name, const char *value) |
3858 | 4114 | { |
3859 | LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", | |
3860 | (name ? name : "<NULL>"), | |
3861 | (value ? value : "<NULL>"))); | |
4115 | lt_debugprintf (__FILE__, __LINE__, | |
4116 | "(lt_setenv) setting '%s' to '%s'\n", | |
4117 | nonnull (name), nonnull (value)); | |
3862 | 4118 | { |
3863 | 4119 | #ifdef HAVE_SETENV |
3864 | 4120 | /* always make a copy, for consistency with !HAVE_SETENV */ |
3903 | 4159 | return new_value; |
3904 | 4160 | } |
3905 | 4161 | |
3906 | int | |
3907 | lt_split_name_value (const char *arg, char** name, char** value) | |
3908 | { | |
3909 | const char *p; | |
3910 | int len; | |
3911 | if (!arg || !*arg) | |
3912 | return 1; | |
3913 | ||
3914 | p = strchr (arg, (int)'='); | |
3915 | ||
3916 | if (!p) | |
3917 | return 1; | |
3918 | ||
3919 | *value = xstrdup (++p); | |
3920 | ||
3921 | len = strlen (arg) - strlen (*value); | |
3922 | *name = XMALLOC (char, len); | |
3923 | strncpy (*name, arg, len-1); | |
3924 | (*name)[len - 1] = '\0'; | |
3925 | ||
3926 | return 0; | |
3927 | } | |
3928 | ||
3929 | void | |
3930 | lt_opt_process_env_set (const char *arg) | |
3931 | { | |
3932 | char *name = NULL; | |
3933 | char *value = NULL; | |
3934 | ||
3935 | if (lt_split_name_value (arg, &name, &value) != 0) | |
3936 | { | |
3937 | XFREE (name); | |
3938 | XFREE (value); | |
3939 | lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); | |
3940 | } | |
3941 | ||
3942 | lt_setenv (name, value); | |
3943 | XFREE (name); | |
3944 | XFREE (value); | |
3945 | } | |
3946 | ||
3947 | void | |
3948 | lt_opt_process_env_prepend (const char *arg) | |
3949 | { | |
3950 | char *name = NULL; | |
3951 | char *value = NULL; | |
3952 | char *new_value = NULL; | |
3953 | ||
3954 | if (lt_split_name_value (arg, &name, &value) != 0) | |
3955 | { | |
3956 | XFREE (name); | |
3957 | XFREE (value); | |
3958 | lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); | |
3959 | } | |
3960 | ||
3961 | new_value = lt_extend_str (getenv (name), value, 0); | |
3962 | lt_setenv (name, new_value); | |
3963 | XFREE (new_value); | |
3964 | XFREE (name); | |
3965 | XFREE (value); | |
3966 | } | |
3967 | ||
3968 | void | |
3969 | lt_opt_process_env_append (const char *arg) | |
3970 | { | |
3971 | char *name = NULL; | |
3972 | char *value = NULL; | |
3973 | char *new_value = NULL; | |
3974 | ||
3975 | if (lt_split_name_value (arg, &name, &value) != 0) | |
3976 | { | |
3977 | XFREE (name); | |
3978 | XFREE (value); | |
3979 | lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); | |
3980 | } | |
3981 | ||
3982 | new_value = lt_extend_str (getenv (name), value, 1); | |
3983 | lt_setenv (name, new_value); | |
3984 | XFREE (new_value); | |
3985 | XFREE (name); | |
3986 | XFREE (value); | |
3987 | } | |
3988 | ||
3989 | 4162 | void |
3990 | 4163 | lt_update_exe_path (const char *name, const char *value) |
3991 | 4164 | { |
3992 | LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", | |
3993 | (name ? name : "<NULL>"), | |
3994 | (value ? value : "<NULL>"))); | |
4165 | lt_debugprintf (__FILE__, __LINE__, | |
4166 | "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", | |
4167 | nonnull (name), nonnull (value)); | |
3995 | 4168 | |
3996 | 4169 | if (name && *name && value && *value) |
3997 | 4170 | { |
4010 | 4183 | void |
4011 | 4184 | lt_update_lib_path (const char *name, const char *value) |
4012 | 4185 | { |
4013 | LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", | |
4014 | (name ? name : "<NULL>"), | |
4015 | (value ? value : "<NULL>"))); | |
4186 | lt_debugprintf (__FILE__, __LINE__, | |
4187 | "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", | |
4188 | nonnull (name), nonnull (value)); | |
4016 | 4189 | |
4017 | 4190 | if (name && *name && value && *value) |
4018 | 4191 | { |
4022 | 4195 | } |
4023 | 4196 | } |
4024 | 4197 | |
4025 | ||
4198 | EOF | |
4199 | case $host_os in | |
4200 | mingw*) | |
4201 | cat <<"EOF" | |
4202 | ||
4203 | /* Prepares an argument vector before calling spawn(). | |
4204 | Note that spawn() does not by itself call the command interpreter | |
4205 | (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : | |
4206 | ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); | |
4207 | GetVersionEx(&v); | |
4208 | v.dwPlatformId == VER_PLATFORM_WIN32_NT; | |
4209 | }) ? "cmd.exe" : "command.com"). | |
4210 | Instead it simply concatenates the arguments, separated by ' ', and calls | |
4211 | CreateProcess(). We must quote the arguments since Win32 CreateProcess() | |
4212 | interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a | |
4213 | special way: | |
4214 | - Space and tab are interpreted as delimiters. They are not treated as | |
4215 | delimiters if they are surrounded by double quotes: "...". | |
4216 | - Unescaped double quotes are removed from the input. Their only effect is | |
4217 | that within double quotes, space and tab are treated like normal | |
4218 | characters. | |
4219 | - Backslashes not followed by double quotes are not special. | |
4220 | - But 2*n+1 backslashes followed by a double quote become | |
4221 | n backslashes followed by a double quote (n >= 0): | |
4222 | \" -> " | |
4223 | \\\" -> \" | |
4224 | \\\\\" -> \\" | |
4225 | */ | |
4226 | #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" | |
4227 | #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" | |
4228 | char ** | |
4229 | prepare_spawn (char **argv) | |
4230 | { | |
4231 | size_t argc; | |
4232 | char **new_argv; | |
4233 | size_t i; | |
4234 | ||
4235 | /* Count number of arguments. */ | |
4236 | for (argc = 0; argv[argc] != NULL; argc++) | |
4237 | ; | |
4238 | ||
4239 | /* Allocate new argument vector. */ | |
4240 | new_argv = XMALLOC (char *, argc + 1); | |
4241 | ||
4242 | /* Put quoted arguments into the new argument vector. */ | |
4243 | for (i = 0; i < argc; i++) | |
4244 | { | |
4245 | const char *string = argv[i]; | |
4246 | ||
4247 | if (string[0] == '\0') | |
4248 | new_argv[i] = xstrdup ("\"\""); | |
4249 | else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) | |
4250 | { | |
4251 | int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); | |
4252 | size_t length; | |
4253 | unsigned int backslashes; | |
4254 | const char *s; | |
4255 | char *quoted_string; | |
4256 | char *p; | |
4257 | ||
4258 | length = 0; | |
4259 | backslashes = 0; | |
4260 | if (quote_around) | |
4261 | length++; | |
4262 | for (s = string; *s != '\0'; s++) | |
4263 | { | |
4264 | char c = *s; | |
4265 | if (c == '"') | |
4266 | length += backslashes + 1; | |
4267 | length++; | |
4268 | if (c == '\\') | |
4269 | backslashes++; | |
4270 | else | |
4271 | backslashes = 0; | |
4272 | } | |
4273 | if (quote_around) | |
4274 | length += backslashes + 1; | |
4275 | ||
4276 | quoted_string = XMALLOC (char, length + 1); | |
4277 | ||
4278 | p = quoted_string; | |
4279 | backslashes = 0; | |
4280 | if (quote_around) | |
4281 | *p++ = '"'; | |
4282 | for (s = string; *s != '\0'; s++) | |
4283 | { | |
4284 | char c = *s; | |
4285 | if (c == '"') | |
4286 | { | |
4287 | unsigned int j; | |
4288 | for (j = backslashes + 1; j > 0; j--) | |
4289 | *p++ = '\\'; | |
4290 | } | |
4291 | *p++ = c; | |
4292 | if (c == '\\') | |
4293 | backslashes++; | |
4294 | else | |
4295 | backslashes = 0; | |
4296 | } | |
4297 | if (quote_around) | |
4298 | { | |
4299 | unsigned int j; | |
4300 | for (j = backslashes; j > 0; j--) | |
4301 | *p++ = '\\'; | |
4302 | *p++ = '"'; | |
4303 | } | |
4304 | *p = '\0'; | |
4305 | ||
4306 | new_argv[i] = quoted_string; | |
4307 | } | |
4308 | else | |
4309 | new_argv[i] = (char *) string; | |
4310 | } | |
4311 | new_argv[argc] = NULL; | |
4312 | ||
4313 | return new_argv; | |
4314 | } | |
4315 | EOF | |
4316 | ;; | |
4317 | esac | |
4318 | ||
4319 | cat <<"EOF" | |
4320 | void lt_dump_script (FILE* f) | |
4321 | { | |
4322 | EOF | |
4323 | func_emit_wrapper yes | | |
4324 | $SED -e 's/\([\\"]\)/\\\1/g' \ | |
4325 | -e 's/^/ fputs ("/' -e 's/$/\\n", f);/' | |
4326 | ||
4327 | cat <<"EOF" | |
4328 | } | |
4026 | 4329 | EOF |
4027 | 4330 | } |
4028 | 4331 | # end: func_emit_cwrapperexe_src |
4332 | ||
4333 | # func_win32_import_lib_p ARG | |
4334 | # True if ARG is an import lib, as indicated by $file_magic_cmd | |
4335 | func_win32_import_lib_p () | |
4336 | { | |
4337 | $opt_debug | |
4338 | case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in | |
4339 | *import*) : ;; | |
4340 | *) false ;; | |
4341 | esac | |
4342 | } | |
4029 | 4343 | |
4030 | 4344 | # func_mode_link arg... |
4031 | 4345 | func_mode_link () |
4071 | 4385 | new_inherited_linker_flags= |
4072 | 4386 | |
4073 | 4387 | avoid_version=no |
4388 | bindir= | |
4074 | 4389 | dlfiles= |
4075 | 4390 | dlprefiles= |
4076 | 4391 | dlself=no |
4163 | 4478 | esac |
4164 | 4479 | |
4165 | 4480 | case $prev in |
4481 | bindir) | |
4482 | bindir="$arg" | |
4483 | prev= | |
4484 | continue | |
4485 | ;; | |
4166 | 4486 | dlfiles|dlprefiles) |
4167 | 4487 | if test "$preload" = no; then |
4168 | 4488 | # Add the symbol object into the linking commands. |
4424 | 4744 | continue |
4425 | 4745 | ;; |
4426 | 4746 | |
4747 | -bindir) | |
4748 | prev=bindir | |
4749 | continue | |
4750 | ;; | |
4751 | ||
4427 | 4752 | -dlopen) |
4428 | 4753 | prev=dlfiles |
4429 | 4754 | continue |
4502 | 4827 | esac |
4503 | 4828 | case $host in |
4504 | 4829 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) |
4505 | testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` | |
4830 | testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` | |
4506 | 4831 | case :$dllsearchpath: in |
4507 | 4832 | *":$dir:"*) ;; |
4508 | 4833 | ::) dllsearchpath=$dir;; |
4521 | 4846 | -l*) |
4522 | 4847 | if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then |
4523 | 4848 | case $host in |
4524 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) | |
4849 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) | |
4525 | 4850 | # These systems don't actually have a C or math library (as such) |
4526 | 4851 | continue |
4527 | 4852 | ;; |
4707 | 5032 | for flag in $args; do |
4708 | 5033 | IFS="$save_ifs" |
4709 | 5034 | func_quote_for_eval "$flag" |
4710 | arg="$arg $wl$func_quote_for_eval_result" | |
5035 | arg="$arg $func_quote_for_eval_result" | |
4711 | 5036 | compiler_flags="$compiler_flags $func_quote_for_eval_result" |
4712 | 5037 | done |
4713 | 5038 | IFS="$save_ifs" |
4753 | 5078 | arg="$func_quote_for_eval_result" |
4754 | 5079 | ;; |
4755 | 5080 | |
4756 | # -64, -mips[0-9] enable 64-bit mode on the SGI compiler | |
4757 | # -r[0-9][0-9]* specifies the processor on the SGI compiler | |
4758 | # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler | |
4759 | # +DA*, +DD* enable 64-bit mode on the HP compiler | |
4760 | # -q* pass through compiler args for the IBM compiler | |
4761 | # -m*, -t[45]*, -txscale* pass through architecture-specific | |
4762 | # compiler args for GCC | |
4763 | # -F/path gives path to uninstalled frameworks, gcc on darwin | |
4764 | # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC | |
4765 | # @file GCC response files | |
5081 | # Flags to be passed through unchanged, with rationale: | |
5082 | # -64, -mips[0-9] enable 64-bit mode for the SGI compiler | |
5083 | # -r[0-9][0-9]* specify processor for the SGI compiler | |
5084 | # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler | |
5085 | # +DA*, +DD* enable 64-bit mode for the HP compiler | |
5086 | # -q* compiler args for the IBM compiler | |
5087 | # -m*, -t[45]*, -txscale* architecture-specific flags for GCC | |
5088 | # -F/path path to uninstalled frameworks, gcc on darwin | |
5089 | # -p, -pg, --coverage, -fprofile-* profiling flags for GCC | |
5090 | # @file GCC response files | |
5091 | # -tp=* Portland pgcc target processor selection | |
4766 | 5092 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ |
4767 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) | |
5093 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*) | |
4768 | 5094 | func_quote_for_eval "$arg" |
4769 | 5095 | arg="$func_quote_for_eval_result" |
4770 | 5096 | func_append compile_command " $arg" |
4924 | 5250 | |
4925 | 5251 | if test -n "$shlibpath_var"; then |
4926 | 5252 | # get the directories listed in $shlibpath_var |
4927 | eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` | |
5253 | eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\` | |
4928 | 5254 | else |
4929 | 5255 | shlib_search_path= |
4930 | 5256 | fi |
5047 | 5373 | # Collect preopened libtool deplibs, except any this library |
5048 | 5374 | # has declared as weak libs |
5049 | 5375 | for deplib in $dependency_libs; do |
5050 | deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` | |
5376 | func_basename "$deplib" | |
5377 | deplib_base=$func_basename_result | |
5051 | 5378 | case " $weak_libs " in |
5052 | 5379 | *" $deplib_base "*) ;; |
5053 | 5380 | *) deplibs="$deplibs $deplib" ;; |
5226 | 5553 | match_pattern*) |
5227 | 5554 | set dummy $deplibs_check_method; shift |
5228 | 5555 | match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` |
5229 | if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ | |
5556 | if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ | |
5230 | 5557 | | $EGREP "$match_pattern_regex" > /dev/null; then |
5231 | 5558 | valid_a_lib=yes |
5232 | 5559 | fi |
5236 | 5563 | ;; |
5237 | 5564 | esac |
5238 | 5565 | if test "$valid_a_lib" != yes; then |
5239 | $ECHO | |
5566 | echo | |
5240 | 5567 | $ECHO "*** Warning: Trying to link with static lib archive $deplib." |
5241 | $ECHO "*** I have the capability to make that library automatically link in when" | |
5242 | $ECHO "*** you link to this library. But I can only do this if you have a" | |
5243 | $ECHO "*** shared version of the library, which you do not appear to have" | |
5244 | $ECHO "*** because the file extensions .$libext of this argument makes me believe" | |
5245 | $ECHO "*** that it is just a static archive that I should not use here." | |
5568 | echo "*** I have the capability to make that library automatically link in when" | |
5569 | echo "*** you link to this library. But I can only do this if you have a" | |
5570 | echo "*** shared version of the library, which you do not appear to have" | |
5571 | echo "*** because the file extensions .$libext of this argument makes me believe" | |
5572 | echo "*** that it is just a static archive that I should not use here." | |
5246 | 5573 | else |
5247 | $ECHO | |
5574 | echo | |
5248 | 5575 | $ECHO "*** Warning: Linking the shared library $output against the" |
5249 | 5576 | $ECHO "*** static library $deplib is not portable!" |
5250 | 5577 | deplibs="$deplib $deplibs" |
5317 | 5644 | |
5318 | 5645 | # Convert "-framework foo" to "foo.ltframework" |
5319 | 5646 | if test -n "$inherited_linker_flags"; then |
5320 | tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` | |
5647 | tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` | |
5321 | 5648 | for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do |
5322 | 5649 | case " $new_inherited_linker_flags " in |
5323 | 5650 | *" $tmp_inherited_linker_flag "*) ;; |
5325 | 5652 | esac |
5326 | 5653 | done |
5327 | 5654 | fi |
5328 | dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | |
5655 | dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | |
5329 | 5656 | if test "$linkmode,$pass" = "lib,link" || |
5330 | 5657 | test "$linkmode,$pass" = "prog,scan" || |
5331 | 5658 | { test "$linkmode" != prog && test "$linkmode" != lib; }; then |
5579 | 5906 | fi |
5580 | 5907 | done |
5581 | 5908 | if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then |
5582 | $ECHO | |
5909 | echo | |
5583 | 5910 | if test "$linkmode" = prog; then |
5584 | 5911 | $ECHO "*** Warning: Linking the executable $output against the loadable module" |
5585 | 5912 | else |
5682 | 6009 | if test "X$dlopenmodule" != "X$lib"; then |
5683 | 6010 | $ECHO "*** Warning: lib $linklib is a module, not a shared library" |
5684 | 6011 | if test -z "$old_library" ; then |
5685 | $ECHO | |
5686 | $ECHO "*** And there doesn't seem to be a static archive available" | |
5687 | $ECHO "*** The link will probably fail, sorry" | |
6012 | echo | |
6013 | echo "*** And there doesn't seem to be a static archive available" | |
6014 | echo "*** The link will probably fail, sorry" | |
5688 | 6015 | else |
5689 | 6016 | add="$dir/$old_library" |
5690 | 6017 | fi |
5824 | 6151 | |
5825 | 6152 | # Just print a warning and add the library to dependency_libs so |
5826 | 6153 | # that the program can be linked against the static library. |
5827 | $ECHO | |
6154 | echo | |
5828 | 6155 | $ECHO "*** Warning: This system can not link to static lib archive $lib." |
5829 | $ECHO "*** I have the capability to make that library automatically link in when" | |
5830 | $ECHO "*** you link to this library. But I can only do this if you have a" | |
5831 | $ECHO "*** shared version of the library, which you do not appear to have." | |
6156 | echo "*** I have the capability to make that library automatically link in when" | |
6157 | echo "*** you link to this library. But I can only do this if you have a" | |
6158 | echo "*** shared version of the library, which you do not appear to have." | |
5832 | 6159 | if test "$module" = yes; then |
5833 | $ECHO "*** But as you try to build a module library, libtool will still create " | |
5834 | $ECHO "*** a static module, that should work as long as the dlopening application" | |
5835 | $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." | |
6160 | echo "*** But as you try to build a module library, libtool will still create " | |
6161 | echo "*** a static module, that should work as long as the dlopening application" | |
6162 | echo "*** is linked with the -dlopen flag to resolve symbols at runtime." | |
5836 | 6163 | if test -z "$global_symbol_pipe"; then |
5837 | $ECHO | |
5838 | $ECHO "*** However, this would only work if libtool was able to extract symbol" | |
5839 | $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" | |
5840 | $ECHO "*** not find such a program. So, this module is probably useless." | |
5841 | $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." | |
6164 | echo | |
6165 | echo "*** However, this would only work if libtool was able to extract symbol" | |
6166 | echo "*** lists from a program, using \`nm' or equivalent, but libtool could" | |
6167 | echo "*** not find such a program. So, this module is probably useless." | |
6168 | echo "*** \`nm' from GNU binutils and a full rebuild may help." | |
5842 | 6169 | fi |
5843 | 6170 | if test "$build_old_libs" = no; then |
5844 | 6171 | build_libtool_libs=module |
5892 | 6219 | if test "$link_all_deplibs" != no; then |
5893 | 6220 | # Add the search paths of all dependency libraries |
5894 | 6221 | for deplib in $dependency_libs; do |
6222 | path= | |
5895 | 6223 | case $deplib in |
5896 | 6224 | -L*) path="$deplib" ;; |
5897 | 6225 | *.la) |
5957 | 6285 | compile_deplibs="$new_inherited_linker_flags $compile_deplibs" |
5958 | 6286 | finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" |
5959 | 6287 | else |
5960 | compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | |
6288 | compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | |
5961 | 6289 | fi |
5962 | 6290 | fi |
5963 | 6291 | dependency_libs="$newdependency_libs" |
6125 | 6453 | if test "$deplibs_check_method" != pass_all; then |
6126 | 6454 | func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" |
6127 | 6455 | else |
6128 | $ECHO | |
6456 | echo | |
6129 | 6457 | $ECHO "*** Warning: Linking the shared library $output against the non-libtool" |
6130 | 6458 | $ECHO "*** objects $objs is not portable!" |
6131 | 6459 | libobjs="$libobjs $objs" |
6193 | 6521 | age="$number_minor" |
6194 | 6522 | revision="$number_revision" |
6195 | 6523 | ;; |
6196 | freebsd-aout|freebsd-elf|sunos) | |
6524 | freebsd-aout|freebsd-elf|qnx|sunos) | |
6197 | 6525 | current="$number_major" |
6198 | 6526 | revision="$number_minor" |
6199 | 6527 | age="0" |
6427 | 6755 | oldlibs="$oldlibs $output_objdir/$libname.$libext" |
6428 | 6756 | |
6429 | 6757 | # Transform .lo files to .o files. |
6430 | oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` | |
6758 | oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` | |
6431 | 6759 | fi |
6432 | 6760 | |
6433 | 6761 | # Eliminate all temporary directories. |
6434 | 6762 | #for path in $notinst_path; do |
6435 | # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` | |
6436 | # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` | |
6437 | # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` | |
6763 | # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` | |
6764 | # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` | |
6765 | # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` | |
6438 | 6766 | #done |
6439 | 6767 | |
6440 | 6768 | if test -n "$xrpath"; then |
6475 | 6803 | if test "$build_libtool_libs" = yes; then |
6476 | 6804 | if test -n "$rpath"; then |
6477 | 6805 | case $host in |
6478 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) | |
6806 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) | |
6479 | 6807 | # these systems don't actually have a c library (as such)! |
6480 | 6808 | ;; |
6481 | 6809 | *-*-rhapsody* | *-*-darwin1.[012]) |
6560 | 6888 | newdeplibs="$newdeplibs $i" |
6561 | 6889 | else |
6562 | 6890 | droppeddeps=yes |
6563 | $ECHO | |
6891 | echo | |
6564 | 6892 | $ECHO "*** Warning: dynamic linker does not accept needed library $i." |
6565 | $ECHO "*** I have the capability to make that library automatically link in when" | |
6566 | $ECHO "*** you link to this library. But I can only do this if you have a" | |
6567 | $ECHO "*** shared version of the library, which I believe you do not have" | |
6568 | $ECHO "*** because a test_compile did reveal that the linker did not use it for" | |
6569 | $ECHO "*** its dynamic dependency list that programs get resolved with at runtime." | |
6893 | echo "*** I have the capability to make that library automatically link in when" | |
6894 | echo "*** you link to this library. But I can only do this if you have a" | |
6895 | echo "*** shared version of the library, which I believe you do not have" | |
6896 | echo "*** because a test_compile did reveal that the linker did not use it for" | |
6897 | echo "*** its dynamic dependency list that programs get resolved with at runtime." | |
6570 | 6898 | fi |
6571 | 6899 | fi |
6572 | 6900 | ;; |
6603 | 6931 | newdeplibs="$newdeplibs $i" |
6604 | 6932 | else |
6605 | 6933 | droppeddeps=yes |
6606 | $ECHO | |
6934 | echo | |
6607 | 6935 | $ECHO "*** Warning: dynamic linker does not accept needed library $i." |
6608 | $ECHO "*** I have the capability to make that library automatically link in when" | |
6609 | $ECHO "*** you link to this library. But I can only do this if you have a" | |
6610 | $ECHO "*** shared version of the library, which you do not appear to have" | |
6611 | $ECHO "*** because a test_compile did reveal that the linker did not use this one" | |
6612 | $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime." | |
6936 | echo "*** I have the capability to make that library automatically link in when" | |
6937 | echo "*** you link to this library. But I can only do this if you have a" | |
6938 | echo "*** shared version of the library, which you do not appear to have" | |
6939 | echo "*** because a test_compile did reveal that the linker did not use this one" | |
6940 | echo "*** as a dynamic dependency that programs can get resolved with at runtime." | |
6613 | 6941 | fi |
6614 | 6942 | fi |
6615 | 6943 | else |
6616 | 6944 | droppeddeps=yes |
6617 | $ECHO | |
6945 | echo | |
6618 | 6946 | $ECHO "*** Warning! Library $i is needed by this library but I was not able to" |
6619 | $ECHO "*** make it link in! You will probably need to install it or some" | |
6620 | $ECHO "*** library that it depends on before this library will be fully" | |
6621 | $ECHO "*** functional. Installing it before continuing would be even better." | |
6947 | echo "*** make it link in! You will probably need to install it or some" | |
6948 | echo "*** library that it depends on before this library will be fully" | |
6949 | echo "*** functional. Installing it before continuing would be even better." | |
6622 | 6950 | fi |
6623 | 6951 | ;; |
6624 | 6952 | *) |
6664 | 6992 | potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` |
6665 | 6993 | case $potliblink in |
6666 | 6994 | [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; |
6667 | *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; | |
6995 | *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; | |
6668 | 6996 | esac |
6669 | 6997 | done |
6670 | 6998 | if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | |
6679 | 7007 | fi |
6680 | 7008 | if test -n "$a_deplib" ; then |
6681 | 7009 | droppeddeps=yes |
6682 | $ECHO | |
7010 | echo | |
6683 | 7011 | $ECHO "*** Warning: linker path does not have real file for library $a_deplib." |
6684 | $ECHO "*** I have the capability to make that library automatically link in when" | |
6685 | $ECHO "*** you link to this library. But I can only do this if you have a" | |
6686 | $ECHO "*** shared version of the library, which you do not appear to have" | |
6687 | $ECHO "*** because I did check the linker path looking for a file starting" | |
7012 | echo "*** I have the capability to make that library automatically link in when" | |
7013 | echo "*** you link to this library. But I can only do this if you have a" | |
7014 | echo "*** shared version of the library, which you do not appear to have" | |
7015 | echo "*** because I did check the linker path looking for a file starting" | |
6688 | 7016 | if test -z "$potlib" ; then |
6689 | 7017 | $ECHO "*** with $libname but no candidates were found. (...for file magic test)" |
6690 | 7018 | else |
6722 | 7050 | potential_libs=`ls $i/$libname[.-]* 2>/dev/null` |
6723 | 7051 | for potent_lib in $potential_libs; do |
6724 | 7052 | potlib="$potent_lib" # see symlink-check above in file_magic test |
6725 | if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ | |
7053 | if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ | |
6726 | 7054 | $EGREP "$match_pattern_regex" > /dev/null; then |
6727 | 7055 | newdeplibs="$newdeplibs $a_deplib" |
6728 | 7056 | a_deplib="" |
6733 | 7061 | fi |
6734 | 7062 | if test -n "$a_deplib" ; then |
6735 | 7063 | droppeddeps=yes |
6736 | $ECHO | |
7064 | echo | |
6737 | 7065 | $ECHO "*** Warning: linker path does not have real file for library $a_deplib." |
6738 | $ECHO "*** I have the capability to make that library automatically link in when" | |
6739 | $ECHO "*** you link to this library. But I can only do this if you have a" | |
6740 | $ECHO "*** shared version of the library, which you do not appear to have" | |
6741 | $ECHO "*** because I did check the linker path looking for a file starting" | |
7066 | echo "*** I have the capability to make that library automatically link in when" | |
7067 | echo "*** you link to this library. But I can only do this if you have a" | |
7068 | echo "*** shared version of the library, which you do not appear to have" | |
7069 | echo "*** because I did check the linker path looking for a file starting" | |
6742 | 7070 | if test -z "$potlib" ; then |
6743 | 7071 | $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" |
6744 | 7072 | else |
6756 | 7084 | ;; |
6757 | 7085 | none | unknown | *) |
6758 | 7086 | newdeplibs="" |
6759 | tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ | |
6760 | -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` | |
7087 | tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` | |
6761 | 7088 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
6762 | 7089 | for i in $predeps $postdeps ; do |
6763 | 7090 | # can't use Xsed below, because $i might contain '/' |
6764 | tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` | |
7091 | tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"` | |
6765 | 7092 | done |
6766 | 7093 | fi |
6767 | if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | | |
6768 | $GREP . >/dev/null; then | |
6769 | $ECHO | |
7094 | case $tmp_deplibs in | |
7095 | *[!\ \ ]*) | |
7096 | echo | |
6770 | 7097 | if test "X$deplibs_check_method" = "Xnone"; then |
6771 | $ECHO "*** Warning: inter-library dependencies are not supported in this platform." | |
7098 | echo "*** Warning: inter-library dependencies are not supported in this platform." | |
6772 | 7099 | else |
6773 | $ECHO "*** Warning: inter-library dependencies are not known to be supported." | |
7100 | echo "*** Warning: inter-library dependencies are not known to be supported." | |
6774 | 7101 | fi |
6775 | $ECHO "*** All declared inter-library dependencies are being dropped." | |
7102 | echo "*** All declared inter-library dependencies are being dropped." | |
6776 | 7103 | droppeddeps=yes |
6777 | fi | |
7104 | ;; | |
7105 | esac | |
6778 | 7106 | ;; |
6779 | 7107 | esac |
6780 | 7108 | versuffix=$versuffix_save |
6786 | 7114 | case $host in |
6787 | 7115 | *-*-rhapsody* | *-*-darwin1.[012]) |
6788 | 7116 | # On Rhapsody replace the C library with the System framework |
6789 | newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` | |
7117 | newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` | |
6790 | 7118 | ;; |
6791 | 7119 | esac |
6792 | 7120 | |
6793 | 7121 | if test "$droppeddeps" = yes; then |
6794 | 7122 | if test "$module" = yes; then |
6795 | $ECHO | |
6796 | $ECHO "*** Warning: libtool could not satisfy all declared inter-library" | |
7123 | echo | |
7124 | echo "*** Warning: libtool could not satisfy all declared inter-library" | |
6797 | 7125 | $ECHO "*** dependencies of module $libname. Therefore, libtool will create" |
6798 | $ECHO "*** a static module, that should work as long as the dlopening" | |
6799 | $ECHO "*** application is linked with the -dlopen flag." | |
7126 | echo "*** a static module, that should work as long as the dlopening" | |
7127 | echo "*** application is linked with the -dlopen flag." | |
6800 | 7128 | if test -z "$global_symbol_pipe"; then |
6801 | $ECHO | |
6802 | $ECHO "*** However, this would only work if libtool was able to extract symbol" | |
6803 | $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" | |
6804 | $ECHO "*** not find such a program. So, this module is probably useless." | |
6805 | $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." | |
7129 | echo | |
7130 | echo "*** However, this would only work if libtool was able to extract symbol" | |
7131 | echo "*** lists from a program, using \`nm' or equivalent, but libtool could" | |
7132 | echo "*** not find such a program. So, this module is probably useless." | |
7133 | echo "*** \`nm' from GNU binutils and a full rebuild may help." | |
6806 | 7134 | fi |
6807 | 7135 | if test "$build_old_libs" = no; then |
6808 | 7136 | oldlibs="$output_objdir/$libname.$libext" |
6812 | 7140 | build_libtool_libs=no |
6813 | 7141 | fi |
6814 | 7142 | else |
6815 | $ECHO "*** The inter-library dependencies that have been dropped here will be" | |
6816 | $ECHO "*** automatically added whenever a program is linked with this library" | |
6817 | $ECHO "*** or is declared to -dlopen it." | |
7143 | echo "*** The inter-library dependencies that have been dropped here will be" | |
7144 | echo "*** automatically added whenever a program is linked with this library" | |
7145 | echo "*** or is declared to -dlopen it." | |
6818 | 7146 | |
6819 | 7147 | if test "$allow_undefined" = no; then |
6820 | $ECHO | |
6821 | $ECHO "*** Since this library must not contain undefined symbols," | |
6822 | $ECHO "*** because either the platform does not support them or" | |
6823 | $ECHO "*** it was explicitly requested with -no-undefined," | |
6824 | $ECHO "*** libtool will only create a static version of it." | |
7148 | echo | |
7149 | echo "*** Since this library must not contain undefined symbols," | |
7150 | echo "*** because either the platform does not support them or" | |
7151 | echo "*** it was explicitly requested with -no-undefined," | |
7152 | echo "*** libtool will only create a static version of it." | |
6825 | 7153 | if test "$build_old_libs" = no; then |
6826 | 7154 | oldlibs="$output_objdir/$libname.$libext" |
6827 | 7155 | build_libtool_libs=module |
6838 | 7166 | # Time to change all our "foo.ltframework" stuff back to "-framework foo" |
6839 | 7167 | case $host in |
6840 | 7168 | *-*-darwin*) |
6841 | newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | |
6842 | new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | |
6843 | deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | |
7169 | newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | |
7170 | new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | |
7171 | deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | |
6844 | 7172 | ;; |
6845 | 7173 | esac |
6846 | 7174 | |
6962 | 7290 | done |
6963 | 7291 | |
6964 | 7292 | # Use standard objects if they are pic |
6965 | test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` | |
7293 | test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` | |
6966 | 7294 | test "X$libobjs" = "X " && libobjs= |
6967 | 7295 | |
6968 | 7296 | delfiles= |
7028 | 7356 | if test -n "$export_symbols" && test -n "$include_expsyms"; then |
7029 | 7357 | tmp_export_symbols="$export_symbols" |
7030 | 7358 | test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" |
7031 | $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' | |
7359 | $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' | |
7032 | 7360 | fi |
7033 | 7361 | |
7034 | 7362 | if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then |
7129 | 7457 | save_libobjs=$libobjs |
7130 | 7458 | fi |
7131 | 7459 | save_output=$output |
7132 | output_la=`$ECHO "X$output" | $Xsed -e "$basename"` | |
7460 | func_basename "$output" | |
7461 | output_la=$func_basename_result | |
7133 | 7462 | |
7134 | 7463 | # Clear the reloadable object creation command queue and |
7135 | 7464 | # initialize k to one. |
7142 | 7471 | if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then |
7143 | 7472 | output=${output_objdir}/${output_la}.lnkscript |
7144 | 7473 | func_verbose "creating GNU ld script: $output" |
7145 | $ECHO 'INPUT (' > $output | |
7474 | echo 'INPUT (' > $output | |
7146 | 7475 | for obj in $save_libobjs |
7147 | 7476 | do |
7148 | 7477 | $ECHO "$obj" >> $output |
7149 | 7478 | done |
7150 | $ECHO ')' >> $output | |
7479 | echo ')' >> $output | |
7151 | 7480 | delfiles="$delfiles $output" |
7152 | 7481 | elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then |
7153 | 7482 | output=${output_objdir}/${output_la}.lnk |
7189 | 7518 | # command to the queue. |
7190 | 7519 | if test "$k" -eq 1 ; then |
7191 | 7520 | # The first file doesn't have a previous command to add. |
7192 | eval concat_cmds=\"$reload_cmds $objlist $last_robj\" | |
7521 | reload_objs=$objlist | |
7522 | eval concat_cmds=\"$reload_cmds\" | |
7193 | 7523 | else |
7194 | 7524 | # All subsequent reloadable object files will link in |
7195 | 7525 | # the last one created. |
7196 | eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" | |
7526 | reload_objs="$objlist $last_robj" | |
7527 | eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" | |
7197 | 7528 | fi |
7198 | 7529 | last_robj=$output_objdir/$output_la-${k}.$objext |
7199 | 7530 | func_arith $k + 1 |
7200 | 7531 | k=$func_arith_result |
7201 | 7532 | output=$output_objdir/$output_la-${k}.$objext |
7202 | objlist=$obj | |
7533 | objlist=" $obj" | |
7203 | 7534 | func_len " $last_robj" |
7204 | 7535 | func_arith $len0 + $func_len_result |
7205 | 7536 | len=$func_arith_result |
7209 | 7540 | # reloadable object file. All subsequent reloadable object |
7210 | 7541 | # files will link in the last one created. |
7211 | 7542 | test -z "$concat_cmds" || concat_cmds=$concat_cmds~ |
7212 | eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" | |
7543 | reload_objs="$objlist $last_robj" | |
7544 | eval concat_cmds=\"\${concat_cmds}$reload_cmds\" | |
7213 | 7545 | if test -n "$last_robj"; then |
7214 | 7546 | eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" |
7215 | 7547 | fi |
7268 | 7600 | if test -n "$export_symbols" && test -n "$include_expsyms"; then |
7269 | 7601 | tmp_export_symbols="$export_symbols" |
7270 | 7602 | test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" |
7271 | $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' | |
7603 | $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' | |
7272 | 7604 | fi |
7273 | 7605 | |
7274 | 7606 | if test -n "$orig_export_symbols"; then |
7433 | 7765 | if test -n "$convenience"; then |
7434 | 7766 | if test -n "$whole_archive_flag_spec"; then |
7435 | 7767 | eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" |
7436 | reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` | |
7768 | reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` | |
7437 | 7769 | else |
7438 | 7770 | gentop="$output_objdir/${obj}x" |
7439 | 7771 | generated="$generated $gentop" |
7444 | 7776 | fi |
7445 | 7777 | |
7446 | 7778 | # Create the old-style object. |
7447 | reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test | |
7779 | reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test | |
7448 | 7780 | |
7449 | 7781 | output="$obj" |
7450 | 7782 | func_execute_cmds "$reload_cmds" 'exit $?' |
7504 | 7836 | case $host in |
7505 | 7837 | *-*-rhapsody* | *-*-darwin1.[012]) |
7506 | 7838 | # On Rhapsody replace the C library is the System framework |
7507 | compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` | |
7508 | finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` | |
7839 | compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` | |
7840 | finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` | |
7509 | 7841 | ;; |
7510 | 7842 | esac |
7511 | 7843 | |
7522 | 7854 | esac |
7523 | 7855 | fi |
7524 | 7856 | # Time to change all our "foo.ltframework" stuff back to "-framework foo" |
7525 | compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | |
7526 | finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` | |
7857 | compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | |
7858 | finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` | |
7527 | 7859 | ;; |
7528 | 7860 | esac |
7529 | 7861 | |
7660 | 7992 | |
7661 | 7993 | if test -n "$libobjs" && test "$build_old_libs" = yes; then |
7662 | 7994 | # Transform all the library objects into standard objects. |
7663 | compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` | |
7664 | finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` | |
7995 | compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` | |
7996 | finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` | |
7665 | 7997 | fi |
7666 | 7998 | |
7667 | 7999 | func_generate_dlsyms "$outputname" "@PROGRAM@" "no" |
7673 | 8005 | |
7674 | 8006 | wrappers_required=yes |
7675 | 8007 | case $host in |
8008 | *cegcc* | *mingw32ce*) | |
8009 | # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. | |
8010 | wrappers_required=no | |
8011 | ;; | |
7676 | 8012 | *cygwin* | *mingw* ) |
7677 | 8013 | if test "$build_libtool_libs" != yes; then |
7678 | 8014 | wrappers_required=no |
7679 | 8015 | fi |
7680 | ;; | |
7681 | *cegcc) | |
7682 | # Disable wrappers for cegcc, we are cross compiling anyway. | |
7683 | wrappers_required=no | |
7684 | 8016 | ;; |
7685 | 8017 | *) |
7686 | 8018 | if test "$need_relink" = no || test "$build_libtool_libs" != yes; then |
7690 | 8022 | esac |
7691 | 8023 | if test "$wrappers_required" = no; then |
7692 | 8024 | # Replace the output file specification. |
7693 | compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` | |
8025 | compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` | |
7694 | 8026 | link_command="$compile_command$compile_rpath" |
7695 | 8027 | |
7696 | 8028 | # We have no uninstalled library dependencies, so finalize right now. |
7737 | 8069 | # We don't need to create a wrapper script. |
7738 | 8070 | link_command="$compile_var$compile_command$compile_rpath" |
7739 | 8071 | # Replace the output file specification. |
7740 | link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` | |
8072 | link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` | |
7741 | 8073 | # Delete the old output file. |
7742 | 8074 | $opt_dry_run || $RM $output |
7743 | 8075 | # Link the executable and exit |
7756 | 8088 | if test "$fast_install" != no; then |
7757 | 8089 | link_command="$finalize_var$compile_command$finalize_rpath" |
7758 | 8090 | if test "$fast_install" = yes; then |
7759 | relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` | |
8091 | relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` | |
7760 | 8092 | else |
7761 | 8093 | # fast_install is set to needless |
7762 | 8094 | relink_command= |
7768 | 8100 | fi |
7769 | 8101 | |
7770 | 8102 | # Replace the output file specification. |
7771 | link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` | |
8103 | link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` | |
7772 | 8104 | |
7773 | 8105 | # Delete the old output files. |
7774 | 8106 | $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname |
7792 | 8124 | fi |
7793 | 8125 | done |
7794 | 8126 | relink_command="(cd `pwd`; $relink_command)" |
7795 | relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` | |
7796 | fi | |
7797 | ||
7798 | # Quote $ECHO for shipping. | |
7799 | if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then | |
7800 | case $progpath in | |
7801 | [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; | |
7802 | *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; | |
7803 | esac | |
7804 | qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` | |
7805 | else | |
7806 | qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` | |
8127 | relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` | |
7807 | 8128 | fi |
7808 | 8129 | |
7809 | 8130 | # Only actually do things if not in dry run mode. |
7924 | 8245 | done | sort | sort -uc >/dev/null 2>&1); then |
7925 | 8246 | : |
7926 | 8247 | else |
7927 | $ECHO "copying selected object files to avoid basename conflicts..." | |
8248 | echo "copying selected object files to avoid basename conflicts..." | |
7928 | 8249 | gentop="$output_objdir/${outputname}x" |
7929 | 8250 | generated="$generated $gentop" |
7930 | 8251 | func_mkdir_p "$gentop" |
8035 | 8356 | done |
8036 | 8357 | # Quote the link command for shipping. |
8037 | 8358 | relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" |
8038 | relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` | |
8359 | relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` | |
8039 | 8360 | if test "$hardcode_automatic" = yes ; then |
8040 | 8361 | relink_command= |
8041 | 8362 | fi |
8120 | 8441 | fi |
8121 | 8442 | $RM $output |
8122 | 8443 | # place dlname in correct position for cygwin |
8444 | # In fact, it would be nice if we could use this code for all target | |
8445 | # systems that can't hard-code library paths into their executables | |
8446 | # and that have no shared library path variable independent of PATH, | |
8447 | # but it turns out we can't easily determine that from inspecting | |
8448 | # libtool variables, so we have to hard-code the OSs to which it | |
8449 | # applies here; at the moment, that means platforms that use the PE | |
8450 | # object format with DLL files. See the long comment at the top of | |
8451 | # tests/bindir.at for full details. | |
8123 | 8452 | tdlname=$dlname |
8124 | 8453 | case $host,$output,$installed,$module,$dlname in |
8125 | *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; | |
8454 | *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) | |
8455 | # If a -bindir argument was supplied, place the dll there. | |
8456 | if test "x$bindir" != x ; | |
8457 | then | |
8458 | func_relative_path "$install_libdir" "$bindir" | |
8459 | tdlname=$func_relative_path_result$dlname | |
8460 | else | |
8461 | # Otherwise fall back on heuristic. | |
8462 | tdlname=../bin/$dlname | |
8463 | fi | |
8464 | ;; | |
8126 | 8465 | esac |
8127 | 8466 | $ECHO > $output "\ |
8128 | 8467 | # $outputname - a libtool library file |
63 | 63 | $(NULL) |
64 | 64 | |
65 | 65 | ibus_setup_input_pad_CFLAGS = \ |
66 | $(GTK2_CFLAGS) \ | |
67 | 66 | $(IBUS_CFLAGS) \ |
68 | 67 | $(INPUT_PAD_CFLAGS) \ |
69 | 68 | $(NULL) |
73 | 72 | |
74 | 73 | ibus_setup_input_pad_LDADD = \ |
75 | 74 | $(builddir)/libiconfig.la \ |
76 | $(GTK2_LIBS) \ | |
77 | 75 | $(IBUS_LIBS) \ |
78 | 76 | $(INPUT_PAD_LIBS) \ |
79 | 77 | $(NULL) |
80 | 78 | |
79 | if HAVE_GTK3 | |
80 | ibus_setup_input_pad_CFLAGS += $(GTK3_CFLAGS) | |
81 | ibus_setup_input_pad_LDADD += $(GTK3_LIBS) | |
82 | else | |
83 | ibus_setup_input_pad_CFLAGS += $(GTK2_CFLAGS) | |
84 | ibus_setup_input_pad_LDADD += $(GTK2_LIBS) | |
85 | endif | |
81 | 86 | |
82 | 87 | EXTRA_DIST = \ |
83 | 88 | setup-gtk2.ui \ |
57 | 57 | build_triplet = @build@ |
58 | 58 | host_triplet = @host@ |
59 | 59 | libexec_PROGRAMS = ibus-setup-input-pad$(EXEEXT) |
60 | @HAVE_GTK3_TRUE@am__append_1 = $(GTK3_CFLAGS) | |
61 | @HAVE_GTK3_TRUE@am__append_2 = $(GTK3_LIBS) | |
62 | @HAVE_GTK3_FALSE@am__append_3 = $(GTK2_CFLAGS) | |
63 | @HAVE_GTK3_FALSE@am__append_4 = $(GTK2_LIBS) | |
60 | 64 | subdir = setup |
61 | 65 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in |
62 | 66 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
81 | 85 | am_ibus_setup_input_pad_OBJECTS = ibus_setup_input_pad-main.$(OBJEXT) \ |
82 | 86 | ibus_setup_input_pad-setup-gtk2.$(OBJEXT) |
83 | 87 | ibus_setup_input_pad_OBJECTS = $(am_ibus_setup_input_pad_OBJECTS) |
88 | @HAVE_GTK3_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) | |
89 | @HAVE_GTK3_FALSE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) | |
84 | 90 | ibus_setup_input_pad_DEPENDENCIES = $(builddir)/libiconfig.la \ |
85 | 91 | $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ |
86 | $(am__DEPENDENCIES_1) | |
92 | $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_3) | |
87 | 93 | ibus_setup_input_pad_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ |
88 | 94 | $(LIBTOOLFLAGS) --mode=link $(CCLD) \ |
89 | 95 | $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) \ |
174 | 180 | GREP = @GREP@ |
175 | 181 | GTK2_CFLAGS = @GTK2_CFLAGS@ |
176 | 182 | GTK2_LIBS = @GTK2_LIBS@ |
183 | GTK3_CFLAGS = @GTK3_CFLAGS@ | |
184 | GTK3_LIBS = @GTK3_LIBS@ | |
177 | 185 | IBUS_CFLAGS = @IBUS_CFLAGS@ |
178 | 186 | IBUS_LIBS = @IBUS_LIBS@ |
179 | 187 | INPUT_PAD_CFLAGS = @INPUT_PAD_CFLAGS@ |
219 | 227 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
220 | 228 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
221 | 229 | PKG_CONFIG = @PKG_CONFIG@ |
230 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
231 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
222 | 232 | POFILES = @POFILES@ |
223 | 233 | POSUB = @POSUB@ |
224 | 234 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ |
269 | 279 | libinput_pad_VERSION = @libinput_pad_VERSION@ |
270 | 280 | localedir = @localedir@ |
271 | 281 | localstatedir = @localstatedir@ |
272 | lt_ECHO = @lt_ECHO@ | |
273 | 282 | mandir = @mandir@ |
274 | 283 | mkdir_p = @mkdir_p@ |
275 | 284 | oldincludedir = @oldincludedir@ |
326 | 335 | setup-gtk2.h \ |
327 | 336 | $(NULL) |
328 | 337 | |
329 | ibus_setup_input_pad_CFLAGS = \ | |
330 | $(GTK2_CFLAGS) \ | |
331 | $(IBUS_CFLAGS) \ | |
332 | $(INPUT_PAD_CFLAGS) \ | |
333 | $(NULL) | |
334 | ||
338 | ibus_setup_input_pad_CFLAGS = $(IBUS_CFLAGS) $(INPUT_PAD_CFLAGS) \ | |
339 | $(NULL) $(am__append_1) $(am__append_3) | |
335 | 340 | ibus_setup_input_pad_LDFLAGS = \ |
336 | 341 | $(NULL) |
337 | 342 | |
338 | ibus_setup_input_pad_LDADD = \ | |
339 | $(builddir)/libiconfig.la \ | |
340 | $(GTK2_LIBS) \ | |
341 | $(IBUS_LIBS) \ | |
342 | $(INPUT_PAD_LIBS) \ | |
343 | $(NULL) | |
344 | ||
343 | ibus_setup_input_pad_LDADD = $(builddir)/libiconfig.la $(IBUS_LIBS) \ | |
344 | $(INPUT_PAD_LIBS) $(NULL) $(am__append_2) $(am__append_4) | |
345 | 345 | EXTRA_DIST = \ |
346 | 346 | setup-gtk2.ui \ |
347 | 347 | $(NULL) |
140 | 140 | |
141 | 141 | /* currently this is a static function due to ibus_bus_get_config */ |
142 | 142 | static IBusInputPadConfig * |
143 | ibus_input_pad_config_new (IBusConnection *connection) | |
143 | ibus_input_pad_config_new (GDBusConnection *connection) | |
144 | 144 | { |
145 | 145 | GObject *obj; |
146 | 146 | |
176 | 176 | int *value_intp) |
177 | 177 | { |
178 | 178 | IBusConfig *ibus_config; |
179 | GValue value = {0, }; | |
180 | ||
181 | g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE); | |
182 | g_return_val_if_fail (config->priv != NULL, FALSE); | |
183 | ||
184 | ibus_config = config->priv->config; | |
185 | if (ibus_config_get_value (ibus_config, section, name, &value)) { | |
179 | GVariant *value = NULL; | |
180 | ||
181 | g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE); | |
182 | g_return_val_if_fail (config->priv != NULL, FALSE); | |
183 | ||
184 | ibus_config = config->priv->config; | |
185 | if ((value = ibus_config_get_value (ibus_config, section, name)) != NULL) { | |
186 | 186 | if (value_intp) { |
187 | *value_intp = g_value_get_int (&value); | |
188 | } | |
189 | g_value_unset (&value); | |
187 | *value_intp = g_variant_get_int32 (value); | |
188 | } | |
189 | g_variant_unref (value); | |
190 | 190 | return TRUE; |
191 | 191 | } |
192 | 192 | if (!g_strcmp0 (name, "char_table_combo_box")) { |
210 | 210 | gchar **value_strp) |
211 | 211 | { |
212 | 212 | IBusConfig *ibus_config; |
213 | const gchar *s; | |
214 | GValue value = {0, }; | |
215 | ||
216 | g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE); | |
217 | g_return_val_if_fail (config->priv != NULL, FALSE); | |
218 | ||
219 | ibus_config = config->priv->config; | |
220 | if (ibus_config_get_value (ibus_config, section, name, &value)) { | |
213 | GVariant *value = NULL; | |
214 | ||
215 | g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE); | |
216 | g_return_val_if_fail (config->priv != NULL, FALSE); | |
217 | ||
218 | ibus_config = config->priv->config; | |
219 | if ((value = ibus_config_get_value (ibus_config, section, name)) != NULL) { | |
221 | 220 | if (value_strp) { |
222 | s = g_value_get_string (&value); | |
223 | if (s) { | |
224 | *value_strp = g_strdup (s); | |
225 | } else { | |
226 | *value_strp = NULL; | |
227 | } | |
228 | } | |
229 | g_value_unset (&value); | |
221 | *value_strp = g_variant_dup_string (value, NULL); | |
222 | } | |
223 | g_variant_unref (value); | |
230 | 224 | return TRUE; |
231 | 225 | } |
232 | 226 | if (!g_strcmp0 (name, "keyboard_theme")) { |
243 | 237 | ibus_input_pad_config_get_value (IBusConfig *config, |
244 | 238 | const gchar *section, |
245 | 239 | const gchar *name, |
246 | GValue *value) | |
247 | { | |
248 | if (ibus_config_get_value (config, section, name, value)) { | |
240 | GVariant *value) | |
241 | { | |
242 | if ((value = ibus_config_get_value (config, section, name)) != NULL) { | |
249 | 243 | return TRUE; |
250 | 244 | } |
251 | 245 | if (!g_strcmp0 (name, "keyboard_theme")) { |
252 | g_value_init (value, G_TYPE_STRING); | |
253 | g_value_set_static_string (value, KEYBOARD_THEME_DEFAULT); | |
246 | value = g_variant_new ("s", KEYBOARD_THEME_DEFAULT); | |
254 | 247 | return TRUE; |
255 | 248 | } else if (!g_strcmp0 (name, "char_table_combo_box")) { |
256 | g_value_init (value, G_TYPE_INT); | |
257 | g_value_set_int (value, CHAR_TABLE_COMBO_BOX_DEFAULT); | |
249 | value = g_variant_new ("i", CHAR_TABLE_COMBO_BOX_DEFAULT); | |
258 | 250 | return TRUE; |
259 | 251 | } else if (!g_strcmp0 (name, "layout_table_combo_box")) { |
260 | g_value_init (value, G_TYPE_INT); | |
261 | g_value_set_int (value, LAYOUT_TABLE_COMBO_BOX_DEFAULT); | |
252 | value = g_variant_new ("i", LAYOUT_TABLE_COMBO_BOX_DEFAULT); | |
262 | 253 | return TRUE; |
263 | 254 | } |
264 | 255 | return FALSE; |
272 | 263 | int value_int) |
273 | 264 | { |
274 | 265 | IBusConfig *ibus_config; |
275 | GValue value = {0, }; | |
266 | GVariant *value = NULL; | |
276 | 267 | int orig_i = 0; |
277 | 268 | gchar *path; |
278 | 269 | SavedTable *saved_table; |
282 | 273 | g_return_val_if_fail (section != NULL && name != NULL, FALSE); |
283 | 274 | |
284 | 275 | ibus_config = config->priv->config; |
285 | if (ibus_config_get_value (ibus_config, section, name, &value)) { | |
286 | orig_i = g_value_get_int (&value); | |
287 | g_value_unset (&value); | |
276 | if ((value = ibus_config_get_value (ibus_config, section, name)) != NULL) { | |
277 | orig_i = g_variant_get_int32 (value); | |
278 | g_variant_unref (value); | |
288 | 279 | if (value_int == orig_i) { |
289 | 280 | return FALSE; |
290 | 281 | } |
324 | 315 | const gchar *value_str) |
325 | 316 | { |
326 | 317 | IBusConfig *ibus_config; |
327 | GValue value = {0, }; | |
318 | GVariant *value = NULL; | |
328 | 319 | const gchar *orig_str = NULL; |
329 | 320 | gchar *path; |
330 | 321 | SavedTable *saved_table; |
334 | 325 | g_return_val_if_fail (section != NULL && name != NULL, FALSE); |
335 | 326 | |
336 | 327 | ibus_config = config->priv->config; |
337 | if (ibus_config_get_value (ibus_config, section, name, &value)) { | |
338 | orig_str = g_value_get_string (&value); | |
328 | if ((value = ibus_config_get_value (ibus_config, section, name)) != NULL) { | |
329 | orig_str = g_variant_get_string (value, NULL); | |
339 | 330 | if (!g_strcmp0 (value_str, orig_str)) { |
340 | g_value_unset (&value); | |
331 | g_variant_unref (value); | |
341 | 332 | return FALSE; |
342 | 333 | } |
343 | g_value_unset (&value); | |
334 | g_variant_unref (value); | |
344 | 335 | } else if (!g_strcmp0 (name, "keyboard_theme")) { |
345 | 336 | if (value_str == NULL || |
346 | 337 | !g_strcmp0 (value_str, KEYBOARD_THEME_DEFAULT)) { |
376 | 367 | int value_int) |
377 | 368 | { |
378 | 369 | IBusConfig *ibus_config; |
379 | GValue value = {0, }; | |
370 | GVariant *value = NULL; | |
380 | 371 | |
381 | 372 | g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE); |
382 | 373 | g_return_val_if_fail (config->priv != NULL, FALSE); |
383 | 374 | g_return_val_if_fail (section != NULL && name != NULL, FALSE); |
384 | 375 | |
385 | 376 | ibus_config = config->priv->config; |
386 | g_value_init (&value, G_TYPE_INT); | |
387 | g_value_set_int (&value, value_int); | |
388 | if (!ibus_config_set_value (ibus_config, section, name, &value)) { | |
377 | value = g_variant_new ("i", value_int); | |
378 | if (!ibus_config_set_value (ibus_config, section, name, value)) { | |
389 | 379 | return FALSE; |
390 | 380 | } |
391 | g_value_unset (&value); | |
381 | g_variant_unref (value); | |
392 | 382 | return TRUE; |
393 | 383 | } |
394 | 384 | |
399 | 389 | const gchar *value_str) |
400 | 390 | { |
401 | 391 | IBusConfig *ibus_config; |
402 | GValue value = {0, }; | |
392 | GVariant *value = NULL; | |
403 | 393 | |
404 | 394 | g_return_val_if_fail (IBUS_IS_INPUT_PAD_CONFIG (config), FALSE); |
405 | 395 | g_return_val_if_fail (config->priv != NULL, FALSE); |
406 | 396 | g_return_val_if_fail (section != NULL && name != NULL, FALSE); |
407 | 397 | |
408 | 398 | ibus_config = config->priv->config; |
409 | g_value_init (&value, G_TYPE_STRING); | |
410 | g_value_set_static_string (&value, value_str); | |
411 | if (!ibus_config_set_value (ibus_config, section, name, &value)) { | |
399 | value = g_variant_new ("s", value_str); | |
400 | if (!ibus_config_set_value (ibus_config, section, name, value)) { | |
412 | 401 | return FALSE; |
413 | 402 | } |
414 | g_value_unset (&value); | |
403 | g_variant_unref (value); | |
415 | 404 | return TRUE; |
416 | 405 | } |
417 | 406 |
378 | 378 | InputPadWindowKbduiName *list, |
379 | 379 | IBusInputPadConfig *config) |
380 | 380 | { |
381 | guint16 nrows, ncols; | |
381 | guint nrows, ncols; | |
382 | 382 | GtkTreeModel *model; |
383 | 383 | GtkWidget *label; |
384 | 384 | GtkWidget *combobox; |
386 | 386 | |
387 | 387 | g_return_if_fail (GTK_IS_TABLE (table)); |
388 | 388 | |
389 | nrows = GTK_TABLE (table)->nrows; | |
390 | ncols = GTK_TABLE(table)->ncols; | |
389 | gtk_table_get_size (GTK_TABLE (table), &nrows, &ncols); | |
391 | 390 | g_return_if_fail (nrows > 0 && ncols >= 2); |
392 | 391 | |
393 | 392 | if ((model = keyboard_theme_new (list)) == NULL) { |
464 | 463 | gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (about_dialog), VERSION); |
465 | 464 | content_area = gtk_dialog_get_content_area (GTK_DIALOG (about_dialog)); |
466 | 465 | list = gtk_container_get_children (GTK_CONTAINER (content_area)); |
467 | g_return_if_fail (GTK_IS_VBOX (list->data)); | |
466 | g_return_if_fail (GTK_IS_BOX (list->data)); | |
468 | 467 | vbox = GTK_WIDGET (list->data); |
469 | 468 | list = gtk_container_get_children (GTK_CONTAINER (vbox)); |
470 | 469 | |
471 | 470 | while (list) { |
471 | /* Copied the implementation of gtk_widget_reparent() | |
472 | * but gtk_box_pack_start() also includes set parent. */ | |
472 | 473 | widget = GTK_WIDGET (list->data); |
473 | old_parent = widget->parent; | |
474 | widget->parent = NULL; | |
475 | gtk_widget_set_parent_window (widget, NULL); | |
476 | g_signal_emit_by_name (widget, "parent-set", old_parent); | |
474 | old_parent = gtk_widget_get_parent (widget); | |
475 | g_object_ref (G_OBJECT (widget)); | |
476 | gtk_container_remove (GTK_CONTAINER (old_parent), widget); | |
477 | 477 | gtk_box_pack_start (GTK_BOX (about_vbox), widget, |
478 | 478 | FALSE, FALSE, 0); |
479 | 479 | list = list->next; |