summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-02 09:21:41 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-02 09:21:41 (GMT)
commit390b37127bf7a79e6bf500f992ccd05ed791909e (patch)
treeb7fc6d0069c6460496e720b8858bc5c10f44b57f
parent32751502de82831ee3ada265cec91880b8d8438e (diff)
downloadtk-390b37127bf7a79e6bf500f992ccd05ed791909e.zip
tk-390b37127bf7a79e6bf500f992ccd05ed791909e.tar.gz
tk-390b37127bf7a79e6bf500f992ccd05ed791909e.tar.bz2
Fix unix configure script: X11.h doesn't exist, should have been Xlib.h (was correct in Tk 8.5)
-rwxr-xr-xunix/configure10
1 files changed, 5 insertions, 5 deletions
diff --git a/unix/configure b/unix/configure
index 1b16e8f..bf1e343 100755
--- a/unix/configure
+++ b/unix/configure
@@ -9461,7 +9461,7 @@ ac_x_header_dirs='
/usr/openwin/share/include'
if test "$ac_x_includes" = no; then
- # Guess where to find include files, by looking for X11.h.
+ # Guess where to find include files, by looking for Xlib.h.
# First, try using that file with no special directory specified.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -9469,7 +9469,7 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <X11/X11.h>
+#include <X11/Xlib.h>
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
@@ -9496,7 +9496,7 @@ else
sed 's/^/| /' conftest.$ac_ext >&5
for ac_dir in $ac_x_header_dirs; do
- if test -r "$ac_dir/X11/X11.h"; then
+ if test -r "$ac_dir/X11/Xlib.h"; then
ac_x_includes=$ac_dir
break
fi
@@ -9517,11 +9517,11 @@ _ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <X11/X11.h>
+#include <X11/Xlib.h>
int
main ()
{
-XrmInitialize (0)
+XrmInitialize ()
;
return 0;
}