Greg Ward avatar Greg Ward committed 6a784ce

Switch to use autoconf (*just* autoconf, no automake or other crap).

Comments (0)

Files changed (6)

 ~$
 \.o$
 ^vcprompt$
-
+^aclocal
+^autom4te\.cache$
+^config\.
+^configure$
+^Makefile$
+^stamp-h
 ^tests/\w+-repo(\.tar)?$

Makefile

-
-CFLAGS = -Wall -Wextra -Wno-unused-parameter -std=gnu99 -g
-
-headers = $(wildcard src/*.h)
-sources = $(wildcard src/*.c)
-objects = $(subst .c,.o,$(sources))
-
-vcprompt: $(objects)
-	$(CC) -o $@ $(objects)
-
-# build a standalone version of capture_child() library for testing
-src/capture: src/capture.c src/capture.h src/common.c src/common.h
-	$(CC) -DTEST_CAPTURE $(CFLAGS) -o $@ src/capture.c src/common.c
-
-# Maximally pessimistic view of header dependencies.
-$(objects): $(headers)
-
-.PHONY: check check-simple check-hg check-git check-fossil grind
-check: check-simple check-hg check-git check-fossil
-
-hgrepo = tests/hg-repo.tar
-gitrepo = tests/git-repo.tar
-fossilrepo = tests/fossil-repo
-
-check-simple: vcprompt
-	cd tests && ./test-simple
-
-check-hg: vcprompt $(hgrepo)
-	cd tests && ./test-hg
-
-$(hgrepo): tests/setup-hg
-	cd tests && ./setup-hg
-
-check-git: vcprompt $(gitrepo)
-	cd tests && ./test-git
-
-$(gitrepo): tests/setup-git
-	cd tests && ./setup-git
-
-check-fossil: vcprompt $(fossilrepo)
-	cd tests && ./test-fossil
-
-$(fossilrepo): tests/setup-fossil
-	cd tests && ./setup-fossil
-
-grind: check
-	make check VCPVALGRIND=y
-
-clean:
-	rm -f $(objects) vcprompt $(hgrepo) $(gitrepo) $(fossilrepo)
-
-DESTDIR =
-PREFIX = /usr/local
-BINDIR = $(DESTDIR)$(PREFIX)/bin
-MANDIR = $(DESTDIR)$(PREFIX)/man/man1
-
-.PHONY: install
-install: vcprompt
-	install -d $(BINDIR) $(MANDIR)
-	install vcprompt $(BINDIR)
-	install vcprompt.1 $(MANDIR)
+
+CFLAGS = -Wall -Wextra -Wno-unused-parameter -std=gnu99 -g
+
+headers = $(wildcard src/*.h)
+sources = $(wildcard src/*.c)
+objects = $(subst .c,.o,$(sources))
+
+vcprompt: $(objects)
+	$(CC) -o $@ $(objects)
+
+# build a standalone version of capture_child() library for testing
+src/capture: src/capture.c src/capture.h src/common.c src/common.h
+	$(CC) -DTEST_CAPTURE $(CFLAGS) -o $@ src/capture.c src/common.c
+
+# Maximally pessimistic view of header dependencies.
+$(objects): $(headers)
+
+.PHONY: check check-simple check-hg check-git check-fossil grind
+check: check-simple check-hg check-git check-fossil
+
+hgrepo = tests/hg-repo.tar
+gitrepo = tests/git-repo.tar
+fossilrepo = tests/fossil-repo
+
+check-simple: vcprompt
+	cd tests && ./test-simple
+
+check-hg: vcprompt $(hgrepo)
+	cd tests && ./test-hg
+
+$(hgrepo): tests/setup-hg
+	cd tests && ./setup-hg
+
+check-git: vcprompt $(gitrepo)
+	cd tests && ./test-git
+
+$(gitrepo): tests/setup-git
+	cd tests && ./setup-git
+
+check-fossil: vcprompt $(fossilrepo)
+	cd tests && ./test-fossil
+
+$(fossilrepo): tests/setup-fossil
+	cd tests && ./setup-fossil
+
+grind: check
+	make check VCPVALGRIND=y
+
+clean:
+	rm -f $(objects) vcprompt $(hgrepo) $(gitrepo) $(fossilrepo)
+
+DESTDIR =
+PREFIX = /usr/local
+BINDIR = $(DESTDIR)$(PREFIX)/bin
+MANDIR = $(DESTDIR)$(PREFIX)/man/man1
+
+.PHONY: install
+install: vcprompt
+	install -d $(BINDIR) $(MANDIR)
+	install vcprompt $(BINDIR)
+	install vcprompt.1 $(MANDIR)
 standard C library and POSIX calls. It should work on any
 POSIX-compliant system with a C99 compiler.
 
-To compile vcprompt:
+To build vcprompt from the source tarball:
 
+  ./configure
+  make
+
+If you're building in a source checkout, you also need GNU autoconf:
+
+  autoconf
+  ./configure
   make
 
 (vcprompt requires GNU make, so if you are using a BSD variant where
 the default make is BSD make, you will need to install GNU make and
 run "gmake".)
 
-To install it:
+To install it in your home directory:
 
   make install PREFIX=$HOME
 
+/* config.h.in.  Generated from configure.ac by autoheader.  */
+
+/* Define to 1 if you have the <arpa/inet.h> header file. */
+#undef HAVE_ARPA_INET_H
+
+/* Define to 1 if you have the `dup2' function. */
+#undef HAVE_DUP2
+
+/* Define to 1 if you have the `fork' function. */
+#undef HAVE_FORK
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
+   to 0 otherwise. */
+#undef HAVE_MALLOC
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if your system has a GNU libc compatible `realloc' function,
+   and to 0 otherwise. */
+#undef HAVE_REALLOC
+
+/* Define to 1 if you have the `select' function. */
+#undef HAVE_SELECT
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the `strchr' function. */
+#undef HAVE_STRCHR
+
+/* Define to 1 if you have the `strdup' function. */
+#undef HAVE_STRDUP
+
+/* Define to 1 if you have the `strerror' function. */
+#undef HAVE_STRERROR
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the `strstr' function. */
+#undef HAVE_STRSTR
+
+/* Define to 1 if you have the `strtol' function. */
+#undef HAVE_STRTOL
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#undef HAVE_SYS_TIME_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the `vfork' function. */
+#undef HAVE_VFORK
+
+/* Define to 1 if you have the <vfork.h> header file. */
+#undef HAVE_VFORK_H
+
+/* Define to 1 if `fork' works. */
+#undef HAVE_WORKING_FORK
+
+/* Define to 1 if `vfork' works. */
+#undef HAVE_WORKING_VFORK
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
+   <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
+   #define below would cause a syntax error. */
+#undef _UINT32_T
+
+/* Define to rpl_malloc if the replacement function should be used. */
+#undef malloc
+
+/* Define to `int' if <sys/types.h> does not define. */
+#undef mode_t
+
+/* Define to `int' if <sys/types.h> does not define. */
+#undef pid_t
+
+/* Define to rpl_realloc if the replacement function should be used. */
+#undef realloc
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+#undef size_t
+
+/* Define to `int' if <sys/types.h> does not define. */
+#undef ssize_t
+
+/* Define to the type of an unsigned integer type of width exactly 32 bits if
+   such a type exists and the standard includes do not define it. */
+#undef uint32_t
+
+/* Define as `fork' if `vfork' does not work. */
+#undef vfork
+#                                               -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.69])
+AC_INIT([vcprompt], [1.1], [vcprompt-devel@googlegroups.com])
+AC_CONFIG_SRCDIR([src/fossil.h])
+AC_CONFIG_HEADERS([config.h])
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_MAKE_SET
+
+# Checks for libraries.
+
+# Checks for header files.
+AC_CHECK_HEADERS([arpa/inet.h stdlib.h string.h sys/time.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_TYPE_MODE_T
+AC_TYPE_PID_T
+AC_TYPE_SIZE_T
+AC_TYPE_SSIZE_T
+AC_TYPE_UINT32_T
+
+# Checks for library functions.
+AC_FUNC_FORK
+AC_FUNC_MALLOC
+AC_FUNC_REALLOC
+AC_CHECK_FUNCS([dup2 select strchr strdup strerror strstr strtol])
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.