- Timestamp:
- Dec 23, 2005, 1:54:58 PM (19 years ago)
- Location:
- trunk/m4
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/m4/ax_check_header_lib.m4
r6270 r6271 1 dnl AX_CHECK_REQUIRED_HEADER_LIB([HEADER-NAME], [LIBRARY-NAME], [FUNCTION-IN-LIB], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], [LIB-WEB-PAGE])2 AC_DEFUN([AX_CHECK_REQUIRED_HEADER_LIB], [3 _header_check=""4 _lib_check=""5 6 AC_CHECK_HEADER([$1], [_header_check="yes"], [_header_check="no"])7 AC_CHECK_LIB([$2], [$3], [_lib_check="yes"], [_lib_check="no"])8 if [test x$_header_check = "xyes" && test "x$_lib_check" = "xyes"] ; then9 LIBS="$LIBS -l$2"10 $411 else12 echo "------------------"13 echo "LIBRARY $2 not found."14 echo "please install the $2-LIBRARY-package which can be found at $6"15 echo "------------------"16 $517 exit -118 fi19 ])20 21 1 22 2 dnl AX_CHECK_HEADER_LIB([HEADER-NAME], [LIBRARY-NAME], [FUNCTION-IN-LIB], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], [LIB-WEB-PAGE]) … … 27 7 AC_CHECK_HEADER([$1], [_header_check="yes"], [_header_check="no"]) 28 8 AC_CHECK_LIB([$2], [$3], [_lib_check="yes"], [_lib_check="no"]) 29 if [test x$_header_check= "xyes" && test "x$_lib_check" = "xyes"] ; then9 if [test "x$_header_check" = "xyes" && test "x$_lib_check" = "xyes"] ; then 30 10 LIBS="$LIBS -l$2" 31 11 $4 32 12 else 13 echo "no Support for $2" 33 14 $5 34 15 fi
Note: See TracChangeset
for help on using the changeset viewer.