home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / libg++-2.7.1-base.tgz / libg++-2.7.1-src.tar / fsf / libg++ / librx / configure.in < prev    next >
Text File  |  1995-10-04  |  890b  |  39 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(rx.c)
  3.  
  4. AC_PROG_CC
  5. AC_PROG_CPP
  6. AC_PROG_RANLIB
  7. AC_PROG_INSTALL
  8.  
  9. dnl Check for gcc explicitly in case the linker does not work when
  10. dnl using a cross compiler.
  11. if test "${GCC}" = "yes"; then
  12.   AC_DEFINE(HAVE_ALLOCA)
  13. else
  14.   AC_FUNC_ALLOCA
  15. fi
  16. AC_STDC_HEADERS
  17. AC_HAVE_HEADERS(string.h)
  18.  
  19. AC_CANONICAL_SYSTEM
  20. echo $ac_n "checking for target makefile fragment... $ac_c" 1>&6
  21. target_frag=
  22. if test "${enable_shared}" = "yes" ; then
  23.   case "${target}" in
  24.     hppa*-*-*)        target_frag=../config/mh-papic ;;
  25.     i[345]86-*-*)    target_frag=../config/mh-x86pic ;;
  26.     *-*-*)         target_frag=../config/mh-${target_cpu}pic ;;
  27.   esac
  28.   target_frag=${srcdir}/${target_frag}
  29. fi
  30. if test ! -f "${target_frag}"; then
  31.   target_frag=/dev/null
  32.   echo "none" 1>&6
  33. else
  34.   echo ${target_frag} 1>&6
  35. fi
  36. AC_SUBST_FILE(target_frag)
  37.  
  38. AC_OUTPUT(Makefile)
  39.