(Faref): Handle compiled function as pseudovector.
[bpt/emacs.git] / configure.in
index 385953f..31267bd 100644 (file)
@@ -21,9 +21,21 @@ archlibdir='${libexecdir}/emacs/${version}/${configuration}'
 docdir='${datadir}/emacs/${version}/etc'
 
 AC_ARG_WITH(gcc,
-[  --with-gcc              Use GCC to compile Emacs])
+[  --with-gcc              use GCC to compile Emacs])
+AC_ARG_WITH(pop,
+[  --with-pop              support POP for mail retrieval],
+[AC_DEFINE(MAIL_USE_POP)])
+AC_ARG_WITH(kerberos,
+[  --with-kerberos         support Kerberos-authenticated POP],
+[AC_DEFINE(KERBEROS)])
+AC_ARG_WITH(hesiod,
+[  --with-hesiod           support Hesiod to get the POP server host],
+[AC_DEFINE(HESIOD)])
+dnl This should be the last --with option, because --with-x is
+dnl added later on when we find the path of X, and it's best to
+dnl keep them together visually.
 AC_ARG_WITH(x-toolkit,
-[  --with-x-toolkit=KIT    Use an X toolkit (KIT = yes/lucid/athena/motif)],
+[  --with-x-toolkit=KIT    use an X toolkit (KIT = yes/lucid/athena/motif)],
 [        case "${withval}" in
            y | ye | yes )      val=athena ;;
            n | no )            val=no  ;;
