diff options
| -rwxr-xr-x | autogen/configure | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/autogen/configure b/autogen/configure index 1251680b942..8226d489f72 100755 --- a/autogen/configure +++ b/autogen/configure | |||
| @@ -3367,7 +3367,19 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ | |||
| 3367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 3367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3368 | 3368 | ||
| 3369 | 3369 | ||
| 3370 | |||
| 3370 | emacs_config_options="$@" | 3371 | emacs_config_options="$@" |
| 3372 | ## Add some environment variables, if they were passed via the environment | ||
| 3373 | ## rather than on the command-line. | ||
| 3374 | for var in CFLAGS CPPFLAGS LDFLAGS; do | ||
| 3375 | case "$emacs_config_options" in | ||
| 3376 | *$var=*) continue ;; | ||
| 3377 | esac | ||
| 3378 | eval val="\$${var}" | ||
| 3379 | test x"$val" = x && continue | ||
| 3380 | emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=$val" | ||
| 3381 | done | ||
| 3382 | |||
| 3371 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" | 3383 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
| 3372 | 3384 | ||
| 3373 | 3385 | ||