#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../glibc/config-650.in
# Copyright (C) 2006 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---

menu_begin MENU_LIBC 'Selecting C Library'
	CFGTEMP_LIBC_LIST=

	for x in `grep -e ' LIBC ' $cfgtmpdir/config/packages | cut -d' ' -f5`; do
		var_append CFGTEMP_LIBC_LIST ' ' \
		"$x $x,_$( grep -e '^\[I\]' package/*/$x/$x.desc \
			| cut -d' ' -f2- | tr ' ' '_' )"
	done

	if [ -z "$CFGTEMP_LIBC_LIST" ]; then
		CFGTEMP_LIBC_LIST="none WARNING:_No_libc_was_selected!"
	fi

	choice SDECFG_LIBC glibc $CFGTEMP_LIBC_LIST

	# default libc must get enabled
	[ "$SDECFG_LIBC" != "none" ] && pkgenable $SDECFG_LIBC

	comment ' '

	# do package specific config
	[ -s $cfgtmpdir/subconfig-libc.in ] && . $cfgtmpdir/subconfig-libc.in

menu_end