>>>> "Vin" == Vin Shelton <acs(a)xemacs.org>
writes:
Vin> Frank Jensen <Frank.Jensen(a)hugin.com> writes:
> I notice that "configure" in the XEmacs 21.4.13
distribution no longer
> searches in /usr/dt/include for header files. (XEmacs 21.4.12 did
> search that directory.) The result is that Dt/Dt.h is not found.
>
> Was that an intentional change?
>
> I'm using Solaris 8.
Vin> I do not think this was intentional. It looks to me like the patch:
It was not intentional. If we wanted to preserve the past behavior,
we would add /usr/dt to the search paths on Solaris. Maybe this is a
bad idea, now that even Sun has stategically abandoned CDE. The
current behavior might be the best unless the user requests --with-cde
or some such.
Martin
Vin>
http://list-archive.xemacs.org/xemacs-patches/200302/msg00137.html
Vin> caused this problem. I've included the contents of that patch (cut
Vin> and pasted from the web, so it may not feed cleanly to 'patch -R')
Vin> here:
Vin> diff -u -r1.151.2.11 configure.in
Vin> --- configure.in 2003/01/07 03:57:03 1.151.2.11
Vin> +++ configure.in 2003/02/14 03:45:20
Vin> @@ -2735,23 +2735,30 @@
Vin> XE_APPEND(lwlib, MAKE_SUBDIR)
Vin> XE_APPEND(lwlib, SRC_SUBDIR_DEPS)
Vin> - dnl Try to find Motif/CDE/Tooltalk dirs
Vin> - dnl These take precedence over other X libs/includes, so PRE-pend
Vin> - for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1"
"/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do
Vin> - inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
Vin> - if test -d "$lib_dir" -a -d "$inc_dir"; then
Vin> - case "$x_libraries" in *"$lib_dir"* ) ;; *)
Vin> - x_libraries="$lib_dir $x_libraries"
Vin> - XE_PREPEND(-L${lib_dir}, X_LIBS) ;;
Vin> - esac
Vin> - case "$x_includes" in "$inc_dir"* ) ;; *)
Vin> - x_includes="$inc_dir $x_includes"
Vin> - XE_PREPEND(-I${inc_dir}, X_CFLAGS) ;;
Vin> - esac
Vin> - break; dnl only need ONE Motif implementation!
Vin> - fi
Vin> - done
Vin> + dnl Look for Motif, but only if not found in $x_includes and $x_libraries
Vin> + AC_CHECK_HEADER(Xm/Xm.h, [AC_CHECK_LIB(Xm, XmStringFree, got_motif=yes)])
Vin> +
Vin> + if test "$got_motif" != "yes"; then
Vin> + dnl Try to find Motif/CDE/Tooltalk dirs
Vin> + dnl These take precedence over other X libs/includes, so PRE-pend
Vin> + for lib_dir in "/usr/dt/lib" "/usr/lib/Motif2.1" \
Vin> + "/usr/lib/Motif1.2" "/usr/lib/Motif1.1";
do
Vin> + inc_dir=`echo $lib_dir | sed -e 's/lib/include/'`
Vin> + if test -d "$lib_dir" -a -d "$inc_dir"; then
Vin> + case "$x_libraries" in *"$lib_dir"* ) ;; *)
Vin> + x_libraries="$lib_dir $x_libraries"
Vin> + XE_PREPEND(-L${lib_dir}, X_LIBS) ;;
Vin> + esac
Vin> + case "$x_includes" in "$inc_dir"* ) ;; *)
Vin> + x_includes="$inc_dir $x_includes"
Vin> + XE_PREPEND(-I${inc_dir}, X_CFLAGS) ;;
Vin> + esac
Vin> + break; dnl only need ONE Motif implementation!
Vin> + fi
Vin> + done
Vin> + fi
Vin> +
Vin> On my Solaris 5.8 box here are work, the AC_CHECK_HEADER macro
Vin> returned true:
Vin> checking for Xm/Xm.h... yes
Vin> checking for XmStringFree in -lXm... yes
Vin> so /usr/dt/{include,lib} were not searched.
Vin> Martin, my guess is that this was unintentional, right?
Vin> - Vin