aboutsummaryrefslogtreecommitdiffstats
path: root/testing/apache-mod-backtrace/configure.in
diff options
context:
space:
mode:
authorMatt Smith <mcs@darkregion.net>2011-01-07 12:09:45 -0600
committerNatanael Copa <ncopa@alpinelinux.org>2011-01-09 11:50:24 +0000
commit00780f574164565d372cb9bcefcca3829279a5cf (patch)
treea5236d3ad3ee20341ccd2bd7681cdf02f0718529 /testing/apache-mod-backtrace/configure.in
parent2b3d0c1781a7f013366eb9e35bb0b9334cba8569 (diff)
downloadaports-00780f574164565d372cb9bcefcca3829279a5cf.tar.gz
aports-00780f574164565d372cb9bcefcca3829279a5cf.tar.bz2
aports-00780f574164565d372cb9bcefcca3829279a5cf.tar.xz
new aport: testing/apache-mod-backtrace
A module which uses system functions to format a backtrace to show what code did the dirty deed. http://people.apache.org/~trawick/exception_hook.html
Diffstat (limited to 'testing/apache-mod-backtrace/configure.in')
-rw-r--r--testing/apache-mod-backtrace/configure.in46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/apache-mod-backtrace/configure.in b/testing/apache-mod-backtrace/configure.in
new file mode 100644
index 0000000000..60de6023c0
--- /dev/null
+++ b/testing/apache-mod-backtrace/configure.in
@@ -0,0 +1,46 @@
+# Process this file with autoconf to produce a configure script.
+
+AC_INIT(mod_backtrace.c)
+
+# Basic stuff
+
+AC_PROG_CC
+AC_PROG_CPP
+AC_STDC_HEADERS
+
+# We use axps to compile source files, which may be in /usr/sbin
+AC_ARG_WITH(apxs,
+[ --with-apxs=PATH Specify path to apxs],
+[ APXS="$withval" ],
+[ AC_PATH_PROGS([APXS], [apxs2 apxs],, [$PATH:/usr/sbin]) ])
+
+AC_ARG_WITH(apache,
+[ --with-apache=PATH Specify path to apache executable],
+[ HTTPD="$withval" ],
+[ AC_PATH_PROG([HTTPD], [httpd], [/usr/sbin/httpd], [$PATH:/usr/sbin]) ])
+
+APACHE_VER=`${HTTPD} -v | grep version`
+if echo "$APACHE_VER" | grep -q "/2\."
+then
+ APXS_FLAGS=-DAPACHE2
+ SODIR=.libs/
+ echo "Building for Apache 2."
+else
+ echo "Building for Apache 1."
+fi
+
+# Check for some headers
+
+AC_CHECK_HEADERS(stdlib.h unistd.h sys/socket.h sys/time.h grp.h)
+AC_CHECK_HEADERS(nss_common.h nss.h)
+
+# Determine size of basic types
+
+AC_CHECK_SIZEOF(int,cross)
+AC_CHECK_SIZEOF(long,cross)
+AC_CHECK_SIZEOF(short,cross)
+
+# Create Makefile
+AC_SUBST(APXS_FLAGS)
+AC_SUBST(SODIR)
+AC_OUTPUT(Makefile)