projects
/
physik
/
nlsop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mre printf
[physik/nlsop.git]
/
configure
diff --git
a/configure
b/configure
index
31ed2e9
..
3c5f599
100755
(executable)
--- a/
configure
+++ b/
configure
@@
-6,6
+6,7
@@
name="nlsop"
prefix=/usr
dfblib=""
dfbinc=""
prefix=/usr
dfblib=""
dfbinc=""
+nodfb=0
echo $run_cmd
echo $run_cmd
@@
-24,6
+25,7
@@
while [ "$1" ]; do
--help) usage; shift 1;;
--with-dfblib) dfblib=`echo $1 | awk -F= '{ print $2 }'`; shift;;
--with-dfbinc) dfbinc=`echo $1 | awk -F= '{ print $2 }'`; shift;;
--help) usage; shift 1;;
--with-dfblib) dfblib=`echo $1 | awk -F= '{ print $2 }'`; shift;;
--with-dfbinc) dfbinc=`echo $1 | awk -F= '{ print $2 }'`; shift;;
+ --without-dfb) nodfb=1; shift ;;
esac
done
esac
done
@@
-41,8
+43,8
@@
else
fi
fi
if [ "$dfb_inc_dir" = "0" ]; then
fi
fi
if [ "$dfb_inc_dir" = "0" ]; then
- echo "dfb includes
missing
..."
-
exit
1
+ echo "dfb includes
not found
..."
+
nodfb=
1
fi
dfb_lib_dir="0"
if [ -z "$dfblib" ]; then
fi
dfb_lib_dir="0"
if [ -z "$dfblib" ]; then
@@
-57,20
+59,41
@@
else
fi
fi
if [ "$dfb_lib_dir" = "0" ]; then
fi
fi
if [ "$dfb_lib_dir" = "0" ]; then
- echo "dfb libs
missing
..."
-
exit
1
+ echo "dfb libs
not found
..."
+
nodfb=
1
fi
fi
-echo "directfb installation looks good :)"
+
+[ "$nodfb" = "0" ] && echo "directfb installation looks good :)"
echo "creating Makefile"
echo "creating Makefile"
+
cat > Makefile << EOF
# $name Makefile, created `date`
INCLUDEDIR = /usr/include
cat > Makefile << EOF
# $name Makefile, created `date`
INCLUDEDIR = /usr/include
+EOF
+
+if [ "$nodfb" = "0" ]; then
+
+cat >> Makefile << EOF
CFLAGS = -DDEBUG -DUSE_DFB_API -DFONT=\"$prefix/share/$name/decker.ttf\" -O3 -Wall -I$dfb_inc_dir
LIBS = -L$dfb_lib_dir -ldirectfb
OBJS = random.o dfbapi.o
CFLAGS = -DDEBUG -DUSE_DFB_API -DFONT=\"$prefix/share/$name/decker.ttf\" -O3 -Wall -I$dfb_inc_dir
LIBS = -L$dfb_lib_dir -ldirectfb
OBJS = random.o dfbapi.o
+EOF
+
+else
+
+cat >> Makefile << EOF
+CFLAGS = -DDEBUG -DNODFB -O3 -Wall
+LIBS = -lm
+
+OBJS = random.o
+EOF
+
+fi
+
+cat >> Makefile << EOF
OBJS2 = $name
$name: \$(OBJS)
OBJS2 = $name
$name: \$(OBJS)