summaryrefslogtreecommitdiffstats
path: root/tools/config-gen
blob: 441e5a46500f386146112670cd337cbbd2cb56a2 (plain) (blame)
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
28
29
30
31
#!/bin/bash
#
# Copyright (C) 2011 Karel Zak <kzak@redhat.com> 
# 

test -f mount/mount.c || {
	echo
	echo "You must run this script in the top-level util-linux directory"
	echo
	exit 1
}

. tools/config-gen-functions.sh

while [ -n "$1" ]; do
	opts="$opts $(ul_get_configuration tools/config-gen.d/$1.conf)"
	shift
done

opts=$(echo $opts | tr " " "\n" | sort -u)
echo "Configure options:"
for x in $opts; do
	echo "	$x"
done
if [ -n "$CFLAGS" ]; then
	echo "CFLAGS:	$CFLAGS"
	export CFLAGS="$CFLAGS"
fi

echo
./configure $opts