1997-02-04 23:14:24 +01:00
|
|
|
#!/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
|
|
|
|
|
1997-02-05 22:28:22 +01:00
|
|
|
$ECHO_N "Additional directories to search for .h files []: $ECHO_C"
|
1997-02-04 23:14:24 +01:00
|
|
|
read a
|
1997-02-05 22:28:22 +01:00
|
|
|
if [ "$a." = "." ]
|
1997-02-04 23:14:24 +01:00
|
|
|
then
|
1997-02-05 22:28:22 +01:00
|
|
|
ADD_INC_DIRS=
|
|
|
|
else
|
1997-02-05 05:47:20 +01:00
|
|
|
ADD_INC_DIRS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-I\1@; s@ \([^ ]\)@ -I\1@g'`
|
1997-02-05 22:28:22 +01:00
|
|
|
INC_CFLAGS="$ADD_INC_DIRS"
|
1997-02-05 05:47:20 +01:00
|
|
|
CPPFLAGS="$ADD_INC_DIRS" ; export CPPFLAGS
|
1997-02-05 22:28:22 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
$ECHO_N "Additional directories to search for library files []: $ECHO_C"
|
|
|
|
read a
|
|
|
|
if [ "$a." != "." ]
|
|
|
|
then
|
1997-02-04 23:14:24 +01:00
|
|
|
ADD_LIB_DIRS=`echo "$a" | sed 's@ *@ @g; s@^\([^ ]\)@-L\1@; s@ \([^ ]\)@ -L\1@g'`
|
1997-02-05 05:47:20 +01:00
|
|
|
LDFLAGS="$ADD_LIB_DIRS" ; export LDFLAGS
|
1997-02-04 23:14:24 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
./configure
|
|
|
|
|