aboutsummaryrefslogtreecommitdiff
path: root/x11-servers/XFree86-4-Server-snap
diff options
context:
space:
mode:
authorFUJISHIMA Satsuki <sf@FreeBSD.org>2002-01-06 20:55:22 +0000
committerFUJISHIMA Satsuki <sf@FreeBSD.org>2002-01-06 20:55:22 +0000
commit2fceaeca3d72297d7f5534f4633eefd62c8231de (patch)
tree8b256dc623b3a95fb13cdb65a3782cd9de466861 /x11-servers/XFree86-4-Server-snap
parent2a68afcbbd9776f4bf56b6b49962d9ad5e36b9e4 (diff)
downloadports-2fceaeca3d72297d7f5534f4633eefd62c8231de.tar.gz
ports-2fceaeca3d72297d7f5534f4633eefd62c8231de.zip
Notes
Diffstat (limited to 'x11-servers/XFree86-4-Server-snap')
-rw-r--r--x11-servers/XFree86-4-Server-snap/scripts/configure35
1 files changed, 20 insertions, 15 deletions
diff --git a/x11-servers/XFree86-4-Server-snap/scripts/configure b/x11-servers/XFree86-4-Server-snap/scripts/configure
index 501dcebd2d8c..1d95a8262adf 100644
--- a/x11-servers/XFree86-4-Server-snap/scripts/configure
+++ b/x11-servers/XFree86-4-Server-snap/scripts/configure
@@ -100,29 +100,34 @@ END
echo "#define FreeBSDBuildXxserv YES" >> $LOCALDEF
# Check Wraphelp.c
- WH=$WRKDIR/xc/lib/Xdmcp/Wraphelp.c
- cpwh=NO
- if [ -f $WH ] ; then
- cpwh=SOURCE
- elif [ -f $DISTDIR/xc/Wraphelp.c ] ; then
- cpwh=$DISTDIR/xc/Wraphelp.c
- else
- echo "==> Warnning: Wraphelp.c not found, DES support NOT enabled."
+ if [ $HasXdmAuth = DEFAULT ]; then
+ HasXdmAuth=$(awk '/^#define.*HasXdmAuth/ {print $3}' $ORIGDEF|tail -1)
fi
- if [ X$cpwh != XNO -a X$cpwh != XSOURCE ]; then
- tr -d '\r' < $cpwh > $WH
+
+ cpwh=NO
+ if [ $HasXdmAuth = YES ]; then
+ WH=$WRKDIR/xc/lib/Xdmcp/Wraphelp.c
+ if [ -f $WH ] ; then
+ cpwh=SOURCE
+ elif [ -f $DISTDIR/xc/Wraphelp.c ] ; then
+ cpwh=$DISTDIR/xc/Wraphelp.c
+ else
+ echo "==> You must fetch USA-legal Wraphelp.c manually"
+ echo "==> and put it to ${DISTDIR}/xc/."
+ exit 1
+ fi
+ if [ X$cpwh != XNO -a X$cpwh != XSOURCE ]; then
+ tr -d '\r' < $cpwh > $WH
+ fi
fi
# Copy ORIGDEF to DESTDEF
rm -f $DESTDEF
+ grep -v '#define.*HasXdmAuth' $ORIGDEF >> $DESTDEF
if [ $cpwh = NO ] ; then
- grep -v '#define.*HasXdmAuth' $ORIGDEF >> $DESTDEF
echo "#define HasXdmAuth NO" >> $DESTDEF
else
- if [ X$HasXdmAuth != XDEFAULT -a X$HasXdmAuth != X ]; then
- echo "#define HasXdmAuth $HasXdmAuth" >> $LOCALDEF
- fi
- cp -f $ORIGDEF $DESTDEF
+ echo "#define HasXdmAuth YES" >> $DESTDEF
fi
# copy generated config to host.def