[Commit] libic autogen.sh,1.2,1.3

Carl Worth commit at keithp.com
Mon Aug 18 19:51:54 PDT 2003


Committed by: cworth

Update of /local/src/CVS/libic
In directory home.keithp.com:/tmp/cvs-serv23339

Modified Files:
	autogen.sh 
Log Message:
Added better warning if pkg-config is not installed.

Index: autogen.sh
===================================================================
RCS file: /local/src/CVS/libic/autogen.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- autogen.sh	10 Jul 2003 18:05:24 -0000	1.2
+++ autogen.sh	19 Aug 2003 01:51:52 -0000	1.3
@@ -5,6 +5,21 @@
 
 ARGV0=$0
 
+if test -z "$ACLOCAL_FLAGS"; then
+    acdir=`aclocal --print-ac-dir`
+    if [ ! -f $acdir/pkg.m4 ]; then
+	echo "$ARGV0: Error: Could not find pkg-config macros."
+	echo "        (Looked in $acdir/pkg.m4)"
+	echo "        If pkg.m4 is available in /another/directory, please set"
+	echo "        ACLOCAL_FLAGS=\"-I /another/directory\""
+	echo "        Otherwise, please install pkg-config."
+	echo ""
+	echo "pkg-config is available from:"
+	echo "http://www.freedesktop.org/software/pkgconfig/"
+	exit 1
+    fi
+fi
+
 if test -z "$*"; then
   echo "$ARGV0:	Note: \`./configure' will be run with no arguments."
   echo "		If you wish to pass any to it, please specify them on the"
@@ -19,7 +34,7 @@
 
 do_cmd libtoolize --force --copy
 
-do_cmd aclocal
+do_cmd aclocal ${ACLOCAL_FLAGS}
 
 do_cmd autoheader
 




More information about the Commit mailing list