OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [insight/] [libgui/] [configure.in] - Diff between revs 579 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 579 Rev 1765
dnl Process this file with autoconf to produce configure.
dnl Process this file with autoconf to produce configure.
AC_INIT(src/subcommand.h)
AC_INIT(src/subcommand.h)
AM_INIT_AUTOMAKE(libgui, 0.0)
AM_INIT_AUTOMAKE(libgui, 0.0)
AM_CONFIG_HEADER(config.h)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AM_MAINTAINER_MODE
AC_PROG_CC
AC_PROG_CC
AC_EXEEXT
AC_EXEEXT
AC_OBJEXT
AC_OBJEXT
AC_ARG_ENABLE(install-libgui, \
AC_ARG_ENABLE(install-libgui, \
  [  --enable-install-libgui Install libgui.a and library header files])
  [  --enable-install-libgui Install libgui.a and library header files])
AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)
AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)
AM_CONDITIONAL(INSTALL_LIBGUI, test x$enable_install_libgui = xyes)
AM_CONDITIONAL(INSTALL_LIBGUI, test x$enable_install_libgui = xyes)
AC_PROG_RANLIB
AC_PROG_RANLIB
AC_FUNC_ALLOCA
AC_FUNC_ALLOCA
AC_HAVE_HEADERS(stddef.h stdlib.h getopt.h unistd.h fcntl.h sys/file.h sys/wait.h string.h strings.h)
AC_HAVE_HEADERS(stddef.h stdlib.h getopt.h unistd.h fcntl.h sys/file.h sys/wait.h string.h strings.h)
AC_CHECK_FUNCS(raise strdup)
AC_CHECK_FUNCS(raise strdup)
AC_ARG_ENABLE(ide, [  --enable-ide            Enable IDE support],
AC_ARG_ENABLE(ide, [  --enable-ide            Enable IDE support],
[case "${enableval}" in
[case "${enableval}" in
  yes) ide=yes ;;
  yes) ide=yes ;;
  no)  ide=no ;;
  no)  ide=no ;;
  *)   AC_MSG_ERROR(bad value ${enableval} for enable-ide option) ;;
  *)   AC_MSG_ERROR(bad value ${enableval} for enable-ide option) ;;
esac],
esac],
[ide=no])
[ide=no])
AM_CONDITIONAL(IDE_ENABLED, test x$ide = xyes)
AM_CONDITIONAL(IDE_ENABLED, test x$ide = xyes)
if test x$ide = xyes; then
if test x$ide = xyes; then
  AC_DEFINE(IDE_ENABLED)
  AC_DEFINE(IDE_ENABLED)
