From 8a94b65cb3c6c6313e3ac455d9ce73dc6246c30e Mon Sep 17 00:00:00 2001 From: David MacKenzie Date: Tue, 29 Mar 1994 00:40:23 +0000 Subject: [PATCH] (AC_PARSEARGS): Warn about multiple non-option args. --- acgeneral.m4 | 5 +++++ lib/autoconf/general.m4 | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/acgeneral.m4 b/acgeneral.m4 index 8b9f1bcc..17c4a776 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -105,6 +105,7 @@ changequote([,])dnl build=NONE exec_prefix= host=NONE +nonopt=NONE norecursion= prefix= program_prefix= @@ -287,6 +288,10 @@ changequote(,)dnl changequote([,])dnl AC_WARN($ac_option: invalid host type) fi + if test "x$nonopt" -ne xNONE; then + AC_WARN(can only configure for one host and one target at a time) + fi + nonopt="$ac_option" ;; esac diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 8b9f1bcc..17c4a776 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -105,6 +105,7 @@ changequote([,])dnl build=NONE exec_prefix= host=NONE +nonopt=NONE norecursion= prefix= program_prefix= @@ -287,6 +288,10 @@ changequote(,)dnl changequote([,])dnl AC_WARN($ac_option: invalid host type) fi + if test "x$nonopt" -ne xNONE; then + AC_WARN(can only configure for one host and one target at a time) + fi + nonopt="$ac_option" ;; esac