]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Emit a "checking whether to activate relocatable installation" message.
authorBruno Haible <bruno@clisp.org>
Mon, 7 Apr 2003 10:47:22 +0000 (10:47 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:21 +0000 (12:10 +0200)
New macro AC_RELOCATABLE_NOP.

gettext-tools/m4/ChangeLog
gettext-tools/m4/relocatable.m4

index 41af4536f4db58ab1cfddb8e0eafc7a458ee99f4..23a206d0ad5666045cdda6bf5cd1266c78fa9db4 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-06  Bruno Haible  <bruno@clisp.org>
+
+       * relocatable.m4 (AC_RELOCATABLE_NOP): New macro.
+       (AC_RELOCATABLE_LIBRARY): Use it.
+
 2003-04-05  Bruno Haible  <bruno@clisp.org>
 
        * canonicalize.m4 (gl_CANONICALIZE): Use AC_CHECK_FUNCS, so that
index d8888989ec595f08d7b3659eaa4340d3acf1770e..febd0f5e4b3a15c071a337a076b3cb38c44ecaa6 100644 (file)
@@ -54,6 +54,21 @@ AC_DEFUN([AC_RELOCATABLE],
 dnl Support for relocatable libraries.
 AC_DEFUN([AC_RELOCATABLE_LIBRARY],
 [
+  AC_REQUIRE([AC_RELOCATABLE_NOP])
+  dnl Easier to put this here once, instead of into the DEFS of each Makefile.
+  if test "X$prefix" = "XNONE"; then
+    reloc_final_prefix="$ac_default_prefix"
+  else
+    reloc_final_prefix="$prefix"
+  fi
+  AC_DEFINE_UNQUOTED([INSTALLPREFIX], ["${reloc_final_prefix}"],
+    [Define to the value of ${prefix}, as a string.])
+])
+
+dnl Support for relocatable packages for which it is a nop.
+AC_DEFUN([AC_RELOCATABLE_NOP],
+[
+  AC_MSG_CHECKING([whether to activate relocatable installation])
   AC_ARG_ENABLE(relocatable,
     [  --enable-relocatable    install a package that can be moved in the filesystem],
     [if test "$enableval" != no; then
@@ -63,14 +78,7 @@ AC_DEFUN([AC_RELOCATABLE_LIBRARY],
      fi
     ], RELOCATABLE=no)
   AC_SUBST(RELOCATABLE)
-  dnl Easier to put this here once, instead of into the DEFS of each Makefile.
-  if test "X$prefix" = "XNONE"; then
-    reloc_final_prefix="$ac_default_prefix"
-  else
-    reloc_final_prefix="$prefix"
-  fi
-  AC_DEFINE_UNQUOTED([INSTALLPREFIX], ["${reloc_final_prefix}"],
-    [Define to the value of ${prefix}, as a string.])
+  AC_MSG_RESULT([$RELOCATABLE])
 ])
 
 dnl Determine the platform dependent parameters needed to use relocatability: