File: xerces_link_darwin_framework.m4

package info (click to toggle)
xerces-c 3.2.4%2Bdebian-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,728 kB
  • sloc: cpp: 167,126; xml: 23,619; sh: 4,792; ansic: 3,988; makefile: 1,438; perl: 355; javascript: 18
file content (27 lines) | stat: -rw-r--r-- 553 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
dnl @synopsis XERCES_LINK_DARWIN_FRAMEWORK
dnl
dnl Adds the specified framework to LIBS if it's not already there.
dnl
dnl @category C
dnl @author James Berry
dnl @version 2005-02-20
dnl @license AllPermissive
dnl
dnl $Id$

AC_DEFUN([XERCES_LINK_DARWIN_FRAMEWORK], [
	case $host_os in
	darwin*)
		test -z "${xerces_darwin_frameworks}" && xerces_darwin_frameworks="-"
		case ${xerces_darwin_frameworks} in
		*-$1-*)
			;;
		*)
			xerces_darwin_frameworks="-$1${xerces_darwin_frameworks}"
			LIBS="-Wl,-framework -Wl,$1 $LIBS"
			;;
		esac
		;;
	esac
])