Lines Matching +full:- +full:- +full:gcov +full:- +full:options
18 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[[1-9]]$/s/^/0/')
19 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
20 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
47 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
52 *-WIP|pre-*)
73 AC_ARG_WITH([diet-libc],
74 AS_HELP_STRING([--with-diet-libc],[use diet libc]),
75 CC="diet cc -nostdinc"
77 if test -z "$LIBS"
79 LIBS="-lcompat"
81 LIBS="$LIBS -lcompat"
90 AC_CHECK_LIB(dl, dlopen,DLOPEN_LIB=-ldl)
94 AS_HELP_STRING([--with-cc],[no longer supported, use CC= instead]),
95 AC_MSG_ERROR([--with-cc no longer supported; use CC= instead]))
98 AS_HELP_STRING([--with-ccopts],[no longer supported, use CFLAGS= instead]),
99 AC_MSG_ERROR([--with-ccopts no longer supported; use CFLAGS= instead]))
102 AS_HELP_STRING([--with-ldopts],[no longer supported, use LDFLAGS= instead]),
103 AC_MSG_ERROR([--with-ldopts no longer supported; use LDFLAGS= instead]))
107 RDYNAMIC="-rdynamic"
113 dnl miss exceptions by default. Force sane options if we're using GCC.
118 alpha) addcflags="-mieee" ;;
130 dnl parsing configuration options, which may modify these
138 AC_ARG_WITH([root-prefix],
139 AS_HELP_STRING([--with-root-prefix=PREFIX],[override prefix variable for files to be placed in the …
143 dnl handle --enable-maintainer-mode
145 AC_ARG_ENABLE([maintainer-mode],
146 AS_HELP_STRING([--enable-maintainer-mode],[enable makefile rules useful for maintainers]),
161 dnl handle --enable-symlink-install
163 AC_ARG_ENABLE([symlink-install],
164 AS_HELP_STRING([--enable-symlink-install],[use symlinks when installing instead of hard links]),
167 LINK_INSTALL_FLAGS=-f
170 LINK_INSTALL_FLAGS=-sf
174 LINK_INSTALL_FLAGS=-f
179 dnl handle --enable-relative-symlinks
182 AC_ARG_ENABLE([relative-symlinks],
183 AS_HELP_STRING([--enable-relative-symlinks],[use relative symlinks when installing]),
190 SYMLINK_RELATIVE=--relative
194 AC_ARG_ENABLE([symlink-relative-symlinks],,
200 SYMLINK_RELATIVE=--relative
204 if test -z "$relative_symlink_defined"
212 dnl handle --enable-symlink-build
214 AC_ARG_ENABLE([symlink-build],
215 AS_HELP_STRING([--enable-symlink-build],[use symlinks while building instead of hard links]),
221 LINK_BUILD_FLAGS=-s
230 dnl handle --enable-verbose-makecmds
232 AC_ARG_ENABLE([verbose-makecmds],
233 AS_HELP_STRING([--enable-verbose-makecmds],[enable verbose make command output]),
256 dnl This needs to be before all of the --enable-*-shlibs options
258 E2_PKG_CONFIG_STATIC=--static
262 dnl handle --enable-elf-shlibs
264 AC_ARG_ENABLE([elf-shlibs],
265 AS_HELP_STRING([--enable-elf-shlibs],[select ELF shared libraries]),
274 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
277 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
283 LDFLAG_DYNAMIC=['-Wl,-rpath-link,$(top_builddir)/lib']
294 dnl handle --enable-bsd-shlibs
296 AC_ARG_ENABLE([bsd-shlibs],
297 AS_HELP_STRING([--enable-bsd-shlibs],[select BSD shared libraries]),
306 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
310 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
324 dnl handle --enable-profile
327 AS_HELP_STRING([--enable-profile],[build profiling libraries]),
347 dnl handle --enable-gcov
349 AC_ARG_ENABLE([gcov], optenable
350 AS_HELP_STRING([--enable-gcov],[build for coverage testing using gcov]),
353 CFLAGS="-g -fprofile-arcs -ftest-coverage"
354 LDFLAGS="-fprofile-arcs -ftest-coverage"
355 AC_MSG_RESULT([Enabling gcov support])
359 dnl handle --enable-hardening
361 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
362 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
363 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
364 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
366 AS_HELP_STRING([--enable-hardening],[build for coverage testing using gcov]),
369 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
370 HARDEN_LDFLAGS=["-Wl,-z,relro -Wl,-z,now"]
371 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
373 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
374 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
389 dnl handle --enable-jbd-debug
391 AC_ARG_ENABLE([jbd-debug],
392 AS_HELP_STRING([--enable-jbd-debug],[enable journal debugging]),
405 dnl handle --enable-blkid-debug
407 AC_ARG_ENABLE([blkid-debug],
408 AS_HELP_STRING([--enable-blkid-debug],[enable blkid debugging]),
421 dnl handle --enable-testio-debug
423 AC_ARG_ENABLE([testio-debug],
424 AS_HELP_STRING([--disable-testio-debug],[disable the use of the test I/O manager for debugging]),
443 dnl handle --enable-developer-features
445 AC_ARG_ENABLE([developer-features],
446 AS_HELP_STRING([--enable-developer-features],[enable features for use by ext4 developers]),
464 dnl handle --disable-libuuid
475 AS_HELP_STRING([--enable-libuuid],[build and use private uuid library]),
478 if test -z "$PKG_CONFIG"; then
479 AC_MSG_ERROR([pkg-config not installed; please install it.])
483 [LIBUUID=`$PKG_CONFIG --libs uuid`;
484 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`],
499 if test -n "$PKG_CONFIG"; then
501 [LIBUUID=`$PKG_CONFIG --libs uuid`;
502 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`])
504 if test -n "$LIBUUID"; then
526 dnl handle --disable-libblkid
538 AS_HELP_STRING([--enable-libblkid],[build and use private blkid library]),
541 if test -z "$PKG_CONFIG"; then
542 AC_MSG_ERROR([pkg-config not installed; please install it.])
546 [LIBBLKID=`$PKG_CONFIG --libs blkid`;
547 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`],
548 [AC_MSG_ERROR([external blkid library not found])], -luuid)
563 if test -n "$PKG_CONFIG"; then
565 [LIBBLKID=`$PKG_CONFIG --libs blkid`;
566 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`])
568 if test -n "$LIBBLKID"; then
591 dnl handle --enable-subset
596 AS_HELP_STRING([--enable-subset],[enable subset-only build]),
600 AC_MSG_RESULT([Disabling subset-only build])
603 AC_MSG_RESULT([Enabling subset-only-build])
609 dnl handle --disable-backtrace
613 AS_HELP_STRING([--disable-backtrace],[disable use backtrace]),
625 dnl handle --enable-debugfs
628 AS_HELP_STRING([--disable-debugfs],[disable support of debugfs program]),
643 dnl handle --enable-imager
646 AS_HELP_STRING([--disable-imager],[disable support of e2image program]),
661 dnl handle --enable-resizer
664 AS_HELP_STRING([--disable-resizer],[disable support of e2resize program]),
679 dnl handle --enable-defrag
682 AS_HELP_STRING([--disable-defrag],[disable support of e4defrag program]),
692 if test -z "$WITH_DIET_LIBC"
706 AS_HELP_STRING([--enable-fsck],[build fsck wrapper program]),
729 dnl See whether to install the `e2initrd-helper' program
731 AC_ARG_ENABLE([e2initrd-helper],
732 AS_HELP_STRING([--enable-e2initrd-helper],[build e2initrd-helper program]),
751 AS_HELP_STRING([--disable-tls],[disable use of thread local support]),
761 if test -n "$WITH_DIET_LIBC"
778 AS_HELP_STRING([--without-pthread],[disable use of pthread support]),
795 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
803 AS_HELP_STRING([--disable-uuidd],[disable building the uuid daemon]),
815 if test -z "$UUID_CMT"
826 dnl handle --disable-mmp
830 AS_HELP_STRING([--disable-mmp],[disable support mmp, Multi Mount Protection]),
843 dnl handle --disable-tdb
847 AS_HELP_STRING([--disable-tdb],[disable tdb support]),
884 dnl handle --disable-bmap-stats
887 AC_ARG_ENABLE([bmap-stats],
888 AS_HELP_STRING([--disable-bmap-stats],[disable collection of bitmap stats]),
901 dnl handle --enable-bmap-stats-ops
904 AC_ARG_ENABLE([bmap-stats-ops],
905 AS_HELP_STRING([--enable-bmap-stats-ops],[enable collection of additional bitmap stats]),
912 AC_MSG_FAILURE([Error --enable-bmap-stats-ops requires bmap-stats]))
940 dnl End of configuration options
1060 if test -n "$DD" ; then
1065 AC_MSG_WARN([No GNU-compatible dd(1) program found, expect some self-test failures.])
1102 dnl Warning! Use of --enable-gcc-wall may throw off this test.
1133 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
1135 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
1155 rm -f tmp_config.$$
1190 dnl If we are using the system-provided blkid library, check for
1191 dnl the functions added after migrating that library to util-linux
1193 if test -n "$BLKID_CMT"; then
1205 if test -n "$DLOPEN_LIB" ; then
1277 dnl Check to see if -lsocket is required (solaris) to make something
1281 AC_CHECK_LIB(socket, socket, [SOCKET_LIB=-lsocket])
1286 AC_CHECK_LIB(magic, magic_file, [MAGIC_LIB=-lmagic
1295 AC_CHECK_LIB(rt, clock_gettime, [CLOCK_GETTIME_LIB=-lrt])
1298 dnl Check to see if the FUSE library is -lfuse or -losxfuse
1304 AS_HELP_STRING([--disable-fuse2fs],[do not build fuse2fs]),
1324 AC_CHECK_LIB(osxfuse, fuse_main, [FUSE_LIB=-losxfuse],
1325 [AC_CHECK_LIB(fuse, fuse_main, [FUSE_LIB=-lfuse],
1338 if test -z "$FUSE_CMT"
1340 AC_CHECK_LIB(osxfuse, fuse_main, [FUSE_LIB=-losxfuse],
1341 [AC_CHECK_LIB(fuse, fuse_main, [FUSE_LIB=-lfuse], [FUSE_CMT="#"])])
1343 if test -z "$FUSE_CMT"
1372 SEM_INIT_LIB=-lpthread,
1375 SEM_INIT_LIB=-lrt,
1378 SEM_INIT_LIB=-lposix4))))dnl
1402 AC_DEFINE(HAVE_GNU_QSORT_R, 1, [ Define to 1 if you have the GNU-style 'qsort_r' function.])
1405 AC_DEFINE(HAVE_BSD_QSORT_R, 1, [ Define to 1 if you have the BSD-style 'qsort_r' function.])
1412 if diff -u $0 $0 > /dev/null 2>&1 ; then
1413 UNI_DIFF_OPTS=-u
1415 UNI_DIFF_OPTS=-c
1428 dnl Check the available mount options
1435 AS_HELP_STRING([--enable-lto],[enable link time optimization]),,
1441 LTO_FLAGS="-g -flto -ffat-lto-objects"
1448 [AC_PATH_PROG(gcc_ar, gcc-ar,,)]
1449 [AC_PATH_PROG(gcc_ranlib, gcc-ranlib,,)],
1451 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
1469 AS_HELP_STRING([--enable-ubsan],[enable undefined behavior sanitizer]),,
1475 UBSAN_FLAGS="-fsanitize=undefined"
1497 AS_HELP_STRING([--enable-addrsan],[enable address sanitizer]),,
1503 ADDRSAN_FLAGS="-fsanitize=address"
1525 AS_HELP_STRING([--enable-threadsan],[enable thread sanitizer]),,
1531 THREADSAN_FLAGS="-fsanitize=thread"
1557 AS_HELP_STRING([--enable-fuzzing],[enable fuzzing sanitizer]),,
1565 FUZZER_FLAGS="-fsanitize=fuzzer"
1592 dnl OS-specific uncomment control
1618 linux* | gnu* | k*bsd*-gnu)
1619 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
1629 linux* | gnu* | k*bsd*-gnu)
1681 AS_HELP_STRING([--with-multiarch=ARCH],[specify the multiarch triplet]),
1692 dnl See if -static works. This could fail if the linker does not
1693 dnl support -static, or if required external libraries are not available
1696 AC_MSG_CHECKING([whether we can link with -static])
1698 [SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
1702 dnl Regardless of how the test turns out, Solaris doesn't handle -static
1704 dnl requires the -dl library, which only works for dynamically linked
1715 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
1742 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
1743 if test -n "$CPPFLAGS" ; then
1747 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
1749 if test -n "$WITH_DIET_LIBC" ; then
1750 INCLUDES="$INCLUDES -D_REENTRANT"
1754 INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
1762 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
1770 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
1771 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
1772 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
1781 [AS_HELP_STRING([--with-udev-rules-dir@<:@=DIR@:>@],
1791 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
1798 AS_IF([test -n "${pkg_udev_rules_dir}"],
1818 [AS_HELP_STRING([--with-crond-dir@<:@=DIR@:>@],
1826 AS_IF([test -d "/etc/cron.d"],
1832 AS_IF([test -n "${crond_dir}"],
1852 [AS_HELP_STRING([--with-systemd-unit-dir@<:@=DIR@:>@],
1862 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
1870 AS_IF([test -n "${systemd_system_unit_dir}"],
1904 test -d lib || mkdir lib
1905 test -d include || mkdir include
1906 test -d include/linux || mkdir include/linux
1907 test -d include/asm || mkdir include/asm
1908 if test -z "$UUID_CMT" ; then
1912 if test -z "$BLKID_CMT" ; then
1917 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
1926 if test -d `dirname ${srcdir}/$i` ; then
1932 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi