From: root Date: Mon, 3 Jan 2005 12:00:50 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?p=dana%2Furxvt.git;a=commitdiff_plain;h=961c3780c3c0f89bf31deb0c2bdd75f57171ca40 *** empty log message *** --- diff --git a/autoconf/config.h.in b/autoconf/config.h.in index faed8d8..3932c77 100644 --- a/autoconf/config.h.in +++ b/autoconf/config.h.in @@ -178,6 +178,18 @@ /* Define if you have the Xft library (-lXft). */ #undef HAVE_LIBXFT +/* Use all glibc features. */ +#undef _GNU_SOURCE + +/* Needed to get declarations for msg_control and msg_controllen on Solaris */ +#undef _XOPEN_SOURCE_EXTENDED + +/* Needed to get declarations for msg_control and msg_controllen on Solaris */ +#undef _XOPEN_SOURCE + +/* Needed to get declarations for msg_control and msg_controllen on Solaris */ +#undef __EXTENSIONS__ + /* Build shared library version - specify via configure only */ #undef LIBRXVT diff --git a/autoconf/configure.in b/autoconf/configure.in index d7a68df..587ca3a 100644 --- a/autoconf/configure.in +++ b/autoconf/configure.in @@ -7,6 +7,8 @@ AC_CONFIG_SRCDIR([src/feature.h]) AC_CONFIG_AUX_DIR(autoconf) AC_CONFIG_HEADER(config.h:autoconf/config.h.in) +AC_CANONICAL_HOST + dnl RXVT version changequote(, )dnl VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` @@ -42,7 +44,15 @@ if test x$GCC = xyes && test x$GXX = xyes; then fi AC_SUBST(LINKER,[$LINKER]) -CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE=2" +AC_DEFINE(_GNU_SOURCE, 1, Use all glibc features.) + +case $host in + *-*-solaris* ) + AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris) + AC_DEFINE(_XOPEN_SOURCE, 2, Needed to get declarations for msg_control and msg_controllen on Solaris) + AC_DEFINE(__EXTENSIONS__, 1, Needed to get declarations for msg_control and msg_controllen on Solaris) + ;; +esac dnl if test x$GXX = xyes; then dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now...