with_gameuser
with_gnustep_conf
enable_ns_self_contained
-enable_asserts
enable_locallisppath
enable_checking
enable_check_lisp_object_type
enable_dependency_tracking
enable_largefile
enable_gcc_warnings
+enable_link_time_optimization
with_x
'
ac_precious_vars='build_alias
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--disable-ns-self-contained
disable self contained build under NeXTstep
- --enable-asserts compile code with asserts enabled
--enable-locallisppath=PATH
directories Emacs should search for lisp files
specific to this site
--enable-dependency-tracking do not reject slow dependency extractors
--disable-largefile omit support for large files
--enable-gcc-warnings turn on lots of GCC warnings (for developers)
+ --enable-link-time-optimization
+ build emacs with link-time optimization. This is
+ supported only for GCC since 4.5.0.
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
fi
-# Check whether --enable-asserts was given.
-if test "${enable_asserts+set}" = set; then :
- enableval=$enable_asserts; USE_XASSERTS=$enableval
-else
- USE_XASSERTS=no
-fi
-
-
# Check whether --enable-locallisppath was given.
if test "${enable_locallisppath+set}" = set; then :
enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
ac_gc_check_string_free_list= ;
ac_xmalloc_overrun= ;
ac_gc_check_cons_list= ;
- ac_check_glyphs= ;;
+ ac_glyphs_debug= ;;
all) ac_enable_checking=1 ;
ac_gc_check_stringbytes=1 ;
ac_gc_check_string_overrun=1 ;
ac_gc_check_string_free_list=1 ;
ac_xmalloc_overrun=1 ;
ac_gc_check_cons_list=1 ;
- ac_check_glyphs=1 ;;
+ ac_glyphs_debug=1 ;;
# these enable particular checks
stringbytes) ac_gc_check_stringbytes=1 ;;
stringoverrun) ac_gc_check_string_overrun=1 ;;
stringfreelist) ac_gc_check_string_free_list=1 ;;
xmallocoverrun) ac_xmalloc_overrun=1 ;;
conslist) ac_gc_check_cons_list=1 ;;
- glyphs) ac_check_glyphs=1 ;;
+ glyphs) ac_glyphs_debug=1 ;;
*) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
esac
done
$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
fi
-if test x$ac_check_glyphs != x ; then
+if test x$ac_glyphs_debug != x ; then
$as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
fi
+# Check whether --enable-link-time-optimization was given.
+if test "${enable_link_time_optimization+set}" = set; then :
+ enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
+$as_echo_n "checking whether link-time optimization is supported... " >&6; }
+ ac_lto_supported=no
+ if test x$GCC = xyes; then
+ CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
+ if test x$CPUS != x; then
+ LTO="-flto=$CPUS"
+ else
+ LTO="-flto"
+ fi
+ old_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS $LTO"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_lto_supported=yes
+else
+ ac_lto_supported=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS="$old_CFLAGS"
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
+$as_echo "$ac_lto_supported" >&6; }
+ if test "$ac_lto_supported" = "yes"; then
+ CFLAGS="$CFLAGS $LTO"
+ fi
+fi
+fi
+
+
# gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
# ------------------------------------------------
# If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
echo " Environment variable EMACSDOC set to: $EMACSDOC"
fi
-if test $USE_XASSERTS = yes; then
- echo " Compiling with asserts turned on."
- CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
-fi
-
echo
if test "$HAVE_NS" = "yes"; then