From b41e01d92fe4947c3e19214d4496d59d566ee8aa Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 26 Apr 2011 14:54:10 +0100 Subject: [PATCH] initial uglification --- configure.in | 17 +++++++++++++++++ set_soenv.in | 1 + 2 files changed, 18 insertions(+) diff --git a/configure.in b/configure.in index 47f619039f12..7419fd41b3a2 100755 --- a/configure.in +++ b/configure.in @@ -358,6 +358,12 @@ AC_ARG_ENABLE(binfilter, ,enable_binfilter=no ) +AC_ARG_ENABLE(ugly, + AS_HELP_STRING([--enable-ugly], + [Enables ugly pieces of functionality.]), +,enable_ugly=no +) + AC_ARG_ENABLE(rpath, AS_HELP_STRING([--disable-rpath], [Disable the use of relative paths in shared libraries.]), @@ -1729,6 +1735,17 @@ else fi AC_SUBST(WITH_BINFILTER) +dnl Enable ugly pieces of code we're better off without +dnl =================================================================== +if test "$enable_ugly" = "yes"; then + BUILD_TYPE="$BUILD_TYPE DICTIONARIES" + SCPDEFS="$SCPDEFS -DWITH_UGLY" + ENABLE_UGLY=YES +else + ENABLE_UGLY=NO +fi +AC_SUBST(ENABLE_UGLY) + dnl =================================================================== dnl Disable rpath in shared libraries? dnl =================================================================== diff --git a/set_soenv.in b/set_soenv.in index 833c237d140c..fc010b0f0ab5 100755 --- a/set_soenv.in +++ b/set_soenv.in @@ -1788,6 +1788,7 @@ ToFile( "BUILD_TYPE", "$BUILD_TYPE", "e" ); ToFile( "VERBOSE", "@VERBOSE@", "e" ); ToFile( "ENABLE_ZENITY", "@ENABLE_ZENITY@", "e" ); ToFile( "ENABLE_EVOAB2", "@ENABLE_EVOAB2@", "e" ); +ToFile( "ENABLE_UGLY", "@ENABLE_UGLY@", "e" ); ToFile( "GOBJECT_CFLAGS", "@GOBJECT_CFLAGS@", "e" ); ToFile( "GOBJECT_LIBS", "@GOBJECT_LIBS@", "e" ); if ( '@ENABLE_RPATH@' eq "no" ) {