X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=configure.in;h=0fc4a012beb41153711280dc41afad2627b9b960;hb=c4aa9572a98ff7a31733af5228256daae503cbba;hp=6e4d7373cd17fef7db0d16b7a66dc7c8af1812d7;hpb=d05758f6eda21695e6215d60d28b9747d0b8aaa3;p=doldaconnect.git diff --git a/configure.in b/configure.in index 6e4d737..0fc4a01 100644 --- a/configure.in +++ b/configure.in @@ -23,7 +23,6 @@ AC_PROG_LIBTOOL DOLDA_AC_GROUP([Checking required libraries]) -AC_CHECK_LIB(pam, pam_start, , AC_MSG_ERROR([*** must have PAM])) AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** must have zlib])) AC_CHECK_LIB(bz2, BZ2_bzWriteOpen, , AC_MSG_ERROR([*** must have bzlib])) AC_CHECK_LIB(gdbm, gdbm_open, , AC_MSG_ERROR([*** must have gdbm])) @@ -33,6 +32,20 @@ experimental=no DOLDA_AC_GROUP([Checking optional libraries]) +# PAM check +pam_msg=no +AH_TEMPLATE(HAVE_PAM, [define to compile support for PAM authentication]) +AC_ARG_WITH(pam, [ --with-pam Enable PAM support]) +DOLDA_PKG([HAS_PAM], [test "$with_pam" = no && HAS_PAM=no], + [AC_CHECK_LIB(pam, pam_start, , [HAS_PAM=no])]) +if test "$with_pam" = yes -a "$HAS_PAM" = no; then + AC_MSG_ERROR([*** cannot find PAM on this system]) +fi +if test "$HAS_PAM" = yes; then + AC_DEFINE(HAVE_PAM) + pam_msg=yes +fi + # Gtk 2.0 check AC_ARG_WITH(gtk2, [ --with-gtk2 Enable GTK2 support]) DOLDA_PKG([HAS_GTK2], [test "$with_gtk2" = no && HAS_GTK2=no], @@ -54,6 +67,7 @@ if test "$with_libxml" = yes -a "$HAS_LIBXML" = no; then fi # libnotify check +AH_TEMPLATE(HAVE_NOTIFY, [define to compile support for libnotify]) AC_ARG_WITH(libnotify, [ --with-libnotify Enable libnotify support]) DOLDA_PKG([HAS_LIBNOTIFY], [test "$with_libnotify" = no && HAS_LIBNOTIFY=no], [PKG_CHECK_MODULES(LIBNOTIFY, libnotify, [], [HAS_LIBNOTIFY=no])], @@ -61,6 +75,9 @@ DOLDA_PKG([HAS_LIBNOTIFY], [test "$with_libnotify" = no && HAS_LIBNOTIFY=no], if test "$with_libnotify" = yes -a "$HAS_LIBNOTIFY" = no; then AC_MSG_ERROR([*** cannot find libnotify on this system]) fi +if test "$HAS_LIBNOTIFY" = yes; then + AC_DEFINE(HAVE_NOTIFY) +fi # libpanelapplet check DOLDA_PKG([HAS_LIBPANELAPPLET], [PKG_CHECK_MODULES(PANELAPPLET, libpanelapplet-2.0, [], [HAS_LIBPANELAPPLET=no])]) @@ -218,6 +235,7 @@ clients/gtk2/Makefile clients/tty/Makefile clients/gnome-trans-applet/Makefile clients/gaim/Makefile +clients/gui-shell/Makefile include/Makefile include/doldaconnect/Makefile doc/Makefile @@ -235,6 +253,7 @@ autopackage/dcguile.apspec echo echo "Dolda Connect has been configured with the following settings:" echo +echo " PAM support: $pam_msg" echo " Kerberos 5 support: $krb_msg" echo " GTK2 user interface: $enable_gtk2ui" echo " GTK2 progress bars: $enable_gtk2pbar"