]> jfr.im git - irc/blitzed-org/bopm.git/commitdiff
First stab at autoconfiscation (euheue)
authorandy <redacted>
Wed, 13 Feb 2002 19:24:07 +0000 (19:24 +0000)
committerandy <redacted>
Wed, 13 Feb 2002 19:24:07 +0000 (19:24 +0000)
.cvsignore
Makefile.in [moved from Makefile with 100% similarity]
configure.in [new file with mode: 0644]
setup.h.in [new file with mode: 0644]

index f24a27a16c9eac17e5c4c9ab63988541ed3b7b36..7a5b66a2241d3b2408ebe2a683b1f1c3b62fe1c8 100644 (file)
@@ -9,3 +9,10 @@ bopm.pid
 *.gcov
 gmon.out
 bopchecker
+configure
+config.log
+setup.h
+config.cache
+config.status
+Makefile
+
similarity index 100%
rename from Makefile
rename to Makefile.in
diff --git a/configure.in b/configure.in
new file mode 100644 (file)
index 0000000..6008438
--- /dev/null
@@ -0,0 +1,26 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(opercmd.h)
+
+AC_CONFIG_HEADER(setup.h)
+
+dnl Checks for programs.
+AC_PROG_CC
+
+dnl Checks for libraries.
+
+dnl Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_TYPE_SIZE_T
+AC_HEADER_TIME
+AC_STRUCT_TM
+
+dnl Checks for library functions.
+AC_TYPE_SIGNAL
+AC_FUNC_STRFTIME
+AC_CHECK_FUNCS(select socket strdup strstr)
+
+AC_OUTPUT(Makefile)
diff --git a/setup.h.in b/setup.h.in
new file mode 100644 (file)
index 0000000..b5cdcc7
--- /dev/null
@@ -0,0 +1,6 @@
+/* ./configure sets all these as appropriate */
+
+#define HAVE_FCNTL_H 1
+#define HAVE_SYS_TIME_H 1
+#define HAVE_UNISTD_H 1
+