opnsense-ports/mail/vqadmin/files/patch-configure
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

31 lines
727 B
Text

--- configure.orig Wed Sep 17 23:21:39 2003
+++ configure Sun Apr 18 13:50:48 2004
@@ -3355,19 +3355,15 @@
cgibindir=""
wwwroot=""
-for f in /home/httpd /usr/local/apache /usr/local/www /var/lib/httpd /var/www /usr/local/www /var/www
-do
- if test -d $f/html
- then
- wwwroot=$f/html
- fi
-
- if test -d $f/cgi-bin
- then
- cgibindir=$f/cgi-bin
- fi
-done
-
+if test "${enable_htmldir+set}" = set; then
+ enableval="$enable_htmldir"
+ wwwroot="$enableval"
+else
+ if test "$wwwroot" = ""
+ then
+ { echo "configure: error: Unable to find your html directory, specify --enable-htmldir." 1>&2; exit 1; }
+ fi
+fi
# Check whether --enable-cgibindir or --disable-cgibindir was given.