Another SIGIO-removal fixe
[gnokii.git] / do
1 #! /bin/sh
2
3 target_m68k=1
4 enable_debug=1
5 stackcheck=60000
6 cfg_port="ttyS0"
7
8 exec 2>&1
9 set -ex
10 rm -f config.cache
11 autoheader
12 autoconf
13 # rm -f config.cache
14 if [ -n "$target_m68k" ];then
15         test -n "$CC"       || export CC="m68k-pic-coff-gcc"
16         test -n "$AR"       || export AR="m68k-pic-coff-ar"
17         test -n "$AS"       || export AS="m68k-pic-coff-as"
18         test -n "$CFLAGS"   || export CFLAGS="-O2 -Wall -fPIC"
19         test -n "$CPPFLAGS" || export CPPFLAGS="-DUCCOMPAT=1 $CPPFLAGS"
20         test -n "$LDFLAGS"  || export LDFLAGS="gnokii/cleanup.c"
21         if [ -n "$stackcheck" ];then
22                 export CPPFLAGS="-DSTACKCHECK=$stackcheck $CPPFLAGS"
23                 export CFLAGS="$CFLAGS -fno-omit-frame-pointer"
24         fi
25 fi
26 export CPPFLAGS="-DUCLINUX=1 $CPPFLAGS"
27 ./configure --with-cfg-model=5110 --with-cfg-port=/dev/"$cfg_port" --without-x \
28                 `if [ -n "$enable_debug" ];then echo "--enable-debug --enable-xdebug";fi`
29 make clean
30 make