/[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 30 by matty, Fri Sep 14 13:51:38 2001 UTC revision 202 by matthewc, Thu Sep 26 14:01:42 2002 UTC
# Line 5  Line 5 
5  # Copyright (C) Matthew Chapman 1999-2001  # Copyright (C) Matthew Chapman 1999-2001
6  #  #
7    
8    echo "rdesktop build configuration script"
9    echo
10    
11  echo "# Generated by $0 $*" >Makeconf  echo "# Generated by $0 $*" >Makeconf
12    
13    
14    # Process command line options
15    
16    cflags=
17    ldflags=
18    
19  for arg in $*; do  for arg in $*; do
20  optarg=`echo $arg | sed 's/[-a-z]*=//'`      optarg=`echo $arg | sed 's/[-a-z]*=//'`    
21  case $arg in  case $arg in
22    --prefix=*)    --prefix=*)
23      echo "PREFIX  = $optarg" >>Makeconf      echo "prefix      = $optarg" >>Makeconf
24      ;;      ;;
25    --exec-prefix=*)    --exec-prefix=*)
26      echo "EPREFIX = $optarg" >>Makeconf      echo "exec_prefix = $optarg" >>Makeconf
27      ;;      ;;
28    --bindir=*)    --bindir=*)
29      echo "BINDIR  = $optarg" >>Makeconf      echo "bindir      = $optarg" >>Makeconf
30      ;;      ;;
31    --mandir=*)    --mandir=*)
32      echo "MANDIR  = $optarg" >>Makeconf      echo "mandir      = $optarg" >>Makeconf
33        ;;
34      --sharedir=*)
35        echo "datadir     = $optarg" >>Makeconf
36      ;;      ;;
37    --with-debug*)    --with-openssl*)
38      echo "CFLAGS += -g -DWITH_DEBUG" >>Makeconf      ;;
39      --without-openssl*)
40        ;;
41      --with-debug)
42        cflags="$cflags -g -DWITH_DEBUG"
43        ;;
44      --with-debug-kbd)
45        cflags="$cflags -g -DWITH_DEBUG_KBD"
46      ;;      ;;
47    --without-debug*)    --without-debug*)
48      ;;      ;;
49    *)    *)
     echo "rdesktop build configuration script"  
     echo  
50      echo "Target directories:"      echo "Target directories:"
51      echo " --prefix=PREFIX        location for architecture-independent files"      echo " --prefix=PREFIX        location for architecture-independent files"
52      echo " --exec-prefix=EPREFIX  location for architecture-dependent files"      echo " --exec-prefix=EPREFIX  location for architecture-dependent files"
53      echo " --bindir=BINDIR        location for program binaries [EPREFIX/bin]"      echo " --bindir=BINDIR        location for program binaries [EPREFIX/bin]"
54      echo " --mandir=MANDIR        location for man pages [PREFIX/man]"      echo " --mandir=MANDIR        location for man pages [PREFIX/man]"
55        echo " --sharedir=SHAREDIR    location for architecture-independent shared files [PREFIX/share/rdesktop]"
56      echo      echo
57      echo "Build configuration:"      echo "Build configuration:"
58      echo " --with-debug           enable debugging output"      echo " --with-debug           enable protocol debugging output"
59        echo " --with-debug-kbd       enable debugging of keyboard handling"
60      echo      echo
61      rm -f Makeconf      rm -f Makeconf
62      exit 1      exit 1
# Line 45  case $arg in Line 64  case $arg in
64  esac  esac
65  done  done
66    
67    
68    # Platform-specific options
69    
70    need_runpath=no
71    
72    case `uname -s` in
73      SunOS)
74        ldflags="$ldflags -lsocket -lnsl"
75        need_runpath=yes
76        ;;
77    esac
78    
79    
80    # Find X installation
81    
82    xdirs="/usr/X11R6 /usr/X11 /usr/openwin /usr /usr/local/X11R6 /usr/local/X11 /usr/local"
83    
84    for dir in $xdirs; do
85        if [ -f $dir/include/X11/Xlib.h ]; then
86            xdir=$dir
87            break
88        fi
89    done
90    
91    if [ -z "$xdir" ]; then
92        echo "ERROR: could not find X Window System headers"
93        echo "(searched for include/X11/Xlib.h in $xdirs)"
94    
95        # additional helpful information for Linux users
96        if [ -f /etc/redhat_release ]; then
97          echo You probably need to install the XFree86-devel package
98        elif [ -f /etc/debian_version ]; then
99          echo You probably need to install the xlibs-dev package
100        fi
101        exit 1
102    fi
103    
104    echo "X Window System:"
105    echo "  includes  $xdir/include"
106    echo "  libraries $xdir/lib"
107    echo
108    
109    if [ $xdir != "/usr" ]; then
110        cflags="$cflags -I$xdir/include"
111        ldflags="$ldflags -L$xdir/lib"
112        if [ $need_runpath = "yes" ]; then
113            ldflags="$ldflags -R$xdir/lib"
114        fi
115    fi
116    
117    ldflags="$ldflags -lX11"
118    
119    
120    # Find OpenSSL installation if available
121    
122    ssldirs="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local"
123    
124    for dir in $ssldirs; do
125        if [ -f $dir/include/openssl/rc4.h ]; then
126            ssldir=$dir
127            break
128        fi
129    done
130    
131    if [ -z "$ssldir" ]; then
132        echo "WARNING: could not find OpenSSL headers"
133        echo "(searched for include/openssl/rc4.h in $ssldirs)"
134        echo "Using in-tree crypto; installing OpenSSL is recommended."
135        echo
136    else
137        echo "OpenSSL:"
138        echo "  includes  $ssldir/include"
139        echo "  libraries $ssldir/lib"
140        echo
141    
142        echo "CRYPTOBJ    =" >>Makeconf
143    
144        if [ $ssldir != "/usr" ]; then
145            cflags="$cflags -I$ssldir/include"
146            ldflags="$ldflags -L$ssldir/lib"
147            if [ $need_runpath = "yes" ]; then
148                ldflags="$ldflags -R$ssldir/lib"
149            fi
150        fi
151    
152        cflags="$cflags -DWITH_OPENSSL"
153        ldflags="$ldflags -lcrypto"
154    fi
155    
156    
157    echo "CFLAGS     += $cflags" >>Makeconf
158    echo "LDFLAGS    += $ldflags" >>Makeconf
159    
160  echo "configure complete - now run make"  echo "configure complete - now run make"

Legend:
Removed from v.30  
changed lines
  Added in v.202

  ViewVC Help
Powered by ViewVC 1.1.26