[git] Updated (1.5.5.1 -> 1.5.5.4)
[opensde-package-nopast.git] / base / dietlibc / subconfig-libc.in
blob81d6ac5b38916b39b6ce971359d2e6f6fbb2354c
1 #!/bin/sh
2 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
3 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
5 # Filename: package/.../dietlibc/subconfig-libc.in
6 # Copyright (C) 2006 The OpenSDE Project
7 # Copyright (C) 2004 - 2006 The T2 SDE Project
8 # Copyright (C) 1998 - 2004 Clifford Wolf
10 # More information can be found in the files COPYING and README.
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; version 2 of the License. A copy of the
15 # GNU General Public License can be found in the file COPYING.
16 # --- SDE-COPYRIGHT-NOTE-END ---
18 if [ "$SDECFG_LIBC" == "dietlibc" ]; then
19 SDECFGSET_DIETLIBC=1
22 if pkgcheck dietlibc X
23 then
24 comment 'Dietlibc Options'
25 bool 'Enable dietlibc support' SDECFG_DIETLIBC 0
26 if [ $SDECFG_DIETLIBC = 1 ] ; then
27 menu_begin MENU_PKG_DIETLIBC_FEATURES 'Special features'
28 bool 'WANT_SYSENTER' \
29 SDECFG_DIETWANT_SYSENTER 1
30 menu_end
31 bool 'Link binaries dynamically with dietlibc' \
32 SDECFG_DIETLIBC_DYN 0
34 if [ $SDECFG_LIBC != dietlibc ]; then
35 block_begin 2
36 pkgout
37 for i in `grep " DIETLIBC " $cfgtmpdir/config/packages | \
38 cut -f5 -d" " | sort`
40 x="${i//-/_}" ; x="${x//+/_}"
41 bool "Build package with dietlibc: $i" \
42 "SDECFG_DIETLIBC_${x}" 0
43 done
44 block_end
47 comment ' '