aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xconfigure18
-rw-r--r--configure.in16
2 files changed, 25 insertions, 9 deletions
diff --git a/configure b/configure
index 077ca9c..5a21ab8 100755
--- a/configure
+++ b/configure
@@ -4573,6 +4573,7 @@ echo "$as_me:$LINENO: result: done" >&5
echo "${ECHO_T}done" >&6
RASTER="no"
+PARPORT="no"
if test "$BECKMANNEGLE" = "yes"; then
DRIVERS="$DRIVERS BeckmannEgle.o"
@@ -4602,6 +4603,7 @@ _ACEOF
fi
if test "$HD44780" = "yes"; then
+ PARPORT="yes"
DRIVERS="$DRIVERS HD44780.o"
cat >>confdefs.h <<\_ACEOF
@@ -4611,6 +4613,7 @@ _ACEOF
fi
if test "$M50530" = "yes"; then
+ PARPORT="yes"
DRIVERS="$DRIVERS M50530.o"
cat >>confdefs.h <<\_ACEOF
@@ -4620,6 +4623,7 @@ _ACEOF
fi
if test "$T6963" = "yes"; then
+ PARPORT="yes"
DRIVERS="$DRIVERS T6963.o"
cat >>confdefs.h <<\_ACEOF
@@ -4724,16 +4728,20 @@ _ACEOF
fi
fi
+if test "$DRIVERS" = ""; then
+ { { echo "$as_me:$LINENO: error: You should include at least one driver..." >&5
+echo "$as_me: error: You should include at least one driver..." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
# Raster.o depends on PPM or PNG
if test "$RASTER" = "yes"; then
DRIVERS="$DRIVERS Raster.o"
fi
-
-if test "$DRIVERS" = ""; then
- { { echo "$as_me:$LINENO: error: You should include at least one driver..." >&5
-echo "$as_me: error: You should include at least one driver..." >&2;}
- { (exit 1); exit 1; }; }
+# parport driver
+if test "$PARPORT" = "yes"; then
+ DRIVERS="$DRIVERS parport.o"
fi
diff --git a/configure.in b/configure.in
index 3d052a4..8648538 100644
--- a/configure.in
+++ b/configure.in
@@ -121,6 +121,7 @@ done
AC_MSG_RESULT([done])
RASTER="no"
+PARPORT="no"
if test "$BECKMANNEGLE" = "yes"; then
DRIVERS="$DRIVERS BeckmannEgle.o"
@@ -138,16 +139,19 @@ if test "$CWLINUX" = "yes"; then
fi
if test "$HD44780" = "yes"; then
+ PARPORT="yes"
DRIVERS="$DRIVERS HD44780.o"
AC_DEFINE(WITH_HD44780,1,[junk])
fi
if test "$M50530" = "yes"; then
+ PARPORT="yes"
DRIVERS="$DRIVERS M50530.o"
AC_DEFINE(WITH_M50530,1,[junk])
fi
if test "$T6963" = "yes"; then
+ PARPORT="yes"
DRIVERS="$DRIVERS T6963.o"
AC_DEFINE(WITH_T6963,1,[junk])
fi
@@ -209,16 +213,20 @@ if test "$X11" = "yes"; then
fi
fi
+if test "$DRIVERS" = ""; then
+ AC_MSG_ERROR([You should include at least one driver...])
+fi
+
# Raster.o depends on PPM or PNG
if test "$RASTER" = "yes"; then
DRIVERS="$DRIVERS Raster.o"
fi
-
-if test "$DRIVERS" = ""; then
- AC_MSG_ERROR([You should include at least one driver...])
+# parport driver
+if test "$PARPORT" = "yes"; then
+ DRIVERS="$DRIVERS parport.o"
fi
-
+
AC_SUBST(DRIVERS)
AC_SUBST(DRVLIBS)