- # Look for the directory under a standard set of common directories.
- # Check X11 before X11Rn because it's often a symlink to the current release.
- for ac_dir in \
- /usr/X11/lib/app-defaults \
- /usr/X11R6/lib/app-defaults \
- /usr/X11R6/lib/X11/app-defaults \
- /usr/X11R5/lib/app-defaults \
- /usr/X11R5/lib/X11/app-defaults \
- /usr/X11R4/lib/app-defaults \
- /usr/X11R4/lib/X11/app-defaults \
- \
- /usr/lib/X11/app-defaults \
- /usr/lib/X11R6/app-defaults \
- /usr/lib/X11R5/app-defaults \
- /usr/lib/X11R4/app-defaults \
- \
- /usr/local/X11/lib/app-defaults \
- /usr/local/X11R6/lib/app-defaults \
- /usr/local/X11R5/lib/app-defaults \
- /usr/local/X11R4/lib/app-defaults \
- \
- /usr/local/lib/X11/app-defaults \
- /usr/local/lib/X11R6/app-defaults \
- /usr/local/lib/X11R6/X11/app-defaults \
- /usr/local/lib/X11R5/app-defaults \
- /usr/local/lib/X11R5/X11/app-defaults \
- /usr/local/lib/X11R4/app-defaults \
- /usr/local/lib/X11R4/X11/app-defaults \
- \
- /usr/X386/lib/X11/app-defaults \
- /usr/x386/lib/X11/app-defaults \
- /usr/XFree86/lib/X11/app-defaults \
- \
- /usr/lib/X11/app-defaults \
- /usr/local/lib/X11/app-defaults \
- /usr/unsupported/lib/X11/app-defaults \
- /usr/athena/lib/X11/app-defaults \
- /usr/local/x11r5/lib/X11/app-defaults \
- /usr/lpp/Xamples/lib/X11/app-defaults \
- /lib/usr/lib/X11/app-defaults \
- \
- /usr/openwin/lib/app-defaults \
- /usr/openwin/lib/X11/app-defaults \
- /usr/openwin/share/lib/app-defaults \
- /usr/openwin/share/lib/X11/app-defaults \
- \
- /X11R6/lib/app-defaults \
- /X11R5/lib/app-defaults \
- /X11R4/lib/app-defaults \
- ; \
- do
- if test -d "$ac_dir"; then
- ac_x_app_defaults=$ac_dir
- break
- fi
- done
-
- fi
- if test x"$ac_x_app_defaults" = x; then
- ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
- else
- # Record where we found app-defaults for the cache.
- ac_cv_x_app_defaults="$ac_x_app_defaults"
- fi
-fi
-{ $as_echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
-$as_echo "$ac_cv_x_app_defaults" >&6; }
- eval ac_x_app_defaults="$ac_cv_x_app_defaults"
-case "$host" in
- *-hpux*)
-
- # The following arcana was gleaned from conversations with
- # Eric Schwartz <erics@col.hp.com>:
- #
- # On HPUX 10.x, the parts of X that HP considers "standard" live in
- # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
- # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
- # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
- # Also, there are symlinks from /usr/include/ and /usr/lib/ into
- # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
- # you don't need any -I or -L arguments.
- #
- # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
- # are the same division as 10.x. However, there are no symlinks to
- # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
- # arguments are always necessary.
- #
- # However, X11R6 was available on HPUX 9.x as a patch: if that
- # patch was installed, then all of X11R6 went in to
- # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
- #
- # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
- # whether R5 was available as a patch; R6 undoubtedly was not.)
- #
- # So. We try and use the highest numbered pair of
- # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
- # that are available. We do not mix and match different versions
- # of X.
- #
- # Question I still don't know the answer to: (do you?)
- #
- # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
- # /usr/contrib/X11R6/ could be installed as a patch, what was in
- # that contrib directory? Did it contain so-called "standard"
- # X11R6, or did it include Xaw and Xmu as well? If the former,
- # where did one find Xaw and Xmu on 9.x R6 systems? Would this
- # be a situation where one had to reach into the R5 headers and
- # libs to find Xmu? That is, must both R6 and R5 directories
- # be on the -I and -L lists in that case?
- #
- for version in X11R6 X11R5 X11R4 ; do
- # if either pair of directories exists...
- if test -d /usr/include/$version || test -d /usr/contrib/$version/include
- then
- # if contrib exists, use it...
- if test -d /usr/contrib/$version/include ; then
- X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
- X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
- fi
- # if the "standard" one exists, use it.
- if test -d /usr/include/$version ; then
- X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
- X_LIBS="$X_LIBS -L/usr/lib/$version"
- fi
- # since at least one of the pair exists, go no farther.
- break
- fi
- done
-
- # Now find Motif. Thanks for not making xmkmf find this by
- # default, you losers.
- #
- if test -d /usr/include/Motif2.1 ; then
- X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
- X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
- elif test -d /usr/include/Motif1.2 ; then
- X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
- X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
- elif test -d /usr/include/Motif1.1 ; then
- X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
- X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
- fi
-
- # Now let's check for the pseudo-standard locations for OpenGL and XPM.
- #
- if test -d /opt/graphics/OpenGL/include ; then
- # HP-UX 10.20 puts it here
- X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
- X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
- elif test -d /opt/Mesa/lib ; then
- X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
- X_LIBS="-L/opt/Mesa/lib $X_LIBS"
- fi
-
-
- if test -d /opt/xpm/lib/X11 ; then
- X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
- X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
- fi
-
- # On HPUX, default to installing in /opt/xscreensaver/ instead of
- # in /usr/local/, unless there is already an xscreensaver in
- # /usr/local/bin/. This can be overridden with the --prefix arg
- # to configure. I'm not sure this is the right thing to do, but
- # Richard Lloyd says so...
- #
- if test \! -x /usr/local/bin/xscreensaver ; then
- ac_default_prefix=/opt/xscreensaver
- fi
-
- ;;
- *-solaris*)
-
- # Thanks for not making xmkmf find this by default, pinheads.
- # And thanks for moving things around again, too. Is this
- # really the standard location now? What happened to the
- # joke that this kind of thing went in /opt?
- # cthomp says "answer: CDE (Common Disorganized Environment)"
- #
- if test -f /usr/dt/include/Xm/Xm.h ; then
- X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
- MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
-
- # Some versions of Slowlaris Motif require -lgen. But not all. Why?
- { $as_echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
-$as_echo_n "checking for regcmp in -lgen... " >&6; }
-if test "${ac_cv_lib_gen_regcmp+set}" = set; then