fi
fi
# If we have random, assume we have srandom.  If we have drand48,
# If we have random, assume we have srandom.  If we have drand48,
# assume we have srand48.  If we have rand, assume we have srand.
# assume we have srand48.  If we have rand, assume we have srand.
AC_CHECK_FUNCS(random drand48 rand, break)
AC_CHECK_FUNCS(random drand48 rand, break)
dnl Tcl ensures that strncasecmp is provided everywhere.  But in some
dnl Tcl ensures that strncasecmp is provided everywhere.  But in some
dnl situations we might need to declare it.  We check for that case
dnl situations we might need to declare it.  We check for that case
dnl here.
dnl here.
AC_EGREP_CPP(strncasecmp, [#include ],
AC_EGREP_CPP(strncasecmp, [#include ],
  AC_DEFINE(HAVE_STRNCASECMP_DECL))
  AC_DEFINE(HAVE_STRNCASECMP_DECL))
# Tcl8.1 requires writable strings for gcc
# Tcl8.1 requires writable strings for gcc
if test "$GCC" = "yes"; then
if test "$GCC" = "yes"; then
   LIBGUI_CFLAGS=-fwritable-strings
   LIBGUI_CFLAGS=-fwritable-strings
else
else
   LIBGUI_CFLAGS=
   LIBGUI_CFLAGS=
fi
fi
AC_CACHE_CHECK([for cygwin32], ide_cv_os_cygwin32,
AC_CACHE_CHECK([for cygwin32], ide_cv_os_cygwin32,
[AC_EGREP_CPP(lose, [
[AC_EGREP_CPP(lose, [
#ifdef __CYGWIN32__
#ifdef __CYGWIN32__
lose
lose
#endif],[ide_cv_os_cygwin32=yes],[ide_cv_os_cygwin32=no])])
#endif],[ide_cv_os_cygwin32=yes],[ide_cv_os_cygwin32=no])])
ac_win_build="no"
ac_win_build="no"
if test x$ide_cv_os_cygwin32 = xyes; then
if test x$ide_cv_os_cygwin32 = xyes; then
  ac_win_build="yes"
  ac_win_build="yes"
fi
fi
tmp="`cd $srcdir/library; pwd`"
tmp="`cd $srcdir/library; pwd`"
if test x"$ac_cv_prog_CC" = xcl ; then
if test x"$ac_cv_prog_CC" = xcl ; then
  tmp2="`cygpath --windows $tmp`"
  tmp2="`cygpath --windows $tmp`"
  LIBGUI_LIBRARY_DIR="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
  LIBGUI_LIBRARY_DIR="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
else
else
  LIBGUI_LIBRARY_DIR=$tmp
  LIBGUI_LIBRARY_DIR=$tmp
fi
fi
AC_SUBST(LIBGUI_LIBRARY_DIR)
AC_SUBST(LIBGUI_LIBRARY_DIR)
# Find the init.tcl file.
# Find the init.tcl file.
AC_MSG_CHECKING(for init.tcl)
AC_MSG_CHECKING(for init.tcl)
AC_CACHE_VAL(ac_cv_c_tcl_libdir,[
AC_CACHE_VAL(ac_cv_c_tcl_libdir,[
dnl currently, only check the source tree
dnl currently, only check the source tree
if test -f $srcdir/../tcl/library/init.tcl ; then
if test -f $srcdir/../tcl/library/init.tcl ; then
  ac_cv_c_tcl_libdir=`cd $srcdir/../tcl/library; pwd`
  ac_cv_c_tcl_libdir=`cd $srcdir/../tcl/library; pwd`
elif test -f $srcdir/../tcl8.1/library/init.tcl; then
elif test -f $srcdir/../tcl8.1/library/init.tcl; then
  ac_cv_c_tcl_libdir=`cd $srcdir/../tcl8.1/library; pwd`
  ac_cv_c_tcl_libdir=`cd $srcdir/../tcl8.1/library; pwd`
fi
fi
])
])
AC_MSG_RESULT(${ac_cv_c_tcl_libdir})
AC_MSG_RESULT(${ac_cv_c_tcl_libdir})
if test x"$ac_cv_prog_CC" = xcl; then
if test x"$ac_cv_prog_CC" = xcl; then
  tmp2="`cygpath --windows $ac_cv_c_tcl_libdir`"
  tmp2="`cygpath --windows $ac_cv_c_tcl_libdir`"
  TCL_LIBRARY="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
  TCL_LIBRARY="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
else
else
  TCL_LIBRARY=$ac_cv_c_tcl_libdir
  TCL_LIBRARY=$ac_cv_c_tcl_libdir
fi
fi
AC_SUBST(TCL_LIBRARY)
AC_SUBST(TCL_LIBRARY)
# Check for Tcl and Tk.
# Check for Tcl and Tk.
CYG_AC_PATH_TCLCONFIG
CYG_AC_PATH_TCLCONFIG
CYG_AC_LOAD_TCLCONFIG
CYG_AC_LOAD_TCLCONFIG
CYG_AC_PATH_TKCONFIG
CYG_AC_PATH_TKCONFIG
CYG_AC_LOAD_TKCONFIG
CYG_AC_LOAD_TKCONFIG
CYG_AC_PATH_TCLH
CYG_AC_PATH_TCLH
# FIXME: consider only doing this if --with-x given.
# FIXME: consider only doing this if --with-x given.
CYG_AC_PATH_TKH
CYG_AC_PATH_TKH
CYG_AC_PATH_ITCLCONFIG
CYG_AC_PATH_ITCLCONFIG
CYG_AC_LOAD_ITCLCONFIG
CYG_AC_LOAD_ITCLCONFIG
dnl what is the path to itclsh?
dnl what is the path to itclsh?
AC_CANONICAL_HOST
AC_CANONICAL_HOST
case ${host} in
case ${host} in
*cygwin*)
*cygwin*)
        ITCL_DIR=itcl/itcl/win
        ITCL_DIR=itcl/itcl/win
        touch ac$$.c
        touch ac$$.c
        if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
        if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
            case "$LIBGUI_CFLAGS" in
            case "$LIBGUI_CFLAGS" in
                *-mwin32*) ;;
                *-mwin32*) ;;
                *) LIBGUI_CFLAGS="-mwin32 $LIBGUI_CFLAGS" ;;
                *) LIBGUI_CFLAGS="-mwin32 $LIBGUI_CFLAGS" ;;
            esac
            esac
        fi
        fi
        rm -f ac$$.o ac$$.c
        rm -f ac$$.o ac$$.c
        ;;
        ;;
*)              ITCL_DIR=itcl/itcl/unix ;;
*)              ITCL_DIR=itcl/itcl/unix ;;
esac
esac
AC_SUBST(LIBGUI_CFLAGS)
AC_SUBST(LIBGUI_CFLAGS)
AC_SUBST(TCL_DEFS)
AC_SUBST(TCL_DEFS)
AC_SUBST(TK_DEFS)
AC_SUBST(TK_DEFS)
AC_SUBST(TCLHDIR)
AC_SUBST(TCLHDIR)
AC_SUBST(TKHDIR)
AC_SUBST(TKHDIR)
AC_SUBST(TK_XINCLUDES)
AC_SUBST(TK_XINCLUDES)
AC_SUBST(TCL_LIBS)
AC_SUBST(TCL_LIBS)
AC_SUBST(TK_BUILD_LIB_SPEC)
AC_SUBST(TK_BUILD_LIB_SPEC)
AC_SUBST(TCL_BUILD_LIB_SPEC)
AC_SUBST(TCL_BUILD_LIB_SPEC)
AC_SUBST(TK_LIBS)
AC_SUBST(TK_LIBS)
AC_SUBST(ITCL_DIR)
AC_SUBST(ITCL_DIR)
AM_CONDITIONAL(TCL_SHARED, test x$TCL_SHARED_BUILD = x1)
AM_CONDITIONAL(TCL_SHARED, test x$TCL_SHARED_BUILD = x1)
AC_SUBST(RPATH_ENVVAR)
AC_SUBST(RPATH_ENVVAR)
AC_OUTPUT([Makefile library/Makefile src/Makefile])
AC_OUTPUT([Makefile library/Makefile src/Makefile])
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.