summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewt <ewt>1998-02-11 08:59:35 +0000
committerewt <ewt>1998-02-11 08:59:35 +0000
commitf69681ffac167e7bfe2f17b87f580d9f06a9e7c1 (patch)
treef66ee4137d707fc2884e9018294af44744c1dd3c
parentbbe3766c26a8d3b72ebaf0132c1b6c65adb163e6 (diff)
downloadlibpopt-f69681ffac167e7bfe2f17b87f580d9f06a9e7c1.tar.gz
1) added changes which let RPM build in a directory other then its sourcer2-4-102
directory 2) moved popt to autoconf
-rw-r--r--Makefile.in (renamed from Makefile)15
-rwxr-xr-xconfigure.in8
2 files changed, 14 insertions, 9 deletions
diff --git a/Makefile b/Makefile.in
index b76b25e..a44efde 100644
--- a/Makefile
+++ b/Makefile.in
@@ -1,21 +1,18 @@
+srcdir = @srcdir@
+VPATH = $(srcdir)
+
LIBOBJECTS = popt.o
-DEFCFLAGS=-O2 -Wall
+WARNINGS = -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
-SOURCES =$(subst .o,.c,$(LIBOBJECTS))
+SOURCES = $(addprefix $(srcdir)/,$(subst .o,.c,$(LIBOBJECTS)))
LIBPOPT = libpopt.a
LIBS=/usr/lib
INCLUDE=/usr/include
-ifeq (../Makefile.inc,$(wildcard ../Makefile.inc))
-include ../Makefile.inc
-endif
-
# -----------------------------------------------------------------------
-ifeq ($(CFLAGS),)
-CFLAGS=$(DEFCFLAGS)
-endif
+CFLAGS = @CFLAGS@ $(WARNINGS) $(OPTS)
ifeq ($(RANLIB),)
RANLIB=ranlib
diff --git a/configure.in b/configure.in
new file mode 100755
index 0000000..0b61225
--- /dev/null
+++ b/configure.in
@@ -0,0 +1,8 @@
+AC_INIT(popt.h)
+
+AC_PROG_CC
+AC_GCC_TRADITIONAL
+
+AC_CHECK_FUNCS(mmap)
+
+AC_OUTPUT(Makefile)