-AC_PREFIX_PROGRAM(tclsh)
-AC_STDC_HEADERS
-if test "$ac_cv_header_stdc" = no; then
- AC_MSG_WARN(Your system doesn't seem to support ANSI C)
-fi
-dnl ------ look for YAZ/XTImOSI
-AC_MSG_CHECKING(for YAZ directory)
-AC_ARG_WITH(yazdir,[ --with-yazdir Yaz directory], [YAZDIR=$withval])
-if test "$YAZDIR" = "yes"; then
- YAZDIR="../yaz-1.0"
-elif test "$YAZDIR" = ""; then
- YAZDIR="../yaz"
- for i in ../yaz-1.0pl3 ../yaz-1.0pl4 ../yaz-1.0pl5 ../yaz; do
- if test -d $i; then
- YAZDIR=$i
- fi
- done
-fi
-AC_MSG_RESULT($YAZDIR)
-if test ! -d $YAZDIR; then
- AC_MSG_WARN(YAZ directory doesnt exist)
-fi
-AC_MSG_CHECKING(for MOSI)
-AC_ARG_WITH(mosidir, [ --with-mosidir MOSI directory], [MOSIDIR=$withval])
-if test "$MOSIDIR" = "yes"; then
- MOSIDIR="../xtimosi/src"
-elif test "$MOSIDIR" = ""; then
- MOSIDIR="../xtimosi/src"
-fi
-if test -r ${YAZDIR}/lib/librfc.a; then
- MOSI=1
- MOSIDIR=$MOSIDIR
- MOSILIB='$(MOSIDIR)/libmosi.a $(YAZDIR)/lib/librfc.a'
- MOSIINC='-I$(MOSIDIR)'
- MOSITELL=yes
-else
- MOSI=0
- MOSIDIR=$MOSIDIR
- MOSILIB='# $(MOSIDIR)/libmosi.a $(YAZDIR)/lib/librfc.a'
- MOSIINC='# -I$(MOSIDIR)'
- MOSITELL=no
-fi
-AC_MSG_RESULT($MOSITELL)