summary refs log tree commit diff
path: root/libidn/configure.in
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-10-09 15:48:55 -0700
committerRoland McGrath <roland@hack.frob.com>2012-10-09 15:48:55 -0700
commit7f82e4f470fd74ab3cef53941dc13bc005618759 (patch)
treeb8e1411d735f5cf8744ea4cef053dcdf6ac05790 /libidn/configure.in
parentb8493de0ec56473c5e6e7738cdaf033c49221826 (diff)
downloadglibc-7f82e4f470fd74ab3cef53941dc13bc005618759.tar.gz
glibc-7f82e4f470fd74ab3cef53941dc13bc005618759.tar.xz
glibc-7f82e4f470fd74ab3cef53941dc13bc005618759.zip
Automatically disable libidn add-on under --disable-shared.
Diffstat (limited to 'libidn/configure.in')
-rw-r--r--libidn/configure.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/libidn/configure.in b/libidn/configure.in
index 38b9ad7fac..16740ffb92 100644
--- a/libidn/configure.in
+++ b/libidn/configure.in
@@ -2,7 +2,10 @@ dnl glibc configure fragment for libidn add-on
 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
 
 libc_add_on_canonical=
-libc_add_on_subdirs=.
 
-# Get this defined in config.h for main source code to test.
-AC_DEFINE([HAVE_LIBIDN])
+AS_IF([test "$shared" = yes], [
+  libc_add_on_subdirs=.
+
+  # Get this defined in config.h for main source code to test.
+  AC_DEFINE([HAVE_LIBIDN])
+], [AC_MSG_WARN([libidn add-on ignored with --disable-shared])])