⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 fortran并行计算包
💻 IN
📖 第 1 页 / 共 2 页
字号:
#! /bin/shdnldnl Caching is usually WRONG for systems with cross-mounted file systemsdnl (the cache file may correspond to a different system).  Since configurednl is not on a performance-critical path, go for robustness over speed.dnldefine([AC_CACHE_LOAD], )dnldefine([AC_CACHE_SAVE], )dnldnldnlAC_INIT()AC_PREREQ(2.52)AC_CONFIG_AUX_DIR([.]) AC_ARG_ENABLE(echo, [--enable-echo                      - Turn on strong echoing.  The default                                      is enable=no.] ,set -x) AC_ARG_ENABLE(softerror, [--enable-softerror                 - Turn on soft error, i.e. instead of                                      issuing MSG_ERROR, MSG_WARN + exit 0                                      are used.  The default is enable=no.],, enable_softerror=${slog2_enable_softerror:-no})AC_ARG_ENABLE(swingcheck, [--enable-swingcheck                - Turn on the Swing checking code.                                      The default is enable=yes],, enable_swingcheck=yes) AC_ARG_ENABLE(jdb,[--enable-jdb                       - Turn on the use of jdb to run the GUI.                                     The default is enable=no],,enable_jdb=no)# Find the home directory if not specifiedif test "X$srcdir" != "X." -a -s $srcdir/bin/jumpshot.in ; then    top_srcdir_abs=$srcdirelse    PAC_GETWD(top_srcdir_abs,./bin/jumpshot.in)fi if test -z "$top_srcdir_abs" ; then    top_srcdir_abs=`pwd`fiif test ! -d "$top_srcdir_abs" ; then    PAC_MSG_ERROR($enable_softerror, [*** $top_srcdir_abs is not a valid directory - cannot continue])fiAC_SUBST(top_srcdir_abs)# Determine this package's name based on its directory namechangequote(,)dnltmpname="`echo $top_srcdir_abs | sed -e 's%\(.*\)/\([^/]*\)%\2%'`"pkgname="`echo $tmpname | sed -e 'y%abcdefghijklmnopqrstuvwxyz/%ABCDEFGHIJKLMNOPQRSTUVWXYZ_%'`"changequote([,])dnlif test "x$pkgname" = "x" ; then    pkgname="SLOG-2/Jumpshot-4"fi echo "Configuring $pkgname with $ac_configure_args"## Cannot use JAVA_HOME here in this configure.in.# Because JAVA_HOME is used in Blackdown's .java_wrapper in jdk117_v3# Using JAVA_HOME here would mistakenly set some variable in .java_wrapper# when .java_wrapper is invoked.  i.e. causes mysterious error in tests.AC_ARG_WITH(java, [--with-java=JRE_TOPDIR             - The path of the top-level directory of                                      the Java installation.  If this option                                      or with-java2 is not given, configure                                     will try to locate java for you.  Also,                                      with-java2 option overwrites the                                      with-java option to set JRE_TOPDIR.],JRE_TOPDIR=$withval, JRE_TOPDIR="") AC_ARG_WITH(java2, [--with-java2=JRE_TOPDIR            - The path of the top-level directory of                                      the Java installation.  If this option                                      or with-java is not given, configure will                                     try to locate java for you.  Also,                                      with-java2 option overwrites the                                      with-java option to set JRE_TOPDIR.],JRE_TOPDIR=$withval, )AC_ARG_WITH(jvmflags, [--with-jvmflags=JVMFLAGS           - supply java virtual machine flags, e.g.                                      -Xms32m -Xmx256m.],JVMFLAGS="$withval", )AC_ARG_WITH(trace_libdir,[--with-trace-libdir=TRACE_LIBDIR   - The path to the user-defined                                     TRACE-API shared library, i.e.                                     libTraceInput.so/TraceInput.dll.                                     This option creates 2 extra utility                                      programs: traceprint and traceTOslog2.],TRACE_LIBDIR=$withval, )AC_ARG_WITH(trace_name,[--with-trace-name=TRACE_NAME       - The new name prefix that replaces                                      the word trace in the utility programs                                     traceprint and traceTOslog2.],TRACE_NAME=$withval, )dnldnl Set non-standard autoconf/GNU install directory variables, i.e. docdir dnlAC_ARG_WITH(docdir,[--with-docdir=dir                  - Specify the documentation directory.],,with_docdir='${prefix}/doc')## Set the defaults for directories that are not included in configure'sif test -n "$with_docdir" ; then    docdir=$with_docdirelse    docdir='${prefix}/doc'fiAC_SUBST(docdir)# Fixup for makeMAKE=${MAKE:-make}PAC_MAKE_IS_GNUMAKEPAC_MAKE_IS_BSD44PAC_MAKE_IS_OSFPAC_MAKE_VPATH# If we are relying on VPATH and no VPATH is set, then we must exitif test ! -s bin/jumpshot.in -a -z "$VPATH" ; then    AC_MSG_ERROR([No virtual MAKE path command found.	You may need to set your make command.	The GNU make (sometimes available as gnumake) can be used.])fiAC_SUBST(MAKE)dnl checking for working INSTALLAC_PROG_INSTALLPAC_PROG_CHECK_INSTALL_WORKS CPRP=cpMKDIR=mkdirRM="rm -f"MV="mv -f"AC_SUBST(RM)# Check if --without-java is specifiedif test "$JRE_TOPDIR" = "no" ; then    PAC_MSG_ERROR($enable_softerror, [--without-java is specified, exit!])fiif test $enable_jdb = "yes" ; then    pac_JVM=jdb#   Assume jdb is working    is_jvm_working=yeselse    pac_JVM=java    JAC_CHECK_CLASSPATH    is_jvm_working=no    if test "x$JRE_TOPDIR" != "x" ; then        JVM="$JRE_TOPDIR/bin/$pac_JVM"        AC_MSG_CHECKING([if $JVM exists])        if test -x "$JVM" ; then            AC_MSG_RESULT(yes)            jac_java_working=yes        else            AC_MSG_RESULT(no)            jac_java_working=no        fidnl        if test "$jac_java_working" = "yes" ; then            AC_MSG_CHECKING([if $JVM runs simple java class])            JAC_TRY_RUN([$JVM], [$JVMFLAGS],                        [ac_javatest/simple.class],                        [jac_java_working=yes], [jac_java_working=no])            if test "$jac_java_working" = "yes" ; then                AC_MSG_RESULT(yes)            else                AC_MSG_RESULT(no)            fi        fidnl        if test "$jac_java_working" = "yes" ; then            AC_MSG_CHECKING([if $JVM runs simple jar file])            JAC_TRY_RUNJAR([$JVM], [$JVMFLAGS],                           [ac_javatest/simple.jar],                           [jac_java_working=yes], [jac_java_working=no])            if test "$jac_java_working" = "yes" ; then                AC_MSG_RESULT(yes)            else                AC_MSG_RESULT(no)            fi        fidnl        if test "$jac_java_working" = "yes" \             -a "$enable_swingcheck" = "yes" ; then            AC_MSG_CHECKING([if $JVM runs simple Swing class])            JAC_TRY_RUN([$JVM], [$JVMFLAGS],                        [ac_javatest/simple_swing.class],                        [jac_java_working=yes], [jac_java_working=no])            if test "$jac_java_working" = "yes" ; then                AC_MSG_RESULT(yes)            else                AC_MSG_RESULT(no)            fi        fidnl        if test "$jac_java_working" = "yes" \              -a "$enable_swingcheck" = "yes" ; then            AC_MSG_CHECKING([if $JVM runs simple Swing jar file])            JAC_TRY_RUNJAR([$JVM], [$JVMFLAGS],                           [ac_javatest/simple_swing.jar],                           [jac_java_working=yes], [jac_java_working=no])            if test "$jac_java_working" = "yes" ; then                AC_MSG_RESULT(yes)            else                AC_MSG_RESULT(no)            fi        fidnl        if test "$jac_java_working" = "yes" ; then            is_jvm_working=yes        else            is_jvm_working=no        fi    fi#    if test "$is_jvm_working" = "no" ; then        JAC_PATH_PROG(JVM, $pac_JVM, [            JAC_TRY_RUN([$JVM], [$JVMFLAGS],                        [ac_javatest/simple.class],                        [jac_java_working=yes], [jac_java_working=no])            if test "$jac_java_working" = "yes" ; then                AC_MSG_RESULT(yes)                AC_MSG_CHECKING([if $JVM runs simple jar file])                JAC_TRY_RUNJAR([$JVM], [$JVMFLAGS],                               [ac_javatest/simple.jar],                               [jac_java_working=yes], [jac_java_working=no])            fi            if test "$jac_java_working" = "yes" \                 -a "$enable_swingcheck" = "yes" ; then                AC_MSG_RESULT(yes)                AC_MSG_CHECKING([if $JVM runs simple Swing class])                JAC_TRY_RUN([$JVM], [$JVMFLAGS],                            [ac_javatest/simple_swing.class],                            [jac_java_working=yes], [jac_java_working=no])            fi            if test "$jac_java_working" = "yes" \                 -a "$enable_swingcheck" = "yes" ; then                AC_MSG_RESULT(yes)                AC_MSG_CHECKING([if $JVM runs simple Swing jar file])                JAC_TRY_RUNJAR([$JVM], [$JVMFLAGS],                               [ac_javatest/simple_swing.jar],                               [jac_java_working=yes], [jac_java_working=no])            fi            if test "$jac_java_working" = "yes" ; then                jac_prog_working=yes            else                jac_prog_working=no            fi        ])#       If JVM still hasn't been found, we need to abort!        if test "x$JVM" = "x" ; then            PAC_MSG_ERROR($enable_softerror,                          [No Java Virtual Machine can be found anywhere!])        fi        is_jvm_working=yes    fifi# CHECK the version of Java used # Filter out the version of JDK that causes problemif test "$enable_jdb" = "no" ; then    AC_MSG_CHECKING(for Java version)    VERSION=`$JVM -fullversion 2>&1`    case "$VERSION" in

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -