Fixed getpid() to be real function on uClinux (just prototype was missing)
[gnokii.git] / do
1 #! /bin/sh
2
3 #target_m68k=1
4 enable_debug=1
5 cfg_port="ttyS0"
6
7 exec 2>&1
8 set -ex
9 rm -f config.cache
10 autoheader
11 autoconf
12 # rm -f config.cache
13 if [ -n "$target_m68k" ];then
14         test -n "$CC"       || export CC="m68k-pic-coff-gcc"
15         test -n "$AR"       || export AR="m68k-pic-coff-ar"
16         test -n "$CFLAGS"   || export CFLAGS="-O2 -Wall -fPIC"
17         test -n "$CPPFLAGS" || export CPPFLAGS="-DUCCOMPAT=1 $CPPFLAGS"
18         test -n "$LDFLAGS"  || export LDFLAGS="gnokii/cleanup.c"
19 fi
20 export CPPFLAGS="-DUCLINUX=1 $CPPFLAGS"
21 ./configure --with-cfg-model=5110 --with-cfg-port=/dev/"$cfg_port" --without-x \
22                 `if [ -n "$enable_debug" ];then echo "--enable-debug --enable-xdebug";fi`
23 make clean
24 make