--- projects/libukcprog/configure.in 2003/09/26 21:17:59 1.6 +++ projects/libukcprog/configure.in 2003/10/09 10:43:11 1.7 @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. # # configure.in for libukcprog -# $Id: configure.in,v 1.6 2003/09/26 21:17:59 tdb Exp $ +# $Id: configure.in,v 1.7 2003/10/09 10:43:11 tdb Exp $ # # Change these to change the package name and version @@ -10,7 +10,7 @@ AC_INIT(libukcprog, 1.0.1, bugs@i-scream.org) AM_INIT_AUTOMAKE(libukcprog, 1.0.1) # Revision number (automatically updated) -AC_REVISION($Revision: 1.6 $) +AC_REVISION($Revision: 1.7 $) # Might work with older autoconfs... but tested on 2.57 AC_PREREQ(2.57) @@ -32,6 +32,14 @@ solaris2.*) LIBS="$LIBS -lnsl -lsocket" ;; esac + +# User specified pkgconfig dir +AC_ARG_WITH([pkgconfig-dir], + [ --with-pkgconfig-dir=PATH pkgconfig lib directory (PREFIX/lib/pkgconfig)], + [ PKGCONFIG_DIR=$withval ], + [ PKGCONFIG_DIR="\$(libdir)/pkgconfig" ] +) +AC_SUBST(PKGCONFIG_DIR) # And finish by changing these files AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile libukcprog.pc])