Changeset 9def87a for configure


Ignore:
Timestamp:
Dec 8, 2016, 5:44:46 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
164d036
Parents:
57f408e
Message:

Added macros to select build target in configure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r57f408e r9def87a  
    658658CFA_INCDIR
    659659CFA_PREFIX
     660BUILD_DEBUG_FALSE
     661BUILD_DEBUG_TRUE
     662BUILD_RELEASE_FALSE
     663BUILD_RELEASE_TRUE
    660664CFA_BACKEND_CC
    661665BACKEND_CC
     
    734738enable_maintainer_mode
    735739with_backend_compiler
     740enable_target_release
     741enable_target_debug
    736742enable_dependency_tracking
    737743'
     
    13761382  --disable-maintainer-mode  disable make rules and dependencies not useful
    13771383                          (and sometimes confusing) to the casual installer
     1384  --enable-target-release Build and install the release target
     1385  --enable-target-debug   Build and install the debug target
    13781386  --disable-dependency-tracking  speeds up one-time build
    13791387  --enable-dependency-tracking   do not reject slow dependency extractors
     
    30993107_ACEOF
    31003108
     3109
     3110
     3111
     3112
     3113# Check whether --enable-target-release was given.
     3114if test "${enable_target_release+set}" = set; then :
     3115  enableval=$enable_target_release;
     3116fi
     3117
     3118# Check whether --enable-target-debug was given.
     3119if test "${enable_target_debug+set}" = set; then :
     3120  enableval=$enable_target_debug;
     3121fi
     3122
     3123
     3124case "$enable_target_release" in
     3125        yes)
     3126                case "$enable_target_debug" in
     3127                        yes)
     3128                                build_release="yes"
     3129                                build_debug="yes"
     3130                                ;;
     3131                        no)
     3132                                build_release="yes"
     3133                                build_debug="no"
     3134                                ;;
     3135                        *)
     3136                                build_release="yes"
     3137                                build_debug="no"
     3138                                ;;
     3139                esac
     3140                ;;
     3141        no)
     3142                case "$enable_target_debug" in
     3143                        yes)
     3144                                build_release="no"
     3145                                build_debug="yes"
     3146                                ;;
     3147                        no)
     3148                                as_fn_error $? "Must build target debug or release" "$LINENO" 5
     3149                                exit 1;
     3150                                ;;
     3151                        *)
     3152                                build_release="no"
     3153                                build_debug="yes"
     3154                                ;;
     3155                esac
     3156                ;;
     3157        *)
     3158                case "$enable_target_debug" in
     3159                        yes)
     3160                                build_release="no"
     3161                                build_debug="yes"
     3162                                ;;
     3163                        no)
     3164                                build_release="yes"
     3165                                build_debug="no"
     3166                                ;;
     3167                        *)
     3168                                build_release="yes"
     3169                                build_debug="yes"
     3170                                ;;
     3171                esac
     3172                ;;
     3173esac
     3174
     3175 if test "x$build_release" = "xyes"; then
     3176  BUILD_RELEASE_TRUE=
     3177  BUILD_RELEASE_FALSE='#'
     3178else
     3179  BUILD_RELEASE_TRUE='#'
     3180  BUILD_RELEASE_FALSE=
     3181fi
     3182
     3183 if test "x$build_debug" = "xyes"; then
     3184  BUILD_DEBUG_TRUE=
     3185  BUILD_DEBUG_FALSE='#'
     3186else
     3187  BUILD_DEBUG_TRUE='#'
     3188  BUILD_DEBUG_FALSE=
     3189fi
    31013190
    31023191
     
    62076296if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
    62086297  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
     6298Usually this means the macro was only invoked conditionally." "$LINENO" 5
     6299fi
     6300if test -z "${BUILD_RELEASE_TRUE}" && test -z "${BUILD_RELEASE_FALSE}"; then
     6301  as_fn_error $? "conditional \"BUILD_RELEASE\" was never defined.
     6302Usually this means the macro was only invoked conditionally." "$LINENO" 5
     6303fi
     6304if test -z "${BUILD_DEBUG_TRUE}" && test -z "${BUILD_DEBUG_FALSE}"; then
     6305  as_fn_error $? "conditional \"BUILD_DEBUG\" was never defined.
    62096306Usually this means the macro was only invoked conditionally." "$LINENO" 5
    62106307fi
     
    75667663
    75677664
     7665if test -z "$BUILD_RELEASE_TRUE"; then :
     7666  if test -z "$BUILD_DEBUG_TRUE"; then :
     7667  { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release & debug" >&5
     7668$as_echo "$as_me: Building libcfa for target: release & debug" >&6;}
     7669else
     7670  { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: release" >&5
     7671$as_echo "$as_me: Building libcfa for target: release" >&6;}
     7672fi
     7673else
     7674  { $as_echo "$as_me:${as_lineno-$LINENO}: Building libcfa for target: debug" >&5
     7675$as_echo "$as_me: Building libcfa for target: debug" >&6;}
     7676fi
     7677
    75687678# Final text
    75697679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Cforall configuraton completed. Type \"make -j 8 install\"." >&5
Note: See TracChangeset for help on using the changeset viewer.