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

📄 configure.in

📁 MIDI解码程序(用VC编写)
💻 IN
📖 第 1 页 / 共 4 页
字号:
dnl TiMidity++ -- MIDI to WAVE converter and playerdnl Copyright (C) 1999-2002 Masanao Izumo <mo@goice.co.jp>dnl Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi>dnldnl This program is free software; you can redistribute it and/or modifydnl it under the terms of the GNU General Public License as published bydnl the Free Software Foundation; either version 2 of the License, ordnl (at your option) any later version.dnldnl This program is distributed in the hope that it will be useful,dnl but WITHOUT ANY WARRANTY; without even the implied warranty ofdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See thednl GNU General Public License for more details.dnldnl You should have received a copy of the GNU General Public Licensednl along with this program; if not, write to the Free Softwarednl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USAdnl configure.in created from configure.scandnl by URABE, Shyouhei <root@mput.dip.jp> on 2002.07.06dnl variable note:dnl CFLAGS	- Flags for compile.dnl CPPFLAGS	- Flags for cppdnl LDFLAGS	- Flags for linkerdnl		ac_cpp:	    $CPP $CPPFLAGSdnl		ac_compile: ${CC-cc} -c $CFLAGS $CPPFLAGSdnl		ac_link:    ${CC-cc} -o * $CFLAGS $CPPFLAGS $LDFLAGS *.c $LIBSdnl EXTRACFLAGS - Extra flags to compile.  Adds to CFLAGS.dnl EXTRADEFS	- Extra define macros.	Adds to CPPFLAGS.dnl EXTRALIBS	- Extra libraries  Adds to LIBS.dnl SYSEXTRAS	- Additional source codes to compile.dnl lib_*_opt	- Optional libraries. Adds to LIBS.dnl LIBRARY_PATHdnl		- add to -L LDFLAGSdnl C_INCLUDE_PATHdnl		- add to -I CPPFLAGSdnl CYGNUS	- `yes' if cygnus windows environment.dnl MSYS	- `yes' if Mingw windows environment.dnl WISH	- wishdnl LN_S	- ln -sdnl tcltk_dep	- make dependencies for tcl/tk interfacednldnl so		- File extension of shared object library.dnl SHLD	- Linker to make shared object library.dnl SHLDFLAGS	- Link flags to link shared object library.dnl SHCFLAGS	- Additional flags to compile shared object library.dnl		  (such as -fPIC)# This is a autoscan-generated configure.scan.# AC_PREREQ(2.56)# "AC_INIT(timidity/timidity.c)" is obsolate yet.AC_INIT([TiMidity++],[2.13.2],[root@mput.dip.jp],[TiMidity++])AC_CONFIG_AUX_DIR([autoconf])AC_CANONICAL_TARGETAM_INIT_AUTOMAKE([gnu dist-bzip2])AC_CONFIG_SRCDIR([timidity/timidity.c])AC_CONFIG_HEADERS([config.h interface.h])AM_MAINTAINER_MODESHELL=${CONFIG_SHELL-"/bin/sh"}WISH=${WISH-"wish"}dnl to use contains() macro (see autoconf/acinclude.m4)CONTAINS_INIT# Check for compiler options -- such as debug flags.dnl "--enable-debug" turnes -g on.AC_MSG_CHECKING(if --enable-debug option specified)AC_ARG_ENABLE(debug,  [  --enable-debug          Build a debugging version.],  [timidity_cv_debug="yes"], [timidity_cv_debug="no"])if test "x$timidity_cv_debug" = "xyes"; then  AC_DEFINE(DEBUG,1,Define to 1 if you are in debug mode)  CFLAGS=${CFLAGS-"-g"}fiif test "x$timidity_cv_debug" = "xno"; then  AC_DEFINE(NDEBUG,1,Define to 1 if you are NOT in debug mode)fiAC_MSG_RESULT($timidity_cv_debug)CFLAGS=${CFLAGS-"-O2"}dnl --with-x turns on if `--with-x' is NOT specified.if test "x$with_x" = x; then  with_x=yeselse  x_config_flag=yesfi# Checking gcc environmentfor i in `echo $LIBRARY_PATH|sed -e 's,:, ,g'`; do  LDFLAGS="$LDFLAGS -L${i}"donefor i in `echo $C_INCLUDE_PATH|sed -e 's,:, ,g'`; do  CPPFLAGS="$CPPFLAGS -I${i}"done# add $prefix if specified.if test "x$prefix" != xNONE -a "x$prefix" != "x$ac_default_prefix" -a "x$prefix" != "x/usr"; then  LDFLAGS="-L$prefix/lib $LDFLAGS"  SHLDFLAGS="-L$prefix/lib $SHLDFLAGS"  CPPFLAGS="-I$prefix/include $CPPFLAGS"fidnl add --with-includes, --with-librariesAC_ARG_WITH(includes,  [  --with-includes=DIR     Specify include directories (colon separated)],  [ j=' '    for i in `echo "$withval"|sed -e 's,:, ,g'`; do      j="${j}-I${i} "    done    CPPFLAGS="$j$CPPFLAGS"  ])AC_ARG_WITH(libraries,  [  --with-libraries=DIR    Specify library directories (colon separated)],  [ j=' '    for i in `echo "$withval"|sed -e 's,:, ,g'`; do      j="${j}-L${i} "    done    LDFLAGS="$j$LDFLAGS"  ])dnl a bit hairly yet.(20020718:mput)dnl CPPFLAGS="$CPPFLAGS \$(DEF_PKGDATADIR) \$(DEF_PKGLIBDIR) \$(DEF_DEFAULT_PATH)"AC_ARG_WITH(default-path,  [  --with-default-path=DIR Where timidity.cfg is  (PREFIX/share/timidity)],  [pkgdatadir=$withval],  [   if test "x$prefix" != "xNONE"; then      pkgdatadir='${prefix}/share/timidity'   else      pkgdatadir='/usr/local/share/timidity'   fi  ])tmpdefpath="`eval \"echo ${pkgdatadir}\"`"AC_DEFINE_UNQUOTED(DEFAULT_PATH,"$tmpdefpath",place to install patches)AC_DEFINE(PKGDATADIR,DEFAULT_PATH,a compatibility matter. ignore it.)AC_ARG_WITH(module-dir,  [  --with-module-dir=DIR   Where to install interfaces (PREFIX/lib/timidity)],  [pkglibdir=$withval],  [   if test "x$prefix" != "xNONE"; then      pkglibdir='${prefix}/lib/timidity'   else      pkglibdir='/usr/local/lib/timidity'   fi  ])tmplibdir="`eval \"echo ${pkglibdir}\"`"AC_DEFINE_UNQUOTED(PKGLIBDIR,"$tmplibdir",place to install modules)# Checks for programs.AM_PATH_LISPDIRAC_PROG_CCAC_PROG_GCC_TRADITIONALAC_PROG_INSTALLAC_PROG_AWKAC_PROG_RANLIBAC_PROG_LN_SCHECK_COMPILER_OPTION(rdynamic)# Checks for target dependenciesAC_ARG_WITH(elf,  [  --with-elf              create ELF shared object instead of AOUT ],  [ ELFFORMAT=$withval ], [ ELFFORMAT="yes" ])# AC_ARG_WITH(simd,#  [  --with-simd             create SIMD friendly binary (default is no) ],#  [ SIMD=$withval ], [ SIMD="no" ])case "$target" in  *-*-hpux*)    EXTRADEFS="-DHPUX"    test -n "$SHLD" || SHLD="ld -b"    so="sl"    ;;  *-sgi-irix*)    dnl IRIX cc needs -signed option    case ".$CC" in .cc*) EXTRACFLAGS="-signed";; esac    test -n "$SHLD" || SHLD="cc -shared -all"    so="so"    ;;  *-*-netbsd*)    test -n "$SHLD" || SHLD="$CC -shared -nostartfiles"    so="so"    ;;  *-*-freebsd2*)    dnl EXTRALIBS="$EXTRALIBS -lxpg4"    test -n "$SHLD" || SHLD="ld -Bshareable"    so="so"    ;;  *-*-freebsd*)    if test "$ELFFORMAT" = yes; then	test -n "$SHLD" || SHLD="ld -Bshareable"    else	SHCFLAGS=-aou	SHLDFLAGS="-L/usr/X11R6/lib/aout $SHLDFLAGS"	test -n "$SHLD" || SHLD="env OBJFORMAT=aout ld -shared"    fi    dnl EXTRALIBS="$EXTRALIBS -lxpg4"    so="so"    ;;#  *-*-freebsd*)#    EXTRALIBS="$EXTRALIBS -lxpg4"#    test -n "$SHLD" || SHLD="ld -Bshareable"#    so="so"#  ;;  *-*-cygwin*)    EXTRADEFS="-D__W32__"    # ??    case "x${CC} " in      "xbcc32 "*) #        test -n "$SHLD" || SHLD="tlink32 -Tpd"        test -n "$SHLD" || SHLD="BCC32 -WD"        BORLANDC=yes        BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"		BORLANDC_START='C0X32.OBJ'        CFLAGS="$CFLAGS  -tWM -VM"        EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"        ;;      "xwcc386_w.sh "*)         WATCOM_C=yes         CFLAGS="$CFLAGS -br -5s -zk0 -bm -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"         WATCOM_LDFLAGS=         EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"         ;;      "xcl "*)         test -n "$SHLD" || SHLD="link -dll"          VCPP_LDFLAGS="-nologo -incremental:no  -nodefaultlib:libc.lib -nodefaultlib:msvcrt.lib kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"         CFLAGS="$CFLAGS -nologo -Zp16 -MT -W3 -GX  -Ob2"         EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX  -FD -c"         VCPP=yes         ;;      "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll" ;;      *) test -n "$SHLD" || SHLD="unknown" ;;    esac    so="dll"    CYGNUS=yes    lib_user32_test=-luser32    ;;  *-*-mingw*)    EXTRADEFS="-D__W32__"    # ??    case "x${CC} " in      "xbcc32 "*) #        test -n "$SHLD" || SHLD="tlink32 -Tpd"        test -n "$SHLD" || SHLD="BCC32 -WD"        BORLANDC=yes        BORLANDC_LDFLAGS="kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib wsock32.lib user32.lib shell32.lib cw32mt.lib"        BORLANDC_START='C0X32.OBJ'        CFLAGS="$CFLAGS  -tWM -VM"        EXTRADEFS="$EXTRADEFS -D_WINDOWS -DWIN32"        ;;      "xwcc386_w.sh "*)         WATCOM_C=yes         CFLAGS="$CFLAGS -br -5s -zk0 -bm -zp=16 -w=4 -D_WINDOWS -DWIN32 -DINCLUDE_WINDOWS_H"         WATCOM_LDFLAGS=         EXTRALIBS="$EXTRALIBS kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"         ;;      "xcl "*)          test -n "$SHLD" || SHLD="link -dll"         VCPP=yes         VCPP_LDFLAGS="-nologo -incremental:no  -nodefaultlib:libc.lib -nodefaultlib:msvcrt.lib kernel32.lib winspool.lib comdlg32.lib advapi32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib user32.lib shell32.lib libcmt.lib"         CFLAGS="$CFLAGS -nologo -Zp16 -MT -W3 -GX  -Ob2"         EXTRADEFS="$EXTRADEFS -DNDEBUG -D_WINDOWS -DWIN32 -DMBCS -D_MT -YX  -FD -c"         ;;      "xgcc"*) test -n "$SHLD" || SHLD="gcc -mdll" ;;      *) test -n "$SHLD" || SHLD="unknown" ;;    esac    so="dll"    MSYS=yes    lib_user32_test=-luser32    ;;  *-dec-*)    EXTRADEFS="-DDEC"    test -n "$SHLD" || SHLD="ld -Bdynamic -G"    so="so"    ;;  *-*-solaris*)    EXTRADEFS="-DSOLARIS"    test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"    so="so"    ;;  *-*-nextstep*)    test -n "$SHLD" || SHLD="/usr/ccs/bin/ld -G"    so="so"    ;;  *-*-darwin*)    if test "x$SIMD" = "xyes"; then       AC_DEFINE(USE_ALTIVEC,1,Define to 1 if you use altivec)       # EXTRACFLAGS="$EXTRACFLAGS -faltivec -mabi=altivec -maltivec" # for GCC3.       EXTRACFLAGS="$EXTRACFLAGS -faltivec"    else       AC_DEFINE(USE_ALTIVEC,0,Define to 1 if you use altivec)    fi    CPPFLAGS="$CPPFLAGS -no-cpp-precomp"    LDOPTS="-dynamic -undefined suppress -flat_namespace $LDOPTS"    test -n "$SHLD" || SHLD="$CC -dynamic -bundle -undefined suppress -flat_namespace $LDFLAGS"    so="bundle"    ;;  *)    test -n "$SHLD" || \      if test "x$GCC" = xyes; then	SHLD="$CC -shared"      else	SHLD="ld -Bdynamic -G"      fi    so="so"    ;;esacdnl For .exednl AC_EXEEX # obsolate# Checks for libraries.AC_CHECK_LIB(m,sqrt)AC_CHECK_LIB(socket,socket)AC_CHECK_LIB(dl,dlopen,lib_dl_opt=-ldl)AC_CHECK_LIB(objc,NSLinkModule,lib_dl_opt=-lobjc) # Mac OS X need this.if test "x$VCPP" != "xyes" && test "x$BORLANDC" != "xyes" && test "x$WATCOM_C" != "xyes"; thenAC_CHECK_LIB(xpg4,setlocale) # Mac OS X (and maybe NetBSD) need this.fiAC_CHECK_FUNCS(gethostbyname,,[ AC_CHECK_LIB(nsl,gethostbyname) ])AC_PATH_XTRA# Checks for Xif test "x$with_x" = xyes; then  if test "x$have_x" = xno; then    if test "x$x_config_flag" = xyes; then      AC_MSG_ERROR(Could not configure X)    else      AC_MSG_WARN(Could not configure X)    fi  fifiif test "x$with_x" = xyes -a "x$have_x" = xyes; then  if test "x$x_libraries" != x; then    ldflags_x_opt="-L$x_libraries"    LDFLAGS="$LDFLAGS $ldflags_x_opt"    SHLDFLAGS="$SHLDFLAGS $ldflags_x_opt"  else    ldflags_x_opt=  fi  if test "x$x_includes" != x; then    CPPFLAGS="$CPPFLAGS -I$x_includes"  fi  AC_CHECK_LIB(X11,XOpenDisplay)  AC_MSG_CHECKING(X11 version 6)  AC_CACHE_VAL(timidity_cv_x11_version_6,    AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>]], [[#if XlibSpecificationRelease < 6fail;#endif]])],[timidity_cv_x11_version_6=yes],[timidity_cv_x11_version_6=no]))  if test "$timidity_cv_x11_version_6" = "yes"; then    AC_MSG_RESULT(6 or newer)    dnl AC_DEFINE(HAVE_X11R6)  else    AC_MSG_RESULT(before 6)  fi  dnl checking order required  KEEPLIBS=$LIBS  AC_CHECK_LIB(Xext,XShapeCombineMask,have_xext=yes; LIBS="-lXext $LIBS",have_xext=no)  AC_CHECK_LIB(ICE,IceConnectionNumber)  AC_CHECK_LIB(SM,SmcOpenConnection,have_xprelibs=yes; LIBS="-lSM $LIBS",have_xprelibs=no)  AC_CHECK_LIB(Xt,XtVaAppInitialize,have_xt=yes; LIBS="-lXt $LIBS",have_xt=no)  AC_CHECK_LIB(Xmu,XmuInternAtom,LIBS="-lXmu $LIBS")  AC_CHECK_FUNCS(XmuRegisterExternalAgent)  AC_CHECK_LIB(Xaw3d,XawInitializeWidgetSet,have_xaw=3d,   [ AC_CHECK_LIB(Xaw,XawInitializeWidgetSet,have_xaw=yes,have_xaw=no) ])  AC_CHECK_LIB(Xm,XmCreateForm,have_xm=yes,have_xm=no)  AC_CHECK_FUNCS(XShmCreatePixmap)  LIBS=$KEEPLIBSfidnl End of X configure# Checks for header files.AC_HEADER_STDCAC_HEADER_STDBOOLAC_HEADER_SYS_WAITif test "x$WATCOM_C" != xyes ; thenAC_HEADER_TIMEfiAC_HEADER_DIRENTAC_CHECK_HEADERS( \  [arpa/inet.h \  errno.h \  getopt.h \  glob.h \  dlfcn.h \  fcntl.h \  inttypes.h \  limits.h \  machine/endian.h \  malloc.h \  memory.h \  netdb.h \  netinet/in.h \  nlist.h \  stddef.h \  stdlib.h \  stdint.h \  string.h \  strings.h \  stropts.h \  soundcard.h \  alsa/asoundlib.h \  sys/asoundlib.h \  sys/audioio.h \  sys/awe_voice.h\  sys/ioctl.h \  sys/ipc.h \  sys/param.h \  sys/shm.h \  sys/socket.h \  sys/soundcard.h \  sys/param.h \  sys/time.h \  sys/types.h \  sys/sysctl.h \  termios.h \  unistd.h \  X11/Xlib.h])AC_CHECK_HEADERS(\  [X11/extensions/XShm.h X11/Xmu/ExtAgent.h],[],[],[#ifdef HAVE_X11_XLIB_H#include <X11/Xlib.h>#endif  ])AC_CHECK_HEADER(string.h,, [ AC_DEFINE(NO_STRING_H,1,Define to 1 if you do not have <string.h>.)])# Checks for typedefs, structures, and compiler characteristics.if test "x$WATCOM_C" != xyes ; thenAC_C_BIGENDIANfiAC_C_CHAR_UNSIGNEDAC_C_CONSTAC_C_INLINEAC_C_VOLATILEAC_C_STRINGIZEAC_C_PROTOTYPESAC_STRUCT_TMAC_TYPE_SIZE_TAC_TYPE_OFF_TAC_TYPE_PID_Tdnl keyword "volatile" checkAC_CACHE_CHECK(volatile declaration,timidity_cv_type_volatile,  AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, [[volatile int x]])],[timidity_cv_type_volatile=yes],[timidity_cv_type_volatile=no]))if test $timidity_cv_type_volatile = no; then  AC_DEFINE(NO_VOLATILE,1,Define to 1 if you cannot use volatile keyword)fidnl union usenum checkAC_CACHE_CHECK(union semun declaration,timidity_cv_type_union_semun,  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>#include <sys/ipc.h>#include <sys/sem.h>]], [[union semun x]])],[timidity_cv_type_union_semun=yes],[timidity_cv_type_union_semun=no]))if test $timidity_cv_type_union_semun = yes; then  AC_DEFINE(HAVE_UNION_SEMUN,1,Define to 1 if you use semun keyword)fidnl Cygnus and Mingw memory struct optiontestif test "x$CYGNUS" = xyes || test "x$MSYS" = xyes; then	case "x${CC}" in	"xgcc"*) 		msnative_struct=''	    AC_MSG_CHECKING([how to get MSVC-compatible struct packing])	    if test -z "$ac_cv_prog_CC"; then			our_gcc="$CC"		else			our_gcc="$ac_cv_prog_CC"		fi		case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in			2.)		if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then	  		msnative_struct='-fnative-struct'		fi		;;			*)		if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then			msnative_struct='-mms-bitfields'		fi		;;

⌨️ 快捷键说明

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