head	1.2;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.2
	RELEASE_8_1_0:1.2
	RELEASE_7_3_0:1.2
	RELEASE_8_0_0:1.2
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2;
locks; strict;
comment	@# @;


1.2
date	2007.08.23.05.23.53;	author fjoe;	state Exp;
branches;
next	1.1;

1.1
date	2007.08.21.09.43.13;	author fjoe;	state Exp;
branches;
next	;


desc
@@


1.2
log
@- Fix build on x86_64 [1]
- Fix build with gcc 4.2.1.

Pointed out by:	kris via pointyhat [1]
@
text
@--- configure.orig	2006-11-24 08:30:23.000000000 +0000
+++ configure	2007-08-23 05:06:38.042002000 +0000
@@@@ -20,7 +20,7 @@@@
 
 # configure settings to build CINT
 
-ARCHS=(linux linuxicc macgcc djgpp cygwin mingw mwerks hpux aix msvc7 msvc8 solaris solarisgcc)
+ARCHS=(linux linuxicc macgcc djgpp cygwin mingw mwerks hpux aix msvc7 msvc8 solaris solarisgcc freebsd)
 
 #############################################################
 ###
@@@@ -102,6 +102,13 @@@@
     config_GCC_defaults
 }
 
+function config_freebsd {
+    config_GCC_defaults
+    CFLAGS="${CFLAGS} -fPIC"
+    CXXFLAGS="${CXXFLAGS} -fPIC"
+    DEFAULTLIBS="`echo $DEFAULTLIBS | sed 's/-ldl//'`"
+}
+
 function config_linuxx8664gcc {
     config_GCC_defaults
 
@@@@ -326,7 +333,7 @@@@
 #        freebsd*:*:6*)         arch=freebsd5        ;;
 #        freebsd*:*:5*)         arch=freebsd5        ;;
 #        freebsd*:*:4*)         arch=freebsd4        ;;
-#        freebsd*:*:*)          arch=freebsd         ;;
+        freebsd*:*:*)          arch=freebsd         ;;
 #        hp-ux:ia64:*)          arch=hpuxia64acc     ;;
 #        hp-ux:*:*)             arch=hpuxacc         ;;
 #        hurd*:*:*)             arch=hurddeb         ;;
@@@@ -357,6 +364,8 @@@@
     esac
     if [ "x`uname -a|grep -i linux`" != "x" ]; then
         GUESSEDARCH=$arch
+    elif [ "x`uname -a|grep -i freebsd`" != "x" ]; then
+        GUESSEDARCH=$arch
     elif cl.exe >/dev/null 2>&1; then
         if [ "x`cl 2>&1|grep 'Version 14'`" != "x" ]; then
             GUESSEDARCH=msvc8
@


1.1
log
@New port: cint

CINT is a C/C++ interpreter aimed at processing C/C++ scripts.

CINT covers about 95% of ANSI C and 85% of C++. A CINT script can call
compiled classes/functions and compiled code can make callbacks to CINT
user defined functions. Utilities, like makecint and rootcint, automate
the process of embedding compiled C/C++ library code as shared objects
(as Dynamic Link Library, DLL, or shared library, .so). Source files
and shared objects can be dynamically loaded/unloaded without stopping
the CINT process. CINT offers a gdb like debugging environment for
interpreted programs.
@
text
@d1 2
a2 2
--- configure.orig	Fri Nov 24 14:30:23 2006
+++ configure	Tue Aug 21 15:02:00 2007
d12 1
a12 1
@@@@ -102,6 +102,11 @@@@
d18 2
d26 1
a26 1
@@@@ -326,7 +331,7 @@@@
d35 1
a35 2
@@@@ -356,6 +361,8 @@@@
 #            ;;
d38 2
a40 2
+    elif [ "x`uname -a|grep -i freebsd`" != "x" ]; then
         GUESSEDARCH=$arch
d43 1
@

