-AC_ARG_WITH(includedir, [ --with-includedir=dir add directory to include search path],
- CPPFLAGS=$CPPFLAGS" -I"$withval, T_FLAG="")
+AC_ARG_WITH(includedir, [ --with-includedir=add colon seperated list of directories to include search path],
+ CPPFLAGS=$CPPFLAGS" -I"`echo $withval|sed 's;\:; -I;g'`, T_FLAG="")
+
+AC_ARG_WITH(libdir, [ --with-libdir=add colon seperated list of directories to linker search path],
+ LDFLAGS=$LDFLAGS" -L"`echo $withval|sed 's;\:; -L;g'`, T_FLAG="")
+