File: acx_mac.m4

package info (click to toggle)
madness 0.10.1%2Bgit20200818.eee5fd9f-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 34,980 kB
  • sloc: cpp: 280,841; ansic: 12,626; python: 4,961; fortran: 4,245; xml: 1,053; makefile: 714; sh: 276; perl: 244; yacc: 227; lex: 188; asm: 141; csh: 55
file content (19 lines) | stat: -rw-r--r-- 491 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
AC_DEFUN([ACX_MAC], [
        # If on a MAC
        #   - kiss steve jobs' ass
        #   - get an iphone
        #   - get another mac
        ON_A_MAC="no"
        uname -a | grep -iq Darwin
        if test $? = 0; then
            ITS_A_MAC="yes"
            ON_A_MAC="yes"
            LDFLAGS="-Wl,-no_pie $LDFLAGS"
            AC_MSG_NOTICE([You are building on a mac ... now tell ten of your friends.])
            AC_DEFINE(ON_A_MAC,[1],[Set if building on a mac])
        fi
])