home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / src / mingw-runtime-19991107 / mingw / configure.in < prev    next >
Encoding:
Text File  |  1999-11-04  |  1.9 KB  |  86 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2.  
  3. dnl This file is part of winsup/mingw
  4. dnl
  5. dnl This program is free software; you can redistribute it and/or modify
  6. dnl it under the terms of the GNU General Public License as published by
  7. dnl the Free Software Foundation; either version 2 of the License, or
  8. dnl (at your option) any later version.
  9. dnl
  10. dnl This program is distributed in the hope that it will be useful,
  11. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. dnl GNU General Public License for more details.
  14. dnl
  15. dnl You should have received a copy of the GNU General Public License
  16. dnl along with this program; if not, write to the Free Software
  17. dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18.  
  19. AC_PREREQ(2.12)
  20. AC_INIT(dllmain.c)
  21.  
  22. CC=${CC-cc}
  23. AC_SUBST(CC)
  24. AS=${AS-as}
  25. AC_SUBST(AS)
  26. AR=${AR-ar}
  27. AC_SUBST(AR)
  28. LD=${LD-ld}
  29. AC_SUBST(LD)
  30. RANLIB=${RANLIB-ranlib}
  31. AC_SUBST(RANLIB)
  32. DLLTOOL=${DLLTOOL-dlltool}
  33. AC_SUBST(DLLTOOL)
  34. DLLWRAP=${DLLWRAP-dllwrap}
  35. AC_SUBST(DLLWRAP)
  36. AC_CANONICAL_SYSTEM
  37.  
  38. configdirs=""
  39.  
  40. case "$target_os" in
  41. *mingw32msvc*)
  42.   CRT_ID=2
  43.   MNO_CYGWIN=
  44.   RUNTIME=msvcrt
  45.   THREAD_DLL=mingwm
  46.   LIBM_A=libm.a
  47.   LIBGMON_A=libgmon.a
  48.   configdirs="$configdirs profile"
  49.   ;;
  50. *cygwin*)
  51.   CRT_ID=1
  52.   MNO_CYGWIN=-mno-cygwin
  53.   RUNTIME=crtdll
  54.   THREAD_DLL=mingwc
  55.   # Do not build libm.a when building under Cygwin winsup. Otherwise, it'll
  56.   # overwrite Cygwin's one. Likewise for libgmon.a.
  57.   LIBM_A=
  58.   LIBGMON_A=
  59.   ;;
  60. *)
  61.   # Build it for CRTDLL by default.
  62.   CRT_ID=1
  63.   MNO_CYGWIN=
  64.   RUNTIME=crtdll
  65.   THREAD_DLL=mingwc
  66.   LIBM_A=libm.a
  67.   LIBGMON_A=libgmon.a
  68.   configdirs="$configdirs profile"
  69.   ;;
  70. esac
  71.  
  72. if test -n "$configdirs"; then
  73.   AC_CONFIG_SUBDIRS($configdirs)
  74. fi
  75.  
  76. AC_SUBST(CRT_ID)
  77. AC_SUBST(RUNTIME)
  78. AC_SUBST(MNO_CYGWIN)
  79. AC_SUBST(THREAD_DLL)
  80. AC_SUBST(LIBM_A)
  81. AC_SUBST(LIBGMON_A)
  82.  
  83. AC_PROG_INSTALL
  84. AC_OUTPUT(Makefile)
  85.  
  86.