Ignore:
Timestamp:
Jan 6, 2009, 5:42:41 PM (13 years ago)
Author:
Peter
Message:

Add support for using uninstalled yat-config. Options --cppflags and
--link-libtool now work prior installation. --ldflags is not supported
because I'm not sure how to link against unistalled library and user
should be advised to use libool anyway.

refs #428

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build_support/yat-config.in

    r1689 r1697  
    11# $Id$
    22
    3 # Copyright (C) 2008 Peter Johansson
     3# Copyright (C) 2008 2009 Peter Johansson
    44#
    55# This file is part of the yat library, http://dev.thep.lu.se/yat
     
    2323libdir="@libdir@"
    2424includedir="@includedir@"
     25
     26installed=no
    2527
    2628CXX="@CXX@"
     
    3537
    3638LA_FILE="$libdir/lib@YAT_LIBNAME@.la"
     39if test x$installed = xno; then
     40  LA_FILE="@abs_top_builddir@/lib@YAT_LIBNAME@.la"
     41fi
    3742
    3843usage()
     
    100105    ;;
    101106    --cppflags)
    102     flags="$flags -I$includedir $EXTRA_CPPFLAGS $CPPFLAGS"
     107    if test $installed = yes; then
     108       flags="$flags -I$includedir"
     109    else
     110       # second part is for VPATH builds. No need to separate the
     111       # cases because redundancy will be removed by unique filtering
     112       # below.
     113       flags="$flags -I@abs_top_srcdir@ -I@abs_top_builddir@"
     114    fi
     115    flags="$flags $EXTRA_CPPFLAGS $CPPFLAGS"
    103116    ;;
    104117    --cxxflags)
Note: See TracChangeset for help on using the changeset viewer.