-if test "$THAT_CC" = "$THIS_CC" ; then
-case "$PATH" in
-:*) PATH=../progs:../lib:${DESTDIR}$bindir$PATH ;;
-*) PATH=../progs:../lib:${DESTDIR}$bindir:$PATH ;;
-esac
-export PATH
-SHLIB="sh $srcdir/shlib"
+if test "x$cross_compiling" = "xno"
+then
+ if test -f ../progs/tic$suffix
+ then
+ case "$PATH" in
+ \@PATH_SEPARATOR@*)
+ PATH="../progs@PATH_SEPARATOR@../lib@PATH_SEPARATOR@${DESTDIR}$bindir$PATH"
+ ;;
+ *)
+ PATH="../progs@PATH_SEPARATOR@../lib@PATH_SEPARATOR@${DESTDIR}$bindir@PATH_SEPARATOR@$PATH"
+ ;;
+ esac
+ export PATH
+ if test @DFT_LWR_MODEL@ = shared
+ then
+ SHLIB="sh $srcdir/shlib"
+ TIC_PATH="$SHLIB tic"
+ else
+ TIC_PATH="tic"
+ fi
+ elif test "$TIC_PATH" = unknown
+ then
+ echo "? no tic program found"
+ exit 1
+ fi