1995-01-05 03:51:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2000-03-11 00:20:34 +00:00
|
|
|
answset () {
|
|
|
|
if [ -n "$NO_INPUT" ]; then
|
|
|
|
echo "$2 [$1]"
|
|
|
|
answ=$1
|
|
|
|
else
|
|
|
|
answ=X
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
1995-02-17 01:23:44 +00:00
|
|
|
yesno () {
|
2000-03-11 00:20:34 +00:00
|
|
|
answset YES "$1"
|
1995-02-17 01:23:44 +00:00
|
|
|
while [ $answ = X ]; do
|
1998-11-23 21:52:21 +00:00
|
|
|
echo -n "$1 [YES] "
|
1995-02-17 01:23:44 +00:00
|
|
|
read answ
|
|
|
|
if [ X$answ = X ]; then answ="YES"; fi
|
|
|
|
case $answ in
|
|
|
|
y|yes|Y|YES) answ=YES;;
|
|
|
|
n|no|N|NO) answ=NO;;
|
|
|
|
*) echo invalid answer
|
|
|
|
answ=X
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
}
|
1998-11-23 21:52:21 +00:00
|
|
|
noyes() {
|
2000-03-11 00:20:34 +00:00
|
|
|
answset NO "$1"
|
1998-11-23 21:52:21 +00:00
|
|
|
while [ $answ = X ]; do
|
|
|
|
echo -n "$1 [NO] "
|
|
|
|
read answ
|
|
|
|
if [ X$answ = X ]; then answ="NO"; fi
|
|
|
|
case $answ in
|
|
|
|
y|yes|Y|YES) answ=YES;;
|
|
|
|
n|no|N|NO) answ=NO;;
|
|
|
|
*) echo invalid answer
|
|
|
|
answ=X
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
}
|
1995-09-16 01:41:15 +00:00
|
|
|
F=$WRKDIR/.config
|
|
|
|
configure () {
|
|
|
|
rm -f $F
|
1996-11-06 13:38:22 +00:00
|
|
|
|
1996-11-10 03:05:39 +00:00
|
|
|
# Tk detection
|
|
|
|
tkversion=
|
2000-02-03 16:47:29 +00:00
|
|
|
for v in 42 80 81 82 83 42jp 80jp; do
|
1998-03-19 14:57:20 +00:00
|
|
|
if [ -f /usr/local/lib/libtk$v.a ]; then
|
1996-11-10 03:05:39 +00:00
|
|
|
tkversion=$v
|
1998-03-19 14:57:20 +00:00
|
|
|
case $tkversion in
|
|
|
|
42)
|
|
|
|
tclversion=76
|
|
|
|
tclLversion=7.6
|
|
|
|
tkLversion=4.2
|
|
|
|
;;
|
|
|
|
80)
|
|
|
|
tclversion=80
|
|
|
|
tclLversion=8.0
|
|
|
|
tkLversion=8.0
|
|
|
|
;;
|
1999-11-29 17:55:38 +00:00
|
|
|
42jp)
|
|
|
|
tclversion=76jp
|
|
|
|
tclLversion=7.6jp
|
|
|
|
tkLversion=4.2jp
|
|
|
|
;;
|
|
|
|
80jp)
|
|
|
|
tclversion=80jp
|
|
|
|
tclLversion=8.0jp
|
|
|
|
tkLversion=8.0jp
|
|
|
|
;;
|
1999-09-02 02:39:17 +00:00
|
|
|
81)
|
|
|
|
tclversion=81
|
|
|
|
tclLversion=8.1
|
|
|
|
tkLversion=8.1
|
|
|
|
;;
|
2000-01-16 23:42:45 +00:00
|
|
|
82)
|
|
|
|
tclversion=82
|
|
|
|
tclLversion=8.2
|
|
|
|
tkLversion=8.2
|
|
|
|
;;
|
2000-02-03 16:47:29 +00:00
|
|
|
83)
|
|
|
|
tclversion=83
|
|
|
|
tclLversion=8.3
|
|
|
|
tkLversion=8.3
|
|
|
|
;;
|
1998-03-19 14:57:20 +00:00
|
|
|
esac
|
1996-11-10 03:05:39 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
if [ X$tkversion != X ]; then
|
1999-12-05 21:41:59 +00:00
|
|
|
case $tkversion in
|
|
|
|
*jp)
|
|
|
|
echo "Using Japanized tk-$jptkLversion"
|
|
|
|
if [ X"${MACHINE}" = X"pc98" ]; then
|
2000-03-11 00:20:34 +00:00
|
|
|
echo "#define HasJpTk YES" >>$F
|
|
|
|
echo "#define JpTkLibDir /usr/local/lib" >>$F
|
|
|
|
echo "#define JpTkIncDir /usr/local/include/tk$tkLversion" >>$F
|
|
|
|
echo "#define JpTkLibName tk$tkversion" >>$F
|
1999-12-05 21:41:59 +00:00
|
|
|
echo "#define HasJpTcl YES" >>$F
|
2000-03-11 00:20:34 +00:00
|
|
|
echo "#define JpTclLibDir /usr/local/lib" >>$F
|
|
|
|
echo "#define JpTclIncDir /usr/local/include/tcl$tclLversion" >>$F
|
|
|
|
echo "#define JpTclLibName tcl$tclversion" >>$F
|
1999-12-05 21:41:59 +00:00
|
|
|
else
|
2000-03-11 00:20:34 +00:00
|
|
|
echo "#define HasTk YES" >>$F
|
1999-12-05 21:41:59 +00:00
|
|
|
echo "#define TkLibDir /usr/local/lib" >>$F
|
|
|
|
echo "#define TkIncDir /usr/local/include/tk$tkLversion" >>$F
|
|
|
|
echo "#define TkLibName tk$tkversion" >>$F
|
2000-03-11 00:20:34 +00:00
|
|
|
echo "#define HasTcl YES" >>$F
|
1999-12-05 21:41:59 +00:00
|
|
|
echo "#define TclLibDir /usr/local/lib" >>$F
|
|
|
|
echo "#define TclIncDir /usr/local/include/tcl$tclLversion" >>$F
|
2000-03-11 00:20:34 +00:00
|
|
|
echo "#define TclLibName tcl$tclversion" >>$F
|
1999-12-05 21:41:59 +00:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Using tk-$tkLversion"
|
|
|
|
echo "#define HasTk YES" >>$F
|
|
|
|
echo "#define TkLibDir /usr/local/lib" >>$F
|
|
|
|
echo "#define TkIncDir /usr/local/include/tk$tkLversion" >>$F
|
|
|
|
echo "#define TkLibName tk$tkversion" >>$F
|
2000-03-11 00:20:34 +00:00
|
|
|
echo "#define HasTcl YES" >>$F
|
1999-12-05 21:41:59 +00:00
|
|
|
echo "#define TclLibDir /usr/local/lib" >>$F
|
|
|
|
echo "#define TclIncDir /usr/local/include/tcl$tclLversion" >>$F
|
|
|
|
echo "#define TclLibName tcl$tclversion" >>$F
|
|
|
|
;;
|
|
|
|
esac
|
1997-06-13 14:14:50 +00:00
|
|
|
else
|
|
|
|
cat <<EOF
|
1998-03-19 14:57:20 +00:00
|
|
|
*** I don't see the static library for tk version $tkversion in /usr/local/lib.
|
1997-06-13 14:14:50 +00:00
|
|
|
*** XF86Setup will not be installed. If you want to build this program
|
2000-01-16 23:42:45 +00:00
|
|
|
*** install tk 4.2 or 8.x first.
|
1997-06-13 14:14:50 +00:00
|
|
|
|
|
|
|
EOF
|
1996-11-10 03:05:39 +00:00
|
|
|
fi
|
1999-07-20 22:15:05 +00:00
|
|
|
|
1995-02-17 01:23:44 +00:00
|
|
|
cat >> $F <<END
|
2000-03-11 00:20:34 +00:00
|
|
|
#define XF86CardDrivers mga glint nv tga s3virge sis rendition \
|
|
|
|
neomagic i740 tdfx \
|
|
|
|
cirrus tseng trident chips apm \
|
|
|
|
GlideDriver fbdev \
|
|
|
|
ati r128 vga XF86ExtraCardDrivers
|
1995-02-17 01:23:44 +00:00
|
|
|
END
|
|
|
|
|
|
|
|
cat <<END
|
2000-03-11 00:20:34 +00:00
|
|
|
Do you want to install the default system config files? This will overwrite
|
1995-02-17 01:23:44 +00:00
|
|
|
and files that you may be currently using. This would only be required
|
|
|
|
on a first time build.
|
|
|
|
END
|
1998-11-23 21:52:21 +00:00
|
|
|
yesno "Install xdm config?"
|
1996-11-06 13:38:22 +00:00
|
|
|
if [ $answ = YES ]; then
|
|
|
|
echo "#define InstallXdmConfig $answ" >> $F
|
|
|
|
fi
|
1998-11-23 21:52:21 +00:00
|
|
|
yesno "Install xinit config?"
|
1996-11-06 13:38:22 +00:00
|
|
|
if [ $answ = YES ]; then
|
|
|
|
echo "#define InstallXinitConfig $answ" >> $F
|
|
|
|
fi
|
2000-03-11 00:20:34 +00:00
|
|
|
|
|
|
|
yesno "Do you want to include support for the FontServer?"
|
1996-11-06 13:38:22 +00:00
|
|
|
if [ $answ = YES ]; then
|
2000-03-11 00:20:34 +00:00
|
|
|
echo "#define BuildFontServer $answ" >>$F
|
|
|
|
yesno "Install xfs config?"
|
|
|
|
if [ $answ = YES ]; then
|
|
|
|
echo "#define InstallFSConfig $answ" >> $F
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo "#define BuildFontServer $answ" >>$F
|
|
|
|
echo "#define InstallFSConfig $answ" >> $F
|
1996-11-06 13:38:22 +00:00
|
|
|
fi
|
1995-02-17 01:23:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
cat <<'END'
|
|
|
|
Do you want to Build Fonts (Usually you only want to build and install
|
|
|
|
fonts once, if this is a first time install you will want to build the
|
|
|
|
fonts)
|
|
|
|
END
|
1998-11-23 21:52:21 +00:00
|
|
|
yesno "Build fonts?"
|
2000-03-11 00:20:34 +00:00
|
|
|
echo "#define BuildFonts $answ" >> $F
|
|
|
|
if [ $answ = YES ]; then
|
|
|
|
yesno "Build/install the 75dpi fonts?"
|
|
|
|
echo "#define Build75DpiFonts $answ" >> $F
|
|
|
|
yesno "Build/install the 100dpi fonts?"
|
|
|
|
echo "#define Build100DpiFonts $answ" >> $F
|
|
|
|
yesno "Build/install the Speedo fonts?"
|
|
|
|
echo "#define BuildSpeedoFonts $answ" >> $F
|
|
|
|
yesno "Build/install the Type1 fonts?"
|
|
|
|
echo "#define BuildType1Fonts $answ" >> $F
|
|
|
|
yesno "Build/install the CID fonts?"
|
|
|
|
echo "#define BuildCIDFonts $answ" >> $F
|
|
|
|
yesno "Build/install the Cyrillic fonts?"
|
|
|
|
echo "#define BuildCyrillicFonts $answ" >> $F
|
|
|
|
yesno "Build/install the Latin2 fonts?"
|
|
|
|
echo "#define BuildLatin2Fonts $answ" >> $F
|
1995-02-17 01:23:44 +00:00
|
|
|
fi
|
2000-03-11 00:20:34 +00:00
|
|
|
|
1998-11-23 21:52:21 +00:00
|
|
|
yesno "Build the servers with Extended input devices?"
|
1996-11-06 13:38:22 +00:00
|
|
|
if [ $answ = NO ]; then
|
|
|
|
echo "#undef BuildXInputExt" >> $F
|
|
|
|
echo "#define BuildXInputExt NO" >> $F
|
|
|
|
else
|
2000-03-12 01:16:37 +00:00
|
|
|
echo "#define XInputDrivers mouse dynapro elo2300 elographics magellan microtouch \
|
2000-03-11 00:20:34 +00:00
|
|
|
mutouch spaceorb wacom" >> $F
|
|
|
|
# XXX broken in 3.9.18
|
|
|
|
# if [ X${MACHINE} != X"alpha" ]; then
|
|
|
|
# echo "#define JoystickSupport YES" >> $F
|
|
|
|
# fi
|
1996-11-06 13:38:22 +00:00
|
|
|
fi
|
|
|
|
|
1998-11-23 21:52:21 +00:00
|
|
|
yesno "Build PEX?"
|
1995-02-17 01:23:44 +00:00
|
|
|
if [ $answ = NO ]; then
|
|
|
|
echo "#define BuildPexExt NO" >> $F
|
|
|
|
fi
|
2000-03-11 00:20:34 +00:00
|
|
|
yesno "Build Xinerama?"
|
|
|
|
echo "#define BuildXinerama $answ" >> $F
|
|
|
|
|
1998-11-23 21:52:21 +00:00
|
|
|
yesno "Build XIE?"
|
1995-02-17 01:23:44 +00:00
|
|
|
if [ $answ = NO ]; then
|
|
|
|
echo "#define BuildXIE NO" >> $F
|
|
|
|
fi
|
1995-09-16 01:41:15 +00:00
|
|
|
echo
|
1995-11-07 16:17:03 +00:00
|
|
|
|
2000-03-11 00:20:34 +00:00
|
|
|
yesno "Install application defaults files?"
|
|
|
|
if [ $answ = NO ]; then
|
|
|
|
echo "#define InstallAppDefFiles NO" >> $F
|
|
|
|
fi
|
|
|
|
|
1998-11-23 21:52:21 +00:00
|
|
|
yesno "Build static libraries in addition to shared libraries?"
|
1996-11-06 13:38:22 +00:00
|
|
|
if [ $answ = YES ]; then
|
|
|
|
echo "#define ForceNormalLib YES" >> $F
|
|
|
|
fi
|
1998-11-23 21:52:21 +00:00
|
|
|
# ELF detection
|
|
|
|
if [ `sysctl -n kern.osreldate` -ge 300004 -a X`objformat` = Xelf ]; then
|
|
|
|
ELF=yes
|
2000-03-07 06:44:47 +00:00
|
|
|
cat <<'END'
|
|
|
|
|
|
|
|
Some programs still require a.out X libraries. Most noteable amongst
|
|
|
|
these is Nestcape, but it is reported to work best with older X libraries.
|
|
|
|
You can build a.out libraries here, using the lastest sources and
|
|
|
|
compiler, or you can use the XFree86-aoutlibs port, which installs older
|
|
|
|
a.out compatibility libraries.
|
|
|
|
|
|
|
|
If you decide to build the libraries here they will not be uninstalled by
|
|
|
|
this port, and they will be overwritten by the XFree86-aoutlibs port, if
|
|
|
|
for some reason you install it.
|
|
|
|
|
|
|
|
END
|
1998-11-23 21:52:21 +00:00
|
|
|
noyes "Do you want to build and install a.out compatibility libraries?"
|
|
|
|
if [ $answ = YES ]; then
|
|
|
|
echo "#define BuildAoutLibraries YES" >> $F
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
ELF=no
|
|
|
|
fi
|
1998-03-19 14:57:20 +00:00
|
|
|
|
1999-07-20 23:42:31 +00:00
|
|
|
if [ ${OSVERSION} -ge 300000 ]; then
|
1998-03-19 14:57:20 +00:00
|
|
|
cat <<'END'
|
|
|
|
|
1998-07-27 22:30:57 +00:00
|
|
|
FreeBSD-3.x has support for Secure RPC.
|
1998-03-19 14:57:20 +00:00
|
|
|
|
|
|
|
While this scheme is not used for general purpose encryption,
|
|
|
|
some countries restrict the use of strong cryptography.
|
|
|
|
|
|
|
|
END
|
1998-11-23 21:52:21 +00:00
|
|
|
yesno "Build with Secure RPC?"
|
1998-03-19 14:57:20 +00:00
|
|
|
if [ $answ = YES ]; then
|
|
|
|
echo "#define HasSecureRPC YES" >> $F
|
|
|
|
fi
|
1998-07-27 22:30:57 +00:00
|
|
|
fi
|
1995-11-07 16:17:03 +00:00
|
|
|
cat <<'END'
|
|
|
|
|
|
|
|
MIT supplies an authentication mechanism that relies upon DES, this is
|
|
|
|
called XDM-AUTHORIZATION-1.
|
|
|
|
|
|
|
|
Source code for this authentication mechanism may not be exported from
|
|
|
|
the United States, however, there are compatible replacements for this
|
|
|
|
mechanism available elsewhere. Also, while this scheme is not used for
|
|
|
|
general purpose encryption, some countries restrict the use of strong
|
|
|
|
cryptography.
|
|
|
|
|
|
|
|
If you have aquired a copy of "Wraphelp.c" and it currently resides in
|
1996-11-16 10:35:10 +00:00
|
|
|
the same location as the XFree86 source or in the ports "files"
|
1995-11-07 16:17:03 +00:00
|
|
|
subdirectory, it will be copied into the right place in the X11 source
|
|
|
|
distribution and support for this feature will be enabled if you answer
|
|
|
|
YES to the following question.
|
|
|
|
|
|
|
|
If you do not have a copy of this file, even if you answer YES to this
|
|
|
|
question, support will not be enabled. If you wish to change this later,
|
1997-02-02 17:26:29 +00:00
|
|
|
the option controling this is contained the file xc/config/cf/xf86site.def.
|
1995-11-07 16:17:03 +00:00
|
|
|
|
|
|
|
END
|
1998-11-23 21:52:21 +00:00
|
|
|
yesno "Do you want to enable XDM-AUTHORIZATION-1 support?"
|
1996-11-06 13:38:22 +00:00
|
|
|
cpwh=NO
|
1995-11-07 16:17:03 +00:00
|
|
|
if [ $answ = YES ]; then
|
|
|
|
WH=$WRKDIR/xc/lib/Xdmcp/Wraphelp.c
|
|
|
|
|
|
|
|
if [ -f $WH ] ; then
|
|
|
|
echo "==> $WH found in source distribution."
|
1996-12-03 04:07:49 +00:00
|
|
|
elif [ -f $DISTDIR/xc/Wraphelp.c ] ; then
|
1996-11-10 20:55:14 +00:00
|
|
|
echo "==> Wraphelp.c found in DISTDIR directory, copying to source tree."
|
1996-12-03 04:07:49 +00:00
|
|
|
cpwh=$DISTDIR/xc/Wraphelp.c
|
1995-11-07 16:17:03 +00:00
|
|
|
elif [ -f $FILESDIR/Wraphelp.c ] ; then
|
|
|
|
echo "==> Wraphelp.c found in files directory, copying to source tree."
|
1995-11-23 14:28:52 +00:00
|
|
|
cpwh=$FILESDIR/Wraphelp.c
|
1995-11-07 16:17:03 +00:00
|
|
|
else
|
1996-11-06 13:38:22 +00:00
|
|
|
echo "==> Wraphelp.c not found, DES support NOT enabled."
|
|
|
|
cpwh=NO
|
1995-11-07 16:17:03 +00:00
|
|
|
fi
|
|
|
|
fi
|
1996-11-06 13:38:22 +00:00
|
|
|
if [ $cpwh != NO ]; then
|
|
|
|
echo "#define HasXdmAuth $answ" >> $F
|
1995-11-07 16:17:03 +00:00
|
|
|
fi
|
1996-11-06 13:38:22 +00:00
|
|
|
|
1999-12-24 16:42:18 +00:00
|
|
|
echo
|
|
|
|
yesno "Do you want to compile with PAM support?"
|
1998-03-19 14:57:20 +00:00
|
|
|
if [ $answ = YES ]; then
|
1999-12-24 16:42:18 +00:00
|
|
|
echo "#define HasPam YES" >> $F
|
|
|
|
else
|
|
|
|
echo "#define HasPam NO" >> $F
|
1998-03-19 14:57:20 +00:00
|
|
|
fi
|
|
|
|
|
1999-11-13 01:28:19 +00:00
|
|
|
echo
|
1995-09-18 20:30:21 +00:00
|
|
|
echo
|
1995-09-16 01:41:15 +00:00
|
|
|
echo "End of configuration questions. No more user input required"
|
|
|
|
echo
|
|
|
|
}
|
|
|
|
|
1996-11-06 13:38:22 +00:00
|
|
|
configure
|
1995-09-16 01:41:15 +00:00
|
|
|
|
1996-03-09 16:22:04 +00:00
|
|
|
if [ X$cpwh != XNO ]; then
|
2000-01-17 16:58:46 +00:00
|
|
|
tr -d '\r' < $cpwh > $WH
|
1995-11-23 14:28:52 +00:00
|
|
|
fi
|
|
|
|
|
1998-03-19 14:57:20 +00:00
|
|
|
cat $F >> $WRKDIR/xc/config/cf/xf86site.def
|
1995-09-16 01:41:15 +00:00
|
|
|
|
1995-01-05 03:51:15 +00:00
|
|
|
exit 0
|