aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorbuytenh <buytenh>2002-04-03 16:19:36 +0000
committerbuytenh <buytenh>2002-04-03 16:19:36 +0000
commit41708cb641cbd928e688ba55d328635732dc751f (patch)
treeb71eb238b9ea7978af82c05655df487ed7ffb1b8 /configure.in
parentf33ac0982072fec5a2a9e25afd399c44457ff88a (diff)
downloadandroid_external_brctl-41708cb641cbd928e688ba55d328635732dc751f.tar.gz
android_external_brctl-41708cb641cbd928e688ba55d328635732dc751f.tar.bz2
android_external_brctl-41708cb641cbd928e688ba55d328635732dc751f.zip
autoconfization by Andreas Hofmeister
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/configure.in b/configure.in
new file mode 100644
index 0000000..7711006
--- /dev/null
+++ b/configure.in
@@ -0,0 +1,34 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_INIT(brctl/brctl.c)
+
+AC_ARG_WITH( linux, [ --with-linux-headers Location of the linux headers to use],
+ KERNEL_HEADERS=$withval, KERNEL_HEADERS="/usr/src/linux/include")
+
+dnl Checks for programs.
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_RANLIB
+
+dnl Checks for header files.
+AC_HEADER_STDC
+AC_HEADER_SYS_WAIT
+AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h)
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_HEADER_TIME
+
+dnl Checks for library functions.
+AC_FUNC_ALLOCA
+AC_PROG_GCC_TRADITIONAL
+AC_FUNC_MEMCMP
+AC_TYPE_SIGNAL
+AC_FUNC_WAIT3
+AC_CHECK_FUNCS(gethostname socket strdup uname)
+
+AC_CHECK_FUNC(if_nametoindex, HAVE_IF_INDEX=1)
+
+AC_SUBST(KERNEL_HEADERS)
+AC_SUBST(HAVE_IF_INDEX)
+
+AC_OUTPUT(doc/Makefile libbridge/Makefile brctl/Makefile Makefile)