source: trunk/dports/security/medusa/files/patch-configure.in.diff @ 82148

Last change on this file since 82148 was 82148, checked in by ryandesign@…, 6 years ago

medusa: fix replacing /usr/local with prefix; add pcre dependency; force subversion variant always on since subversion libraries are always used even when not requested

File size: 2.4 KB
  • configure.in

    old new  
    3232AC_ARG_WITH(postgresql, AC_HELP_STRING([--with-postgresql=prefix], [Prefix for postgresql include directory (default = /usr)]), [postgresql_prefix="$withval"], [postgresql_prefix="/usr"])
    3333AC_ARG_WITH(afpfsng, AC_HELP_STRING([--with-afpfsng=prefix], [Prefix for afpfs-ng include directory (default = /usr)]), [afpfsng_prefix="$withval"], [afpfsng_prefix="/usr"])
    3434
    35 dnl FreeBSD was not looking in /usr/local...
    3635dnl AC_SEARCH_LIBS ?
    37 if test -d "/usr/local/lib"
    38   then LDFLAGS="$LDFLAGS -L/usr/local/lib"
    39 fi
    40 if test -d "/usr/local/ssl/lib"
    41   then LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib"
     36if test -d "@PREFIX@/ssl/lib"
     37  then LDFLAGS="$LDFLAGS -L@PREFIX@/ssl/lib"
    4238fi
    4339
    4440CFLAGS="$CFLAGS -fPIC"
    45 CFLAGS="$CFLAGS -I/usr/local/include -I/usr/local/ssl/include -I${subversion_prefix}/include/subversion-1 \
     41CFLAGS="$CFLAGS -I@PREFIX@/ssl/include -I${subversion_prefix}/include/subversion-1 \
    4642-I${postgresql_prefix}/include/postgresql -I${postgresql_prefix}/include/pgsql -I${afpfsng_prefix}/include/afpfs-ng"
    4743
    4844AC_CHECKING([for pthread support])
    4945AC_CHECK_LIB(pthread, main, [], [AC_MSG_ERROR([ *** Application requires pthread support *** ])])
    5046
    51 dnl Mac OS X pcre header
    52 if test -f "/usr/include/php/ext/pcre/pcrelib/pcre.h"
    53   then CFLAGS="$CFLAGS -I/usr/include/php/ext/pcre/pcrelib/pcre.h"
    54 else
    55   if test -d "/Developer/SDKs/MacOSX10.5.sdk/usr/include/php/ext/pcre/pcrelib"
    56     then CFLAGS="$CFLAGS -I/Developer/SDKs/MacOSX10.5.sdk/usr/include/php/ext/pcre/pcrelib"
    57   fi
    58 fi
    59 
    60 dnl MacPorts
    61 if test -d "/opt/local"; then
    62   CFLAGS="$CFLAGS -I/opt/local/include"
    63   LDFLAGS="$LDFLAGS -L/opt/local/lib"
    64 fi
    6547
    6648AC_CHECKING([for pcre (Perl Compatible Regular Expressions) support])
    6749AC_CHECK_HEADER([pcre.h],
     
    565547if test x"$check_module_ssh" = "xtrue"; then
    566548  if test -f "/usr/lib/libssh2.so"; then
    567549    LIBSSH2_PATH="/usr/lib/libssh2.so"
    568   elif test -f "/usr/local/lib/libssh2.so"; then
    569     LIBSSH2_PATH="/usr/local/lib/libssh2.so"
    570   elif test -f "/opt/local/lib/libssh2.dylib"; then
    571     LIBSSH2_PATH="/opt/local/lib/libssh2.dylib"
     550  elif test -f "@PREFIX@/lib/libssh2.so"; then
     551    LIBSSH2_PATH="@PREFIX@/lib/libssh2.so"
     552  elif test -f "@PREFIX@/lib/libssh2.dylib"; then
     553    LIBSSH2_PATH="@PREFIX@/lib/libssh2.dylib"
    572554  fi 
    573555
    574556  dnl Use otool on Mac OS X
Note: See TracBrowser for help on using the repository browser.