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# Setting MISSING can prevent configure error with cygwin and 39# directories containing special caracters (such as spaces or quotes). 40MISSING="\${SHELL} $srcdir/missing" 41export MISSING 42 43# Process arguments (remove VAR=VALUE args, which are exported). 44# cache-file and srcdir were the last arguments, so remove all what follows 45# the first VAR argument. 46args= 47for arg in $*; do 48 arg=`echo $arg | sed s,^[^-].*,,` 49 if test -z "$arg"; then break; fi 50 args="$args $arg" 51done 52if test -z "`echo $args | grep cache-file`"; then 53 args="--cache-file=$cachefile $args" 54fi 55if test -z "`echo $args | grep srcdir`"; then 56 args="--srcdir=$srcdir $args" 57fi 58 59# run configure 60case "$args" in 61 *help*) 62 echo "" 63 echo "" 64 ;; 65 66 *) 67 echo "configure.gnu: configuring zlib 1.2.1" 68 echo "configure.gnu: running $srcdir/configure $args" 69 ;; 70esac 71$srcdir/configure $args 72echo "" 73