Artifact bf43dd7ccfef42a0e91ce4c8a52df35ce258f7b4a6d6db4c7c49ce1b9b9cada7:
- File
objfw-config.in
— part of check-in
[52fd75e0d0]
at
2009-06-06 19:17:32
on branch trunk
— Change include path in objfw-config.
You need to do #import <objfw/*.h> now instead of #import <*.h>.
This prevents trouble with files like asprintf.h and makes it easier
to build the library as a framework for OS X. (user: js, size: 1351) [annotate] [blame] [check-ins using]
#!/bin/sh prefix="@prefix@" exec_prefix="@exec_prefix@" libdir="@libdir@" CFLAGS="" CPPFLAGS="-I@includedir@ @ENDIANESS_DEF@ @ASPRINTF_DEF@ @OFPLUGIN_DEF@" CXXFLAGS="" OBJCFLAGS="-fobjc-exceptions -fconstant-string-class=OFConstString" OBJCFLAGS="$OBJCFLAGS @NO_CONST_CFSTRINGS@" LDFLAGS="@RPATH_LDFLAGS@" LIBS="-L${libdir} -lobjfw @LIBS@" VERSION="0.1" show_help() { echo "$0: Available arguments are:" echo echo " --all Outputs all flags + libs" echo " --cflags Outputs the required CFLAGS" echo " --cppflags Outputs the required CPPFLAGS" echo " --cxxflags Outputs the required CXXFLAGS" echo " --objcflags Outputs the required OBJCFLAGS" echo " --ldflags Outputs the required LDFLAGS" echo " --libs Outputs the required LIBS" echo " --version Outputs the installed version" echo exit 0 } test -z "$1" && show_help while test ! -z "$1"; do case "$1" in --all) echo "$CFLAGS" echo "$CPPFLAGS" echo "$CXXFLAGS" echo "$OBJCFLAGS" echo "$LDFLAGS" echo "$LIBS" ;; --cflags) echo "$CFLAGS" ;; --cppflags) echo "$CPPFLAGS" ;; --cxxflags) echo "$CXXFLAGS" ;; --objcflags) echo "$OBJCFLAGS" ;; --libs) echo "$LIBS" ;; --ldflags) echo "$LDFLAGS" ;; --version) echo "$VERSION" ;; *) echo "Invalid option: $1" >/dev/stderr exit 1 ;; esac shift done