home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / octave-1.1.1p1-base.tgz / octave-1.1.1p1-base.tar / fsf / octave / kpathsea / common.ac < prev    next >
Text File  |  1995-01-16  |  1KB  |  51 lines

  1. dnl Common Autoconf sinclude file for kpathsea-using programs.  (Have to
  2. dnl use the m4 `sinclude' builtin instead of `include', since Autoconf
  3. dnl disables `include'.)
  4.  
  5. dnl Write output here, instead of putting a zillion -D's on the command line.
  6. AC_CONFIG_HEADER(c-auto.h)
  7.  
  8. AC_PROG_CC
  9. AC_PROG_CPP
  10. AC_PROG_INSTALL
  11. AC_PROG_RANLIB
  12.  
  13. AC_ISC_POSIX
  14.  
  15. AC_HEADER_DIRENT
  16.  
  17. AC_STDC_HEADERS
  18. AC_HAVE_HEADERS(assert.h float.h limits.h memory.h pwd.h stdlib.h \
  19.                 string.h unistd.h)
  20.  
  21. AC_HAVE_FUNCS(memmove putenv)
  22.  
  23. # It would be nicer to test for the requisite putenv features directly,
  24. # but can't figure out how to do that.
  25. if test "`(uname) 2>/dev/null`" = NetBSD \
  26.    || test "`(uname) 2>/dev/null`" = FreeBSD; then
  27.   AC_DEFINE(SMART_PUTENV)
  28. fi
  29.  
  30. AC_CONST
  31.  
  32. # Any assignment to VPATH causes various Sun make's (both SunOS and
  33. # Solaris) to only execute the first set of double-colon rules, as in
  34. # the following 5-line Makefile. Since we use :: rules for distclean and
  35. # other important targets, we just remove the VPATH lines if they
  36. # defined it to be simply `.'.
  37. # VPATH = foo
  38. # target::
  39. #    echo first
  40. # target::
  41. #    echo second
  42.  
  43. # The line we're matching here is
  44. # VPATH = <whatever>
  45. # with arbitrary spaces and tabs around each of the elements.
  46. if test x$srcdir = x.; then
  47.   changequote(,)
  48.   extrasub='/^[     ]*VPATH[     ]*=[     ]*/d'
  49.   changequote([,])
  50. fi
  51.