gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r3781 - GNUnet


From: durner
Subject: [GNUnet-SVN] r3781 - GNUnet
Date: Wed, 15 Nov 2006 12:38:30 -0800 (PST)

Author: durner
Date: 2006-11-15 12:38:27 -0800 (Wed, 15 Nov 2006)
New Revision: 3781

Modified:
   GNUnet/configure.ac
Log:
detection of older dialog versions

Modified: GNUnet/configure.ac
===================================================================
--- GNUnet/configure.ac 2006-11-15 20:37:05 UTC (rev 3780)
+++ GNUnet/configure.ac 2006-11-15 20:38:27 UTC (rev 3781)
@@ -376,6 +376,34 @@
 fi
 
 # GNUnet Setup
+dialog=0
+AC_MSG_CHECKING([for dialog 1.0-20051207])
+AC_ARG_WITH(dialog,
+   [  --with-dialog=PFX    Base of dialog installation],
+   [AC_MSG_RESULT([$with_dialog])
+    case $with_dialog in
+      no)
+        ;;
+      yes)
+        AC_CHECK_HEADERS(dialog.h,
+          AC_CHECK_LIB([dialog], [dialog_menu],
+            dialog=1))
+        ;;
+      *)
+        LDFLAGS="-L$with_dialog/lib $LDFLAGS"
+        CPPFLAGS="-I$with_dialog/include $CPPFLAGS"
+        AC_CHECK_HEADERS(dialog.h,
+          AC_CHECK_LIB([dialog], [dialog_menu],
+            EXT_LIB_PATH="-L$with_dialog/lib $EXT_LIB_PATH"
+            dialog=1))
+        ;;
+    esac
+   ],
+   [AC_MSG_RESULT([--with-dialog not specified])
+    AC_CHECK_HEADERS(dialog.h,
+     AC_CHECK_LIB([dialog], [dialog_menu],
+      dialog=1))])
+
 AC_CHECK_HEADER([dialog.h],curses=1,curses=0)
 AM_CONDITIONAL(HAVE_DIALOG, test x$curses = x1)
 AC_DEFINE_UNQUOTED([HAVE_CURSES], $curses, [We have ncurses])
@@ -581,6 +609,11 @@
   AC_MSG_NOTICE([NOTICE: Guile not found, gnunet-download-manager will not be 
installed.])
 fi
 
+if test "$dialog" != 1
+then
+ AC_MSG_NOTICE([curses based gnunet-setup frontends will not be installed.])
+fi
+
 if test "$ipv6" = "0"
 then
   AC_MSG_NOTICE([NOTICE: IPv6 support will NOT be compiled.])





reply via email to

[Prev in Thread] Current Thread [Next in Thread]