summaryrefslogblamecommitdiff
path: root/graphics/cqcam/files/patch-ab
blob: 4d89752a3c315cadebe15c15d0b54ded07e6daa6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                
                                        

                                                                      






                               
                       
                      
                     



                                                
                                  
                             
                       
                      
                     

                                                     
                                                 
                                       
                               


                           










                                        









                                                   
                     

                         
                             
                         
 
     
    
--- configure.orig	Thu Aug 17 19:41:42 2000
+++ configure	Fri Oct 13 00:52:28 2000
@@ -1182,8 +1182,8 @@
 echo "configure:1183: checking if the compiler understands -pipe" >&5
   OLDCC="$CC"
   OLDCXX="$CXX"
-  CC="$CC -pipe"
-  CXX="$CXX -pipe"
+  CC="$CC"
+  CXX="$CXX"
   cat > conftest.$ac_ext <<EOF
 #line 1189 "configure"
 #include "confdefs.h"
@@ -1707,7 +1707,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lgtk `$gtkbin""gtk-config --libs` $LIBS"
+LIBS="`$GTK_CONFIG --libs` $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 1713 "configure"
 #include "confdefs.h"
@@ -1746,7 +1746,7 @@
 
   echo $ac_n "checking GTK+ version""... $ac_c" 1>&6
 echo "configure:1749: checking GTK+ version" >&5
-  GTKV=`$gtkbin""gtk-config --version`
+  GTKV=`$GTK_CONFIG --version`
   echo "$ac_t""$GTKV" 1>&6
   case "$GTKV" in
     1.0.*)
@@ -1756,7 +1756,8 @@
       GTK_CFLAGS='-DHAVE_GTK_1_1'
       ;;
     *)
-      GTK_CFLAGS=''
+      GTK_CFLAGS=`$GTK_CONFIG --cflags`
+      GTK_LIBS=`$GTK_CONFIG --libs`
       ;;
   esac
 fi
@@ -1942,8 +1943,8 @@
     OS_LIBCQCAM_OBJS=''
   ;;
   freebsd*)
-    OS_CFLAGS='-O2 -I/usr/local/include -DFREEBSD'
-    OS_LDFLAGS='-L/usr/local/lib'
+    OS_CFLAGS="$CXXFLAGS $CPPFLAGS -DFREEBSD"
+    OS_LDFLAGS="$LDFLAGS"
     OS_LIBCQCAM_OBJS=''
   ;;
   bsdi*)
@@ -2179,6 +2180,7 @@
 s%@bingroup@%$bingroup%g
 s%@gtkbin@%$gtkbin%g
 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
+s%@GTK_LIBS@%$GTK_LIBS%g
 
 CEOF
 EOF