summaryrefslogtreecommitdiff
path: root/sysutils/ganglia-webfrontend/files/patch-.._configure.in
blob: dc6bd13cf28745edcd12b3cbb6569675c47099a8 (plain) (blame)
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
$FreeBSD$

--- ../configure.in.orig
+++ ../configure.in
@@ -166,31 +166,6 @@
 
 AM_CONDITIONAL(BUILD_GMETAD, test x"$gmetad" = xyes)
 
-AC_ARG_WITH( python,
-[  --with-python=PATH      Specify prefix for python or full path to interpreter],
-[if test x"$withval" != xno; then enable_python="yes"; PYTHON_BIN="$withval"; fi])
-
-AC_ARG_WITH( librrd,
-[  --with-librrd=DIR       Specify location for librrd],
-[if test x"$withval" != xno; then librrd="yes"; librrdpath="$withval"; fi])
-
-AC_ARG_WITH( libapr,
-[  --with-libapr=PATH      Specify location for libapr-1 or full path to apr-1-config],
-[if test x"$withval" != xno; then libapr="yes"; libaprpath="$withval"; fi])
-
-AC_ARG_WITH( libexpat,
-[  --with-libexpat=DIR     Specify location for libexpat],
-[if test x"$withval" != xno; then libexpat="yes"; libexpatpath="$withval"; fi])
-
-AC_ARG_WITH( libconfuse,
-[  --with-libconfuse=DIR   Specify location for libconfuse],
-[if test x"$withval" != xno; then libconfuse="yes"; libconfusepath="$withval"; fi])
-
-AC_ARG_WITH( libpcre,
-[  --with-libpcre=DIR      Specify location for libpcre],
-[if test x"$withval" != xno; then libpcre="yes"; libpcrepath="$withval"; fi],
-[libpcre=yes; libpcrepath=yes ])
-
 AC_ARG_WITH( moduledir,
 [  --with-moduledir=DIR    Base directory for dynamically loadable modules],
   moduledir="$withval", 
@@ -237,10 +212,6 @@
                            http://www.cbmamiga.demon.co.uk/mpatrol/],
 [ enable_memcheck="yes" ])
 
-AC_ARG_ENABLE( python,
-[  --disable-python        exclude mod_python and support for metric modules written in python],
-[ if test x"$enableval" != xyes; then enable_python="no"; fi ], [ enable_python="yes" ] )
-
 AC_ARG_ENABLE( status,
 [  --enable-status         compile and install modgstatus to enable gmond status metric module support],
 [ enable_status="yes" 
@@ -292,49 +263,6 @@
 
 AC_SUBST(STATIC_USER_MODULES)
 
-if test x"$enable_python" = xyes; then
-  echo
-  echo Checking for python
-
-  # check for Python executable
-  if test -z "$PYTHON_BIN"; then
-    AC_PATH_PROG(PYTHON_BIN, python)
-  else
-    if test -d "$PYTHON_BIN"; then
-      PYTHON_BIN="$PYTHON_BIN/bin/python"
-    fi
-  fi
-
-  if test -n "$PYTHON_BIN"; then
-    # find out python version
-    AC_MSG_CHECKING(Python version)
-    PyVERSION=`$PYTHON_BIN -c ['import sys; print sys.version[:3]'`]
-    PyMAJVERSION=`$PYTHON_BIN -c ['import sys; print sys.version[:1]'`]
-    AC_MSG_RESULT($PyVERSION)
-    PYTHON_VERSION=$PyVERSION
-    AC_SUBST(PYTHON_VERSION)
-
-    PyEXEC_INSTALLDIR=`$PYTHON_BIN -c "import sys; print sys.exec_prefix"`
-    if test -f "$PyEXEC_INSTALLDIR/include/python/Python.h"; then
-      PYTHON_INCLUDES="-I$PyEXEC_INSTALLDIR/include/python"
-    else 
-      if test -f "$PyEXEC_INSTALLDIR/include/python$PyVERSION/Python.h"; then
-        PYTHON_INCLUDES="-I$PyEXEC_INSTALLDIR/include/python$PyVERSION"
-      else
-        PYTHON_INCLUDES=""
-        enable_python="no"
-      fi
-    fi
-    AC_SUBST(PYTHON_INCLUDES)
-  else
-    enable_python="no"
-  fi
-fi
-
-AC_MSG_CHECKING(Python support)
-AC_MSG_RESULT($enable_python)
-AM_CONDITIONAL(BUILD_PYTHON, test x"$enable_python" = xyes)
-
 LIB_SUFFIX=lib
 case $host in
 x86_64*linux*)
@@ -342,112 +270,6 @@
   ;;
 esac
 
