OSDN Git Service

* public snapshot of sid simulator
[pf3gnuchains/pf3gnuchains3x.git] / sid / include / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(Makefile.in)
3 AC_CONFIG_AUX_DIR(../config)
4 AM_INIT_AUTOMAKE(sid,0.1)
5 AM_CONFIG_HEADER(sidconfutil.h:sidconfutil.in)
6
7 AM_MAINTAINER_MODE
8
9 AC_EXEEXT
10 AC_PROG_CXXCPP
11 AC_PROG_MAKE_SET
12 AC_ARG_PROGRAM
13 AC_LANG_CPLUSPLUS
14
15 AC_HEADER_STDC
16
17 dnl SID compile time requirements
18 AC_CHECK_HEADERS(sstream strstream.h ext/hash_map hash_map)
19 AC_CHECK_FUNCS(strerror)
20
21 dnl debugging functions
22 AC_ARG_ENABLE(assert,
23 [  --disable-assert        disable run-time assertion checking [default=enabled]],
24 [
25   case "${enable_assert}" in
26     yes)  ;;
27     no)   ;;
28     *)    AC_MSG_ERROR([bad value ${enableval} given for assert option]) ;;
29   esac
30 ])
31 if test "${enable_assert}" = "no"; then
32    AC_DEFINE(NDEBUG, 1, [Define to disable run-time assert() checking.])
33 fi
34
35 AC_MSG_CHECKING([whether std:: prefix works for <cctype> functions])
36 AC_CACHE_VAL(sid_cv_cctype_std,
37         AC_TRY_COMPILE([#include <cctype>],[
38   if (std::isspace(' '))
39     return 0; 
40   else
41     return 1;
42 ],[sid_cv_cctype_std="yes"],[sid_cv_cctype_std="no"]))
43 if test "${sid_cv_cctype_std}" = "yes"; then
44         AC_DEFINE(STD_CCTYPE, 1, [Define if std:: prefix works for <cctype> functions])
45 fi
46 AC_MSG_RESULT([$sid_cv_cctype_std])
47                 
48
49
50
51 dnl Outputs
52 AC_OUTPUT(Makefile)