comparison configure.in @ 1913:5d32be499016

The GTK MDI code is filling up with deprecated calls and it is becoming a hassle to maintain, it still builds just with many warnings... however since MDI is considered deprecated due to lack of support on MacOS X, I am making the GTK MDI code build optional with the --with-deprecated configure switch. MDI code will still be built on Windows and OS/2... With stub code on MacOS X... GTK will require the --with-deprecated switch to build the code.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 19 Jun 2016 18:08:52 +0000
parents 495793f9b503
children dee122916f3c
comparison
equal deleted inserted replaced
1912:5035750bcc65 1913:5d32be499016
51 dnl ---------------------- check for '--with-gtk3' switch ----------------- 51 dnl ---------------------- check for '--with-gtk3' switch -----------------
52 AC_ARG_WITH(gtk3, 52 AC_ARG_WITH(gtk3,
53 [ --with-gtk3 specify this to build with GTK+ 3.x if available], 53 [ --with-gtk3 specify this to build with GTK+ 3.x if available],
54 [with_gtk3=$withval], 54 [with_gtk3=$withval],
55 [with_gtk3=no], 55 [with_gtk3=no],
56 )
57
58 dnl ---------------------- check for '--with-deprecated' switch -----------------
59 AC_ARG_WITH(deprecated,
60 [ --with-deprecated specify this to build with deprecated functions],
61 [with_deprecated=$withval],
62 [with_deprecated=no],
56 ) 63 )
57 64
58 dnl ---------------------- default targets to build ----------------- 65 dnl ---------------------- default targets to build -----------------
59 if test $with_dwcompat = yes; then 66 if test $with_dwcompat = yes; then
60 COMPAT_OBJECT="dwcompat.o" 67 COMPAT_OBJECT="dwcompat.o"
302 ) 309 )
303 fi 310 fi
304 311
305 CFLAGS="$CFLAGS $GTK_CFLAGS $GDK_IMLIB_FLAGS $MOZEMBED_CFLAGS" 312 CFLAGS="$CFLAGS $GTK_CFLAGS $GDK_IMLIB_FLAGS $MOZEMBED_CFLAGS"
306 313
314 if test $with_deprecated = yes; then
315 CFLAGS="$CFLAGS -DDW_INCLUDE_DEPRECATED"
316 fi
307 BROWSER_OBJECT="" 317 BROWSER_OBJECT=""
308 if test x"$MOZEMBED_CFLAGS" != x; then 318 if test x"$MOZEMBED_CFLAGS" != x; then
309 SAVE_LIBS="$LIBS" 319 SAVE_LIBS="$LIBS"
310 LIBS="$RPATH $LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS $MOZEMBED_LIBS" 320 LIBS="$RPATH $LIBS $GTK_LIBS $PTHREAD_LIBS $GDK_IMLIB_LIBS $MOZEMBED_LIBS"
311 BROWSER_OBJECT="browser.o" 321 BROWSER_OBJECT="browser.o"