@@ -741,6 +741,7 @@ SHELL'
741741ac_subst_files=' '
742742ac_user_opts='
743743enable_option_checking
744+ enable_fail_if_missing
744745enable_darwin
745746with_mac_arch
746747with_developer_dir
@@ -1418,6 +1419,8 @@ Optional Features:
14181419 --disable-option-checking ignore unrecognized --enable/--with options
14191420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
14201421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422+ --enable-fail-if-missing Fail if dependencies on additional features
1423+ specified on the command line are missing.
14211424 --disable-darwin Disable Darwin (Mac OS X) support.
14221425 --disable-selinux Don't check for SELinux support.
14231426 --disable-xsmp Disable XSMP session management
@@ -3949,6 +3952,19 @@ $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
39493952fi
39503953
39513954
3955+
3956+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking --enable-fail-if-missing argument" >&5
3957+ $as_echo_n " checking --enable-fail-if-missing argument... " >&6 ; }
3958+ # Check whether --enable-fail_if_missing was given.
3959+ if test " ${enable_fail_if_missing+set} " = set ; then :
3960+ enableval=$enable_fail_if_missing ; fail_if_missing=" yes"
3961+ else
3962+ fail_if_missing=" no"
3963+ fi
3964+
3965+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $fail_if_missing " >&5
3966+ $as_echo " $fail_if_missing " >&6 ; }
3967+
39523968if test -z " $CFLAGS " ; then
39533969 CFLAGS=" -O"
39543970 test " $GCC " = yes && CFLAGS=" -O2 -fno-strength-reduce -Wall"
@@ -4727,6 +4743,9 @@ $as_echo "no" >&6; }
47274743 LUA_CFLAGS=" -DDYNAMIC_LUA_DLL=\\\" liblua${vi_cv_version_lua} .so$LUA_SONAME \\\" $LUA_CFLAGS "
47284744 fi
47294745 fi
4746+ if test " $fail_if_missing " = " yes" -a -z " $LUA_SRC " ; then
4747+ as_fn_error " could not configure lua" " $LINENO " 5
4748+ fi
47304749
47314750
47324751
@@ -5140,6 +5159,10 @@ $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
51405159 PERL_CFLAGS=" -DDYNAMIC_PERL_DLL=\\\" $libperl \\\" $PERL_CFLAGS "
51415160 fi
51425161 fi
5162+
5163+ if test " $fail_if_missing " = " yes" -a " $perl_ok " ! = " yes" ; then
5164+ as_fn_error " could not configure perl" " $LINENO " 5
5165+ fi
51435166fi
51445167
51455168
@@ -5429,6 +5452,10 @@ rm -f core conftest.err conftest.$ac_objext \
54295452$as_echo " too old" >&6 ; }
54305453 fi
54315454 fi
5455+
5456+ if test " $fail_if_missing " = " yes" -a " $python_ok " ! = " yes" ; then
5457+ as_fn_error " could not configure python" " $LINENO " 5
5458+ fi
54325459fi
54335460
54345461
@@ -6216,6 +6243,9 @@ $as_echo "<not found>" >&6; }
62166243$as_echo " too old; need Tcl version 8.0 or later" >&6 ; }
62176244 fi
62186245 fi
6246+ if test " $fail_if_missing " = " yes" -a -z " $TCL_SRC " ; then
6247+ as_fn_error " could not configure Tcl" " $LINENO " 5
6248+ fi
62196249fi
62206250
62216251
@@ -6353,6 +6383,10 @@ $as_echo "not found; disabling Ruby" >&6; }
63536383$as_echo " too old; need Ruby version 1.6.0 or later" >&6 ; }
63546384 fi
63556385 fi
6386+
6387+ if test " $fail_if_missing " = " yes" -a -z " $RUBY_OBJ " ; then
6388+ as_fn_error " could not configure Ruby" " $LINENO " 5
6389+ fi
63566390fi
63576391
63586392
0 commit comments