summaryrefslogtreecommitdiff
path: root/source4/lib/popt/libpopt.m4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-05 23:48:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:18 -0500
commitbbb725a8b6ac412c44495f59bea4afdefef885f4 (patch)
tree35ce9ff7f1e11dc4df471474f44b90d327d26955 /source4/lib/popt/libpopt.m4
parentea086c1cc894f3bf54688d9435174fe33ec6ffd2 (diff)
downloadsamba-bbb725a8b6ac412c44495f59bea4afdefef885f4.tar.gz
samba-bbb725a8b6ac412c44495f59bea4afdefef885f4.tar.bz2
samba-bbb725a8b6ac412c44495f59bea4afdefef885f4.zip
r18110: renamed config.m4 for popt
(This used to be commit 495fcdddb2ead6f2cd6d1479cade1f025997f8ba)
Diffstat (limited to 'source4/lib/popt/libpopt.m4')
-rw-r--r--source4/lib/popt/libpopt.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/lib/popt/libpopt.m4 b/source4/lib/popt/libpopt.m4
new file mode 100644
index 0000000000..19b99f2bd0
--- /dev/null
+++ b/source4/lib/popt/libpopt.m4
@@ -0,0 +1,14 @@
+dnl find the popt sources. This is meant to work both for
+dnl popt standalone builds, and builds of packages using popt
+poptdir=""
+for d in "$srcdir" "$srcdir/lib/popt" "$srcdir/popt" "$srcdir/../popt"; do
+ if test -f "$d/popt.c"; then
+ poptdir="$d"
+ AC_SUBST(poptdir)
+ break;
+ fi
+done
+POPTOBJ="popt.o findme.o poptconfig.o popthelp.o poptparse.o"
+AC_SUBST(POPTOBJ)
+
+AC_CHECK_HEADERS([float.h alloca.h])