📄 configure.in
字号:
dnldnl $Id: configure.in,v 1.10 2004/01/25 10:39:50 andrew_belov Exp $dnl --------------------------------------------------------------------------dnl This file performs setup of GNU-style makefiles.dnlAC_INIT([arj])AC_PREREQ(2.53)AC_CONFIG_SRCDIR([../arj.c])dnl Installation script (let it be, temporarily...)AC_PROG_INSTALL([e:/os2apps/autoconf/install-sh])dnl Configuration parametersAC_CONFIG_HEADER([../c_defs.h:config.h.in])dnl Checks for the canonical system nameAC_CANONICAL_HOSTdnl Checks for programs.AC_PROG_CCdnl Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS([fcntl.h limits.h malloc.h])dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_STRUCT_TMAC_C_BIGENDIANdnl Checks for library functions.AC_PROG_GCC_TRADITIONALAC_FUNC_MEMCMPAC_FUNC_SETVBUF_REVERSEDAC_TYPE_SIGNALAC_FUNC_VPRINTFAC_CHECK_FUNCS([getcwd min max mkdir mkdtemp rmdir fcloseall strcasecmp setpriority strdup strerror strstr strupr strlwr strtol strtoul])dnl Platform-specific tuningPROG_EXT=DLL_EXT=".so"DLL_FLAGS="-shared"REQUIRES_DEF=OS_ID="UNIX"CFLAGS="$CFLAGS -O2 -D_UNIX"case $host_os inlinux*) AC_DEFINE(ELF_EXECUTABLES, 1, [Define if executables use ELF format]) DYN_LIBS="-ldl" LD_STRIP="gnu/stripgcc.lnk" ;;*bsd*) AC_DEFINE(ELF_EXECUTABLES) DLL_FLAGS="-shared -export-dynamic" LD_STRIP="gnu/stripgcc.lnk" ;;*qnx*) AC_DEFINE(ELF_EXECUTABLES) DLL_FLAGS="-shared -fPIC" DLL_CFLAGS="-shared" LD_STRIP="gnu/stripgcc.lnk" ;;os2*) PROG_EXT=".exe" DLL_EXT=".dll" CFLAGS="$CFLAGS -O2 -D_OS2" LDFLAGS="-s" DLL_FLAGS="-Zdll -s" REQUIRES_DEF=1 OS_ID="OS2" ;;esaccase $host_cpu inalpha*) AC_DEFINE(ALIGN_POINTERS) ;;sparc*) AC_DEFINE(ALIGN_POINTERS) ;;ia64*) AC_DEFINE(ALIGN_POINTERS) ;;arm*) AC_DEFINE(ALIGN_POINTERS) ;;hppa*) AC_DEFINE(ALIGN_POINTERS) ;;esacdnl Registration wizard is named "arj-register" under UNIX-like platforms, todnl give it a unique namecase $host_os inos2*) REGISTER=register ;;*) REGISTER=arj-registeresacdnl Initial setuptest -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/shAC_SUBST(CONFIG_SHELL)AC_MSG_CHECKING([if dynamic C library may be used])AC_ARG_ENABLE(libc,[ --disable-libc Disable linking with dynamic C library], [enable_libc=no], [enable_libc=yes case $host_os in os2*) LDFLAGS="-Zcrtdll $LDFLAGS" DLL_FLAGS="-Zcrtdll $DLL_FLAGS" esac ])AC_MSG_RESULT($enable_libc)test "$enable_libc" != "no" && AC_DEFINE(LIBC, 1, [Define if dynamic C library may be used])AC_MSG_CHECKING([if SFX executables may be packed])AC_ARG_ENABLE(packsfx,[ --disable-packsfx Force disable packing of SFX modules], [packsfx=no], [packsfx=yes])AC_MSG_RESULT($packsfx)test "$packsfx" != "yes" && AC_DEFINE(NP_SFX, 1, [Define if SFX executables may be packed])AC_MSG_CHECKING([what to use as a dedicated output directory])AC_ARG_ENABLE(outdir,[ --enable-outdir Specify a dedicated output directory], [OUT_DIR=$enableval], [OUT_DIR=$host_os])AC_MSG_RESULT($OUT_DIR)AC_SUBST(OUT_DIR)dnl Experimental feature(s)AC_MSG_CHECKING([if color output is demanded])AC_ARG_ENABLE(color-output,[ --enable-color-output Enable JAR-style color output (EXPERIMENTAL)], [color_output=yes], [color_output=no])AC_MSG_RESULT($color_output)test "$color_output" = "yes" && AC_DEFINE(USE_COLORS)AC_SUBST(HAVE_MKDTEMP)AC_SUBST(HAVE_FCLOSEALL)AC_SUBST(HAVE_STRCASECMP)AC_SUBST(HAVE_SETPRIORITY)AC_SUBST(HAVE_STRUPR)AC_SUBST(HAVE_STRLWR)AC_SUBST(PROG_EXT)AC_SUBST(DLL_EXT)AC_SUBST(DLL_FLAGS)AC_SUBST(DLL_CFLAGS)AC_SUBST(REQUIRES_DEF)AC_SUBST(OS_ID)AC_SUBST(LIBS)AC_SUBST(DYN_LIBS)AC_SUBST(LD_STRIP)AC_SUBST(REGISTER)AC_CONFIG_FILES([../GNUmakefile:makefile.in])AC_OUTPUT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -