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

📄 ac_prog_java_works.ac

📁 mysql-5.0.27版本源码包
💻 AC
字号:
dnl @synopsis AC_PROG_JAVA_WORKSdnldnl Internal use ONLY.dnldnl Note: This is part of the set of autoconf M4 macros for Java programs.dnl It is VERY IMPORTANT that you download the whole set, somednl macros depend on other. Unfortunately, the autoconf archive does notdnl support the concept of set of macros, so I had to break it fordnl submission.dnl The general documentation, as well as the sample configure.in, isdnl included in the AC_PROG_JAVA macro.dnldnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>dnl @version $Id: ac_prog_java_works.ac,v 1.1 2001/08/23 16:58:44 dda Exp $dnlAC_DEFUN([AC_PROG_JAVA_WORKS], [AC_CHECK_PROG(uudecode, uudecode$EXEEXT, yes)if test x$uudecode = xyes; thenAC_CACHE_CHECK([if uudecode can decode base 64 file], ac_cv_prog_uudecode_base64, [dnl /**dnl  * Test.java: used to test if java compiler works.dnl  */dnl public class Testdnl {dnldnl public static voiddnl main( String[] argv )dnl {dnl     System.exit (0);dnl }dnldnl }cat << \EOF > Test.uuebegin-base64 644 Test.classyv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAEbWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9sYW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VGaWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQABAAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQABAAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=====EOFif uudecode$EXEEXT Test.uue; then        ac_cv_prog_uudecode_base64=yeselse        echo "configure: __oline__: uudecode had trouble decoding base 64 file 'Test.uue'" >&AC_FD_CC        echo "configure: failed file was:" >&AC_FD_CC        cat Test.uue >&AC_FD_CC        ac_cv_prog_uudecode_base64=nofirm -f Test.uue])fiif test x$ac_cv_prog_uudecode_base64 != xyes; then        rm -f Test.class        AC_MSG_WARN([I have to compile Test.class from scratch])        if test x$ac_cv_prog_javac_works = xno; then                AC_MSG_ERROR([Cannot compile java source. $JAVAC does not work properly])        fi        if test x$ac_cv_prog_javac_works = x; then                AC_PROG_JAVAC        fifiAC_CACHE_CHECK(if $JAVA works, ac_cv_prog_java_works, [JAVA_TEST=Test.javaCLASS_TEST=Test.classTEST=Testchangequote(, )dnlcat << \EOF > $JAVA_TEST/* [#]line __oline__ "configure" */public class Test {public static void main (String args[]) {        System.exit (0);} }EOFchangequote([, ])dnlif test x$ac_cv_prog_uudecode_base64 != xyes; then        if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) && test -s $CLASS_TEST; then                :        else          echo "configure: failed program was:" >&AC_FD_CC          cat $JAVA_TEST >&AC_FD_CC          AC_MSG_ERROR(The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?))        fifiif AC_TRY_COMMAND($JAVA $JAVAFLAGS $TEST) >/dev/null 2>&1; then  ac_cv_prog_java_works=yeselse  echo "configure: failed program was:" >&AC_FD_CC  cat $JAVA_TEST >&AC_FD_CC  AC_MSG_ERROR(The Java VM $JAVA failed (see config.log, check the CLASSPATH?))firm -fr $JAVA_TEST $CLASS_TEST Test.uue])AC_PROVIDE([$0])dnl])

⌨️ 快捷键说明

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