| 170 You must have the GLib 2.0 development headers installed to build Gaim. |
170 You must have the GLib 2.0 development headers installed to build Gaim. |
| 171 ])]) |
171 ])]) |
| 172 AC_SUBST(GLIB_CFLAGS) |
172 AC_SUBST(GLIB_CFLAGS) |
| 173 AC_SUBST(GLIB_LIBS) |
173 AC_SUBST(GLIB_LIBS) |
| 174 |
174 |
| |
175 AC_ARG_ENABLE(gtkui, [AC_HELP_STRING([--disable-gtkui], |
| |
176 [compile without GTK+ user interface])], |
| |
177 enable_gtkui="$enableval", enable_gtkui="yes") |
| |
178 AC_ARG_ENABLE(consoleui, [AC_HELP_STRING([--disable-consoleui], |
| |
179 [compile without console user interface])], |
| |
180 enable_consoleui=$enableval, enable_consoleui=yes) |
| |
181 |
| 175 dnl ####################################################################### |
182 dnl ####################################################################### |
| 176 dnl # Check for GTK+ 2.0 and other things used by the GTK UI |
183 dnl # Check for GTK+ 2.0 and other things used by the GTK UI |
| 177 dnl ####################################################################### |
184 dnl ####################################################################### |
| 178 AC_ARG_ENABLE(gtkgaim, |
|
| 179 [AC_HELP_STRING([--disable-gtkgaim], |
|
| 180 [compile without GtkGaim client])], |
|
| 181 enable_gtkui="$enableval", enable_gtkui="yes") |
|
| 182 AC_ARG_ENABLE(screensaver, |
185 AC_ARG_ENABLE(screensaver, |
| 183 [AC_HELP_STRING([--disable-screensaver], |
186 [AC_HELP_STRING([--disable-screensaver], |
| 184 [compile without X screensaver extension (used to detect idleness)])], |
187 [compile without X screensaver extension (used to detect idleness)])], |
| 185 enable_screensaver="no", enable_screensaver="yes") |
188 enable_screensaver="no", enable_screensaver="yes") |
| 186 AC_ARG_ENABLE(sm, |
189 AC_ARG_ENABLE(sm, |
| 342 AM_CONDITIONAL(ENABLE_CAP, test "x$enable_cap" = "xyes") |
345 AM_CONDITIONAL(ENABLE_CAP, test "x$enable_cap" = "xyes") |
| 343 |
346 |
| 344 dnl ####################################################################### |
347 dnl ####################################################################### |
| 345 dnl # Check for ncurses and other things used by the console UI |
348 dnl # Check for ncurses and other things used by the console UI |
| 346 dnl ####################################################################### |
349 dnl ####################################################################### |
| 347 AC_ARG_ENABLE(consolegaim, |
|
| 348 [AC_HELP_STRING([--disable-consolegaim], [compile without console client])], |
|
| 349 enable_console=$enableval, enable_console=yes) |
|
| 350 |
|
| 351 GNT_LIBS="" |
350 GNT_LIBS="" |
| 352 GNT_CFLAGS="" |
351 GNT_CFLAGS="" |
| 353 if test "x$enable_console" = "xyes"; then |
352 if test "x$enable_consoleui" = "xyes"; then |
| 354 AC_CHECK_LIB(ncursesw, initscr, [GNT_LIBS="-lncursesw"], [enable_console=no]) |
353 AC_CHECK_LIB(ncursesw, initscr, [GNT_LIBS="-lncursesw"], [enable_consoleui=no]) |
| 355 AC_CHECK_LIB(panelw, update_panels, [GNT_LIBS="$GNT_LIBS -lpanelw"], [enable_console=no]) |
354 AC_CHECK_LIB(panelw, update_panels, [GNT_LIBS="$GNT_LIBS -lpanelw"], [enable_consoleui=no]) |
| 356 |
355 |
| 357 LIBS_save="$LIBS" |
356 LIBS_save="$LIBS" |
| 358 LIBS="$LIBS $GNT_LIBS" |
357 LIBS="$LIBS $GNT_LIBS" |
| 359 |
358 |
| 360 dnl # Some distros put the headers in ncursesw/, some don't |
359 dnl # Some distros put the headers in ncursesw/, some don't |
| 404 AC_SUBST(X11_CFLAGS) |
403 AC_SUBST(X11_CFLAGS) |
| 405 fi |
404 fi |
| 406 |
405 |
| 407 AC_SUBST(GNT_LIBS) |
406 AC_SUBST(GNT_LIBS) |
| 408 AC_SUBST(GNT_CFLAGS) |
407 AC_SUBST(GNT_CFLAGS) |
| 409 AM_CONDITIONAL(ENABLE_GNT, test "x$enable_console" = "xyes") |
408 AM_CONDITIONAL(ENABLE_GNT, test "x$enable_consoleui" = "xyes") |
| 410 |
409 |
| 411 AC_CHECK_FUNC(wcwidth, [AC_DEFINE([HAVE_WCWIDTH], [1], [Define to 1 if you have wcwidth function.])]) |
410 AC_CHECK_FUNC(wcwidth, [AC_DEFINE([HAVE_WCWIDTH], [1], [Define to 1 if you have wcwidth function.])]) |
| 412 |
411 |
| 413 dnl ####################################################################### |
412 dnl ####################################################################### |
| 414 dnl # Check for LibXML2 (required) |
413 dnl # Check for LibXML2 (required) |
| 760 AC_ARG_WITH(zephyr, [AC_HELP_STRING([--with-zephyr=PREFIX], [compile Zephyr plugin against external libzephyr])], zephyr="$withval", zephyr="no") |
759 AC_ARG_WITH(zephyr, [AC_HELP_STRING([--with-zephyr=PREFIX], [compile Zephyr plugin against external libzephyr])], zephyr="$withval", zephyr="no") |
| 761 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") |
760 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") |
| 762 |
761 |
| 763 AC_CHECK_HEADER(sys/utsname.h) |
762 AC_CHECK_HEADER(sys/utsname.h) |
| 764 AC_CHECK_FUNC(uname) |
763 AC_CHECK_FUNC(uname) |
| 765 |
|
| 766 AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], |
|
| 767 [compile with debugging support])], , enable_debug=no) |
|
| 768 if test "x$enable_debug" = "xyes" ; then |
|
| 769 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) |
|
| 770 fi |
|
| 771 |
|
| 772 AC_ARG_ENABLE(fatal-asserts, [AC_HELP_STRING([--enable-fatal-asserts], |
|
| 773 [make assertions fatal (useful for debugging)])], , enable_fatal_asserts=no) |
|
| 774 if test "x$enable_fatal_asserts" = "xyes" ; then |
|
| 775 AC_DEFINE(GAIM_FATAL_ASSERTS, 1, [Define to make assertions fatal (useful for debugging).]) |
|
| 776 fi |
|
| 777 |
764 |
| 778 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes) |
765 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes) |
| 779 |
766 |
| 780 if test "x$GCC" = "xyes"; then |
767 if test "x$GCC" = "xyes"; then |
| 781 dnl We enable -Wall later. |
768 dnl We enable -Wall later. |
| 1820 fi |
1807 fi |
| 1821 |
1808 |
| 1822 AC_SUBST(enable_doxygen) |
1809 AC_SUBST(enable_doxygen) |
| 1823 AC_SUBST(enable_dot) |
1810 AC_SUBST(enable_dot) |
| 1824 AM_CONDITIONAL(HAVE_DOXYGEN, test "x$enable_doxygen" = "xyes") |
1811 AM_CONDITIONAL(HAVE_DOXYGEN, test "x$enable_doxygen" = "xyes") |
| |
1812 |
| |
1813 AC_ARG_ENABLE(debug, [AC_HELP_STRING([--enable-debug], |
| |
1814 [compile with debugging support])], , enable_debug=no) |
| |
1815 if test "x$enable_debug" = "xyes" ; then |
| |
1816 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) |
| |
1817 fi |
| |
1818 |
| |
1819 AC_ARG_ENABLE(fatal-asserts, [AC_HELP_STRING([--enable-fatal-asserts], |
| |
1820 [make assertions fatal (useful for debugging)])], , enable_fatal_asserts=no) |
| |
1821 if test "x$enable_fatal_asserts" = "xyes" ; then |
| |
1822 AC_DEFINE(GAIM_FATAL_ASSERTS, 1, [Define to make assertions fatal (useful for debugging).]) |
| |
1823 fi |
| 1825 |
1824 |
| 1826 AC_CONFIG_COMMANDS_PRE([ |
1825 AC_CONFIG_COMMANDS_PRE([ |
| 1827 if test -e VERSION; then |
1826 if test -e VERSION; then |
| 1828 cp -p VERSION VERSION.ac-save |
1827 cp -p VERSION VERSION.ac-save |
| 1829 fi |
1828 fi |
| 1896 echo |
1895 echo |
| 1897 echo $PACKAGE $VERSION |
1896 echo $PACKAGE $VERSION |
| 1898 |
1897 |
| 1899 echo |
1898 echo |
| 1900 echo Build GTK+ 2.x UI............. : $enable_gtkui |
1899 echo Build GTK+ 2.x UI............. : $enable_gtkui |
| 1901 echo Build console UI.............. : $enable_console |
1900 echo Build console UI.............. : $enable_consoleui |
| 1902 echo |
1901 echo |
| 1903 echo Protocols to build dynamically : $DYNAMIC_PRPLS |
1902 echo Protocols to build dynamically : $DYNAMIC_PRPLS |
| 1904 echo Protocols to link statically.. : $STATIC_PRPLS |
1903 echo Protocols to link statically.. : $STATIC_PRPLS |
| 1905 echo |
1904 echo |
| 1906 echo Build with GStreamer support.. : $enable_gst |
1905 echo Build with GStreamer support.. : $enable_gst |