[PATCH app-xdm 3/3] config: add "Check for system library functions"

Gaetan Nadon memsize at videotron.ca
Wed Oct 20 16:22:54 PDT 2010


Relocate the existing AC_CHECK_FUNCS statement.

The functions are checked after the libraries checks to benefit
from the $LIBS updated values.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 configure.ac |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1fd828d..870d0f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -92,6 +92,15 @@ AC_CHECK_HEADERS([grp.h syslog.h sys/param.h])
 # Checks for typedefs, structures, and compiler characteristics.
 AC_TYPE_SIGNAL
 
+#------------------------------------------------------------------------------
+#			Check for system library functions
+#
+# Required system libraries have been searched for and are listed in $LIBS
+#------------------------------------------------------------------------------
+AC_CHECK_FUNCS([daemon sigaction openlog asprintf])
+
+#------------------------------------------------------------------------------
+
 m4_ifdef([AM_SILENT_RULES],[HAVE_AM_SILENT_RULES=yes])
 AM_CONDITIONAL(HAVE_AM_SILENT_RULES, test x$HAVE_AM_SILENT_RULES != x)
 
@@ -132,8 +141,6 @@ if test "x$HAS_SETUSERCONTEXT" = "xyes" ; then
 		[Define to 1 if you have the 'setusercontext' function.])
 fi
 
-AC_CHECK_FUNCS([daemon sigaction openlog asprintf])
-
 XTRANS_CONNECTION_FLAGS
 dnl Sets $SECURE_RPC to "yes" or "no"
 XTRANS_SECURE_RPC_FLAGS
-- 
1.6.0.4



More information about the xorg-devel mailing list