GNU Binutils with patches for OS216
修订版 | 1292acf8fd4450703ee407e55f6b5a29c044d009 (tree) |
---|---|
时间 | 2015-08-31 12:23:36 |
作者 | Alan Modra <amodra@gmai...> |
Commiter | Alan Modra |
Regen intl/configure
* configure: Regenerate.
@@ -1,3 +1,7 @@ | ||
1 | +2015-08-31 Alan Modra <amodra@gmail.com> | |
2 | + | |
3 | + * configure: Regenerate. | |
4 | + | |
1 | 5 | 2010-08-06 Yaakov Selkowitz <yselkowi@redhat.com> |
2 | 6 | |
3 | 7 | * configure: Regenerate. |
@@ -609,6 +609,8 @@ CATOBJEXT | ||
609 | 609 | USE_INCLUDED_LIBINTL |
610 | 610 | BUILD_INCLUDED_LIBINTL |
611 | 611 | INTLBISON |
612 | +LTLIBICONV | |
613 | +LIBICONV | |
612 | 614 | GLIBC21 |
613 | 615 | ALLOCA |
614 | 616 | EGREP |
@@ -682,9 +684,9 @@ ac_subst_files='' | ||
682 | 684 | ac_user_opts=' |
683 | 685 | enable_option_checking |
684 | 686 | enable_nls |
685 | -with_libiconv_prefix | |
686 | 687 | with_gnu_ld |
687 | 688 | enable_rpath |
689 | +with_libiconv_prefix | |
688 | 690 | with_included_gettext |
689 | 691 | with_libintl_prefix |
690 | 692 | enable_maintainer_mode |
@@ -1317,9 +1319,9 @@ Optional Features: | ||
1317 | 1319 | Optional Packages: |
1318 | 1320 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1319 | 1321 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1320 | - --with-libiconv-prefix=DIR | |
1321 | - search for libiconv in DIR/include and DIR/lib | |
1322 | 1322 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1323 | + --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1324 | + --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
1323 | 1325 | --with-included-gettext use the GNU gettext library included here |
1324 | 1326 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
1325 | 1327 | --without-libintl-prefix don't search for libintl in includedir and libdir |
@@ -4847,136 +4849,658 @@ _ACEOF | ||
4847 | 4849 | fi |
4848 | 4850 | |
4849 | 4851 | |
4852 | + if test "X$prefix" = "XNONE"; then | |
4853 | + acl_final_prefix="$ac_default_prefix" | |
4854 | + else | |
4855 | + acl_final_prefix="$prefix" | |
4856 | + fi | |
4857 | + if test "X$exec_prefix" = "XNONE"; then | |
4858 | + acl_final_exec_prefix='${prefix}' | |
4859 | + else | |
4860 | + acl_final_exec_prefix="$exec_prefix" | |
4861 | + fi | |
4862 | + acl_save_prefix="$prefix" | |
4863 | + prefix="$acl_final_prefix" | |
4864 | + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
4865 | + prefix="$acl_save_prefix" | |
4850 | 4866 | |
4851 | - for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
4852 | -stdlib.h string.h unistd.h sys/param.h | |
4853 | -do : | |
4854 | - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4855 | -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
4856 | -eval as_val=\$$as_ac_Header | |
4857 | - if test "x$as_val" = x""yes; then : | |
4858 | - cat >>confdefs.h <<_ACEOF | |
4859 | -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4860 | -_ACEOF | |
4861 | 4867 | |
4868 | +# Check whether --with-gnu-ld was given. | |
4869 | +if test "${with_gnu_ld+set}" = set; then : | |
4870 | + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4871 | +else | |
4872 | + with_gnu_ld=no | |
4862 | 4873 | fi |
4863 | 4874 | |
4864 | -done | |
4875 | +# Prepare PATH_SEPARATOR. | |
4876 | +# The user is always right. | |
4877 | +if test "${PATH_SEPARATOR+set}" != set; then | |
4878 | + echo "#! /bin/sh" >conf$$.sh | |
4879 | + echo "exit 0" >>conf$$.sh | |
4880 | + chmod +x conf$$.sh | |
4881 | + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
4882 | + PATH_SEPARATOR=';' | |
4883 | + else | |
4884 | + PATH_SEPARATOR=: | |
4885 | + fi | |
4886 | + rm -f conf$$.sh | |
4887 | +fi | |
4888 | +ac_prog=ld | |
4889 | +if test "$GCC" = yes; then | |
4890 | + # Check if gcc -print-prog-name=ld gives a path. | |
4891 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
4892 | +$as_echo_n "checking for ld used by GCC... " >&6; } | |
4893 | + case $host in | |
4894 | + *-*-mingw*) | |
4895 | + # gcc leaves a trailing carriage return which upsets mingw | |
4896 | + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4897 | + *) | |
4898 | + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4899 | + esac | |
4900 | + case $ac_prog in | |
4901 | + # Accept absolute paths. | |
4902 | + [\\/]* | [A-Za-z]:[\\/]*) | |
4903 | + re_direlt='/[^/][^/]*/\.\./' | |
4904 | + # Canonicalize the path of ld | |
4905 | + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
4906 | + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
4907 | + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
4908 | + done | |
4909 | + test -z "$LD" && LD="$ac_prog" | |
4910 | + ;; | |
4911 | + "") | |
4912 | + # If it fails, then pretend we aren't using GCC. | |
4913 | + ac_prog=ld | |
4914 | + ;; | |
4915 | + *) | |
4916 | + # If it is relative, then search for the first ld in PATH. | |
4917 | + with_gnu_ld=unknown | |
4918 | + ;; | |
4919 | + esac | |
4920 | +elif test "$with_gnu_ld" = yes; then | |
4921 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4922 | +$as_echo_n "checking for GNU ld... " >&6; } | |
4923 | +else | |
4924 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4925 | +$as_echo_n "checking for non-GNU ld... " >&6; } | |
4926 | +fi | |
4927 | +if test "${acl_cv_path_LD+set}" = set; then : | |
4928 | + $as_echo_n "(cached) " >&6 | |
4929 | +else | |
4930 | + if test -z "$LD"; then | |
4931 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
4932 | + for ac_dir in $PATH; do | |
4933 | + test -z "$ac_dir" && ac_dir=. | |
4934 | + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4935 | + acl_cv_path_LD="$ac_dir/$ac_prog" | |
4936 | + # Check to see if the program is GNU ld. I'd rather use --version, | |
4937 | + # but apparently some GNU ld's only accept -v. | |
4938 | + # Break only if it was the GNU/non-GNU ld that we prefer. | |
4939 | + if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
4940 | + test "$with_gnu_ld" != no && break | |
4941 | + else | |
4942 | + test "$with_gnu_ld" != yes && break | |
4943 | + fi | |
4944 | + fi | |
4945 | + done | |
4946 | + IFS="$ac_save_ifs" | |
4947 | +else | |
4948 | + acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
4949 | +fi | |
4950 | +fi | |
4865 | 4951 | |
4866 | - for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ | |
4867 | -geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ | |
4868 | -strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ | |
4869 | -__fsetlocking | |
4870 | -do : | |
4871 | - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4872 | -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
4873 | -eval as_val=\$$as_ac_var | |
4874 | - if test "x$as_val" = x""yes; then : | |
4875 | - cat >>confdefs.h <<_ACEOF | |
4876 | -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4877 | -_ACEOF | |
4952 | +LD="$acl_cv_path_LD" | |
4953 | +if test -n "$LD"; then | |
4954 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4955 | +$as_echo "$LD" >&6; } | |
4956 | +else | |
4957 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4958 | +$as_echo "no" >&6; } | |
4959 | +fi | |
4960 | +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4961 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4962 | +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4963 | +if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
4964 | + $as_echo_n "(cached) " >&6 | |
4965 | +else | |
4966 | + # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
4967 | +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
4968 | + acl_cv_prog_gnu_ld=yes | |
4969 | +else | |
4970 | + acl_cv_prog_gnu_ld=no | |
4971 | +fi | |
4972 | +fi | |
4973 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
4974 | +$as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
4975 | +with_gnu_ld=$acl_cv_prog_gnu_ld | |
4976 | + | |
4977 | + | |
4978 | + | |
4979 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
4980 | +$as_echo_n "checking for shared library run path origin... " >&6; } | |
4981 | +if test "${acl_cv_rpath+set}" = set; then : | |
4982 | + $as_echo_n "(cached) " >&6 | |
4983 | +else | |
4984 | + | |
4985 | + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
4986 | + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
4987 | + . ./conftest.sh | |
4988 | + rm -f ./conftest.sh | |
4989 | + acl_cv_rpath=done | |
4878 | 4990 | |
4879 | 4991 | fi |
4880 | -done | |
4992 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
4993 | +$as_echo "$acl_cv_rpath" >&6; } | |
4994 | + wl="$acl_cv_wl" | |
4995 | + libext="$acl_cv_libext" | |
4996 | + shlibext="$acl_cv_shlibext" | |
4997 | + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
4998 | + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
4999 | + hardcode_direct="$acl_cv_hardcode_direct" | |
5000 | + hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
5001 | + # Check whether --enable-rpath was given. | |
5002 | +if test "${enable_rpath+set}" = set; then : | |
5003 | + enableval=$enable_rpath; : | |
5004 | +else | |
5005 | + enable_rpath=yes | |
5006 | +fi | |
5007 | + | |
5008 | + | |
4881 | 5009 | |
4882 | 5010 | |
4883 | 5011 | |
4884 | 5012 | |
4885 | 5013 | |
5014 | + | |
5015 | + use_additional=yes | |
5016 | + | |
5017 | + acl_save_prefix="$prefix" | |
5018 | + prefix="$acl_final_prefix" | |
5019 | + acl_save_exec_prefix="$exec_prefix" | |
5020 | + exec_prefix="$acl_final_exec_prefix" | |
5021 | + | |
5022 | + eval additional_includedir=\"$includedir\" | |
5023 | + eval additional_libdir=\"$libdir\" | |
5024 | + | |
5025 | + exec_prefix="$acl_save_exec_prefix" | |
5026 | + prefix="$acl_save_prefix" | |
5027 | + | |
5028 | + | |
4886 | 5029 | # Check whether --with-libiconv-prefix was given. |
4887 | 5030 | if test "${with_libiconv_prefix+set}" = set; then : |
4888 | 5031 | withval=$with_libiconv_prefix; |
4889 | - for dir in `echo "$withval" | tr : ' '`; do | |
4890 | - if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi | |
4891 | - if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi | |
4892 | - done | |
4893 | - | |
4894 | -fi | |
5032 | + if test "X$withval" = "Xno"; then | |
5033 | + use_additional=no | |
5034 | + else | |
5035 | + if test "X$withval" = "X"; then | |
4895 | 5036 | |
5037 | + acl_save_prefix="$prefix" | |
5038 | + prefix="$acl_final_prefix" | |
5039 | + acl_save_exec_prefix="$exec_prefix" | |
5040 | + exec_prefix="$acl_final_exec_prefix" | |
4896 | 5041 | |
4897 | - BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs" | |
4898 | - BUILD_LIBICONV_INCLUDE="-I../libiconv/include" | |
5042 | + eval additional_includedir=\"$includedir\" | |
5043 | + eval additional_libdir=\"$libdir\" | |
4899 | 5044 | |
4900 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
4901 | -$as_echo_n "checking for iconv... " >&6; } | |
4902 | -if test "${am_cv_func_iconv+set}" = set; then : | |
4903 | - $as_echo_n "(cached) " >&6 | |
4904 | -else | |
5045 | + exec_prefix="$acl_save_exec_prefix" | |
5046 | + prefix="$acl_save_prefix" | |
4905 | 5047 | |
4906 | - am_cv_func_iconv="no, consider installing GNU libiconv" | |
4907 | - am_cv_lib_iconv=no | |
4908 | - am_cv_use_build_libiconv=no | |
4909 | - am_cv_build_libiconv_path= | |
5048 | + else | |
5049 | + additional_includedir="$withval/include" | |
5050 | + additional_libdir="$withval/lib" | |
5051 | + fi | |
5052 | + fi | |
4910 | 5053 | |
4911 | - # First, try to find iconv in libc. | |
4912 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4913 | -/* end confdefs.h. */ | |
4914 | -#include <stdlib.h> | |
4915 | -#include <iconv.h> | |
4916 | -int | |
4917 | -main () | |
4918 | -{ | |
4919 | -iconv_t cd = iconv_open("",""); | |
4920 | - iconv(cd,NULL,NULL,NULL,NULL); | |
4921 | - iconv_close(cd); | |
4922 | - ; | |
4923 | - return 0; | |
4924 | -} | |
4925 | -_ACEOF | |
4926 | -if ac_fn_c_try_link "$LINENO"; then : | |
4927 | - am_cv_func_iconv=yes | |
4928 | 5054 | fi |
4929 | -rm -f core conftest.err conftest.$ac_objext \ | |
4930 | - conftest$ac_exeext conftest.$ac_ext | |
4931 | 5055 | |
4932 | - # If libiconv is part of the build tree, then try using it over | |
4933 | - # any system libiconv. | |
4934 | - if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then | |
4935 | - for lib_dir in $BUILD_LIBICONV_LIBDIRS; do | |
4936 | - am_save_LIBS="$LIBS" | |
4937 | - am_save_CPPFLAGS="$CPPFLAGS" | |
4938 | - LIBS="$LIBS $lib_dir/libiconv.a" | |
4939 | - CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE" | |
4940 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4941 | -/* end confdefs.h. */ | |
4942 | -#include <stdlib.h> | |
4943 | -#include <iconv.h> | |
4944 | -int | |
4945 | -main () | |
4946 | -{ | |
4947 | -iconv_t cd = iconv_open("",""); | |
4948 | - iconv(cd,NULL,NULL,NULL,NULL); | |
4949 | - iconv_close(cd); | |
4950 | - ; | |
4951 | - return 0; | |
4952 | -} | |
4953 | -_ACEOF | |
4954 | -if ac_fn_c_try_link "$LINENO"; then : | |
4955 | - am_cv_use_build_libiconv=yes | |
4956 | - am_cv_build_libiconv_path=$lib_dir/libiconv.a | |
4957 | - am_cv_lib_iconv=yes | |
4958 | - am_cv_func_iconv=yes | |
5056 | + LIBICONV= | |
5057 | + LTLIBICONV= | |
5058 | + INCICONV= | |
5059 | + rpathdirs= | |
5060 | + ltrpathdirs= | |
5061 | + names_already_handled= | |
5062 | + names_next_round='iconv ' | |
5063 | + while test -n "$names_next_round"; do | |
5064 | + names_this_round="$names_next_round" | |
5065 | + names_next_round= | |
5066 | + for name in $names_this_round; do | |
5067 | + already_handled= | |
5068 | + for n in $names_already_handled; do | |
5069 | + if test "$n" = "$name"; then | |
5070 | + already_handled=yes | |
5071 | + break | |
5072 | + fi | |
5073 | + done | |
5074 | + if test -z "$already_handled"; then | |
5075 | + names_already_handled="$names_already_handled $name" | |
5076 | + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
5077 | + eval value=\"\$HAVE_LIB$uppername\" | |
5078 | + if test -n "$value"; then | |
5079 | + if test "$value" = yes; then | |
5080 | + eval value=\"\$LIB$uppername\" | |
5081 | + test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
5082 | + eval value=\"\$LTLIB$uppername\" | |
5083 | + test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
5084 | + else | |
5085 | + : | |
5086 | + fi | |
5087 | + else | |
5088 | + found_dir= | |
5089 | + found_la= | |
5090 | + found_so= | |
5091 | + found_a= | |
5092 | + if test $use_additional = yes; then | |
5093 | + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
5094 | + found_dir="$additional_libdir" | |
5095 | + found_so="$additional_libdir/lib$name.$shlibext" | |
5096 | + if test -f "$additional_libdir/lib$name.la"; then | |
5097 | + found_la="$additional_libdir/lib$name.la" | |
5098 | + fi | |
5099 | + else | |
5100 | + if test -f "$additional_libdir/lib$name.$libext"; then | |
5101 | + found_dir="$additional_libdir" | |
5102 | + found_a="$additional_libdir/lib$name.$libext" | |
5103 | + if test -f "$additional_libdir/lib$name.la"; then | |
5104 | + found_la="$additional_libdir/lib$name.la" | |
5105 | + fi | |
5106 | + fi | |
5107 | + fi | |
5108 | + fi | |
5109 | + if test "X$found_dir" = "X"; then | |
5110 | + for x in $LDFLAGS $LTLIBICONV; do | |
5111 | + | |
5112 | + acl_save_prefix="$prefix" | |
5113 | + prefix="$acl_final_prefix" | |
5114 | + acl_save_exec_prefix="$exec_prefix" | |
5115 | + exec_prefix="$acl_final_exec_prefix" | |
5116 | + eval x=\"$x\" | |
5117 | + exec_prefix="$acl_save_exec_prefix" | |
5118 | + prefix="$acl_save_prefix" | |
5119 | + | |
5120 | + case "$x" in | |
5121 | + -L*) | |
5122 | + dir=`echo "X$x" | sed -e 's/^X-L//'` | |
5123 | + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
5124 | + found_dir="$dir" | |
5125 | + found_so="$dir/lib$name.$shlibext" | |
5126 | + if test -f "$dir/lib$name.la"; then | |
5127 | + found_la="$dir/lib$name.la" | |
5128 | + fi | |
5129 | + else | |
5130 | + if test -f "$dir/lib$name.$libext"; then | |
5131 | + found_dir="$dir" | |
5132 | + found_a="$dir/lib$name.$libext" | |
5133 | + if test -f "$dir/lib$name.la"; then | |
5134 | + found_la="$dir/lib$name.la" | |
5135 | + fi | |
5136 | + fi | |
5137 | + fi | |
5138 | + ;; | |
5139 | + esac | |
5140 | + if test "X$found_dir" != "X"; then | |
5141 | + break | |
5142 | + fi | |
5143 | + done | |
5144 | + fi | |
5145 | + if test "X$found_dir" != "X"; then | |
5146 | + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
5147 | + if test "X$found_so" != "X"; then | |
5148 | + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
5149 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
5150 | + else | |
5151 | + haveit= | |
5152 | + for x in $ltrpathdirs; do | |
5153 | + if test "X$x" = "X$found_dir"; then | |
5154 | + haveit=yes | |
5155 | + break | |
5156 | + fi | |
5157 | + done | |
5158 | + if test -z "$haveit"; then | |
5159 | + ltrpathdirs="$ltrpathdirs $found_dir" | |
5160 | + fi | |
5161 | + if test "$hardcode_direct" = yes; then | |
5162 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
5163 | + else | |
5164 | + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
5165 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
5166 | + haveit= | |
5167 | + for x in $rpathdirs; do | |
5168 | + if test "X$x" = "X$found_dir"; then | |
5169 | + haveit=yes | |
5170 | + break | |
5171 | + fi | |
5172 | + done | |
5173 | + if test -z "$haveit"; then | |
5174 | + rpathdirs="$rpathdirs $found_dir" | |
5175 | + fi | |
5176 | + else | |
5177 | + haveit= | |
5178 | + for x in $LDFLAGS $LIBICONV; do | |
5179 | + | |
5180 | + acl_save_prefix="$prefix" | |
5181 | + prefix="$acl_final_prefix" | |
5182 | + acl_save_exec_prefix="$exec_prefix" | |
5183 | + exec_prefix="$acl_final_exec_prefix" | |
5184 | + eval x=\"$x\" | |
5185 | + exec_prefix="$acl_save_exec_prefix" | |
5186 | + prefix="$acl_save_prefix" | |
5187 | + | |
5188 | + if test "X$x" = "X-L$found_dir"; then | |
5189 | + haveit=yes | |
5190 | + break | |
5191 | + fi | |
5192 | + done | |
5193 | + if test -z "$haveit"; then | |
5194 | + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
5195 | + fi | |
5196 | + if test "$hardcode_minus_L" != no; then | |
5197 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
5198 | + else | |
5199 | + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
5200 | + fi | |
5201 | + fi | |
5202 | + fi | |
5203 | + fi | |
5204 | + else | |
5205 | + if test "X$found_a" != "X"; then | |
5206 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
5207 | + else | |
5208 | + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
5209 | + fi | |
5210 | + fi | |
5211 | + additional_includedir= | |
5212 | + case "$found_dir" in | |
5213 | + */lib | */lib/) | |
5214 | + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
5215 | + additional_includedir="$basedir/include" | |
5216 | + ;; | |
5217 | + esac | |
5218 | + if test "X$additional_includedir" != "X"; then | |
5219 | + if test "X$additional_includedir" != "X/usr/include"; then | |
5220 | + haveit= | |
5221 | + if test "X$additional_includedir" = "X/usr/local/include"; then | |
5222 | + if test -n "$GCC"; then | |
5223 | + case $host_os in | |
5224 | + linux*) haveit=yes;; | |
5225 | + esac | |
5226 | + fi | |
5227 | + fi | |
5228 | + if test -z "$haveit"; then | |
5229 | + for x in $CPPFLAGS $INCICONV; do | |
5230 | + | |
5231 | + acl_save_prefix="$prefix" | |
5232 | + prefix="$acl_final_prefix" | |
5233 | + acl_save_exec_prefix="$exec_prefix" | |
5234 | + exec_prefix="$acl_final_exec_prefix" | |
5235 | + eval x=\"$x\" | |
5236 | + exec_prefix="$acl_save_exec_prefix" | |
5237 | + prefix="$acl_save_prefix" | |
5238 | + | |
5239 | + if test "X$x" = "X-I$additional_includedir"; then | |
5240 | + haveit=yes | |
5241 | + break | |
5242 | + fi | |
5243 | + done | |
5244 | + if test -z "$haveit"; then | |
5245 | + if test -d "$additional_includedir"; then | |
5246 | + INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
5247 | + fi | |
5248 | + fi | |
5249 | + fi | |
5250 | + fi | |
5251 | + fi | |
5252 | + if test -n "$found_la"; then | |
5253 | + save_libdir="$libdir" | |
5254 | + case "$found_la" in | |
5255 | + */* | *\\*) . "$found_la" ;; | |
5256 | + *) . "./$found_la" ;; | |
5257 | + esac | |
5258 | + libdir="$save_libdir" | |
5259 | + for dep in $dependency_libs; do | |
5260 | + case "$dep" in | |
5261 | + -L*) | |
5262 | + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
5263 | + if test "X$additional_libdir" != "X/usr/lib"; then | |
5264 | + haveit= | |
5265 | + if test "X$additional_libdir" = "X/usr/local/lib"; then | |
5266 | + if test -n "$GCC"; then | |
5267 | + case $host_os in | |
5268 | + linux*) haveit=yes;; | |
5269 | + esac | |
5270 | + fi | |
5271 | + fi | |
5272 | + if test -z "$haveit"; then | |
5273 | + haveit= | |
5274 | + for x in $LDFLAGS $LIBICONV; do | |
5275 | + | |
5276 | + acl_save_prefix="$prefix" | |
5277 | + prefix="$acl_final_prefix" | |
5278 | + acl_save_exec_prefix="$exec_prefix" | |
5279 | + exec_prefix="$acl_final_exec_prefix" | |
5280 | + eval x=\"$x\" | |
5281 | + exec_prefix="$acl_save_exec_prefix" | |
5282 | + prefix="$acl_save_prefix" | |
5283 | + | |
5284 | + if test "X$x" = "X-L$additional_libdir"; then | |
5285 | + haveit=yes | |
5286 | + break | |
5287 | + fi | |
5288 | + done | |
5289 | + if test -z "$haveit"; then | |
5290 | + if test -d "$additional_libdir"; then | |
5291 | + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
5292 | + fi | |
5293 | + fi | |
5294 | + haveit= | |
5295 | + for x in $LDFLAGS $LTLIBICONV; do | |
5296 | + | |
5297 | + acl_save_prefix="$prefix" | |
5298 | + prefix="$acl_final_prefix" | |
5299 | + acl_save_exec_prefix="$exec_prefix" | |
5300 | + exec_prefix="$acl_final_exec_prefix" | |
5301 | + eval x=\"$x\" | |
5302 | + exec_prefix="$acl_save_exec_prefix" | |
5303 | + prefix="$acl_save_prefix" | |
5304 | + | |
5305 | + if test "X$x" = "X-L$additional_libdir"; then | |
5306 | + haveit=yes | |
5307 | + break | |
5308 | + fi | |
5309 | + done | |
5310 | + if test -z "$haveit"; then | |
5311 | + if test -d "$additional_libdir"; then | |
5312 | + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
5313 | + fi | |
5314 | + fi | |
5315 | + fi | |
5316 | + fi | |
5317 | + ;; | |
5318 | + -R*) | |
5319 | + dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
5320 | + if test "$enable_rpath" != no; then | |
5321 | + haveit= | |
5322 | + for x in $rpathdirs; do | |
5323 | + if test "X$x" = "X$dir"; then | |
5324 | + haveit=yes | |
5325 | + break | |
5326 | + fi | |
5327 | + done | |
5328 | + if test -z "$haveit"; then | |
5329 | + rpathdirs="$rpathdirs $dir" | |
5330 | + fi | |
5331 | + haveit= | |
5332 | + for x in $ltrpathdirs; do | |
5333 | + if test "X$x" = "X$dir"; then | |
5334 | + haveit=yes | |
5335 | + break | |
5336 | + fi | |
5337 | + done | |
5338 | + if test -z "$haveit"; then | |
5339 | + ltrpathdirs="$ltrpathdirs $dir" | |
5340 | + fi | |
5341 | + fi | |
5342 | + ;; | |
5343 | + -l*) | |
5344 | + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
5345 | + ;; | |
5346 | + *.la) | |
5347 | + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
5348 | + ;; | |
5349 | + *) | |
5350 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
5351 | + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
5352 | + ;; | |
5353 | + esac | |
5354 | + done | |
5355 | + fi | |
5356 | + else | |
5357 | + LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
5358 | + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
5359 | + fi | |
5360 | + fi | |
5361 | + fi | |
5362 | + done | |
5363 | + done | |
5364 | + if test "X$rpathdirs" != "X"; then | |
5365 | + if test -n "$hardcode_libdir_separator"; then | |
5366 | + alldirs= | |
5367 | + for found_dir in $rpathdirs; do | |
5368 | + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
5369 | + done | |
5370 | + acl_save_libdir="$libdir" | |
5371 | + libdir="$alldirs" | |
5372 | + eval flag=\"$hardcode_libdir_flag_spec\" | |
5373 | + libdir="$acl_save_libdir" | |
5374 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
5375 | + else | |
5376 | + for found_dir in $rpathdirs; do | |
5377 | + acl_save_libdir="$libdir" | |
5378 | + libdir="$found_dir" | |
5379 | + eval flag=\"$hardcode_libdir_flag_spec\" | |
5380 | + libdir="$acl_save_libdir" | |
5381 | + LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
5382 | + done | |
5383 | + fi | |
5384 | + fi | |
5385 | + if test "X$ltrpathdirs" != "X"; then | |
5386 | + for found_dir in $ltrpathdirs; do | |
5387 | + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
5388 | + done | |
5389 | + fi | |
5390 | + | |
5391 | + | |
5392 | + | |
5393 | + | |
5394 | + for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | |
5395 | +stdlib.h string.h unistd.h sys/param.h | |
5396 | +do : | |
5397 | + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5398 | +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5399 | +eval as_val=\$$as_ac_Header | |
5400 | + if test "x$as_val" = x""yes; then : | |
5401 | + cat >>confdefs.h <<_ACEOF | |
5402 | +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5403 | +_ACEOF | |
5404 | + | |
5405 | +fi | |
5406 | + | |
5407 | +done | |
5408 | + | |
5409 | + for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ | |
5410 | +geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ | |
5411 | +strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ | |
5412 | +__fsetlocking | |
5413 | +do : | |
5414 | + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5415 | +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5416 | +eval as_val=\$$as_ac_var | |
5417 | + if test "x$as_val" = x""yes; then : | |
5418 | + cat >>confdefs.h <<_ACEOF | |
5419 | +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5420 | +_ACEOF | |
5421 | + | |
5422 | +fi | |
5423 | +done | |
5424 | + | |
5425 | + | |
5426 | + | |
5427 | + | |
5428 | + | |
5429 | + | |
5430 | + | |
5431 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 | |
5432 | +$as_echo_n "checking for iconv... " >&6; } | |
5433 | +if test "${am_cv_func_iconv+set}" = set; then : | |
5434 | + $as_echo_n "(cached) " >&6 | |
5435 | +else | |
5436 | + | |
5437 | + am_cv_func_iconv="no, consider installing GNU libiconv" | |
5438 | + am_cv_lib_iconv=no | |
5439 | + am_save_CPPFLAGS="$CPPFLAGS" | |
5440 | + CPPFLAGS="$CPPFLAGS $INCICONV" | |
5441 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5442 | +/* end confdefs.h. */ | |
5443 | +#include <stdlib.h> | |
5444 | +#include <iconv.h> | |
5445 | +int | |
5446 | +main () | |
5447 | +{ | |
5448 | +iconv_t cd = iconv_open("",""); | |
5449 | + iconv(cd,NULL,NULL,NULL,NULL); | |
5450 | + iconv_close(cd); | |
5451 | + ; | |
5452 | + return 0; | |
5453 | +} | |
5454 | +_ACEOF | |
5455 | +if ac_fn_c_try_link "$LINENO"; then : | |
5456 | + am_cv_func_iconv=yes | |
5457 | +fi | |
5458 | +rm -f core conftest.err conftest.$ac_objext \ | |
5459 | + conftest$ac_exeext conftest.$ac_ext | |
5460 | + CPPFLAGS="$am_save_CPPFLAGS" | |
5461 | + | |
5462 | + if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then | |
5463 | + for _libs in .libs _libs; do | |
5464 | + am_save_CPPFLAGS="$CPPFLAGS" | |
5465 | + am_save_LIBS="$LIBS" | |
5466 | + CPPFLAGS="$CPPFLAGS -I../libiconv/include" | |
5467 | + LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" | |
5468 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5469 | +/* end confdefs.h. */ | |
5470 | +#include <stdlib.h> | |
5471 | +#include <iconv.h> | |
5472 | +int | |
5473 | +main () | |
5474 | +{ | |
5475 | +iconv_t cd = iconv_open("",""); | |
5476 | + iconv(cd,NULL,NULL,NULL,NULL); | |
5477 | + iconv_close(cd); | |
5478 | + ; | |
5479 | + return 0; | |
5480 | +} | |
5481 | +_ACEOF | |
5482 | +if ac_fn_c_try_link "$LINENO"; then : | |
5483 | + INCICONV="-I../libiconv/include" | |
5484 | + LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a | |
5485 | + LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la | |
5486 | + am_cv_lib_iconv=yes | |
5487 | + am_cv_func_iconv=yes | |
4959 | 5488 | fi |
4960 | 5489 | rm -f core conftest.err conftest.$ac_objext \ |
4961 | 5490 | conftest$ac_exeext conftest.$ac_ext |
4962 | - LIBS="$am_save_LIBS" | |
4963 | 5491 | CPPFLAGS="$am_save_CPPFLAGS" |
4964 | - if test "$am_cv_use_build_libiconv" = "yes"; then | |
5492 | + LIBS="$am_save_LIBS" | |
5493 | + if test "$am_cv_func_iconv" = "yes"; then | |
4965 | 5494 | break |
4966 | 5495 | fi |
4967 | 5496 | done |
4968 | 5497 | fi |
4969 | 5498 | |
4970 | - # If iconv was not in libc, try -liconv. In this case, arrange to | |
4971 | - # look in the libiconv prefix, if it was specified by the user. | |
4972 | 5499 | if test "$am_cv_func_iconv" != yes; then |
4973 | 5500 | am_save_CPPFLAGS="$CPPFLAGS" |
4974 | 5501 | am_save_LIBS="$LIBS" |
4975 | - if test -n "$LIBICONV_INCLUDE"; then | |
4976 | - CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE" | |
4977 | - LIBS="$LIBS $LIBICONV_LIBDIR" | |
4978 | - fi | |
4979 | - LIBS="$LIBS -liconv" | |
5502 | + CPPFLAGS="$LIBS $INCICONV" | |
5503 | + LIBS="$LIBS $LIBICONV" | |
4980 | 5504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4981 | 5505 | /* end confdefs.h. */ |
4982 | 5506 | #include <stdlib.h> |
@@ -4997,35 +5521,54 @@ if ac_fn_c_try_link "$LINENO"; then : | ||
4997 | 5521 | fi |
4998 | 5522 | rm -f core conftest.err conftest.$ac_objext \ |
4999 | 5523 | conftest$ac_exeext conftest.$ac_ext |
5000 | - LIBS="$am_save_LIBS" | |
5001 | 5524 | CPPFLAGS="$am_save_CPPFLAGS" |
5525 | + LIBS="$am_save_LIBS" | |
5002 | 5526 | fi |
5003 | 5527 | |
5004 | 5528 | fi |
5005 | 5529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
5006 | 5530 | $as_echo "$am_cv_func_iconv" >&6; } |
5531 | + if test "$am_cv_func_iconv" = yes; then | |
5532 | + | |
5533 | +$as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
5007 | 5534 | |
5008 | - # Set the various flags based on the cache variables. We can't rely | |
5009 | - # on the flags to remain set from the above code, due to caching. | |
5010 | - LIBICONV= | |
5535 | + fi | |
5011 | 5536 | if test "$am_cv_lib_iconv" = yes; then |
5012 | - LIBICONV="-liconv" | |
5537 | + | |
5538 | + for element in $INCICONV; do | |
5539 | + haveit= | |
5540 | + for x in $CPPFLAGS; do | |
5541 | + | |
5542 | + acl_save_prefix="$prefix" | |
5543 | + prefix="$acl_final_prefix" | |
5544 | + acl_save_exec_prefix="$exec_prefix" | |
5545 | + exec_prefix="$acl_final_exec_prefix" | |
5546 | + eval x=\"$x\" | |
5547 | + exec_prefix="$acl_save_exec_prefix" | |
5548 | + prefix="$acl_save_prefix" | |
5549 | + | |
5550 | + if test "X$x" = "X$element"; then | |
5551 | + haveit=yes | |
5552 | + break | |
5553 | + fi | |
5554 | + done | |
5555 | + if test -z "$haveit"; then | |
5556 | + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
5557 | + fi | |
5558 | + done | |
5559 | + | |
5560 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 | |
5561 | +$as_echo_n "checking how to link with libiconv... " >&6; } | |
5562 | + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 | |
5563 | +$as_echo "$LIBICONV" >&6; } | |
5013 | 5564 | else |
5014 | - LIBICONV_LIBDIR= | |
5015 | - LIBICONV_INCLUDE= | |
5565 | + LIBICONV= | |
5566 | + LTLIBICONV= | |
5016 | 5567 | fi |
5017 | - if test "$am_cv_use_build_libiconv" = yes; then | |
5018 | - LIBICONV="$am_cv_build_libiconv_path" | |
5019 | - LIBICONV_LIBDIR="" | |
5020 | - LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE" | |
5021 | - fi | |
5022 | - CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE" | |
5023 | - LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV" | |
5024 | 5568 | |
5025 | - if test "$am_cv_func_iconv" = yes; then | |
5026 | 5569 | |
5027 | -$as_echo "#define HAVE_ICONV 1" >>confdefs.h | |
5028 | 5570 | |
5571 | + if test "$am_cv_func_iconv" = yes; then | |
5029 | 5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
5030 | 5573 | $as_echo_n "checking for iconv declaration... " >&6; } |
5031 | 5574 | if test "${am_cv_proto_iconv+set}" = set; then : |
@@ -5208,164 +5751,6 @@ $as_echo "$ac_prog_version" >&6; } | ||
5208 | 5751 | fi |
5209 | 5752 | |
5210 | 5753 | |
5211 | - if test "X$prefix" = "XNONE"; then | |
5212 | - acl_final_prefix="$ac_default_prefix" | |
5213 | - else | |
5214 | - acl_final_prefix="$prefix" | |
5215 | - fi | |
5216 | - if test "X$exec_prefix" = "XNONE"; then | |
5217 | - acl_final_exec_prefix='${prefix}' | |
5218 | - else | |
5219 | - acl_final_exec_prefix="$exec_prefix" | |
5220 | - fi | |
5221 | - acl_save_prefix="$prefix" | |
5222 | - prefix="$acl_final_prefix" | |
5223 | - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
5224 | - prefix="$acl_save_prefix" | |
5225 | - | |
5226 | - | |
5227 | -# Check whether --with-gnu-ld was given. | |
5228 | -if test "${with_gnu_ld+set}" = set; then : | |
5229 | - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5230 | -else | |
5231 | - with_gnu_ld=no | |
5232 | -fi | |
5233 | - | |
5234 | -# Prepare PATH_SEPARATOR. | |
5235 | -# The user is always right. | |
5236 | -if test "${PATH_SEPARATOR+set}" != set; then | |
5237 | - echo "#! /bin/sh" >conf$$.sh | |
5238 | - echo "exit 0" >>conf$$.sh | |
5239 | - chmod +x conf$$.sh | |
5240 | - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5241 | - PATH_SEPARATOR=';' | |
5242 | - else | |
5243 | - PATH_SEPARATOR=: | |
5244 | - fi | |
5245 | - rm -f conf$$.sh | |
5246 | -fi | |
5247 | -ac_prog=ld | |
5248 | -if test "$GCC" = yes; then | |
5249 | - # Check if gcc -print-prog-name=ld gives a path. | |
5250 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 | |
5251 | -$as_echo_n "checking for ld used by GCC... " >&6; } | |
5252 | - case $host in | |
5253 | - *-*-mingw*) | |
5254 | - # gcc leaves a trailing carriage return which upsets mingw | |
5255 | - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5256 | - *) | |
5257 | - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5258 | - esac | |
5259 | - case $ac_prog in | |
5260 | - # Accept absolute paths. | |
5261 | - [\\/]* | [A-Za-z]:[\\/]*) | |
5262 | - re_direlt='/[^/][^/]*/\.\./' | |
5263 | - # Canonicalize the path of ld | |
5264 | - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
5265 | - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5266 | - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
5267 | - done | |
5268 | - test -z "$LD" && LD="$ac_prog" | |
5269 | - ;; | |
5270 | - "") | |
5271 | - # If it fails, then pretend we aren't using GCC. | |
5272 | - ac_prog=ld | |
5273 | - ;; | |
5274 | - *) | |
5275 | - # If it is relative, then search for the first ld in PATH. | |
5276 | - with_gnu_ld=unknown | |
5277 | - ;; | |
5278 | - esac | |
5279 | -elif test "$with_gnu_ld" = yes; then | |
5280 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5281 | -$as_echo_n "checking for GNU ld... " >&6; } | |
5282 | -else | |
5283 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5284 | -$as_echo_n "checking for non-GNU ld... " >&6; } | |
5285 | -fi | |
5286 | -if test "${acl_cv_path_LD+set}" = set; then : | |
5287 | - $as_echo_n "(cached) " >&6 | |
5288 | -else | |
5289 | - if test -z "$LD"; then | |
5290 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
5291 | - for ac_dir in $PATH; do | |
5292 | - test -z "$ac_dir" && ac_dir=. | |
5293 | - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5294 | - acl_cv_path_LD="$ac_dir/$ac_prog" | |
5295 | - # Check to see if the program is GNU ld. I'd rather use --version, | |
5296 | - # but apparently some GNU ld's only accept -v. | |
5297 | - # Break only if it was the GNU/non-GNU ld that we prefer. | |
5298 | - if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
5299 | - test "$with_gnu_ld" != no && break | |
5300 | - else | |
5301 | - test "$with_gnu_ld" != yes && break | |
5302 | - fi | |
5303 | - fi | |
5304 | - done | |
5305 | - IFS="$ac_save_ifs" | |
5306 | -else | |
5307 | - acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
5308 | -fi | |
5309 | -fi | |
5310 | - | |
5311 | -LD="$acl_cv_path_LD" | |
5312 | -if test -n "$LD"; then | |
5313 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5314 | -$as_echo "$LD" >&6; } | |
5315 | -else | |
5316 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5317 | -$as_echo "no" >&6; } | |
5318 | -fi | |
5319 | -test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5320 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5321 | -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5322 | -if test "${acl_cv_prog_gnu_ld+set}" = set; then : | |
5323 | - $as_echo_n "(cached) " >&6 | |
5324 | -else | |
5325 | - # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
5326 | -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
5327 | - acl_cv_prog_gnu_ld=yes | |
5328 | -else | |
5329 | - acl_cv_prog_gnu_ld=no | |
5330 | -fi | |
5331 | -fi | |
5332 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
5333 | -$as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
5334 | -with_gnu_ld=$acl_cv_prog_gnu_ld | |
5335 | - | |
5336 | - | |
5337 | - | |
5338 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 | |
5339 | -$as_echo_n "checking for shared library run path origin... " >&6; } | |
5340 | -if test "${acl_cv_rpath+set}" = set; then : | |
5341 | - $as_echo_n "(cached) " >&6 | |
5342 | -else | |
5343 | - | |
5344 | - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
5345 | - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
5346 | - . ./conftest.sh | |
5347 | - rm -f ./conftest.sh | |
5348 | - acl_cv_rpath=done | |
5349 | - | |
5350 | -fi | |
5351 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 | |
5352 | -$as_echo "$acl_cv_rpath" >&6; } | |
5353 | - wl="$acl_cv_wl" | |
5354 | - libext="$acl_cv_libext" | |
5355 | - shlibext="$acl_cv_shlibext" | |
5356 | - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
5357 | - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
5358 | - hardcode_direct="$acl_cv_hardcode_direct" | |
5359 | - hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
5360 | - # Check whether --enable-rpath was given. | |
5361 | -if test "${enable_rpath+set}" = set; then : | |
5362 | - enableval=$enable_rpath; : | |
5363 | -else | |
5364 | - enable_rpath=yes | |
5365 | -fi | |
5366 | - | |
5367 | - | |
5368 | - | |
5369 | 5754 | |
5370 | 5755 | |
5371 | 5756 |
@@ -7507,14 +7892,14 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} | ||
7507 | 7892 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
7508 | 7893 | # The LINGUAS file contains the set of available languages. |
7509 | 7894 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
7510 | - test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
7895 | + test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" | |
7511 | 7896 | fi |
7512 | 7897 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
7513 | 7898 | # Hide the ALL_LINGUAS assigment from automake. |
7514 | 7899 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
7515 | 7900 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
7516 | 7901 | else |
7517 | - # The set of available languages was given in configure.in. | |
7902 | + # The set of available languages was given in configure.ac. | |
7518 | 7903 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
7519 | 7904 | fi |
7520 | 7905 | case "$ac_given_srcdir" in |