/[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 258 by matthewc, Thu Nov 14 13:56:16 2002 UTC revision 298 by matthewc, Thu Jan 30 10:57:38 2003 UTC
# Line 13  echo "# Generated by $0 $*" >Makeconf Line 13  echo "# Generated by $0 $*" >Makeconf
13    
14  # Process command line options  # Process command line options
15    
16  cflags=  cflags='-DKEYMAP_PATH=\"$(KEYMAP_PATH)\"'
17  ldflags=  ldflags=''
18  rpath=  rpath=
19    
20  for arg in $*; do  for arg in $*; do
# Line 42  case $arg in Line 42  case $arg in
42      extrassldir=$optarg      extrassldir=$optarg
43      ;;      ;;
44    --without-openssl*)    --without-openssl*)
45        withoutopenssl=yes
46      ;;      ;;
47    --with-egd-socket=*)    --with-egd-socket=*)
48      extraegdpath=$optarg      extraegdpath=$optarg
# Line 65  case $arg in Line 66  case $arg in
66      echo "Build configuration:"      echo "Build configuration:"
67      echo " --with-x=DIR            look for X Window System at DIR/include, DIR/lib"      echo " --with-x=DIR            look for X Window System at DIR/include, DIR/lib"
68      echo " --with-openssl=DIR      look for OpenSSL at DIR/include, DIR/lib"      echo " --with-openssl=DIR      look for OpenSSL at DIR/include, DIR/lib"
69        echo " --without-openssl       use in-tree crypto, even if OpenSSL is available"
70      echo " --with-egd-socket=PATH  look for Entropy Gathering Daemon socket at PATH"      echo " --with-egd-socket=PATH  look for Entropy Gathering Daemon socket at PATH"
71      echo " --with-debug            enable protocol debugging output"      echo " --with-debug            enable protocol debugging output"
72      echo " --with-debug-kbd        enable debugging of keyboard handling"      echo " --with-debug-kbd        enable debugging of keyboard handling"
# Line 140  fi Line 142  fi
142  ldflags="$ldflags -lX11"  ldflags="$ldflags -lX11"
143    
144    
145  # Find OpenSSL installation if available  if [ -z "$withoutopenssl" ]; then
146        # Find OpenSSL installation if available
147  ssldirs="$extrassldir /usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local"      ssldirs="$extrassldir /usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local"
148        
149  for dir in $ssldirs; do      for dir in $ssldirs; do
150      if [ -f $dir/include/openssl/rc4.h ]; then          if [ -f $dir/include/openssl/rc4.h ]; then
151          ssldir=$dir              ssldir=$dir
152          break              break
153      fi          fi
154  done      done
155        
156  if [ -z "$ssldir" ]; then      if [ -z "$ssldir" ]; then
157      echo "WARNING: could not find OpenSSL headers"          echo "WARNING: could not find OpenSSL headers"
158      echo "(searched for include/openssl/rc4.h in: $ssldirs)"          echo "(searched for include/openssl/rc4.h in: $ssldirs)"
159      echo "Using in-tree crypto; installing OpenSSL is recommended."          echo "Using in-tree crypto; installing OpenSSL is recommended."
160      echo          echo
161  else      else
162      echo "OpenSSL:"          echo "OpenSSL:"
163      echo "  includes  $ssldir/include"          echo "  includes  $ssldir/include"
164      echo "  libraries $ssldir/lib"          echo "  libraries $ssldir/lib"
165      echo          echo
166        
167      echo "CRYPTOBJ    =" >>Makeconf          echo "CRYPTOBJ    =" >>Makeconf
168        
169      if [ $ssldir != "/usr" ]; then          if [ $ssldir != "/usr" ]; then
170          cflags="$cflags -I$ssldir/include"              cflags="$cflags -I$ssldir/include"
171          ldflags="$ldflags -L$ssldir/lib"              ldflags="$ldflags -L$ssldir/lib"
172          rpath="$rpath:$ssldir/lib"              rpath="$rpath:$ssldir/lib"
173            fi
174        
175            cflags="$cflags -DWITH_OPENSSL"
176            ldflags="$ldflags -lcrypto"
177      fi      fi
   
     cflags="$cflags -DWITH_OPENSSL"  
     ldflags="$ldflags -lcrypto"  
178  fi  fi
179        
180    
181  # 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
182    
# Line 217  case `uname -s` in Line 220  case `uname -s` in
220  esac  esac
221    
222    
223  echo "CFLAGS     += $cflags" >>Makeconf  echo "CFLAGS      = $cflags" >>Makeconf
224  echo "LDFLAGS    += $ldflags" >>Makeconf  echo "LDFLAGS     = $ldflags" >>Makeconf
225    
226  echo "configure complete - now run make"  echo "configure complete - now run make"
227    

Legend:
Removed from v.258  
changed lines
  Added in v.298

  ViewVC Help
Powered by ViewVC 1.1.26