b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/configure.in |
| 2 | +++ b/configure.in |
| 3 | @@ -24,11 +24,6 @@ if test -n "$x_libraries" && test "x$x_l |
| 4 | LDFLAGS="$LDFLAGS -L$x_libraries" |
| 5 | fi |
| 6 | |
| 7 | -# May be equired for BSD |
| 8 | -LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 9 | - |
| 10 | -CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 11 | - |
| 12 | #Check for Darwin sw directory |
| 13 | AC_CHECK_FILE(/sw/lib, LDFLAGS="$LDFLAGS -L/sw/lib") |
| 14 | AC_CHECK_FILE(/sw/include, CPPFLAGS="$CPPFLAGS -I/sw/include") |
| 15 | @@ -55,8 +50,7 @@ AC_CHECK_LIB(pcap, pcap_open_live, , |
| 16 | [AC_CHECK_LIB(wpcap, pcap_open_live, ,[AC_MSG_ERROR([Bandwidthd requires but cannot find libpcap])])]) |
| 17 | |
| 18 | # Optional Library |
| 19 | -AC_CHECK_FILE(/usr/lib, LDFLAGS="$LDFLAGS -L/usr/lib") |
| 20 | -AC_CHECK_FILE(/usr/include/pgsql, CPPFLAGS="$CPPFLAGS -I/usr/include/pgsql") |
| 21 | +AC_CHECK_FILE(/usr/local/pgsql/include, CPPFLAGS="$CPPFLAGS -I/usr/local/pgsql/include") |
| 22 | AC_CHECK_LIB(pq, PQconnectdb, |
| 23 | [AC_CHECK_LIB(pq,PQexecParams, ,AC_MSG_WARN([libpq exists but is too old... bandwidthd requires support for PQexecParams]))]) |
| 24 | AC_CHECK_LIB(sqlite3, sqlite3_open, ,AC_MSG_WARN([sqlite3 is recommended for storage of data but cannot be found])) |