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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
--- configure.orig 2005-02-17 20:20:50.735101408 +0930
+++ configure 2005-02-17 20:36:35.883389400 +0930
@@ -1253,7 +1253,9 @@
--with-gnu-ld assume the C compiler uses GNU ld default=no
--with-pic try to use only PIC/non-PIC objects default=use both
--with-libwrap=LIBPATH Compile in libwrap (tcp_wrappers) support.
+ --without-elf use elf libraries
--with-zlib=DIR use libz in DIR
+ --with-bzip2=DIR use libbzip2 in DIR
Some influential environment variables:
CC C compiler command
@@ -5911,7 +5913,7 @@
case $host in
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 5914 "configure"' > conftest.$ac_ext
+ echo '#line 5916 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -6483,7 +6485,7 @@
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
-if { (eval echo configure:6486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
+if { (eval echo configure:6488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
if test -s out/conftest.err; then
@@ -8447,7 +8449,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 8450 "configure"
+#line 8452 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -8545,7 +8547,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 8548 "configure"
+#line 8550 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -14405,6 +14407,12 @@
# nlist is needed for uptime on some sytems in the generic library
+# Check whether --with-elf or --without-elf was given.
+if test "${with_elf+set}" = set; then
+ withval="$with_elf"
+
+ if test "x$with_elf" != "xno"; then
+
echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
if test "${ac_cv_lib_elf_nlist+set}" = set; then
@@ -14478,6 +14486,11 @@
fi
+ fi
+
+fi;
+
+
# On some platforms (Irix) libnsl and libsocket should not be used.
echo "$as_me:$LINENO: checking for gethostbyname" >&5
@@ -15250,7 +15263,17 @@
# two variants of bzip2 need checking.
- echo "$as_me:$LINENO: checking for bzread in -lbz2" >&5
+
+# Check whether --with-bzip2 or --without-bzip2 was given.
+if test "${with_bzip2+set}" = set; then
+ withval="$with_bzip2"
+
+ if test -d "$withval"; then
+ CPPFLAGS="${CPPFLAGS} -I$withval/include"
+ LDFLAGS="${LDFLAGS} -L$withval/lib"
+ fi
+ if test "x$with_bzip2" != "xno"; then
+ echo "$as_me:$LINENO: checking for bzread in -lbz2" >&5
echo $ECHO_N "checking for bzread in -lbz2... $ECHO_C" >&6
if test "${ac_cv_lib_bz2_bzread+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
@@ -15387,6 +15410,10 @@
fi
+ fi
+
+fi;
+
# two variants of db1 need checking.
echo "$as_me:$LINENO: checking for dbopen in -ldb1" >&5
--- configure.in.orig 2005-02-17 19:14:14.000000000 +0930
+++ configure.in 2005-02-17 20:36:18.450039672 +0930
@@ -1,3 +1,4 @@
+Wrpm
# Portions of this file are subject to the following copyright. See
# the Net-SNMP's COPYING file for more details and other copyrights
# that may apply:
@@ -2172,7 +2173,14 @@
# AC_CHECK_LIB(des, main)
AC_CHECK_LIB(m, asin)
# nlist is needed for uptime on some sytems in the generic library
-AC_CHECK_LIB(elf, nlist)
+ AC_ARG_WITH(elf,
+ [ --without-elf use elf libraries],[
+ if test "x$with_elf" != "xno"; then
+ AC_CHECK_LIB(elf, nlist)
+ fi
+ ])
+
+
# On some platforms (Irix) libnsl and libsocket should not be used.
AC_CHECK_FUNC(gethostbyname, AC_DEFINE(HAVE_GETHOSTBYNAME),
@@ -2219,8 +2227,18 @@
CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags})
# two variants of bzip2 need checking.
- AC_CHECK_LIB(bz2, bzread, [_rpmlibs="$_rpmlibs -lbz2"],
- AC_CHECK_LIB(bz2, BZ2_bzread, [_rpmlibs="$_rpmlibs -lbz2"],))
+ AC_ARG_WITH(bzip2,
+ [ --with-bzip2[=DIR] use libbzip2 in DIR],[
+ if test -d "$withval"; then
+ CPPFLAGS="${CPPFLAGS} -I$withval/include"
+ LDFLAGS="${LDFLAGS} -L$withval/lib"
+ fi
+ if test "x$with_bzip2" != "xno"; then
+ AC_CHECK_LIB(bz2, bzread, [_rpmlibs="$_rpmlibs -lbz2"],
+ AC_CHECK_LIB(bz2, BZ2_bzread, [_rpmlibs="$_rpmlibs -lbz2"],))
+ fi
+ ])
+
# two variants of db1 need checking.
AC_CHECK_LIB(db1, dbopen, [_rpmlibs="-ldb1 $_rpmlibs"],
|