case "$which_graphic_lib" in qt|Qt) if test -z "$with_qt"; then with_qt=yes; fi ;; esac if test -n "$with_qt"; then which_graphic_lib=qt QTDIR= case "$with_qt" in yes) pth="/usr/local/lib /usr/local/share /usr/lib /usr/share" QTDIR=`locatedir qt/bin $pth` if test -z "$QTDIR"; then QTDIR=`locatedir qt3/bin $pth` if test -z "$QTDIR"; then QTDIR=`locatedir qt2/bin $pth` fi fi; QTDIR=`dirname $QTDIR`;; *) if test ! -d "$with_qt"; then echo "### Qt directory '$with_qt' not found" else QTDIR=$with_qt fi;; esac if test -n "$QTDIR"; then case "$QTDIR" in /) QTDIR=;; esac exe=$osname-$arch-Qt$$ if ($CC $extraflag -o $exe ansi.c -L$QTDIR/lib -lqt-mt 2>/dev/null); then QTLIB=-lqt-mt else QTLIB=-lqt fi rm -f $exe $exe$exe_suff echo "Using Qt library, QTDIR = $QTDIR, QTLIB = $QTLIB" else echo "### Qt not found. Building without Qt support" which_graphic_lib=none fi fi