]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Add --with-libiconv-prefix option.
authorBruno Haible <bruno@clisp.org>
Wed, 23 May 2001 20:22:56 +0000 (20:22 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 28 Jun 2009 14:35:50 +0000 (16:35 +0200)
m4/ChangeLog
m4/iconv.m4

index e75ebd1b7183812c0ec47a76477585ab66463763..3004f2a4ac9bcca406945ece274e7d748db3d532 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-23  Bruno Haible  <haible@clisp.cons.org>
+
+       * iconv.m4 (AM_ICONV): Accept --with-libiconv-prefix option.
+
 2001-05-17  Bruno Haible  <haible@clisp.cons.org>
 
        * gettext.m4 (AM_WITH_NLS): Fix dcgettext test. Always add $LIBICONV
index 4a01420869b0727c91bb1bd1c876a2d8a59e8a2e..17237344afb7a422d28feef70bd6c6bfc1ce8f7f 100644 (file)
@@ -1,4 +1,4 @@
-#serial AM1
+#serial AM2
 
 dnl From Bruno Haible.
 
@@ -6,6 +6,15 @@ AC_DEFUN([AM_ICONV],
 [
   dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
   dnl those with the standalone portable GNU libiconv installed).
+
+  AC_ARG_WITH([libiconv-prefix],
+[  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib], [
+    for dir in `echo "$withval" | tr : ' '`; do
+      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
+      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
+    done
+   ])
+
   AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
     am_cv_func_iconv="no, consider installing GNU libiconv"
     am_cv_lib_iconv=no