summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-01-10 08:35:14 +0000
committerPierre Ossman <ossman@cendio.se>2006-01-10 08:35:14 +0000
commitff4cc6273d5db325433dbe01d4c7af242951c69e (patch)
tree920737ee94db42838f581160400bfd4fa59a3058
parentf5a2cf1e86c1b67c1bc8ae5e03f13b9b3d19eefb (diff)
Move library checks to a separate section and make sure it's before
function checks. It could miss functions because they are hidden in extra libs otherwise. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@434 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--configure.ac16
1 files changed, 12 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 815629f2..d450f4a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -162,16 +162,26 @@ AM_CONDITIONAL(HAVE_SIGXCPU, test "x$HAVE_SIGXCPU" = "x1")
AC_CHECK_DEFINE([INADDR_NONE], [netinet/in.h], [],
[AC_DEFINE([INADDR_NONE], [0xffffffff], [Define INADDR_NONE if not found in <netinet/in.h>])])
-#### Check for functions ####
+#### Check for libs ####
# ISO
AC_CHECK_LIB([m], [pow])
# POSIX
+AC_CHECK_LIB([rt], [sched_setscheduler])
+
+# BSD
+AC_CHECK_LIB([socket], [connect])
+
+# Non-standard
+AC_CHECK_LIB([iberty], [getopt_long])
+
+#### Check for functions ####
+
+# POSIX
AC_FUNC_FORK
AC_FUNC_GETGROUPS
AC_FUNC_SELECT_ARGTYPES
-AC_CHECK_LIB([rt], [sched_setscheduler])
AC_CHECK_FUNCS([getaddrinfo getgrgid_r getpwuid_r gettimeofday getuid \
inet_ntop nanosleep setpgid setsid sigaction sleep])
AC_CHECK_FUNCS([mkfifo], [HAVE_MKFIFO=1], [HAVE_MKFIFO=0])
@@ -185,14 +195,12 @@ AC_CHECK_FUNCS([readlink])
AC_CHECK_FUNCS([ctime_r usleep])
# BSD
-AC_CHECK_LIB([socket], [connect])
AC_CHECK_FUNCS([lstat])
# Non-standard
AC_CHECK_FUNCS(setresuid)
AC_CHECK_FUNCS(setreuid)
-AC_CHECK_LIB([iberty], [getopt_long])
#### POSIX threads ####