Changeset 988 for trunk/configure.ac


Ignore:
Timestamp:
Dec 14, 2009, 2:52:13 PM (14 years ago)
Author:
Jari Häkkinen
Message:

Fixing issues with --with-plplot=path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r985 r988  
    242242    PLPLOT_LIBS="-lplplotcxxd -lplplotd";
    243243    AS_IF([test -n "$with_plplot" && test "x$with_plplot" != "xyes"], [
    244       YAT_LD_ADD_FLAG([PLPLOT_LDFLAGS], [$with_plplot/libs])
     244      YAT_LD_ADD_FLAG([PLPLOT_LDFLAGS], [-L$with_plplot/libs])
    245245    ])
    246246  ])
     
    248248  # `PREFIX/include/plplot' rather than `PREFIX/include'
    249249  AS_IF([test -n "$with_plplot" && test "x$with_plplot" != "xyes"], [
    250     YAT_CPP_ADD_FLAG([PLPLOT_CPPFLAGS], [$with_plplot/include])
     250    YAT_CPP_ADD_FLAG([PLPLOT_CPPFLAGS], [-I$with_plplot/include])
    251251  ])
    252252])
     
    271271
    272272AS_IF([test "x$plplot_found" = "xyes"], [
     273  save_CPPFLAGS=$CPPFLAGS
     274  CPPFLAGS="$PLPLOT_CPPFLAGS $CPPFLAGS"
    273275  save_LDFLAGS=$LDFLAGS
    274276  LDFLAGS="$PLPLOT_LDFLAGS $LDFLAGS"
     
    285287])
    286288# restore variable
     289CPPFLAGS=$save_CPPFLAGS
    287290LDFLAGS=$save_LDFLAGS
    288291LIBS=$save_LIBS
Note: See TracChangeset for help on using the changeset viewer.