diff options
author | Roland McGrath <roland@hack.frob.com> | 2012-10-09 15:48:55 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-10-09 15:48:55 -0700 |
commit | 7f82e4f470fd74ab3cef53941dc13bc005618759 (patch) | |
tree | b8e1411d735f5cf8744ea4cef053dcdf6ac05790 /libidn/configure.in | |
parent | b8493de0ec56473c5e6e7738cdaf033c49221826 (diff) | |
download | glibc-7f82e4f470fd74ab3cef53941dc13bc005618759.tar.gz |
Automatically disable libidn add-on under --disable-shared.
Diffstat (limited to 'libidn/configure.in')
-rw-r--r-- | libidn/configure.in | 9 |
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])]) |