1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../fbv/cc.patch
5 # Copyright (C) 2007 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
19 - Rene Rebe <rene@exactcode.de>
21 diff -ur fbv-1.0b/configure fbv-1.0b-avr32/configure
22 --- fbv-1.0b/configure 2004-09-07 13:29:27.000000000 +0200
23 +++ fbv-1.0b-avr32/configure 2006-05-04 11:10:06.000000000 +0200
34 --help print this message
35 --libs=LIBS additional libraries required (try -lX11 for ungif, -lz for PNG)
36 + --cc=CC specify compiler to use
38 Directory and file names:
39 --prefix=PREFIX install files in PREFIX [/usr/local]
42 prefix:,srcdir:,bindir:,\
44 -without-libungif,without-libjpeg,without-libpng,without-bmp,libs: \
45 +without-libungif,without-libjpeg,without-libpng,without-bmp,libs:,cc: \
46 -n "$BASENAME" -- "$@")
48 if [ $? != 0 ] ; then help ; exit 1 ; fi
51 -h|--help) help ; exit 0 ;;
52 --libs) libs="$2"; shift 2 ;;
53 + --cc) CC="$2"; shift 2 ;;
54 --prefix) prefix="$2" ; shift 2 ;;
55 --srcdir) srcdir="$2" ; shift 2 ;;
56 --bindir) bindir="$2" ; shift 2 ;;
61 +[ -z "$CC" ] && CC=cc
62 [ -z "$prefix" ] && prefix="/usr/local"
63 [ -z "$bindir" ] && bindir="${prefix}/bin"
64 [ -z "$mandir" ] && mandir="${prefix}/man"
67 echo "libungif check" >>./config.log
68 echo " 1st:" >>./config.log
69 -cc 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lungif $libs
70 +$CC 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lungif $libs
71 if [ -e \$\$~test ]; then
72 libs="-lungif $libs" ; ungif="yes"
74 echo " 2nd: -lX11 -L$xdir/lib" >>./config.log
75 - cc 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lungif -lX11 -L$xdir/lib $libs
76 + $CC 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lungif -lX11 -L$xdir/lib $libs
77 if [ -e \$\$~test ]; then
78 libs="-lungif -lX11 -L$xdir/lib $libs" ; ungif="yes"
81 echo -n "checking for libjpeg presence... "
82 if [ "$jpeg" != "disabled" ]; then
84 -cc 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -ljpeg $libs
85 +$CC 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -ljpeg $libs
86 if [ -e \$\$~test ]; then
87 libs="-ljpeg $libs" ; jpeg="yes"
90 echo -n "checking for libpng presence... "
91 if [ "$png" != "disabled" ]; then
93 -cc 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lpng $libs
94 +$CC 2>>./config.log >>./config.log -o \$\$~test \$\$~test.c -lpng $libs
95 if [ -e \$\$~test ]; then
96 libs="-lpng $libs" ; png="yes"