configure.in
上传用户:zhuqijet
上传日期:2013-06-25
资源大小:10074k
文件大小:3k
源码类别:

词法分析

开发平台:

Visual C++

  1. dnl Process this file with autoconf to produce a configure script
  2. AC_INIT(SAXCount/SAXCount.hpp)
  3. dnl Checks for programs
  4. AC_PROG_CC
  5. AC_PROG_CXX
  6. AC_PROG_INSTALL
  7. AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
  8. dnl Checks for libraries
  9. AC_CHECK_LIB(m, floor)
  10. dnl special pthread handling (AIX uses pthreads instead of pthread)
  11. AC_CHECK_LIB(pthread, pthread_create)
  12. if test $ac_cv_lib_pthread_pthread_create = no; then
  13. AC_CHECK_LIB(pthreads, pthread_create)
  14. fi
  15. dnl Checks for header files
  16. AC_CHECK_HEADERS(inttypes.h)
  17. if test $ac_cv_header_inttypes_h = no; then
  18. HAVE_INTTYPES_H=0
  19. else
  20. HAVE_INTTYPES_H=1
  21. fi
  22. AC_SUBST(HAVE_INTTYPES_H)
  23. dnl Determine the host system and Makefile fragment
  24. AC_CANONICAL_HOST
  25. dnl Platform-specific Makefile setup
  26. case "${host}" in
  27.         *-*-solaris*)   platform=SOLARIS ;;
  28.         *-*-sco*)       platform=OPENSERVER ;;
  29.         *-*-sysv5*)     platform=UNIXWARE ;;
  30.         *-*-UnixWare*)  platform=UNIXWARE ;;
  31.         *-*-*unixware*) platform=UNIXWARE ;;
  32.         *-*-sysv5uw7*)  platform=UNIXWARE ;;
  33.         *-*-beos*)      platform=BEOS ;;
  34.         *-*-linux*)     platform=LINUX ;;
  35.         *-*-nto*)       platform=QNX ;;
  36.         *-*-freebsd*)   platform=FREEBSD ;;
  37.         *-*-netbsd*)    platform=NETBSD ;;
  38.         *-*-irix*)      platform=IRIX ;;
  39.         *-*-aix*)       platform=AIX ;;
  40.         *-*-hp*)        platform=HPUX ;
  41.                         case "${host}" in
  42.                             *-*-hpux11*)  osver=HPUX11;;
  43.                             *-*-hpux10*)  osver=HPUX10;;
  44.                             *)            osver=HPUX11;;
  45.                         esac;;
  46.         *-*-mvs*)       platform=OS390 ;;
  47.         *-*-os400*)     platform=OS400 ;;
  48.         *-*-OS400*)     platform=OS400 ;;
  49.         *-*-osf*)       platform=TRU64 ;;
  50.         *-apple-*) platform=MACOSX ;;
  51.         *-*-cygwin*) platform=CYGWIN ;;
  52.         *)              platform=UNKNOWN ;;
  53. esac
  54. AC_SUBST(platform)
  55. compiler=${CXX}
  56. AC_SUBST(compiler)
  57. AC_SUBST(GXX)
  58. AC_SUBST(GCC)
  59. # prefix=${prefix}
  60. AC_SUBST(prefix)
  61. cxxflags=${CXXFLAGS}
  62. AC_SUBST(cxxflags)
  63. cflags=${CFLAGS}
  64. AC_SUBST(cflags)
  65. ldflags=${LDFLAGS}
  66. AC_SUBST(ldflags)
  67. threads=${THREADS}
  68. AC_SUBST(threads)
  69. bitstobuild=${BITSTOBUILD}
  70. AC_SUBST(bitstobuild)
  71. extra_libs=${EXTRA_LIBS}
  72. AC_SUBST(extra_libs)
  73. dnl output the Makefiles
  74. AC_OUTPUT([Makefile 
  75. SAXCount/Makefile 
  76. SAX2Count/Makefile 
  77. DOMCount/Makefile 
  78. SAXPrint/Makefile 
  79. SAX2Print/Makefile 
  80. DOMPrint/Makefile 
  81. MemParse/Makefile 
  82. Redirect/Makefile 
  83. PParse/Makefile 
  84. StdInParse/Makefile 
  85. EnumVal/Makefile 
  86. SEnumVal/Makefile 
  87. CreateDOMDocument/Makefile])
  88. echo
  89. echo Having build problems? Read instructions at http://xml.apache.org/xerces-c/build.html