aboutsummaryrefslogtreecommitdiff
path: root/helpers/cpt-configure
blob: 25c853384e1eb9db0767ef10c34b7f8e191a6cfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e
# Wrapper for calling autoconf-generated ./configure scripts
. cpt-lib

set -- \
    "--prefix=$CPT_PKG_PREFIX" \
    "--sysconfdir=$CPT_PKG_ETCDIR" \
    "--bindir=$CPT_PKG_BINDIR" \
    "--sbindir=$CPT_PKG_SBINDIR" \
    "--mandir=$CPT_PKG_MANDIR" \
    "--infodir=$CPT_PKG_INFODIR" \
    "--localstatedir=$CPT_PKG_LOCALSTATEDIR" \
    "$@"


[ "$CPT_CROSS_TRIPLET" ] &&
    set -- "$@" \
        "--host=$CPT_CROSS_TRIPLET" \
        "--with-sysroot=$CPT_ROOT$CPT_PKG_PREFIX"

"${configure_file:-./configure}" "$@"