@@ -73,7 +85,9 @@ if test `pwd` != `(cd ${srcdir} && pwd)` \
    now do \`make distclean' in ${srcdir},
    and then run $0 again.])
 
+changequote(, )dnl
   extrasub='/^VPATH[    ]*=/c\
+changequote([, ])dnl
 vpath %.c $(srcdir)\
 vpath %.h $(srcdir)\
 vpath %.y $(srcdir)\
@@ -170,7 +184,7 @@ case "${canonical}" in
 
   ## Appallings - I mean, Apollos - running Domain
   m68*-apollo* )
-    machine=apollo opsys=bsd4-2
+    machine=apollo opsys=domain NON_GNU_CPP=/usr/lib/cpp
   ;;
 
   ## AT&T 3b2, 3b5, 3b15, 3b20
@@ -392,6 +406,12 @@ case "${canonical}" in
   rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
     machine=ibmrs6000 opsys=aix3-2-5
   ;;
+  rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1*  )
+    machine=ibmrs6000 opsys=aix4-1
+  ;;
+  rs6000-ibm-aix4* | powerpc-ibm-aix4*  )
+    machine=ibmrs6000 opsys=aix4
+  ;;
   rs6000-ibm-aix* | powerpc-ibm-aix* )
     machine=ibmrs6000 opsys=aix3-2
   ;;
@@ -453,6 +473,11 @@ case "${canonical}" in
     machine=intel386 opsys=usg5-4-2
   ;;
 
+  ## Intel Paragon OSF/1
+  i860-intel-osf1* )
+    machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
+  ;;
+
   ## Intel 860
   i860-*-sysv4* )
     machine=i860 opsys=usg5-4
@@ -564,11 +589,14 @@ case "${canonical}" in
   mips-sgi-irix3* )
     machine=iris4d opsys=irix3-3
   ;;
-  mips-sgi-irix5* )
+  mips-sgi-irix4* )
+    machine=iris4d opsys=irix4-0
+  ;;
+  mips-sgi-irix5.[01]* )
     machine=iris4d opsys=irix5-0
   ;;
-  mips-sgi-irix4* | mips-sgi-irix* )
-    machine=iris4d opsys=irix4-0
+  mips-sgi-irix5* | mips-sgi-irix* )
+    machine=iris4d opsys=irix5-2
   ;;
 
   ## SONY machines
@@ -578,13 +606,13 @@ case "${canonical}" in
   m68*-sony-bsd4.3* )
     machine=news opsys=bsd4-3
   ;;
-  m68*-sony-newsos3*)
+  m68*-sony-newsos3* | m68*-sony-news3*)
     machine=news opsys=bsd4-3
   ;;
-  mips-sony-bsd* | mips-sony-newsos4* )
+  mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
     machine=news-risc opsys=bsd4-3
   ;;
-  mips-sony-newsos* )
+  mips-sony-news* )
     machine=news-risc opsys=newsos5
   ;;
 
@@ -750,7 +778,11 @@ if test x"${opsys}" = x; then
     *-sysv4.1 | *-sysvr4.1 )
        NON_GNU_CPP=/usr/lib/cpp
        opsys=usg5-4 ;;
-    *-sysv4.2 | *-sysvr4.2 )           opsys=usg5-4-2 ;;
+    *-sysv4.2 | *-sysvr4.2 )
+       if [ x$NON_GNU_CPP = x ]; then
+         NON_GNU_CPP=/usr/ccs/lib/cpp
+       fi
+       opsys=usg5-4-2 ;;
     * )
       unported=yes
     ;;
@@ -887,14 +919,18 @@ else
   window_system=x11
 fi
 
-test "${x_libraries}" != NONE && LD_SWITCH_X_SITE="-L${x_libraries}"
-test "${x_libraries}" != NONE && LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
-test "${x_includes}" != NONE && C_SWITCH_X_SITE="-I${x_includes}"
+if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
+  LD_SWITCH_X_SITE="-L${x_libraries}"
+  LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
+fi
+if test "${x_includes}" != NONE && test -n "${x_includes}"; then
+  C_SWITCH_X_SITE="-I${x_includes}"
+fi
 
-if [ x"${x_includes}" = x ]; then
-  bitmapdir=/usr/include/X11/bitmaps;
+if test x"${x_includes}" = x; then
+  bitmapdir=/usr/include/X11/bitmaps
 else
-  bitmapdir="${x_includes}/bitmaps";
+  bitmapdir="${x_includes}/bitmaps"
 fi
 
 case "${window_system}" in
@@ -1099,14 +1135,10 @@ fi
 # If netdb.h doesn't declare h_errno, we must declare it by hand.
 AC_MSG_CHECKING(whether netdb declarares h_errno)
 AC_TRY_LINK([#include <netdb.h>],
-[int
-foo ()
-{
-  return h_errno;
-}
-], [AC_MSG_RESULT(yes)
-    AC_DEFINE(HAVE_H_ERRNO)],
-   [AC_MSG_RESULT(no)])
+  [return h_errno;],
+  [AC_MSG_RESULT(yes)
+   AC_DEFINE(HAVE_H_ERRNO)],
+  [AC_MSG_RESULT(no)])
 
 AC_FUNC_ALLOCA
 
@@ -1237,19 +1269,17 @@ test "${exec_prefix}" != NONE &&
 changequote([, ])dnl
 
 AC_OUTPUT(Makefile lib-src/Makefile.in oldXMenu/Makefile \
-       lwlib/Makefile src/Makefile.in, [
+       man/Makefile lwlib/Makefile src/Makefile.in, [
 
 ### Make the necessary directories, if they don't exist.
-for dir in ./src ./lib-src ./cpp ./oldXMenu ./lwlib ./etc ; do
-  if test ! -d ${dir}; then
-    mkdir ${dir}
-  fi
+for dir in cpp etc ; do
+  test -d ${dir} || mkdir ${dir}
 done
 
 # Build src/Makefile from ${srcdir}/src/Makefile.in.  This must be done
 # after src/config.h is built, since we rely on that file.
 
-changequote(,)dnl The horror, the horror.
+changequote(, )dnl The horror, the horror.
 # Now get this: Some word that is part of the ${srcdir} directory name
 # or the ${configuration} value might, just might, happen to be an
 # identifier like `sun4' or `i386' or something, and be predefined by
@@ -1260,7 +1290,7 @@ undefs="`echo $top_srcdir $configuration $canonical |
 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/  *$//' \
     -e 's/  */ -U/g' -e 's/-U[0-9][^ ]*//g' \
 `"
-changequote([,])dnl
+changequote([, ])dnl
 
 echo creating lib-src/Makefile
 ( cd lib-src