Changeset 1598 for trunk/configure.ac


Ignore:
Timestamp:
Aug 26, 2015, 5:11:38 PM (5 years ago)
Author:
Jari Häkkinen
Message:

Merged release 0.10.3 to the trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/configure.ac

    r1579 r1598  
    1313# Copyright (C) 2006 Jari Häkkinen
    1414# Copyright (C) 2007, 2008, 2009, 2010 Jari Häkkinen, Peter Johansson
    15 # Copyright (C) 2011, 2012, 2015 Peter Johansson
    16 # Copyright (C) 2015 Jari Häkkinen
     15# Copyright (C) 2011, 2012 Peter Johansson
     16# Copyright (C) 2015 Jari Häkkinen, Peter Johansson
    1717#
    1818# This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    232232  ])
    233233
     234# PLPLOT_USE_D is set to character 'd' for plplot versions prior to
     235# 5.11 since library names changed in plplot 5.11, i.e., the 'd' to
     236# indicate double floating number precision was removed from library
     237# names.
     238PLPLOT_USE_D=
    234239use_plplot_pc="no"
    235240AS_IF([test "x$plplot_found" = "xyes" && test -n "$PKG_CONFIG"], [
    236   AC_MSG_CHECKING([for plplotd-c++.pc])
    237   AS_IF([$PKG_CONFIG --exists plplotd-c++], [
     241  # check for plplot 5.11 or later first
     242  AC_MSG_CHECKING([for plplot-c++.pc])
     243  AS_IF([$PKG_CONFIG --exists plplot-c++], [
    238244    AC_MSG_RESULT([yes])
    239245    use_plplot_pc="yes"
    240246  ],[
    241     AC_MSG_RESULT([no])
    242     AC_MSG_WARN([cannot find plplotd-c++;
    243       please use --with-plplot with appropriate argument to get more accurate
    244       configuration.])
     247    # fall back to check for plplot prior to version 5.11
     248    AC_MSG_CHECKING([for plplotd-c++.pc])
     249    AS_IF([$PKG_CONFIG --exists plplotd-c++], [
     250      AC_MSG_RESULT([yes])
     251      use_plplot_pc="yes"
     252      # plplot prior to 5.11 found, use 'd'
     253      PLPLOT_USE_D=d
     254    ],[
     255      AC_MSG_RESULT([no])
     256      AC_MSG_WARN([cannot find plplotd-c++ nor plplot-c++;
     257        please use --with-plplot with appropriate argument to get more accurate
     258        configuration.])
     259    ])
    245260  ])
    246261])
     
    255270    # substituting potential '/plplot' in PREFIX.
    256271    YAT_CPP_ADD_FLAG([CPPFLAGS],
    257              [`$PKG_CONFIG plplotd-c++ --cflags-only-I | sed 's|/plplot | |g'`])
    258     YAT_LD_ADD_FLAG([LDFLAGS], [`$PKG_CONFIG plplotd-c++ --libs-only-L`])
    259     PLPLOT_LIBS="`$PKG_CONFIG plplotd-c++ --libs-only-l --libs-only-other`"
     272             [`$PKG_CONFIG plplot$PLPLOT_USE_D-c++ --cflags-only-I | sed 's|/plplot | |g'`])
     273    YAT_LD_ADD_FLAG([LDFLAGS], [`$PKG_CONFIG plplot$PLPLOT_USE_D-c++ --libs-only-L`])
     274    PLPLOT_LIBS="`$PKG_CONFIG plplot$PLPLOT_USE_D-c++ --libs-only-l --libs-only-other`"
    260275  ],[
    261276    # otherwise guess
    262     PLPLOT_LIBS="-lplplotcxxd -lplplotd";
     277    PLPLOT_LIBS="-lplplotcxx -lplplot";
    263278    AS_IF([test -n "$with_plplot" && test "x$with_plplot" != "xyes"], [
    264279      YAT_LD_ADD_FLAG([LDFLAGS], [-L$with_plplot/lib])
     
    274289AS_IF([test "x$plplot_found" = "xyes" && test -n "$PKG_CONFIG"], [
    275290  AC_MSG_CHECKING([plplot version >= $plplot_version])
    276   AS_IF([$PKG_CONFIG --atleast-version=$plplot_version plplotd-c++], [
     291  AS_IF([$PKG_CONFIG --atleast-version=$plplot_version plplot$PLPLOT_USE_D-c++], [
    277292    AC_MSG_RESULT([yes])
    278293  ],[
    279     have_plplot_version=`$PKG_CONFIG --modversion plplotd-c++`
     294    have_plplot_version=`$PKG_CONFIG --modversion plplot$PLPLOT_USE_D-c++`
    280295    AC_MSG_RESULT([$have_plplot_version])
    281296    plplot_found="old"
     
    348363all_reqs_ok="true"
    349364
     365# checking for help2man, missing help2man is non-fatal but subsequent
     366# use of `make dist` and `make distcheck` is constructed to fail.
     367AC_MSG_CHECKING([help2man])
     368# redirecting potential error msg to log file
     369AS_IF([help2man --version >/dev/null 2>&AS_MESSAGE_LOG_FD],
     370      [have_help2man=yes], [have_help2man=no])
     371AM_CONDITIONAL([HAVE_HELP2MAN], [test "x$have_help2man" = "xyes"])
     372AC_SUBST([have_help2man])
     373AC_MSG_RESULT([$have_help2man])
     374
     375# if we work in an svn wc we should have a test repository and warn if
     376# help2man missing
    350377AS_VAR_IF([have_svn_wc], [yes], [
    351    AC_MSG_CHECKING([help2man])
    352    # redirecting potential error msg to log file
    353    AS_IF([help2man --version >/dev/null 2>&AS_MESSAGE_LOG_FD],
    354          [AC_MSG_RESULT([yes])],
    355          [AC_MSG_RESULT([no])
    356      AC_MSG_WARN(m4_text_wrap(m4_normalize([
    357        `help2man' is missing on your system.  You will not be
    358        able to create the man page. A sound man page should be
    359        included in a distribution, and since you will not able
    360        to create a complete distribution `make dist' will fail.
    361        ]),[                   ],
    362           [                             ], 79))
    363    ])
    364378   if (test "$test_repo_found" = "no"); then
    365379      all_reqs_ok="false";
    366       AC_MSG_WARN([dnl
    367 Cannot find test repository (test_repo_filename), which should be
    368 available when building from a subversion working copy. Try svn
    369 update in top directory.]);
     380      AC_MSG_WARN(m4_text_wrap(m4_normalize([
     381         Cannot find test repository (test/repo), which should be
     382   available when building from a subversion working copy.
     383   Try svn update in top directory.
     384   ]),
     385   [                   ],[                             ],79))
     386   fi
     387   if (test "$have_help2man" = "no"); then
     388       # non-fatal, only issue warning
     389       AC_MSG_WARN(m4_text_wrap(m4_normalize([
     390          `help2man' is missing on your system. You will not be
     391    able to create the man page. A sound man page should be
     392    included in a distribution, and since you will not able
     393    to create a complete distribution `make dist' will fail.
     394    ]),
     395    [                   ],[                             ],79))
    370396   fi
    371397])
Note: See TracChangeset for help on using the changeset viewer.