--- configure.orig	Mon Sep 21 21:10:26 1998
+++ configure	Mon Nov 16 02:45:41 1998
@@ -241,7 +241,10 @@
 ### Debug version
 echo
 echo "Debugging..."
-debug=`yesno "Do you want a debug version ?"`
+if test -z "$debug"
+then
+	debug=`yesno "Do you want a debug version ?"`
+fi
 if test "$debug" = "Y"
 then
 	mm_cflags="$mm_cflags -DMIKMOD_DEBUG -g"
@@ -265,7 +268,12 @@
 else
 	echo "(this is recommended for your platform if you have the AudioFile library)"
 fi
-driver_af=`yesno "Include AudioFile driver ?"`
+if test -z "$driver_afx"
+then
+	driver_af=`yesno "Include AudioFile driver ?"`
+else
+	driver_af="$driver_afx"
+fi
 if test "$driver_af" = "Y"
 then
 	mm_ldflags="$mm_ldflags -lAF"
@@ -283,7 +291,12 @@
 else
 	echo "(this is recommended for your platform if you have the EsounD library)"
 fi
-driver_esd=`yesno "Include EsounD driver ?"`
+if test -z "$driver_esdx"
+then
+	driver_esd=`yesno "Include EsounD driver ?"`
+else
+	driver_esd="$driver_esdx"
+fi
 if test "$driver_esd" = "Y"
 then
 	mm_ldflags="$mm_ldflags -lesd"
@@ -301,7 +314,12 @@
 else
 	echo "(this is recommended for your platform)"
 fi
-driver_oss=`yesno "Include OSS driver ?"`
+if test -z "$driver_ossx"
+then
+	driver_oss=`yesno "Include OSS driver ?"`
+else
+	driver_oss="$driver_ossx"
+fi
 if test "$driver_oss" = "Y"
 then
 	mm_cflags="$mm_cflags -DDRV_OSS"
@@ -326,7 +344,10 @@
 
 # Ncurses
 echo "For the player, ncurses 4.0 or later is recommended."
-ncurses=`yesno "Do you have ncurses installed (/usr/include/ncurses.h and -lncurses) ?"`
+if test -z "$ncurses"
+then
+	ncurses=`yesno "Do you have ncurses installed (/usr/include/ncurses.h and -lncurses) ?"`
+fi
 if test "$ncurses" = "Y"
 then
 	mm_cflags="$mm_cflags -DHAVE_NCURSES"
@@ -348,7 +369,10 @@
 		then
 			echo "(realtime priority is not supported under `uname`)"
 		fi
-		snagger=`yesno "Do you want the Cpu time snagger feature ?"`
+		if test -z "$snagger"
+		then
+			snagger=`yesno "Do you want the Cpu time snagger feature ?"`
+		fi 	
 		if test "$snagger" = "Y"
 		then
 			mm_cflags="$mm_cflags -DCPUTIME_SNAGGER"
@@ -360,7 +384,10 @@
 # High quality mixer
 echo "The High quality mixer will improve the quality of your sounds, but requires"
 echo "a huge amount of power ! That's why it is not recommended."
-virtch2=`yesno "Do you want the high quality mixer ?"`
+if test -z "$virtch2"
+then
+	virtch2=`yesno "Do you want the high quality mixer ?"`
+fi
 if test "$virtch2" = "Y"
 then
 	virtch="virtch2.o"
