aboutsummaryrefslogtreecommitdiffstats
path: root/perlapi.req
blob: 507f74b3eea6213951d046d466d6e0e97ed17842 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# --- If libperl.so exists and if XS modules are found, depend on perlapi-<version> and libperl.so
while read instfile ; do
    if perl -V:useshrplib | grep -q true ; then
        if echo $instfile | grep -q `perl -MConfig -e 'print $Config{archname}'` ; then
            version=`perl -MConfig -e 'print $Config{version}'`
            echo perlapi-$version

            f=`perl -MConfig -e 'print $Config{archlib}'`/CORE/libperl.so
            lib64=`if file -L $f 2>/dev/null | \
		grep "ELF 64-bit" >/dev/null; then echo "()(64bit)"; fi`
            echo libperl.so$lib64
        fi
    fi
done