diff --git a/configure b/configure index 138ea216..db9749bb 100755 --- a/configure +++ b/configure @@ -3914,9 +3914,8 @@ fi if test -n "$PYTHONCFG_BINARY"; then - my_saved_LDFLAGS="$LDFLAGS" - appendLD `$PYTHONCFG_BINARY --includes` - appendLD `$PYTHONCFG_BINARY --ldflags` + my_saved_LIBS="$LIBS" + appendLib `$PYTHONCFG_BINARY --ldflags` ac_fn_cxx_check_func "$LINENO" "Py_Initialize" "ac_cv_func_Py_Initialize" if test "x$ac_cv_func_Py_Initialize" = x""yes; then : @@ -3970,7 +3969,7 @@ fi as_fn_error $? "To compile modpython you need to be able to execute perl scripts. Try --disable-python or install perl." "$LINENO" 5 fi fi - LDFLAGS="$my_saved_LDFLAGS" + LIBS="$my_saved_LIBS" else PYTHON="no" fi @@ -4106,8 +4105,8 @@ $as_echo_n "checking modtcl flags... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_FLAGS" >&5 $as_echo "$TCL_FLAGS" >&6; } fi - my_saved_LDFLAGS="$LDFLAGS" - appendLD "$TCL_FLAGS" + my_saved_LIBS="$LIBS" + appendLib "$TCL_FLAGS" ac_fn_cxx_check_func "$LINENO" "Tcl_CreateInterp" "ac_cv_func_Tcl_CreateInterp" if test "x$ac_cv_func_Tcl_CreateInterp" = x""yes; then : TCL_TEST=yes @@ -4118,7 +4117,7 @@ fi if test x"$TCL_TEST" = "xno"; then as_fn_error $? "tcl not found, try --disable-tcl, or install tcl properly. If tcl is installed to a non-standard path, use --enable-tcl --with-tcl=/path" "$LINENO" 5 fi - LDFLAGS="$my_saved_LDFLAGS" + LIBS="$my_saved_LIBS" fi if test x"$EXTRA" = "xyes" diff --git a/configure.in b/configure.in index 65f0221b..6011ef10 100644 --- a/configure.in +++ b/configure.in @@ -333,9 +333,8 @@ if test "x$PYTHON" != "xno"; then old_PYTHON="$PYTHON" AC_PATH_PROG([PYTHONCFG_BINARY], ["$PYTHON"]) if test -n "$PYTHONCFG_BINARY"; then - my_saved_LDFLAGS="$LDFLAGS" - appendLD `$PYTHONCFG_BINARY --includes` - appendLD `$PYTHONCFG_BINARY --ldflags` + my_saved_LIBS="$LIBS" + appendLib `$PYTHONCFG_BINARY --ldflags` AC_CHECK_FUNC([Py_Initialize], [], [PYTHON="no"]) if test "x$PYTHON" != "xno"; then # Yes, modpython depends on perl. @@ -344,7 +343,7 @@ if test "x$PYTHON" != "xno"; then AC_MSG_ERROR([To compile modpython you need to be able to execute perl scripts. Try --disable-python or install perl.]) fi fi - LDFLAGS="$my_saved_LDFLAGS" + LIBS="$my_saved_LIBS" else PYTHON="no" fi @@ -404,13 +403,13 @@ then TCL_FLAGS="$TCL_INCLUDE_SPEC $TCL_LIB_SPEC" AC_MSG_RESULT([$TCL_FLAGS]) fi - my_saved_LDFLAGS="$LDFLAGS" - appendLD "$TCL_FLAGS" + my_saved_LIBS="$LIBS" + appendLib "$TCL_FLAGS" AC_CHECK_FUNC([Tcl_CreateInterp], [TCL_TEST=yes], [TCL_TEST=no]) if test x"$TCL_TEST" = "xno"; then AC_MSG_ERROR([tcl not found, try --disable-tcl, or install tcl properly. If tcl is installed to a non-standard path, use --enable-tcl --with-tcl=/path]) fi - LDFLAGS="$my_saved_LDFLAGS" + LIBS="$my_saved_LIBS" fi if test x"$EXTRA" = "xyes"