summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvik/withenable.ac
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2008-07-01 15:42:36 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2008-07-01 15:42:36 +0000
commit6552be7f745c5a8d506148c8af9d367c9d996d24 (patch)
treeb9d673871a1490b64273a265d4d961316a2174db /Build/source/texk/xdvik/withenable.ac
parent48e2b240973977c208bc840b589b75b91a6f4c30 (diff)
xdvik 22.84.14
git-svn-id: svn://tug.org/texlive/trunk@9142 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvik/withenable.ac')
-rw-r--r--Build/source/texk/xdvik/withenable.ac65
1 files changed, 36 insertions, 29 deletions
diff --git a/Build/source/texk/xdvik/withenable.ac b/Build/source/texk/xdvik/withenable.ac
index 8a1f6c32f42..90ee99eb086 100644
--- a/Build/source/texk/xdvik/withenable.ac
+++ b/Build/source/texk/xdvik/withenable.ac
@@ -1,5 +1,35 @@
dnl withenable.ac: --with and --enable options.
+# Check for toolkit options. This used to be --with-x-toolkit, but was changed
+# to remove clashes with metafont which accepts different values.
+# We allow `yes' as synonym for the default toolkit, for easier communication
+# with ../kpathsea/xt.ac.
+dnl
+dnl This defines --with-x implicitly (which is why we use that package
+dnl name below), so put it here, so it comes first in the --help output.
+dnl This reads best.
+dnl
+dnl Remember to add AC_PATH_XTRA when actually using X.
+dnl
+AC_ARG_WITH([xdvi-x-toolkit],
+[ --with-xdvi-x-toolkit=KIT
+ Use toolkit KIT for xdvi (KIT=motif/xaw/xaw3d/neXtaw).
+ If no --with-xdvi-x-toolkit option is used, use Motif
+ if available, else Xaw.],
+[ case "${withval}" in
+ next | nextaw | neXtaw ) val=neXtaw ;;
+ xaw3d ) val=xaw3d ;;
+ x | xa | xaw ) val=xaw ;;
+ y | ye | yes ) val=yes ;;
+ m | mo | mot | moti | motif ) val=motif ;;
+ * )
+AC_MSG_WARN([unknown --with-xdvi-x-toolkit argument \`$withval'; using xaw.])
+ val=xaw;;
+ esac
+ with_xdvi_x_toolkit=$val
+])
+
+
# Check if the user wants to use Ghostscript, DPS or NeWS to
# display PostScript.
AC_ARG_WITH([ps],
@@ -20,7 +50,7 @@ AC_ARG_ENABLE([grey],
else
echo DISABLED grey
fi],
-[AC_DEFINE([GREY], 1)])
+AC_DEFINE([GREY], 1))
AC_ARG_ENABLE([color],
[ --disable-color Disable support for color specials],
@@ -29,25 +59,25 @@ AC_ARG_ENABLE([color],
else
echo DISABLED color
fi],
-[AC_DEFINE([COLOR], 1)])
+AC_DEFINE([COLOR], 1))
dnl OBSOLETE AC_ARG_ENABLE([buttons],
dnl OBSOLETE [ --disable-buttons Disable buttons on the side of the window],
dnl OBSOLETE [if test "$enableval" = yes; then
-dnl OBSOLETE AC_DEFINE(BUTTONS)
+dnl OBSOLETE AC_DEFINE([BUTTONS], 1, [Define to enable buttons on the side of the window.])
dnl OBSOLETE else
dnl OBSOLETE echo DISABLED buttons
dnl OBSOLETE fi],
-dnl OBSOLETE [AC_DEFINE(BUTTONS)])
+dnl OBSOLETE AC_DEFINE([BUTTONS], 1))
dnl OBSOLETE AC_ARG_ENABLE([statusline],
dnl OBSOLETE [ --disable-statusline Disable statusline at bottom of window],
dnl OBSOLETE [if test "$enableval" = yes; then
-dnl OBSOLETE AC_DEFINE(STATUSLINE)
+dnl OBSOLETE AC_DEFINE([STATUSLINE], 1, [Define to enable statusline at bottom of window.])
dnl OBSOLETE else
dnl OBSOLETE echo DISABLED statusline
dnl OBSOLETE fi],
-dnl OBSOLETE [AC_DEFINE(STATUSLINE)])
+dnl OBSOLETE AC_DEFINE([STATUSLINE], 1))
AC_ARG_ENABLE([t1lib],
[ --disable-t1lib Do not use T1lib (direct rendering of Type1 fonts)],
@@ -124,26 +154,3 @@ AC_ARG_ENABLE([magick],
fi])
AC_SUBST(LDT1LIB)
-
-dnl This defines --with-x implicitly (which is why we use that package
-dnl name below), so put it here, so it comes first in the --help output.
-dnl This reads best.
-
-dnl Remember to add AC_PATH_XTRA when actually using X.
-
-AC_ARG_WITH([xdvi-x-toolkit],
-[ --with-xdvi-x-toolkit=KIT
- Use toolkit KIT for xdvi (KIT=motif/xaw/xaw3d/neXtaw).
- If no --with-xdvi-x-toolkit option is used, use Motif
- if available, else Xaw.],
-[ case "${withval}" in
- next | nextaw | neXtaw ) val=neXtaw ;;
- xaw3d ) val=xaw3d ;;
- x | xa | xaw ) val=xaw ;;
- m | mo | mot | moti | motif ) val=motif ;;
- * )
-AC_MSG_WARN([unknown --with-xdvi-x-toolkit argument \`$withval'; using xaw.])
- val=xaw;;
- esac
- with_xdvi_x_toolkit=$val
-])