@@ -62,25 +62,25 @@ if test "$PHP_%EXTNAMECAPS%" != "no"; then
62
62
dnl LIBNAME=%EXTNAMECAPS% # you may want to change this
63
63
dnl LIBSYMBOL=%EXTNAMECAPS% # you most likely want to change this
64
64
65
- dnl If you need to check for a particular library function
66
- dnl and you are using pkg-config:
65
+ dnl If you need to check for a particular library function (e.g. a conditional
66
+ dnl or version-dependent feature) and you are using pkg-config:
67
67
dnl PHP_CHECK_LIBRARY($LIBNAME, $LIBSYMBOL,
68
68
dnl [
69
- dnl PHP_EVAL_INCLINE($LIBFOO_CFLAGS)
70
- dnl PHP_EVAL_LIBLINE($LIBFOO_LIBS, %EXTNAMECAPS%_SHARED_LIBADD)
71
- dnl AC_DEFINE(HAVE_%EXTNAMECAPS%LIB, 1, [ ])
69
+ dnl AC_DEFINE(HAVE_%EXTNAMECAPS%_FEATURE, 1, [ ])
72
70
dnl ],[
73
- dnl AC_MSG_ERROR([wrong %EXTNAME% lib version or lib not found])
71
+ dnl AC_MSG_ERROR([FEATURE not supported by your %EXTNAME% library.])
72
+ dnl ], [
73
+ dnl $LIBFOO_LIBS
74
74
dnl ])
75
75
76
- dnl If you need to check for a particular library function
77
- dnl and you are not using pkg-config:
76
+ dnl If you need to check for a particular library function (e.g. a conditional
77
+ dnl or version-dependent feature) and you are not using pkg-config:
78
78
dnl PHP_CHECK_LIBRARY($LIBNAME, $LIBSYMBOL,
79
79
dnl [
80
80
dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $%EXTNAMECAPS%_DIR/$PHP_LIBDIR, %EXTNAMECAPS%_SHARED_LIBADD)
81
- dnl AC_DEFINE(HAVE_%EXTNAMECAPS%LIB,1, [ ])
81
+ dnl AC_DEFINE(HAVE_%EXTNAMECAPS%_FEATURE, 1, [ ])
82
82
dnl ],[
83
- dnl AC_MSG_ERROR([wrong %EXTNAME% lib version or lib not found ])
83
+ dnl AC_MSG_ERROR([FEATURE not supported by your %EXTNAME% library. ])
84
84
dnl ],[
85
85
dnl -L$%EXTNAMECAPS%_DIR/$PHP_LIBDIR -lm
86
86
dnl ])
0 commit comments