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

📄 configure.in

📁 aumix-2.8 源碼下載
💻 IN
字号:
dnl $Aumix: aumix/configure.in,v 1.14 2002/11/25 01:04:16 trevor Exp $dnl Process this file with autoconf to produce a configure script.AC_INIT(src/common.c)dnl	AC_INIT recommended by autoscan, but causes GNU m4 to hogdnl	CPU and give warningdnl	AM_INIT(intl/bindtextdom.c)AM_INIT_AUTOMAKE(aumix, 2.8)AM_CONFIG_HEADER(config.h)dnl Set of available languages.dnldnl #### This kind of sucks.  Shouldn't the configure processdnl determine this automagically by scanning `.po' files in `po/'?ALL_LINGUAS="de el es fr gl ja nl pl pt_BR ru sv uk zh_CN"dnl Checks for programs.AC_PROG_AWKAC_PROG_CCAC_PROG_INSTALLAC_PROG_LN_Sdnl Checks for libraries.dnl for NetBSD and OpenBSDAC_CHECK_LIB(ossaudio, _oss_ioctl)dnl Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS(ncurses.h curses.h fcntl.h limits.h malloc.h strings.h sys/ioctl.h sys/time.h unistd.h)AC_CHECK_HEADERS(sys/soundcard.h soundcard.h machine/soundcard.h, break)dnl Additional configure optionsAC_ARG_WITH(ncurses,   [  --without-ncurses       compile with no ncurses or mouse support],  AC_MSG_RESULT([Compiling without ncurses support]),[  dnl Checks for ncurses library.  AC_CHECK_LIB(ncurses, initscr, initscr=on, initscr=off)  if test $initscr = on; then    CURSLIB="ncurses"    AC_DEFINE(HAVE_LIBNCURSES, 1,      [Define this if you have the ncurses library and want to use it.])  else    AC_CHECK_LIB(curses, initscr, initscr=on, initscr=off)    if test $initscr = on; then      CURSLIB="curses"      AC_DEFINE(HAVE_LIBCURSES, 1,        [Define this if you have the curses library and want to use it.])    fi  fi  if test x$CURSLIB != x; then    LIBS="-l$CURSLIB $LIBS"    AC_DEFINE(HAVE_CURSES, 1,      [Define this if you have (n)curses and want to use it.])    AC_CHECK_LIB($CURSLIB, getmouse,      [AC_DEFINE(HAVE_GETMOUSE, 1,	[Define this if your ncurses library has the getmouse routine.])])    AC_CHECK_LIB($CURSLIB, use_default_colors,      [AC_DEFINE(HAVE_USEDEFAULT, 1,	[Define this if your ncurses library contains the use_default_colors	routine and your terminal can use transparent colors.])])    AC_CACHE_CHECK([for private member _use_keypad in WINDOW],      aumix_cv_struct_window_usekeypad,      [AC_TRY_COMPILE([#ifdef HAVE_NCURSES_H#include <ncurses.h>#else#include <curses.h>#endif], [WINDOW w; w._use_keypad;],      aumix_cv_struct_window_usekeypad=yes, aumix_cv_struct_window_usekeypad=no)])    if test $aumix_cv_struct_window_usekeypad = yes; then      AC_DEFINE(HAVE_USEKEYPAD, 1,	[Define this if your ncurses library has the member _use_keypad	in structure WINDOW.])    fi  fi  AC_ARG_WITH(gpm,    [  --without-gpm           Compile only without GPM support],    AC_MSG_RESULT([Compiling without GPM support]),    dnl Checks for GPM library.    AC_CHECK_LIB(gpm, Gpm_Repeat)  )  AC_ARG_WITH(sysmouse,    [  --without-sysmouse      Compile only without sysmouse support],    AC_MSG_RESULT([Compiling without sysmouse support]),    dnl Checks for sysmouse availability.    AC_CHECK_HEADERS(sys/consio.h machine/console.h, break)    AC_CACHE_CHECK([for CONS_MOUSECTL],      aumix_cv_cons_mousectl,      [AC_EGREP_CPP([A mouse is a mouse is a mouse],      [#ifdef HAVE_MACHINE_CONSOLE_H#include <machine/console.h>#endif#ifdef HAVE_SYS_CONSIO_H#include <sys/consio.h>#endif#ifdef CONS_MOUSECTLA mouse is a mouse is a mouse#endif], aumix_cv_cons_mousectl=yes, aumix_cv_cons_mousectl=no)])    if test $aumix_cv_cons_mousectl = yes; then      AC_DEFINE(HAVE_SYSMOUSE, 1,	[Define this if you have sysmouse console mouse support and	want to use it.])    fi  )])AM_CONDITIONAL(CURSES, test "x$CURSLIB" != "x")AC_SUBST(CURSLIB)dnl The built-in labels may not match up to the actual sound driver, sodnl turning this off is the most conservative thing.AC_MSG_CHECKING([whether built-in label text is requested])AC_ARG_ENABLE(own-labels,  [  --enable-own-labels     use built-in label text (may not match system) ],  own_labels=$enableval, own_labels=no)AC_MSG_RESULT($own_labels)if test $own_labels = yes; then  AC_DEFINE(USE_OWN_LABELS, 1,    [Define this to use built-in label text.])fiAC_ARG_WITH(alsa,  [  --without-alsa	  compile without hardware mute supported by ALSA ],  alsa_must=off, alsa_must=on)if test $alsa_must = on; then  dnl Checks for ALSA library  AC_CHECK_HEADER(sys/asoundlib.h, alsa_head=on, alsa_head=off)  AC_CHECK_LIB(asound, snd_mixer_open, alsa_lib=on, alsa_lib=off)  if test $alsa_head = on && test $alsa_lib = on; then    AC_DEFINE(HAVE_ALSA_DISABLED, 1,      [ALSA-specific features are disabled for now.])dnl LIBS="$LIBS -lasound"  fielse  AC_MSG_RESULT([Compiling without hardware mute supported by ALSA])fiAC_ARG_WITH(gtk,  [  --without-gtk           compile without GTK+ 2.0 interface],  gtk_must=off, gtk_must=on)if test $gtk_must = on; then  dnl from gftp   AC_CHECK_PROG(PKG_CONFIG, pkg-config, yes, no)  if test "$PKG_CONFIG" = "no"; then    echo "pkg-config not found--compiling without GTK+ 2.0." ;   else    echo "pkg-config found--compiling with GTK+ 2.0." ;     AC_DEFINE(HAVE_GTK, 1,      [Define this if you want to compile with support for GTK+ 2.0.])    dnl from GIMP 1.1.6    dnl Check for GTK+ 2.0    AM_PATH_GTK(2.0.0,,AC_MSG_ERROR(Test for GTK failed. See the file 'INSTALL' for help.))    dnl Evil stuff to extract GLIB stuff from pkg-config output    dnl (we want to make sure it matches with the gtk we're using)    GLIB_CFLAGS=`echo $GTK_CFLAGS | sed 's/^.*\(-I[^ ]*glib[^ ]*  *-I[^ ]*\).*$/\1/'`    GLIB_LDFLAGS=`echo $GTK_LIBS | sed -e 's/^.*-lgdk[^ ]* *\(-L[^ ]*\).*$/\1/' -e 's/^.* -lgdk[^ ]* .*$//'`    if test -z "$GLIB_LDFLAGS" ; then      GLIB_LDFLAGS=`echo $GTK_LIBS | sed 's/^ *\(-L[^ ]*\) .*$/\1/'`    fi    GLIB_LIBS="$GLIB_LDFLAGS `echo $GTK_LIBS | sed 's/^.*\(-lglib[^ ]*\).*$/\1/'`"    AC_SUBST(GLIB_CFLAGS)    AC_SUBST(GLIB_LIBS)    LDFLAGS="$LDFLAGS `echo $GTK_LIBS | sed 's/\(.*\)\(-lgtk.*\)/\1/'`"    LIBS="$LIBS $GTK_LIBS"#    dnl end of GIMP stuff  fielse  AC_MSG_RESULT([Compiling without GTK+ 2.0.])fiAM_CONDITIONAL(GTK, test "$gtk_must" = on && test "$PKG_CONFIG" != "no")AC_ARG_WITH(gtk1,  [  --without-gtk1          compile without GTK+ 1.2 interface],  gtk1_must=off, gtk1_must=on)if test $gtk1_must = on; then  dnl from gftp   AC_CHECK_PROG(GTK_CONFIG, gtk-config, yes, no)  if test "$GTK_CONFIG" = "no"; then    echo "gtk-config not found--compiling without GTK+ 1.2." ;   else    echo "gtk-config found--compiling with GTK+ 1.2." ;     AC_DEFINE(HAVE_GTK1, 1,      [Define this if you want to compile with support for GTK+ 1.2.])    dnl from GIMP 1.1.6    dnl Check for GTK+    AM_PATH_GTK1(1.2.0,,AC_MSG_ERROR(Test for GTK 1.2 failed. See the file 'INSTALL' for help.))    dnl Evil stuff to extract GLIB stuff from gtk-config output    dnl (we want to make sure it matches with the gtk we're using)    GLIB_CFLAGS=`echo $GTK_CFLAGS | sed 's/^.*\(-I[^ ]*glib[^ ]*  *-I[^ ]*\).*$/\1/'`    GLIB_LDFLAGS=`echo $GTK_LIBS | sed -e 's/^.*-lgdk[^ ]* *\(-L[^ ]*\).*$/\1/' -e 's/^.* -lgdk[^ ]* .*$//'`    if test -z "$GLIB_LDFLAGS" ; then      GLIB_LDFLAGS=`echo $GTK_LIBS | sed 's/^ *\(-L[^ ]*\) .*$/\1/'`    fi    GLIB_LIBS="$GLIB_LDFLAGS `echo $GTK_LIBS | sed 's/^.*\(-lglib[^ ]*\).*$/\1/'`"    AC_SUBST(GLIB_CFLAGS)    AC_SUBST(GLIB_LIBS)    LDFLAGS="$LDFLAGS `echo $GTK_LIBS | sed 's/\(.*\)\(-lgtk.*\)/\1/'`"    LIBS="$LIBS $GTK_LIBS"#    dnl end of GIMP stuff  fielse  AC_MSG_RESULT([Compiling without GTK+ 1.2.])fiAM_CONDITIONAL(GTK1, test "$gtk1_must" = on && test "$GTK_CONFIG" != "no")AC_MSG_CHECKING([whether dummy mixer is requested])AC_ARG_ENABLE(dummy-mixer,  [  --enable-dummy-mixer	  emulate mixer device internally, for debugging ],  dummy_mixer=$enableval, dummy_mixer=no)AC_MSG_RESULT($dummy_mixer)if test $dummy_mixer = yes; then  AC_DEFINE(DUMMY_MIXER, 1,    [Define if you want built-in emulation of a sound driver, for debugging.])fidnl internationalization macrosAUMIX_WITH_NLSdnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_C_INLINEAC_TYPE_OFF_TAC_TYPE_SIZE_TAC_HEADER_TIMEdnl Checks for library functions.AC_FUNC_ALLOCA AC_FUNC_MMAP  dnl	recommended by autoscan, but gives a warningdnl	AC_FUNC_SETVBUF_REVERSEDAC_TYPE_SIGNALAC_CHECK_FUNCS(getcwd getwd putenv select)dnl Internationalization macrosdnl This is a null macro which makes automake generate i11l supportdnl ud_GNU_GETTEXTAM_GNU_GETTEXTAC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)USE_INCLUDED_LIBINTL=noAC_SUBST(USE_INCLUDED_LIBINTL)USE_NLS=yesAC_SUBST(USE_NLS)dnl AC_OUTPUT(Makefile)dnl AC_OUTPUT([Makefile intl/Makefile.in po/Makefile.in],dnl [AUMIX_PROCESS_PO test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])dnl AC_OUTPUT([intl/Makefile po/Makefile.in doc/Makefile data/Makefile src/Makefile Makefile],dnl          [AUMIX_PROCESS_PO test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])AC_OUTPUT([intl/Makefile po/Makefile.in doc/Makefile data/Makefile src/Makefile Makefile],          [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile || echo timestamp > stamp-h])

⌨️ 快捷键说明

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