source: mod_gnutls/m4/apreq.m4 @ abce298

debian/masterdebian/stretch-backportsjessie-backportsmsvaupstream
Last change on this file since abce298 was abce298, checked in by Nokis Mavrogiannopoulos <nmav@…>, 12 years ago

added new m4 directory

  • Property mode set to 100644
File size: 1.5 KB
Line 
1dnl Check for apreq2 libraries
2dnl CHECK_APREQ2(MINIMUM-VERSION, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND])
3AC_DEFUN([CHECK_APREQ2],
4[dnl
5
6AC_ARG_WITH(
7    apreq2,
8    [AC_HELP_STRING([--with-apreq2=PATH],[Path to your apreq2-config])],
9    ap_path="$withval",
10    ap_path="/usr"
11    )
12
13    if test -x $ap_path -a ! -d $ap_path; then
14        AP_BIN=$ap_path
15    else
16        test_paths="$ap_path:$ap_path/bin:$ap_path/sbin"
17
18        dnl Search the Apache Binary Directories too. Since we should set these in apache.m4
19        if test -d $AP_BINDIR; then
20            test_paths="${test_paths}:${AP_BINDIR}"
21        fi
22        if test -d $AP_SBINDIR; then
23            test_paths="${test_paths}:${AP_SBINDIR}"
24        fi
25
26        test_paths="${test_paths}:/usr/bin:/usr/sbin"
27        test_paths="${test_paths}:/usr/local/bin:/usr/local/sbin"
28        AC_PATH_PROG(AP_BIN, apreq2-config, no, [$test_paths])
29    fi
30
31    if test "$AP_BIN" = "no"; then
32        AC_MSG_ERROR([*** The apreq2-config  binary installed by apreq2 could not be found!])
33        AC_MSG_ERROR([*** Use the --with-apreq2 option with the full path to apreq2-config])
34        ifelse([$3], , AC_MSG_ERROR([apreq2 >=$1 is not installed.]), $3)
35    else
36        dnl TODO: Do a apreq2-config  Version check here...
37        APREQ_LIBS="`$AP_BIN --link-ld --ldflags --libs  2>/dev/null`"
38        APREQ_CFLAGS="`$AP_BIN  --includes   2>/dev/null`"
39        AC_SUBST(APREQ_LIBS)
40        AC_SUBST(APREQ_CFLAGS)
41        ifelse([$2], , AC_MSG_RESULT([yes]), $2)
42    fi
43])
Note: See TracBrowser for help on using the repository browser.