Mercurial > emacs
comparison configure.in @ 48431:8aeaf7d166dd
Maybe define bcopy, bzero, bcmp.
author | Dave Love <fx@gnu.org> |
---|---|
date | Mon, 18 Nov 2002 16:24:41 +0000 |
parents | 42ee829ea43d |
children | 4ed055ecca9e |
comparison
equal
deleted
inserted
replaced
48430:5403143c2402 | 48431:8aeaf7d166dd |
---|---|
86 m | mo | mot | moti | motif ) val=motif ;; | 86 m | mo | mot | moti | motif ) val=motif ;; |
87 dnl These don't currently work. | 87 dnl These don't currently work. |
88 dnl o | op | ope | open | open- | open-l | open-lo \ | 88 dnl o | op | ope | open | open- | open-l | open-lo \ |
89 dnl | open-loo | open-look ) val=open-look ;; | 89 dnl | open-loo | open-look ) val=open-look ;; |
90 * ) | 90 * ) |
91 dnl AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value | 91 dnl AC_MSG_ERROR([the `--with-x-toolkit' option is supposed to have a value |
92 dnl which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'.]) | 92 dnl which is `yes', `no', `lucid', `athena', `motif' or `open-look'.]) |
93 AC_MSG_ERROR([\`--with-x-toolkit=$withval' is invalid\; | 93 AC_MSG_ERROR([`--with-x-toolkit=$withval' is invalid\; |
94 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | 94 this option's value should be `yes', `no', `lucid', `athena', or `motif'. |
95 Currently, \`yes', \`athena' and \`lucid' are synonyms.]) | 95 Currently, `yes', `athena' and `lucid' are synonyms.]) |
96 ;; | 96 ;; |
97 esac | 97 esac |
98 with_x_toolkit=$val | 98 with_x_toolkit=$val |
99 ]) | 99 ]) |
100 AC_ARG_WITH(xpm, | 100 AC_ARG_WITH(xpm, |
140 esac | 140 esac |
141 | 141 |
142 #### Check if the source directory already has a configured system in it. | 142 #### Check if the source directory already has a configured system in it. |
143 if test `pwd` != `(cd ${srcdir} && pwd)` \ | 143 if test `pwd` != `(cd ${srcdir} && pwd)` \ |
144 && test -f "${srcdir}/src/config.h" ; then | 144 && test -f "${srcdir}/src/config.h" ; then |
145 AC_MSG_WARN([The directory tree \`${srcdir}' is being used | 145 AC_MSG_WARN([[The directory tree `${srcdir}' is being used |
146 as a build directory right now; it has been configured in its own | 146 as a build directory right now; it has been configured in its own |
147 right. To configure in another directory as well, you MUST | 147 right. To configure in another directory as well, you MUST |
148 use GNU make. If you do not have GNU make, then you must | 148 use GNU make. If you do not have GNU make, then you must |
149 now do \`make distclean' in ${srcdir}, | 149 now do `make distclean' in ${srcdir}, |
150 and then run $0 again.]) | 150 and then run $0 again.]]) |
151 | 151 |
152 changequote(, )dnl | 152 [extrasub='/^VPATH[ ]*=/c\ |
153 extrasub='/^VPATH[ ]*=/c\ | |
154 changequote([, ])dnl | |
155 vpath %.c $(srcdir)\ | 153 vpath %.c $(srcdir)\ |
156 vpath %.h $(srcdir)\ | 154 vpath %.h $(srcdir)\ |
157 vpath %.y $(srcdir)\ | 155 vpath %.y $(srcdir)\ |
158 vpath %.l $(srcdir)\ | 156 vpath %.l $(srcdir)\ |
159 vpath %.s $(srcdir)\ | 157 vpath %.s $(srcdir)\ |
160 vpath %.in $(srcdir)\ | 158 vpath %.in $(srcdir)\ |
161 vpath %.texi $(srcdir)' | 159 vpath %.texi $(srcdir)'] |
162 fi | 160 fi |
163 | 161 |
164 #### Given the configuration name, set machfile and opsysfile to the | 162 #### Given the configuration name, set machfile and opsysfile to the |
165 #### names of the m/*.h and s/*.h files we should use. | 163 #### names of the m/*.h and s/*.h files we should use. |
166 | 164 |
168 | 166 |
169 AC_CANONICAL_HOST | 167 AC_CANONICAL_HOST |
170 canonical=$host | 168 canonical=$host |
171 configuration=${host_alias-$host} | 169 configuration=${host_alias-$host} |
172 | 170 |
173 changequote(, )dnl | 171 dnl This used to use changequote, but, apart from `changequote is evil' |
172 dnl per the autoconf manual, we can speed up autoconf somewhat by quoting | |
173 dnl the great gob of text. Thus it's not processed for possible expansion. | |
174 dnl Just make sure the brackets remain balanced. | |
175 [ | |
174 | 176 |
175 ### If you add support for a new configuration, add code to this | 177 ### If you add support for a new configuration, add code to this |
176 ### switch statement to recognize your configuration name and select | 178 ### switch statement to recognize your configuration name and select |
177 ### the appropriate operating system and machine description files. | 179 ### the appropriate operating system and machine description files. |
178 | 180 |
792 ;; | 794 ;; |
793 | 795 |
794 ## Plexus | 796 ## Plexus |
795 m68*-plexus-sysv* ) | 797 m68*-plexus-sysv* ) |
796 machine=plexus opsys=usg5-2 | 798 machine=plexus opsys=usg5-2 |
797 ;; | |
798 | |
799 ## PowerPC reference platform | |
800 powerpcle-*-solaris2.5* ) | |
801 machine=prep | |
802 opsys=sol2-5 | |
803 ;; | |
804 | |
805 ## PowerPC reference platform | |
806 powerpcle-*-solaris2* ) | |
807 machine=prep | |
808 opsys=sol2-6 | |
809 ;; | 799 ;; |
810 | 800 |
811 ## Pyramid machines | 801 ## Pyramid machines |
812 ## I don't really have any idea what sort of processor the Pyramid has, | 802 ## I don't really have any idea what sort of processor the Pyramid has, |
813 ## so I'm assuming it is its own architecture. | 803 ## so I'm assuming it is its own architecture. |
1158 unported=yes | 1148 unported=yes |
1159 ;; | 1149 ;; |
1160 esac | 1150 esac |
1161 fi | 1151 fi |
1162 | 1152 |
1163 changequote([, ])dnl | 1153 ] |
1164 | 1154 |
1165 if test $unported = yes; then | 1155 if test $unported = yes; then |
1166 AC_MSG_ERROR([Emacs hasn't been ported to \`${canonical}' systems. | 1156 AC_MSG_ERROR([Emacs hasn't been ported to `${canonical}' systems. |
1167 Check \`etc/MACHINES' for recognized configuration names.]) | 1157 Check `etc/MACHINES' for recognized configuration names.]) |
1168 fi | 1158 fi |
1169 | 1159 |
1170 machfile="m/${machine}.h" | 1160 machfile="m/${machine}.h" |
1171 opsysfile="s/${opsys}.h" | 1161 opsysfile="s/${opsys}.h" |
1172 | 1162 |
1363 ' > ${tempcname} | 1353 ' > ${tempcname} |
1364 | 1354 |
1365 # The value of CPP is a quoted variable reference, so we need to do this | 1355 # The value of CPP is a quoted variable reference, so we need to do this |
1366 # to get its actual value... | 1356 # to get its actual value... |
1367 CPP=`eval "echo $CPP"` | 1357 CPP=`eval "echo $CPP"` |
1368 changequote(, )dnl | 1358 [eval `${CPP} -Isrc ${tempcname} \ |
1369 eval `${CPP} -Isrc ${tempcname} \ | |
1370 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | 1359 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` |
1371 if test "x$SPECIFIED_CFLAGS" = x; then | 1360 if test "x$SPECIFIED_CFLAGS" = x; then |
1372 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | 1361 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ |
1373 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | 1362 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` |
1374 else | 1363 else |
1375 REAL_CFLAGS="$CFLAGS" | 1364 REAL_CFLAGS="$CFLAGS" |
1376 fi | 1365 fi] |
1377 changequote([, ])dnl | |
1378 rm ${tempcname} | 1366 rm ${tempcname} |
1379 | 1367 |
1380 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | 1368 ac_link="$ac_link $ld_switch_machine $ld_switch_system" |
1381 | 1369 |
1382 ### Make sure subsequent tests use flags consistent with the build flags. | 1370 ### Make sure subsequent tests use flags consistent with the build flags. |
1400 AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=) | 1388 AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=) |
1401 AC_SUBST(LIBSOUND) | 1389 AC_SUBST(LIBSOUND) |
1402 fi | 1390 fi |
1403 | 1391 |
1404 dnl checks for header files | 1392 dnl checks for header files |
1405 dnl NB. On Solaris 8 there's a warning from the check for term.h because | |
1406 dnl it needs something else (curses.h?) to define `bool'. | |
1407 AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | 1393 AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
1408 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 1394 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
1409 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \ | 1395 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \ |
1410 sys/param.h) | 1396 sys/param.h sys/vlimit.h sys/resource.h) |
1397 dnl On Solaris 8 there's a compilation warning for term.h because | |
1398 dnl it doesn't define `bool'. | |
1399 AC_CHECK_HEADERS(term.h, , , -) | |
1411 AC_HEADER_STDC | 1400 AC_HEADER_STDC |
1412 AC_HEADER_TIME | 1401 AC_HEADER_TIME |
1413 AC_DECL_SYS_SIGLIST | 1402 AC_DECL_SYS_SIGLIST |
1414 AC_HEADER_SYS_WAIT | 1403 AC_HEADER_SYS_WAIT |
1415 | 1404 |
1887 | 1876 |
1888 ### Is -lXaw3d available? | 1877 ### Is -lXaw3d available? |
1889 HAVE_XAW3D=no | 1878 HAVE_XAW3D=no |
1890 if test "${HAVE_X11}" = "yes"; then | 1879 if test "${HAVE_X11}" = "yes"; then |
1891 if test "${USE_X_TOOLKIT}" != "none"; then | 1880 if test "${USE_X_TOOLKIT}" != "none"; then |
1881 dnl Fixme: determine what Scrollbar.h needs to avoid compilation | |
1882 dnl errors from the test without the `-'. | |
1892 AC_CHECK_HEADER(X11/Xaw3d/Scrollbar.h, | 1883 AC_CHECK_HEADER(X11/Xaw3d/Scrollbar.h, |
1893 AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes)) | 1884 [AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes)], , -) |
1894 if test "${HAVE_XAW3D}" = "yes"; then | 1885 if test "${HAVE_XAW3D}" = "yes"; then |
1895 AC_DEFINE(HAVE_XAW3D, 1, | 1886 AC_DEFINE(HAVE_XAW3D, 1, |
1896 [Define to 1 if you have the Xaw3d library (-lXaw3d).]) | 1887 [Define to 1 if you have the Xaw3d library (-lXaw3d).]) |
1897 fi | 1888 fi |
1898 fi | 1889 fi |
1965 fi | 1956 fi |
1966 | 1957 |
1967 AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl | 1958 AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl |
1968 if test "${HAVE_JPEG}" = "yes"; then | 1959 if test "${HAVE_JPEG}" = "yes"; then |
1969 AC_DEFINE(HAVE_JPEG) | 1960 AC_DEFINE(HAVE_JPEG) |
1970 AC_EGREP_CPP( | 1961 AC_EGREP_CPP([version= *(6[2-9]|[7-9][0-9])], |
1971 changequote({, })dnl avoid leadingspace on the next line | |
1972 {version= *(6[2-9]|[7-9][0-9])}, | |
1973 changequote([, ])dnl | |
1974 [#include <jpeglib.h> | 1962 [#include <jpeglib.h> |
1975 version=JPEG_LIB_VERSION | 1963 version=JPEG_LIB_VERSION |
1976 ], | 1964 ], |
1977 AC_DEFINE(HAVE_JPEG), | 1965 AC_DEFINE(HAVE_JPEG), |
1978 [AC_MSG_WARN([libjpeg found, but not version 6b or later]) | 1966 [AC_MSG_WARN([libjpeg found, but not version 6b or later]) |
2079 AC_CHECK_PROG(liblockfile, liblockfile.so, yes, no, | 2067 AC_CHECK_PROG(liblockfile, liblockfile.so, yes, no, |
2080 /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH) | 2068 /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH) |
2081 if test $ac_cv_prog_liblockfile = yes; then | 2069 if test $ac_cv_prog_liblockfile = yes; then |
2082 AC_MSG_ERROR([Shared liblockfile found but can't link against it. | 2070 AC_MSG_ERROR([Shared liblockfile found but can't link against it. |
2083 This probably means that movemail could lose mail. | 2071 This probably means that movemail could lose mail. |
2084 There may be a \`development' package to install containing liblockfile.]) | 2072 There may be a `development' package to install containing liblockfile.]) |
2085 else AC_DEFINE(LIBMAIL, -llockfile, [Define to -llockfile if it is usable.]) | 2073 else AC_DEFINE(LIBMAIL, -llockfile, [Define to -llockfile if it is usable.]) |
2086 fi | 2074 fi |
2087 else : | 2075 else : |
2088 fi | 2076 fi |
2089 AC_CHECK_FUNCS(touchlock) | 2077 AC_CHECK_FUNCS(touchlock) |
2094 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | 2082 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ |
2095 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | 2083 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
2096 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | 2084 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
2097 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ | 2085 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
2098 sendto recvfrom getsockopt setsockopt getsockname getpeername \ | 2086 sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
2099 gai_strerror mkstemp getline getdelim mremap memmove) | 2087 gai_strerror mkstemp getline getdelim mremap memmove fsync) |
2100 | 2088 |
2101 AC_CHECK_HEADERS(sys/un.h) | 2089 AC_CHECK_HEADERS(sys/un.h) |
2102 | 2090 |
2103 AC_FUNC_MKTIME | 2091 AC_FUNC_MKTIME |
2104 if test "$ac_cv_func_working_mktime" = no; then | 2092 if test "$ac_cv_func_working_mktime" = no; then |
2279 fi | 2267 fi |
2280 if test $ok_so_far = yes; then | 2268 if test $ok_so_far = yes; then |
2281 AC_CHECK_HEADER(arpa/inet.h, , ok_so_far=no) | 2269 AC_CHECK_HEADER(arpa/inet.h, , ok_so_far=no) |
2282 fi | 2270 fi |
2283 if test $ok_so_far = yes; then | 2271 if test $ok_so_far = yes; then |
2272 dnl Fixme: Not used. Should this be HAVE_SOCKETS? | |
2284 AC_DEFINE(HAVE_INET_SOCKETS, 1, | 2273 AC_DEFINE(HAVE_INET_SOCKETS, 1, |
2285 [Define to 1 if you have inet sockets.]) | 2274 [Define to 1 if you have inet sockets.]) |
2286 fi | 2275 fi |
2287 | 2276 |
2288 if test -f /usr/lpp/X11/bin/smt.exp; then | 2277 if test -f /usr/lpp/X11/bin/smt.exp; then |
2300 | 2289 |
2301 AC_FUNC_FORK | 2290 AC_FUNC_FORK |
2302 | 2291 |
2303 AC_CHECK_TYPES(size_t) | 2292 AC_CHECK_TYPES(size_t) |
2304 | 2293 |
2294 dnl Restrict could probably be used effectively other than in regex.c. | |
2295 AC_CACHE_CHECK([for C restrict keyword], emacs_cv_c_restrict, | |
2296 [AC_TRY_COMPILE([void fred (int *restrict x);], [], | |
2297 emacs_cv_c_restrict=yes, | |
2298 [AC_TRY_COMPILE([void fred (int *__restrict x);], [], | |
2299 emacs_cv_c_restrict=__restrict, | |
2300 emacs_cv_c_restrict=no)])]) | |
2301 case "$emacs_cv_c_restrict" in | |
2302 yes) emacs_restrict=restrict;; | |
2303 no) emacs_restrict="";; | |
2304 *) emacs_restrict="$emacs_cv_c_restrict";; | |
2305 esac | |
2306 if test "$emacs_restrict" != __restrict; then | |
2307 AC_DEFINE_UNQUOTED(__restrict, $emacs_restrict, | |
2308 [Define to compiler's equivalent of C99 restrict keyword. | |
2309 Don't define if equivalent is `__restrict'.]) | |
2310 fi | |
2311 | |
2312 AC_CACHE_CHECK([for C restricted array declarations], emacs_cv_c_restrict_arr, | |
2313 [AC_TRY_COMPILE([void fred (int x[__restrict]);], [], | |
2314 emacs_cv_c_restrict_arr=yes, emacs_cv_c_restrict_arr=no)]) | |
2315 if test "$emacs_cv_c_restrict_arr" = yes; then | |
2316 AC_DEFINE(__restrict_arr, __restrict, | |
2317 [Define to compiler's equivalent of C99 restrict keyword in array | |
2318 declarations. Define as empty for no equivalent.]) | |
2319 fi | |
2320 | |
2321 dnl Fixme: AC_SYS_POSIX_TERMIOS should probably be used, but it's not clear | |
2322 dnl how the tty code is related to POSIX and/or other versions of termios. | |
2323 | |
2324 dnl Fixme: Use AC_FUNC_MEMCMP since memcmp is used. (Needs libobj replacement.) | |
2325 | |
2305 # Set up the CFLAGS for real compilation, so we can substitute it. | 2326 # Set up the CFLAGS for real compilation, so we can substitute it. |
2306 CFLAGS="$REAL_CFLAGS" | 2327 CFLAGS="$REAL_CFLAGS" |
2307 CPPFLAGS="$REAL_CPPFLAGS" | 2328 CPPFLAGS="$REAL_CPPFLAGS" |
2308 | 2329 |
2309 changequote(, )dnl | |
2310 #### Find out which version of Emacs this is. | 2330 #### Find out which version of Emacs this is. |
2311 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | 2331 [version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ |
2312 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | 2332 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`] |
2313 changequote([, ])dnl | |
2314 if test x"${version}" = x; then | 2333 if test x"${version}" = x; then |
2315 AC_MSG_ERROR(can't find current emacs version in \`${srcdir}/lisp/version.el'.) | 2334 AC_MSG_ERROR([can't find current emacs version in `${srcdir}/lisp/version.el'.]) |
2316 fi | 2335 fi |
2317 | 2336 |
2318 ### Specify what sort of things we'll be editing into Makefile and config.h. | 2337 ### Specify what sort of things we'll be editing into Makefile and config.h. |
2319 ### Use configuration here uncanonicalized to avoid exceeding size limits. | 2338 ### Use configuration here uncanonicalized to avoid exceeding size limits. |
2320 AC_SUBST(version) | 2339 AC_SUBST(version) |
2429 along with GNU Emacs; see the file COPYING. If not, write to the | 2448 along with GNU Emacs; see the file COPYING. If not, write to the |
2430 Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 2449 Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
2431 Boston, MA 02111-1307, USA. */ | 2450 Boston, MA 02111-1307, USA. */ |
2432 | 2451 |
2433 | 2452 |
2434 /* No code in Emacs #includes config.h twice, but some of the code | 2453 /* No code in Emacs #includes config.h twice, but some bits of code |
2435 intended to work with other packages as well (like gmalloc.c) | 2454 intended to work with other packages as well (like gmalloc.c) |
2436 think they can include it as many times as they like. */ | 2455 think they can include it as many times as they like. */ |
2437 #ifndef EMACS_CONFIG_H | 2456 #ifndef EMACS_CONFIG_H |
2438 #define EMACS_CONFIG_H | 2457 #define EMACS_CONFIG_H |
2439 ])dnl | 2458 ])dnl |
2561 This declaration shouldn't appear when alloca.s or Makefile.in | 2580 This declaration shouldn't appear when alloca.s or Makefile.in |
2562 includes config.h. */ | 2581 includes config.h. */ |
2563 #ifndef NOT_C_CODE | 2582 #ifndef NOT_C_CODE |
2564 extern char *getenv (); | 2583 extern char *getenv (); |
2565 #endif | 2584 #endif |
2566 | |
2567 #endif /* EMACS_CONFIG_H */ | |
2568 | 2585 |
2569 /* These default definitions are good for almost all machines. | 2586 /* These default definitions are good for almost all machines. |
2570 The exceptions override them in m/MACHINE.h. */ | 2587 The exceptions override them in m/MACHINE.h. */ |
2571 | 2588 |
2572 #ifndef BITS_PER_CHAR | 2589 #ifndef BITS_PER_CHAR |
2603 # else | 2620 # else |
2604 # define __P(args) () | 2621 # define __P(args) () |
2605 # endif /* GCC. */ | 2622 # endif /* GCC. */ |
2606 #endif /* __P */ | 2623 #endif /* __P */ |
2607 | 2624 |
2608 | |
2609 /* Don't include "string.h" or <stdlib.h> in non-C code. */ | 2625 /* Don't include "string.h" or <stdlib.h> in non-C code. */ |
2610 #ifndef NOT_C_CODE | 2626 #ifndef NOT_C_CODE |
2611 #ifdef HAVE_STRING_H | 2627 #ifdef HAVE_STRING_H |
2612 #include "string.h" | 2628 #include "string.h" |
2613 #endif | 2629 #endif |
2615 #include "strings.h" /* May be needed for bcopy & al. */ | 2631 #include "strings.h" /* May be needed for bcopy & al. */ |
2616 #endif | 2632 #endif |
2617 #ifdef HAVE_STDLIB_H | 2633 #ifdef HAVE_STDLIB_H |
2618 #include <stdlib.h> | 2634 #include <stdlib.h> |
2619 #endif | 2635 #endif |
2636 #ifndef __GNUC__ | |
2637 # ifdef HAVE_ALLOCA_H | |
2638 # include <alloca.h> | |
2639 # else /* AIX files deal with #pragma. */ | |
2640 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
2641 char *alloca (); | |
2642 # endif | |
2643 # endif /* HAVE_ALLOCA_H */ | |
2644 #endif /* __GNUC__ */ | |
2620 #ifndef HAVE_SIZE_T | 2645 #ifndef HAVE_SIZE_T |
2621 typedef size_t unsigned | 2646 typedef size_t unsigned |
2622 #endif | 2647 #endif |
2623 #endif | 2648 #endif /* NOT_C_CODE */ |
2624 | 2649 |
2625 /* Define HAVE_X_I18N if we have usable i18n support. */ | 2650 /* Define HAVE_X_I18N if we have usable i18n support. */ |
2626 | 2651 |
2627 #ifdef HAVE_X11R6 | 2652 #ifdef HAVE_X11R6 |
2628 #define HAVE_X_I18N | 2653 #define HAVE_X_I18N |
2644 #define NO_RETURN __attribute__ ((__noreturn__)) | 2669 #define NO_RETURN __attribute__ ((__noreturn__)) |
2645 #else | 2670 #else |
2646 #define NO_RETURN /* nothing */ | 2671 #define NO_RETURN /* nothing */ |
2647 #endif | 2672 #endif |
2648 | 2673 |
2674 /* These won't be used automatically yet. We also need to know, at least, | |
2675 that the stack is continuous. */ | |
2676 #ifdef __GNUC__ | |
2677 # ifndef GC_SETJMP_WORKS | |
2678 /* GC_SETJMP_WORKS is nearly always appropriate for GCC -- | |
2679 see NON_SAVING_SETJMP in the target descriptions. */ | |
2680 /* Exceptions (see NON_SAVING_SETJMP in target description) are ns32k, | |
2681 SCO5 non-ELF (but Emacs specifies ELF) and SVR3 on x86. | |
2682 Fixme: Deal with ns32k, SVR3. */ | |
2683 # define GC_SETJMP_WORKS 1 | |
2684 # endif | |
2685 # ifndef GC_LISP_OBJECT_ALIGNMENT | |
2686 # define GC_LISP_OBJECT_ALIGNMENT (__alignof__ (Lisp_Object)) | |
2687 # endif | |
2688 #endif | |
2689 | |
2690 #ifndef HAVE_BCOPY | |
2691 #define bcopy(a,b,s) memcpy (b,a,s) | |
2692 #endif | |
2693 #ifndef HAVE_BZERO | |
2694 #define bzero(a,s) memset (a,0,s) | |
2695 #endif | |
2696 #ifndef HAVE_BCMP | |
2697 #define BCMP memcmp | |
2698 #endif | |
2699 | |
2700 #endif /* EMACS_CONFIG_H */ | |
2701 | |
2649 /* | 2702 /* |
2650 Local variables: | 2703 Local Variables: |
2651 mode: c | 2704 mode: c |
2652 End: | 2705 End: |
2653 */ | 2706 */ |
2654 ])dnl | 2707 ])dnl |
2655 | 2708 |
2686 echo " Does Emacs use -lpng? ${HAVE_PNG}" | 2739 echo " Does Emacs use -lpng? ${HAVE_PNG}" |
2687 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | 2740 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" |
2688 echo | 2741 echo |
2689 | 2742 |
2690 # Remove any trailing slashes in these variables. | 2743 # Remove any trailing slashes in these variables. |
2691 changequote(, )dnl | 2744 [test "${prefix}" != NONE && |
2692 test "${prefix}" != NONE && | |
2693 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | 2745 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` |
2694 test "${exec_prefix}" != NONE && | 2746 test "${exec_prefix}" != NONE && |
2695 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | 2747 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`] |
2696 changequote([, ])dnl | |
2697 | 2748 |
2698 ## Check if the C preprocessor will convert `..' to `. .'. If so, set | 2749 ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
2699 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | 2750 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile |
2700 ## from Makefile.c can correctly provide the arg `-traditional' to the | 2751 ## from Makefile.c can correctly provide the arg `-traditional' to the |
2701 ## C preprocessor. | 2752 ## C preprocessor. |
2716 | 2767 |
2717 # Build src/Makefile from ${srcdir}/src/Makefile.c | 2768 # Build src/Makefile from ${srcdir}/src/Makefile.c |
2718 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | 2769 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c |
2719 # This must be done after src/config.h is built, since we rely on that file. | 2770 # This must be done after src/config.h is built, since we rely on that file. |
2720 | 2771 |
2721 changequote(, )dnl The horror, the horror. | |
2722 # Now get this: Some word that is part of the ${srcdir} directory name | 2772 # Now get this: Some word that is part of the ${srcdir} directory name |
2723 # or the ${configuration} value might, just might, happen to be an | 2773 # or the ${configuration} value might, just might, happen to be an |
2724 # identifier like `sun4' or `i386' or something, and be predefined by | 2774 # identifier like `sun4' or `i386' or something, and be predefined by |
2725 # the C preprocessor to some helpful value like 1, or maybe the empty | 2775 # the C preprocessor to some helpful value like 1, or maybe the empty |
2726 # string. Needless to say consequent macro substitutions are less | 2776 # string. Needless to say consequent macro substitutions are less |
2727 # than conducive to the makefile finding the correct directory. | 2777 # than conducive to the makefile finding the correct directory. |
2728 undefs="`echo $top_srcdir $configuration $canonical | | 2778 [undefs="`echo $top_srcdir $configuration $canonical | |
2729 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | 2779 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ |
2730 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | 2780 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ |
2731 `" | 2781 `"] |
2732 changequote([, ])dnl | |
2733 | 2782 |
2734 echo creating src/epaths.h | 2783 echo creating src/epaths.h |
2735 ${MAKE-make} epaths-force | 2784 ${MAKE-make} epaths-force |
2736 | 2785 |
2737 # As of 2000-11-19, newest development versions of GNU cpp preprocess | 2786 # As of 2000-11-19, newest development versions of GNU cpp preprocess |