diff options
Diffstat (limited to 'src/gpg-error-config.in')
-rw-r--r-- | src/gpg-error-config.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gpg-error-config.in b/src/gpg-error-config.in index 76c41ca..4be0343 100644 --- a/src/gpg-error-config.in +++ b/src/gpg-error-config.in @@ -14,6 +14,7 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ includedir=@includedir@ libdir=@libdir@ +isubdirafter="@GPG_ERROR_CONFIG_ISUBDIRAFTER@" output="" @@ -60,12 +61,18 @@ while test $# -gt 0; do if test "x$includedir" != "x/usr/include" -a "x$includedir" != "x/include"; then output="$output -I$includedir" fi + # Note: -idirafter is a gcc extension. It is only used on + # systems where gcc is the only compiler we support. + for i in $isubdirafter; do + output="$output -idirafter ${includedir}/${i}" + done + output="$output @GPG_ERROR_CONFIG_CFLAGS@" ;; --libs) if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/lib"; then output="$output -L$libdir" fi - output="$output -lgpg-error" + output="$output @GPG_ERROR_CONFIG_LIBS@" ;; *) usage 1 1>&2 |