Changeset 28803 for trunk/base


Ignore:
Timestamp:
Sep 9, 2007, 10:14:04 AM (12 years ago)
Author:
afb@…
Message:

add autoconf @VER@ (1.6.0), translated from mp_version (1.600)

Location:
trunk/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/configure

    r28743 r28803  
    666666target_vendor
    667667target_os
     668VER
    668669CC
    669670CFLAGS
     
    20352036
    20362037
     2038# translate mp_version (1.600) to regular version (1.6.0)
     2039{ echo "$as_me:$LINENO: checking MacPorts version" >&5
     2040echo $ECHO_N "checking MacPorts version... $ECHO_C" >&6; }
     2041VER=`cat config/mp_version | tr -d '\n' | sed -E 's/([0-9])\.([0-9])0?([0-9][1-9]?)0?/\1.\2.\3/'`
     2042{ echo "$as_me:$LINENO: result: $VER" >&5
     2043echo "${ECHO_T}$VER" >&6; }
     2044
     2045
    20372046# Checks for programs.
    20382047ac_ext=c
     
    1238912398target_vendor!$target_vendor$ac_delim
    1239012399target_os!$target_os$ac_delim
     12400VER!$VER$ac_delim
    1239112401CC!$CC$ac_delim
    1239212402CFLAGS!$CFLAGS$ac_delim
     
    1243612446HAVE_FRAMEWORK_COREFOUNDATION!$HAVE_FRAMEWORK_COREFOUNDATION$ac_delim
    1243712447HAVE_FRAMEWORK_SYSTEMCONFIGURATION!$HAVE_FRAMEWORK_SYSTEMCONFIGURATION$ac_delim
    12438 HAVE_FRAMEWORK_IOKIT!$HAVE_FRAMEWORK_IOKIT$ac_delim
    1243912448_ACEOF
    1244012449
     
    1247812487for ac_last_try in false false false false false :; do
    1247912488  cat >conf$$subs.sed <<_ACEOF
     12489HAVE_FRAMEWORK_IOKIT!$HAVE_FRAMEWORK_IOKIT$ac_delim
    1248012490HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER!$HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER$ac_delim
    1248112491REPLACEMENT_PROGS!$REPLACEMENT_PROGS$ac_delim
     
    1253112541_ACEOF
    1253212542
    12533   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
     12543  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
    1253412544    break
    1253512545  elif $ac_last_try; then
  • trunk/base/configure.ac

    r28743 r28803  
    99# Check user PATH for MP paths, and remove as necessary.
    1010MP_PATH_SCAN
     11
     12# translate mp_version (1.600) to regular version (1.6.0)
     13AC_MSG_CHECKING(MacPorts version)
     14VER=`cat config/mp_version | tr -d '\n' | sed -E 's/([[0-9]])\.([[0-9]])0?([[0-9]][[1-9]]?)0?/\1.\2.\3/'`
     15AC_MSG_RESULT([$VER])
     16AC_SUBST(VER)
    1117
    1218# Checks for programs.
Note: See TracChangeset for help on using the changeset viewer.