diff options
| author | Glenn Morris | 2013-02-10 16:54:48 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-02-10 16:54:48 -0800 |
| commit | 1e8725cfae4c4bc32cff9635b5fc3845ee1d069c (patch) | |
| tree | 871717c17e7e0f17fd3d6034b9b939bd927d4b63 | |
| parent | e37778785ab978f64141e87392e8e651945f040e (diff) | |
| download | emacs-1e8725cfae4c4bc32cff9635b5fc3845ee1d069c.tar.gz emacs-1e8725cfae4c4bc32cff9635b5fc3845ee1d069c.zip | |
* configure.ac (emacs_config_options): Record some env vars.
| -rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5991f2d9e93..13d8fe7473c 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -23,9 +23,21 @@ dnl along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | |||
| 23 | 23 | ||
| 24 | AC_PREREQ(2.65) | 24 | AC_PREREQ(2.65) |
| 25 | AC_INIT(emacs, 24.3.50) | 25 | AC_INIT(emacs, 24.3.50) |
| 26 | |||
| 26 | dnl This is the documented way to record the args passed to configure, | 27 | dnl This is the documented way to record the args passed to configure, |
| 27 | dnl rather than $ac_configure_args. | 28 | dnl rather than $ac_configure_args. |
| 28 | emacs_config_options="$@" | 29 | emacs_config_options="$@" |
| 30 | ## Add some environment variables, if they were passed via the environment | ||
| 31 | ## rather than on the command-line. | ||
| 32 | for var in CFLAGS CPPFLAGS LDFLAGS; do | ||
| 33 | case "$emacs_config_options" in | ||
| 34 | *$var=*) continue ;; | ||
| 35 | esac | ||
| 36 | eval val="\$${var}" | ||
| 37 | test x"$val" = x && continue | ||
| 38 | emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=$val" | ||
| 39 | done | ||
| 40 | |||
| 29 | AC_CONFIG_HEADER(src/config.h:src/config.in) | 41 | AC_CONFIG_HEADER(src/config.h:src/config.in) |
| 30 | AC_CONFIG_SRCDIR(src/lisp.h) | 42 | AC_CONFIG_SRCDIR(src/lisp.h) |
| 31 | AC_CONFIG_AUX_DIR(build-aux) | 43 | AC_CONFIG_AUX_DIR(build-aux) |