Changes in configure.ac [375a068:65c61ec]
- File:
-
- 1 edited
-
configure.ac (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r375a068 r65c61ec 53 53 AC_SUBST(CFA_BACKEND_CC) 54 54 55 56 57 AC_ARG_ENABLE(target-release, AS_HELP_STRING([--enable-target-release], [Build and install the release target]))58 AC_ARG_ENABLE(target-debug, AS_HELP_STRING([--enable-target-debug], [Build and install the debug target]))59 60 case "$enable_target_release" in61 yes)62 case "$enable_target_debug" in63 yes)64 build_release="yes"65 build_debug="yes"66 ;;67 no)68 build_release="yes"69 build_debug="no"70 ;;71 *)72 build_release="yes"73 build_debug="no"74 ;;75 esac76 ;;77 no)78 case "$enable_target_debug" in79 yes)80 build_release="no"81 build_debug="yes"82 ;;83 no)84 build_release="no"85 build_debug="no"86 ;;87 *)88 build_release="no"89 build_debug="yes"90 ;;91 esac92 ;;93 *)94 case "$enable_target_debug" in95 yes)96 build_release="no"97 build_debug="yes"98 ;;99 no)100 build_release="yes"101 build_debug="no"102 ;;103 *)104 build_release="yes"105 build_debug="yes"106 ;;107 esac108 ;;109 esac110 111 AM_CONDITIONAL([BUILD_RELEASE], [test "x$build_release" = "xyes"])112 AM_CONDITIONAL([BUILD_DEBUG], [test "x$build_debug" = "xyes"])113 AM_CONDITIONAL([BUILD_NO_LIB], [test "x$build_release$build_debug" = "xnono"])114 115 55 if test "x$prefix" = "xNONE"; then 116 56 cfa_prefix=${ac_default_prefix} … … 148 88 AC_SUBST(CFA_FLAGS, ${CFAFLAGS}) 149 89 150 AC_CANONICAL_HOST151 AC_SUBST([MACHINE_TYPE],[$host_cpu])152 153 90 # Checks for programs. 154 91 AC_PROG_CXX 155 92 AC_PROG_CC 156 AM_PROG_AS157 93 AM_PROG_CC_C_O # deprecated 158 94 # These are often not installed and people miss seeing the "no", so stop the configure. … … 192 128 src/examples/Makefile 193 129 src/tests/Makefile 194 src/prelude/Makefile195 130 src/libcfa/Makefile 196 131 ]) … … 198 133 AC_OUTPUT 199 134 200 AM_COND_IF([BUILD_RELEASE],201 [AM_COND_IF([BUILD_DEBUG],202 [AC_MSG_NOTICE(Building libcfa for target: release & debug)],203 [AC_MSG_NOTICE(Building libcfa for target: release)])],204 [AM_COND_IF([BUILD_DEBUG],205 [AC_MSG_NOTICE(Building libcfa for target: debug)],206 [AC_MSG_NOTICE(Running cfa without libcfa)])])207 208 135 # Final text 209 136 AC_MSG_RESULT(Cforall configuraton completed. Type "make -j 8 install".)
Note:
See TracChangeset
for help on using the changeset viewer.