[31139] trunk/base/configure.ac

jberry at macports.org jberry at macports.org
Fri Nov 16 14:24:17 PST 2007


Revision: 31139
          http://trac.macosforge.org/projects/macports/changeset/31139
Author:   jberry at macports.org
Date:     2007-11-16 14:24:16 -0800 (Fri, 16 Nov 2007)

Log Message:
-----------
Disable readline support by default. Configure with --enable-readline to enable readline support.

Modified Paths:
--------------
    trunk/base/configure.ac

Modified: trunk/base/configure.ac
===================================================================
--- trunk/base/configure.ac	2007-11-16 21:00:35 UTC (rev 31138)
+++ trunk/base/configure.ac	2007-11-16 22:24:16 UTC (rev 31139)
@@ -158,16 +158,19 @@
 MP_CHECK_X11
 
 # Check for readline
-AC_CHECK_LIB([readline], [readline], [
-              READLINE_LIBS=-lreadline
-              AC_DEFINE([HAVE_LIBREADLINE], [1], [Define to 1 if you have the `readline' library (-lreadline).])
-              ])
-AC_CHECK_DECLS([rl_username_completion_function,rl_filename_completion_function,rl_completion_matches,username_completion_function,filename_completion_function,completion_matches], [], [],
+AC_ARG_ENABLE(readline, AC_HELP_STRING([--enable-readline], [Enable addition of readline support, if readine present.]),
 [
-#include <stdio.h>
-#if HAVE_READLINE_READLINE_H
-# include <readline/readline.h>
-#endif
+	AC_CHECK_LIB([readline], [readline], [
+				  READLINE_LIBS=-lreadline
+				  AC_DEFINE([HAVE_LIBREADLINE], [1], [Define to 1 if you have the `readline' library (-lreadline).])
+				  ])
+	AC_CHECK_DECLS([rl_username_completion_function,rl_filename_completion_function,rl_completion_matches,username_completion_function,filename_completion_function,completion_matches], [], [],
+	[
+	#include <stdio.h>
+	#if HAVE_READLINE_READLINE_H
+	# include <readline/readline.h>
+	#endif
+	])
 ])
 AC_SUBST(READLINE_LIBS)
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071116/8a722454/attachment.html


More information about the macports-changes mailing list