comparison configure.ac @ 4157:9c31ddae80a1

[gaim-migrate @ 4385] I'm commiting this so Robot101 will leave me alone. Here's some session management stuff. Happy Gnome People. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Tue, 31 Dec 2002 05:22:56 +0000
parents 98faba851ea9
children da30c4977c43
comparison
equal deleted inserted replaced
4156:d833bacc054f 4157:9c31ddae80a1
120 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) 120 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes)
121 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) 121 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes)
122 AC_ARG_ENABLE(gtkspell, [ --disable-gtkspell compile without GtkSpell automatic spell checking],,enable_gtkspell=yes) 122 AC_ARG_ENABLE(gtkspell, [ --disable-gtkspell compile without GtkSpell automatic spell checking],,enable_gtkspell=yes)
123 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) 123 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no)
124 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) 124 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes)
125 AC_ARG_ENABLE(sm, [ --disable-sm compile without X session management support],,enable_sm=yes)
125 AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no") 126 AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no")
126 127
127 if test "$enable_debug" = yes ; then 128 if test "$enable_debug" = yes ; then
128 CFLAGS="$CFLAGS -Wall -g3" 129 CFLAGS="$CFLAGS -Wall -g3"
129 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) 130 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
139 *** always available at http://www.gtk.org/.])) 140 *** always available at http://www.gtk.org/.]))
140 141
141 AC_PATH_PROG(gaimpath, gaim) 142 AC_PATH_PROG(gaimpath, gaim)
142 CFLAGS="$CFLAGS $GTK_CFLAGS -DGTK_ENABLE_BROKEN" 143 CFLAGS="$CFLAGS $GTK_CFLAGS -DGTK_ENABLE_BROKEN"
143 144
145 AC_PATH_X
146
144 dnl Check for XScreenSaver 147 dnl Check for XScreenSaver
145 if test "x$enable_xss" = "xyes" ; then 148 if test "x$enable_xss" = "xyes" ; then
146 AC_PATH_X
147 old_LIBS="$LIBS" 149 old_LIBS="$LIBS"
148 LIBS="$LIBS $GTK_LIBS -L$x_libraries" 150 LIBS="$LIBS $GTK_LIBS -L$x_libraries"
149 XSS_LIBS="no" 151 XSS_LIBS="no"
150 XSS_HEADERS="no" 152 XSS_HEADERS="no"
151 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="-L$x_libraries"],[],[-lX11 -lXext -lm]) 153 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="-L$x_libraries"],[],[-lX11 -lXext -lm])
164 else 166 else
165 XSS_LIBS="" 167 XSS_LIBS=""
166 enable_xss=no 168 enable_xss=no
167 fi 169 fi
168 AC_SUBST(XSS_LIBS) 170 AC_SUBST(XSS_LIBS)
171
172
173 dnl Check for X session management libs
174 if test "x$enable_sm" = "xyes"; then
175 enable_sm=no
176 AC_CHECK_LIB(SM, SmcSaveYourselfDone, found_sm_lib=true, , [-L$x_libraries -lICE])
177 if test "$found_sm_lib" = "true"; then
178 AC_CHECK_HEADERS(X11/SM/SMlib.h, SM_LIBS="-L$x_libraries -lSM -lICE" enable_sm=yes)
179 fi
180 else
181 SM_LIBS=""
182 enable_sm=no
183 fi
184 AC_SUBST(SM_LIBS)
185 if test "$enable_sm" = "yes"; then
186 AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.])
187 fi
169 188
170 189
171 AC_DEFUN(GC_TM_GMTOFF, 190 AC_DEFUN(GC_TM_GMTOFF,
172 [AC_REQUIRE([AC_STRUCT_TM])dnl 191 [AC_REQUIRE([AC_STRUCT_TM])dnl
173 AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff, 192 AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
408 echo Build with Perl support....... : $enable_perl 427 echo Build with Perl support....... : $enable_perl
409 echo 428 echo
410 echo Build with GtkSpell............: $enable_gtkspell 429 echo Build with GtkSpell............: $enable_gtkspell
411 echo 430 echo
412 echo Use XScreenSaver Extension.... : $enable_xss 431 echo Use XScreenSaver Extension.... : $enable_xss
432 echo Use X Session Management...... : $enable_sm
413 echo 433 echo
414 echo Build with ESD................ : $enable_esd 434 echo Build with ESD................ : $enable_esd
415 echo Build with NAS................ : $enable_nas 435 echo Build with NAS................ : $enable_nas
416 echo Build with ArtsC.............. : $enable_artsc 436 echo Build with ArtsC.............. : $enable_artsc
417 echo 437 echo