#!/bin/sh

while [ 1 ]
do

X=""
while [ -z "$X" ]
	do
	echo "Build GTKWave for GTK+-1.x or 2.x? Please enter '1' or '2'"
	read X
	done

if [ "$X" = "1" ]
	then echo "Building for GTK+-1.x..."
	ln -fs Makefile_GTK1.in src/Makefile.in
	./configure2 "$@"
	exit
	fi

if [ "$X" = "2" ]
	then echo "Building for GTK+-2.x..."
	ln -fs Makefile_GTK2.in src/Makefile.in
	./configure2 "$@"
	exit
	fi

done

