aboutsummaryrefslogtreecommitdiff
path: root/makeconf.sh
blob: 3388390cc4de500a754243deb89b506ef303e1b0 (plain)
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
#! /bin/sh

echo "Running libtoolize..."
libtoolize -c

# We use iconv directly rather than via gettext, so
# we need to manually copy config.rpath.
CONFIG_RPATH=/usr/share/gettext/config.rpath
if ! [ -f $CONFIG_RPATH ]; then
    CONFIG_RPATH=/usr/local/share/gettext/config.rpath
fi
if ! [ -f $CONFIG_RPATH ]; then
    if  [ -f config.rpath ]; then
        CONFIG_RPATH=
    else
        echo "config.rpath not found! - is gettext installed?" >&2
        exit 1
    fi
fi
if ! [ -z "$CONFIG_RPATH" ]; then
    cp "$CONFIG_RPATH" .
fi

echo "Running autoreconf..."
autoreconf -i