Mercurial > octave
diff Makefile.am @ 21229:a83e7a384ee0
create and install a subset of config.h in octave-config.h
* mk-octave-config-h.sh: New file.
* Makefile.am (EXTRA_DIST): Add mk-octave-config.h.sh to the list.
(octinclude_HEADERS): Add octave-config.h to the list.
(octave-config.h): New rule.
* common.mk (do_subst_config_vals, do_subst_cross_config_vals):
Don't substitute unused ENABLE options.
* configure.ac: Note the reason for using oct-conf-post.in.h.
Add OCTAVE_ prefix to ENABLE_BOUNDS_CHECK ENABLE_ATOMIC_REFCOUNT,
ENABLE_64, ENABLE_OPENMP, and ENABLE_FLOAT_TRUNCATE in calls to
AC_DEFINE. Change all uses.
* oct-conf-post.in.h: Define HAVE_OCTAVE_DEPRECATED_ATTR instead of
HAVE_ATTR_DEPRECATED. Likewise for HAVE_ATTR_NORETURN and
HAVE_ATTR_UNUSED. Change all uses.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 08 Feb 2016 17:30:29 -0500 |
parents | 110c7a54586b |
children | 5ddc9b61a0c4 |
line wrap: on
line diff
--- a/Makefile.am Mon Feb 08 20:45:26 2016 -0500 +++ b/Makefile.am Mon Feb 08 17:30:29 2016 -0500 @@ -47,6 +47,7 @@ README \ build-aux/OctJavaQry.class \ build-aux/find-files-with-tests.sh \ + build-aux/mk-octave-config-h.sh \ build-aux/mk-opts.pl \ build-aux/move-if-change \ build-aux/stl_algo.h-fixed \ @@ -91,6 +92,7 @@ bin_PROGRAMS = archlib_PROGRAMS = noinst_HEADERS = +nodist_noinst_HEADERS = OCTAVE_VERSION_LINKS = OCTAVE_CROSS_TOOLS = OCTAVE_INTERPRETER_TARGETS = @@ -169,7 +171,7 @@ CONFIG_FILES = @ac_config_headers@ @ac_config_files@ -octinclude_HEADERS += oct-conf-post.h +octinclude_HEADERS += octave-config.h oct-conf-post.h nodist_octinclude_HEADERS += config.h all-local: $(ALL_LOCAL_TARGETS) $(noinst_SCRIPTS) $(DIST_INFO_FILES) .gdbinit $(DOC_TARGETS) @@ -185,6 +187,10 @@ $(AM_V_GEN)$(do_subst_script_vals) && \ chmod a+rx "$@" +octave-config.h: config.h build-aux/mk-octave-config-h.sh + $(AM_V_GEN)$(top_srcdir)/build-aux/mk-octave-config-h.sh $< > $@-t && \ + mv $@-t $@ + bits/stl_algo.h: build-aux/stl_algo.h-fixed $(AM_V_GEN)$(MKDIR_P) bits && \ $(INSTALL_HEADER) $< $@