📄 configure.in
字号:
dnl -*- m4 -*-dnldnl libid3tag - ID3 tag manipulation librarydnl Copyright (C) 2000-2001 Robert Lesliednldnl 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 USAdnlAC_REVISION([$Id: configure.in,v 1.14 2001/11/02 09:50:44 rob Exp $])dnldnl Process this file with autoconf to produce a configure script.AC_INIT(id3tag.h)AM_INIT_AUTOMAKE(libid3tag, 0.14.2b)AM_CONFIG_HEADER(config.h)dnl System type.AC_CANONICAL_HOSTdnl Checks for programs.AC_PROG_CCdnl Support for libtool.AC_DISABLE_SHAREDdnl AC_LIBTOOL_WIN32_DLLAM_PROG_LIBTOOLAC_SUBST(LIBTOOL_DEPS)dnl Compiler options.arch=""debug=""optimize=""profile=""set -- $CFLAGSCFLAGS="-Wall"if test "$GCC" = yesthen case "$host" in *-pc-cygwin) CPPFLAGS="$CPPFLAGS -mno-cygwin" LDFLAGS="$LDFLAGS -mno-cygwin" ;; esacfiwhile test $# -gt 0do case "$1" in -Wall) shift ;; -g) debug="-g" shift ;; -mno-cygwin) shift ;; -m*) arch="$arch $1" shift ;; -fomit-frame-pointer) shift ;; -O*|-f*) optimize="$1" shift ;; *) CFLAGS="$CFLAGS $1" shift ;; esacdonednl Checks for header files.AC_HEADER_STDCdnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_C_INLINEdnl Checks for library functions.AC_CHECK_HEADERS(assert.h zlib.h unistd.h)dnl handle --enable and --disable optionsAC_CACHE_SAVEAC_MSG_CHECKING(whether to enable profiling)AC_ARG_ENABLE(profiling, [ --enable-profiling generate profiling code], [ case "$enableval" in yes) profile="-pg" ;; esac])AC_MSG_RESULT(${enable_profiling-no})AC_MSG_CHECKING(whether to enable debugging)AC_ARG_ENABLE(debugging, [ --enable-debugging enable diagnostic debugging support --disable-debugging do not enable debugging and use more optimization], [ case "$enableval" in yes) AC_DEFINE(DEBUG) optimize="" ;; no) if test -n "$profile" then AC_MSG_ERROR(--enable-profiling and --disable-debugging are incompatible) fi AC_DEFINE(NDEBUG) debug="" if test "$GCC" = yes then optimize="$optimize -fomit-frame-pointer" fi ;; esac])AC_MSG_RESULT(${enable_debugging-default})AM_CONDITIONAL(DEBUG, test ${enable_debugging-default} = yes)dnl Create output files.test -n "$arch" && CFLAGS="$CFLAGS $arch"test -n "$debug" && CFLAGS="$CFLAGS $debug"test -n "$optimize" && CFLAGS="$CFLAGS $optimize"test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"LTLIBOBJS=`echo "$LIBOBJS" | sed -e 's/\.o/.lo/g'`AC_SUBST(LTLIBOBJS)AC_OUTPUT(Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -