summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.pp.se>2009-10-06 19:39:36 +0200
committerThomas Habets <thomas@habets.pp.se>2009-10-06 19:39:36 +0200
commit2a46a7d94b676e027de0f290f042a3884549a93e (patch)
treebc997ba911eaf7b489edf73c1b7852595823ed99
parent3e507c2f65e07946820d4f69a2666999e6c842e9 (diff)
downloadarping-2a46a7d94b676e027de0f290f042a3884549a93e.tar.gz
libnet.h is not optional. error out if ENOEXIST
-rwxr-xr-xconfigure7
-rw-r--r--configure.ac5
2 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index f4587ce..979787d 100755
--- a/configure
+++ b/configure
@@ -4749,6 +4749,13 @@ fi
done
+# Libnet include file is not optional
+if test ! x$ac_cv_header_libnet_h = xyes; then
+ { { echo "$as_me:$LINENO: error: Can't find libnet.h. See INSTALL file for where to get Libnet" >&5
+echo "$as_me: error: Can't find libnet.h. See INSTALL file for where to get Libnet" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
# Checks for typedefs, structures, and compiler characteristics.
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
diff --git a/configure.ac b/configure.ac
index efce587..869ee3c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,6 +38,11 @@ win32/libnet.h \
net/bpf.h \
unistd.h])
+# Libnet include file is not optional
+if test ! x$ac_cv_header_libnet_h = xyes; then
+ AC_MSG_ERROR([Can't find libnet.h. See INSTALL file for where to get Libnet])
+fi
+
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_TIME