/[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 451 by matthewc, Thu Aug 28 03:13:51 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
49      ;;      ;;
50      --with-libvncserver)
51        withvncserver=yes
52        ;;
53      --with-libvncserver-config=*)
54        vncserverconfig=$optarg
55        ;;
56    --with-debug)    --with-debug)
57      cflags="$cflags -g -DWITH_DEBUG"      cflags="$cflags -g -DWITH_DEBUG"
58      ;;      ;;
59    --with-debug-kbd)    --with-debug-kbd)
60      cflags="$cflags -g -DWITH_DEBUG_KBD"      cflags="$cflags -g -DWITH_DEBUG_KBD"
61      ;;      ;;
62      --with-debug-rdp5)
63        cflags="$cflags -g -DWITH_DEBUG_RDP5"
64        ;;
65      --with-debug-clipboard)
66        cflags="$cflags -g -DWITH_DEBUG_CLIPBOARD"
67        ;;
68    --without-debug*)    --without-debug*)
69      ;;      ;;
70    *)    *)
# Line 65  case $arg in Line 78  case $arg in
78      echo "Build configuration:"      echo "Build configuration:"
79      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"
80      echo " --with-openssl=DIR      look for OpenSSL at DIR/include, DIR/lib"      echo " --with-openssl=DIR      look for OpenSSL at DIR/include, DIR/lib"
81        echo " --without-openssl       use in-tree crypto, even if OpenSSL is available"
82      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"
83        echo " --with-libvncserver     make rdp2vnc"
84        echo " --with-libvncserver-config=CMD"
85        echo "                         use CMD as libvncserver-config"
86      echo " --with-debug            enable protocol debugging output"      echo " --with-debug            enable protocol debugging output"
87      echo " --with-debug-kbd        enable debugging of keyboard handling"      echo " --with-debug-kbd        enable debugging of keyboard handling"
88        echo " --with-debug-rdp5       enable debugging of RDP5 code"
89        echo " --with-debug-clipboard  enable debugging of clipboard code"
90      echo      echo
91      rm -f Makeconf      rm -f Makeconf
92      exit 1      exit 1
# Line 118  if [ -z "$xdir" ]; then Line 137  if [ -z "$xdir" ]; then
137      echo "(searched for include/X11/Xlib.h in: $xdirs)"      echo "(searched for include/X11/Xlib.h in: $xdirs)"
138    
139      # additional helpful information for Linux users      # additional helpful information for Linux users
140      if [ -f /etc/redhat_release ]; then      if [ -f /etc/redhat-release ]; then
141        echo You probably need to install the XFree86-devel package        echo You probably need to install the XFree86-devel package
142      elif [ -f /etc/debian_version ]; then      elif [ -f /etc/debian_version ]; then
143        echo You probably need to install the xlibs-dev package        echo You probably need to install the xlibs-dev package
# Line 137  if [ $xdir != "/usr" ]; then Line 156  if [ $xdir != "/usr" ]; then
156      rpath="$rpath:$xdir/lib"      rpath="$rpath:$xdir/lib"
157  fi  fi
158    
159  ldflags="$ldflags -lX11"  ldflags="$ldflags"
160    targets="$targets rdesktop"
161    
162  # Find OpenSSL installation if available  if [ -z "$withoutopenssl" ]; then
163        # Find OpenSSL installation if available
164  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"
165        
166  for dir in $ssldirs; do      for dir in $ssldirs; do
167      if [ -f $dir/include/openssl/rc4.h ]; then          if [ -f $dir/include/openssl/rc4.h ]; then
168          ssldir=$dir              ssldir=$dir
169          break              break
170      fi          fi
171  done      done
172        
173  if [ -z "$ssldir" ]; then      if [ -z "$ssldir" ]; then
174      echo "WARNING: could not find OpenSSL headers"          echo "WARNING: could not find OpenSSL headers"
175      echo "(searched for include/openssl/rc4.h in: $ssldirs)"          echo "(searched for include/openssl/rc4.h in: $ssldirs)"
176      echo "Using in-tree crypto; installing OpenSSL is recommended."          echo "Using in-tree crypto; installing OpenSSL is recommended."
177      echo          echo
178  else      else
179      echo "OpenSSL:"          echo "OpenSSL:"
180      echo "  includes  $ssldir/include"          echo "  includes  $ssldir/include"
181      echo "  libraries $ssldir/lib"          echo "  libraries $ssldir/lib"
182      echo          echo
183        
184      echo "CRYPTOBJ    =" >>Makeconf          echo "CRYPTOBJ    =" >>Makeconf
185        
186      if [ $ssldir != "/usr" ]; then          if [ $ssldir != "/usr" ]; then
187          cflags="$cflags -I$ssldir/include"              cflags="$cflags -I$ssldir/include"
188          ldflags="$ldflags -L$ssldir/lib"              ldflags="$ldflags -L$ssldir/lib"
189          rpath="$rpath:$ssldir/lib"              rpath="$rpath:$ssldir/lib"
190      fi          fi
191        
192            cflags="$cflags -DWITH_OPENSSL"
193            ldflags="$ldflags -lcrypto"
194        fi
195    fi
196        
197    if [ ! -z "$withvncserver" ]; then
198        if [ -z "$vncserverconfig" ]; then
199            vncserverconfig=libvncserver-config
200        fi
201    
202        echo "VNCINC=`$vncserverconfig --cflags`" >> Makeconf
203        echo "LDVNC=`$vncserverconfig --libs`" >> Makeconf
204        echo "CCLD=`$vncserverconfig --link`" >> Makeconf
205        echo >> Makeconf
206        targets="$targets rdp2vnc"
207    
208      cflags="$cflags -DWITH_OPENSSL"      echo "Found libvncserver: Building rdp2vnc"
     ldflags="$ldflags -lcrypto"  
209  fi  fi
210    
211    
# Line 217  case `uname -s` in Line 251  case `uname -s` in
251  esac  esac
252    
253    
254  echo "CFLAGS     += $cflags" >>Makeconf  echo "CFLAGS      = $cflags" >>Makeconf
255  echo "LDFLAGS    += $ldflags" >>Makeconf  echo "LDFLAGS     = $ldflags" >>Makeconf
256    echo "TARGETS     = $targets" >>Makeconf
257    
258  echo "configure complete - now run make"  echo "configure complete - now run make"
259    

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

  ViewVC Help
Powered by ViewVC 1.1.26