-echo
-echo Checking for apr
-if test x"$libaprpath" != x && test x"$libaprpath" != xyes; then
-  if test -f "$libaprpath" ; then
-    APR_INCLUDES=`$libaprpath --includes`
-    AC_SUBST(APR_INCLUDES)
-    APR_LIBPATH=`$libaprpath --link-ld`
-    LDFLAGS="$LDFLAGS -L`expr "x$APR_LIBPATH" : '.*-L\(.*\) '`"
-    AC_CHECK_LIB(apr-1, apr_socket_send,,,[`$libaprpath --libs`])
-  else
-    CFLAGS="$CFLAGS -I$libaprpath/include"
-    LDFLAGS="$LDFLAGS -L$libaprpath/${LIB_SUFFIX}"
-    echo "Added -I$libaprpath/include to CFLAGS"
-    echo "Added -L$libaprpath/${LIB_SUFFIX} to LDFLAGS"
-    AC_CHECK_LIB(apr-1, apr_socket_send)
-  fi
-else
-  AC_PATH_PROG(APR_CONFIG, apr-1-config)
-  if test -z "$APR_CONFIG"; then
-    AC_MSG_ERROR(apr-1-config binary not found in path)
-  fi
-  APR_INCLUDES=`$APR_CONFIG --includes`
-  AC_SUBST(APR_INCLUDES)
-  APR_LIBPATH=`$APR_CONFIG --link-ld`
-  APR_LIBPATH=`expr "x$APR_LIBPATH" : '.*-L\(.*\) '`
-  if test x"$APR_LIBPATH" != x; then
-    LDFLAGS="$LDFLAGS -L$APR_LIBPATH"
-  fi
-  AC_CHECK_LIB(apr-1, apr_socket_send,,,[`$APR_CONFIG --libs`])
-fi
-
-if test x"$ac_cv_lib_apr_1_apr_socket_send" = xyes; then
-  echo "The ganglia utilities use the Apache Portable Runtime functions (http://www.apache.org/)"
-  echo "Found a suitable libapr1 library"
-else
-  echo "libapr not found"
-  exit;
-fi
-
-echo
-echo Checking for confuse
-if test x"$libconfusepath" != x && test x"$libconfusepath" != xyes; then
-  CFLAGS="$CFLAGS -I$libconfusepath/include"
-  LDFLAGS="$LDFLAGS -L$libconfusepath/${LIB_SUFFIX}"
-  echo "Added -I$libconfusepath/include to CFLAGS"
-  echo "Added -L$libconfusepath/${LIB_SUFFIX} to LDFLAGS"
-fi
-AC_CHECK_LIB(confuse, cfg_parse)
-if test x"$ac_cv_lib_confuse_cfg_parse" = xno; then
-  echo Trying harder including gettext
-  unset ac_cv_lib_confuse_cfg_parse
-  LDFLAGS="$LDFLAGS -lintl"
-  AC_CHECK_LIB(confuse, cfg_parse)
-  if test x"$ac_cv_lib_confuse_cfg_parse" = xno; then
-    echo Trying harder including iconv
-    unset ac_cv_lib_confuse_cfg_parse
-    LDFLAGS="$LDFLAGS -liconv"
-    AC_CHECK_LIB(confuse, cfg_parse)
-    if test x"$ac_cv_lib_confuse_cfg_parse" = xno; then
-      echo "libconfuse not found"
-      exit
-    fi
-  fi
-fi
-if test x"$ac_cv_lib_confuse_cfg_parse" = xyes; then
-  echo "Found a suitable Confuse library"
-fi
-
-echo
-echo Checking for expat
-if test x"$libexpatpath" != x && test x"$libexpatpath" != xyes; then
-  CFLAGS="$CFLAGS -I$libexpatpath/include"
-  LDFLAGS="$LDFLAGS -L$libexpatpath/${LIB_SUFFIX}"
-  echo "Added -I$libexpatpath/include to CFLAGS"
-  echo "Added -L$libexpatpath/${LIB_SUFFIX} to LDFLAGS"
-fi
-AC_CHECK_LIB(expat, XML_ParserCreate)
-if test x"$ac_cv_lib_expat_XML_ParserCreate" = xyes; then
-  echo "Found a suitable Expat library"
-else
-  echo "libexpat not found"
-  exit;
-fi
-
-echo
-echo Checking for pcre
-if test x"$libpcrepath" != x && test x"$libpcrepath" != xyes; then
-  CFLAGS="$CFLAGS -I$libpcrepath/include"
-  LDFLAGS="$LDFLAGS -L$libpcrepath/${LIB_SUFFIX}"
-  echo "Added -I$libpcrepath/include to CFLAGS"
-  echo "Added -L$libpcrepath/${LIB_SUFFIX} to LDFLAGS"
-fi
-if test x"$libpcre" == xyes ; then
-  AC_CHECK_HEADERS([pcre/pcre.h pcre.h])
-  AC_CHECK_LIB(pcre, pcre_compile)
-  if test x"$ac_cv_lib_pcre_pcre_compile" = xyes; then
-    echo "Found a suitable pcre library"
-  else
-    echo "libpcre not found, specify --with-libpcre=no to build without PCRE support"
-    exit;
-  fi
-else
-  echo "building without PCRE support"
-fi
-echo
-
 AC_CHECK_LIB(rpc, xdr_string)
 AC_CHECK_LIB(socket, socket)
 AC_CHECK_LIB(nsl, inet_addr)