Changeset 1598 for trunk/configure.ac
- Timestamp:
- Aug 26, 2015, 5:11:38 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/0.10-stable merged: 1580-1581,1583-1589,1591-1595
- Property svn:mergeinfo changed
-
trunk/configure.ac
r1579 r1598 13 13 # Copyright (C) 2006 Jari Häkkinen 14 14 # Copyright (C) 2007, 2008, 2009, 2010 Jari Häkkinen, Peter Johansson 15 # Copyright (C) 2011, 2012 , 2015Peter Johansson16 # Copyright (C) 2015 Jari Häkkinen 15 # Copyright (C) 2011, 2012 Peter Johansson 16 # Copyright (C) 2015 Jari Häkkinen, Peter Johansson 17 17 # 18 18 # This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 232 232 ]) 233 233 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. 238 PLPLOT_USE_D= 234 239 use_plplot_pc="no" 235 240 AS_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++], [ 238 244 AC_MSG_RESULT([yes]) 239 245 use_plplot_pc="yes" 240 246 ],[ 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 ]) 245 260 ]) 246 261 ]) … … 255 270 # substituting potential '/plplot' in PREFIX. 256 271 YAT_CPP_ADD_FLAG([CPPFLAGS], 257 [`$PKG_CONFIG plplot d-c++ --cflags-only-I | sed 's|/plplot | |g'`])258 YAT_LD_ADD_FLAG([LDFLAGS], [`$PKG_CONFIG plplot d-c++ --libs-only-L`])259 PLPLOT_LIBS="`$PKG_CONFIG plplot d-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`" 260 275 ],[ 261 276 # otherwise guess 262 PLPLOT_LIBS="-lplplotcxx d -lplplotd";277 PLPLOT_LIBS="-lplplotcxx -lplplot"; 263 278 AS_IF([test -n "$with_plplot" && test "x$with_plplot" != "xyes"], [ 264 279 YAT_LD_ADD_FLAG([LDFLAGS], [-L$with_plplot/lib]) … … 274 289 AS_IF([test "x$plplot_found" = "xyes" && test -n "$PKG_CONFIG"], [ 275 290 AC_MSG_CHECKING([plplot version >= $plplot_version]) 276 AS_IF([$PKG_CONFIG --atleast-version=$plplot_version plplot d-c++], [291 AS_IF([$PKG_CONFIG --atleast-version=$plplot_version plplot$PLPLOT_USE_D-c++], [ 277 292 AC_MSG_RESULT([yes]) 278 293 ],[ 279 have_plplot_version=`$PKG_CONFIG --modversion plplot d-c++`294 have_plplot_version=`$PKG_CONFIG --modversion plplot$PLPLOT_USE_D-c++` 280 295 AC_MSG_RESULT([$have_plplot_version]) 281 296 plplot_found="old" … … 348 363 all_reqs_ok="true" 349 364 365 # checking for help2man, missing help2man is non-fatal but subsequent 366 # use of `make dist` and `make distcheck` is constructed to fail. 367 AC_MSG_CHECKING([help2man]) 368 # redirecting potential error msg to log file 369 AS_IF([help2man --version >/dev/null 2>&AS_MESSAGE_LOG_FD], 370 [have_help2man=yes], [have_help2man=no]) 371 AM_CONDITIONAL([HAVE_HELP2MAN], [test "x$have_help2man" = "xyes"]) 372 AC_SUBST([have_help2man]) 373 AC_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 350 377 AS_VAR_IF([have_svn_wc], [yes], [ 351 AC_MSG_CHECKING([help2man])352 # redirecting potential error msg to log file353 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 be358 able to create the man page. A sound man page should be359 included in a distribution, and since you will not able360 to create a complete distribution `make dist' will fail.361 ]),[ ],362 [ ], 79))363 ])364 378 if (test "$test_repo_found" = "no"); then 365 379 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)) 370 396 fi 371 397 ])
Note: See TracChangeset
for help on using the changeset viewer.