summaryrefslogtreecommitdiff
path: root/aclocal.m4
blob: 8146300da54ad02567356e29ee9129ef4a8f617d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
AC_DEFUN(AC_CHECK_EXTRA,[
  AC_ARG_WITH(
    extra-libs,
    [  --with-extra-libs=DIR   comma separated list of additional lib directories ],
    [
      EXTRA=`echo $withval | sed -e ':a;s/,/ -L/;t a'`
      LDFLAGS="$LDFLAGS -L$EXTRA"
    ]
  )
  AC_ARG_WITH(
    extra-includes,
    [  --with-extra-includes=DIR  comma separated list of additional include directories ],
    [
      EXTRA=`echo $withval | sed -e ':a;s/,/ -I/;t a'`
      CPPFLAGS="$CPPFLAGS -I$EXTRA"
    ]
  )
])