1#!/bin/sh 2############################################################################## 3# configure.gnu 4# 5# Wrapper to configure 6# 7# from Persistence of Vision(tm) Ray Tracer version 3.6. 8# Copyright 1991-2003 Persistence of Vision Team 9# Copyright 2003-2004 Persistence of Vision Raytracer Pty. Ltd. 10#--------------------------------------------------------------------------- 11# NOTICE: This source code file is provided so that users may experiment 12# with enhancements to POV-Ray and to port the software to platforms other 13# than those supported by the POV-Ray developers. There are strict rules 14# regarding how you are permitted to use this file. These rules are contained 15# in the distribution and derivative versions licenses which should have been 16# provided with this file. 17# 18# These licences may be found online, linked from the end-user license 19# agreement that is located at http://www.povray.org/povlegal.html 20#--------------------------------------------------------------------------- 21# This program is based on the popular DKB raytracer version 2.12. 22# DKBTrace was originally written by David K. Buck. 23# DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins. 24############################################################################## 25 26# configure.gnu for the source distribution of POV-Ray 3.6 for UNIX 27# Written by Nicolas Calimet <pov4grasp@free.fr> 28 29# get srcdir 30srcdir=`echo $* | grep srcdir | sed 's,.*srcdir=\([^[:space:]]*\).*,\1,g'` 31if test -z "$srcdir"; then 32 srcdir="." 33fi 34 35# get cache-file 36cachefile=`echo $* | grep cache-file | sed 's,.*cache-file=\([^[:space:]]*\).*,\1,g'` 37 38# Minimal compiler flag. 39CFLAGS=${CFLAGS:--O} 40export CFLAGS 41 42# Process arguments (remove VAR=VALUE args, which are exported). 43# cache-file and srcdir were the last arguments, so remove all what follows 44# the first VAR argument. 45args= 46for arg in $*; do 47 arg=`echo $arg | sed 's,^[^-].*,,; s,-*help=[^[:space:]]*,--help,g'` 48 if test -z "$arg"; then break; fi 49 args="$args $arg" 50done 51if test -z "`echo $args | grep cache-file`"; then 52 args="--cache-file=$cachefile $args" 53fi 54if test -z "`echo $args | grep srcdir`"; then 55 args="--srcdir=$srcdir $args" 56fi 57 58# run configure 59case "$args" in 60 *help*) 61 echo "Configuration of libjpeg 6b:" 62 echo "" 63 ;; 64 65 *) 66 echo "configure.gnu: configuring libjpeg 6b" 67 echo "configure.gnu: running $srcdir/configure $args" 68 ;; 69esac 70$srcdir/configure $args 71 72if test -f Makefile; then 73 echo "configure.gnu: editing Makefile" 74 sed 's,\(libjpeg.$(A)\).*,libjpeg.a,g' Makefile > Makefile.tmp 75 mv Makefile.tmp Makefile 76fi 77echo "" 78