Add /sw/{include,lib} to search paths if they exist
authorIvo Timmermans <ivo@lychnis.net>
Sun, 9 Jun 2002 15:58:05 +0000 (15:58 +0000)
committerIvo Timmermans <ivo@lychnis.net>
Sun, 9 Jun 2002 15:58:05 +0000 (15:58 +0000)
configure.in

index 390b3d0821f4837ddd8db42bc23db63f7eeb8542..7fc317f29443681ed5c0037c79f546ee45199d60 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-dnl $Id: configure.in,v 1.13.2.48 2002/06/09 15:26:10 zarq Exp $
+dnl $Id: configure.in,v 1.13.2.49 2002/06/09 15:58:05 zarq Exp $
 
 AC_INIT(src/tincd.c)
 AM_INIT_AUTOMAKE(tinc, 1.0-cvs)
@@ -65,6 +65,13 @@ esac
 
 AC_CACHE_SAVE
 
+if test -d /sw/include ; then
+  CPPFLAGS="$CPPFLAGS -I/sw/include"
+fi
+if test -d /sw/lib ; then
+  LIBS="$LIBS -L/sw/lib"
+fi
+
 dnl Checks for libraries.
 
 dnl Checks for header files.