Introduction
Introduction Statistics Contact Development Disclaimer Help
configure - libgrapheme - unicode string library
git clone git://git.suckless.org/libgrapheme
Log
Files
Refs
README
LICENSE
---
configure (1939B)
---
1 #!/bin/sh
2 # See LICENSE file for copyright and license details.
3
4 replace_line()
5 {
6 VAR=$1
7 ALIGNMENT=$2
8 VALUE=$3
9 awk "/^${VAR}[ ]*=/ { print \"${VAR}${ALIGNMENT} = ${VALUE}\"; n…
10 mv config.mk.tmp config.mk
11 }
12
13 case $(uname) in
14 DragonFly|FreeBSD|Linux|MidnightBSD|NetBSD)
15 # the default
16 replace_line 'ANAME' ' ' 'libgrapheme.a'
17 replace_line 'SONAME' ' ' 'libgrapheme.so.$(VERSIO…
18 replace_line 'BINSUFFIX' '' ''
19 replace_line 'SOFLAGS' ' ' '-shared -nostdlib -Wl,-…
20 replace_line 'SOSYMLINK' '' 'true'
21 replace_line 'LDCONFIG' '' 'ldconfig'
22 ;;
23 OpenBSD)
24 replace_line 'ANAME' ' ' 'libgrapheme.a'
25 replace_line 'SONAME' ' ' 'libgrapheme.so.$(VERSIO…
26 replace_line 'BINSUFFIX' '' ''
27 replace_line 'SOFLAGS' ' ' '-shared -nostdlib'
28 replace_line 'SOSYMLINK' '' 'false'
29 replace_line 'LDCONFIG' '' ''
30 ;;
31 Darwin)
32 replace_line 'ANAME' ' ' 'libgrapheme.a'
33 replace_line 'SONAME' ' ' 'libgrapheme.$(VERSION_M…
34 replace_line 'BINSUFFIX' '' ''
35 replace_line 'SOFLAGS' ' ' '-dynamiclib -install_na…
36 replace_line 'SOSYMLINK' '' 'false'
37 replace_line 'LDCONFIG' '' ''
38 ;;
39 CYGWIN*|MSYS*|MINGW*)
40 replace_line 'ANAME' ' ' 'libgrapheme.lib'
41 replace_line 'SONAME' ' ' 'libgrapheme.dll'
42 replace_line 'BINSUFFIX' '' '.exe'
43 replace_line 'SOFLAGS' ' ' '-shared'
44 replace_line 'SOSYMLINK' '' 'false'
45 replace_line 'LDCONFIG' '' ''
46 ;;
47 *)
48 echo "Your system does not have a preset. Edit config.mk…
49 exit 1
50 ;;
51 esac
52
53 exit 0
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.