~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/search_for_lib.m4

  • Committer: Monty Taylor
  • Date: 2008-11-26 08:51:53 UTC
  • mto: (612.2.17 devel)
  • mto: This revision was merged to the branch mainline in revision 624.
  • Revision ID: mordred@opensolaris-20081126085153-3dzwl4q3ut4f3fha
Woot. No more extra CFLAGS on the command line!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl SEARCH_FOR_LIB(LIB, FUNCTIONS, FUNCTION,
2
 
dnl                [ACTION-IF-NOT-FOUND])
 
2
dnl                [ACTION-IF-NOT-FOUND],
 
3
dnl                [LIBS_TO_ADD])
3
4
 
4
5
AC_DEFUN([SEARCH_FOR_LIB],
5
6
[
22
23
    AC_CHECK_HEADERS([$3])
23
24
 
24
25
    my_save_LIBS="$LIBS"
25
 
    LIBS=""
 
26
    LIBS="$5"
26
27
    AC_CHECK_LIB($1, $2)
27
28
    AS_VAR_SET([libs_var],[${LIBS}])
28
29
    LIBS="${my_save_LIBS}"
34
35
      ])
35
36
  ])
36
37
  AS_IF([test "AS_VAR_GET([with_lib])" != yes],[
37
 
   AC_MSG_CHECKING(for $1 in $withval)
38
38
   for libloc in AS_VAR_GET([with_lib])
39
39
   do
 
40
    AC_MSG_CHECKING(for $1 in $libloc)
40
41
    if test -f $libloc/$3 -a -f $libloc/lib$1.a
41
42
    then
42
43
      owd=`pwd`