Mercurial > hg > chrpath
comparison acinclude.m4 @ 0:b8f7423e385c
import 0.13
author | Peter Meerwald <pmeerw@pmeerw.net> |
---|---|
date | Fri, 20 Jul 2012 01:51:24 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b8f7423e385c |
---|---|
1 dnl | |
2 dnl Add macros | |
3 dnl JAPHAR_GREP_CFLAGS | |
4 dnl | |
5 | |
6 dnl | |
7 dnl JAPHAR_GREP_CFLAGS(flag, cmd_if_missing, cmd_if_present) | |
8 dnl | |
9 dnl From Japhar. Report changes to japhar@hungry.com | |
10 dnl | |
11 AC_DEFUN(JAPHAR_GREP_CFLAGS, | |
12 [case "$CFLAGS" in | |
13 "$1" | "$1 "* | *" $1" | *" $1 "* ) | |
14 ifelse($#, 3, [$3], [:]) | |
15 ;; | |
16 *) | |
17 $2 | |
18 ;; | |
19 esac | |
20 ]) | |
21 | |
22 AC_DEFUN(CHRPATH_LDRPATH_OPTION, | |
23 [AC_REQUIRE([AC_CANONICAL_TARGET])[]dnl | |
24 case "$target" in | |
25 *-linux*) | |
26 LDRPATH=-Wl,-rpath, | |
27 ;; | |
28 *-*-irix*|*-*-osf*) | |
29 LDRPATH="-rpath " | |
30 ;; | |
31 *-*-hpux*) | |
32 # Hm, this seem to set runpath on ia64, not rpath | |
33 LDRPATH="-Wl,+b," | |
34 ;; | |
35 *-*-darwin*) | |
36 # No idea how to add rpath/runpath on Darwin | |
37 LDRPATH="" | |
38 ;; | |
39 *) | |
40 LDRPATH="-R " | |
41 ;; | |
42 esac | |
43 AC_SUBST(LDRPATH) | |
44 ]) |