From 9dfc5eafe983d6a51a9a1baa7e165af59b5cdc8c Mon Sep 17 00:00:00 2001 From: Chris Shoemaker Date: Fri, 23 Dec 2005 18:54:11 +0000 Subject: [PATCH] add configure options to disable the use of deprecated functions in glib, gtk, and gnome git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12175 57a11ea4-9604-0410-9ed3-97b8803252fd --- configure.in | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 9896d15520..1579d579a1 100644 --- a/configure.in +++ b/configure.in @@ -135,9 +135,6 @@ else AC_MSG_RESULT(no) fi AM_CONDITIONAL(HAVE_GLIB26, test "x$HAVE_GLIB26" = "xyes" ) -AC_DEFINE(G_DISABLE_DEPRECATED,1,[Don't use any deprecated glib functions.]) -#AC_DEFINE(GTK_DISABLE_DEPRECATED,1,[Don't use any deprecated gtk functions.]) -#AC_DEFINE(GNOME_DISABLE_DEPRECATED,1,[Don't use any deprecated gnome functions.]) AC_CHECK_HEADERS(dlfcn.h dl.h utmp.h locale.h mcheck.h unistd.h wctype.h) @@ -1260,6 +1257,31 @@ fi ### -------------------------------------------------------------------------- ### Variables ### Set up all the initial variable values... +AC_ARG_ENABLE(deprecated-glib, + [ --disable-deprecated-glib don't use deprecated glib functions], + [case "${enableval}" in + no) AC_DEFINE(G_DISABLE_DEPRECATED,1, + [Don't use deprecated glib functions]) ;; + yes) ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-deprecated-glib) ;; + esac]) +AC_ARG_ENABLE(deprecated-gtk, + [ --disable-deprecated-gtk don't use deprecated gtk functions], + [case "${enableval}" in + no) AC_DEFINE(GTK_DISABLE_DEPRECATED,1, + [Don't use deprecated gtk functions]) ;; + yes) ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-deprecated-gtk) ;; + esac]) +AC_ARG_ENABLE(deprecated-gnome, + [ --disable-deprecated-gnome don't use deprecated gnome functions], + [case "${enableval}" in + no) AC_DEFINE(GNOME_DISABLE_DEPRECATED,1, + [Don't use deprecated gnome functions]) ;; + yes) ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-deprecated-gnome) ;; + esac]) + AC_ARG_ENABLE(opt-style-install, [ --enable-opt-style-install install everything in subdirs of --prefix],