diff options
author | Joel Brobecker <brobecker@gnat.com> | 2010-01-08 07:16:43 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2010-01-08 07:16:43 +0000 |
commit | 915d481cfb685dfe9f4f17f58e6da3b0a87e0d86 (patch) | |
tree | e4d2a897bcaf30e86765de5ae68ccf8cf1e26bfb /gdb/acinclude.m4 | |
parent | 8134c22cf9d38db3e1d76552f1aabb4fa4b1fc36 (diff) | |
download | gdb-915d481cfb685dfe9f4f17f58e6da3b0a87e0d86.tar.gz |
Cannot find in-tree libiconv.a after reconfigure.
* acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
that we can use, then cache the path to this archive.
* configure: Regenerate.
Diffstat (limited to 'gdb/acinclude.m4')
-rw-r--r-- | gdb/acinclude.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/acinclude.m4 b/gdb/acinclude.m4 index 84a908476ed..e3f604ecff6 100644 --- a/gdb/acinclude.m4 +++ b/gdb/acinclude.m4 @@ -192,6 +192,7 @@ AC_DEFUN([AM_ICONV], am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no am_cv_use_build_libiconv=no + am_cv_build_libiconv_path= # If libiconv is part of the build tree, then try using it over # any system iconv. @@ -207,12 +208,12 @@ AC_DEFUN([AM_ICONV], iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_use_build_libiconv=yes + am_cv_build_libiconv_path=$lib_dir/libiconv.a am_cv_lib_iconv=yes am_cv_func_iconv=yes) LIBS="$am_save_LIBS" CPPFLAGS="$am_save_CPPFLAGS" if test "$am_cv_use_build_libiconv" = "yes"; then - BUILD_LIBICONV_LIBDIR=$lib_dir break fi done @@ -260,7 +261,7 @@ AC_DEFUN([AM_ICONV], LIBICONV_INCLUDE= fi if test "$am_cv_use_build_libiconv" = yes; then - LIBICONV="$BUILD_LIBICONV_LIBDIR/libiconv.a" + LIBICONV="$am_cv_build_libiconv_path" LIBICONV_LIBDIR="" LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE" fi |