summaryrefslogtreecommitdiff
path: root/packages/libpcap/libpcap-0.7.2/configure.patch
blob: d9275b561b0253c3df9cd5b25281285031bc69e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- libpcap-0.7.2/./configure.in~configure
+++ libpcap-0.7.2/./configure.in
@@ -7,9 +7,10 @@
 dnl
 
 AC_REVISION($Revision: 1.94.2.1 $)
-AC_INIT(pcap.c)
+AC_INIT
+AC_CONFIG_SRCDIR([pcap.c])
 
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET([])
 
 AC_LBL_C_INIT(V_CCOPT, V_INCLS)
 AC_LBL_C_INLINE
@@ -210,11 +211,7 @@
 sinix*)
 	AC_MSG_CHECKING(if SINIX compiler defines sinix)
 	AC_CACHE_VAL(ac_cv_cc_sinix_defined,
-		AC_TRY_COMPILE(
-		    [],
-		    [int i = sinix;],
-		    ac_cv_cc_sinix_defined=yes,
-		    ac_cv_cc_sinix_defined=no))
+		AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[int i = sinix;]])],[ac_cv_cc_sinix_defined=yes],[ac_cv_cc_sinix_defined=no]))
 	    AC_MSG_RESULT($ac_cv_cc_sinix_defined)
 	    if test $ac_cv_cc_sinix_defined = no ; then
 		    AC_DEFINE(sinix,1,[on sinix])
@@ -250,7 +247,8 @@
 
 AC_CONFIG_HEADER(config.h)
 
-AC_OUTPUT(Makefile)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
 
 if test -f .devel ; then
 	make depend