Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
| 3 | # |
| 4 | # Generate the common perl configuration |
| 5 | # Needs to be run on a host that matches the bitsize of the target platform |
| 6 | # |
| 7 | |
| 8 | echo sh Configure -des \ |
| 9 | -Doptimize=-O2 \ |
| 10 | -Dmyhostname=localhost \ |
| 11 | -Dperladmin=root@localhost \ |
| 12 | -Dcc=gcc \ |
| 13 | -Dcf_by='Open Embedded' \ |
| 14 | -Dinstallprefix=@DESTDIR@ \ |
| 15 | -Dprefix=/usr \ |
| 16 | -Dvendorprefix=/usr \ |
| 17 | -Dsiteprefix=/usr \ |
| 18 | -Dotherlibdirs=/usr/lib/perl5/5.12.3 \ |
| 19 | -Duseshrplib \ |
| 20 | -Dusethreads \ |
| 21 | -Duseithreads \ |
| 22 | -Duselargefiles \ |
| 23 | -Ud_dosuid \ |
| 24 | -Dd_semctl_semun \ |
| 25 | -Ui_db \ |
| 26 | -Ui_ndbm \ |
| 27 | -Ui_gdbm \ |
| 28 | -Di_shadow \ |
| 29 | -Di_syslog \ |
| 30 | -Dman3ext=3pm \ |
| 31 | -Duseperlio \ |
| 32 | -Dinstallusrbinperl \ |
| 33 | -Ubincompat5005 \ |
| 34 | -Uversiononly \ |
| 35 | -Dpager='/usr/bin/less -isr' |
| 36 | |
| 37 | cp -f config.sh config.sh.COMMON |
| 38 | |
| 39 | TARGETOS=$(grep myarchname config.sh.COMMON | sed "s#.*'\(.*\)'.*#\1#") |
| 40 | |
| 41 | sed -r -i config.sh.COMMON \ |
| 42 | -e "s#(install.*=')(/usr)/local(.*')#\1@DESTDIR@\2\3#g" \ |
| 43 | -e 's#'$TARGETOS'#@ARCH@#g' |