/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 187 - (hide annotations)
Tue Sep 24 05:14:14 2002 UTC (21 years, 8 months ago) by matthewc
File size: 2472 byte(s)
Test for X includes with -f instead of -e (-e is non-portable)

1 matty 30 #!/bin/sh
2     #
3     # rdesktop: A Remote Desktop Protocol client
4     # configure script
5     # Copyright (C) Matthew Chapman 1999-2001
6     #
7    
8     echo "# Generated by $0 $*" >Makeconf
9    
10 matthewc 156
11     # Choose gcc if available
12    
13     if `which gcc >/dev/null`; then
14     echo "CC = gcc" >>Makeconf
15     fi
16    
17    
18     # Find X installation
19    
20     xdirs="/usr/X11 /usr/X11R6 /usr/openwin /usr /usr/local/X11 /usr/local/X11R6 /usr/local"
21    
22     for dir in $xdirs; do
23 matthewc 187 if [ -f $dir/include/X11/Xlib.h ]; then
24 matthewc 156 xdir=$dir
25     break
26     fi
27     done
28    
29     if [ -z $xdir ]; then
30     echo "ERROR: could not find X installation"
31     echo "(searched for include/X11/Xlib.h in $xdirs)"
32     exit 1
33     fi
34    
35     echo "X11DIR = $xdir" >> Makeconf
36    
37    
38     # Add platform-specific options
39    
40     case `uname -s` in
41     SunOS)
42     echo "LDFLAGS += -R$(X11DIR)/lib -lsocket -lnsl" >>Makeconf
43     ;;
44     esac
45    
46    
47     # Process command line options
48    
49 matty 30 for arg in $*; do
50     optarg=`echo $arg | sed 's/[-a-z]*=//'`
51     case $arg in
52     --prefix=*)
53 matthewc 156 echo "prefix = $optarg" >>Makeconf
54 matty 30 ;;
55     --exec-prefix=*)
56 matthewc 156 echo "exec_prefix = $optarg" >>Makeconf
57 matty 30 ;;
58     --bindir=*)
59 matthewc 156 echo "bindir = $optarg" >>Makeconf
60 matty 30 ;;
61     --mandir=*)
62 matthewc 156 echo "mandir = $optarg" >>Makeconf
63 matty 30 ;;
64 astrand 98 --sharedir=*)
65 matthewc 156 echo "datadir = $optarg" >>Makeconf
66 astrand 98 ;;
67 matty 32 --with-openssl*)
68 matthewc 156 echo "CFLAGS += -DWITH_OPENSSL" >>Makeconf
69     echo "LDFLAGS += -lcrypto" >>Makeconf
70     echo "CRYPTOBJ =" >>Makeconf
71 matty 32 ;;
72     --without-openssl*)
73     ;;
74 astrand 63 --with-debug)
75 matthewc 156 echo "CFLAGS += -g -DWITH_DEBUG" >>Makeconf
76 matty 30 ;;
77 astrand 63 --with-debug-kbd)
78 matthewc 156 echo "CFLAGS += -g -DWITH_DEBUG_KBD" >>Makeconf
79 astrand 63 ;;
80 matty 30 --without-debug*)
81     ;;
82     *)
83     echo "rdesktop build configuration script"
84     echo
85     echo "Target directories:"
86     echo " --prefix=PREFIX location for architecture-independent files"
87     echo " --exec-prefix=EPREFIX location for architecture-dependent files"
88     echo " --bindir=BINDIR location for program binaries [EPREFIX/bin]"
89     echo " --mandir=MANDIR location for man pages [PREFIX/man]"
90 astrand 98 echo " --sharedir=SHAREDIR location for architecture-independent shared files [PREFIX/share/rdesktop]"
91 matty 30 echo
92     echo "Build configuration:"
93 matty 32 echo " --with-openssl use system OpenSSL libraries for crypto"
94 matthewc 156 echo " --with-debug enable protocol debugging output"
95 astrand 66 echo " --with-debug-kbd enable debugging of keyboard handling"
96 matty 30 echo
97     rm -f Makeconf
98     exit 1
99     ;;
100     esac
101     done
102    
103     echo "configure complete - now run make"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26