diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-01-10 09:13:48 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-01-10 09:13:48 +0000 |
commit | 5e5808ab08cacb7bff8ab2df584f2d0f3af0fca9 (patch) | |
tree | 60abbdb12724ec12ac7af49e3aa3631c1f52f725 | |
parent | ff4cc6273d5db325433dbe01d4c7af242951c69e (diff) |
Static libs bork the creation of dlls and AC_CHECK_LIB isn't very bright,
so we have to do a test first to see if getopt_long() is included in the
system libs.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@435 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d450f4a3..1a002e54 100644 --- a/configure.ac +++ b/configure.ac @@ -174,7 +174,10 @@ AC_CHECK_LIB([rt], [sched_setscheduler]) AC_CHECK_LIB([socket], [connect]) # Non-standard -AC_CHECK_LIB([iberty], [getopt_long]) + +# This magic is needed so we do not needlessly add static libs to the win32 +# build, disabling its ability to make dlls. +AC_CHECK_FUNCS([getopt_long], [], [AC_CHECK_LIB([iberty], [getopt_long])]) #### Check for functions #### |