diff --git a/tools/configure b/tools/configure index 62a3f1ee3c..b689e2a120 100755 --- a/tools/configure +++ b/tools/configure @@ -17,22 +17,43 @@ input() { } simul () { + +if [ -z "$simver" ]; then + + ################################################################## + # Figure out win32/x11 GUI + # + echo "" + echo "Build (W)in32 or (X)11 GUI version? (X)" + + option=`input`; + + case $option in + [Ww]) + simver="win32" + ;; + *) + simver="x11" + ;; + esac +fi + ################################################################## # Figure out where the firmware code is! # - simfile="x11/lcd-x11.c" # a file to check for in the uisimulator root dir + simfile="$simver/lcd-$simver.c" # a file to check for in the uisimulator root dir for dir in uisimulator . .. ../uisimulator ../../uisimulator; do if [ -f "$dir/$simfile" ]; then - simdir="$dir/x11" + simdir="$dir/$simver" break fi done if [ -z "$simdir" ]; then - echo "This script couldn't find your uisimulator/x11 directory. Please enter the" - echo "full path to your uisimulator/x11 directory here:" + echo "This script couldn't find your uisimulator/$simver directory. Please enter the" + echo "full path to your uisimulator/$simver directory here:" simdir=`input` fi @@ -44,6 +65,7 @@ sed > Makefile \ -e "s,@DISPLAY@,${display},g" \ -e "s,@KEYPAD@,${keypad},g" \ -e "s,@PWD@,${pwd},g" \ + -e "s,@SIMVER@,${simver},g" \ <