diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-07-16 17:35:36 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-07-16 23:08:10 -0700 |
commit | c03ca42de310c5647b7970ae1bbb1344977cb384 (patch) | |
tree | e2b6adb263c5741f4326fa2baecb0746b8ce8a0d /lib/autoconf/programs.m4 | |
parent | 2ff883c27e55b0c0d4a448614c1dee0492c9a7da (diff) | |
download | autoconf-c03ca42de310c5647b7970ae1bbb1344977cb384.tar.gz |
Fix ${VAR-NONWORD} bugs
* lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES):
* lib/autoconf/programs.m4 (AC_FUNC_SELECT_ARGTYPES):
* lib/autotest/general.m4 (AT_INIT):
Rewrite to avoid ${VAR-VALUE} where VALUE is not a shell word.
Diffstat (limited to 'lib/autoconf/programs.m4')
-rw-r--r-- | lib/autoconf/programs.m4 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/autoconf/programs.m4 b/lib/autoconf/programs.m4 index 087c913a..0ad3ddd1 100644 --- a/lib/autoconf/programs.m4 +++ b/lib/autoconf/programs.m4 @@ -760,13 +760,15 @@ AC_SUBST([LEX_OUTPUT_ROOT], [$ac_cv_prog_lex_root])dnl AS_VAR_SET_IF([LEXLIB], [], [ AC_CACHE_CHECK([for lex library], [ac_cv_lib_lex], [ - ac_cv_lib_lex='not found' ac_save_LIBS=$LIBS - for ac_lib in '' -lfl -ll; do - LIBS="$ac_lib $ac_save_LIBS" + for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do + case $ac_cv_lib_lex in + 'none needed') ;; + 'not found') break;; + *) LIBS="$ac_cv_lib_lex $ac_save_LIBS";; + esac AC_LINK_IFELSE([AC_LANG_DEFINES_PROVIDED[`cat $LEX_OUTPUT_ROOT.c`]], - [ac_cv_lib_lex="${ac_lib:-none needed}" - break]) + [break]) done LIBS=$ac_save_LIBS ]) |