# HG changeset patch # User Jim Blandy # Date 740243382 0 # Node ID 72997ec201f2e766414bcb763976879ba850aa5d # Parent 3b640cb97e746c02dadc0548e76df011a97087d4 * configure.in (version): Check the X libraries for XrmSetDatabase and random, and see if we have -lXbsd. diff -r 3b640cb97e74 -r 72997ec201f2 configure1.in --- a/configure1.in Wed Jun 16 14:13:15 1993 +0000 +++ b/configure1.in Wed Jun 16 15:09:42 1993 +0000 @@ -365,21 +365,11 @@ fi ### Make the necessary directories, if they don't exist. -if [ ! -d ./src ]; then - mkdir ./src -fi -if [ ! -d ./lib-src ]; then - mkdir ./lib-src -fi -if [ ! -d ./cpp ]; then - mkdir ./cpp -fi -if [ ! -d ./oldXMenu ]; then - mkdir ./oldXMenu -fi -if [ ! -d ./etc ]; then - mkdir ./etc -fi +for dir in ./src ./lib-src ./cpp ./oldXMenu ./etc ; do + if [ ! -d ${dir} ]; then + mkdir ${dir} + fi +done #### Given the configuration name, set machfile and opsysfile to the #### names of the m/*.h and s/*.h files we should use. @@ -1134,6 +1124,23 @@ LISP_FLOAT_TYPE=yes +#### Add the X libraries to the list, and check for some functions found there. +CFLAGS_save="$CFLAGS" +CFLAGS="${CFLAGS} ${LD_SWITCH_X_SITE}" +] +AC_HAVE_LIBRARY(-lXbsd) +[ +LIBS_save="$LIBS" +if [ "${HAVE_X11}" = "yes" ] ; then + LIBS="-lX11 ${LIBS}" +fi +] +AC_HAVE_FUNCS(XrmSetDatabase random) +[ +CFLAGS="$CFLAGS_save" +LIBS="$LIBS_save" + + #### Find out which version of Emacs this is. version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'`