home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / cdrom / mkisofs.105 / source / configure < prev    next >
Text File  |  1977-12-31  |  714b  |  43 lines

  1. #!/bin/sh
  2. #
  3. # This script attempts to automatically configure for the host system.
  4. #
  5. MKDEV=
  6. MACROS=
  7. MALLOC=
  8.  
  9. if [ -f /usr/include/sys/mkdev.h ]
  10. then
  11. MKDEV=-DHASMKDEV
  12. fi
  13.  
  14. if [ -f /usr/include/sys/sysmacros.h ]
  15. then
  16. MACROS=-DHASSYSMACROS
  17. fi
  18.  
  19. if [ -f /usr/include/malloc.h ]
  20. then
  21. MALLOC=-DHASMALLOC_H
  22. fi
  23.  
  24. #
  25. # OK, we have all of the configuration stuff done.  Now generate the Makefile.
  26. #
  27.  
  28. echo XCFLAGS=${MKDEV} ${MACROS} ${MALLOC} > Makefrag
  29.  
  30. sed -e "/XCFLAGS=/  r Makefrag" Makefile.in > Makefile
  31. rm -f Makefrag
  32.  
  33. #
  34. # Now generate config.h
  35. #
  36. rm -rf config.h
  37. touch config.h
  38. if [ -f /usr/include/termios.h ]
  39. then
  40. echo "#define USE_TERMIOS" >> config.h
  41. fi
  42.  
  43. echo "The Makefile is now properly configured for your system."