3
# This is not a real autoconf configure script.
4
# I will not ship a configure script that is larger than
5
# the generated linux_logo executable.
6
# This is a simple shell script that gathers the info linux_logo
7
# needs, and should be compatible enough.
8
# Tested on Linux, Irix, Solaris and FreeBSD
13
echo "Usage: $0 [ --prefix=PATH ]"
22
--prefix) PREFIX="${1#*=}"; shift;;
23
*) break;; # terminate while loop
31
INSTALL=`which install`
33
if [ -z "$PREFIX" ]; then
40
if [ $XGETTEXT_MISSING -eq 0 ]; then
47
if [ $GCC_MISSING -eq 1 ]; then
50
if [ $CC_MISSING -eq 1 ]; then
51
echo "C compiler not found!"
59
LIBSYSINFO=libsysinfo-0.2.1
63
if [ $CC = gcc ]; then
69
$CROSS$CC $CFLAGS -c intl_test.c
75
echo "CONFIGURING LINUX_LOGO"
76
echo " Detected Architecture: "$ARCH
77
echo " Detected Operating System: "$OS
78
echo " Install prefix: "$PREFIX
79
echo " Install program: "$INSTALL
80
echo " xgettext: "$XGETTEXT
81
if [ $INTL_MISSING -ne 0 ]; then
82
echo " libintl.h not found, disabling i18n support"
88
echo " libsysinfo: "$LIBSYSINFO
89
echo " C Compiler : "$CC
90
echo " CFLAGS : "$CFLAGS
92
echo "CC=$CC" > Makefile.default
93
echo "ARCH=$ARCH" >> Makefile.default
94
echo "OS=$OS" >> Makefile.default
95
echo "PREFIX=$PREFIX" >> Makefile.default
96
echo "INSTALL=$INSTALL" >> Makefile.default
97
echo "CFLAGS=$CFLAGS" >> Makefile.default
98
echo "LIBSYSINFO=$LIBSYSINFO" >> Makefile.default
99
echo "LDFLAGS=$LDFLAGS" >> Makefile.default
100
echo "XGETTEXT=$XGETTEXT" >> Makefile.default
101
echo "USE_I18N=$USE_I18N" >> Makefile.default
102
echo "CONFIGURE_RAN=1" >> Makefile.default
105
cd $LIBSYSINFO && ./configure
107
echo "If cross compiling set the CROSS variable"
109
echo "Done configuring, run 'make'"