Changeset 1781


Ignore:
Timestamp:
Feb 6, 2009, 8:36:19 PM (11 years ago)
Author:
Peter
Message:

I moved the warnings not to occur inside a
AC_MSG_CHECKING
...
AC_MSG_RESULT

I keep the warnings though because I don't know how to hold newlines
in shell variable in a safe way, and as the warnings are quite long
they wouldn't be pretty as one-liners.

We could add, if it is desired, a mechanism to turn off the warnings,
e.g., a macro YAT_NO_WARNINGS that simply sets a variable
ac_yat_warning="no" and then modify the output accordingly.

closes #487

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build_support/yat.m4

    r1753 r1781  
    9797
    9898#
    99 # serial 0  # version number of yat.m4
     99# serial 1  # version number of yat.m4
    100100#
    101101# see http://www.gnu.org/software/automake/manual/automake.html#Serials
     
    137137      done     
    138138      if test "$yat_config" = "no" ; then
    139         AC_MSG_WARN(dnl
    140 [the --with-yat parameter is incorrect. It must
    141 specify an install prefix, or a yat-config file."])
     139        AC_MSG_WARN([
     140           the --with-yat parameter is incorrect. It must
     141           specify an install prefix, or a yat-config file.])
    142142      fi
    143143    ],
    144144    [ AC_PATH_PROG([yat_config], [yat-config], [no])
    145145      if test "$yat_config" = "no" ; then
    146         AC_MSG_WARN(dnl
    147 [the yat-config script installed by yat could not be found. If yat was
    148  installed in PREFIX, make sure PREFIX/bin is in your path, or supply
    149  the appropriate --with-yat option"])
     146        AC_MSG_WARN([
     147          the yat-config script installed by yat could not be found. If yat was
     148          installed in PREFIX, make sure PREFIX/bin is in your path, or supply
     149          the appropriate --with-yat option])
    150150      fi
    151151    ])
     
    170170
    171171    if $yat_config --atleast-version=$ac_yat_min_version; then
     172      AC_MSG_RESULT([yes])
    172173      ac_yat_version_ok=yes;
    173174    else
     175      AC_MSG_RESULT([no])
    174176      ac_yat_version=`$yat_config --version`
    175       AC_MSG_WARN(dnl
    176 ['$yat_config --version' returned $ac_yat_version, but the minimum
    177 required version is $ac_yat_min_version."])
    178       ac_yat_version_ok=no;
     177      AC_MSG_WARN([
     178       '$yat_config --version' returned $ac_yat_version,
     179        but the minimum required version is $ac_yat_min_version.])
    179180    fi
    180     AC_MSG_RESULT([$ac_yat_version_ok])
    181181  fi
    182182
     
    230230       AC_DEFINE(HAVE_YAT,,[define if yat library is available])],
    231231      [AC_MSG_RESULT([incorrect]);
    232        AC_MSG_WARN(dnl
    233 [version declared in included yat/utility/version.h is not equal to
    234 the one given from yat-config script: $yat_config."])
     232       AC_MSG_WARN([
     233        version declared in included yat/utility/version.h is not equal to
     234        the one given from yat-config script: $yat_config.])
    235235       ac_yat_ok="no";
    236236      ])
     
    275275                                     std::string s=version();])],
    276276                   [ac_yat_ok="yes";
     277                    AC_MSG_RESULT([yes])
    277278                    AC_SUBST(YAT_LDFLAGS)
    278279                    AC_SUBST(YAT_LIBS)
     
    280281                    AC_SUBST(YAT_LA_FILE)],
    281282                   [ac_yat_ok="no";
    282                     AC_MSG_WARN(dnl
    283 [the test program failed to link (or compile). See file config.log for
    284 details on what occured."])
     283                    AC_MSG_RESULT([no])
     284                    AC_MSG_WARN([
     285           the test program failed to link (or compile). See file config.log for
     286           details on what occured.])
    285287                   ])
    286     AC_MSG_RESULT([$ac_yat_ok])
    287288    # restore FLAGS
    288289    LDFLAGS=$ac_yat_save_LDFLAGS
Note: See TracChangeset for help on using the changeset viewer.