/[rdesktop]/sourceforge.net/trunk/rdesktop/configure
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 220 by matthewc, Thu Oct 10 07:25:31 2002 UTC revision 221 by matthewc, Thu Oct 10 07:47:29 2002 UTC
# Line 15  echo "# Generated by $0 $*" >Makeconf Line 15  echo "# Generated by $0 $*" >Makeconf
15    
16  cflags=  cflags=
17  ldflags=  ldflags=
18    rpath=
19    
20  for arg in $*; do  for arg in $*; do
21  optarg=`echo $arg | sed 's/[-a-z]*=//'`  optarg=`echo $arg | sed 's/[-a-z]*=//'`
# Line 75  esac Line 76  esac
76  done  done
77    
78    
 # Platform-specific options  
   
 need_runpath=no  
   
 case `uname -s` in  
   SunOS)  
     ldflags="$ldflags -lsocket -lnsl"  
     need_runpath=yes  
     ;;  
 esac  
   
   
79  # Find X installation  # Find X installation
80    
81  xdirs="$extraxdir /usr/X11R6 /usr/X11 /usr/openwin /usr /usr/local/X11R6 /usr/local/X11 /usr/local"  xdirs="$extraxdir /usr/X11R6 /usr/X11 /usr/openwin /usr /usr/local/X11R6 /usr/local/X11 /usr/local"
# Line 119  echo Line 108  echo
108  if [ $xdir != "/usr" ]; then  if [ $xdir != "/usr" ]; then
109      cflags="$cflags -I$xdir/include"      cflags="$cflags -I$xdir/include"
110      ldflags="$ldflags -L$xdir/lib"      ldflags="$ldflags -L$xdir/lib"
111      if [ $need_runpath = "yes" ]; then      rpath="$rpath:$xdir/lib"
         ldflags="$ldflags -R$xdir/lib"  
     fi  
112  fi  fi
113    
114  ldflags="$ldflags -lX11"  ldflags="$ldflags -lX11"
# Line 154  else Line 141  else
141      if [ $ssldir != "/usr" ]; then      if [ $ssldir != "/usr" ]; then
142          cflags="$cflags -I$ssldir/include"          cflags="$cflags -I$ssldir/include"
143          ldflags="$ldflags -L$ssldir/lib"          ldflags="$ldflags -L$ssldir/lib"
144          if [ $need_runpath = "yes" ]; then          rpath="$rpath:$ssldir/lib"
             ldflags="$ldflags -R$ssldir/lib"  
         fi  
145      fi      fi
146    
147      cflags="$cflags -DWITH_OPENSSL"      cflags="$cflags -DWITH_OPENSSL"
# Line 165  fi Line 150  fi
150    
151    
152  # Find EGD socket if we don't have /dev/urandom or /dev/random  # Find EGD socket if we don't have /dev/urandom or /dev/random
153    
154  if [ ! -c /dev/random -a ! -c /dev/urandom ]; then  if [ ! -c /dev/random -a ! -c /dev/urandom ]; then
155      egdpaths="$extraegdpath /var/run/egd-pool /dev/egd-pool /etc/egd-pool /etc/entropy"      egdpaths="$extraegdpath /var/run/egd-pool /dev/egd-pool /etc/egd-pool /etc/entropy"
156    
# Line 189  if [ ! -c /dev/random -a ! -c /dev/urand Line 175  if [ ! -c /dev/random -a ! -c /dev/urand
175      fi      fi
176  fi  fi
177    
178    
179    # Platform-specific options
180    
181    # strip leading colon from rpath
182    rpath=`echo $rpath |sed 's/^://'`
183    
184    case `uname -s` in
185      SunOS)
186        ldflags="$ldflags -lsocket -lnsl -R$rpath"
187        ;;
188      OSF1)
189        ldflags="$ldflags -Wl,-rpath,$rpath"
190        ;;
191    esac
192    
193    
194  echo "CFLAGS     += $cflags" >>Makeconf  echo "CFLAGS     += $cflags" >>Makeconf
195  echo "LDFLAGS    += $ldflags" >>Makeconf  echo "LDFLAGS    += $ldflags" >>Makeconf
196    
197  echo "configure complete - now run make"  echo "configure complete - now run make"
198    

Legend:
Removed from v.220  
changed lines
  Added in v.221

  ViewVC Help
Powered by ViewVC 1.1.26