dnl standard final commands for vic/vat/etc. autoconf scripts dnl $Header: configure.in.tail,v 1.4 96/04/04 03:12:51 van Exp $ (LBL) # tcl7.5 needs a dynamic loading library (unless built with the # -disable-load flag). Try to find the appropriate one. if test ! -z "$V_NEED_DL" ; then V_LIB_DL="" case "$target" in *-*-solaris*) V_LIB_DL="dl" ;; sparc-sun-sunos*) V_LIB_DL="dl" ;; *-*-hpux*) V_LIB_DL="dld" ;; *-*-linux*) AC_CHECK_LIB(dl, dlopen, V_LIB_DL="dl", V_LIB_DL="dld") ;; esac if test ! -z "$V_LIB_DL" ; then AC_CHECK_LIB($V_LIB_DL, main, , V_LIB_DL="", $V_STATIC) fi if test ! -z "$V_LIB_DL" ; then V_LIB="$V_LIB -l$V_LIB_DL" else echo "no dynamic load lib" fi fi AC_SUBST(V_STATIC) if test "$host_cpu" = alpha ; then V_DEFINE="$V_DEFINE -DINT_64=u_long" fi # various include hacks dirs="/usr/src/local/include-fixes \ /import/mcast/include" for dir in $dirs; do if test -d $dir ; then V_INCLUDE="$V_INCLUDE -I$dir" fi done # always use -g with gcc during development (even with -O) if test "$CC" = gcc && test -f .devel ; then V_CCOPT="$V_CCOPT -g -Wall" V_DEFINE="$V_DEFINE -fsigned-char" fi V_TAR_TARGET=$target_os AC_SUBST(V_TAR_TARGET) AC_SUBST(V_ALL) AC_SUBST(V_CCOPT) AC_SUBST(V_TAR_EXTRA) AC_SUBST(V_LIB) AC_SUBST(V_DEFINE) AC_SUBST(V_SIGRET) AC_SUBST(V_SHELL) AC_SUBST(V_TARCMD) AC_SUBST(V_INCLUDE) AC_SUBST(V_OBJ) AC_SUBST(V_BROKEN_OBJ) AC_SUBST(V_OBJ_CRYPT) AC_OUTPUT(Makefile) if test -f .devel ; then make depend fi