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

set -- \
    "--prefix=$CPT_PKG_PREFIX" \
    "--libdir=$CPT_PKG_LIBDIR" \
    "--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}" "$@"