diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-07-08 15:17:37 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-07-08 15:17:37 +0200 |
commit | c9e442aeccd87748d9e87bf357bd8337e699a9b0 (patch) | |
tree | a1b51d455c0873872c418861e8ab743e59f46972 | |
parent | fd7fc91e1274812e217c7201153c556377e449da (diff) |
configure: Call a function from libgeoip in check_libgeoip()
In order to cause the linker to get called and thus the check for the
presence of the library (not just the headers) to be performed, call
GeoIP_new(). Also pass the proper linker flag to $CC.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rwxr-xr-x | configure | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -184,10 +184,12 @@ void main(void) GEOIP_ASNUM_EDITION, GEOIP_ASNUM_EDITION_V6, }; + + geoip = GeoIP_new(0); } EOF - $CC -o $TMPDIR/geoiptest $TMPDIR/geoiptest.c >> $TMPDIR/config.log 2>&1 + $CC -o $TMPDIR/geoiptest $TMPDIR/geoiptest.c -lGeoIP >> $TMPDIR/config.log 2>&1 if [ ! -x $TMPDIR/geoiptest ] ; then echo "[NO]" MISSING_DEFS=1 |