blob: e68deaea8ff736499afb995cb712f6c3f8dca008 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
#
# PostgreSQL Build Script
#
if echo '\c' | grep -s c >/dev/null 2>&1
then
ECHO_N="echo -n"
ECHO_C=""
else
ECHO_N="echo"
ECHO_C='\c'
fi
$ECHO_N "Additional directories to search for .h files []: $ECHO_C"
read a
if [ "$a." = "." ]
then
ADD_INC_DIRS=
else
ADD_INC_DIRS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-I\1@; s@ \([^ ]\)@ -I\1@g'`
INC_CFLAGS="$ADD_INC_DIRS"
CPPFLAGS="$ADD_INC_DIRS" ; export CPPFLAGS
fi
$ECHO_N "Additional directories to search for library files []: $ECHO_C"
read a
if [ "$a." != "." ]
then
ADD_LIB_DIRS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-L\1@; s@ \([^ ]\)@ -L\1@g'`
LDFLAGS="$ADD_LIB_DIRS" ; export LDFLAGS
fi
./configure
|