1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Correctly quote AC_MSG_ERROR message.

configure will crash instead of showing the error message if the text contains
a comma and is not quoted.
This commit is contained in:
benjamin.drung@gmail.com 2013-11-12 23:03:14 +00:00
parent 1bdb187244
commit cec6a0bf58
2 changed files with 7 additions and 7 deletions

6
configure vendored
View File

@ -5510,7 +5510,7 @@ fi
if [ "$WX_CONFIG" = "no" ] ; then if [ "$WX_CONFIG" = "no" ] ; then
as_fn_error $? "\"Could not find wx-config: is wxWidgets installed? is wx-config in your path?\"" "$LINENO" 5 as_fn_error $? "Could not find wx-config: is wxWidgets installed? is wx-config in your path?" "$LINENO" 5
fi fi
if test "x$debug_preference" = "xyes"; then if test "x$debug_preference" = "xyes"; then
@ -8940,7 +8940,7 @@ if test "$ac_res" != no; then :
fi fi
if [ "$ac_cv_search_dlopen" = no ]; then if [ "$ac_cv_search_dlopen" = no ]; then
as_fn_error required by Audacity "dlopen not found" "$LINENO" 5 as_fn_error $? "dlopen not found, required by Audacity" "$LINENO" 5
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing XML_ParserCreate" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing XML_ParserCreate" >&5
@ -9000,7 +9000,7 @@ if test "$ac_res" != no; then :
fi fi
if [ "$ac_cv_search_expat" = no ]; then if [ "$ac_cv_search_expat" = no ]; then
as_fn_error required by Audacity "expat not found" "$LINENO" 5 as_fn_error $? "expat not found, required by Audacity" "$LINENO" 5
fi fi

View File

@ -276,7 +276,7 @@ dnl-------------------------------------------------------------
dnl wxWidgets -- we assume that if wx-config is found, wxWidgets is successfully installed. dnl wxWidgets -- we assume that if wx-config is found, wxWidgets is successfully installed.
AC_PATH_PROG(WX_CONFIG, wx-config, no, $PATH:/usr/local/bin ) AC_PATH_PROG(WX_CONFIG, wx-config, no, $PATH:/usr/local/bin )
if [[ "$WX_CONFIG" = "no" ]] ; then if [[ "$WX_CONFIG" = "no" ]] ; then
AC_MSG_ERROR("Could not find wx-config: is wxWidgets installed? is wx-config in your path?") AC_MSG_ERROR([Could not find wx-config: is wxWidgets installed? is wx-config in your path?])
fi fi
if test "x$debug_preference" = "xyes"; then if test "x$debug_preference" = "xyes"; then
@ -398,7 +398,7 @@ for lib in $LIBRARIES ; do
elif test "$LIB_ARGUMENT" = no ; then elif test "$LIB_ARGUMENT" = no ; then
AC_MSG_NOTICE([disabling $lib at your request]) AC_MSG_NOTICE([disabling $lib at your request])
else else
AC_MSG_ERROR(I did not understand the argument $LIB_ARGUMENT for $lib) AC_MSG_ERROR([I did not understand the argument $LIB_ARGUMENT for $lib])
fi fi
fi fi
done done
@ -593,12 +593,12 @@ case "${host_os}" in
dnl On Unix we always use dlopen dnl On Unix we always use dlopen
AC_SEARCH_LIBS([dlopen], [dl]) AC_SEARCH_LIBS([dlopen], [dl])
if [[ "$ac_cv_search_dlopen" = no ]]; then if [[ "$ac_cv_search_dlopen" = no ]]; then
AC_MSG_ERROR(dlopen not found, required by Audacity) AC_MSG_ERROR([dlopen not found, required by Audacity])
fi fi
AC_SEARCH_LIBS([XML_ParserCreate], [expat]) AC_SEARCH_LIBS([XML_ParserCreate], [expat])
if [[ "$ac_cv_search_expat" = no ]]; then if [[ "$ac_cv_search_expat" = no ]]; then
AC_MSG_ERROR(expat not found, required by Audacity) AC_MSG_ERROR([expat not found, required by Audacity])
fi fi
AC_SUBST(HAVE_GTK) AC_SUBST(HAVE_GTK)