File: slg_searchdirs.m4

package info (click to toggle)
tcpflow 1.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,732 kB
  • sloc: cpp: 18,138; sh: 780; ansic: 347; makefile: 226; python: 55
file content (26 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
if test x"${mingw}" != "xyes" ; then

  case $host in
    *mingw*)
       AC_MSG_NOTICE([Compiling under mingw; will not search other directories.])
       ;;
    *)
       AC_MSG_NOTICE(Compiling under $host.)
       # Bring additional directories where things might be found into our
       # search path. I don't know why autoconf doesn't do this by default
       for spfx in /usr/local /opt/local /sw /usr/local/ssl; do
         AC_MSG_NOTICE([checking ${spfx}/include])
         if test -d ${spfx}/include; then
           CPPFLAGS="$CPPFLAGS -I${spfx}/include"
           LDFLAGS="$LDFLAGS -L${spfx}/lib"
           AC_MSG_NOTICE([ *** ADDING ${spfx}/include to CPPFLAGS *** ])
           AC_MSG_NOTICE([ *** ADDING ${spfx}/lib to LDFLAGS *** ])
         fi
       done
       AC_MSG_NOTICE([ CPPFLAGS = ${CPPFLAGS} ])        
       AC_MSG_NOTICE([ LDFLAGS = ${LDFLAGS} ])        
       ;;
  esac
fi