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

📄 configure.in

📁 reiserfsprogs-3.6.19.tar.gz 源码 给有需要的人!
💻 IN
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(version.h)AC_CANONICAL_HOSTAC_PREREQ(2.50)AH_TEMPLATE([HAVE_LIBUUID], [Define for enable libuuid using.])AH_TEMPLATE([ENABLE_DEBUG], [Define for enable debug info.])AM_INIT_AUTOMAKE(reiserfsprogs, 3.6.19)AM_MAINTAINER_MODEdnl We install in /sbin, the utils are to be available on bootdnl AC_PREFIX(/)AM_CONFIG_HEADER(include/config.h)AC_SUBST(sbindir)PRESET_CFLAGS=$CFLAGSdnl Checks for programs.AC_PROG_CCAC_PROG_AWK AC_PROG_INSTALLAC_PROG_LN_SAC_PROG_MAKE_SETAC_PROG_RANLIBdnl Checks for libraries.# Check for LIBUUIDAC_CHECK_LIB(uuid, uuid_generate, , AC_MSG_WARN(libuuid could not be found))UUID_LIBS="$LIBS"AC_SUBST(UUID_LIBS)dnl Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS(fcntl.h limits.h malloc.h sys/ioctl.h unistd.h uuid/uuid.h)AC_HEADER_MAJORdnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_C_INLINEAC_TYPE_SIZE_TAC_STRUCT_ST_RDEVAC_ARG_ENABLE(debug, [  --enable-debug          enable extra checks], 	      enable_debug=yes,	      enable_debug=no)dnl Check for the compiler pic option.AC_CACHE_CHECK([whether -fPIC works], [pic], [	saved_CPPFLAGS="$CPPFLAGS"	CPPFLAGS="-fPIC -DPIC"	AC_TRY_COMPILE(, , [pic=yes], [pic=no])	CPPFLAGS="$saved_CPPFLAGS"])# Checking for compiler warning optionsAC_CACHE_CHECK([whether -Wuninitialized works], [uninitialized], [	saved_CPPFLAGS="$CPPFLAGS"	CPPFLAGS="-O1 -Wuninitialized"	AC_TRY_COMPILE(, , [uninitialized=yes], [uninitialized=no])	CPPFLAGS="$saved_CPPFLAGS"])AC_CACHE_CHECK([whether -Wno-unused-parameter works], [no_unused_parameter], [	saved_CPPFLAGS="$CPPFLAGS"	CPPFLAGS="-Wno-unused-parameter"	AC_TRY_COMPILE(, , [no_unused_parameter=yes], [no_unused_parameter=no])	CPPFLAGS="$saved_CPPFLAGS"		])AC_CACHE_CHECK([whether -Wredundant-decls works], [redundant_decls], [	saved_CPPFLAGS="$CPPFLAGS"	CPPFLAGS="-Wredundant-decls"	AC_TRY_COMPILE(, , [redundant_decls=yes], [redundant_decls=no])	CPPFLAGS="$saved_CPPFLAGS"])# Check for large fileAC_SYS_LARGEFILEif test -z "${ac_cv_sys_file_offset_bits}"; then	AC_MSG_WARN(Can't detect right _FILE_OFFSET_BITS. Will be forced to 64bit.)	ac_cv_sys_file_offset_bits=64fiAC_CHECK_SIZEOF(off_t, 64, [ 	#include <stdio.h>	#include <sys/types.h>	#include <unistd.h> ])AC_CHECK_SIZEOF(blkcnt_t, 64, [ 	#include <stdio.h>	#include <sys/types.h>	#include <unistd.h> ])dnl Checks for library functions.AC_PROG_GCC_TRADITIONALAC_FUNC_MEMCMPAC_FUNC_STRFTIMEAC_FUNC_VPRINTFAC_CHECK_FUNCS(strerror strstr strtol register_printf_function statfs getmntent\	       hasmntopt memset time uname)dnl Never enable this. It is for debugging onlyAC_ARG_ENABLE(io-failure-emulation,[  --enable-io-failure-emulation      Never use that. It is for debugging only],[ if test "$enableval" = "yes" ; then    echo -e "\nCarefull! IO failure emulation is ON\n"    AC_DEFINE(IO_FAILURE_EMULATION, 1, [gets set when configure --enable-io-failure-emulation])  fi])credits="./CREDITS"AC_MSG_CHECKING(for $credits)if test -r $credits ; then    AC_MSG_RESULT(yes)else    AC_MSG_ERROR(Missing file $credits)fi$AWK ['BEGIN  {in_header = 1; start = 2; count = 0}{    if (in_header) {	print $0	if ($0 == "") {	    in_header = 0;	    printf "char *credits[] = {\n"	}    } else {	if (($0 == "") || (length($0) < 1)) {	    start = 1;	    count++;	} else {	    if (!start)		printf "\t\\\n"	    else if (start == 1)		printf ",\n\n"	    printf "\t\"" $0 "\\n\""	    start = 0;	}    }}END    { print "\n};\n#define CREDITS_COUNT "  count }']  $credits > include/credits.hif test x$enable_debug = xyes; then	if test "x" = "x$PRESET_CFLAGS"; then		CFLAGS="-g -Wall"	fi		if test x$no_unused_parameter = xyes; then		CFLAGS="$CFLAGS -Wno-unused-parameter"	else		CFLAGS="$CFLAGS -Wno-unused"	fi		if test x$redundant_decls = xyes; then		CFLAGS="$CFLAGS -Wredundant-decls"	fi		if test x$uninitialized = xyes; then		CFLAGS="$CFLAGS -Wuninitialized -O1"	else		CFLAGS="$CFLAGS -O2"	fielse	if test "x" = "x$PRESET_CFLAGS"; then		CFLAGS="-g -Wall -O2"	fifiif test x$pic = xyes; then	CFLAGS="$CFLAGS -fPIC -DPIC"fiAC_OUTPUT(    include/Makefile     mkreiserfs/Makefile     resize_reiserfs/Makefile     fsck/Makefile     lib/Makefile     Makefile     reiserfscore/Makefile     debugreiserfs/Makefile     tune/Makefile)echoecho Type \'make\' to compile reiserfsprogs

⌨️ 快捷键说明

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