home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / fontutils-0.6-base.tgz / fontutils-0.6-base.tar / fsf / fontutils / aclocal.m4 next >
M4 Source File  |  1992-09-10  |  2KB  |  67 lines

  1. dnl Additional Autoconf definitions.
  2. dnl
  3. define(AC_PROG_GCC_G,
  4. [AC_REQUIRE([AC_PROG_CC])dnl
  5. if test -n "$GCC"
  6. then CC="`echo $CC | sed s/-O/-g/`"
  7. fi
  8. ])dnl
  9. dnl
  10. dnl Need to link with more libraries to use X under ISC.
  11. define(AC_ISC_WLIBS,
  12. [echo checking for ISC X window libraries
  13. if test -n "$ISC"
  14. then wlibs="$wlibs -lnsl_s -linet"
  15. fi
  16. AC_SUBST(wlibs)dnl
  17. ])dnl
  18. dnl
  19. dnl Look for the X11 include files in various places, in case they're
  20. dnl not in the compiler's path.  Substitute for `xincludedir' and `xlibdir'.
  21. define(AC_X11_LOCATION,
  22. [echo checking for X11 headers and libraries
  23. dir=""
  24. AC_TEST_CPP([#include <X11/Xaw/Box.h>], :,
  25.   if test -r /usr/local/[[include]]/X11/Xaw/Box.h
  26.   then dir=/usr/local/[[include]]
  27.   elif test -r /usr/lpp/X11/Xamples/[[include]]/Box.h
  28.   then dir=/usr/lpp/X11/Xamples/[[include]]
  29.   elif test -r /usr/[[include]]/X11R4/Xaw/Box.h
  30.   then dir=/usr/[[include]]/X11R4
  31.   elif test -r /usr/[[include]]/X11R5/Xaw/Box.h
  32.   then dir=/usr/[[include]]/X11R5
  33.   elif test -r /usr/X11/[[include]]/Box.h
  34.   then dir=/usr/X11/[[include]]
  35.   elif test -r /usr/X11R5/[[include]]/Box.h
  36.   then dir=/usr/X11R5/[[include]]
  37.   fi
  38. )
  39. dnl Can't use AC_SUBST inside AC_TEST_CPP.
  40. if test -n "$dir"
  41. then xincludedir=-I$dir
  42.      AC_SUBST(xincludedir)
  43. fi
  44. # Now check for the libraries.  Amazing how every single X vendor puts
  45. # these in a different place, and all because MIT thought they should go
  46. # in /usr/lib.
  47. dir1=""
  48. if test -r /usr/local/lib/libXaw.a
  49. then dir1=/usr/local/lib
  50. elif test -r /usr/lpp/X11/Xamples/lib/Xaw/libXaw.a
  51. then dir1=/usr/lpp/X11/Xamples/lib/Xaw
  52. elif test -r /usr/lib/X11R4/libX11.sl
  53. then dir1=/usr/lib/X11R4
  54. elif test -r /usr/X11/lib/libXaw.a
  55. then dir1=/usr/X11/lib
  56. elif test -r /usr/X11R5/lib/libXaw.a
  57. then dir1=/usr/X11R5/lib
  58. fi
  59. dir2=""
  60. if test -r /usr/lpp/X11/Xamples/lib/Xmu/libXmu.a
  61. then dir2=/usr/lpp/X11/Xamples/lib/Xmu
  62. fi
  63. test -n "$dir1" && xlibdir=-L$dir1
  64. test -n "$dir2" && xlibdir="$xlibdir -L$dir2"
  65. AC_SUBST(xlibdir)dnl
  66. ])dnl
  67.