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

📄 configure.in

📁 MIDI解码程序(用VC编写)
💻 IN
📖 第 1 页 / 共 4 页
字号:
         EXTRALIBS="$EXTRALIBS -lmytinfo"         ;;     esac])dnl slangAM_CONDITIONAL(ENABLE_SLANG, false)CONFIG_INTERFACE(slang,SLANG,s,  [  --enable-slang          Enable slang interface          (default is no)],  [ AC_CHECK_LIB(slang,SLang_init_tty,:,    [ enable_slang=no      AC_MSG_WARN(slang interface is not enabled)    ])    AC_CHECK_HEADERS(slang/slang.h slang.h)  ],  [ LIBS="$LIBS -lslang"    INTERFACE_SRCS="$INTERFACE_SRCS slang_c.c"  ],  [ s_so_libs="-lslang"    AC_CHECK_LIB(termcap,initscr,s_so_libs="$s_so_libs -ltermcap")  ])dnl MotifAM_CONDITIONAL(ENABLE_MOTIF, false)CONFIG_INTERFACE(motif,MOTIF,m,  [  --enable-motif          Enable motif interface          (default is no)],  [ if test "x$with_x" != xyes; then	AC_MSG_ERROR(motif: --with-x option must be specified)    fi    if test "x$have_xm" != xyes; then      AC_MSG_WARN(Motif library is not found.)      enable_motif=no    fi  ],  [ lib_xm_opt=-lXm    lib_xt_opt=-lXt    lib_xext_opt=-lXext    if test "x$have_xprelibs" = xyes; then	lib_xprelibs_opt='-lSM -lICE'    fi    INTERFACE_SRCS="$INTERFACE_SRCS motif_c.c motif_i.c motif_p.c"  ],  [ if test x$have_xprelibs = xyes; then      m_so_libs="-lXext -lSM -lICE"    fi    m_so_libs="$ldflags_x_opt -lXm -lXt $m_so_libs -lX11"  ])dnl Tcl/TkAM_CONDITIONAL(ENABLE_TCLTK, false)CONFIG_INTERFACE(tcltk,TCLTK,k,  [  --enable-tcltk          Enable tcltk interface          (default is no)],  [ if test "x$with_x" != xyes; then	AC_MSG_ERROR(tcltk: --with-x option must be specified)    fi    dnl save flags    KEEPCPPFLAGS=$CPPFLAGS    KEEPLDFLAGS=$LDFLAGS    KEEPLIBS=$LIBS    CPPFLAGS="$tcl_include_dir $tk_includes $CPPFLAGS"    LDFLAGS="$tcl_libdir $tk_libdir $LDFLAGS"    LIBS="$LIBS $lib_dl_opt"    tcl_lib=    tk_lib=    for l in tcl tcl8.4 tcl8.3 tcl8.0jp tcl7.6jp tcl80jp tcl76jp tcl8.0 tcl7.6 tcl80 tcl76; do      case "x$tcl_lib" in x) AC_CHECK_LIB($l,Tcl_Init,tcl_lib=-l$l);; esac    done    LIBS="$LIBS $tcl_lib"    for l in tk tk8.4 tk8.3 tk8.0jp tk4.2jp tk80jp tk42jp tk8.0 tk4.2 tk80 tk42; do      case "x$tk_lib" in x) AC_CHECK_LIB($l,Tk_Init,tk_lib=-l$l);; esac    done    LIBS=$KEEPLIBS    if test "x$tcl_lib" = x -o "x$tk_lib" = x; then      CPPFLAGS=$KEEPCPPFLAGS      LDFLAGS=$KEEPLDFLAGS      enable_tcltk=no      AC_MSG_WARN(tcl/tk is not enable)    else      tcltk_dep='tclIndex'    fi  ],  [ LIBS=`echo $LIBS | sed "s/-lX11/$tk_lib $tcl_lib -lX11/"`    case "$target" in      *-*-bsdi*)	EXTRALIBS="$EXTRALIBS -lipc"	;;    esac    INTERFACE_SRCS="$INTERFACE_SRCS tk_c.c"  ],  [ k_so_libs="$tcl_libdir $tk_libdir $tcl_lib $tk_lib $lib_dl_opt"    case "$target" in      *-*-bsdi*)	k_so_libs="$k_so_libs -lipc"	;;    esac    k_so_libs="$k_so_libs -lX11 -lm"  ])AM_CONDITIONAL(ENABLE_DYNAMIC_TCLTK, test "x$enable_tcltk" = "xdynamic")dnl EmacsAM_CONDITIONAL(ENABLE_EMACS, false)CONFIG_INTERFACE(emacs,EMACS,e,  [  --enable-emacs          Enable emacs interface          (default is no)],  ,  [ ELFILES="$ELFILES timidity.el"    INTERFACE_SRCS="$INTERFACE_SRCS emacs_c.c"  ],  [ ELFILES="$ELFILES timidity.el" ])dnl VT100AM_CONDITIONAL(ENABLE_VT100, false)CONFIG_INTERFACE(vt100,VT100,T,  [  --enable-vt100          Enable VT100 interface          (default is no)],  ,  [ INTERFACE_SRCS="$INTERFACE_SRCS vt100_c.c vt100.c" ])dnl X Athena WidgetAM_CONDITIONAL(ENABLE_XAW, false)CONFIG_INTERFACE(xaw,XAW,a,  [  --enable-xaw            Enable athena interface         (default is no)],  [ if test "x$with_x" != xyes; then	AC_MSG_ERROR(xaw: --with-x option must be specified)    fi    if test "x$have_xaw" != "xyes" -a "x$have_xaw" != "x3d"; then      AC_MSG_WARN(X Athena Widget library is not found.)      enable_xaw=no    fi ],  [ dnl Add -lXext -lSM -lICE -lXmu -lXt {-lXaw|-lXaw3d}    if test "x$have_xext" = xyes; then      lib_xext_opt=-lXext    fi    if test "x$have_xprelibs" = xyes; then      lib_xprelibs_opt='-lSM -lICE'    fi    lib_xmu_opt=-lXmu    lib_xt_opt=-lXt    if test "x$have_xaw" = x3d; then      AC_DEFINE(XAW3D,1,Define to 1 if you have libXaw3d.)      lib_xaw_opt=-lXaw3d    else      lib_xaw_opt=-lXaw    fi    INTERFACE_SRCS="$INTERFACE_SRCS xaw_c.c xaw_i.c"  ],  [ if test "x$have_xext" = xyes; then      a_so_libs="-lXext -lX11"    else      a_so_libs="-lX11"    fi    case "$target" in      *darwin*)	a_so_libs="$a_so_libs -lcc_dynamic"	;;    esac    if test "x$have_xprelibs" = xyes; then      a_so_libs="-lSM -lICE $a_so_libs"    fi    if test "x$have_xaw" = xyes; then      a_so_libs="-lXaw -lXmu -lXt $a_so_libs"    elif test "x$have_xaw" = x3d; then      AC_DEFINE(XAW3D,1,Define to 1 if you have libXaw3d.)      a_so_libs="-lXaw3d -lXmu -lXt $a_so_libs"    fi    a_so_libs="$ldflags_x_opt $a_so_libs"  ])AM_CONDITIONAL(ENABLE_DYNAMIC_XAW, test "x$enable_xaw" = "xdynamic")dnl X skinAM_CONDITIONAL(ENABLE_XSKIN, false)CONFIG_INTERFACE(xskin,XSKIN,i,  [  --enable-xskin          Enable X skin interface         (default is no)],  [ if test "x$with_x" != xyes; then	AC_MSG_ERROR(xskin: --with-x option must be specified)    fi  ],  [ INTERFACE_SRCS="$INTERFACE_SRCS xskin_c.c xskin_i.c xskin_loadBMP.c xskin_spectrum.c" ],  [ i_so_libs="$ldflags_x_opt -lX11" ])dnl GTK+AM_CONDITIONAL(ENABLE_GTK, false)CONFIG_INTERFACE(gtk, GTK, g,  [  --enable-gtk            Enable GTK+ interface           (default is no)],  [ AM_PATH_GTK_2_0(2.0.0,    [AC_DEFINE(HAVE_GTK_2,1,Define to 1 if you have GTK+ 2.x)],    [AM_PATH_GTK(1.1.3,,enable_gtk=no)]) ],  [ LIBS="$LIBS $GTK_LIBS"    EXTRACT_CPPFLAGS(CPPFLAGS,CFLAGS,$GTK_CFLAGS)    INTERFACE_SRCS="$INTERFACE_SRCS gtk_c.c gtk_i.c gtk_p.c"  ],  [ if test "x$GCC" = xyes; then	dnl Do not include -rdynamic option in $g_so_libs.	for i in $GTK_LIBS; do	    case "x$i" in		x-rdynamic) ;;		*) g_so_libs="$g_so_libs $i" ;;	    esac	done    else	g_so_libs="$GTK_LIBS"    fi    EXTRACT_CPPFLAGS(CPPFLAGS,CFLAGS,$GTK_CFLAGS) ])dnl TiMidity Network MIDI ServerAM_CONDITIONAL(ENABLE_SERVER, false)CONFIG_INTERFACE(server,SERVER,r,  [  --enable-server         Enable server interface         (default is no)],  ,  [ INTERFACE_SRCS="$INTERFACE_SRCS server_c.c"    AC_CHECK_HEADERS(sys/soundcard.h)  ])dnl TiMidity ALSA sequencer serverAM_CONDITIONAL(ENABLE_ALSASEQ, false)CONFIG_INTERFACE(alsaseq,ALSASEQ,A,  [  --enable-alsaseq        Enable ALSA sequencer server interface                                                          (default is no)],  ,  [ INTERFACE_SRCS="$INTERFACE_SRCS alsaseq_c.c"    AM_PATH_ALSA  ])dnl TiMidity Windows synthesizer serverAM_CONDITIONAL(ENABLE_WINSYN, false)CONFIG_INTERFACE(winsyn,WINSYN,W,  [  --enable-winsyn        Enable Windows Synthesizer interface                                                          (default is no)],  ,  [ INTERFACE_SRCS="$INTERFACE_SRCS winsyn_c.c rtsyn_common.c rtsyn_winmm.c" ])dnl TiMidity PortMIDI synthesizer serverAM_CONDITIONAL(ENABLE_PORTMIDISYN, false)CONFIG_INTERFACE(portmidisyn,PORTMIDISYN,P,  [  --enable-portmidisyn        Enable PortMIDI Synthesizer interface                                                          (default is no)],  ,  [ INTERFACE_SRCS="$INTERFACE_SRCS portmidisyn_c.c rtsyn_common.c rtsyn_portmidi.c" ])dnl TiMidity Windows GUI synthesizer serverAM_CONDITIONAL(ENABLE_W32G_SYN, false)CONFIG_INTERFACE(winsyng,W32G_SYN,W,  [  --enable-winsyng        Enable Windows GUI Synthesizer interface                                                          (default is no)],  ,  [   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then    INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"    lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'    lib_user32_opt='user32.lib'    if test "x$VCPP" = xyes; then	  VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "	fi	if test "x$BORLANDC" = xyes; then	  BORLANDC_START='C0W32.OBJ'	  CFLAGS="$CFLAGS -tW"	  lib_w32gui_opt="-aa $lib_w32gui_opt"	fi	if test "x$WATCOM_C" = xyes; then	  CFLAGS="$CFLAGS -bw"	  WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"	fi  else  	lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'    lib_user32_opt='-luser32'    LDFLAGS="-mwindows $LDFLAGS"    INTERFACE_SRCS="$INTERFACE_SRCS w32g_ini.c w32g_pref.c w32g_syn_escaped.c w32g_utl.c winsyn_c.c rtsyn_common.c rtsyn_winmm.c"  fi  ])dnl Windows GUIAM_CONDITIONAL(ENABLE_W32GUI, false)CONFIG_INTERFACE(w32gui, W32GUI, w,  [  --enable-w32gui         Enable Windows GUI interface    (default is no)],  ,  [   if test "x$VCPP" = xyes || test "x$BORLANDC" = xyes || test "x$WATCOM_C" = xyes; then 	INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c  wrdt_w32g.c w32g_mag.c"    lib_w32gui_opt='gdi32.lib comctl32.lib comdlg32.lib ole32.lib'    lib_user32_opt='user32.lib'    if test "x$VCPP" = xyes; then	  VCPP_LDFLAGS="$VCPP_LDFLAGS -subsystem:windows "	fi	if test "x$BORLANDC" = xyes; then	  BORLANDC_START='C0W32.OBJ'	  CFLAGS="$CFLAGS -tW"	  lib_w32gui_opt="-aa $lib_w32gui_opt"	fi	if test "x$WATCOM_C" = xyes; then	  CFLAGS="$CFLAGS -bw"	  WATCOM_LDFLAGS="$WATCOM_LDFLAGS SYS nt_win"	fi  else    lib_w32gui_opt='-lgdi32 -lcomctl32 -lcomdlg32 -lole32'    lib_user32_opt='-luser32'    LDFLAGS="-mwindows $LDFLAGS"    INTERFACE_SRCS="$INTERFACE_SRCS w32g_c.c w32g_ini.c w32g_i.c w32g_playlist.c w32g_utl.c w32g_pref.c w32g_subwin_escaped.c w32g_subwin2.c w32g_subwin3.c w32g_ut2.c w32g_dib.c  wrdt_w32g.c w32g_mag.c"  fi  ])dnl UMP configurationAM_CONDITIONAL(ENABLE_PLUGIN, false)CONFIG_INTERFACE(ump, PLUGIN, p,  [  --enable-ump            UMP configuration               (default is no)],  [ if test ! -d ump; then	AC_MSG_ERROR(UMP Package is not exists.  Can't configure it.)    fi    AC_CHECK_HEADER(X11/xpm.h,,AC_MSG_ERROR([UMP Package needs xpm.h[,] but could not find it.]))    AC_CHECK_LIB(Xpm,XpmCreatePixmapFromData,:,AC_MSG_ERROR([UMP Package needs libXpm.a[,] but could not find it.]))    if test "x$have_xext" = xyes; then      lib_xext_opt=-lXext    fi    if test "x$have_xprelibs" = xyes; then      lib_xprelibs_opt='-lSM -lICE'    fi    lib_xmu_opt=-lXmu    lib_xt_opt=-lXt  ])dnl Offix supportdnl this rely on  CFLAGS and LIBSAC_ARG_ENABLE(offix,  [  --enable-offix          Enable offix support            (default is no)],  [ if test "$enableval" = "yes"; then      KEEPCPPFLAGS=$CPPFLAGS      KEEPLIBS=$LIBS      KEEPLDFLAGS=$LDFLAGS      CPPFLAGS="$CPPFLAGS $offix_include_dir"      LDFLAGS="$LDFLAGS $offix_lib_dir"      LIBS="$LIBS $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11"      AC_CHECK_LIB(Dnd,DndInitialize,[	LIBS=$KEEPLIBS	lib_offix_opt="-lDnd"	AC_DEFINE(OFFIX,1,Define to 1 if you need offix support)      ],      [ LDFLAGS=$KEEPLDFLAGS	CPPFLAGS=$KEEPCPPFLAGS	LIBS=$KEEPLIBS      ])    fi  ])dnl Network sectionAC_ARG_ENABLE(network,  [  --enable-network        Enable network support          (default is no)],  [ if test "$enableval" = "yes"; then      AC_DEFINE(SUPPORT_SOCKET,1,Define to 1 if you need network support)    fi ])AM_CONDITIONAL(ENABLE_NETWORK, test "x$enable_network" = "xyes")dnl Sound Spectrogram ViewerAC_ARG_ENABLE(spectrogram,  [  --enable-spectrogram    Enable Sound Spectrogram Viewer (default is no)],  [ if test "$enableval" = "yes"; then      if test "x$with_x" != xyes; then	AC_MSG_ERROR(spectrogram: --with-x option must be specified)      fi      AC_DEFINE(SUPPORT_SOUNDSPEC,1,Define to 1 if you need spectrogram vewer.)    fi ])AM_CONDITIONAL(ENABLE_SOUND_SPEC, test "x$enable_spectrogram" = "xyes")dnl Wave Spline InterpolationsAC_ARG_ENABLE(spline,  [  --enable-spline=[method]  Specify spline method.                                  one of no,linear,cubic,lagrange,newton,gauss                                                          (default is linear)],  [ case "x$enableval" in      xlinear)        AC_DEFINE(DEFAULT_RESAMPLATION,resample_linear,Define resampler.)	;;      xcubic)        AC_DEFINE(DEFAULT_RESAMPLATION,resample_cspline,Define resampler.)	;;      xlagrange)        AC_DEFINE(DEFAULT_RESAMPLATION,resample_lagrange,Define resampler.)	;;      xnewton)        AC_DEFINE(DEFAULT_RESAMPLATION,resample_newton,Define resampler.)	;;      xgauss)        AC_DEFINE(DEFAULT_RESAMPLATION,resample_gauss,Define resampler.)	;;      xno)        AC_DEFINE(DEFAULT_RESAMPLATION,resample_none,Define resampler.)	;;      *)	AC_MSG_ERROR(Invalid method of --enable-spline)	;;    esac ])dnl WRD interfaceAC_ARG_ENABLE(wrd,  [  --enable-wrd            Enable WRD interface for X      (default is no)],  [ if test "$enableval" = "yes"; then      if test "x$with_x" != xyes; then	AC_MSG_ERROR(wrd: --with-x option must be specified)      fi      AC_DEFINE(WRDT_X,1,Define to 1 if you need wrd support for X.)      enable_sherry_wrd=yes      AC_CHECK_LIB(z,zlibVersion,:,enable_sherry_wrd=no)      AC_CHECK_HEADER(png.h,,enable_sherry_wrd=no)      AC_CHECK_LIB(png,png_init_io,:,enable_sherry_wrd=no,-lz)      if test "$enable_sherry_wrd" = yes; then	AC_DEFINE(ENABLE_SHERRY,1,Define to 1 if you enable Sherry WRD)	lib_zip_opt=-lz	lib_png_opt=-lpng      else	 AC_MSG_WARN([Sherry WRD is disabled: png.h, libpng.a, libz.a are required])      fi      if test "x$have_xext" = xyes; then	lib_xext_opt=-lXext      fi    fi ])dnl end of interfaces## Finish up#AM_CONDITIONAL(ENABLE_WRD, test "x$enable_wrd" = "xyes")AM_CONDITIONAL(CYGNUS, test "x$CYGNUS" = xyes)AM_CONDITIONAL(MSYS, test "x$MSYS" = xyes)AM_CONDITIONAL(VCPP, test "x$VCPP" = xyes)AM_CONDITIONAL(BORLANDC, test "x$BORLANDC" = xyes)AM_CONDITIONAL(WATCOM_C, test "x$WATCOM_C" = xyes)AM_CONDITIONAL(W32READDIR, test "x$W32READDIR" = "xyes")SET_UNIQ_WORDS(LDFLAGS,$LDFLAGS)SET_UNIQ_WORDS(SHLDFLAGS,$SHLDFLAGS)SET_UNIQ_WORDS(CFLAGS,$EXTRACFLAGS $CFLAGS)SET_UNIQ_WORDS(CPPFLAGS,$CPPFLAGS $EXTRADEFS)if test "x$oss_device" != x; then  AC_DEFINE_UNQUOTED(OSS_DEVICE,"$oss_device", oss device name)fiif test "x$TIMIDITY_OUTPUT_ID" != x; then  AC_DEFINE_UNQUOTED(TIMIDITY_OUTPUT_ID,"$TIMIDITY_OUTPUT_ID", the output specification)fiif test "x$with_x" = xyes; then  dnl Order of X-library is: -lXm -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11  LIBS=`echo $LIBS | sed "s/-lX11/$lib_offix_opt $lib_xm_opt $lib_xaw_opt $lib_xmu_opt $lib_xt_opt $lib_xprelibs_opt $lib_xext_opt -lX11/"`fiLIBS="$LIBS $lib_dl_opt $lib_png_opt $lib_zip_opt $lib_user32_opt $lib_w32gui_opt $EXTRALIBS"SHLD="$SHLD $SHLDFLAGS"AC_SUBST(BORLANDC_START)AC_SUBST(BORLANDC_LDFLAGS)AC_SUBST(SHELL)AC_SUBST(timidity_LDFLAGS)AC_SUBST(WATCOM_LDFLAGS)AC_SUBST(VCPP_LDFLAGS)AC_SUBST(SYSEXTRAS)AC_SUBST(EXTRALIBS)AC_SUBST(NETSRCS)AC_SUBST(ELFILES)AC_SUBST(SHLD)AC_SUBST(SHCFLAGS)AC_SUBST(dynamic_targets)AC_SUBST(so)AC_SUBST(LN_S)AC_SUBST(WISH)AC_SUBST(tcltk_dep)AC_SUBST(program_transform_name)AC_SUBST(INTERFACE_SRCS)AC_SUBST(pkgdatadir)AC_SUBST(pkglibdir)AC_CONFIG_FILES([  Makefile  autoconf/Makefile  common.makefile  configs/Makefile  doc/Makefile  doc/C/Makefile  doc/ja_JP.eucJP/Makefile  interface/Makefile  interface/motif_bitmaps/Makefile  interface/bitmaps/Makefile  interface/pixmaps/Makefile  libarc/Makefile  libunimod/Makefile  timidity/Makefile  utils/Makefile  script/Makefile  TiMidity.ad  TiMidity-uj.ad])AC_OUTPUT

⌨️ 快捷键说明

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