From ff4cc6273d5db325433dbe01d4c7af242951c69e Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 10 Jan 2006 08:35:14 +0000 Subject: [PATCH] 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 --- configure.ac | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 815629f..d450f4a 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 ])]) -#### 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 #### -- 2.7.4