into the ac_ name space.
Reported by Nicolas Joly.
+2000-03-02 Akim Demaille <akim@epita.fr>
+
+ * acspecific.m4 (AC_PATH_X_DIRECT): Moved all the shell variable
+ into the ac_ name space.
+ Reported by Nicolas Joly.
+
2000-03-02 Akim Demaille <akim@epita.fr>
* acspecific.m4: Move some macros to a better place.
AC_DEFUN(_AC_PATH_X_DIRECT,
[if test "$ac_x_includes" = NO; then
# Guess where to find include files, by looking for this one X11 .h file.
- test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
+ test -z "$ac_x_direct_test_include" &&
+ ac_x_direct_test_include=X11/Intrinsic.h
# First, try using that file with no special directory specified.
-AC_TRY_CPP([#include <$x_direct_test_include>],
+AC_TRY_CPP([#include <$ac_x_direct_test_include>],
[# We can compile using X headers with no special include directory.
ac_x_includes=],
[# Look for the header file in a standard set of common directories.
/usr/openwin/share/include \
; \
do
- if test -r "$ac_dir/$x_direct_test_include"; then
+ if test -r "$ac_dir/$ac_x_direct_test_include"; then
ac_x_includes=$ac_dir
break
fi
if test "$ac_x_libraries" = NO; then
# Check for the libraries.
- test -z "$x_direct_test_library" && x_direct_test_library=Xt
- test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
+ test -z "$ac_x_direct_test_library" && ac_x_direct_test_library=Xt
+ test -z "$ac_x_direct_test_function" && ac_x_direct_test_function=XtMalloc
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS="$LIBS"
- LIBS="-l$x_direct_test_library $LIBS"
-AC_TRY_LINK(, [${x_direct_test_function}()],
+ LIBS="-l$ac_x_direct_test_library $LIBS"
+AC_TRY_LINK(, [${ac_x_direct_test_function}()],
[LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
ac_x_libraries=],
do
dnl Don't even attempt the hair of trying to link an X program!
for ac_extension in a so sl; do
- if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
+ if test -r $ac_dir/lib${ac_x_direct_test_library}.$ac_extension; then
ac_x_libraries=$ac_dir
break 2
fi
AC_DEFUN(_AC_PATH_X_DIRECT,
[if test "$ac_x_includes" = NO; then
# Guess where to find include files, by looking for this one X11 .h file.
- test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
+ test -z "$ac_x_direct_test_include" &&
+ ac_x_direct_test_include=X11/Intrinsic.h
# First, try using that file with no special directory specified.
-AC_TRY_CPP([#include <$x_direct_test_include>],
+AC_TRY_CPP([#include <$ac_x_direct_test_include>],
[# We can compile using X headers with no special include directory.
ac_x_includes=],
[# Look for the header file in a standard set of common directories.
/usr/openwin/share/include \
; \
do
- if test -r "$ac_dir/$x_direct_test_include"; then
+ if test -r "$ac_dir/$ac_x_direct_test_include"; then
ac_x_includes=$ac_dir
break
fi
if test "$ac_x_libraries" = NO; then
# Check for the libraries.
- test -z "$x_direct_test_library" && x_direct_test_library=Xt
- test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
+ test -z "$ac_x_direct_test_library" && ac_x_direct_test_library=Xt
+ test -z "$ac_x_direct_test_function" && ac_x_direct_test_function=XtMalloc
# See if we find them without any special options.
# Don't add to $LIBS permanently.
ac_save_LIBS="$LIBS"
- LIBS="-l$x_direct_test_library $LIBS"
-AC_TRY_LINK(, [${x_direct_test_function}()],
+ LIBS="-l$ac_x_direct_test_library $LIBS"
+AC_TRY_LINK(, [${ac_x_direct_test_function}()],
[LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
ac_x_libraries=],
do
dnl Don't even attempt the hair of trying to link an X program!
for ac_extension in a so sl; do
- if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
+ if test -r $ac_dir/lib${ac_x_direct_test_library}.$ac_extension; then
ac_x_libraries=$ac_dir
break 2
fi