~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to .pc/instdir/configure

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
ac_help="$ac_help
18
18
  --enable-shared         build and link with shared libraries [--enable-shared]"
19
19
ac_help="$ac_help
20
 
  --enable-64bit          enable 64bit support (where applicable)"
21
 
ac_help="$ac_help
22
 
  --enable-64bit-vis      enable 64bit Sparc VIS support"
23
 
ac_help="$ac_help
24
20
  --enable-w11            use W11 library for Windows X11 emulation"
25
21
ac_help="$ac_help
26
 
  --with-cxx              support C++ functionality (default: no)"
 
22
  --with-cxx              support C++ functionality (default: yes)"
27
23
ac_help="$ac_help
28
24
  --with-macosx-archs[=arch list]
29
25
                          compile multiple architectures on MacOSX, ie.
37
33
ac_help="$ac_help
38
34
  --with-png              support PNG functionality (default: yes)"
39
35
ac_help="$ac_help
40
 
  --with-tcltk            support Tcl/Tk functionality (default: yes)"
41
 
ac_help="$ac_help
42
36
  --with-postgres         support PostgreSQL functionality (default: no)"
43
37
ac_help="$ac_help
44
38
  --with-mysql            support MySQL functionality (default: no)"
45
39
ac_help="$ac_help
46
 
  --with-sqlite           support SQLite functionality (default: no)"
47
 
ac_help="$ac_help
48
 
  --with-ffmpeg           support FFMPEG functionality (default: no)"
 
40
  --with-sqlite           support SQLite functionality (default: yes)"
49
41
ac_help="$ac_help
50
42
  --with-opengl           support OpenGL functionality (default: yes)"
51
43
ac_help="$ac_help
57
49
ac_help="$ac_help
58
50
  --with-lapack           support LAPACK functionality (default: no)"
59
51
ac_help="$ac_help
60
 
  --with-motif            support Motif functionality (default: no)"
61
 
ac_help="$ac_help
62
 
  --with-cairo            support Cairo functionality (default: no)"
63
 
ac_help="$ac_help
64
 
  --with-freetype         support FreeType functionality (default: no)"
65
 
ac_help="$ac_help
66
 
  --with-glw              support GLw functionality (default: no)"
 
52
  --with-cairo            support Cairo functionality (default: yes)"
 
53
ac_help="$ac_help
 
54
  --with-freetype         support FreeType functionality (default: yes)"
67
55
ac_help="$ac_help
68
56
  --with-nls              support NLS functionality (default: no)"
69
57
ac_help="$ac_help
71
59
ac_help="$ac_help
72
60
  --with-opendwg          support openDWG functionality (default: no)"
73
61
ac_help="$ac_help
74
 
  --with-curses           support Curses functionality (default: yes)"
75
 
ac_help="$ac_help
76
62
  --with-regex            support regex functionality (default: yes)"
77
63
ac_help="$ac_help
 
64
  --with-pthread          support POSIX threads functionality (default: no)"
 
65
ac_help="$ac_help
 
66
  --with-openmp           support OpenMP functionality (default: no)"
 
67
ac_help="$ac_help
 
68
  --with-opencl           support OpenCL functionality (default: no)"
 
69
ac_help="$ac_help
78
70
  --with-gdal[=path/gdal-config]
79
71
                          enable GDAL/OGR support (gdal-config with path,
80
72
                          e.g. '--with-gdal=/usr/local/bin/gdal-config')"
81
73
ac_help="$ac_help
82
 
  --with-python[=path/python-config]
83
 
                          enable support for wxGUI Python extensions
84
 
                          (python-config with path, e.g.
85
 
                          '--with-python=/usr/bin/python2.5-config',
 
74
  --with-liblas[=path/liblas-config]
 
75
                          enable libLAS support (liblas-config with path,
 
76
                          e.g. '--with-liblas=/usr/local/bin/liblas-config',
86
77
                          default: no)"
87
78
ac_help="$ac_help
88
79
  --with-wxwidgets[=path/wx-config]
90
81
                          e.g. '--with-wxwidgets=/usr/local/bin/wx-config',
91
82
                          default: no)"
92
83
ac_help="$ac_help
 
84
  --with-netcdf[=path/nc-config]
 
85
                          enable NetCDF support (nc-config with path,
 
86
                          e.g. '--with-nc=/usr/local/bin/nc-config',
 
87
                          default: no)"
 
88
ac_help="$ac_help
93
89
  --with-geos[=path/geos-config]
94
90
                          enable GEOS support (geos-config with path,
95
91
                          e.g. '--with-geos=/usr/local/bin/geos-config',
120
116
ac_help="$ac_help
121
117
  --with-png-libs=DIRS    PNG library files are in DIRS"
122
118
ac_help="$ac_help
123
 
  --with-tcltk-includes=DIRS
124
 
                          Tcl/Tk include files are in DIRS"
125
 
ac_help="$ac_help
126
 
  --with-tcltk-libs=DIRS  Tcl/Tk library files are in DIRS"
127
 
ac_help="$ac_help
128
119
  --with-postgres-includes=DIRS
129
120
                          PostgreSQL include files are in DIRS"
130
121
ac_help="$ac_help
141
132
ac_help="$ac_help
142
133
  --with-sqlite-libs=DIRS SQLite library files are in DIRS"
143
134
ac_help="$ac_help
144
 
  --with-ffmpeg-includes=DIRS
145
 
                          FFMPEG include files are in DIRS"
146
 
ac_help="$ac_help
147
 
  --with-ffmpeg-libs=DIRS FFMPEG library files are in DIRS"
148
 
ac_help="$ac_help
149
135
  --with-opengl-includes=DIRS
150
136
                          OpenGL include files are in DIRS"
151
137
ac_help="$ac_help
152
138
  --with-opengl-libs=DIRS OpenGL library files are in DIRS"
153
139
ac_help="$ac_help
 
140
  --with-opengl-framework=DIR
 
141
                          OpenGL framework is in DIR"
 
142
ac_help="$ac_help
154
143
  --with-odbc-includes=DIRS
155
144
                          ODBC include files are in DIRS"
156
145
ac_help="$ac_help
179
168
  --with-cairo-ldflags=FLAGS
180
169
                          cairo needs FLAGS when linking"
181
170
ac_help="$ac_help
182
 
  --with-motif-includes=DIRS
183
 
                          Motif include files are in DIRS"
184
 
ac_help="$ac_help
185
 
  --with-motif-libs=DIRS  Motif library files are in DIRS"
186
 
ac_help="$ac_help
187
171
  --with-freetype-includes=DIRS
188
172
                          FreeType include files are in DIRS"
189
173
ac_help="$ac_help
190
174
  --with-freetype-libs=DIRS
191
175
                          FreeType library files are in DIRS"
192
176
ac_help="$ac_help
193
 
  --with-glw-includes=DIRS
194
 
                          GLw include files are in DIRS"
195
 
ac_help="$ac_help
196
 
  --with-glw-libs=DIRS    GLw library files are in DIRS"
197
 
ac_help="$ac_help
198
177
  --with-proj-includes=DIRS
199
178
                          External PROJ.4 include files are in DIRS"
200
179
ac_help="$ac_help
213
192
ac_help="$ac_help
214
193
  --with-regex-libs=DIRS  regex library files are in DIRS"
215
194
ac_help="$ac_help
 
195
  --with-pthread-includes=DIRS
 
196
                          POSIX threads include files are in DIRS"
 
197
ac_help="$ac_help
 
198
  --with-pthread-libs=DIRS
 
199
                          POSIX threads library files are in DIRS"
 
200
ac_help="$ac_help
 
201
  --with-openmp-includes=DIRS
 
202
                          OpenMP include files are in DIRS"
 
203
ac_help="$ac_help
 
204
  --with-openmp-libs=DIRS OpenMP library files are in DIRS"
 
205
ac_help="$ac_help
 
206
  --with-opencl-includes=DIRS
 
207
                          OpenCL include files are in DIRS"
 
208
ac_help="$ac_help
 
209
  --with-opencl-libs=DIRS OpenCL library files are in DIRS"
 
210
ac_help="$ac_help
216
211
  --with-x                use the X Window System"
217
212
ac_help="$ac_help
218
 
  --enable-largefile      enable support for large files (LFS)"
 
213
  --disable-largefile     omit support for large files (LFS)"
219
214
 
220
215
# Initialize some variables set by options.
221
216
# The variables have the same names as the options, with
748
743
fi
749
744
 
750
745
echo $ac_n "checking host system type""... $ac_c" 1>&6
751
 
echo "configure:752: checking host system type" >&5
 
746
echo "configure:747: checking host system type" >&5
752
747
 
753
748
host_alias=$host
754
749
case "$host_alias" in
771
766
# Extract the first word of "gcc", so it can be a program name with args.
772
767
set dummy gcc; ac_word=$2
773
768
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
774
 
echo "configure:775: checking for $ac_word" >&5
 
769
echo "configure:770: checking for $ac_word" >&5
775
770
 
776
771
if test -n "$CC"; then
777
772
  ac_cv_prog_CC="$CC" # Let the user override the test.
798
793
  # Extract the first word of "cc", so it can be a program name with args.
799
794
set dummy cc; ac_word=$2
800
795
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
801
 
echo "configure:802: checking for $ac_word" >&5
 
796
echo "configure:797: checking for $ac_word" >&5
802
797
 
803
798
if test -n "$CC"; then
804
799
  ac_cv_prog_CC="$CC" # Let the user override the test.
846
841
      # Extract the first word of "cl", so it can be a program name with args.
847
842
set dummy cl; ac_word=$2
848
843
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849
 
echo "configure:850: checking for $ac_word" >&5
 
844
echo "configure:845: checking for $ac_word" >&5
850
845
 
851
846
if test -n "$CC"; then
852
847
  ac_cv_prog_CC="$CC" # Let the user override the test.
875
870
fi
876
871
 
877
872
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
878
 
echo "configure:879: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
873
echo "configure:874: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
879
874
 
880
875
ac_ext=c
881
876
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
886
881
 
887
882
cat > conftest.$ac_ext << EOF
888
883
 
889
 
#line 890 "configure"
 
884
#line 885 "configure"
890
885
#include "confdefs.h"
891
886
 
892
887
main(){return(0);}
893
888
EOF
894
 
if { (eval echo configure:895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
889
if { (eval echo configure:890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
895
890
  ac_cv_prog_cc_works=yes
896
891
  # If we can't run a trivial program, we are probably using a cross compiler.
897
892
  if (./conftest; exit) 2>/dev/null; then
917
912
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
918
913
fi
919
914
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
920
 
echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
915
echo "configure:916: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
921
916
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
922
917
cross_compiling=$ac_cv_prog_cc_cross
923
918
 
924
919
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
925
 
echo "configure:926: checking whether we are using GNU C" >&5
 
920
echo "configure:921: checking whether we are using GNU C" >&5
926
921
 
927
922
cat > conftest.c <<EOF
928
923
#ifdef __GNUC__
929
924
  yes;
930
925
#endif
931
926
EOF
932
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
927
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
933
928
  ac_cv_prog_gcc=yes
934
929
else
935
930
  ac_cv_prog_gcc=no
947
942
ac_save_CFLAGS="$CFLAGS"
948
943
CFLAGS=
949
944
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
950
 
echo "configure:951: checking whether ${CC-cc} accepts -g" >&5
 
945
echo "configure:946: checking whether ${CC-cc} accepts -g" >&5
951
946
 
952
947
echo 'void f(){}' > conftest.c
953
948
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
976
971
fi
977
972
 
978
973
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
979
 
echo "configure:980: checking for Cygwin environment" >&5
 
974
echo "configure:975: checking for Cygwin environment" >&5
980
975
 
981
976
cat > conftest.$ac_ext <<EOF
982
 
#line 983 "configure"
 
977
#line 978 "configure"
983
978
#include "confdefs.h"
984
979
 
985
980
int main() {
990
985
return __CYGWIN__;
991
986
; return 0; }
992
987
EOF
993
 
if { (eval echo configure:994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
988
if { (eval echo configure:989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
994
989
  rm -rf conftest*
995
990
  ac_cv_cygwin=yes
996
991
else
1006
1001
CYGWIN=
1007
1002
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1008
1003
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1009
 
echo "configure:1010: checking for mingw32 environment" >&5
 
1004
echo "configure:1005: checking for mingw32 environment" >&5
1010
1005
 
1011
1006
cat > conftest.$ac_ext <<EOF
1012
 
#line 1013 "configure"
 
1007
#line 1008 "configure"
1013
1008
#include "confdefs.h"
1014
1009
 
1015
1010
int main() {
1016
1011
return __MINGW32__;
1017
1012
; return 0; }
1018
1013
EOF
1019
 
if { (eval echo configure:1020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1014
if { (eval echo configure:1015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1020
1015
  rm -rf conftest*
1021
1016
  ac_cv_mingw32=yes
1022
1017
else
1034
1029
 
1035
1030
 
1036
1031
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1037
 
echo "configure:1038: checking for executable suffix" >&5
 
1032
echo "configure:1033: checking for executable suffix" >&5
1038
1033
 
1039
1034
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1040
1035
  ac_cv_exeext=.exe
1053
1048
IEEEFLAG=
1054
1049
 
1055
1050
echo $ac_n "checking for full floating-point support""... $ac_c" 1>&6
1056
 
echo "configure:1057: checking for full floating-point support" >&5
 
1051
echo "configure:1052: checking for full floating-point support" >&5
1057
1052
if test "$cross_compiling" = yes; then
1058
1053
     echo "$ac_t""unknown (cross-compiling)" 1>&6
1059
1054
     
1060
1055
echo $ac_n "checking whether "cc -mieee" works""... $ac_c" 1>&6
1061
 
echo "configure:1062: checking whether "cc -mieee" works" >&5
 
1056
echo "configure:1057: checking whether "cc -mieee" works" >&5
1062
1057
ac_save_cflags=${CFLAGS}
1063
1058
CFLAGS="$CFLAGS -mieee"
1064
1059
cat > conftest.$ac_ext <<EOF
1065
 
#line 1066 "configure"
 
1060
#line 1061 "configure"
1066
1061
#include "confdefs.h"
1067
1062
 
1068
1063
int main() {
1069
1064
 
1070
1065
; return 0; }
1071
1066
EOF
1072
 
if { (eval echo configure:1073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
1067
if { (eval echo configure:1068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1073
1068
  rm -rf conftest*
1074
1069
     echo "$ac_t""yes" 1>&6
1075
1070
        IEEEFLAG="-mieee"
1085
1080
 
1086
1081
else
1087
1082
  cat > conftest.$ac_ext <<EOF
1088
 
#line 1089 "configure"
 
1083
#line 1084 "configure"
1089
1084
#include "confdefs.h"
1090
1085
 
1091
1086
#include <float.h>
1099
1094
}
1100
1095
 
1101
1096
EOF
1102
 
if { (eval echo configure:1103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1097
if { (eval echo configure:1098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1103
1098
then
1104
1099
     echo "$ac_t""yes" 1>&6
1105
1100
    
1112
1107
  CFLAGS=-mieee
1113
1108
  
1114
1109
echo $ac_n "checking for full floating-point support with -mieee""... $ac_c" 1>&6
1115
 
echo "configure:1116: checking for full floating-point support with -mieee" >&5
 
1110
echo "configure:1111: checking for full floating-point support with -mieee" >&5
1116
1111
if test "$cross_compiling" = yes; then
1117
1112
     echo "$ac_t""unknown (cross-compiling)" 1>&6
1118
1113
    { echo "configure: error: *** INTERNAL CONFIGURE ERROR" 1>&2; exit 1; }
1119
1114
 
1120
1115
else
1121
1116
  cat > conftest.$ac_ext <<EOF
1122
 
#line 1123 "configure"
 
1117
#line 1118 "configure"
1123
1118
#include "confdefs.h"
1124
1119
 
1125
1120
#include <float.h>
1133
1128
}
1134
1129
 
1135
1130
EOF
1136
 
if { (eval echo configure:1137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
1131
if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1137
1132
then
1138
1133
     echo "$ac_t""yes" 1>&6
1139
1134
    IEEEFLAG="-mieee"
1170
1165
# Extract the first word of "pwd", so it can be a program name with args.
1171
1166
set dummy pwd; ac_word=$2
1172
1167
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173
 
echo "configure:1174: checking for $ac_word" >&5
 
1168
echo "configure:1169: checking for $ac_word" >&5
1174
1169
 
1175
1170
case "$pwd" in
1176
1171
  /*)
1208
1203
fi
1209
1204
 
1210
1205
echo $ac_n "checking for source directory""... $ac_c" 1>&6
1211
 
echo "configure:1212: checking for source directory" >&5
 
1206
echo "configure:1207: checking for source directory" >&5
1212
1207
 
1213
1208
if test -z "$srcdir" ; then
1214
1209
  SRCDIR=`$pwd`
1219
1214
echo "$ac_t"""$SRCDIR"" 1>&6
1220
1215
 
1221
1216
echo $ac_n "checking for build directory""... $ac_c" 1>&6
1222
 
echo "configure:1223: checking for build directory" >&5
 
1217
echo "configure:1218: checking for build directory" >&5
1223
1218
 
1224
1219
DSTDIR=`$pwd`
1225
1220
WINDSTDIR=`$winpwd`
1243
1238
# Use absolute path for aux directory so that install-sh works
1244
1239
 
1245
1240
ac_aux_dir=
1246
 
for ac_dir in $SRCDIR $srcdir/$SRCDIR; do
 
1241
for ac_dir in "$SRCDIR" $srcdir/"$SRCDIR"; do
1247
1242
  if test -f $ac_dir/install-sh; then
1248
1243
    ac_aux_dir=$ac_dir
1249
1244
    ac_install_sh="$ac_aux_dir/install-sh -c"
1255
1250
  fi
1256
1251
done
1257
1252
if test -z "$ac_aux_dir"; then
1258
 
  { echo "configure: error: can not find install-sh or install.sh in $SRCDIR $srcdir/$SRCDIR" 1>&2; exit 1; }
 
1253
  { echo "configure: error: can not find install-sh or install.sh in "$SRCDIR" $srcdir/"$SRCDIR"" 1>&2; exit 1; }
1259
1254
fi
1260
1255
ac_config_guess=$ac_aux_dir/config.guess
1261
1256
ac_config_sub=$ac_aux_dir/config.sub
1283
1278
LIB_VER=`echo ${GRASS_VERSION_NUMBER} | sed 's/^\([0-9.]*\).*$/\1/'`
1284
1279
 
1285
1280
 
1286
 
GRASS_VERSION_SVN=
 
1281
GRASS_VERSION_SVN=00000
1287
1282
# Extract the first word of "svnversion", so it can be a program name with args.
1288
1283
set dummy svnversion; ac_word=$2
1289
1284
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290
 
echo "configure:1291: checking for $ac_word" >&5
 
1285
echo "configure:1286: checking for $ac_word" >&5
1291
1286
 
1292
1287
case "$SVN_VERSION" in
1293
1288
  /*)
1320
1315
if test "$SVN_VERSION" != "no" ; then
1321
1316
   GRASS_VERSION_SVN=`$SVN_VERSION -c | cut -f2 -d:`
1322
1317
   if test "$GRASS_VERSION_SVN" = "exported" -o "$GRASS_VERSION_SVN" = "Unversioned directory" ; then
1323
 
      GRASS_VERSION_SVN=
 
1318
      GRASS_VERSION_SVN=00000
1324
1319
   fi
1325
1320
fi
1326
1321
 
1346
1341
 
1347
1342
 
1348
1343
echo $ac_n "checking for MacOSX App""... $ac_c" 1>&6
1349
 
echo "configure:1350: checking for MacOSX App" >&5
 
1344
echo "configure:1345: checking for MacOSX App" >&5
1350
1345
case "$enable_macosx_app" in
1351
1346
        yes)    MACOSX_APP=1    ;;
1352
1347
        no)     MACOSX_APP=     ;;
1358
1353
# Check for MacOSX archs
1359
1354
 
1360
1355
echo $ac_n "checking for MacOSX architectures""... $ac_c" 1>&6
1361
 
echo "configure:1362: checking for MacOSX architectures" >&5
 
1356
echo "configure:1357: checking for MacOSX architectures" >&5
1362
1357
 
1363
1358
MACOSX_ARCHS=
1364
1359
 
1387
1382
# Check for MacOSX SDK
1388
1383
 
1389
1384
echo $ac_n "checking for MacOSX SDK""... $ac_c" 1>&6
1390
 
echo "configure:1391: checking for MacOSX SDK" >&5
 
1385
echo "configure:1386: checking for MacOSX SDK" >&5
1391
1386
 
1392
1387
MACOSX_SDK=
1393
1388
 
1397
1392
  
1398
1393
ac_safe=`echo "$with_macosx_sdk/SDKSettings.plist" | sed 'y%./+-%__p_%'`
1399
1394
echo $ac_n "checking for $with_macosx_sdk/SDKSettings.plist""... $ac_c" 1>&6
1400
 
echo "configure:1401: checking for $with_macosx_sdk/SDKSettings.plist" >&5
 
1395
echo "configure:1396: checking for $with_macosx_sdk/SDKSettings.plist" >&5
1401
1396
 
1402
1397
if test "$cross_compiling" = yes; then
1403
1398
    { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
1441
1436
 
1442
1437
 
1443
1438
    echo $ac_n "checking how to build libraries""... $ac_c" 1>&6
1444
 
echo "configure:1445: checking how to build libraries" >&5
 
1439
echo "configure:1440: checking how to build libraries" >&5
1445
1440
    # Check whether --enable-shared or --disable-shared was given.
1446
1441
if test "${enable_shared+set}" = set; then
1447
1442
  enableval="$enable_shared"
1461
1456
    if test "$shared_ok" = "yes" ; then
1462
1457
        echo "$ac_t""shared" 1>&6
1463
1458
        SHARED_BUILD=1
1464
 
        GRASS_LIB_PREFIX='$(SHLIB_PREFIX)'
1465
 
        GRASS_LIB_SUFFIX='$(SHLIB_SUFFIX)'
1466
1459
        GRASS_LIBRARY_TYPE='shlib'
1467
1460
    else
1468
1461
        echo "$ac_t""static" 1>&6
1471
1464
#define STATIC_BUILD 1
1472
1465
EOF
1473
1466
 
1474
 
        GRASS_LIB_PREFIX='$(STLIB_PREFIX)'
1475
 
        GRASS_LIB_SUFFIX='$(STLIB_SUFFIX)'
1476
1467
        GRASS_LIBRARY_TYPE='stlib'
1477
1468
    fi
1478
1469
    
1479
 
    
1480
 
    
1481
1470
 
1482
1471
 
1483
1472
ac_save_ldflags="$LDFLAGS"
1484
 
# Extract the first word of "ranlib", so it can be a program name with args.
1485
 
set dummy ranlib; ac_word=$2
1486
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1487
 
echo "configure:1488: checking for $ac_word" >&5
1488
 
 
1489
 
if test -n "$RANLIB"; then
1490
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1491
 
else
1492
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1493
 
  ac_dummy="$PATH"
1494
 
  for ac_dir in $ac_dummy; do
1495
 
    test -z "$ac_dir" && ac_dir=.
1496
 
    if test -f $ac_dir/$ac_word; then
1497
 
      ac_cv_prog_RANLIB="ranlib"
1498
 
      break
1499
 
    fi
1500
 
  done
1501
 
  IFS="$ac_save_ifs"
1502
 
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1503
 
fi
1504
 
RANLIB="$ac_cv_prog_RANLIB"
1505
 
if test -n "$RANLIB"; then
1506
 
  echo "$ac_t""$RANLIB" 1>&6
1507
 
else
1508
 
  echo "$ac_t""no" 1>&6
1509
 
fi
1510
 
 
1511
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1512
 
echo "configure:1513: checking how to run the C preprocessor" >&5
1513
 
# On Suns, sometimes $CPP names a directory.
1514
 
if test -n "$CPP" && test -d "$CPP"; then
1515
 
  CPP=
1516
 
fi
1517
 
if test -z "$CPP"; then
1518
 
 
1519
 
  # This must be in double quotes, not single quotes, because CPP may get
1520
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1521
 
  CPP="${CC-cc} -E"
1522
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
1523
 
  # not just through cpp.
1524
 
  cat > conftest.$ac_ext <<EOF
1525
 
#line 1526 "configure"
1526
 
#include "confdefs.h"
1527
 
#include <assert.h>
1528
 
Syntax Error
1529
 
EOF
1530
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1531
 
{ (eval echo configure:1532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1532
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1533
 
if test -z "$ac_err"; then
1534
 
  :
1535
 
else
1536
 
  echo "$ac_err" >&5
1537
 
  echo "configure: failed program was:" >&5
1538
 
  cat conftest.$ac_ext >&5
1539
 
  rm -rf conftest*
1540
 
  CPP="${CC-cc} -E -traditional-cpp"
1541
 
  cat > conftest.$ac_ext <<EOF
1542
 
#line 1543 "configure"
1543
 
#include "confdefs.h"
1544
 
#include <assert.h>
1545
 
Syntax Error
1546
 
EOF
1547
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1548
 
{ (eval echo configure:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1549
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1550
 
if test -z "$ac_err"; then
1551
 
  :
1552
 
else
1553
 
  echo "$ac_err" >&5
1554
 
  echo "configure: failed program was:" >&5
1555
 
  cat conftest.$ac_ext >&5
1556
 
  rm -rf conftest*
1557
 
  CPP="${CC-cc} -nologo -E"
1558
 
  cat > conftest.$ac_ext <<EOF
1559
 
#line 1560 "configure"
1560
 
#include "confdefs.h"
1561
 
#include <assert.h>
1562
 
Syntax Error
1563
 
EOF
1564
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1565
 
{ (eval echo configure:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1566
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1567
 
if test -z "$ac_err"; then
1568
 
  :
1569
 
else
1570
 
  echo "$ac_err" >&5
1571
 
  echo "configure: failed program was:" >&5
1572
 
  cat conftest.$ac_ext >&5
1573
 
  rm -rf conftest*
1574
 
  CPP=/lib/cpp
1575
 
fi
1576
 
rm -f conftest*
1577
 
fi
1578
 
rm -f conftest*
1579
 
fi
1580
 
rm -f conftest*
1581
 
  ac_cv_prog_CPP="$CPP"
1582
 
  CPP="$ac_cv_prog_CPP"
1583
 
else
1584
 
  ac_cv_prog_CPP="$CPP"
1585
 
fi
1586
 
echo "$ac_t""$CPP" 1>&6
1587
 
 
1588
 
 
1589
 
 
1590
 
    # Step 0.a: Enable 64 bit support?
1591
 
 
1592
 
    echo $ac_n "checking if 64bit support is requested""... $ac_c" 1>&6
1593
 
echo "configure:1594: checking if 64bit support is requested" >&5
1594
 
    # Check whether --enable-64bit or --disable-64bit was given.
1595
 
if test "${enable_64bit+set}" = set; then
1596
 
  enableval="$enable_64bit"
1597
 
  :
1598
 
else
1599
 
  enableval="no"
1600
 
fi
1601
 
 
1602
 
 
1603
 
    if test "$enableval" = "yes"; then
1604
 
        do64bit=yes
1605
 
    else
1606
 
        do64bit=no
1607
 
    fi
1608
 
    echo "$ac_t""$do64bit" 1>&6
1609
 
 
1610
 
    # Step 0.b: Enable Solaris 64 bit VIS support?
1611
 
 
1612
 
    echo $ac_n "checking if 64bit Sparc VIS support is requested""... $ac_c" 1>&6
1613
 
echo "configure:1614: checking if 64bit Sparc VIS support is requested" >&5
1614
 
    # Check whether --enable-64bit-vis or --disable-64bit-vis was given.
1615
 
if test "${enable_64bit_vis+set}" = set; then
1616
 
  enableval="$enable_64bit_vis"
1617
 
  :
1618
 
else
1619
 
  enableval="no"
1620
 
fi
1621
 
 
1622
 
 
1623
 
    if test "$enableval" = "yes"; then
1624
 
        # Force 64bit on with VIS
1625
 
        do64bit=yes
1626
 
        do64bitVIS=yes
1627
 
    else
1628
 
        do64bitVIS=no
1629
 
    fi
1630
 
    echo "$ac_t""$do64bitVIS" 1>&6
1631
 
 
1632
 
    # Step 1: set the variable "system" to hold the name and version number
1633
 
    # for the system.  This can usually be done via the "uname" command, but
1634
 
    # there are a few systems, like Next, where this doesn't work.
1635
 
 
1636
 
    echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6
1637
 
echo "configure:1638: checking system version (for dynamic loading)" >&5
1638
 
    if test -f /usr/lib/NextStep/software_version; then
1639
 
        system=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
1640
 
    else
1641
 
        system=`uname -s`-`uname -r`
1642
 
        if test "$?" -ne 0 ; then
1643
 
            echo "$ac_t""unknown (can't find uname command)" 1>&6
1644
 
            system=unknown
1645
 
        else
1646
 
            # Special check for weird MP-RAS system (uname returns weird
1647
 
            # results, and the version is kept in special file).
1648
 
        
1649
 
            if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
1650
 
                system=MP-RAS-`awk '{print }' /etc/.relid`
1651
 
            fi
1652
 
            if test "`uname -s`" = "AIX" ; then
1653
 
                system=AIX-`uname -v`.`uname -r`
1654
 
            fi
1655
 
            echo "$ac_t""$system" 1>&6
1656
 
        fi
1657
 
    fi
1658
 
 
1659
 
    # Step 2: check for existence of -ldl library.  This is needed because
1660
 
    # Linux can use either -ldl or -ldld for dynamic loading.
1661
 
 
1662
 
    echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1663
 
echo "configure:1664: checking for dlopen in -ldl" >&5
1664
 
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1665
 
 
1666
 
ac_save_LIBS="$LIBS"
1667
 
LIBS="-ldl  $LIBS"
1668
 
cat > conftest.$ac_ext <<EOF
1669
 
#line 1670 "configure"
1670
 
#include "confdefs.h"
1671
 
/* Override any gcc2 internal prototype to avoid an error.  */
1672
 
/* We use char because int might match the return type of a gcc2
1673
 
    builtin and then its argument prototype would still apply.  */
1674
 
char dlopen();
1675
 
 
1676
 
int main() {
1677
 
dlopen()
1678
 
; return 0; }
1679
 
EOF
1680
 
if { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1681
 
  rm -rf conftest*
1682
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1683
 
else
1684
 
  echo "configure: failed program was:" >&5
1685
 
  cat conftest.$ac_ext >&5
1686
 
  rm -rf conftest*
1687
 
  eval "ac_cv_lib_$ac_lib_var=no"
1688
 
fi
1689
 
rm -f conftest*
1690
 
LIBS="$ac_save_LIBS"
1691
 
 
1692
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1693
 
  echo "$ac_t""yes" 1>&6
1694
 
  have_dl=yes
1695
 
else
1696
 
  echo "$ac_t""no" 1>&6
1697
 
have_dl=no
1698
 
fi
1699
 
 
1700
 
 
1701
 
    # Require ranlib early so we can override it in special cases below.
1702
 
 
1703
 
    
1704
 
 
1705
 
    # Step 3: set configuration options based on system name and version.
1706
 
 
1707
 
    do64bit_ok=no
1708
 
    EXTRA_CFLAGS=""
1709
 
    GRASS_EXPORT_FILE_SUFFIX=""
1710
 
    UNSHARED_LIB_SUFFIX=""
 
1473
 
 
1474
    SHLIB_CFLAGS=""
 
1475
    SHLIB_LD_FLAGS=""
 
1476
    SHLIB_SUFFIX=""
 
1477
    SHLIB_LD=""
 
1478
    STLIB_LD='${AR} cr'
 
1479
    STLIB_SUFFIX='.a'
1711
1480
    GRASS_TRIM_DOTS='`echo ${LIB_VER} | tr -d .`'
1712
 
    ECHO_VERSION='`echo ${LIB_VER}`'
1713
1481
    GRASS_LIB_VERSIONS_OK=ok
1714
 
    CFLAGS_DEBUG=-g
1715
 
    CFLAGS_OPTIMIZE=-O
1716
 
    if test "$GCC" = "yes" ; then
1717
 
        CFLAGS_WARNING="-Wall -Wconversion -Wno-implicit-int"
1718
 
    else
1719
 
        CFLAGS_WARNING=""
1720
 
    fi
1721
 
    GRASS_NEEDS_EXP_FILE=0
1722
 
    GRASS_BUILD_EXP_FILE=""
1723
 
    GRASS_EXP_FILE=""
1724
 
    # Extract the first word of "ar", so it can be a program name with args.
1725
 
set dummy ar; ac_word=$2
1726
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1727
 
echo "configure:1728: checking for $ac_word" >&5
1728
 
 
1729
 
if test -n "$AR"; then
1730
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
1731
 
else
1732
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1733
 
  ac_dummy="$PATH"
1734
 
  for ac_dir in $ac_dummy; do
1735
 
    test -z "$ac_dir" && ac_dir=.
1736
 
    if test -f $ac_dir/$ac_word; then
1737
 
      ac_cv_prog_AR="ar"
1738
 
      break
1739
 
    fi
1740
 
  done
1741
 
  IFS="$ac_save_ifs"
1742
 
fi
1743
 
AR="$ac_cv_prog_AR"
1744
 
if test -n "$AR"; then
1745
 
  echo "$ac_t""$AR" 1>&6
1746
 
else
1747
 
  echo "$ac_t""no" 1>&6
1748
 
fi
1749
 
 
1750
 
    if test "${AR}" = "" ; then
1751
 
        { echo "configure: error: Required archive tool 'ar' not found on PATH." 1>&2; exit 1; }
1752
 
    fi
1753
 
    STLIB_LD='${AR} cr'
 
1482
    LDFLAGS=""
 
1483
    LD_SEARCH_FLAGS=""
1754
1484
    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
1755
 
    PLAT_OBJS=""
1756
 
    case $system in
1757
 
        AIX-5.*)
1758
 
            if test "${GRASS_THREADS}" = "1" -a "$GCC" != "yes" ; then
1759
 
                # AIX requires the _r compiler when gcc isn't being used
1760
 
                if test "${CC}" != "cc_r" ; then
1761
 
                    CC=${CC}_r
1762
 
                fi
1763
 
                echo "$ac_t""Using $CC for compiling with threads" 1>&6
1764
 
            fi
1765
 
            LIBS="$LIBS -lc"
1766
 
            # AIX-5 uses ELF style dynamic libraries
1767
 
            SHLIB_CFLAGS=""
1768
 
            # Note: need the LIBS below, otherwise Tk won't find Tcl's
1769
 
            # symbols when dynamically loaded into tclsh.
1770
 
            SHLIB_LD_LIBS='${LIBS}'
1771
 
            SHLIB_SUFFIX=".so"
1772
 
 
1773
 
            LDFLAGS=""
1774
 
 
1775
 
            LD_LIBRARY_PATH_VAR="LIBPATH"
1776
 
 
1777
 
            # Check to enable 64-bit flags for compiler/linker
1778
 
            if test "$do64bit" = "yes" ; then
1779
 
                if test "$GCC" = "yes" ; then
1780
 
                    echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2
1781
 
                else 
1782
 
                    do64bit_ok=yes
1783
 
                    EXTRA_CFLAGS="-q64"
1784
 
                    LDFLAGS="-q64"
1785
 
                    RANLIB="${RANLIB} -X64"
1786
 
                    AR="${AR} -X64"
1787
 
                    SHLIB_LD_FLAGS="-b64"
1788
 
                fi
1789
 
            fi
1790
 
 
1791
 
            if test "`uname -m`" = "ia64" ; then
1792
 
                # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
1793
 
                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
1794
 
                # AIX-5 has dl* in libc.so
1795
 
                if test "$GCC" = "yes" ; then
1796
 
                    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
1797
 
                else
1798
 
                    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
1799
 
                fi
1800
 
                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
1801
 
            else
1802
 
                #SHLIB_LD="${SRCDIR}/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry ${SHLIB_LD_FLAGS}"
1803
 
                SHLIB_LD="$CC -shared"
1804
 
                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
1805
 
                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
1806
 
                GRASS_NEEDS_EXP_FILE=1
1807
 
                GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
1808
 
            fi
1809
 
            ;;
1810
 
        AIX-*)
1811
 
            if test "${GRASS_THREADS}" = "1" -a "$GCC" != "yes" ; then
1812
 
                # AIX requires the _r compiler when gcc isn't being used
1813
 
                if test "${CC}" != "cc_r" ; then
1814
 
                    CC=${CC}_r
1815
 
                fi
1816
 
                echo "$ac_t""Using $CC for compiling with threads" 1>&6
1817
 
            fi
1818
 
            LIBS="$LIBS -lc"
1819
 
            SHLIB_CFLAGS=""
1820
 
            SHLIB_LD_LIBS='${LIBS}'
1821
 
            SHLIB_SUFFIX=".so"
1822
 
            LDFLAGS=""
1823
 
            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
1824
 
            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
1825
 
            LD_LIBRARY_PATH_VAR="LIBPATH"
1826
 
            GRASS_NEEDS_EXP_FILE=1
1827
 
            GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
1828
 
 
1829
 
            # Check to enable 64-bit flags for compiler/linker
1830
 
            if test "$do64bit" = "yes" ; then
1831
 
                if test "$GCC" = "yes" ; then
1832
 
                    echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2
1833
 
                else 
1834
 
                    do64bit_ok=yes
1835
 
                    EXTRA_CFLAGS="-q64"
1836
 
                    LDFLAGS="-q64"
1837
 
                    RANLIB="${RANLIB} -X64"
1838
 
                    AR="${AR} -X64"
1839
 
                    SHLIB_LD_FLAGS="-b64"
1840
 
                fi
1841
 
            fi
1842
 
            #SHLIB_LD="${SRCDIR}/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry ${SHLIB_LD_FLAGS}"
1843
 
            SHLIB_LD="$CC -shared"
1844
 
 
1845
 
            # On AIX <=v4 systems, libbsd.a has to be linked in to support
1846
 
            # non-blocking file IO.  This library has to be linked in after
1847
 
            # the MATH_LIBS or it breaks the pow() function.  The way to
1848
 
            # insure proper sequencing, is to add it to the tail of MATH_LIBS.
1849
 
            # This library also supplies gettimeofday.
1850
 
            #
1851
 
            # AIX does not have a timezone field in struct tm. When the AIX
1852
 
            # bsd library is used, the timezone global and the gettimeofday
1853
 
            # methods are to be avoided for timezone deduction instead, we
1854
 
            # deduce the timezone by comparing the localtime result on a
1855
 
            # known GMT value.
1856
 
 
1857
 
            echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6
1858
 
echo "configure:1859: checking for gettimeofday in -lbsd" >&5
1859
 
ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'`
1860
 
 
1861
 
ac_save_LIBS="$LIBS"
1862
 
LIBS="-lbsd  $LIBS"
1863
 
cat > conftest.$ac_ext <<EOF
1864
 
#line 1865 "configure"
1865
 
#include "confdefs.h"
1866
 
/* Override any gcc2 internal prototype to avoid an error.  */
1867
 
/* We use char because int might match the return type of a gcc2
1868
 
    builtin and then its argument prototype would still apply.  */
1869
 
char gettimeofday();
1870
 
 
1871
 
int main() {
1872
 
gettimeofday()
1873
 
; return 0; }
1874
 
EOF
1875
 
if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1876
 
  rm -rf conftest*
1877
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1878
 
else
1879
 
  echo "configure: failed program was:" >&5
1880
 
  cat conftest.$ac_ext >&5
1881
 
  rm -rf conftest*
1882
 
  eval "ac_cv_lib_$ac_lib_var=no"
1883
 
fi
1884
 
rm -f conftest*
1885
 
LIBS="$ac_save_LIBS"
1886
 
 
1887
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1888
 
  echo "$ac_t""yes" 1>&6
1889
 
  libbsd=yes
1890
 
else
1891
 
  echo "$ac_t""no" 1>&6
1892
 
libbsd=no
1893
 
fi
1894
 
 
1895
 
            if test $libbsd = yes; then
1896
 
                MATH_LIBS="$MATH_LIBS -lbsd"
1897
 
                cat >> confdefs.h <<\EOF
1898
 
#define USE_DELTA_FOR_TZ 1
1899
 
EOF
1900
 
 
1901
 
            fi
1902
 
            ;;
1903
 
        BeOS*)
1904
 
            SHLIB_CFLAGS="-fPIC"
1905
 
            SHLIB_LD="${CC} -nostart"
1906
 
            SHLIB_LD_LIBS='${LIBS}'
1907
 
            SHLIB_SUFFIX=".so"
1908
 
            LDFLAGS=""
1909
 
 
1910
 
            #-----------------------------------------------------------
1911
 
            # Check for inet_ntoa in -lbind, for BeOS (which also needs
1912
 
            # -lsocket, even if the network functions are in -lnet which
1913
 
            # is always linked to, for compatibility.
1914
 
            #-----------------------------------------------------------
1915
 
            echo $ac_n "checking for inet_ntoa in -lbind""... $ac_c" 1>&6
1916
 
echo "configure:1917: checking for inet_ntoa in -lbind" >&5
1917
 
ac_lib_var=`echo bind'_'inet_ntoa | sed 'y%./+-%__p_%'`
1918
 
 
1919
 
ac_save_LIBS="$LIBS"
1920
 
LIBS="-lbind  $LIBS"
1921
 
cat > conftest.$ac_ext <<EOF
1922
 
#line 1923 "configure"
1923
 
#include "confdefs.h"
1924
 
/* Override any gcc2 internal prototype to avoid an error.  */
1925
 
/* We use char because int might match the return type of a gcc2
1926
 
    builtin and then its argument prototype would still apply.  */
1927
 
char inet_ntoa();
1928
 
 
1929
 
int main() {
1930
 
inet_ntoa()
1931
 
; return 0; }
1932
 
EOF
1933
 
if { (eval echo configure:1934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1934
 
  rm -rf conftest*
1935
 
  eval "ac_cv_lib_$ac_lib_var=yes"
1936
 
else
1937
 
  echo "configure: failed program was:" >&5
1938
 
  cat conftest.$ac_ext >&5
1939
 
  rm -rf conftest*
1940
 
  eval "ac_cv_lib_$ac_lib_var=no"
1941
 
fi
1942
 
rm -f conftest*
1943
 
LIBS="$ac_save_LIBS"
1944
 
 
1945
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1946
 
  echo "$ac_t""yes" 1>&6
1947
 
  LIBS="$LIBS -lbind -lsocket"
1948
 
else
1949
 
  echo "$ac_t""no" 1>&6
1950
 
fi
1951
 
 
1952
 
            ;;
1953
 
        BSD/OS-2.1*|BSD/OS-3*)
1954
 
            SHLIB_CFLAGS=""
1955
 
            SHLIB_LD="shlicc -r"
1956
 
            SHLIB_LD_LIBS='${LIBS}'
1957
 
            SHLIB_SUFFIX=".so"
1958
 
            LDFLAGS=""
1959
 
            CC_SEARCH_FLAGS=""
1960
 
            LD_SEARCH_FLAGS=""
1961
 
            ;;
1962
 
        BSD/OS-4.*)
1963
 
            SHLIB_CFLAGS="-export-dynamic -fPIC"
1964
 
            SHLIB_LD="cc -shared"
1965
 
            SHLIB_LD_LIBS='${LIBS}'
1966
 
            SHLIB_SUFFIX=".so"
1967
 
            LDFLAGS="-export-dynamic"
1968
 
            CC_SEARCH_FLAGS=""
1969
 
            LD_SEARCH_FLAGS=""
1970
 
            ;;
1971
 
        dgux*)
1972
 
            SHLIB_CFLAGS="-K PIC"
1973
 
            SHLIB_LD="cc -G"
1974
 
            SHLIB_LD_LIBS=""
1975
 
            SHLIB_SUFFIX=".so"
1976
 
            LDFLAGS=""
1977
 
            CC_SEARCH_FLAGS=""
1978
 
            LD_SEARCH_FLAGS=""
1979
 
            ;;
1980
 
        HP-UX-*.11.*)
1981
 
            # Use updated header definitions where possible
1982
 
            cat >> confdefs.h <<\EOF
1983
 
#define _XOPEN_SOURCE 1
1984
 
EOF
1985
 
          # Use the XOPEN network library
1986
 
            cat >> confdefs.h <<\EOF
1987
 
#define _XOPEN_SOURCE_EXTENDED 1
1988
 
EOF
1989
 
 # Use the XOPEN network library
1990
 
            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
1991
 
 
1992
 
            SHLIB_SUFFIX=".sl"
1993
 
            echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1994
 
echo "configure:1995: checking for shl_load in -ldld" >&5
1995
 
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
1996
 
 
1997
 
ac_save_LIBS="$LIBS"
1998
 
LIBS="-ldld  $LIBS"
1999
 
cat > conftest.$ac_ext <<EOF
2000
 
#line 2001 "configure"
2001
 
#include "confdefs.h"
2002
 
/* Override any gcc2 internal prototype to avoid an error.  */
2003
 
/* We use char because int might match the return type of a gcc2
2004
 
    builtin and then its argument prototype would still apply.  */
2005
 
char shl_load();
2006
 
 
2007
 
int main() {
2008
 
shl_load()
2009
 
; return 0; }
2010
 
EOF
2011
 
if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2012
 
  rm -rf conftest*
2013
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2014
 
else
2015
 
  echo "configure: failed program was:" >&5
2016
 
  cat conftest.$ac_ext >&5
2017
 
  rm -rf conftest*
2018
 
  eval "ac_cv_lib_$ac_lib_var=no"
2019
 
fi
2020
 
rm -f conftest*
2021
 
LIBS="$ac_save_LIBS"
2022
 
 
2023
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2024
 
  echo "$ac_t""yes" 1>&6
2025
 
  shared_ok=yes
2026
 
else
2027
 
  echo "$ac_t""no" 1>&6
2028
 
shared_ok=no
2029
 
fi
2030
 
 
2031
 
            if test "$shared_ok" = yes; then
2032
 
                SHLIB_CFLAGS="+z"
2033
 
                SHLIB_LD="ld -b"
2034
 
                SHLIB_LD_LIBS='${LIBS}'
2035
 
                LDFLAGS="-Wl,-E"
2036
 
                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
2037
 
                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
2038
 
                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
2039
 
            fi
2040
 
 
2041
 
            # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
2042
 
            #EXTRA_CFLAGS="+DAportable"
2043
 
 
2044
 
            # Check to enable 64-bit flags for compiler/linker
2045
 
            if test "$do64bit" = "yes" ; then
2046
 
                if test "$GCC" = "yes" ; then
2047
 
                    hpux_arch=`gcc -dumpmachine`
2048
 
                    case $hpux_arch in
2049
 
                        hppa64*)
2050
 
                            # 64-bit gcc in use.  Fix flags for GNU ld.
2051
 
                            do64bit_ok=yes
2052
 
                            SHLIB_LD="gcc -shared"
2053
 
                            SHLIB_LD_LIBS=""
2054
 
                            LD_SEARCH_FLAGS=''
2055
 
                            CC_SEARCH_FLAGS=''
2056
 
                            ;;
2057
 
                        *)
2058
 
                            echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2
2059
 
                            ;;
2060
 
                    esac
2061
 
                else
2062
 
                    do64bit_ok=yes
2063
 
                    if test "`uname -m`" = "ia64" ; then
2064
 
                        EXTRA_CFLAGS="+DD64"
2065
 
                        LDFLAGS="+DD64 $LDFLAGS"
2066
 
                    else
2067
 
                        EXTRA_CFLAGS="+DA2.0W"
2068
 
                        LDFLAGS="+DA2.0W $LDFLAGS"
2069
 
                    fi
2070
 
                fi
2071
 
            fi
2072
 
            ;;
2073
 
        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
2074
 
            SHLIB_SUFFIX=".sl"
2075
 
            echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
2076
 
echo "configure:2077: checking for shl_load in -ldld" >&5
2077
 
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2078
 
 
2079
 
ac_save_LIBS="$LIBS"
2080
 
LIBS="-ldld  $LIBS"
2081
 
cat > conftest.$ac_ext <<EOF
2082
 
#line 2083 "configure"
2083
 
#include "confdefs.h"
2084
 
/* Override any gcc2 internal prototype to avoid an error.  */
2085
 
/* We use char because int might match the return type of a gcc2
2086
 
    builtin and then its argument prototype would still apply.  */
2087
 
char shl_load();
2088
 
 
2089
 
int main() {
2090
 
shl_load()
2091
 
; return 0; }
2092
 
EOF
2093
 
if { (eval echo configure:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2094
 
  rm -rf conftest*
2095
 
  eval "ac_cv_lib_$ac_lib_var=yes"
2096
 
else
2097
 
  echo "configure: failed program was:" >&5
2098
 
  cat conftest.$ac_ext >&5
2099
 
  rm -rf conftest*
2100
 
  eval "ac_cv_lib_$ac_lib_var=no"
2101
 
fi
2102
 
rm -f conftest*
2103
 
LIBS="$ac_save_LIBS"
2104
 
 
2105
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2106
 
  echo "$ac_t""yes" 1>&6
2107
 
  shared_ok=yes
2108
 
else
2109
 
  echo "$ac_t""no" 1>&6
2110
 
shared_ok=no
2111
 
fi
2112
 
 
2113
 
            if test "$shared_ok" = yes; then
2114
 
                SHLIB_CFLAGS="+z"
2115
 
                SHLIB_LD="ld -b"
2116
 
                SHLIB_LD_LIBS=""
2117
 
                LDFLAGS="-Wl,-E"
2118
 
                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
2119
 
                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
2120
 
                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
2121
 
            fi
2122
 
            ;;
2123
 
        IRIX-4.*)
2124
 
            SHLIB_CFLAGS="-G 0"
2125
 
            SHLIB_SUFFIX=".a"
2126
 
            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
2127
 
            SHLIB_LD_LIBS='${LIBS}'
2128
 
            LDFLAGS="-Wl,-D,08000000"
2129
 
            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
2130
 
            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2131
 
            SHARED_LIB_SUFFIX='${LIB_VER}.a'
2132
 
            ;;
2133
 
        IRIX-5.*)
2134
 
            SHLIB_CFLAGS=""
2135
 
            SHLIB_LD="ld -shared -rdata_shared"
2136
 
            SHLIB_LD_LIBS='${LIBS}'
2137
 
            SHLIB_SUFFIX=".so"
2138
 
            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2139
 
            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2140
 
            EXTRA_CFLAGS=""
2141
 
            LDFLAGS=""
2142
 
            ;;
2143
 
        IRIX-6.2)
2144
 
            SHLIB_CFLAGS=""
2145
 
            SHLIB_LD="ld -shared -rdata_shared"
2146
 
            SHLIB_LD_LIBS='${LIBS}'
2147
 
            SHLIB_SUFFIX=".so"
2148
 
            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2149
 
            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2150
 
            ;;
2151
 
        IRIX-6.*|IRIX64-6.5*)
2152
 
            SHLIB_CFLAGS=""
2153
 
            SHLIB_LD="ld -n32 -shared -rdata_shared"
2154
 
            SHLIB_LD_LIBS='${LIBS}'
2155
 
            SHLIB_SUFFIX=".so"
2156
 
            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2157
 
            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2158
 
            if test "$GCC" = "yes" ; then
2159
 
                EXTRA_CFLAGS="-mabi=n32"
2160
 
                LDFLAGS="-mabi=n32"
2161
 
            else
2162
 
                case $system in
2163
 
                    IRIX-6.3)
2164
 
                        # Use to build 6.2 compatible binaries on 6.3.
2165
 
                        EXTRA_CFLAGS="-n32 -D_OLD_TERMIOS"
2166
 
                        ;;
2167
 
                    *)
2168
 
                        EXTRA_CFLAGS="-n32"
2169
 
                        ;;
2170
 
                esac
2171
 
                LDFLAGS="-n32"
2172
 
            fi
2173
 
            ;;
2174
 
        IRIX64-6.*)
2175
 
            SHLIB_CFLAGS=""
2176
 
            SHLIB_LD="ld -n32 -shared -rdata_shared"
2177
 
            SHLIB_LD_LIBS='${LIBS}'
2178
 
            SHLIB_SUFFIX=".so"
2179
 
            LDFLAGS=""
2180
 
            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2181
 
            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2182
 
 
2183
 
            # Check to enable 64-bit flags for compiler/linker
2184
 
 
2185
 
            if test "$do64bit" = "yes" ; then
2186
 
                if test "$GCC" = "yes" ; then
2187
 
                    echo "configure: warning: 64bit mode not supported by gcc" 1>&2
2188
 
                else
2189
 
                    do64bit_ok=yes
2190
 
                    SHLIB_LD="ld -64 -shared -rdata_shared"
2191
 
                    EXTRA_CFLAGS="-64"
2192
 
                    LDFLAGS="-64"
2193
 
                fi
2194
 
            fi
2195
 
            ;;
2196
 
        Linux*)
2197
 
            SHLIB_CFLAGS="-fPIC"
2198
 
            SHLIB_LD_LIBS='${LIBS}'
2199
 
            SHLIB_SUFFIX=".so"
2200
 
 
2201
 
            CFLAGS_OPTIMIZE=-O2
2202
 
            # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 
2203
 
            # when you inline the string and math operations.  Turn this off to
2204
 
            # get rid of the warnings.
2205
 
            #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
2206
 
 
2207
 
            if test "$have_dl" = yes; then
2208
 
                SHLIB_LD="${CC} -shared"
2209
 
                LDFLAGS="-Wl,--export-dynamic"
2210
 
                CC_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
2211
 
                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2212
 
            else
2213
 
                ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'`
2214
 
echo $ac_n "checking for dld.h""... $ac_c" 1>&6
2215
 
echo "configure:2216: checking for dld.h" >&5
2216
 
 
2217
 
cat > conftest.$ac_ext <<EOF
2218
 
#line 2219 "configure"
2219
 
#include "confdefs.h"
2220
 
#include <dld.h>
2221
 
EOF
2222
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2223
 
{ (eval echo configure:2224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2224
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2225
 
if test -z "$ac_err"; then
2226
 
  rm -rf conftest*
2227
 
  eval "ac_cv_header_$ac_safe=yes"
2228
 
else
2229
 
  echo "$ac_err" >&5
2230
 
  echo "configure: failed program was:" >&5
2231
 
  cat conftest.$ac_ext >&5
2232
 
  rm -rf conftest*
2233
 
  eval "ac_cv_header_$ac_safe=no"
2234
 
fi
2235
 
rm -f conftest*
2236
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2237
 
  echo "$ac_t""yes" 1>&6
2238
 
  
2239
 
                    SHLIB_LD="ld -shared"
2240
 
                    LDFLAGS=""
2241
 
                    CC_SEARCH_FLAGS=""
2242
 
                    LD_SEARCH_FLAGS=""
2243
 
else
2244
 
  echo "$ac_t""no" 1>&6
2245
 
fi
2246
 
 
2247
 
            fi
2248
 
            if test "`uname -m`" = "alpha" ; then
2249
 
                EXTRA_CFLAGS="-mieee"
2250
 
            fi
2251
 
 
2252
 
            # The combo of gcc + glibc has a bug related
2253
 
            # to inlining of functions like strtod(). The
2254
 
            # -fno-builtin flag should address this problem
2255
 
            # but it does not work. The -fno-inline flag
2256
 
            # is kind of overkill but it works.
2257
 
            # Disable inlining only when one of the
2258
 
            # files in compat/*.c is being linked in.
2259
 
            if test x"${USE_COMPAT}" != x ; then
2260
 
                EXTRA_CFLAGS="${EXTRA_CFLAGS} -fno-inline"
2261
 
            fi
2262
 
 
2263
 
            # XIM peeking works under XFree86.
2264
 
            cat >> confdefs.h <<\EOF
2265
 
#define PEEK_XCLOSEIM 1
2266
 
EOF
2267
 
 
2268
 
 
2269
 
            ;;
2270
 
        GNU*)
2271
 
            SHLIB_CFLAGS="-fPIC"
2272
 
            SHLIB_LD_LIBS='${LIBS}'
2273
 
            SHLIB_SUFFIX=".so"
2274
 
 
2275
 
            if test "$have_dl" = yes; then
2276
 
                SHLIB_LD="${CC} -shared"
2277
 
                LDFLAGS="-Wl,--export-dynamic"
2278
 
                CC_SEARCH_FLAGS=""
2279
 
                LD_SEARCH_FLAGS=""
2280
 
            else
2281
 
                ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'`
2282
 
echo $ac_n "checking for dld.h""... $ac_c" 1>&6
2283
 
echo "configure:2284: checking for dld.h" >&5
2284
 
 
2285
 
cat > conftest.$ac_ext <<EOF
2286
 
#line 2287 "configure"
2287
 
#include "confdefs.h"
2288
 
#include <dld.h>
2289
 
EOF
2290
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2291
 
{ (eval echo configure:2292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2292
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2293
 
if test -z "$ac_err"; then
2294
 
  rm -rf conftest*
2295
 
  eval "ac_cv_header_$ac_safe=yes"
2296
 
else
2297
 
  echo "$ac_err" >&5
2298
 
  echo "configure: failed program was:" >&5
2299
 
  cat conftest.$ac_ext >&5
2300
 
  rm -rf conftest*
2301
 
  eval "ac_cv_header_$ac_safe=no"
2302
 
fi
2303
 
rm -f conftest*
2304
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2305
 
  echo "$ac_t""yes" 1>&6
2306
 
  
2307
 
                    SHLIB_LD="ld -shared"
2308
 
                    LDFLAGS=""
2309
 
                    CC_SEARCH_FLAGS=""
2310
 
                    LD_SEARCH_FLAGS=""
2311
 
else
2312
 
  echo "$ac_t""no" 1>&6
2313
 
fi
2314
 
 
2315
 
            fi
2316
 
            if test "`uname -m`" = "alpha" ; then
2317
 
                EXTRA_CFLAGS="-mieee"
2318
 
            fi
2319
 
            ;;
2320
 
        CYGWIN*)
2321
 
            SHLIB_CFLAGS=""
2322
 
            SHLIB_LD_LIBS='${LIBS}'
 
1485
 
 
1486
    case $host in
 
1487
        *-linux-* | *-gnu* | *-kfreebsd*-gnu)
 
1488
            SHLIB_CFLAGS="-fPIC"
 
1489
            SHLIB_LD_FLAGS=""
 
1490
            SHLIB_SUFFIX=".so"
 
1491
            SHLIB_LD="${CC} -shared"
 
1492
            LDFLAGS="-Wl,--export-dynamic"
 
1493
            LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
 
1494
            LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
 
1495
            ;;
 
1496
        *-pc-cygwin)
2323
1497
            SHLIB_SUFFIX=".dll"
2324
 
 
2325
1498
            SHLIB_LD="${CC} -shared"
2326
1499
            LDFLAGS="-Wl,--export-dynamic"
2327
 
            CC_SEARCH_FLAGS=""
2328
 
            LD_SEARCH_FLAGS=""
2329
1500
            LD_LIBRARY_PATH_VAR="PATH"
2330
1501
            ;;
2331
 
        MINGW* | MSYS*)
2332
 
            SHLIB_CFLAGS=""
2333
 
            SHLIB_LD_LIBS='${LIBS}'
 
1502
        *-pc-mingw32 | *-pc-msys)
2334
1503
            SHLIB_SUFFIX=".dll"
2335
 
 
2336
1504
            SHLIB_LD="${CC} -shared"
2337
1505
            LDFLAGS="-Wl,--export-dynamic,--enable-runtime-pseudo-reloc"
2338
 
            CC_SEARCH_FLAGS=""
2339
 
            LD_SEARCH_FLAGS=""
2340
1506
            LD_LIBRARY_PATH_VAR="PATH"
2341
1507
            ;;
2342
 
        MP-RAS-02*)
2343
 
            SHLIB_CFLAGS="-K PIC"
2344
 
            SHLIB_LD="cc -G"
2345
 
            SHLIB_LD_LIBS=""
2346
 
            SHLIB_SUFFIX=".so"
2347
 
            LDFLAGS=""
2348
 
            CC_SEARCH_FLAGS=""
2349
 
            LD_SEARCH_FLAGS=""
2350
 
            ;;
2351
 
        MP-RAS-*)
2352
 
            SHLIB_CFLAGS="-K PIC"
2353
 
            SHLIB_LD="cc -G"
2354
 
            SHLIB_LD_LIBS=""
2355
 
            SHLIB_SUFFIX=".so"
2356
 
            LDFLAGS="-Wl,-Bexport"
2357
 
            CC_SEARCH_FLAGS=""
2358
 
            LD_SEARCH_FLAGS=""
2359
 
            ;;
2360
 
        NetBSD-*)
 
1508
        *-apple-darwin*)
 
1509
            SHLIB_CFLAGS="-fno-common"
 
1510
            SHLIB_SUFFIX=".dylib"
 
1511
            SHLIB_LD="cc -dynamiclib -compatibility_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -current_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -install_name \${INST_DIR}/lib/lib\${LIB_NAME}\${SHLIB_SUFFIX}"
 
1512
            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
 
1513
            ;;
 
1514
        *-sun-solaris*)
 
1515
            # Note: If _REENTRANT isn't defined, then Solaris
 
1516
            # won't define thread-safe library routines.
 
1517
            cat >> confdefs.h <<\EOF
 
1518
#define _REENTRANT 1
 
1519
EOF
 
1520
 
 
1521
            cat >> confdefs.h <<\EOF
 
1522
#define _POSIX_PTHREAD_SEMANTICS 1
 
1523
EOF
 
1524
 
 
1525
            # Note: need the LIBS below, otherwise Tk won't find Tcl's
 
1526
            # symbols when dynamically loaded into tclsh.
 
1527
            if test "$GCC" = "yes" ; then
 
1528
                SHLIB_CFLAGS="-fPIC"
 
1529
                SHLIB_LD="$CC -shared"
 
1530
                LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
 
1531
            else
 
1532
                SHLIB_CFLAGS="-KPIC"
 
1533
                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
 
1534
                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
 
1535
            fi
 
1536
            SHLIB_SUFFIX=".so"
 
1537
            LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
 
1538
            ;;
 
1539
        *-solaris2*)
 
1540
            # Note: Solaris is as of 2010 Oracle Solaris, not Sun Solaris
 
1541
            #       Oracle Solaris derives from Solaris 2 
 
1542
            #       derives from SunOS 5 
 
1543
            #       derives from UNIX System V Release 4
 
1544
            # Note: If _REENTRANT isn't defined, then Solaris
 
1545
            # won't define thread-safe library routines.
 
1546
            cat >> confdefs.h <<\EOF
 
1547
#define _REENTRANT 1
 
1548
EOF
 
1549
 
 
1550
            cat >> confdefs.h <<\EOF
 
1551
#define _POSIX_PTHREAD_SEMANTICS 1
 
1552
EOF
 
1553
 
 
1554
            # Note: need the LIBS below, otherwise Tk won't find Tcl's
 
1555
            # symbols when dynamically loaded into tclsh.
 
1556
            if test "$GCC" = "yes" ; then
 
1557
                SHLIB_CFLAGS="-fPIC"
 
1558
                SHLIB_LD="$CC -shared"
 
1559
                LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
 
1560
            else
 
1561
                SHLIB_CFLAGS="-KPIC"
 
1562
                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
 
1563
                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
 
1564
            fi
 
1565
            SHLIB_SUFFIX=".so"
 
1566
            LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
 
1567
            ;;
 
1568
        *-freebsd*)
 
1569
            # NOTE: only FreeBSD 4+ is supported
 
1570
            # FreeBSD 3.* and greater have ELF.
 
1571
            SHLIB_CFLAGS="-fPIC"
 
1572
            #SHLIB_LD="ld -Bshareable -x"
 
1573
            SHLIB_LD="${CC} -shared"
 
1574
            SHLIB_SUFFIX=".so"
 
1575
            LDFLAGS="-export-dynamic"
 
1576
            #LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
 
1577
            LD_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
 
1578
            # TODO: add optional pthread support with any combination of: 
 
1579
            # CFLAGS="$CFLAGS -pthread"
 
1580
            # LDFLAGS="$LDFLAGS -lpthread"
 
1581
            # AC_DEFINE(_REENTRANT)
 
1582
            # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
 
1583
            ;;
 
1584
        *-netbsd*)
2361
1585
            # NetBSD has ELF.
2362
1586
            SHLIB_CFLAGS="-fPIC"
2363
 
            SHLIB_LD="ld -Bshareable -x"
 
1587
            SHLIB_LD="${CC} -shared"
2364
1588
            SHLIB_LD_LIBS="${LIBS}"
2365
 
            SHLIB_SUFFIX=".so"
2366
1589
            LDFLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
2367
 
            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2368
 
            LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2369
 
            if test "${GRASS_THREADS}" = "1" ; then
2370
 
                # The -pthread needs to go in the CFLAGS, not LIBS
2371
 
                LIBS=`echo $LIBS | sed s/-pthread//`
2372
 
                EXTRA_CFLAGS="-pthread"
2373
 
                LDFLAGS="$LDFLAGS -pthread"
2374
 
            fi
2375
 
            # NetBSD doesn't handle version numbers with dots.
2376
 
            UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
2377
 
            SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so',
2378
 
            GRASS_LIB_VERSIONS_OK=nodots
2379
 
            ;;
2380
 
        OpenBSD-*)
2381
 
            SHLIB_LD="${CC} -shared"
2382
 
            SHLIB_LD_LIBS='${LIBS}'
2383
 
            SHLIB_SUFFIX=".so"
2384
 
            LDFLAGS=""
2385
 
            CC_SEARCH_FLAGS=""
2386
 
            LD_SEARCH_FLAGS=""
2387
 
            echo $ac_n "checking for ELF""... $ac_c" 1>&6
2388
 
echo "configure:2389: checking for ELF" >&5
2389
 
            cat > conftest.$ac_ext <<EOF
2390
 
#line 2391 "configure"
2391
 
#include "confdefs.h"
2392
 
 
2393
 
#ifdef __ELF__
2394
 
        yes
2395
 
#endif
2396
 
            
2397
 
EOF
2398
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2399
 
  egrep "yes" >/dev/null 2>&1; then
2400
 
  rm -rf conftest*
2401
 
  echo "$ac_t""yes" 1>&6
2402
 
                SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so.1.0'
2403
 
else
2404
 
  rm -rf conftest*
2405
 
  echo "$ac_t""no" 1>&6
2406
 
                SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so.1.0'
2407
 
            
2408
 
fi
2409
 
rm -f conftest*
2410
 
 
2411
 
 
2412
 
            # OpenBSD doesn't do version numbers with dots.
2413
 
            UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
2414
 
            GRASS_LIB_VERSIONS_OK=nodots
2415
 
            ;;
2416
 
        FreeBSD-[1-2].*)
2417
 
            # Not available on all versions:  check for include file.
2418
 
            ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
2419
 
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
2420
 
echo "configure:2421: checking for dlfcn.h" >&5
2421
 
 
2422
 
cat > conftest.$ac_ext <<EOF
2423
 
#line 2424 "configure"
2424
 
#include "confdefs.h"
2425
 
#include <dlfcn.h>
2426
 
EOF
2427
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2428
 
{ (eval echo configure:2429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2429
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2430
 
if test -z "$ac_err"; then
2431
 
  rm -rf conftest*
2432
 
  eval "ac_cv_header_$ac_safe=yes"
2433
 
else
2434
 
  echo "$ac_err" >&5
2435
 
  echo "configure: failed program was:" >&5
2436
 
  cat conftest.$ac_ext >&5
2437
 
  rm -rf conftest*
2438
 
  eval "ac_cv_header_$ac_safe=no"
2439
 
fi
2440
 
rm -f conftest*
2441
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2442
 
  echo "$ac_t""yes" 1>&6
2443
 
  
2444
 
                SHLIB_CFLAGS="-fPIC"
2445
 
                SHLIB_LD="ld -Bshareable -x"
2446
 
                SHLIB_LD_LIBS=""
2447
 
                SHLIB_SUFFIX=".so"
2448
 
                LDFLAGS=""
2449
 
                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2450
 
                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2451
 
                echo $ac_n "checking for ELF""... $ac_c" 1>&6
2452
 
echo "configure:2453: checking for ELF" >&5
2453
 
                cat > conftest.$ac_ext <<EOF
2454
 
#line 2455 "configure"
2455
 
#include "confdefs.h"
2456
 
 
2457
 
#ifdef __ELF__
2458
 
        yes
2459
 
#endif
2460
 
                
2461
 
EOF
2462
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2463
 
  egrep "yes" >/dev/null 2>&1; then
2464
 
  rm -rf conftest*
2465
 
  echo "$ac_t""yes" 1>&6
2466
 
                    SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
2467
 
else
2468
 
  rm -rf conftest*
2469
 
  echo "$ac_t""no" 1>&6
2470
 
                    SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so.1.0'
2471
 
                
2472
 
fi
2473
 
rm -f conftest*
2474
 
 
2475
 
            
2476
 
else
2477
 
  echo "$ac_t""no" 1>&6
2478
 
 
2479
 
                SHLIB_CFLAGS=""
2480
 
                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
2481
 
                SHLIB_LD_LIBS='${LIBS}'
2482
 
                SHLIB_SUFFIX=".a"
2483
 
                LDFLAGS=""
2484
 
                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
2485
 
                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2486
 
                SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
2487
 
            
2488
 
fi
2489
 
 
2490
 
            UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
2491
 
            GRASS_LIB_VERSIONS_OK=nodots
2492
 
            ;;
2493
 
        FreeBSD-*)
2494
 
            # FreeBSD 3.* and greater have ELF.
2495
 
            SHLIB_CFLAGS="-fPIC"
2496
 
            SHLIB_LD="ld -Bshareable -x"
2497
 
            SHLIB_LD_LIBS='${LIBS}'
2498
 
            SHLIB_SUFFIX=".so"
2499
 
            LDFLAGS="-export-dynamic"
2500
 
            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2501
 
            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2502
 
            if test "${GRASS_THREADS}" = "1" ; then
2503
 
                # The -pthread needs to go in the CFLAGS, not LIBS
2504
 
                LIBS=`echo $LIBS | sed s/-pthread//`
2505
 
                EXTRA_CFLAGS="-pthread"
2506
 
                LDFLAGS="$LDFLAGS -pthread"
2507
 
            fi
2508
 
            case $system in
2509
 
            FreeBSD-3.*)
2510
 
                # FreeBSD-3 doesn't handle version numbers with dots.
2511
 
                UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
2512
 
                SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
2513
 
                GRASS_LIB_VERSIONS_OK=nodots
2514
 
                ;;
2515
 
            esac
2516
 
            ;;
2517
 
        Rhapsody-*|Darwin-*)
2518
 
            SHLIB_CFLAGS="-fno-common"
2519
 
            SHLIB_LD="cc -dynamiclib -compatibility_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -current_version \${GRASS_VERSION_MAJOR}.\${GRASS_VERSION_MINOR} -install_name \${INST_DIR}/lib/lib\${LIB_NAME}\${SHLIB_SUFFIX}"
2520
 
            GRASS_SHLIB_LD_EXTRAS=""
2521
 
            SHLIB_LD_LIBS='${LIBS}'
2522
 
            SHLIB_SUFFIX=".dylib"
2523
 
            PLAT_OBJS=""
2524
 
            CC_SEARCH_FLAGS=""
2525
 
            LD_SEARCH_FLAGS=""
2526
 
            CFLAGS_OPTIMIZE="-Os"
2527
 
            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
2528
 
            # for compatibility with autoconf vers 2.13 :
2529
 
            HACK=""
2530
 
            EXTRA_CFLAGS=""
2531
 
            LIBS="$LIBS"
2532
 
            ;;
2533
 
        NEXTSTEP-*)
2534
 
            SHLIB_CFLAGS=""
2535
 
            SHLIB_LD="cc -nostdlib -r"
2536
 
            SHLIB_LD_LIBS=""
2537
 
            SHLIB_SUFFIX=".so"
2538
 
            LDFLAGS=""
2539
 
            CC_SEARCH_FLAGS=""
2540
 
            LD_SEARCH_FLAGS=""
2541
 
            ;;
2542
 
        OS/390-*)
2543
 
            CFLAGS_OPTIMIZE=""      # Optimizer is buggy
2544
 
            cat >> confdefs.h <<\EOF
2545
 
#define _OE_SOCKETS 1
2546
 
EOF
2547
 
  # needed in sys/socket.h
2548
 
            ;;      
2549
 
        OSF1-1.0|OSF1-1.1|OSF1-1.2)
2550
 
            # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
2551
 
            SHLIB_CFLAGS=""
2552
 
            # Hack: make package name same as library name
2553
 
            SHLIB_LD='ld -R -export :'
2554
 
            SHLIB_LD_LIBS=""
2555
 
            SHLIB_SUFFIX=".so"
2556
 
            LDFLAGS=""
2557
 
            CC_SEARCH_FLAGS=""
2558
 
            LD_SEARCH_FLAGS=""
2559
 
            ;;
2560
 
        OSF1-1.*)
2561
 
            # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
2562
 
            SHLIB_CFLAGS="-fPIC"
2563
 
            if test "$SHARED_BUILD" = "1" ; then
2564
 
                SHLIB_LD="ld -shared"
2565
 
            else
2566
 
                SHLIB_LD="ld -non_shared"
2567
 
            fi
2568
 
            SHLIB_LD_LIBS=""
2569
 
            SHLIB_SUFFIX=".so"
2570
 
            LDFLAGS=""
2571
 
            CC_SEARCH_FLAGS=""
2572
 
            LD_SEARCH_FLAGS=""
2573
 
            ;;
2574
 
        OSF1-V*)
2575
 
            # Digital OSF/1
2576
 
            SHLIB_CFLAGS=""
2577
 
            if test "$SHARED_BUILD" = "1" ; then
2578
 
                SHLIB_LD='ld -shared -expect_unresolved "*"'
2579
 
            else
2580
 
                SHLIB_LD='ld -non_shared -expect_unresolved "*"'
2581
 
            fi
2582
 
            SHLIB_LD_LIBS=""
2583
 
            SHLIB_SUFFIX=".so"
2584
 
            LDFLAGS=""
2585
 
            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
2586
 
            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
2587
 
            if test "$GCC" = "yes" ; then
2588
 
                EXTRA_CFLAGS="-mieee"
2589
 
            else
2590
 
                EXTRA_CFLAGS="-DHAVE_TZSET -std1 -ieee"
2591
 
            fi
2592
 
            # see pthread_intro(3) for pthread support on osf1, k.furukawa
2593
 
            if test "${GRASS_THREADS}" = "1" ; then
2594
 
                EXTRA_CFLAGS="${EXTRA_CFLAGS} -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
2595
 
                EXTRA_CFLAGS="${EXTRA_CFLAGS} -DGRASS_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
2596
 
                LIBS=`echo $LIBS | sed s/-lpthreads//`
2597
 
                if test "$GCC" = "yes" ; then
2598
 
                    LIBS="$LIBS -lpthread -lmach -lexc"
2599
 
                else
2600
 
                    EXTRA_CFLAGS="${EXTRA_CFLAGS} -pthread"
2601
 
                    LDFLAGS="-pthread"
2602
 
                fi
2603
 
            fi
2604
 
 
2605
 
            ;;
2606
 
        QNX-6*)
2607
 
            # QNX RTP
2608
 
            # This may work for all QNX, but it was only reported for v6.
2609
 
            SHLIB_CFLAGS="-fPIC"
2610
 
            SHLIB_LD="ld -Bshareable -x"
2611
 
            SHLIB_LD_LIBS=""
2612
 
            SHLIB_SUFFIX=".so"
2613
 
            LDFLAGS=""
2614
 
            CC_SEARCH_FLAGS=""
2615
 
            LD_SEARCH_FLAGS=""
2616
 
            ;;
2617
 
        RISCos-*)
2618
 
            SHLIB_CFLAGS="-G 0"
2619
 
            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
2620
 
            SHLIB_LD_LIBS='${LIBS}'
2621
 
            SHLIB_SUFFIX=".a"
2622
 
            LDFLAGS="-Wl,-D,08000000"
2623
 
            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
2624
 
            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2625
 
            ;;
2626
 
        SCO_SV-3.2*)
2627
 
            # Note, dlopen is available only on SCO 3.2.5 and greater. However,
2628
 
            # this test works, since "uname -s" was non-standard in 3.2.4 and
2629
 
            # below.
2630
 
            if test "$GCC" = "yes" ; then
2631
 
                SHLIB_CFLAGS="-fPIC -melf"
2632
 
                LDFLAGS="-melf -Wl,-Bexport"
2633
 
            else
2634
 
                SHLIB_CFLAGS="-Kpic -belf"
2635
 
                LDFLAGS="-belf -Wl,-Bexport"
2636
 
            fi
2637
 
            SHLIB_LD="ld -G"
2638
 
            SHLIB_LD_LIBS=""
2639
 
            SHLIB_SUFFIX=".so"
2640
 
            CC_SEARCH_FLAGS=""
2641
 
            LD_SEARCH_FLAGS=""
2642
 
            ;;
2643
 
        SINIX*5.4*)
2644
 
            SHLIB_CFLAGS="-K PIC"
2645
 
            SHLIB_LD="cc -G"
2646
 
            SHLIB_LD_LIBS=""
2647
 
            SHLIB_SUFFIX=".so"
2648
 
            LDFLAGS=""
2649
 
            CC_SEARCH_FLAGS=""
2650
 
            LD_SEARCH_FLAGS=""
2651
 
            ;;
2652
 
        SunOS-4*)
2653
 
            SHLIB_CFLAGS="-PIC"
2654
 
            SHLIB_LD="ld"
2655
 
            SHLIB_LD_LIBS=""
2656
 
            SHLIB_SUFFIX=".so"
2657
 
            LDFLAGS=""
2658
 
            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
2659
 
            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2660
 
 
2661
 
            # SunOS can't handle version numbers with dots in them in library
2662
 
            # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
2663
 
            # requires an extra version number at the end of .so file names.
2664
 
            # So, the library has to have a name like libtcl75.so.1.0
2665
 
 
2666
 
            SHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.so.1.0'
2667
 
            UNSHARED_LIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
2668
 
            GRASS_LIB_VERSIONS_OK=nodots
2669
 
            ;;
2670
 
        SunOS-5.[0-6].*)
2671
 
 
2672
 
            # Note: If _REENTRANT isn't defined, then Solaris
2673
 
            # won't define thread-safe library routines.
2674
 
 
2675
 
            cat >> confdefs.h <<\EOF
2676
 
#define _REENTRANT 1
2677
 
EOF
2678
 
 
2679
 
            cat >> confdefs.h <<\EOF
2680
 
#define _POSIX_PTHREAD_SEMANTICS 1
2681
 
EOF
2682
 
 
2683
 
 
2684
 
            # Note: need the LIBS below, otherwise Tk won't find Tcl's
2685
 
            # symbols when dynamically loaded into tclsh.
2686
 
 
2687
 
            SHLIB_LD_LIBS='${LIBS}'
2688
 
            SHLIB_SUFFIX=".so"
2689
 
            LDFLAGS=""
2690
 
            if test "$GCC" = "yes" ; then
2691
 
                SHLIB_CFLAGS="-fPIC"
2692
 
                SHLIB_LD="$CC -shared"
2693
 
                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
2694
 
                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2695
 
            else
2696
 
                SHLIB_CFLAGS="-KPIC"
2697
 
                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
2698
 
                CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
2699
 
                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2700
 
            fi
2701
 
            ;;
2702
 
        SunOS-5*)
2703
 
 
2704
 
            # Note: If _REENTRANT isn't defined, then Solaris
2705
 
            # won't define thread-safe library routines.
2706
 
 
2707
 
            cat >> confdefs.h <<\EOF
2708
 
#define _REENTRANT 1
2709
 
EOF
2710
 
 
2711
 
            cat >> confdefs.h <<\EOF
2712
 
#define _POSIX_PTHREAD_SEMANTICS 1
2713
 
EOF
2714
 
 
2715
 
 
2716
 
            LDFLAGS=""
2717
 
    
2718
 
            # Check to enable 64-bit flags for compiler/linker
2719
 
            if test "$do64bit" = "yes" ; then
2720
 
                arch=`isainfo`
2721
 
                if test "$arch" = "sparcv9 sparc" ; then
2722
 
                        if test "$GCC" = "yes" ; then
2723
 
                            echo "configure: warning: "64bit mode not supported with GCC on $system"" 1>&2
2724
 
                        else
2725
 
                            SHLIB_CFLAGS="-KPIC"
2726
 
                            do64bit_ok=yes
2727
 
                            if test "$do64bitVIS" = "yes" ; then
2728
 
                                EXTRA_CFLAGS="-xarch=v9a"
2729
 
                                LDFLAGS="-xarch=v9a"
2730
 
                            else
2731
 
                                EXTRA_CFLAGS="-xarch=v9"
2732
 
                                LDFLAGS="-xarch=v9"
2733
 
                            fi
2734
 
                        fi
2735
 
                else
2736
 
                    echo "configure: warning: "64bit mode only supported sparcv9 system"" 1>&2
2737
 
                fi
2738
 
            fi
2739
 
            
2740
 
            # Note: need the LIBS below, otherwise Tk won't find Tcl's
2741
 
            # symbols when dynamically loaded into tclsh.
2742
 
 
2743
 
            SHLIB_LD_LIBS='${LIBS}'
2744
 
            SHLIB_SUFFIX=".so"
2745
 
            if test "$GCC" = "yes" ; then
2746
 
                SHLIB_CFLAGS="-fPIC"
2747
 
                SHLIB_LD="$CC -shared"
2748
 
                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
2749
 
                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2750
 
            else
2751
 
                SHLIB_CFLAGS="-KPIC"
2752
 
                SHLIB_LD="CC -G -z text"
2753
 
                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
2754
 
                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
2755
 
            fi
2756
 
            ;;
2757
 
        ULTRIX-4.*)
2758
 
            SHLIB_CFLAGS="-G 0"
2759
 
            SHLIB_SUFFIX=".a"
2760
 
            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
2761
 
            SHLIB_LD_LIBS='${LIBS}'
2762
 
            LDFLAGS="-Wl,-D,08000000"
2763
 
            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
2764
 
            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
2765
 
            if test "$GCC" != "yes" ; then
2766
 
                EXTRA_CFLAGS="-DHAVE_TZSET -std1"
2767
 
            fi
2768
 
            ;;
2769
 
        UNIX_SV* | UnixWare-5*)
2770
 
            SHLIB_CFLAGS="-KPIC"
2771
 
            SHLIB_LD="cc -G"
2772
 
            SHLIB_LD_LIBS=""
2773
 
            SHLIB_SUFFIX=".so"
2774
 
            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
2775
 
            # that don't grok the -Bexport option.  Test that it does.
2776
 
            hold_ldflags=$LDFLAGS
2777
 
            echo $ac_n "checking for ld accepts -Bexport flag""... $ac_c" 1>&6
2778
 
echo "configure:2779: checking for ld accepts -Bexport flag" >&5
2779
 
            LDFLAGS="${LDFLAGS} -Wl,-Bexport"
2780
 
            cat > conftest.$ac_ext <<EOF
2781
 
#line 2782 "configure"
2782
 
#include "confdefs.h"
2783
 
 
2784
 
int main() {
2785
 
int i;
2786
 
; return 0; }
2787
 
EOF
2788
 
if { (eval echo configure:2789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2789
 
  rm -rf conftest*
2790
 
  found=yes
2791
 
else
2792
 
  echo "configure: failed program was:" >&5
2793
 
  cat conftest.$ac_ext >&5
2794
 
  rm -rf conftest*
2795
 
  found=no
2796
 
fi
2797
 
rm -f conftest*
2798
 
            LDFLAGS=$hold_ldflags
2799
 
            echo "$ac_t""$found" 1>&6
2800
 
            if test $found = yes; then
2801
 
            LDFLAGS="-Wl,-Bexport"
2802
 
            else
2803
 
            LDFLAGS=""
2804
 
            fi
2805
 
            CC_SEARCH_FLAGS=""
2806
 
            LD_SEARCH_FLAGS=""
2807
 
            ;;
2808
 
    esac
2809
 
 
2810
 
    # If we're running gcc, then change the C flags for compiling shared
2811
 
    # libraries to the right flags for gcc, instead of those for the
2812
 
    # standard manufacturer compiler.
2813
 
 
2814
 
        if test "$GCC" = "yes" ; then
2815
 
            case $system in
2816
 
                AIX-*)
2817
 
                    ;;
2818
 
                BSD/OS*)
2819
 
                    ;;
2820
 
                *)
2821
 
                    ;;
2822
 
                NetBSD-*|FreeBSD-*)
2823
 
                    ;;
2824
 
                Rhapsody-*|Darwin-*)
2825
 
                    ;;
2826
 
                RISCos-*)
2827
 
                    ;;
2828
 
                SCO_SV-3.2*)
2829
 
                    ;;
2830
 
                ULTRIX-4.*)
2831
 
                    ;;
2832
 
                *)
2833
 
                    SHLIB_CFLAGS="-fPIC"
2834
 
                    ;;
2835
 
            esac
2836
 
        fi
2837
 
 
2838
 
    if test "$SHARED_LIB_SUFFIX" = "" ; then
2839
 
        SHARED_LIB_SUFFIX='${LIB_VER}${SHLIB_SUFFIX}'
2840
 
    fi
2841
 
    if test "$UNSHARED_LIB_SUFFIX" = "" ; then
2842
 
        UNSHARED_LIB_SUFFIX='${LIB_VER}.a'
2843
 
    fi
2844
 
 
2845
 
    if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
2846
 
        LIB_SUFFIX=${SHARED_LIB_SUFFIX}
2847
 
        MAKE_LIB='${SHLIB_LD} -o $@ ${SHLIB_LD_FLAGS} ${OBJS} ${SHLIB_LD_LIBS} ${GRASS_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
2848
 
        INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
2849
 
    else
2850
 
        LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
2851
 
 
2852
 
        if test "$RANLIB" = "" ; then
2853
 
            MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
2854
 
            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
 
1590
            SHLIB_LD_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -export-dynamic'
 
1591
            LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR} -L${LIB_RUNTIME_DIR}'
 
1592
            # some older NetBSD versions do not handle version numbers with dots.
 
1593
            #STLIB_SUFFIX='${GRASS_TRIM_DOTS}.a'
 
1594
            #SHLIB_SUFFIX='${GRASS_TRIM_DOTS}.so'
 
1595
            #GRASS_LIB_VERSIONS_OK=nodots
 
1596
            # NetBSD 6 does handle version numbers with dots.
 
1597
            STLIB_SUFFIX=".a"
 
1598
            SHLIB_SUFFIX=".so"
 
1599
            # TODO: add optional pthread support with any combination of: 
 
1600
            # CFLAGS="$CFLAGS -pthread"
 
1601
            # LDFLAGS="$LDFLAGS -lpthread"
 
1602
            # AC_DEFINE(_REENTRANT)
 
1603
            # AC_DEFINE(_POSIX_PTHREAD_SEMANTICS)
 
1604
            ;;
 
1605
        *aix*)
 
1606
                # NOTE: do we need to support aix < 6 ?
 
1607
            LIBS="$LIBS -lc"
 
1608
            SHLIB_CFLAGS=""
 
1609
            LDFLAGS=""
 
1610
        if test "$GCC" = "yes" ; then
 
1611
            SHLIB_CFLAGS="-fPIC"
 
1612
            SHLIB_LD="$CC -shared"
 
1613
            LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
2855
1614
        else
2856
 
            MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
2857
 
            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
 
1615
                # assume xlc
 
1616
            SHLIB_CFLAGS="-qmkshrobj"
 
1617
            SHLIB_LD="$CC -shared"
 
1618
            LD_SEARCH_FLAGS='-Wl,-bsvr4,-R,${LIB_RUNTIME_DIR}'
2858
1619
        fi
2859
 
 
2860
 
    fi
2861
 
 
2862
 
 
2863
 
    # Stub lib does not depend on shared/static configuration
2864
 
    if test "$RANLIB" = "" ; then
2865
 
        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
2866
 
        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
2867
 
    else
2868
 
        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
2869
 
        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
2870
 
    fi
2871
 
 
2872
 
    
2873
 
    
2874
 
    
2875
 
    
2876
 
    
2877
 
    
2878
 
 
2879
 
    
2880
 
    
2881
 
    
2882
 
    
2883
 
    
2884
 
    
2885
 
 
2886
 
    
2887
 
    
2888
 
    
2889
 
    
2890
 
    
2891
 
    
2892
 
    
2893
 
 
2894
 
    
2895
 
    
2896
 
    
 
1620
            SHLIB_SUFFIX=".so"
 
1621
            LD_LIBRARY_PATH_VAR="LIBPATH"
 
1622
            GRASS_NEEDS_EXP_FILE=1
 
1623
            GRASS_EXPORT_FILE_SUFFIX='${LIB_VER}.exp'
 
1624
            ;;
 
1625
        *)
 
1626
            { echo "configure: error: ***Unknown platform: $host***" 1>&2; exit 1; }
 
1627
            ;;
 
1628
    esac
 
1629
 
 
1630
    
 
1631
    
 
1632
    
 
1633
 
 
1634
    
 
1635
    
 
1636
    
 
1637
    
 
1638
 
2897
1639
    
2898
1640
    
2899
1641
 
2918
1660
  withval="$with_cxx"
2919
1661
  :
2920
1662
else
2921
 
  with_cxx=no
 
1663
  with_cxx=yes
2922
1664
fi
2923
1665
 
2924
1666
 
2961
1703
 
2962
1704
 
2963
1705
 
2964
 
# Check whether --with-tcltk or --without-tcltk was given.
2965
 
if test "${with_tcltk+set}" = set; then
2966
 
  withval="$with_tcltk"
2967
 
  :
2968
 
else
2969
 
  with_tcltk=yes
2970
 
fi
2971
 
 
2972
 
 
2973
 
 
2974
1706
# Check whether --with-postgres or --without-postgres was given.
2975
1707
if test "${with_postgres+set}" = set; then
2976
1708
  withval="$with_postgres"
2996
1728
  withval="$with_sqlite"
2997
1729
  :
2998
1730
else
2999
 
  with_sqlite=no
3000
 
fi
3001
 
 
3002
 
 
3003
 
 
3004
 
# Check whether --with-ffmpeg or --without-ffmpeg was given.
3005
 
if test "${with_ffmpeg+set}" = set; then
3006
 
  withval="$with_ffmpeg"
3007
 
  :
3008
 
else
3009
 
  with_ffmpeg=no
 
1731
  with_sqlite=yes
3010
1732
fi
3011
1733
 
3012
1734
 
3061
1783
 
3062
1784
 
3063
1785
 
3064
 
# Check whether --with-motif or --without-motif was given.
3065
 
if test "${with_motif+set}" = set; then
3066
 
  withval="$with_motif"
3067
 
  :
3068
 
else
3069
 
  with_motif=no
3070
 
fi
3071
 
 
3072
 
 
3073
 
 
3074
1786
# Check whether --with-cairo or --without-cairo was given.
3075
1787
if test "${with_cairo+set}" = set; then
3076
1788
  withval="$with_cairo"
3077
1789
  :
3078
1790
else
3079
 
  with_cairo=no
 
1791
  with_cairo=yes
3080
1792
fi
3081
1793
 
3082
1794
 
3086
1798
  withval="$with_freetype"
3087
1799
  :
3088
1800
else
3089
 
  with_freetype=no
3090
 
fi
3091
 
 
3092
 
 
3093
 
 
3094
 
# Check whether --with-glw or --without-glw was given.
3095
 
if test "${with_glw+set}" = set; then
3096
 
  withval="$with_glw"
3097
 
  :
3098
 
else
3099
 
  with_glw=no
 
1801
  with_freetype=yes
3100
1802
fi
3101
1803
 
3102
1804
 
3131
1833
 
3132
1834
 
3133
1835
 
3134
 
# Check whether --with-curses or --without-curses was given.
3135
 
if test "${with_curses+set}" = set; then
3136
 
  withval="$with_curses"
3137
 
  :
3138
 
else
3139
 
  with_curses=yes
3140
 
fi
3141
 
 
3142
 
 
3143
 
 
3144
1836
# Check whether --with-regex or --without-regex was given.
3145
1837
if test "${with_regex+set}" = set; then
3146
1838
  withval="$with_regex"
3151
1843
 
3152
1844
 
3153
1845
 
 
1846
# Check whether --with-pthread or --without-pthread was given.
 
1847
if test "${with_pthread+set}" = set; then
 
1848
  withval="$with_pthread"
 
1849
  :
 
1850
else
 
1851
  with_pthread=no
 
1852
fi
 
1853
 
 
1854
 
 
1855
 
 
1856
# Check whether --with-openmp or --without-openmp was given.
 
1857
if test "${with_openmp+set}" = set; then
 
1858
  withval="$with_openmp"
 
1859
  :
 
1860
else
 
1861
  with_openmp=no
 
1862
fi
 
1863
 
 
1864
 
 
1865
 
 
1866
# Check whether --with-opencl or --without-opencl was given.
 
1867
if test "${with_opencl+set}" = set; then
 
1868
  withval="$with_opencl"
 
1869
  :
 
1870
else
 
1871
  with_opencl=no
 
1872
fi
 
1873
 
 
1874
 
 
1875
 
3154
1876
# Check whether --with-gdal or --without-gdal was given.
3155
1877
if test "${with_gdal+set}" = set; then
3156
1878
  withval="$with_gdal"
3158
1880
fi
3159
1881
 
3160
1882
 
3161
 
# Check whether --with-python or --without-python was given.
3162
 
if test "${with_python+set}" = set; then
3163
 
  withval="$with_python"
 
1883
# Check whether --with-liblas or --without-liblas was given.
 
1884
if test "${with_liblas+set}" = set; then
 
1885
  withval="$with_liblas"
3164
1886
  :
3165
1887
else
3166
 
  with_python="no"
 
1888
  with_liblas="no"
3167
1889
fi
3168
1890
 
3169
1891
 
3176
1898
fi
3177
1899
 
3178
1900
 
 
1901
# Check whether --with-netcdf or --without-netcdf was given.
 
1902
if test "${with_netcdf+set}" = set; then
 
1903
  withval="$with_netcdf"
 
1904
  :
 
1905
else
 
1906
  with_netcdf="no"
 
1907
fi
 
1908
 
 
1909
 
3179
1910
# With includes and libs options
3180
1911
 
3181
1912
# Check whether --with-geos or --without-geos was given.
3270
2001
 
3271
2002
 
3272
2003
 
3273
 
# Check whether --with-tcltk-includes or --without-tcltk-includes was given.
3274
 
if test "${with_tcltk_includes+set}" = set; then
3275
 
  withval="$with_tcltk_includes"
3276
 
  :
3277
 
fi
3278
 
 
3279
 
 
3280
 
 
3281
 
# Check whether --with-tcltk-libs or --without-tcltk-libs was given.
3282
 
if test "${with_tcltk_libs+set}" = set; then
3283
 
  withval="$with_tcltk_libs"
3284
 
  :
3285
 
fi
3286
 
 
3287
 
 
3288
 
 
3289
 
 
3290
2004
# Check whether --with-postgres-includes or --without-postgres-includes was given.
3291
2005
if test "${with_postgres_includes+set}" = set; then
3292
2006
  withval="$with_postgres_includes"
3338
2052
 
3339
2053
 
3340
2054
 
3341
 
# Check whether --with-ffmpeg-includes or --without-ffmpeg-includes was given.
3342
 
if test "${with_ffmpeg_includes+set}" = set; then
3343
 
  withval="$with_ffmpeg_includes"
3344
 
  :
3345
 
fi
3346
 
 
3347
 
 
3348
 
 
3349
 
# Check whether --with-ffmpeg-libs or --without-ffmpeg-libs was given.
3350
 
if test "${with_ffmpeg_libs+set}" = set; then
3351
 
  withval="$with_ffmpeg_libs"
3352
 
  :
3353
 
fi
3354
 
 
3355
 
 
3356
 
 
3357
 
 
3358
2055
# Check whether --with-opengl-includes or --without-opengl-includes was given.
3359
2056
if test "${with_opengl_includes+set}" = set; then
3360
2057
  withval="$with_opengl_includes"
3371
2068
 
3372
2069
 
3373
2070
 
 
2071
# Check whether --with-opengl-framework or --without-opengl-framework was given.
 
2072
if test "${with_opengl_framework+set}" = set; then
 
2073
  withval="$with_opengl_framework"
 
2074
  :
 
2075
fi
 
2076
 
 
2077
 
 
2078
 
3374
2079
 
3375
2080
# Check whether --with-odbc-includes or --without-odbc-includes was given.
3376
2081
if test "${with_odbc_includes+set}" = set; then
3465
2170
 
3466
2171
 
3467
2172
 
3468
 
# Check whether --with-motif-includes or --without-motif-includes was given.
3469
 
if test "${with_motif_includes+set}" = set; then
3470
 
  withval="$with_motif_includes"
3471
 
  :
3472
 
fi
3473
 
 
3474
 
 
3475
 
 
3476
 
# Check whether --with-motif-libs or --without-motif-libs was given.
3477
 
if test "${with_motif_libs+set}" = set; then
3478
 
  withval="$with_motif_libs"
3479
 
  :
3480
 
fi
3481
 
 
3482
 
 
3483
 
 
3484
 
 
3485
2173
# Check whether --with-freetype-includes or --without-freetype-includes was given.
3486
2174
if test "${with_freetype_includes+set}" = set; then
3487
2175
  withval="$with_freetype_includes"
3499
2187
 
3500
2188
 
3501
2189
 
3502
 
# Check whether --with-glw-includes or --without-glw-includes was given.
3503
 
if test "${with_glw_includes+set}" = set; then
3504
 
  withval="$with_glw_includes"
3505
 
  :
3506
 
fi
3507
 
 
3508
 
 
3509
 
 
3510
 
# Check whether --with-glw-libs or --without-glw-libs was given.
3511
 
if test "${with_glw_libs+set}" = set; then
3512
 
  withval="$with_glw_libs"
3513
 
  :
3514
 
fi
3515
 
 
3516
 
 
3517
 
 
3518
 
 
3519
2190
# Check whether --with-proj-includes or --without-proj-includes was given.
3520
2191
if test "${with_proj_includes+set}" = set; then
3521
2192
  withval="$with_proj_includes"
3574
2245
 
3575
2246
 
3576
2247
 
 
2248
 
 
2249
# Check whether --with-pthread-includes or --without-pthread-includes was given.
 
2250
if test "${with_pthread_includes+set}" = set; then
 
2251
  withval="$with_pthread_includes"
 
2252
  :
 
2253
fi
 
2254
 
 
2255
 
 
2256
 
 
2257
# Check whether --with-pthread-libs or --without-pthread-libs was given.
 
2258
if test "${with_pthread_libs+set}" = set; then
 
2259
  withval="$with_pthread_libs"
 
2260
  :
 
2261
fi
 
2262
 
 
2263
 
 
2264
 
 
2265
 
 
2266
# Check whether --with-openmp-includes or --without-openmp-includes was given.
 
2267
if test "${with_openmp_includes+set}" = set; then
 
2268
  withval="$with_openmp_includes"
 
2269
  :
 
2270
fi
 
2271
 
 
2272
 
 
2273
 
 
2274
# Check whether --with-openmp-libs or --without-openmp-libs was given.
 
2275
if test "${with_openmp_libs+set}" = set; then
 
2276
  withval="$with_openmp_libs"
 
2277
  :
 
2278
fi
 
2279
 
 
2280
 
 
2281
 
 
2282
 
 
2283
# Check whether --with-opencl-includes or --without-opencl-includes was given.
 
2284
if test "${with_opencl_includes+set}" = set; then
 
2285
  withval="$with_opencl_includes"
 
2286
  :
 
2287
fi
 
2288
 
 
2289
 
 
2290
 
 
2291
# Check whether --with-opencl-libs or --without-opencl-libs was given.
 
2292
if test "${with_opencl_libs+set}" = set; then
 
2293
  withval="$with_opencl_libs"
 
2294
  :
 
2295
fi
 
2296
 
 
2297
 
 
2298
#LOC_ARG_WITH_FRAMEWORK(opencl, OpenCL)
 
2299
 
3577
2300
# Put this early on so CPPFLAGS and LDFLAGS have any additional dirs
3578
2301
 
3579
2302
# With includes option
3583
2306
# Done checking fortran
3584
2307
 
3585
2308
echo $ac_n "checking for additional include dirs""... $ac_c" 1>&6
3586
 
echo "configure:3587: checking for additional include dirs" >&5
 
2309
echo "configure:2310: checking for additional include dirs" >&5
3587
2310
case "$with_includes" in
3588
2311
y | ye | yes | n | no)
3589
2312
        { echo "configure: error: *** You must supply a directory to list --with-includes." 1>&2; exit 1; }
3606
2329
# With libs option
3607
2330
 
3608
2331
echo $ac_n "checking for additional library dirs""... $ac_c" 1>&6
3609
 
echo "configure:3610: checking for additional library dirs" >&5
 
2332
echo "configure:2333: checking for additional library dirs" >&5
3610
2333
case "$with_libs" in
3611
2334
y | ye | yes | n | no)
3612
2335
        { echo "configure: error: *** You must supply a directory list to --with-libs." 1>&2; exit 1; }
3640
2363
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3641
2364
# ./install, which can be erroneously created by make from ./install.sh.
3642
2365
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3643
 
echo "configure:3644: checking for a BSD compatible install" >&5
 
2366
echo "configure:2367: checking for a BSD compatible install" >&5
3644
2367
if test -z "$INSTALL"; then
3645
2368
 
3646
2369
  IFS="${IFS=   }"; ac_save_IFS="$IFS"; IFS=":"
3693
2416
# Extract the first word of "flex", so it can be a program name with args.
3694
2417
set dummy flex; ac_word=$2
3695
2418
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3696
 
echo "configure:3697: checking for $ac_word" >&5
 
2419
echo "configure:2420: checking for $ac_word" >&5
3697
2420
 
3698
2421
if test -n "$LEX"; then
3699
2422
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3724
2447
  *) ac_lib=l ;;
3725
2448
  esac
3726
2449
  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3727
 
echo "configure:3728: checking for yywrap in -l$ac_lib" >&5
 
2450
echo "configure:2451: checking for yywrap in -l$ac_lib" >&5
3728
2451
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3729
2452
 
3730
2453
ac_save_LIBS="$LIBS"
3731
2454
LIBS="-l$ac_lib  $LIBS"
3732
2455
cat > conftest.$ac_ext <<EOF
3733
 
#line 3734 "configure"
 
2456
#line 2457 "configure"
3734
2457
#include "confdefs.h"
3735
2458
/* Override any gcc2 internal prototype to avoid an error.  */
3736
2459
/* We use char because int might match the return type of a gcc2
3741
2464
yywrap()
3742
2465
; return 0; }
3743
2466
EOF
3744
 
if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2467
if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3745
2468
  rm -rf conftest*
3746
2469
  eval "ac_cv_lib_$ac_lib_var=yes"
3747
2470
else
3766
2489
    # Extract the first word of "lex", so it can be a program name with args.
3767
2490
set dummy lex; ac_word=$2
3768
2491
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3769
 
echo "configure:3770: checking for $ac_word" >&5
 
2492
echo "configure:2493: checking for $ac_word" >&5
3770
2493
 
3771
2494
case "$LEXPATH" in
3772
2495
  /*)
3806
2529
# Extract the first word of "$ac_prog", so it can be a program name with args.
3807
2530
set dummy $ac_prog; ac_word=$2
3808
2531
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3809
 
echo "configure:3810: checking for $ac_word" >&5
 
2532
echo "configure:2533: checking for $ac_word" >&5
3810
2533
 
3811
2534
if test -n "$YACC"; then
3812
2535
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3837
2560
    # Extract the first word of "yacc", so it can be a program name with args.
3838
2561
set dummy yacc; ac_word=$2
3839
2562
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3840
 
echo "configure:3841: checking for $ac_word" >&5
 
2563
echo "configure:2564: checking for $ac_word" >&5
3841
2564
 
3842
2565
case "$YACCPATH" in
3843
2566
  /*)
3875
2598
# Extract the first word of "ranlib", so it can be a program name with args.
3876
2599
set dummy ranlib; ac_word=$2
3877
2600
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3878
 
echo "configure:3879: checking for $ac_word" >&5
 
2601
echo "configure:2602: checking for $ac_word" >&5
3879
2602
 
3880
2603
if test -n "$RANLIB"; then
3881
2604
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3904
2627
# Extract the first word of "$ac_prog", so it can be a program name with args.
3905
2628
set dummy $ac_prog; ac_word=$2
3906
2629
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3907
 
echo "configure:3908: checking for $ac_word" >&5
 
2630
echo "configure:2631: checking for $ac_word" >&5
3908
2631
 
3909
2632
if test -n "$AR"; then
3910
2633
  ac_cv_prog_AR="$AR" # Let the user override the test.
3935
2658
# Extract the first word of "$ac_prog", so it can be a program name with args.
3936
2659
set dummy $ac_prog; ac_word=$2
3937
2660
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3938
 
echo "configure:3939: checking for $ac_word" >&5
 
2661
echo "configure:2662: checking for $ac_word" >&5
3939
2662
 
3940
2663
if test -n "$ENV"; then
3941
2664
  ac_cv_prog_ENV="$ENV" # Let the user override the test.
3964
2687
# Extract the first word of "perl", so it can be a program name with args.
3965
2688
set dummy perl; ac_word=$2
3966
2689
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3967
 
echo "configure:3968: checking for $ac_word" >&5
 
2690
echo "configure:2691: checking for $ac_word" >&5
3968
2691
 
3969
2692
case "$PERL" in
3970
2693
  /*)
3994
2717
  echo "$ac_t""no" 1>&6
3995
2718
fi
3996
2719
  
 
2720
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
2721
echo "configure:2722: checking how to run the C preprocessor" >&5
 
2722
# On Suns, sometimes $CPP names a directory.
 
2723
if test -n "$CPP" && test -d "$CPP"; then
 
2724
  CPP=
 
2725
fi
 
2726
if test -z "$CPP"; then
 
2727
 
 
2728
  # This must be in double quotes, not single quotes, because CPP may get
 
2729
  # substituted into the Makefile and "${CC-cc}" will confuse make.
 
2730
  CPP="${CC-cc} -E"
 
2731
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2732
  # not just through cpp.
 
2733
  cat > conftest.$ac_ext <<EOF
 
2734
#line 2735 "configure"
 
2735
#include "confdefs.h"
 
2736
#include <assert.h>
 
2737
Syntax Error
 
2738
EOF
 
2739
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2740
{ (eval echo configure:2741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2741
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2742
if test -z "$ac_err"; then
 
2743
  :
 
2744
else
 
2745
  echo "$ac_err" >&5
 
2746
  echo "configure: failed program was:" >&5
 
2747
  cat conftest.$ac_ext >&5
 
2748
  rm -rf conftest*
 
2749
  CPP="${CC-cc} -E -traditional-cpp"
 
2750
  cat > conftest.$ac_ext <<EOF
 
2751
#line 2752 "configure"
 
2752
#include "confdefs.h"
 
2753
#include <assert.h>
 
2754
Syntax Error
 
2755
EOF
 
2756
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2757
{ (eval echo configure:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2758
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2759
if test -z "$ac_err"; then
 
2760
  :
 
2761
else
 
2762
  echo "$ac_err" >&5
 
2763
  echo "configure: failed program was:" >&5
 
2764
  cat conftest.$ac_ext >&5
 
2765
  rm -rf conftest*
 
2766
  CPP="${CC-cc} -nologo -E"
 
2767
  cat > conftest.$ac_ext <<EOF
 
2768
#line 2769 "configure"
 
2769
#include "confdefs.h"
 
2770
#include <assert.h>
 
2771
Syntax Error
 
2772
EOF
 
2773
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
2774
{ (eval echo configure:2775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2775
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
2776
if test -z "$ac_err"; then
 
2777
  :
 
2778
else
 
2779
  echo "$ac_err" >&5
 
2780
  echo "configure: failed program was:" >&5
 
2781
  cat conftest.$ac_ext >&5
 
2782
  rm -rf conftest*
 
2783
  CPP=/lib/cpp
 
2784
fi
 
2785
rm -f conftest*
 
2786
fi
 
2787
rm -f conftest*
 
2788
fi
 
2789
rm -f conftest*
 
2790
  ac_cv_prog_CPP="$CPP"
 
2791
  CPP="$ac_cv_prog_CPP"
 
2792
else
 
2793
  ac_cv_prog_CPP="$CPP"
 
2794
fi
 
2795
echo "$ac_t""$CPP" 1>&6
 
2796
 
3997
2797
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3998
 
echo "configure:3999: checking for ANSI C header files" >&5
 
2798
echo "configure:2799: checking for ANSI C header files" >&5
3999
2799
 
4000
2800
cat > conftest.$ac_ext <<EOF
4001
 
#line 4002 "configure"
 
2801
#line 2802 "configure"
4002
2802
#include "confdefs.h"
4003
2803
#include <stdlib.h>
4004
2804
#include <stdarg.h>
4006
2806
#include <float.h>
4007
2807
EOF
4008
2808
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4009
 
{ (eval echo configure:4010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2809
{ (eval echo configure:2810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4010
2810
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4011
2811
if test -z "$ac_err"; then
4012
2812
  rm -rf conftest*
4023
2823
if test $ac_cv_header_stdc = yes; then
4024
2824
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4025
2825
cat > conftest.$ac_ext <<EOF
4026
 
#line 4027 "configure"
 
2826
#line 2827 "configure"
4027
2827
#include "confdefs.h"
4028
2828
#include <string.h>
4029
2829
EOF
4041
2841
if test $ac_cv_header_stdc = yes; then
4042
2842
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4043
2843
cat > conftest.$ac_ext <<EOF
4044
 
#line 4045 "configure"
 
2844
#line 2845 "configure"
4045
2845
#include "confdefs.h"
4046
2846
#include <stdlib.h>
4047
2847
EOF
4062
2862
  :
4063
2863
else
4064
2864
  cat > conftest.$ac_ext <<EOF
4065
 
#line 4066 "configure"
 
2865
#line 2866 "configure"
4066
2866
#include "confdefs.h"
4067
2867
#include <ctype.h>
4068
2868
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4073
2873
exit (0); }
4074
2874
 
4075
2875
EOF
4076
 
if { (eval echo configure:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
2876
if { (eval echo configure:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4077
2877
then
4078
2878
  :
4079
2879
else
4100
2900
do
4101
2901
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4102
2902
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4103
 
echo "configure:4104: checking for $ac_hdr" >&5
 
2903
echo "configure:2904: checking for $ac_hdr" >&5
4104
2904
 
4105
2905
cat > conftest.$ac_ext <<EOF
4106
 
#line 4107 "configure"
 
2906
#line 2907 "configure"
4107
2907
#include "confdefs.h"
4108
2908
#include <$ac_hdr>
4109
2909
EOF
4110
2910
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4111
 
{ (eval echo configure:4112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2911
{ (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4112
2912
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4113
2913
if test -z "$ac_err"; then
4114
2914
  rm -rf conftest*
4137
2937
do
4138
2938
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4139
2939
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4140
 
echo "configure:4141: checking for $ac_hdr" >&5
 
2940
echo "configure:2941: checking for $ac_hdr" >&5
4141
2941
 
4142
2942
cat > conftest.$ac_ext <<EOF
4143
 
#line 4144 "configure"
 
2943
#line 2944 "configure"
4144
2944
#include "confdefs.h"
4145
2945
#include <$ac_hdr>
4146
2946
EOF
4147
2947
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4148
 
{ (eval echo configure:4149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2948
{ (eval echo configure:2949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4149
2949
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4150
2950
if test -z "$ac_err"; then
4151
2951
  rm -rf conftest*
4174
2974
do
4175
2975
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4176
2976
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4177
 
echo "configure:4178: checking for $ac_hdr" >&5
 
2977
echo "configure:2978: checking for $ac_hdr" >&5
4178
2978
 
4179
2979
cat > conftest.$ac_ext <<EOF
4180
 
#line 4181 "configure"
 
2980
#line 2981 "configure"
4181
2981
#include "confdefs.h"
4182
2982
#include <$ac_hdr>
4183
2983
EOF
4184
2984
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4185
 
{ (eval echo configure:4186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
2985
{ (eval echo configure:2986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4186
2986
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4187
2987
if test -z "$ac_err"; then
4188
2988
  rm -rf conftest*
4211
3011
do
4212
3012
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4213
3013
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4214
 
echo "configure:4215: checking for $ac_hdr" >&5
 
3014
echo "configure:3015: checking for $ac_hdr" >&5
4215
3015
 
4216
3016
cat > conftest.$ac_ext <<EOF
4217
 
#line 4218 "configure"
 
3017
#line 3018 "configure"
4218
3018
#include "confdefs.h"
4219
3019
#include <$ac_hdr>
4220
3020
EOF
4221
3021
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4222
 
{ (eval echo configure:4223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3022
{ (eval echo configure:3023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4223
3023
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4224
3024
if test -z "$ac_err"; then
4225
3025
  rm -rf conftest*
4248
3048
do
4249
3049
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4250
3050
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4251
 
echo "configure:4252: checking for $ac_hdr" >&5
 
3051
echo "configure:3052: checking for $ac_hdr" >&5
4252
3052
 
4253
3053
cat > conftest.$ac_ext <<EOF
4254
 
#line 4255 "configure"
 
3054
#line 3055 "configure"
4255
3055
#include "confdefs.h"
4256
3056
#include <$ac_hdr>
4257
3057
EOF
4258
3058
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4259
 
{ (eval echo configure:4260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3059
{ (eval echo configure:3060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4260
3060
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4261
3061
if test -z "$ac_err"; then
4262
3062
  rm -rf conftest*
4282
3082
done
4283
3083
 
4284
3084
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4285
 
echo "configure:4286: checking whether time.h and sys/time.h may both be included" >&5
 
3085
echo "configure:3086: checking whether time.h and sys/time.h may both be included" >&5
4286
3086
 
4287
3087
cat > conftest.$ac_ext <<EOF
4288
 
#line 4289 "configure"
 
3088
#line 3089 "configure"
4289
3089
#include "confdefs.h"
4290
3090
#include <sys/types.h>
4291
3091
#include <sys/time.h>
4294
3094
struct tm *tp;
4295
3095
; return 0; }
4296
3096
EOF
4297
 
if { (eval echo configure:4298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3097
if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4298
3098
  rm -rf conftest*
4299
3099
  ac_cv_header_time=yes
4300
3100
else
4314
3114
fi
4315
3115
 
4316
3116
echo $ac_n "checking for off_t""... $ac_c" 1>&6
4317
 
echo "configure:4318: checking for off_t" >&5
 
3117
echo "configure:3118: checking for off_t" >&5
4318
3118
 
4319
3119
cat > conftest.$ac_ext <<EOF
4320
 
#line 4321 "configure"
 
3120
#line 3121 "configure"
4321
3121
#include "confdefs.h"
4322
3122
#include <sys/types.h>
4323
3123
#if STDC_HEADERS
4344
3144
fi
4345
3145
 
4346
3146
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4347
 
echo "configure:4348: checking for uid_t in sys/types.h" >&5
 
3147
echo "configure:3148: checking for uid_t in sys/types.h" >&5
4348
3148
 
4349
3149
cat > conftest.$ac_ext <<EOF
4350
 
#line 4351 "configure"
 
3150
#line 3151 "configure"
4351
3151
#include "confdefs.h"
4352
3152
#include <sys/types.h>
4353
3153
EOF
4375
3175
fi
4376
3176
 
4377
3177
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4378
 
echo "configure:4379: checking return type of signal handlers" >&5
 
3178
echo "configure:3179: checking return type of signal handlers" >&5
4379
3179
 
4380
3180
cat > conftest.$ac_ext <<EOF
4381
 
#line 4382 "configure"
 
3181
#line 3182 "configure"
4382
3182
#include "confdefs.h"
4383
3183
#include <sys/types.h>
4384
3184
#include <signal.h>
4395
3195
int i;
4396
3196
; return 0; }
4397
3197
EOF
4398
 
if { (eval echo configure:4399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3198
if { (eval echo configure:3199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4399
3199
  rm -rf conftest*
4400
3200
  ac_cv_type_signal=void
4401
3201
else
4413
3213
 
4414
3214
 
4415
3215
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4416
 
echo "configure:4417: checking for Cygwin environment" >&5
 
3216
echo "configure:3217: checking for Cygwin environment" >&5
4417
3217
 
4418
3218
cat > conftest.$ac_ext <<EOF
4419
 
#line 4420 "configure"
 
3219
#line 3220 "configure"
4420
3220
#include "confdefs.h"
4421
3221
 
4422
3222
int main() {
4427
3227
return __CYGWIN__;
4428
3228
; return 0; }
4429
3229
EOF
4430
 
if { (eval echo configure:4431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3230
if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4431
3231
  rm -rf conftest*
4432
3232
  ac_cv_cygwin=yes
4433
3233
else
4445
3245
for ac_func in ftime gethostname gettimeofday lseek nice time uname
4446
3246
do
4447
3247
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4448
 
echo "configure:4449: checking for $ac_func" >&5
 
3248
echo "configure:3249: checking for $ac_func" >&5
4449
3249
 
4450
3250
cat > conftest.$ac_ext <<EOF
4451
 
#line 4452 "configure"
 
3251
#line 3252 "configure"
4452
3252
#include "confdefs.h"
4453
3253
/* System header to define __stub macros and hopefully few prototypes,
4454
3254
    which can conflict with char $ac_func(); below.  */
4471
3271
 
4472
3272
; return 0; }
4473
3273
EOF
4474
 
if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3274
if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4475
3275
  rm -rf conftest*
4476
3276
  eval "ac_cv_func_$ac_func=yes"
4477
3277
else
4497
3297
for ac_func in seteuid setpriority setreuid setruid
4498
3298
do
4499
3299
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4500
 
echo "configure:4501: checking for $ac_func" >&5
 
3300
echo "configure:3301: checking for $ac_func" >&5
4501
3301
 
4502
3302
cat > conftest.$ac_ext <<EOF
4503
 
#line 4504 "configure"
 
3303
#line 3304 "configure"
4504
3304
#include "confdefs.h"
4505
3305
/* System header to define __stub macros and hopefully few prototypes,
4506
3306
    which can conflict with char $ac_func(); below.  */
4523
3323
 
4524
3324
; return 0; }
4525
3325
EOF
4526
 
if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3326
if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4527
3327
  rm -rf conftest*
4528
3328
  eval "ac_cv_func_$ac_func=yes"
4529
3329
else
4549
3349
for ac_func in drand48
4550
3350
do
4551
3351
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4552
 
echo "configure:4553: checking for $ac_func" >&5
 
3352
echo "configure:3353: checking for $ac_func" >&5
4553
3353
 
4554
3354
cat > conftest.$ac_ext <<EOF
4555
 
#line 4556 "configure"
 
3355
#line 3356 "configure"
4556
3356
#include "confdefs.h"
4557
3357
/* System header to define __stub macros and hopefully few prototypes,
4558
3358
    which can conflict with char $ac_func(); below.  */
4575
3375
 
4576
3376
; return 0; }
4577
3377
EOF
4578
 
if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3378
if { (eval echo configure:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4579
3379
  rm -rf conftest*
4580
3380
  eval "ac_cv_func_$ac_func=yes"
4581
3381
else
4601
3401
for ac_func in putenv setenv
4602
3402
do
4603
3403
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4604
 
echo "configure:4605: checking for $ac_func" >&5
 
3404
echo "configure:3405: checking for $ac_func" >&5
4605
3405
 
4606
3406
cat > conftest.$ac_ext <<EOF
4607
 
#line 4608 "configure"
 
3407
#line 3408 "configure"
4608
3408
#include "confdefs.h"
4609
3409
/* System header to define __stub macros and hopefully few prototypes,
4610
3410
    which can conflict with char $ac_func(); below.  */
4627
3427
 
4628
3428
; return 0; }
4629
3429
EOF
4630
 
if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3430
if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4631
3431
  rm -rf conftest*
4632
3432
  eval "ac_cv_func_$ac_func=yes"
4633
3433
else
4653
3453
for ac_func in nanosleep
4654
3454
do
4655
3455
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4656
 
echo "configure:4657: checking for $ac_func" >&5
 
3456
echo "configure:3457: checking for $ac_func" >&5
4657
3457
 
4658
3458
cat > conftest.$ac_ext <<EOF
4659
 
#line 4660 "configure"
 
3459
#line 3460 "configure"
4660
3460
#include "confdefs.h"
4661
3461
/* System header to define __stub macros and hopefully few prototypes,
4662
3462
    which can conflict with char $ac_func(); below.  */
4679
3479
 
4680
3480
; return 0; }
4681
3481
EOF
4682
 
if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3482
if { (eval echo configure:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4683
3483
  rm -rf conftest*
4684
3484
  eval "ac_cv_func_$ac_func=yes"
4685
3485
else
4704
3504
 
4705
3505
if test "$cross_compiling" != "yes" ; then
4706
3506
echo $ac_n "checking whether setpgrp takes no argument""... $ac_c" 1>&6
4707
 
echo "configure:4708: checking whether setpgrp takes no argument" >&5
 
3507
echo "configure:3508: checking whether setpgrp takes no argument" >&5
4708
3508
 
4709
3509
if test "$cross_compiling" = yes; then
4710
3510
  { echo "configure: error: cannot check setpgrp if cross compiling" 1>&2; exit 1; }
4711
3511
else
4712
3512
  cat > conftest.$ac_ext <<EOF
4713
 
#line 4714 "configure"
 
3513
#line 3514 "configure"
4714
3514
#include "confdefs.h"
4715
3515
 
4716
3516
#ifdef HAVE_UNISTD_H
4730
3530
}
4731
3531
 
4732
3532
EOF
4733
 
if { (eval echo configure:4734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
3533
if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4734
3534
then
4735
3535
  ac_cv_func_setpgrp_void=no
4736
3536
else
4758
3558
fi
4759
3559
 
4760
3560
echo $ac_n "checking for long long int""... $ac_c" 1>&6
4761
 
echo "configure:4762: checking for long long int" >&5
 
3561
echo "configure:3562: checking for long long int" >&5
4762
3562
cat > conftest.$ac_ext <<EOF
4763
 
#line 4764 "configure"
 
3563
#line 3564 "configure"
4764
3564
#include "confdefs.h"
4765
3565
 
4766
3566
int main() {
4767
3567
long long int x;
4768
3568
; return 0; }
4769
3569
EOF
4770
 
if { (eval echo configure:4771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3570
if { (eval echo configure:3571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4771
3571
  rm -rf conftest*
4772
3572
  
4773
3573
echo "$ac_t""yes" 1>&6
4787
3587
rm -f conftest*
4788
3588
 
4789
3589
echo $ac_n "checking for W11""... $ac_c" 1>&6
4790
 
echo "configure:4791: checking for W11" >&5
 
3590
echo "configure:3591: checking for W11" >&5
4791
3591
case "$enable_w11" in
4792
3592
        yes|no) echo "$ac_t"""$enable_w11"" 1>&6        ;;
4793
3593
        *)      { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; }       ;;
4815
3615
# Uses ac_ vars as temps to allow command line to override cache and checks.
4816
3616
# --without-x overrides everything else, but does not touch the cache.
4817
3617
echo $ac_n "checking for X""... $ac_c" 1>&6
4818
 
echo "configure:4819: checking for X" >&5
 
3618
echo "configure:3619: checking for X" >&5
4819
3619
 
4820
3620
# Check whether --with-x or --without-x was given.
4821
3621
if test "${with_x+set}" = set; then
4875
3675
 
4876
3676
  # First, try using that file with no special directory specified.
4877
3677
cat > conftest.$ac_ext <<EOF
4878
 
#line 4879 "configure"
 
3678
#line 3679 "configure"
4879
3679
#include "confdefs.h"
4880
3680
#include <$x_direct_test_include>
4881
3681
EOF
4882
3682
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4883
 
{ (eval echo configure:4884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
3683
{ (eval echo configure:3684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4884
3684
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4885
3685
if test -z "$ac_err"; then
4886
3686
  rm -rf conftest*
4949
3749
  ac_save_LIBS="$LIBS"
4950
3750
  LIBS="-l$x_direct_test_library $LIBS"
4951
3751
cat > conftest.$ac_ext <<EOF
4952
 
#line 4953 "configure"
 
3752
#line 3753 "configure"
4953
3753
#include "confdefs.h"
4954
3754
 
4955
3755
int main() {
4956
3756
${x_direct_test_function}()
4957
3757
; return 0; }
4958
3758
EOF
4959
 
if { (eval echo configure:4960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3759
if { (eval echo configure:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4960
3760
  rm -rf conftest*
4961
3761
  LIBS="$ac_save_LIBS"
4962
3762
# We can link X programs with no special library path.
5061
3861
    case "`(uname -sr) 2>/dev/null`" in
5062
3862
    "SunOS 5"*)
5063
3863
      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5064
 
echo "configure:5065: checking whether -R must be followed by a space" >&5
 
3864
echo "configure:3865: checking whether -R must be followed by a space" >&5
5065
3865
      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5066
3866
      cat > conftest.$ac_ext <<EOF
5067
 
#line 5068 "configure"
 
3867
#line 3868 "configure"
5068
3868
#include "confdefs.h"
5069
3869
 
5070
3870
int main() {
5071
3871
 
5072
3872
; return 0; }
5073
3873
EOF
5074
 
if { (eval echo configure:5075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3874
if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5075
3875
  rm -rf conftest*
5076
3876
  ac_R_nospace=yes
5077
3877
else
5087
3887
      else
5088
3888
        LIBS="$ac_xsave_LIBS -R $x_libraries"
5089
3889
        cat > conftest.$ac_ext <<EOF
5090
 
#line 5091 "configure"
 
3890
#line 3891 "configure"
5091
3891
#include "confdefs.h"
5092
3892
 
5093
3893
int main() {
5094
3894
 
5095
3895
; return 0; }
5096
3896
EOF
5097
 
if { (eval echo configure:5098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3897
if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5098
3898
  rm -rf conftest*
5099
3899
  ac_R_space=yes
5100
3900
else
5126
3926
    # libraries were built with DECnet support.  And karl@cs.umb.edu says
5127
3927
    # the Alpha needs dnet_stub (dnet does not exist).
5128
3928
    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5129
 
echo "configure:5130: checking for dnet_ntoa in -ldnet" >&5
 
3929
echo "configure:3930: checking for dnet_ntoa in -ldnet" >&5
5130
3930
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5131
3931
 
5132
3932
ac_save_LIBS="$LIBS"
5133
3933
LIBS="-ldnet  $LIBS"
5134
3934
cat > conftest.$ac_ext <<EOF
5135
 
#line 5136 "configure"
 
3935
#line 3936 "configure"
5136
3936
#include "confdefs.h"
5137
3937
/* Override any gcc2 internal prototype to avoid an error.  */
5138
3938
/* We use char because int might match the return type of a gcc2
5143
3943
dnet_ntoa()
5144
3944
; return 0; }
5145
3945
EOF
5146
 
if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3946
if { (eval echo configure:3947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5147
3947
  rm -rf conftest*
5148
3948
  eval "ac_cv_lib_$ac_lib_var=yes"
5149
3949
else
5164
3964
 
5165
3965
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5166
3966
      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5167
 
echo "configure:5168: checking for dnet_ntoa in -ldnet_stub" >&5
 
3967
echo "configure:3968: checking for dnet_ntoa in -ldnet_stub" >&5
5168
3968
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5169
3969
 
5170
3970
ac_save_LIBS="$LIBS"
5171
3971
LIBS="-ldnet_stub  $LIBS"
5172
3972
cat > conftest.$ac_ext <<EOF
5173
 
#line 5174 "configure"
 
3973
#line 3974 "configure"
5174
3974
#include "confdefs.h"
5175
3975
/* Override any gcc2 internal prototype to avoid an error.  */
5176
3976
/* We use char because int might match the return type of a gcc2
5181
3981
dnet_ntoa()
5182
3982
; return 0; }
5183
3983
EOF
5184
 
if { (eval echo configure:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3984
if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5185
3985
  rm -rf conftest*
5186
3986
  eval "ac_cv_lib_$ac_lib_var=yes"
5187
3987
else
5209
4009
    # The nsl library prevents programs from opening the X display
5210
4010
    # on Irix 5.2, according to dickey@clark.net.
5211
4011
    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5212
 
echo "configure:5213: checking for gethostbyname" >&5
 
4012
echo "configure:4013: checking for gethostbyname" >&5
5213
4013
 
5214
4014
cat > conftest.$ac_ext <<EOF
5215
 
#line 5216 "configure"
 
4015
#line 4016 "configure"
5216
4016
#include "confdefs.h"
5217
4017
/* System header to define __stub macros and hopefully few prototypes,
5218
4018
    which can conflict with char gethostbyname(); below.  */
5235
4035
 
5236
4036
; return 0; }
5237
4037
EOF
5238
 
if { (eval echo configure:5239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4038
if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5239
4039
  rm -rf conftest*
5240
4040
  eval "ac_cv_func_gethostbyname=yes"
5241
4041
else
5255
4055
 
5256
4056
    if test $ac_cv_func_gethostbyname = no; then
5257
4057
      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5258
 
echo "configure:5259: checking for gethostbyname in -lnsl" >&5
 
4058
echo "configure:4059: checking for gethostbyname in -lnsl" >&5
5259
4059
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5260
4060
 
5261
4061
ac_save_LIBS="$LIBS"
5262
4062
LIBS="-lnsl  $LIBS"
5263
4063
cat > conftest.$ac_ext <<EOF
5264
 
#line 5265 "configure"
 
4064
#line 4065 "configure"
5265
4065
#include "confdefs.h"
5266
4066
/* Override any gcc2 internal prototype to avoid an error.  */
5267
4067
/* We use char because int might match the return type of a gcc2
5272
4072
gethostbyname()
5273
4073
; return 0; }
5274
4074
EOF
5275
 
if { (eval echo configure:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4075
if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5276
4076
  rm -rf conftest*
5277
4077
  eval "ac_cv_lib_$ac_lib_var=yes"
5278
4078
else
5301
4101
    # -lsocket must be given before -lnsl if both are needed.
5302
4102
    # We assume that if connect needs -lnsl, so does gethostbyname.
5303
4103
    echo $ac_n "checking for connect""... $ac_c" 1>&6
5304
 
echo "configure:5305: checking for connect" >&5
 
4104
echo "configure:4105: checking for connect" >&5
5305
4105
 
5306
4106
cat > conftest.$ac_ext <<EOF
5307
 
#line 5308 "configure"
 
4107
#line 4108 "configure"
5308
4108
#include "confdefs.h"
5309
4109
/* System header to define __stub macros and hopefully few prototypes,
5310
4110
    which can conflict with char connect(); below.  */
5327
4127
 
5328
4128
; return 0; }
5329
4129
EOF
5330
 
if { (eval echo configure:5331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4130
if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5331
4131
  rm -rf conftest*
5332
4132
  eval "ac_cv_func_connect=yes"
5333
4133
else
5347
4147
 
5348
4148
    if test $ac_cv_func_connect = no; then
5349
4149
      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5350
 
echo "configure:5351: checking for connect in -lsocket" >&5
 
4150
echo "configure:4151: checking for connect in -lsocket" >&5
5351
4151
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5352
4152
 
5353
4153
ac_save_LIBS="$LIBS"
5354
4154
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5355
4155
cat > conftest.$ac_ext <<EOF
5356
 
#line 5357 "configure"
 
4156
#line 4157 "configure"
5357
4157
#include "confdefs.h"
5358
4158
/* Override any gcc2 internal prototype to avoid an error.  */
5359
4159
/* We use char because int might match the return type of a gcc2
5364
4164
connect()
5365
4165
; return 0; }
5366
4166
EOF
5367
 
if { (eval echo configure:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4167
if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5368
4168
  rm -rf conftest*
5369
4169
  eval "ac_cv_lib_$ac_lib_var=yes"
5370
4170
else
5387
4187
 
5388
4188
    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5389
4189
    echo $ac_n "checking for remove""... $ac_c" 1>&6
5390
 
echo "configure:5391: checking for remove" >&5
 
4190
echo "configure:4191: checking for remove" >&5
5391
4191
 
5392
4192
cat > conftest.$ac_ext <<EOF
5393
 
#line 5394 "configure"
 
4193
#line 4194 "configure"
5394
4194
#include "confdefs.h"
5395
4195
/* System header to define __stub macros and hopefully few prototypes,
5396
4196
    which can conflict with char remove(); below.  */
5413
4213
 
5414
4214
; return 0; }
5415
4215
EOF
5416
 
if { (eval echo configure:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4216
if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5417
4217
  rm -rf conftest*
5418
4218
  eval "ac_cv_func_remove=yes"
5419
4219
else
5433
4233
 
5434
4234
    if test $ac_cv_func_remove = no; then
5435
4235
      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5436
 
echo "configure:5437: checking for remove in -lposix" >&5
 
4236
echo "configure:4237: checking for remove in -lposix" >&5
5437
4237
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5438
4238
 
5439
4239
ac_save_LIBS="$LIBS"
5440
4240
LIBS="-lposix  $LIBS"
5441
4241
cat > conftest.$ac_ext <<EOF
5442
 
#line 5443 "configure"
 
4242
#line 4243 "configure"
5443
4243
#include "confdefs.h"
5444
4244
/* Override any gcc2 internal prototype to avoid an error.  */
5445
4245
/* We use char because int might match the return type of a gcc2
5450
4250
remove()
5451
4251
; return 0; }
5452
4252
EOF
5453
 
if { (eval echo configure:5454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4253
if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5454
4254
  rm -rf conftest*
5455
4255
  eval "ac_cv_lib_$ac_lib_var=yes"
5456
4256
else
5473
4273
 
5474
4274
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5475
4275
    echo $ac_n "checking for shmat""... $ac_c" 1>&6
5476
 
echo "configure:5477: checking for shmat" >&5
 
4276
echo "configure:4277: checking for shmat" >&5
5477
4277
 
5478
4278
cat > conftest.$ac_ext <<EOF
5479
 
#line 5480 "configure"
 
4279
#line 4280 "configure"
5480
4280
#include "confdefs.h"
5481
4281
/* System header to define __stub macros and hopefully few prototypes,
5482
4282
    which can conflict with char shmat(); below.  */
5499
4299
 
5500
4300
; return 0; }
5501
4301
EOF
5502
 
if { (eval echo configure:5503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4302
if { (eval echo configure:4303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5503
4303
  rm -rf conftest*
5504
4304
  eval "ac_cv_func_shmat=yes"
5505
4305
else
5519
4319
 
5520
4320
    if test $ac_cv_func_shmat = no; then
5521
4321
      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5522
 
echo "configure:5523: checking for shmat in -lipc" >&5
 
4322
echo "configure:4323: checking for shmat in -lipc" >&5
5523
4323
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5524
4324
 
5525
4325
ac_save_LIBS="$LIBS"
5526
4326
LIBS="-lipc  $LIBS"
5527
4327
cat > conftest.$ac_ext <<EOF
5528
 
#line 5529 "configure"
 
4328
#line 4329 "configure"
5529
4329
#include "confdefs.h"
5530
4330
/* Override any gcc2 internal prototype to avoid an error.  */
5531
4331
/* We use char because int might match the return type of a gcc2
5536
4336
shmat()
5537
4337
; return 0; }
5538
4338
EOF
5539
 
if { (eval echo configure:5540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4339
if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5540
4340
  rm -rf conftest*
5541
4341
  eval "ac_cv_lib_$ac_lib_var=yes"
5542
4342
else
5568
4368
  # libraries we check for below, so use a different variable.
5569
4369
  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5570
4370
  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
5571
 
echo "configure:5572: checking for IceConnectionNumber in -lICE" >&5
 
4371
echo "configure:4372: checking for IceConnectionNumber in -lICE" >&5
5572
4372
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5573
4373
 
5574
4374
ac_save_LIBS="$LIBS"
5575
4375
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5576
4376
cat > conftest.$ac_ext <<EOF
5577
 
#line 5578 "configure"
 
4377
#line 4378 "configure"
5578
4378
#include "confdefs.h"
5579
4379
/* Override any gcc2 internal prototype to avoid an error.  */
5580
4380
/* We use char because int might match the return type of a gcc2
5585
4385
IceConnectionNumber()
5586
4386
; return 0; }
5587
4387
EOF
5588
 
if { (eval echo configure:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4388
if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5589
4389
  rm -rf conftest*
5590
4390
  eval "ac_cv_lib_$ac_lib_var=yes"
5591
4391
else
5619
4419
 
5620
4420
 
5621
4421
 
5622
 
# Enable Curses option
5623
 
 
5624
 
 
5625
 
echo $ac_n "checking whether to use Curses""... $ac_c" 1>&6
5626
 
echo "configure:5627: checking whether to use Curses" >&5
5627
 
echo "$ac_t"""$with_curses"" 1>&6
5628
 
case "$with_curses" in
5629
 
        "no")   USE_CURSES=     ;;
5630
 
        "yes")  USE_CURSES="1"  ;;
5631
 
        *)      { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; }       ;;
5632
 
esac
5633
 
 
5634
 
 
5635
 
 
5636
 
if test -n "$USE_CURSES"; then
5637
 
 
5638
 
 
5639
 
ac_save_cppflags="$CPPFLAGS"
5640
 
CPPFLAGS=" $CPPFLAGS"
5641
 
for ac_hdr in curses.h
5642
 
do
5643
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5644
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5645
 
echo "configure:5646: checking for $ac_hdr" >&5
5646
 
 
5647
 
cat > conftest.$ac_ext <<EOF
5648
 
#line 5649 "configure"
5649
 
#include "confdefs.h"
5650
 
#include <$ac_hdr>
5651
 
EOF
5652
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5653
 
{ (eval echo configure:5654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5654
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5655
 
if test -z "$ac_err"; then
5656
 
  rm -rf conftest*
5657
 
  eval "ac_cv_header_$ac_safe=yes"
5658
 
else
5659
 
  echo "$ac_err" >&5
5660
 
  echo "configure: failed program was:" >&5
5661
 
  cat conftest.$ac_ext >&5
5662
 
  rm -rf conftest*
5663
 
  eval "ac_cv_header_$ac_safe=no"
5664
 
fi
5665
 
rm -f conftest*
5666
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5667
 
  echo "$ac_t""yes" 1>&6
5668
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5669
 
  cat >> confdefs.h <<EOF
5670
 
#define $ac_tr_hdr 1
5671
 
EOF
5672
 
 
5673
 
else
5674
 
  echo "$ac_t""no" 1>&6
5675
 
{ echo "configure: error: *** Unable to locate curses includes." 1>&2; exit 1; }
5676
 
 
5677
 
fi
5678
 
done
5679
 
 
5680
 
CPPFLAGS=$ac_save_cppflags
5681
 
 
5682
 
 
5683
 
echo $ac_n "checking curses.h WINDOW structure component""... $ac_c" 1>&6
5684
 
echo "configure:5685: checking curses.h WINDOW structure component" >&5
5685
 
CURSES_MAXY=NONE
5686
 
cat > conftest.$ac_ext <<EOF
5687
 
#line 5688 "configure"
5688
 
#include "confdefs.h"
5689
 
 
5690
 
#include <curses.h>
5691
 
  
5692
 
int main() {
5693
 
WINDOW w; w.maxy = 0;
5694
 
; return 0; }
5695
 
EOF
5696
 
if { (eval echo configure:5697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5697
 
  rm -rf conftest*
5698
 
  CURSES_MAXY=maxy
5699
 
else
5700
 
  echo "configure: failed program was:" >&5
5701
 
  cat conftest.$ac_ext >&5
5702
 
fi
5703
 
rm -f conftest*
5704
 
cat > conftest.$ac_ext <<EOF
5705
 
#line 5706 "configure"
5706
 
#include "confdefs.h"
5707
 
 
5708
 
#include <curses.h>
5709
 
  
5710
 
int main() {
5711
 
WINDOW w; w._maxy = 0;
5712
 
; return 0; }
5713
 
EOF
5714
 
if { (eval echo configure:5715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5715
 
  rm -rf conftest*
5716
 
  CURSES_MAXY=_maxy
5717
 
else
5718
 
  echo "configure: failed program was:" >&5
5719
 
  cat conftest.$ac_ext >&5
5720
 
fi
5721
 
rm -f conftest*
5722
 
cat >> confdefs.h <<EOF
5723
 
#define CURSES_MAXY $CURSES_MAXY
5724
 
EOF
5725
 
 
5726
 
 
5727
 
echo "$ac_t""$CURSES_MAXY" 1>&6
5728
 
 
5729
 
echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
5730
 
echo "configure:5731: checking for initscr in -lncurses" >&5
5731
 
ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'`
5732
 
 
5733
 
ac_save_LIBS="$LIBS"
5734
 
LIBS="-lncurses  $LIBS"
5735
 
cat > conftest.$ac_ext <<EOF
5736
 
#line 5737 "configure"
5737
 
#include "confdefs.h"
5738
 
/* Override any gcc2 internal prototype to avoid an error.  */
5739
 
/* We use char because int might match the return type of a gcc2
5740
 
    builtin and then its argument prototype would still apply.  */
5741
 
char initscr();
5742
 
 
5743
 
int main() {
5744
 
initscr()
5745
 
; return 0; }
5746
 
EOF
5747
 
if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5748
 
  rm -rf conftest*
5749
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5750
 
else
5751
 
  echo "configure: failed program was:" >&5
5752
 
  cat conftest.$ac_ext >&5
5753
 
  rm -rf conftest*
5754
 
  eval "ac_cv_lib_$ac_lib_var=no"
5755
 
fi
5756
 
rm -f conftest*
5757
 
LIBS="$ac_save_LIBS"
5758
 
 
5759
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5760
 
  echo "$ac_t""yes" 1>&6
5761
 
  CURSESLIB=-lncurses
5762
 
else
5763
 
  echo "$ac_t""no" 1>&6
5764
 
 
5765
 
echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6
5766
 
echo "configure:5767: checking for initscr in -lcurses" >&5
5767
 
ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'`
5768
 
 
5769
 
ac_save_LIBS="$LIBS"
5770
 
LIBS="-lcurses  $LIBS"
5771
 
cat > conftest.$ac_ext <<EOF
5772
 
#line 5773 "configure"
5773
 
#include "confdefs.h"
5774
 
/* Override any gcc2 internal prototype to avoid an error.  */
5775
 
/* We use char because int might match the return type of a gcc2
5776
 
    builtin and then its argument prototype would still apply.  */
5777
 
char initscr();
5778
 
 
5779
 
int main() {
5780
 
initscr()
5781
 
; return 0; }
5782
 
EOF
5783
 
if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5784
 
  rm -rf conftest*
5785
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5786
 
else
5787
 
  echo "configure: failed program was:" >&5
5788
 
  cat conftest.$ac_ext >&5
5789
 
  rm -rf conftest*
5790
 
  eval "ac_cv_lib_$ac_lib_var=no"
5791
 
fi
5792
 
rm -f conftest*
5793
 
LIBS="$ac_save_LIBS"
5794
 
 
5795
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5796
 
  echo "$ac_t""yes" 1>&6
5797
 
  CURSESLIB=-lcurses
5798
 
else
5799
 
  echo "$ac_t""no" 1>&6
5800
 
 
5801
 
    { echo "configure: error: *** Unable to locate curses library." 1>&2; exit 1; }
5802
 
    CURSESLIB=
5803
 
 
5804
 
fi
5805
 
 
5806
 
fi
5807
 
 
5808
 
 
5809
 
 
5810
 
 
5811
 
echo $ac_n "checking for keypad in -lncurses""... $ac_c" 1>&6
5812
 
echo "configure:5813: checking for keypad in -lncurses" >&5
5813
 
ac_lib_var=`echo ncurses'_'keypad | sed 'y%./+-%__p_%'`
5814
 
 
5815
 
ac_save_LIBS="$LIBS"
5816
 
LIBS="-lncurses  $LIBS"
5817
 
cat > conftest.$ac_ext <<EOF
5818
 
#line 5819 "configure"
5819
 
#include "confdefs.h"
5820
 
/* Override any gcc2 internal prototype to avoid an error.  */
5821
 
/* We use char because int might match the return type of a gcc2
5822
 
    builtin and then its argument prototype would still apply.  */
5823
 
char keypad();
5824
 
 
5825
 
int main() {
5826
 
keypad()
5827
 
; return 0; }
5828
 
EOF
5829
 
if { (eval echo configure:5830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5830
 
  rm -rf conftest*
5831
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5832
 
else
5833
 
  echo "configure: failed program was:" >&5
5834
 
  cat conftest.$ac_ext >&5
5835
 
  rm -rf conftest*
5836
 
  eval "ac_cv_lib_$ac_lib_var=no"
5837
 
fi
5838
 
rm -f conftest*
5839
 
LIBS="$ac_save_LIBS"
5840
 
 
5841
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5842
 
  echo "$ac_t""yes" 1>&6
5843
 
  cat >> confdefs.h <<\EOF
5844
 
#define HAVE_KEYPAD 1
5845
 
EOF
5846
 
 
5847
 
else
5848
 
  echo "$ac_t""no" 1>&6
5849
 
 
5850
 
echo $ac_n "checking for keypad in -lcurses""... $ac_c" 1>&6
5851
 
echo "configure:5852: checking for keypad in -lcurses" >&5
5852
 
ac_lib_var=`echo curses'_'keypad | sed 'y%./+-%__p_%'`
5853
 
 
5854
 
ac_save_LIBS="$LIBS"
5855
 
LIBS="-lcurses  $LIBS"
5856
 
cat > conftest.$ac_ext <<EOF
5857
 
#line 5858 "configure"
5858
 
#include "confdefs.h"
5859
 
/* Override any gcc2 internal prototype to avoid an error.  */
5860
 
/* We use char because int might match the return type of a gcc2
5861
 
    builtin and then its argument prototype would still apply.  */
5862
 
char keypad();
5863
 
 
5864
 
int main() {
5865
 
keypad()
5866
 
; return 0; }
5867
 
EOF
5868
 
if { (eval echo configure:5869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5869
 
  rm -rf conftest*
5870
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5871
 
else
5872
 
  echo "configure: failed program was:" >&5
5873
 
  cat conftest.$ac_ext >&5
5874
 
  rm -rf conftest*
5875
 
  eval "ac_cv_lib_$ac_lib_var=no"
5876
 
fi
5877
 
rm -f conftest*
5878
 
LIBS="$ac_save_LIBS"
5879
 
 
5880
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5881
 
  echo "$ac_t""yes" 1>&6
5882
 
  cat >> confdefs.h <<\EOF
5883
 
#define HAVE_KEYPAD 1
5884
 
EOF
5885
 
 
5886
 
else
5887
 
  echo "$ac_t""no" 1>&6
5888
 
 
5889
 
 
5890
 
fi
5891
 
 
5892
 
fi
5893
 
 
5894
 
 
5895
 
fi # $USE_CURSES
5896
 
 
5897
 
echo $ac_n "checking for gtty in -lcompat""... $ac_c" 1>&6
5898
 
echo "configure:5899: checking for gtty in -lcompat" >&5
5899
 
ac_lib_var=`echo compat'_'gtty | sed 'y%./+-%__p_%'`
5900
 
 
5901
 
ac_save_LIBS="$LIBS"
5902
 
LIBS="-lcompat  $LIBS"
5903
 
cat > conftest.$ac_ext <<EOF
5904
 
#line 5905 "configure"
5905
 
#include "confdefs.h"
5906
 
/* Override any gcc2 internal prototype to avoid an error.  */
5907
 
/* We use char because int might match the return type of a gcc2
5908
 
    builtin and then its argument prototype would still apply.  */
5909
 
char gtty();
5910
 
 
5911
 
int main() {
5912
 
gtty()
5913
 
; return 0; }
5914
 
EOF
5915
 
if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5916
 
  rm -rf conftest*
5917
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5918
 
else
5919
 
  echo "configure: failed program was:" >&5
5920
 
  cat conftest.$ac_ext >&5
5921
 
  rm -rf conftest*
5922
 
  eval "ac_cv_lib_$ac_lib_var=no"
5923
 
fi
5924
 
rm -f conftest*
5925
 
LIBS="$ac_save_LIBS"
5926
 
 
5927
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5928
 
  echo "$ac_t""yes" 1>&6
5929
 
  COMPATLIB=-lcompat
5930
 
else
5931
 
  echo "$ac_t""no" 1>&6
5932
 
 
5933
 
echo $ac_n "checking for gtty in -lbsd-compat""... $ac_c" 1>&6
5934
 
echo "configure:5935: checking for gtty in -lbsd-compat" >&5
5935
 
ac_lib_var=`echo bsd-compat'_'gtty | sed 'y%./+-%__p_%'`
5936
 
 
5937
 
ac_save_LIBS="$LIBS"
5938
 
LIBS="-lbsd-compat  $LIBS"
5939
 
cat > conftest.$ac_ext <<EOF
5940
 
#line 5941 "configure"
5941
 
#include "confdefs.h"
5942
 
/* Override any gcc2 internal prototype to avoid an error.  */
5943
 
/* We use char because int might match the return type of a gcc2
5944
 
    builtin and then its argument prototype would still apply.  */
5945
 
char gtty();
5946
 
 
5947
 
int main() {
5948
 
gtty()
5949
 
; return 0; }
5950
 
EOF
5951
 
if { (eval echo configure:5952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5952
 
  rm -rf conftest*
5953
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5954
 
else
5955
 
  echo "configure: failed program was:" >&5
5956
 
  cat conftest.$ac_ext >&5
5957
 
  rm -rf conftest*
5958
 
  eval "ac_cv_lib_$ac_lib_var=no"
5959
 
fi
5960
 
rm -f conftest*
5961
 
LIBS="$ac_save_LIBS"
5962
 
 
5963
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5964
 
  echo "$ac_t""yes" 1>&6
5965
 
  COMPATLIB=-lbsd-compat
5966
 
else
5967
 
  echo "$ac_t""no" 1>&6
5968
 
 
5969
 
echo $ac_n "checking for gtty in -lbsd""... $ac_c" 1>&6
5970
 
echo "configure:5971: checking for gtty in -lbsd" >&5
5971
 
ac_lib_var=`echo bsd'_'gtty | sed 'y%./+-%__p_%'`
5972
 
 
5973
 
ac_save_LIBS="$LIBS"
5974
 
LIBS="-lbsd  $LIBS"
5975
 
cat > conftest.$ac_ext <<EOF
5976
 
#line 5977 "configure"
5977
 
#include "confdefs.h"
5978
 
/* Override any gcc2 internal prototype to avoid an error.  */
5979
 
/* We use char because int might match the return type of a gcc2
5980
 
    builtin and then its argument prototype would still apply.  */
5981
 
char gtty();
5982
 
 
5983
 
int main() {
5984
 
gtty()
5985
 
; return 0; }
5986
 
EOF
5987
 
if { (eval echo configure:5988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5988
 
  rm -rf conftest*
5989
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5990
 
else
5991
 
  echo "configure: failed program was:" >&5
5992
 
  cat conftest.$ac_ext >&5
5993
 
  rm -rf conftest*
5994
 
  eval "ac_cv_lib_$ac_lib_var=no"
5995
 
fi
5996
 
rm -f conftest*
5997
 
LIBS="$ac_save_LIBS"
5998
 
 
5999
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6000
 
  echo "$ac_t""yes" 1>&6
6001
 
  COMPATLIB=-lbsd
6002
 
else
6003
 
  echo "$ac_t""no" 1>&6
6004
 
 
6005
 
    COMPATLIB=
6006
 
 
6007
 
fi
6008
 
 
6009
 
fi
6010
 
 
6011
 
fi
6012
 
 
6013
 
 
6014
 
 
6015
4422
# Note that some systems (FreeBSD for example) need an extra library for
6016
4423
# cuserid
6017
4424
ac_save_libs="$LIBS"
6018
4425
LIBS=""
6019
4426
 
6020
4427
echo $ac_n "checking for library containing cuserid""... $ac_c" 1>&6
6021
 
echo "configure:6022: checking for library containing cuserid" >&5
 
4428
echo "configure:4429: checking for library containing cuserid" >&5
6022
4429
 
6023
4430
ac_func_search_save_LIBS="$LIBS"
6024
4431
ac_cv_search_cuserid="no"
6025
4432
cat > conftest.$ac_ext <<EOF
6026
 
#line 6027 "configure"
 
4433
#line 4434 "configure"
6027
4434
#include "confdefs.h"
6028
4435
/* Override any gcc2 internal prototype to avoid an error.  */
6029
4436
/* We use char because int might match the return type of a gcc2
6034
4441
cuserid()
6035
4442
; return 0; }
6036
4443
EOF
6037
 
if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4444
if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6038
4445
  rm -rf conftest*
6039
4446
  ac_cv_search_cuserid="none required"
6040
4447
else
6045
4452
test "$ac_cv_search_cuserid" = "no" && for i in compat; do
6046
4453
LIBS="-l$i  $ac_func_search_save_LIBS"
6047
4454
cat > conftest.$ac_ext <<EOF
6048
 
#line 6049 "configure"
 
4455
#line 4456 "configure"
6049
4456
#include "confdefs.h"
6050
4457
/* Override any gcc2 internal prototype to avoid an error.  */
6051
4458
/* We use char because int might match the return type of a gcc2
6056
4463
cuserid()
6057
4464
; return 0; }
6058
4465
EOF
6059
 
if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4466
if { (eval echo configure:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6060
4467
  rm -rf conftest*
6061
4468
  ac_cv_search_cuserid="-l$i"
6062
4469
break
6079
4486
LIBS="$ac_save_libs"
6080
4487
 
6081
4488
 
6082
 
# Note: -lxdr -liberty -lws2_32 is for MinGW
6083
 
 
6084
 
echo $ac_n "checking for xdrmem_create""... $ac_c" 1>&6
6085
 
echo "configure:6086: checking for xdrmem_create" >&5
6086
 
 
6087
 
cat > conftest.$ac_ext <<EOF
6088
 
#line 6089 "configure"
6089
 
#include "confdefs.h"
6090
 
/* System header to define __stub macros and hopefully few prototypes,
6091
 
    which can conflict with char xdrmem_create(); below.  */
6092
 
#include <assert.h>
6093
 
/* Override any gcc2 internal prototype to avoid an error.  */
6094
 
/* We use char because int might match the return type of a gcc2
6095
 
    builtin and then its argument prototype would still apply.  */
6096
 
char xdrmem_create();
6097
 
 
6098
 
int main() {
6099
 
 
6100
 
/* The GNU C library defines this for functions which it implements
6101
 
    to always fail with ENOSYS.  Some functions are actually named
6102
 
    something starting with __ and the normal name is an alias.  */
6103
 
#if defined (__stub_xdrmem_create) || defined (__stub___xdrmem_create)
6104
 
choke me
6105
 
#else
6106
 
xdrmem_create();
6107
 
#endif
6108
 
 
6109
 
; return 0; }
6110
 
EOF
6111
 
if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6112
 
  rm -rf conftest*
6113
 
  eval "ac_cv_func_xdrmem_create=yes"
6114
 
else
6115
 
  echo "configure: failed program was:" >&5
6116
 
  cat conftest.$ac_ext >&5
6117
 
  rm -rf conftest*
6118
 
  eval "ac_cv_func_xdrmem_create=no"
6119
 
fi
6120
 
rm -f conftest*
6121
 
 
6122
 
if eval "test \"`echo '$ac_cv_func_'xdrmem_create`\" = yes"; then
6123
 
  echo "$ac_t""yes" 1>&6
6124
 
  XDRLIB=
6125
 
else
6126
 
  echo "$ac_t""no" 1>&6
6127
 
 
6128
 
echo $ac_n "checking for xdrmem_create in -lsun""... $ac_c" 1>&6
6129
 
echo "configure:6130: checking for xdrmem_create in -lsun" >&5
6130
 
ac_lib_var=`echo sun'_'xdrmem_create | sed 'y%./+-%__p_%'`
6131
 
 
6132
 
ac_save_LIBS="$LIBS"
6133
 
LIBS="-lsun  $LIBS"
6134
 
cat > conftest.$ac_ext <<EOF
6135
 
#line 6136 "configure"
6136
 
#include "confdefs.h"
6137
 
/* Override any gcc2 internal prototype to avoid an error.  */
6138
 
/* We use char because int might match the return type of a gcc2
6139
 
    builtin and then its argument prototype would still apply.  */
6140
 
char xdrmem_create();
6141
 
 
6142
 
int main() {
6143
 
xdrmem_create()
6144
 
; return 0; }
6145
 
EOF
6146
 
if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6147
 
  rm -rf conftest*
6148
 
  eval "ac_cv_lib_$ac_lib_var=yes"
6149
 
else
6150
 
  echo "configure: failed program was:" >&5
6151
 
  cat conftest.$ac_ext >&5
6152
 
  rm -rf conftest*
6153
 
  eval "ac_cv_lib_$ac_lib_var=no"
6154
 
fi
6155
 
rm -f conftest*
6156
 
LIBS="$ac_save_LIBS"
6157
 
 
6158
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6159
 
  echo "$ac_t""yes" 1>&6
6160
 
  XDRLIB=-lsun
6161
 
else
6162
 
  echo "$ac_t""no" 1>&6
6163
 
 
6164
 
echo $ac_n "checking for xdrmem_create in -lnsl""... $ac_c" 1>&6
6165
 
echo "configure:6166: checking for xdrmem_create in -lnsl" >&5
6166
 
ac_lib_var=`echo nsl'_'xdrmem_create | sed 'y%./+-%__p_%'`
6167
 
 
6168
 
ac_save_LIBS="$LIBS"
6169
 
LIBS="-lnsl  $LIBS"
6170
 
cat > conftest.$ac_ext <<EOF
6171
 
#line 6172 "configure"
6172
 
#include "confdefs.h"
6173
 
/* Override any gcc2 internal prototype to avoid an error.  */
6174
 
/* We use char because int might match the return type of a gcc2
6175
 
    builtin and then its argument prototype would still apply.  */
6176
 
char xdrmem_create();
6177
 
 
6178
 
int main() {
6179
 
xdrmem_create()
6180
 
; return 0; }
6181
 
EOF
6182
 
if { (eval echo configure:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6183
 
  rm -rf conftest*
6184
 
  eval "ac_cv_lib_$ac_lib_var=yes"
6185
 
else
6186
 
  echo "configure: failed program was:" >&5
6187
 
  cat conftest.$ac_ext >&5
6188
 
  rm -rf conftest*
6189
 
  eval "ac_cv_lib_$ac_lib_var=no"
6190
 
fi
6191
 
rm -f conftest*
6192
 
LIBS="$ac_save_LIBS"
6193
 
 
6194
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6195
 
  echo "$ac_t""yes" 1>&6
6196
 
  XDRLIB=-lnsl
6197
 
else
6198
 
  echo "$ac_t""no" 1>&6
6199
 
 
6200
 
echo $ac_n "checking for xdrmem_create in -lrpclib""... $ac_c" 1>&6
6201
 
echo "configure:6202: checking for xdrmem_create in -lrpclib" >&5
6202
 
ac_lib_var=`echo rpclib'_'xdrmem_create | sed 'y%./+-%__p_%'`
6203
 
 
6204
 
ac_save_LIBS="$LIBS"
6205
 
LIBS="-lrpclib  $LIBS"
6206
 
cat > conftest.$ac_ext <<EOF
6207
 
#line 6208 "configure"
6208
 
#include "confdefs.h"
6209
 
/* Override any gcc2 internal prototype to avoid an error.  */
6210
 
/* We use char because int might match the return type of a gcc2
6211
 
    builtin and then its argument prototype would still apply.  */
6212
 
char xdrmem_create();
6213
 
 
6214
 
int main() {
6215
 
xdrmem_create()
6216
 
; return 0; }
6217
 
EOF
6218
 
if { (eval echo configure:6219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6219
 
  rm -rf conftest*
6220
 
  eval "ac_cv_lib_$ac_lib_var=yes"
6221
 
else
6222
 
  echo "configure: failed program was:" >&5
6223
 
  cat conftest.$ac_ext >&5
6224
 
  rm -rf conftest*
6225
 
  eval "ac_cv_lib_$ac_lib_var=no"
6226
 
fi
6227
 
rm -f conftest*
6228
 
LIBS="$ac_save_LIBS"
6229
 
 
6230
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6231
 
  echo "$ac_t""yes" 1>&6
6232
 
  XDRLIB=-lrpclib
6233
 
else
6234
 
  echo "$ac_t""no" 1>&6
6235
 
 
6236
 
echo $ac_n "checking for xdrmem_create in -lxdr""... $ac_c" 1>&6
6237
 
echo "configure:6238: checking for xdrmem_create in -lxdr" >&5
6238
 
ac_lib_var=`echo xdr'_'xdrmem_create | sed 'y%./+-%__p_%'`
6239
 
 
6240
 
ac_save_LIBS="$LIBS"
6241
 
LIBS="-lxdr -liberty -lws2_32  $LIBS"
6242
 
cat > conftest.$ac_ext <<EOF
6243
 
#line 6244 "configure"
6244
 
#include "confdefs.h"
6245
 
/* Override any gcc2 internal prototype to avoid an error.  */
6246
 
/* We use char because int might match the return type of a gcc2
6247
 
    builtin and then its argument prototype would still apply.  */
6248
 
char xdrmem_create();
6249
 
 
6250
 
int main() {
6251
 
xdrmem_create()
6252
 
; return 0; }
6253
 
EOF
6254
 
if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6255
 
  rm -rf conftest*
6256
 
  eval "ac_cv_lib_$ac_lib_var=yes"
6257
 
else
6258
 
  echo "configure: failed program was:" >&5
6259
 
  cat conftest.$ac_ext >&5
6260
 
  rm -rf conftest*
6261
 
  eval "ac_cv_lib_$ac_lib_var=no"
6262
 
fi
6263
 
rm -f conftest*
6264
 
LIBS="$ac_save_LIBS"
6265
 
 
6266
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6267
 
  echo "$ac_t""yes" 1>&6
6268
 
  XDRLIB="-lxdr -liberty -lws2_32" 
6269
 
else
6270
 
  echo "$ac_t""no" 1>&6
6271
 
 { echo "configure: error: *** Unable to locate XDR functions." 1>&2; exit 1; } 
6272
 
fi
6273
 
 
6274
 
 
6275
 
fi
6276
 
 
6277
 
fi
6278
 
 
6279
 
fi
6280
 
 
6281
 
fi
6282
 
 
6283
 
 
6284
 
 
6285
4489
for ac_func in asprintf
6286
4490
do
6287
4491
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6288
 
echo "configure:6289: checking for $ac_func" >&5
 
4492
echo "configure:4493: checking for $ac_func" >&5
6289
4493
 
6290
4494
cat > conftest.$ac_ext <<EOF
6291
 
#line 6292 "configure"
 
4495
#line 4496 "configure"
6292
4496
#include "confdefs.h"
6293
4497
/* System header to define __stub macros and hopefully few prototypes,
6294
4498
    which can conflict with char $ac_func(); below.  */
6311
4515
 
6312
4516
; return 0; }
6313
4517
EOF
6314
 
if { (eval echo configure:6315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4518
if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6315
4519
  rm -rf conftest*
6316
4520
  eval "ac_cv_func_$ac_func=yes"
6317
4521
else
6338
4542
 
6339
4543
# Test if mathlib needs -lm flag or is included with libc
6340
4544
echo $ac_n "checking for atan""... $ac_c" 1>&6
6341
 
echo "configure:6342: checking for atan" >&5
 
4545
echo "configure:4546: checking for atan" >&5
6342
4546
 
6343
4547
cat > conftest.$ac_ext <<EOF
6344
 
#line 6345 "configure"
 
4548
#line 4549 "configure"
6345
4549
#include "confdefs.h"
6346
4550
/* System header to define __stub macros and hopefully few prototypes,
6347
4551
    which can conflict with char atan(); below.  */
6364
4568
 
6365
4569
; return 0; }
6366
4570
EOF
6367
 
if { (eval echo configure:6368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4571
if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6368
4572
  rm -rf conftest*
6369
4573
  eval "ac_cv_func_atan=yes"
6370
4574
else
6382
4586
  echo "$ac_t""no" 1>&6
6383
4587
 
6384
4588
echo $ac_n "checking for atan in -lm""... $ac_c" 1>&6
6385
 
echo "configure:6386: checking for atan in -lm" >&5
 
4589
echo "configure:4590: checking for atan in -lm" >&5
6386
4590
ac_lib_var=`echo m'_'atan | sed 'y%./+-%__p_%'`
6387
4591
 
6388
4592
ac_save_LIBS="$LIBS"
6389
4593
LIBS="-lm  $LIBS"
6390
4594
cat > conftest.$ac_ext <<EOF
6391
 
#line 6392 "configure"
 
4595
#line 4596 "configure"
6392
4596
#include "confdefs.h"
6393
4597
/* Override any gcc2 internal prototype to avoid an error.  */
6394
4598
/* We use char because int might match the return type of a gcc2
6399
4603
atan()
6400
4604
; return 0; }
6401
4605
EOF
6402
 
if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4606
if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6403
4607
  rm -rf conftest*
6404
4608
  eval "ac_cv_lib_$ac_lib_var=yes"
6405
4609
else
6426
4630
 
6427
4631
 
6428
4632
echo $ac_n "checking for dlsym""... $ac_c" 1>&6
6429
 
echo "configure:6430: checking for dlsym" >&5
 
4633
echo "configure:4634: checking for dlsym" >&5
6430
4634
 
6431
4635
cat > conftest.$ac_ext <<EOF
6432
 
#line 6433 "configure"
 
4636
#line 4637 "configure"
6433
4637
#include "confdefs.h"
6434
4638
/* System header to define __stub macros and hopefully few prototypes,
6435
4639
    which can conflict with char dlsym(); below.  */
6452
4656
 
6453
4657
; return 0; }
6454
4658
EOF
6455
 
if { (eval echo configure:6456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4659
if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6456
4660
  rm -rf conftest*
6457
4661
  eval "ac_cv_func_dlsym=yes"
6458
4662
else
6470
4674
  echo "$ac_t""no" 1>&6
6471
4675
 
6472
4676
echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
6473
 
echo "configure:6474: checking for dlsym in -ldl" >&5
 
4677
echo "configure:4678: checking for dlsym in -ldl" >&5
6474
4678
ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
6475
4679
 
6476
4680
ac_save_LIBS="$LIBS"
6477
4681
LIBS="-ldl  $LIBS"
6478
4682
cat > conftest.$ac_ext <<EOF
6479
 
#line 6480 "configure"
 
4683
#line 4684 "configure"
6480
4684
#include "confdefs.h"
6481
4685
/* Override any gcc2 internal prototype to avoid an error.  */
6482
4686
/* We use char because int might match the return type of a gcc2
6487
4691
dlsym()
6488
4692
; return 0; }
6489
4693
EOF
6490
 
if { (eval echo configure:6491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4694
if { (eval echo configure:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6491
4695
  rm -rf conftest*
6492
4696
  eval "ac_cv_lib_$ac_lib_var=yes"
6493
4697
else
6514
4718
 
6515
4719
 
6516
4720
echo $ac_n "checking for iconv""... $ac_c" 1>&6
6517
 
echo "configure:6518: checking for iconv" >&5
 
4721
echo "configure:4722: checking for iconv" >&5
6518
4722
 
6519
4723
cat > conftest.$ac_ext <<EOF
6520
 
#line 6521 "configure"
 
4724
#line 4725 "configure"
6521
4725
#include "confdefs.h"
6522
4726
/* System header to define __stub macros and hopefully few prototypes,
6523
4727
    which can conflict with char iconv(); below.  */
6540
4744
 
6541
4745
; return 0; }
6542
4746
EOF
6543
 
if { (eval echo configure:6544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4747
if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6544
4748
  rm -rf conftest*
6545
4749
  eval "ac_cv_func_iconv=yes"
6546
4750
else
6558
4762
  echo "$ac_t""no" 1>&6
6559
4763
 
6560
4764
echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
6561
 
echo "configure:6562: checking for iconv in -liconv" >&5
 
4765
echo "configure:4766: checking for iconv in -liconv" >&5
6562
4766
ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
6563
4767
 
6564
4768
ac_save_LIBS="$LIBS"
6565
4769
LIBS="-liconv  $LIBS"
6566
4770
cat > conftest.$ac_ext <<EOF
6567
 
#line 6568 "configure"
 
4771
#line 4772 "configure"
6568
4772
#include "confdefs.h"
6569
4773
/* Override any gcc2 internal prototype to avoid an error.  */
6570
4774
/* We use char because int might match the return type of a gcc2
6575
4779
iconv()
6576
4780
; return 0; }
6577
4781
EOF
6578
 
if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4782
if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6579
4783
  rm -rf conftest*
6580
4784
  eval "ac_cv_lib_$ac_lib_var=yes"
6581
4785
else
6594
4798
  echo "$ac_t""no" 1>&6
6595
4799
 
6596
4800
echo $ac_n "checking for iconv in -lgiconv""... $ac_c" 1>&6
6597
 
echo "configure:6598: checking for iconv in -lgiconv" >&5
 
4801
echo "configure:4802: checking for iconv in -lgiconv" >&5
6598
4802
ac_lib_var=`echo giconv'_'iconv | sed 'y%./+-%__p_%'`
6599
4803
 
6600
4804
ac_save_LIBS="$LIBS"
6601
4805
LIBS="-lgiconv  $LIBS"
6602
4806
cat > conftest.$ac_ext <<EOF
6603
 
#line 6604 "configure"
 
4807
#line 4808 "configure"
6604
4808
#include "confdefs.h"
6605
4809
/* Override any gcc2 internal prototype to avoid an error.  */
6606
4810
/* We use char because int might match the return type of a gcc2
6611
4815
iconv()
6612
4816
; return 0; }
6613
4817
EOF
6614
 
if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4818
if { (eval echo configure:4819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6615
4819
  rm -rf conftest*
6616
4820
  eval "ac_cv_lib_$ac_lib_var=yes"
6617
4821
else
6630
4834
  echo "$ac_t""no" 1>&6
6631
4835
 
6632
4836
echo $ac_n "checking for libiconv""... $ac_c" 1>&6
6633
 
echo "configure:6634: checking for libiconv" >&5
 
4837
echo "configure:4838: checking for libiconv" >&5
6634
4838
 
6635
4839
cat > conftest.$ac_ext <<EOF
6636
 
#line 6637 "configure"
 
4840
#line 4841 "configure"
6637
4841
#include "confdefs.h"
6638
4842
/* System header to define __stub macros and hopefully few prototypes,
6639
4843
    which can conflict with char libiconv(); below.  */
6656
4860
 
6657
4861
; return 0; }
6658
4862
EOF
6659
 
if { (eval echo configure:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4863
if { (eval echo configure:4864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6660
4864
  rm -rf conftest*
6661
4865
  eval "ac_cv_func_libiconv=yes"
6662
4866
else
6674
4878
  echo "$ac_t""no" 1>&6
6675
4879
 
6676
4880
echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
6677
 
echo "configure:6678: checking for libiconv in -liconv" >&5
 
4881
echo "configure:4882: checking for libiconv in -liconv" >&5
6678
4882
ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
6679
4883
 
6680
4884
ac_save_LIBS="$LIBS"
6681
4885
LIBS="-liconv  $LIBS"
6682
4886
cat > conftest.$ac_ext <<EOF
6683
 
#line 6684 "configure"
 
4887
#line 4888 "configure"
6684
4888
#include "confdefs.h"
6685
4889
/* Override any gcc2 internal prototype to avoid an error.  */
6686
4890
/* We use char because int might match the return type of a gcc2
6691
4895
libiconv()
6692
4896
; return 0; }
6693
4897
EOF
6694
 
if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4898
if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6695
4899
  rm -rf conftest*
6696
4900
  eval "ac_cv_lib_$ac_lib_var=yes"
6697
4901
else
6710
4914
  echo "$ac_t""no" 1>&6
6711
4915
 
6712
4916
echo $ac_n "checking for libiconv in -lgiconv""... $ac_c" 1>&6
6713
 
echo "configure:6714: checking for libiconv in -lgiconv" >&5
 
4917
echo "configure:4918: checking for libiconv in -lgiconv" >&5
6714
4918
ac_lib_var=`echo giconv'_'libiconv | sed 'y%./+-%__p_%'`
6715
4919
 
6716
4920
ac_save_LIBS="$LIBS"
6717
4921
LIBS="-lgiconv  $LIBS"
6718
4922
cat > conftest.$ac_ext <<EOF
6719
 
#line 6720 "configure"
 
4923
#line 4924 "configure"
6720
4924
#include "confdefs.h"
6721
4925
/* Override any gcc2 internal prototype to avoid an error.  */
6722
4926
/* We use char because int might match the return type of a gcc2
6727
4931
libiconv()
6728
4932
; return 0; }
6729
4933
EOF
6730
 
if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4934
if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731
4935
  rm -rf conftest*
6732
4936
  eval "ac_cv_lib_$ac_lib_var=yes"
6733
4937
else
6764
4968
 
6765
4969
have_socket=1
6766
4970
echo $ac_n "checking for socket""... $ac_c" 1>&6
6767
 
echo "configure:6768: checking for socket" >&5
 
4971
echo "configure:4972: checking for socket" >&5
6768
4972
 
6769
4973
cat > conftest.$ac_ext <<EOF
6770
 
#line 6771 "configure"
 
4974
#line 4975 "configure"
6771
4975
#include "confdefs.h"
6772
4976
/* System header to define __stub macros and hopefully few prototypes,
6773
4977
    which can conflict with char socket(); below.  */
6790
4994
 
6791
4995
; return 0; }
6792
4996
EOF
6793
 
if { (eval echo configure:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4997
if { (eval echo configure:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6794
4998
  rm -rf conftest*
6795
4999
  eval "ac_cv_func_socket=yes"
6796
5000
else
6808
5012
  echo "$ac_t""no" 1>&6
6809
5013
 
6810
5014
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
6811
 
echo "configure:6812: checking for socket in -lsocket" >&5
 
5015
echo "configure:5016: checking for socket in -lsocket" >&5
6812
5016
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
6813
5017
 
6814
5018
ac_save_LIBS="$LIBS"
6815
5019
LIBS="-lsocket  $LIBS"
6816
5020
cat > conftest.$ac_ext <<EOF
6817
 
#line 6818 "configure"
 
5021
#line 5022 "configure"
6818
5022
#include "confdefs.h"
6819
5023
/* Override any gcc2 internal prototype to avoid an error.  */
6820
5024
/* We use char because int might match the return type of a gcc2
6825
5029
socket()
6826
5030
; return 0; }
6827
5031
EOF
6828
 
if { (eval echo configure:6829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5032
if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6829
5033
  rm -rf conftest*
6830
5034
  eval "ac_cv_lib_$ac_lib_var=yes"
6831
5035
else
6873
5077
 
6874
5078
 
6875
5079
echo $ac_n "checking for location of zlib includes""... $ac_c" 1>&6
6876
 
echo "configure:6877: checking for location of zlib includes" >&5
 
5080
echo "configure:5081: checking for location of zlib includes" >&5
6877
5081
case "$with_zlib_includes" in
6878
5082
y | ye | yes | n | no)
6879
5083
        { echo "configure: error: *** You must supply a directory to --with-zlib-includes." 1>&2; exit 1; }
6899
5103
do
6900
5104
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6901
5105
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6902
 
echo "configure:6903: checking for $ac_hdr" >&5
 
5106
echo "configure:5107: checking for $ac_hdr" >&5
6903
5107
 
6904
5108
cat > conftest.$ac_ext <<EOF
6905
 
#line 6906 "configure"
 
5109
#line 5110 "configure"
6906
5110
#include "confdefs.h"
6907
5111
#include <$ac_hdr>
6908
5112
EOF
6909
5113
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6910
 
{ (eval echo configure:6911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
5114
{ (eval echo configure:5115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6911
5115
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6912
5116
if test -z "$ac_err"; then
6913
5117
  rm -rf conftest*
6941
5145
 
6942
5146
 
6943
5147
echo $ac_n "checking for location of zlib library""... $ac_c" 1>&6
6944
 
echo "configure:6945: checking for location of zlib library" >&5
 
5148
echo "configure:5149: checking for location of zlib library" >&5
6945
5149
case "$with_zlib_libs" in
6946
5150
y | ye | yes | n | no)
6947
5151
        { echo "configure: error: *** You must supply a directory to --with-zlib-libs." 1>&2; exit 1; }
6966
5170
 
6967
5171
 
6968
5172
echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
6969
 
echo "configure:6970: checking for deflate in -lz" >&5
 
5173
echo "configure:5174: checking for deflate in -lz" >&5
6970
5174
ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6971
5175
 
6972
5176
ac_save_LIBS="$LIBS"
6973
5177
LIBS="-lz  $LIBS"
6974
5178
cat > conftest.$ac_ext <<EOF
6975
 
#line 6976 "configure"
 
5179
#line 5180 "configure"
6976
5180
#include "confdefs.h"
6977
5181
/* Override any gcc2 internal prototype to avoid an error.  */
6978
5182
/* We use char because int might match the return type of a gcc2
6983
5187
deflate()
6984
5188
; return 0; }
6985
5189
EOF
6986
 
if { (eval echo configure:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5190
if { (eval echo configure:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6987
5191
  rm -rf conftest*
6988
5192
  eval "ac_cv_lib_$ac_lib_var=yes"
6989
5193
else
7031
5235
 
7032
5236
 
7033
5237
echo $ac_n "checking for location of External PROJ.4 includes""... $ac_c" 1>&6
7034
 
echo "configure:7035: checking for location of External PROJ.4 includes" >&5
 
5238
echo "configure:5239: checking for location of External PROJ.4 includes" >&5
7035
5239
case "$with_proj_includes" in
7036
5240
y | ye | yes | n | no)
7037
5241
        { echo "configure: error: *** You must supply a directory to --with-proj-includes." 1>&2; exit 1; }
7057
5261
do
7058
5262
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7059
5263
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7060
 
echo "configure:7061: checking for $ac_hdr" >&5
 
5264
echo "configure:5265: checking for $ac_hdr" >&5
7061
5265
 
7062
5266
cat > conftest.$ac_ext <<EOF
7063
 
#line 7064 "configure"
 
5267
#line 5268 "configure"
7064
5268
#include "confdefs.h"
7065
5269
#include <$ac_hdr>
7066
5270
EOF
7067
5271
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7068
 
{ (eval echo configure:7069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
5272
{ (eval echo configure:5273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7069
5273
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7070
5274
if test -z "$ac_err"; then
7071
5275
  rm -rf conftest*
7102
5306
else
7103
5307
    
7104
5308
echo $ac_n "checking External PROJ.4 version""... $ac_c" 1>&6
7105
 
echo "configure:7106: checking External PROJ.4 version" >&5
 
5309
echo "configure:5310: checking External PROJ.4 version" >&5
7106
5310
ac_save_cppflags="$CPPFLAGS"
7107
5311
CPPFLAGS="$PROJINC $CPPFLAGS"
7108
5312
if test "$cross_compiling" = yes; then
7110
5314
        echo "$ac_t""unknown (cross-compiling)" 1>&6 
7111
5315
else
7112
5316
  cat > conftest.$ac_ext <<EOF
7113
 
#line 7114 "configure"
 
5317
#line 5318 "configure"
7114
5318
#include "confdefs.h"
7115
5319
 
7116
5320
#include <stdio.h>
7122
5326
}
7123
5327
    
7124
5328
EOF
7125
 
if { (eval echo configure:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
5329
if { (eval echo configure:5330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7126
5330
then
7127
5331
     proj_ver=`cat conftestdata`
7128
5332
        echo "$ac_t""$proj_ver" 1>&6
7147
5351
 
7148
5352
 
7149
5353
echo $ac_n "checking for location of External PROJ.4 library""... $ac_c" 1>&6
7150
 
echo "configure:7151: checking for location of External PROJ.4 library" >&5
 
5354
echo "configure:5355: checking for location of External PROJ.4 library" >&5
7151
5355
case "$with_proj_libs" in
7152
5356
y | ye | yes | n | no)
7153
5357
        { echo "configure: error: *** You must supply a directory to --with-proj-libs." 1>&2; exit 1; }
7172
5376
 
7173
5377
 
7174
5378
echo $ac_n "checking for pj_get_def in -lproj""... $ac_c" 1>&6
7175
 
echo "configure:7176: checking for pj_get_def in -lproj" >&5
 
5379
echo "configure:5380: checking for pj_get_def in -lproj" >&5
7176
5380
ac_lib_var=`echo proj'_'pj_get_def | sed 'y%./+-%__p_%'`
7177
5381
 
7178
5382
ac_save_LIBS="$LIBS"
7179
5383
LIBS="-lproj  $LIBS"
7180
5384
cat > conftest.$ac_ext <<EOF
7181
 
#line 7182 "configure"
 
5385
#line 5386 "configure"
7182
5386
#include "confdefs.h"
7183
5387
/* Override any gcc2 internal prototype to avoid an error.  */
7184
5388
/* We use char because int might match the return type of a gcc2
7189
5393
pj_get_def()
7190
5394
; return 0; }
7191
5395
EOF
7192
 
if { (eval echo configure:7193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5396
if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7193
5397
  rm -rf conftest*
7194
5398
  eval "ac_cv_lib_$ac_lib_var=yes"
7195
5399
else
7223
5427
 
7224
5428
 
7225
5429
echo $ac_n "checking for location of External PROJ.4 data files""... $ac_c" 1>&6
7226
 
echo "configure:7227: checking for location of External PROJ.4 data files" >&5
 
5430
echo "configure:5431: checking for location of External PROJ.4 data files" >&5
7227
5431
case "$with_proj_share" in
7228
5432
y | ye | yes | n | no)
7229
5433
        { echo "configure: error: *** You must supply a directory to --with-proj-share." 1>&2; exit 1; }
7241
5445
 
7242
5446
if test -z "$PROJSHARE" ; then
7243
5447
    echo "configure: warning: *** External PROJ.4 directory not specified; default will be used" 1>&2
7244
 
    PROJSHARE=/usr/local/share/proj
 
5448
    PROJSHARE=/usr/share/proj
7245
5449
fi
7246
5450
 
7247
5451
# LOC_CHECK_SHARE does not work when cross compiling
7248
5452
if test "$cross_compiling" = "yes" ; then
7249
5453
    echo $ac_n "checking for epsg""... $ac_c" 1>&6
7250
 
echo "configure:7251: checking for epsg" >&5
 
5454
echo "configure:5455: checking for epsg" >&5
7251
5455
    echo "$ac_t""unknown (cross-compiling)" 1>&6
7252
5456
else
7253
5457
    
7254
5458
 
7255
5459
ac_safe=`echo "$PROJSHARE/epsg" | sed 'y%./+-%__p_%'`
7256
5460
echo $ac_n "checking for $PROJSHARE/epsg""... $ac_c" 1>&6
7257
 
echo "configure:7258: checking for $PROJSHARE/epsg" >&5
 
5461
echo "configure:5462: checking for $PROJSHARE/epsg" >&5
7258
5462
 
7259
5463
if test "$cross_compiling" = yes; then
7260
5464
    { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
7286
5490
# Extract the first word of "nad2bin", so it can be a program name with args.
7287
5491
set dummy nad2bin; ac_word=$2
7288
5492
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7289
 
echo "configure:7290: checking for $ac_word" >&5
 
5493
echo "configure:5494: checking for $ac_word" >&5
7290
5494
 
7291
5495
case "$NAD2BIN" in
7292
5496
  /*)
7326
5530
 
7327
5531
 
7328
5532
echo $ac_n "checking whether to use regex""... $ac_c" 1>&6
7329
 
echo "configure:7330: checking whether to use regex" >&5
 
5533
echo "configure:5534: checking whether to use regex" >&5
7330
5534
echo "$ac_t"""$with_regex"" 1>&6
7331
5535
case "$with_regex" in
7332
5536
        "no")   USE_REGEX=      ;;
7346
5550
 
7347
5551
 
7348
5552
echo $ac_n "checking for location of regex includes""... $ac_c" 1>&6
7349
 
echo "configure:7350: checking for location of regex includes" >&5
 
5553
echo "configure:5554: checking for location of regex includes" >&5
7350
5554
case "$with_regex_includes" in
7351
5555
y | ye | yes | n | no)
7352
5556
        { echo "configure: error: *** You must supply a directory to --with-regex-includes." 1>&2; exit 1; }
7372
5576
do
7373
5577
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7374
5578
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7375
 
echo "configure:7376: checking for $ac_hdr" >&5
 
5579
echo "configure:5580: checking for $ac_hdr" >&5
7376
5580
 
7377
5581
cat > conftest.$ac_ext <<EOF
7378
 
#line 7379 "configure"
 
5582
#line 5583 "configure"
7379
5583
#include "confdefs.h"
7380
5584
#include <$ac_hdr>
7381
5585
EOF
7382
5586
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7383
 
{ (eval echo configure:7384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
5587
{ (eval echo configure:5588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7384
5588
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7385
5589
if test -z "$ac_err"; then
7386
5590
  rm -rf conftest*
7414
5618
 
7415
5619
 
7416
5620
echo $ac_n "checking for location of regex library""... $ac_c" 1>&6
7417
 
echo "configure:7418: checking for location of regex library" >&5
 
5621
echo "configure:5622: checking for location of regex library" >&5
7418
5622
case "$with_regex_libs" in
7419
5623
y | ye | yes | n | no)
7420
5624
        { echo "configure: error: *** You must supply a directory to --with-regex-libs." 1>&2; exit 1; }
7439
5643
LIBS="  $LIBS"
7440
5644
LDFLAGS=" $LDFLAGS"
7441
5645
echo $ac_n "checking for regcomp""... $ac_c" 1>&6
7442
 
echo "configure:7443: checking for regcomp" >&5
 
5646
echo "configure:5647: checking for regcomp" >&5
7443
5647
 
7444
5648
cat > conftest.$ac_ext <<EOF
7445
 
#line 7446 "configure"
 
5649
#line 5650 "configure"
7446
5650
#include "confdefs.h"
7447
5651
/* System header to define __stub macros and hopefully few prototypes,
7448
5652
    which can conflict with char regcomp(); below.  */
7465
5669
 
7466
5670
; return 0; }
7467
5671
EOF
7468
 
if { (eval echo configure:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5672
if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7469
5673
  rm -rf conftest*
7470
5674
  eval "ac_cv_func_regcomp=yes"
7471
5675
else
7492
5696
 
7493
5697
 
7494
5698
echo $ac_n "checking for regcomp in -lregex""... $ac_c" 1>&6
7495
 
echo "configure:7496: checking for regcomp in -lregex" >&5
 
5699
echo "configure:5700: checking for regcomp in -lregex" >&5
7496
5700
ac_lib_var=`echo regex'_'regcomp | sed 'y%./+-%__p_%'`
7497
5701
 
7498
5702
ac_save_LIBS="$LIBS"
7499
5703
LIBS="-lregex  $LIBS"
7500
5704
cat > conftest.$ac_ext <<EOF
7501
 
#line 7502 "configure"
 
5705
#line 5706 "configure"
7502
5706
#include "confdefs.h"
7503
5707
/* Override any gcc2 internal prototype to avoid an error.  */
7504
5708
/* We use char because int might match the return type of a gcc2
7509
5713
regcomp()
7510
5714
; return 0; }
7511
5715
EOF
7512
 
if { (eval echo configure:7513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5716
if { (eval echo configure:5717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7513
5717
  rm -rf conftest*
7514
5718
  eval "ac_cv_lib_$ac_lib_var=yes"
7515
5719
else
7559
5763
 
7560
5764
 
7561
5765
echo $ac_n "checking whether to use Readline""... $ac_c" 1>&6
7562
 
echo "configure:7563: checking whether to use Readline" >&5
 
5766
echo "configure:5767: checking whether to use Readline" >&5
7563
5767
echo "$ac_t"""$with_readline"" 1>&6
7564
5768
case "$with_readline" in
7565
5769
        "no")   USE_READLINE=   ;;
7580
5784
 
7581
5785
 
7582
5786
echo $ac_n "checking for location of Readline includes""... $ac_c" 1>&6
7583
 
echo "configure:7584: checking for location of Readline includes" >&5
 
5787
echo "configure:5788: checking for location of Readline includes" >&5
7584
5788
case "$with_readline_includes" in
7585
5789
y | ye | yes | n | no)
7586
5790
        { echo "configure: error: *** You must supply a directory to --with-readline-includes." 1>&2; exit 1; }
7606
5810
do
7607
5811
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7608
5812
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7609
 
echo "configure:7610: checking for $ac_hdr" >&5
 
5813
echo "configure:5814: checking for $ac_hdr" >&5
7610
5814
 
7611
5815
cat > conftest.$ac_ext <<EOF
7612
 
#line 7613 "configure"
 
5816
#line 5817 "configure"
7613
5817
#include "confdefs.h"
7614
5818
#include <$ac_hdr>
7615
5819
EOF
7616
5820
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7617
 
{ (eval echo configure:7618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
5821
{ (eval echo configure:5822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7618
5822
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7619
5823
if test -z "$ac_err"; then
7620
5824
  rm -rf conftest*
7650
5854
do
7651
5855
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7652
5856
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7653
 
echo "configure:7654: checking for $ac_hdr" >&5
 
5857
echo "configure:5858: checking for $ac_hdr" >&5
7654
5858
 
7655
5859
cat > conftest.$ac_ext <<EOF
7656
 
#line 7657 "configure"
 
5860
#line 5861 "configure"
7657
5861
#include "confdefs.h"
7658
5862
#include <$ac_hdr>
7659
5863
EOF
7660
5864
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7661
 
{ (eval echo configure:7662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
5865
{ (eval echo configure:5866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7662
5866
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7663
5867
if test -z "$ac_err"; then
7664
5868
  rm -rf conftest*
7692
5896
 
7693
5897
 
7694
5898
echo $ac_n "checking for location of Readline library""... $ac_c" 1>&6
7695
 
echo "configure:7696: checking for location of Readline library" >&5
 
5899
echo "configure:5900: checking for location of Readline library" >&5
7696
5900
case "$with_readline_libs" in
7697
5901
y | ye | yes | n | no)
7698
5902
        { echo "configure: error: *** You must supply a directory to --with-readline-libs." 1>&2; exit 1; }
7717
5921
 
7718
5922
 
7719
5923
echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
7720
 
echo "configure:7721: checking for readline in -lreadline" >&5
 
5924
echo "configure:5925: checking for readline in -lreadline" >&5
7721
5925
ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
7722
5926
 
7723
5927
ac_save_LIBS="$LIBS"
7724
5928
LIBS="-lreadline  $LIBS"
7725
5929
cat > conftest.$ac_ext <<EOF
7726
 
#line 7727 "configure"
 
5930
#line 5931 "configure"
7727
5931
#include "confdefs.h"
7728
5932
/* Override any gcc2 internal prototype to avoid an error.  */
7729
5933
/* We use char because int might match the return type of a gcc2
7734
5938
readline()
7735
5939
; return 0; }
7736
5940
EOF
7737
 
if { (eval echo configure:7738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5941
if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7738
5942
  rm -rf conftest*
7739
5943
  eval "ac_cv_lib_$ac_lib_var=yes"
7740
5944
else
7769
5973
 
7770
5974
 
7771
5975
echo $ac_n "checking for add_history in -lhistory""... $ac_c" 1>&6
7772
 
echo "configure:7773: checking for add_history in -lhistory" >&5
 
5976
echo "configure:5977: checking for add_history in -lhistory" >&5
7773
5977
ac_lib_var=`echo history'_'add_history | sed 'y%./+-%__p_%'`
7774
5978
 
7775
5979
ac_save_LIBS="$LIBS"
7776
5980
LIBS="-lhistory  $LIBS"
7777
5981
cat > conftest.$ac_ext <<EOF
7778
 
#line 7779 "configure"
 
5982
#line 5983 "configure"
7779
5983
#include "confdefs.h"
7780
5984
/* Override any gcc2 internal prototype to avoid an error.  */
7781
5985
/* We use char because int might match the return type of a gcc2
7786
5990
add_history()
7787
5991
; return 0; }
7788
5992
EOF
7789
 
if { (eval echo configure:7790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5993
if { (eval echo configure:5994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7790
5994
  rm -rf conftest*
7791
5995
  eval "ac_cv_lib_$ac_lib_var=yes"
7792
5996
else
7828
6032
# GDAL option
7829
6033
 
7830
6034
echo $ac_n "checking whether to use GDAL""... $ac_c" 1>&6
7831
 
echo "configure:7832: checking whether to use GDAL" >&5
 
6035
echo "configure:6036: checking whether to use GDAL" >&5
7832
6036
 
7833
6037
GDAL_LIBS=
7834
6038
GDAL_CFLAGS=
7846
6050
  # Extract the first word of "gdal-config", so it can be a program name with args.
7847
6051
set dummy gdal-config; ac_word=$2
7848
6052
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7849
 
echo "configure:7850: checking for $ac_word" >&5
 
6053
echo "configure:6054: checking for $ac_word" >&5
7850
6054
 
7851
6055
case "$GDAL_CONFIG" in
7852
6056
  /*)
7901
6105
  LIBS="$LIBS $GDAL_LIBS"
7902
6106
  CFLAGS="$CFLAGS $GDAL_CFLAGS"
7903
6107
  cat > conftest.$ac_ext <<EOF
7904
 
#line 7905 "configure"
 
6108
#line 6109 "configure"
7905
6109
#include "confdefs.h"
7906
6110
#include <gdal.h>
7907
6111
int main() {
7908
6112
GDALOpen("foo", GA_ReadOnly);
7909
6113
; return 0; }
7910
6114
EOF
7911
 
if { (eval echo configure:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6115
if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7912
6116
  :
7913
6117
else
7914
6118
  echo "configure: failed program was:" >&5
7917
6121
  
7918
6122
  LIBS="$LIBS $GDAL_DEP_LIBS"
7919
6123
  cat > conftest.$ac_ext <<EOF
7920
 
#line 7921 "configure"
 
6124
#line 6125 "configure"
7921
6125
#include "confdefs.h"
7922
6126
#include <gdal.h>
7923
6127
int main() {
7924
6128
GDALOpen("foo", GA_ReadOnly);
7925
6129
; return 0; }
7926
6130
EOF
7927
 
if { (eval echo configure:7928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6131
if { (eval echo configure:6132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7928
6132
  rm -rf conftest*
7929
6133
  GDAL_LIBS="$GDAL_LIBS $GDAL_DEP_LIBS"
7930
6134
else
7953
6157
 
7954
6158
 
7955
6159
 
 
6160
# libLAS option
 
6161
 
 
6162
echo $ac_n "checking whether to use libLAS""... $ac_c" 1>&6
 
6163
echo "configure:6164: checking whether to use libLAS" >&5
 
6164
 
 
6165
LIBLAS_LIBS=
 
6166
LIBLAS_CFLAGS=
 
6167
USE_LIBLAS=
 
6168
 
 
6169
if test "`basename xx/$with_liblas`" = "liblas-config" ; then
 
6170
  LIBLAS_CONFIG="$with_liblas"
 
6171
fi
 
6172
 
 
6173
if test "$with_liblas" = "no" ; then
 
6174
  echo "$ac_t""no" 1>&6
 
6175
else
 
6176
  echo "$ac_t""yes" 1>&6
 
6177
  # Extract the first word of "liblas-config", so it can be a program name with args.
 
6178
set dummy liblas-config; ac_word=$2
 
6179
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
6180
echo "configure:6181: checking for $ac_word" >&5
 
6181
 
 
6182
case "$LIBLAS_CONFIG" in
 
6183
  /*)
 
6184
  ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a path.
 
6185
  ;;
 
6186
  ?:/*)                  
 
6187
  ac_cv_path_LIBLAS_CONFIG="$LIBLAS_CONFIG" # Let the user override the test with a dos path.
 
6188
  ;;
 
6189
  *)
 
6190
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
6191
  ac_dummy="$PATH"
 
6192
  for ac_dir in $ac_dummy; do 
 
6193
    test -z "$ac_dir" && ac_dir=.
 
6194
    if test -f $ac_dir/$ac_word; then
 
6195
      ac_cv_path_LIBLAS_CONFIG="$ac_dir/$ac_word"
 
6196
      break
 
6197
    fi
 
6198
  done
 
6199
  IFS="$ac_save_ifs"
 
6200
  test -z "$ac_cv_path_LIBLAS_CONFIG" && ac_cv_path_LIBLAS_CONFIG="no"
 
6201
  ;;
 
6202
esac
 
6203
LIBLAS_CONFIG="$ac_cv_path_LIBLAS_CONFIG"
 
6204
if test -n "$LIBLAS_CONFIG"; then
 
6205
  echo "$ac_t""$LIBLAS_CONFIG" 1>&6
 
6206
else
 
6207
  echo "$ac_t""no" 1>&6
 
6208
fi
 
6209
 
 
6210
 
 
6211
  if test "$LIBLAS_CONFIG" = "no" ; then
 
6212
    { echo "configure: error: *** couldn't find liblas-config" 1>&2; exit 1; }
 
6213
  fi
 
6214
 
 
6215
  if test "$LIBLAS_CONFIG" != "" ; then
 
6216
    LIBLAS_LIBS=`"$LIBLAS_CONFIG" --libs`
 
6217
    LIBLAS_CFLAGS=`"$LIBLAS_CONFIG" --cflags`
 
6218
    LIBLAS_INC=`"$LIBLAS_CONFIG" --includes`
 
6219
    USE_LIBLAS=1
 
6220
  fi
 
6221
 
 
6222
  LIBLAS=
 
6223
  ac_save_libs="$LIBS"
 
6224
  ac_save_cflags="$CFLAGS"
 
6225
  ac_save_cppflags="$CPPFLAGS"
 
6226
  LIBS="$LIBS $LIBLAS_LIBS"
 
6227
  CFLAGS="$CFLAGS $LIBLAS_CFLAGS"
 
6228
  CPPFLAGS="$CPPFLAGS $LIBLAS_INC"
 
6229
  cat > conftest.$ac_ext <<EOF
 
6230
#line 6231 "configure"
 
6231
#include "confdefs.h"
 
6232
#include <liblas/capi/liblas.h>
 
6233
int main() {
 
6234
LASReader_Create("foo");
 
6235
; return 0; }
 
6236
EOF
 
6237
if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6238
  :
 
6239
else
 
6240
  echo "configure: failed program was:" >&5
 
6241
  cat conftest.$ac_ext >&5
 
6242
  rm -rf conftest*
 
6243
  
 
6244
  cat > conftest.$ac_ext <<EOF
 
6245
#line 6246 "configure"
 
6246
#include "confdefs.h"
 
6247
#include <liblas/capi/liblas.h>
 
6248
int main() {
 
6249
LASReader_Create("foo");
 
6250
; return 0; }
 
6251
EOF
 
6252
if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6253
  rm -rf conftest*
 
6254
  LAS_LIBS="$LAS_LIBS"
 
6255
else
 
6256
  echo "configure: failed program was:" >&5
 
6257
  cat conftest.$ac_ext >&5
 
6258
  rm -rf conftest*
 
6259
  
 
6260
  { echo "configure: error: *** Unable to locate libLAS library." 1>&2; exit 1; }
 
6261
  
 
6262
fi
 
6263
rm -f conftest*
 
6264
  
 
6265
fi
 
6266
rm -f conftest*
 
6267
  LIBS=${ac_save_libs}
 
6268
  CFLAGS=${ac_save_cflags}
 
6269
  CPPFLAGS=${ac_save_cppflags}
 
6270
 
 
6271
  cat >> confdefs.h <<\EOF
 
6272
#define HAVE_LIBLAS 1
 
6273
EOF
 
6274
 
 
6275
fi
 
6276
 
 
6277
 
 
6278
 
 
6279
 
 
6280
 
 
6281
 
 
6282
# NetCDF option
 
6283
 
 
6284
echo $ac_n "checking whether to use NetCDF""... $ac_c" 1>&6
 
6285
echo "configure:6286: checking whether to use NetCDF" >&5
 
6286
 
 
6287
NETCDF_LIBS=
 
6288
NETCDF_CFLAGS=
 
6289
USE_NETCDF=
 
6290
 
 
6291
if test "`basename xx/$with_netcdf`" = "nc-config" ; then
 
6292
  NETCDF_CONFIG="$with_netcdf"
 
6293
fi
 
6294
 
 
6295
if test "$with_netcdf" = "no" ; then
 
6296
  echo "$ac_t""no" 1>&6
 
6297
else
 
6298
  echo "$ac_t""yes" 1>&6
 
6299
  # Extract the first word of "nc-config", so it can be a program name with args.
 
6300
set dummy nc-config; ac_word=$2
 
6301
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
6302
echo "configure:6303: checking for $ac_word" >&5
 
6303
 
 
6304
case "$NETCDF_CONFIG" in
 
6305
  /*)
 
6306
  ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a path.
 
6307
  ;;
 
6308
  ?:/*)                  
 
6309
  ac_cv_path_NETCDF_CONFIG="$NETCDF_CONFIG" # Let the user override the test with a dos path.
 
6310
  ;;
 
6311
  *)
 
6312
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
6313
  ac_dummy="$PATH"
 
6314
  for ac_dir in $ac_dummy; do 
 
6315
    test -z "$ac_dir" && ac_dir=.
 
6316
    if test -f $ac_dir/$ac_word; then
 
6317
      ac_cv_path_NETCDF_CONFIG="$ac_dir/$ac_word"
 
6318
      break
 
6319
    fi
 
6320
  done
 
6321
  IFS="$ac_save_ifs"
 
6322
  test -z "$ac_cv_path_NETCDF_CONFIG" && ac_cv_path_NETCDF_CONFIG="no"
 
6323
  ;;
 
6324
esac
 
6325
NETCDF_CONFIG="$ac_cv_path_NETCDF_CONFIG"
 
6326
if test -n "$NETCDF_CONFIG"; then
 
6327
  echo "$ac_t""$NETCDF_CONFIG" 1>&6
 
6328
else
 
6329
  echo "$ac_t""no" 1>&6
 
6330
fi
 
6331
 
 
6332
 
 
6333
  if test "$NETCDF_CONFIG" = "no" ; then
 
6334
    { echo "configure: error: *** couldn't find nc-config" 1>&2; exit 1; }
 
6335
  fi
 
6336
 
 
6337
  if test "$NETCDF_CONFIG" != "" ; then
 
6338
    NETCDF_LIBS=`"$NETCDF_CONFIG" --libs`
 
6339
    NETCDF_CFLAGS=`"$NETCDF_CONFIG" --cflags`
 
6340
    USE_NETCDF=1
 
6341
  fi
 
6342
 
 
6343
  NETCDF=
 
6344
  ac_save_libs="$LIBS"
 
6345
  ac_save_cflags="$CFLAGS"
 
6346
  LIBS="$LIBS $NETCDF_LIBS"
 
6347
  CFLAGS="$CFLAGS $NETCDF_CFLAGS"
 
6348
  cat > conftest.$ac_ext <<EOF
 
6349
#line 6350 "configure"
 
6350
#include "confdefs.h"
 
6351
#include <netcdf.h>
 
6352
int main() {
 
6353
nc_create("foo", NC_CLOBBER, NULL);
 
6354
; return 0; }
 
6355
EOF
 
6356
if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6357
  :
 
6358
else
 
6359
  echo "configure: failed program was:" >&5
 
6360
  cat conftest.$ac_ext >&5
 
6361
  rm -rf conftest*
 
6362
  
 
6363
  cat > conftest.$ac_ext <<EOF
 
6364
#line 6365 "configure"
 
6365
#include "confdefs.h"
 
6366
#include <netcdf.h>
 
6367
int main() {
 
6368
nc_create("foo", NC_CLOBBER, NULL);
 
6369
; return 0; }
 
6370
EOF
 
6371
if { (eval echo configure:6372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6372
  rm -rf conftest*
 
6373
  NETCDF_LIBS="$NETCDF_LIBS"
 
6374
else
 
6375
  echo "configure: failed program was:" >&5
 
6376
  cat conftest.$ac_ext >&5
 
6377
  rm -rf conftest*
 
6378
  
 
6379
  { echo "configure: error: *** Unable to locate NetCDF library." 1>&2; exit 1; }
 
6380
  
 
6381
fi
 
6382
rm -f conftest*
 
6383
  
 
6384
fi
 
6385
rm -f conftest*
 
6386
  LIBS=${ac_save_libs}
 
6387
  CFLAGS=${ac_save_cflags}
 
6388
 
 
6389
  cat >> confdefs.h <<\EOF
 
6390
#define HAVE_NETCDF 1
 
6391
EOF
 
6392
 
 
6393
fi
 
6394
 
 
6395
 
 
6396
 
 
6397
 
 
6398
 
7956
6399
# GEOS option
7957
6400
 
7958
6401
echo $ac_n "checking whether to use GEOS""... $ac_c" 1>&6
7959
 
echo "configure:7960: checking whether to use GEOS" >&5
 
6402
echo "configure:6403: checking whether to use GEOS" >&5
7960
6403
 
7961
6404
GEOS_LIBS=
7962
 
GGEOS_CFLAGS=
 
6405
GEOS_CFLAGS=
7963
6406
USE_GEOS=
7964
6407
 
7965
6408
# FIXME: "quote" $with_geos ?
7974
6417
  # Extract the first word of "geos-config", so it can be a program name with args.
7975
6418
set dummy geos-config; ac_word=$2
7976
6419
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7977
 
echo "configure:7978: checking for $ac_word" >&5
 
6420
echo "configure:6421: checking for $ac_word" >&5
7978
6421
 
7979
6422
case "$GEOS_CONFIG" in
7980
6423
  /*)
8022
6465
do
8023
6466
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8024
6467
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8025
 
echo "configure:8026: checking for $ac_hdr" >&5
 
6468
echo "configure:6469: checking for $ac_hdr" >&5
8026
6469
 
8027
6470
cat > conftest.$ac_ext <<EOF
8028
 
#line 8029 "configure"
 
6471
#line 6472 "configure"
8029
6472
#include "confdefs.h"
8030
6473
#include <$ac_hdr>
8031
6474
EOF
8032
6475
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8033
 
{ (eval echo configure:8034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
6476
{ (eval echo configure:6477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8034
6477
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8035
6478
if test -z "$ac_err"; then
8036
6479
  rm -rf conftest*
8069
6512
 
8070
6513
 
8071
6514
echo $ac_n "checking for initGEOS in -lgeos_c""... $ac_c" 1>&6
8072
 
echo "configure:8073: checking for initGEOS in -lgeos_c" >&5
 
6515
echo "configure:6516: checking for initGEOS in -lgeos_c" >&5
8073
6516
ac_lib_var=`echo geos_c'_'initGEOS | sed 'y%./+-%__p_%'`
8074
6517
 
8075
6518
ac_save_LIBS="$LIBS"
8076
6519
LIBS="-lgeos_c  $LIBS"
8077
6520
cat > conftest.$ac_ext <<EOF
8078
 
#line 8079 "configure"
 
6521
#line 6522 "configure"
8079
6522
#include "confdefs.h"
8080
6523
/* Override any gcc2 internal prototype to avoid an error.  */
8081
6524
/* We use char because int might match the return type of a gcc2
8086
6529
initGEOS()
8087
6530
; return 0; }
8088
6531
EOF
8089
 
if { (eval echo configure:8090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6532
if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8090
6533
  rm -rf conftest*
8091
6534
  eval "ac_cv_lib_$ac_lib_var=yes"
8092
6535
else
8116
6559
LDFLAGS=${ac_save_ldflags}
8117
6560
 
8118
6561
#  fi
8119
 
  
8120
6562
  cat >> confdefs.h <<\EOF
8121
6563
#define HAVE_GEOS 1
8122
6564
EOF
8131
6573
 
8132
6574
 
8133
6575
echo $ac_n "checking whether to use TIFF""... $ac_c" 1>&6
8134
 
echo "configure:8135: checking whether to use TIFF" >&5
 
6576
echo "configure:6577: checking whether to use TIFF" >&5
8135
6577
echo "$ac_t"""$with_tiff"" 1>&6
8136
6578
case "$with_tiff" in
8137
6579
        "no")   USE_TIFF=       ;;
8151
6593
 
8152
6594
 
8153
6595
echo $ac_n "checking for location of TIFF includes""... $ac_c" 1>&6
8154
 
echo "configure:8155: checking for location of TIFF includes" >&5
 
6596
echo "configure:6597: checking for location of TIFF includes" >&5
8155
6597
case "$with_tiff_includes" in
8156
6598
y | ye | yes | n | no)
8157
6599
        { echo "configure: error: *** You must supply a directory to --with-tiff-includes." 1>&2; exit 1; }
8177
6619
do
8178
6620
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8179
6621
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8180
 
echo "configure:8181: checking for $ac_hdr" >&5
 
6622
echo "configure:6623: checking for $ac_hdr" >&5
8181
6623
 
8182
6624
cat > conftest.$ac_ext <<EOF
8183
 
#line 8184 "configure"
 
6625
#line 6626 "configure"
8184
6626
#include "confdefs.h"
8185
6627
#include <$ac_hdr>
8186
6628
EOF
8187
6629
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8188
 
{ (eval echo configure:8189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
6630
{ (eval echo configure:6631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8189
6631
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8190
6632
if test -z "$ac_err"; then
8191
6633
  rm -rf conftest*
8219
6661
 
8220
6662
 
8221
6663
echo $ac_n "checking for location of TIFF library""... $ac_c" 1>&6
8222
 
echo "configure:8223: checking for location of TIFF library" >&5
 
6664
echo "configure:6665: checking for location of TIFF library" >&5
8223
6665
case "$with_tiff_libs" in
8224
6666
y | ye | yes | n | no)
8225
6667
        { echo "configure: error: *** You must supply a directory to --with-tiff-libs." 1>&2; exit 1; }
8250
6692
 
8251
6693
 
8252
6694
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8253
 
echo "configure:8254: checking for TIFFOpen in -ltiff" >&5
 
6695
echo "configure:6696: checking for TIFFOpen in -ltiff" >&5
8254
6696
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8255
6697
 
8256
6698
ac_save_LIBS="$LIBS"
8257
6699
LIBS="-ltiff  $LIBS"
8258
6700
cat > conftest.$ac_ext <<EOF
8259
 
#line 8260 "configure"
 
6701
#line 6702 "configure"
8260
6702
#include "confdefs.h"
8261
6703
/* Override any gcc2 internal prototype to avoid an error.  */
8262
6704
/* We use char because int might match the return type of a gcc2
8267
6709
TIFFOpen()
8268
6710
; return 0; }
8269
6711
EOF
8270
 
if { (eval echo configure:8271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6712
if { (eval echo configure:6713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8271
6713
  rm -rf conftest*
8272
6714
  eval "ac_cv_lib_$ac_lib_var=yes"
8273
6715
else
8286
6728
  echo "$ac_t""no" 1>&6
8287
6729
 
8288
6730
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8289
 
echo "configure:8290: checking for TIFFOpen in -ltiff" >&5
 
6731
echo "configure:6732: checking for TIFFOpen in -ltiff" >&5
8290
6732
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8291
6733
 
8292
6734
ac_save_LIBS="$LIBS"
8293
6735
LIBS="-ltiff $MATHLIB $LIBS"
8294
6736
cat > conftest.$ac_ext <<EOF
8295
 
#line 8296 "configure"
 
6737
#line 6738 "configure"
8296
6738
#include "confdefs.h"
8297
6739
/* Override any gcc2 internal prototype to avoid an error.  */
8298
6740
/* We use char because int might match the return type of a gcc2
8303
6745
TIFFOpen()
8304
6746
; return 0; }
8305
6747
EOF
8306
 
if { (eval echo configure:8307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6748
if { (eval echo configure:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8307
6749
  rm -rf conftest*
8308
6750
  eval "ac_cv_lib_$ac_lib_var=yes"
8309
6751
else
8322
6764
  echo "$ac_t""no" 1>&6
8323
6765
 
8324
6766
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8325
 
echo "configure:8326: checking for TIFFOpen in -ltiff" >&5
 
6767
echo "configure:6768: checking for TIFFOpen in -ltiff" >&5
8326
6768
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8327
6769
 
8328
6770
ac_save_LIBS="$LIBS"
8329
6771
LIBS="-ltiff $ZLIB $LIBS"
8330
6772
cat > conftest.$ac_ext <<EOF
8331
 
#line 8332 "configure"
 
6773
#line 6774 "configure"
8332
6774
#include "confdefs.h"
8333
6775
/* Override any gcc2 internal prototype to avoid an error.  */
8334
6776
/* We use char because int might match the return type of a gcc2
8339
6781
TIFFOpen()
8340
6782
; return 0; }
8341
6783
EOF
8342
 
if { (eval echo configure:8343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6784
if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8343
6785
  rm -rf conftest*
8344
6786
  eval "ac_cv_lib_$ac_lib_var=yes"
8345
6787
else
8358
6800
  echo "$ac_t""no" 1>&6
8359
6801
 
8360
6802
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8361
 
echo "configure:8362: checking for TIFFOpen in -ltiff" >&5
 
6803
echo "configure:6804: checking for TIFFOpen in -ltiff" >&5
8362
6804
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8363
6805
 
8364
6806
ac_save_LIBS="$LIBS"
8365
6807
LIBS="-ltiff $ZLIB $MATHLIB $LIBS"
8366
6808
cat > conftest.$ac_ext <<EOF
8367
 
#line 8368 "configure"
 
6809
#line 6810 "configure"
8368
6810
#include "confdefs.h"
8369
6811
/* Override any gcc2 internal prototype to avoid an error.  */
8370
6812
/* We use char because int might match the return type of a gcc2
8375
6817
TIFFOpen()
8376
6818
; return 0; }
8377
6819
EOF
8378
 
if { (eval echo configure:8379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6820
if { (eval echo configure:6821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8379
6821
  rm -rf conftest*
8380
6822
  eval "ac_cv_lib_$ac_lib_var=yes"
8381
6823
else
8394
6836
  echo "$ac_t""no" 1>&6
8395
6837
 
8396
6838
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8397
 
echo "configure:8398: checking for TIFFOpen in -ltiff" >&5
 
6839
echo "configure:6840: checking for TIFFOpen in -ltiff" >&5
8398
6840
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8399
6841
 
8400
6842
ac_save_LIBS="$LIBS"
8401
6843
LIBS="-ltiff -ljpeg $LIBS"
8402
6844
cat > conftest.$ac_ext <<EOF
8403
 
#line 8404 "configure"
 
6845
#line 6846 "configure"
8404
6846
#include "confdefs.h"
8405
6847
/* Override any gcc2 internal prototype to avoid an error.  */
8406
6848
/* We use char because int might match the return type of a gcc2
8411
6853
TIFFOpen()
8412
6854
; return 0; }
8413
6855
EOF
8414
 
if { (eval echo configure:8415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6856
if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8415
6857
  rm -rf conftest*
8416
6858
  eval "ac_cv_lib_$ac_lib_var=yes"
8417
6859
else
8430
6872
  echo "$ac_t""no" 1>&6
8431
6873
 
8432
6874
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8433
 
echo "configure:8434: checking for TIFFOpen in -ltiff" >&5
 
6875
echo "configure:6876: checking for TIFFOpen in -ltiff" >&5
8434
6876
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8435
6877
 
8436
6878
ac_save_LIBS="$LIBS"
8437
6879
LIBS="-ltiff -ljpeg $MATHLIB $LIBS"
8438
6880
cat > conftest.$ac_ext <<EOF
8439
 
#line 8440 "configure"
 
6881
#line 6882 "configure"
8440
6882
#include "confdefs.h"
8441
6883
/* Override any gcc2 internal prototype to avoid an error.  */
8442
6884
/* We use char because int might match the return type of a gcc2
8447
6889
TIFFOpen()
8448
6890
; return 0; }
8449
6891
EOF
8450
 
if { (eval echo configure:8451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6892
if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8451
6893
  rm -rf conftest*
8452
6894
  eval "ac_cv_lib_$ac_lib_var=yes"
8453
6895
else
8466
6908
  echo "$ac_t""no" 1>&6
8467
6909
 
8468
6910
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8469
 
echo "configure:8470: checking for TIFFOpen in -ltiff" >&5
 
6911
echo "configure:6912: checking for TIFFOpen in -ltiff" >&5
8470
6912
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8471
6913
 
8472
6914
ac_save_LIBS="$LIBS"
8473
6915
LIBS="-ltiff -ljpeg $ZLIB $LIBS"
8474
6916
cat > conftest.$ac_ext <<EOF
8475
 
#line 8476 "configure"
 
6917
#line 6918 "configure"
8476
6918
#include "confdefs.h"
8477
6919
/* Override any gcc2 internal prototype to avoid an error.  */
8478
6920
/* We use char because int might match the return type of a gcc2
8483
6925
TIFFOpen()
8484
6926
; return 0; }
8485
6927
EOF
8486
 
if { (eval echo configure:8487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6928
if { (eval echo configure:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8487
6929
  rm -rf conftest*
8488
6930
  eval "ac_cv_lib_$ac_lib_var=yes"
8489
6931
else
8502
6944
  echo "$ac_t""no" 1>&6
8503
6945
 
8504
6946
echo $ac_n "checking for TIFFOpen in -ltiff""... $ac_c" 1>&6
8505
 
echo "configure:8506: checking for TIFFOpen in -ltiff" >&5
 
6947
echo "configure:6948: checking for TIFFOpen in -ltiff" >&5
8506
6948
ac_lib_var=`echo tiff'_'TIFFOpen | sed 'y%./+-%__p_%'`
8507
6949
 
8508
6950
ac_save_LIBS="$LIBS"
8509
6951
LIBS="-ltiff -ljpeg $ZLIB $MATHLIB $LIBS"
8510
6952
cat > conftest.$ac_ext <<EOF
8511
 
#line 8512 "configure"
 
6953
#line 6954 "configure"
8512
6954
#include "confdefs.h"
8513
6955
/* Override any gcc2 internal prototype to avoid an error.  */
8514
6956
/* We use char because int might match the return type of a gcc2
8519
6961
TIFFOpen()
8520
6962
; return 0; }
8521
6963
EOF
8522
 
if { (eval echo configure:8523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
6964
if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8523
6965
  rm -rf conftest*
8524
6966
  eval "ac_cv_lib_$ac_lib_var=yes"
8525
6967
else
8617
7059
 
8618
7060
 
8619
7061
echo $ac_n "checking whether to use PNG""... $ac_c" 1>&6
8620
 
echo "configure:8621: checking whether to use PNG" >&5
 
7062
echo "configure:7063: checking whether to use PNG" >&5
8621
7063
echo "$ac_t"""$with_png"" 1>&6
8622
7064
case "$with_png" in
8623
7065
        "no")   USE_PNG=        ;;
8636
7078
 
8637
7079
 
8638
7080
echo $ac_n "checking for location of PNG includes""... $ac_c" 1>&6
8639
 
echo "configure:8640: checking for location of PNG includes" >&5
 
7081
echo "configure:7082: checking for location of PNG includes" >&5
8640
7082
case "$with_png_includes" in
8641
7083
y | ye | yes | n | no)
8642
7084
        { echo "configure: error: *** You must supply a directory to --with-png-includes." 1>&2; exit 1; }
8662
7104
do
8663
7105
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8664
7106
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8665
 
echo "configure:8666: checking for $ac_hdr" >&5
 
7107
echo "configure:7108: checking for $ac_hdr" >&5
8666
7108
 
8667
7109
cat > conftest.$ac_ext <<EOF
8668
 
#line 8669 "configure"
 
7110
#line 7111 "configure"
8669
7111
#include "confdefs.h"
8670
7112
#include <$ac_hdr>
8671
7113
EOF
8672
7114
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8673
 
{ (eval echo configure:8674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
7115
{ (eval echo configure:7116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8674
7116
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8675
7117
if test -z "$ac_err"; then
8676
7118
  rm -rf conftest*
8704
7146
 
8705
7147
 
8706
7148
echo $ac_n "checking for location of PNG library""... $ac_c" 1>&6
8707
 
echo "configure:8708: checking for location of PNG library" >&5
 
7149
echo "configure:7150: checking for location of PNG library" >&5
8708
7150
case "$with_png_libs" in
8709
7151
y | ye | yes | n | no)
8710
7152
        { echo "configure: error: *** You must supply a directory to --with-png-libs." 1>&2; exit 1; }
8729
7171
 
8730
7172
 
8731
7173
echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8732
 
echo "configure:8733: checking for png_read_image in -lpng" >&5
 
7174
echo "configure:7175: checking for png_read_image in -lpng" >&5
8733
7175
ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8734
7176
 
8735
7177
ac_save_LIBS="$LIBS"
8736
7178
LIBS="-lpng $ZLIB $MATHLIB $LIBS"
8737
7179
cat > conftest.$ac_ext <<EOF
8738
 
#line 8739 "configure"
 
7180
#line 7181 "configure"
8739
7181
#include "confdefs.h"
8740
7182
/* Override any gcc2 internal prototype to avoid an error.  */
8741
7183
/* We use char because int might match the return type of a gcc2
8746
7188
png_read_image()
8747
7189
; return 0; }
8748
7190
EOF
8749
 
if { (eval echo configure:8750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7191
if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8750
7192
  rm -rf conftest*
8751
7193
  eval "ac_cv_lib_$ac_lib_var=yes"
8752
7194
else
8788
7230
 
8789
7231
 
8790
7232
echo $ac_n "checking whether to use PostgreSQL""... $ac_c" 1>&6
8791
 
echo "configure:8792: checking whether to use PostgreSQL" >&5
 
7233
echo "configure:7234: checking whether to use PostgreSQL" >&5
8792
7234
echo "$ac_t"""$with_postgres"" 1>&6
8793
7235
case "$with_postgres" in
8794
7236
        "no")   USE_POSTGRES=   ;;
8815
7257
 
8816
7258
 
8817
7259
echo $ac_n "checking for location of PostgreSQL includes""... $ac_c" 1>&6
8818
 
echo "configure:8819: checking for location of PostgreSQL includes" >&5
 
7260
echo "configure:7261: checking for location of PostgreSQL includes" >&5
8819
7261
case "$with_postgres_includes" in
8820
7262
y | ye | yes | n | no)
8821
7263
        { echo "configure: error: *** You must supply a directory to --with-postgres-includes." 1>&2; exit 1; }
8841
7283
do
8842
7284
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8843
7285
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8844
 
echo "configure:8845: checking for $ac_hdr" >&5
 
7286
echo "configure:7287: checking for $ac_hdr" >&5
8845
7287
 
8846
7288
cat > conftest.$ac_ext <<EOF
8847
 
#line 8848 "configure"
 
7289
#line 7290 "configure"
8848
7290
#include "confdefs.h"
8849
7291
#include <$ac_hdr>
8850
7292
EOF
8851
7293
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8852
 
{ (eval echo configure:8853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
7294
{ (eval echo configure:7295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8853
7295
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8854
7296
if test -z "$ac_err"; then
8855
7297
  rm -rf conftest*
8887
7329
 
8888
7330
 
8889
7331
echo $ac_n "checking for location of PostgreSQL library""... $ac_c" 1>&6
8890
 
echo "configure:8891: checking for location of PostgreSQL library" >&5
 
7332
echo "configure:7333: checking for location of PostgreSQL library" >&5
8891
7333
case "$with_postgres_libs" in
8892
7334
y | ye | yes | n | no)
8893
7335
        { echo "configure: error: *** You must supply a directory to --with-postgres-libs." 1>&2; exit 1; }
8916
7358
 
8917
7359
 
8918
7360
echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
8919
 
echo "configure:8920: checking for PQsetdbLogin in -lpq" >&5
 
7361
echo "configure:7362: checking for PQsetdbLogin in -lpq" >&5
8920
7362
ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
8921
7363
 
8922
7364
ac_save_LIBS="$LIBS"
8923
7365
LIBS="-lpq  $LIBS"
8924
7366
cat > conftest.$ac_ext <<EOF
8925
 
#line 8926 "configure"
 
7367
#line 7368 "configure"
8926
7368
#include "confdefs.h"
8927
7369
/* Override any gcc2 internal prototype to avoid an error.  */
8928
7370
/* We use char because int might match the return type of a gcc2
8933
7375
PQsetdbLogin()
8934
7376
; return 0; }
8935
7377
EOF
8936
 
if { (eval echo configure:8937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7378
if { (eval echo configure:7379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8937
7379
  rm -rf conftest*
8938
7380
  eval "ac_cv_lib_$ac_lib_var=yes"
8939
7381
else
8952
7394
  echo "$ac_t""no" 1>&6
8953
7395
 
8954
7396
echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
8955
 
echo "configure:8956: checking for PQsetdbLogin in -lpq" >&5
 
7397
echo "configure:7398: checking for PQsetdbLogin in -lpq" >&5
8956
7398
ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
8957
7399
 
8958
7400
ac_save_LIBS="$LIBS"
8959
7401
LIBS="-lpq -lssl -lcrypto $LIBS"
8960
7402
cat > conftest.$ac_ext <<EOF
8961
 
#line 8962 "configure"
 
7403
#line 7404 "configure"
8962
7404
#include "confdefs.h"
8963
7405
/* Override any gcc2 internal prototype to avoid an error.  */
8964
7406
/* We use char because int might match the return type of a gcc2
8969
7411
PQsetdbLogin()
8970
7412
; return 0; }
8971
7413
EOF
8972
 
if { (eval echo configure:8973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7414
if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8973
7415
  rm -rf conftest*
8974
7416
  eval "ac_cv_lib_$ac_lib_var=yes"
8975
7417
else
8988
7430
  echo "$ac_t""no" 1>&6
8989
7431
 
8990
7432
echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
8991
 
echo "configure:8992: checking for PQsetdbLogin in -lpq" >&5
 
7433
echo "configure:7434: checking for PQsetdbLogin in -lpq" >&5
8992
7434
ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
8993
7435
 
8994
7436
ac_save_LIBS="$LIBS"
8995
7437
LIBS="-lpq -lcrypt $LIBS"
8996
7438
cat > conftest.$ac_ext <<EOF
8997
 
#line 8998 "configure"
 
7439
#line 7440 "configure"
8998
7440
#include "confdefs.h"
8999
7441
/* Override any gcc2 internal prototype to avoid an error.  */
9000
7442
/* We use char because int might match the return type of a gcc2
9005
7447
PQsetdbLogin()
9006
7448
; return 0; }
9007
7449
EOF
9008
 
if { (eval echo configure:9009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7450
if { (eval echo configure:7451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9009
7451
  rm -rf conftest*
9010
7452
  eval "ac_cv_lib_$ac_lib_var=yes"
9011
7453
else
9024
7466
  echo "$ac_t""no" 1>&6
9025
7467
 
9026
7468
echo $ac_n "checking for PQsetdbLogin in -lpq""... $ac_c" 1>&6
9027
 
echo "configure:9028: checking for PQsetdbLogin in -lpq" >&5
 
7469
echo "configure:7470: checking for PQsetdbLogin in -lpq" >&5
9028
7470
ac_lib_var=`echo pq'_'PQsetdbLogin | sed 'y%./+-%__p_%'`
9029
7471
 
9030
7472
ac_save_LIBS="$LIBS"
9031
7473
LIBS="-lpq -lcrypt -lssl -lcrypto $LIBS"
9032
7474
cat > conftest.$ac_ext <<EOF
9033
 
#line 9034 "configure"
 
7475
#line 7476 "configure"
9034
7476
#include "confdefs.h"
9035
7477
/* Override any gcc2 internal prototype to avoid an error.  */
9036
7478
/* We use char because int might match the return type of a gcc2
9041
7483
PQsetdbLogin()
9042
7484
; return 0; }
9043
7485
EOF
9044
 
if { (eval echo configure:9045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7486
if { (eval echo configure:7487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9045
7487
  rm -rf conftest*
9046
7488
  eval "ac_cv_lib_$ac_lib_var=yes"
9047
7489
else
9098
7540
ac_save_ldflags="$LDFLAGS"
9099
7541
LDFLAGS="$LDFLAGS $PQLIBPATH"
9100
7542
echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
9101
 
echo "configure:9102: checking for PQcmdTuples in -lpq" >&5
 
7543
echo "configure:7544: checking for PQcmdTuples in -lpq" >&5
9102
7544
ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
9103
7545
 
9104
7546
ac_save_LIBS="$LIBS"
9105
7547
LIBS="-lpq  $LIBS"
9106
7548
cat > conftest.$ac_ext <<EOF
9107
 
#line 9108 "configure"
 
7549
#line 7550 "configure"
9108
7550
#include "confdefs.h"
9109
7551
/* Override any gcc2 internal prototype to avoid an error.  */
9110
7552
/* We use char because int might match the return type of a gcc2
9115
7557
PQcmdTuples()
9116
7558
; return 0; }
9117
7559
EOF
9118
 
if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7560
if { (eval echo configure:7561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9119
7561
  rm -rf conftest*
9120
7562
  eval "ac_cv_lib_$ac_lib_var=yes"
9121
7563
else
9137
7579
  echo "$ac_t""no" 1>&6
9138
7580
 
9139
7581
echo $ac_n "checking for PQcmdTuples in -lpq""... $ac_c" 1>&6
9140
 
echo "configure:9141: checking for PQcmdTuples in -lpq" >&5
 
7582
echo "configure:7583: checking for PQcmdTuples in -lpq" >&5
9141
7583
ac_lib_var=`echo pq'_'PQcmdTuples | sed 'y%./+-%__p_%'`
9142
7584
 
9143
7585
ac_save_LIBS="$LIBS"
9144
7586
LIBS="-lpq -lcrypt $LIBS"
9145
7587
cat > conftest.$ac_ext <<EOF
9146
 
#line 9147 "configure"
 
7588
#line 7589 "configure"
9147
7589
#include "confdefs.h"
9148
7590
/* Override any gcc2 internal prototype to avoid an error.  */
9149
7591
/* We use char because int might match the return type of a gcc2
9154
7596
PQcmdTuples()
9155
7597
; return 0; }
9156
7598
EOF
9157
 
if { (eval echo configure:9158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7599
if { (eval echo configure:7600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9158
7600
  rm -rf conftest*
9159
7601
  eval "ac_cv_lib_$ac_lib_var=yes"
9160
7602
else
9197
7639
 
9198
7640
 
9199
7641
echo $ac_n "checking whether to use MySQL""... $ac_c" 1>&6
9200
 
echo "configure:9201: checking whether to use MySQL" >&5
 
7642
echo "configure:7643: checking whether to use MySQL" >&5
9201
7643
echo "$ac_t"""$with_mysql"" 1>&6
9202
7644
case "$with_mysql" in
9203
7645
        "no")   USE_MYSQL=      ;;
9217
7659
 
9218
7660
 
9219
7661
echo $ac_n "checking for location of MySQL includes""... $ac_c" 1>&6
9220
 
echo "configure:9221: checking for location of MySQL includes" >&5
 
7662
echo "configure:7663: checking for location of MySQL includes" >&5
9221
7663
case "$with_mysql_includes" in
9222
7664
y | ye | yes | n | no)
9223
7665
        { echo "configure: error: *** You must supply a directory to --with-mysql-includes." 1>&2; exit 1; }
9243
7685
do
9244
7686
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9245
7687
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9246
 
echo "configure:9247: checking for $ac_hdr" >&5
 
7688
echo "configure:7689: checking for $ac_hdr" >&5
9247
7689
 
9248
7690
cat > conftest.$ac_ext <<EOF
9249
 
#line 9250 "configure"
 
7691
#line 7692 "configure"
9250
7692
#include "confdefs.h"
9251
7693
#include <$ac_hdr>
9252
7694
EOF
9253
7695
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9254
 
{ (eval echo configure:9255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
7696
{ (eval echo configure:7697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9255
7697
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9256
7698
if test -z "$ac_err"; then
9257
7699
  rm -rf conftest*
9288
7730
 
9289
7731
  
9290
7732
echo $ac_n "checking for location of MySQL library""... $ac_c" 1>&6
9291
 
echo "configure:9292: checking for location of MySQL library" >&5
 
7733
echo "configure:7734: checking for location of MySQL library" >&5
9292
7734
case "$with_mysql_libs" in
9293
7735
y | ye | yes | n | no)
9294
7736
        { echo "configure: error: *** You must supply a directory to --with-mysql-libs." 1>&2; exit 1; }
9319
7761
 
9320
7762
 
9321
7763
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9322
 
echo "configure:9323: checking for mysql_query in -lmysqlclient" >&5
 
7764
echo "configure:7765: checking for mysql_query in -lmysqlclient" >&5
9323
7765
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9324
7766
 
9325
7767
ac_save_LIBS="$LIBS"
9326
7768
LIBS="-lmysqlclient  $LIBS"
9327
7769
cat > conftest.$ac_ext <<EOF
9328
 
#line 9329 "configure"
 
7770
#line 7771 "configure"
9329
7771
#include "confdefs.h"
9330
7772
/* Override any gcc2 internal prototype to avoid an error.  */
9331
7773
/* We use char because int might match the return type of a gcc2
9336
7778
mysql_query()
9337
7779
; return 0; }
9338
7780
EOF
9339
 
if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7781
if { (eval echo configure:7782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9340
7782
  rm -rf conftest*
9341
7783
  eval "ac_cv_lib_$ac_lib_var=yes"
9342
7784
else
9355
7797
  echo "$ac_t""no" 1>&6
9356
7798
 
9357
7799
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9358
 
echo "configure:9359: checking for mysql_query in -lmysqlclient" >&5
 
7800
echo "configure:7801: checking for mysql_query in -lmysqlclient" >&5
9359
7801
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9360
7802
 
9361
7803
ac_save_LIBS="$LIBS"
9362
7804
LIBS="-lmysqlclient $MATHLIB $LIBS"
9363
7805
cat > conftest.$ac_ext <<EOF
9364
 
#line 9365 "configure"
 
7806
#line 7807 "configure"
9365
7807
#include "confdefs.h"
9366
7808
/* Override any gcc2 internal prototype to avoid an error.  */
9367
7809
/* We use char because int might match the return type of a gcc2
9372
7814
mysql_query()
9373
7815
; return 0; }
9374
7816
EOF
9375
 
if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7817
if { (eval echo configure:7818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9376
7818
  rm -rf conftest*
9377
7819
  eval "ac_cv_lib_$ac_lib_var=yes"
9378
7820
else
9391
7833
  echo "$ac_t""no" 1>&6
9392
7834
 
9393
7835
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9394
 
echo "configure:9395: checking for mysql_query in -lmysqlclient" >&5
 
7836
echo "configure:7837: checking for mysql_query in -lmysqlclient" >&5
9395
7837
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9396
7838
 
9397
7839
ac_save_LIBS="$LIBS"
9398
7840
LIBS="-lmysqlclient $SOCKLIB $LIBS"
9399
7841
cat > conftest.$ac_ext <<EOF
9400
 
#line 9401 "configure"
 
7842
#line 7843 "configure"
9401
7843
#include "confdefs.h"
9402
7844
/* Override any gcc2 internal prototype to avoid an error.  */
9403
7845
/* We use char because int might match the return type of a gcc2
9408
7850
mysql_query()
9409
7851
; return 0; }
9410
7852
EOF
9411
 
if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7853
if { (eval echo configure:7854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9412
7854
  rm -rf conftest*
9413
7855
  eval "ac_cv_lib_$ac_lib_var=yes"
9414
7856
else
9427
7869
  echo "$ac_t""no" 1>&6
9428
7870
 
9429
7871
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9430
 
echo "configure:9431: checking for mysql_query in -lmysqlclient" >&5
 
7872
echo "configure:7873: checking for mysql_query in -lmysqlclient" >&5
9431
7873
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9432
7874
 
9433
7875
ac_save_LIBS="$LIBS"
9434
7876
LIBS="-lmysqlclient $SOCKLIB $MATHLIB $LIBS"
9435
7877
cat > conftest.$ac_ext <<EOF
9436
 
#line 9437 "configure"
 
7878
#line 7879 "configure"
9437
7879
#include "confdefs.h"
9438
7880
/* Override any gcc2 internal prototype to avoid an error.  */
9439
7881
/* We use char because int might match the return type of a gcc2
9444
7886
mysql_query()
9445
7887
; return 0; }
9446
7888
EOF
9447
 
if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7889
if { (eval echo configure:7890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9448
7890
  rm -rf conftest*
9449
7891
  eval "ac_cv_lib_$ac_lib_var=yes"
9450
7892
else
9463
7905
  echo "$ac_t""no" 1>&6
9464
7906
 
9465
7907
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9466
 
echo "configure:9467: checking for mysql_query in -lmysqlclient" >&5
 
7908
echo "configure:7909: checking for mysql_query in -lmysqlclient" >&5
9467
7909
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9468
7910
 
9469
7911
ac_save_LIBS="$LIBS"
9470
7912
LIBS="-lmysqlclient $ZLIB $LIBS"
9471
7913
cat > conftest.$ac_ext <<EOF
9472
 
#line 9473 "configure"
 
7914
#line 7915 "configure"
9473
7915
#include "confdefs.h"
9474
7916
/* Override any gcc2 internal prototype to avoid an error.  */
9475
7917
/* We use char because int might match the return type of a gcc2
9480
7922
mysql_query()
9481
7923
; return 0; }
9482
7924
EOF
9483
 
if { (eval echo configure:9484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7925
if { (eval echo configure:7926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9484
7926
  rm -rf conftest*
9485
7927
  eval "ac_cv_lib_$ac_lib_var=yes"
9486
7928
else
9499
7941
  echo "$ac_t""no" 1>&6
9500
7942
 
9501
7943
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9502
 
echo "configure:9503: checking for mysql_query in -lmysqlclient" >&5
 
7944
echo "configure:7945: checking for mysql_query in -lmysqlclient" >&5
9503
7945
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9504
7946
 
9505
7947
ac_save_LIBS="$LIBS"
9506
7948
LIBS="-lmysqlclient $ZLIB $MATHLIB $LIBS"
9507
7949
cat > conftest.$ac_ext <<EOF
9508
 
#line 9509 "configure"
 
7950
#line 7951 "configure"
9509
7951
#include "confdefs.h"
9510
7952
/* Override any gcc2 internal prototype to avoid an error.  */
9511
7953
/* We use char because int might match the return type of a gcc2
9516
7958
mysql_query()
9517
7959
; return 0; }
9518
7960
EOF
9519
 
if { (eval echo configure:9520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7961
if { (eval echo configure:7962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9520
7962
  rm -rf conftest*
9521
7963
  eval "ac_cv_lib_$ac_lib_var=yes"
9522
7964
else
9535
7977
  echo "$ac_t""no" 1>&6
9536
7978
 
9537
7979
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9538
 
echo "configure:9539: checking for mysql_query in -lmysqlclient" >&5
 
7980
echo "configure:7981: checking for mysql_query in -lmysqlclient" >&5
9539
7981
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9540
7982
 
9541
7983
ac_save_LIBS="$LIBS"
9542
7984
LIBS="-lmysqlclient $ZLIB $SOCKLIB $LIBS"
9543
7985
cat > conftest.$ac_ext <<EOF
9544
 
#line 9545 "configure"
 
7986
#line 7987 "configure"
9545
7987
#include "confdefs.h"
9546
7988
/* Override any gcc2 internal prototype to avoid an error.  */
9547
7989
/* We use char because int might match the return type of a gcc2
9552
7994
mysql_query()
9553
7995
; return 0; }
9554
7996
EOF
9555
 
if { (eval echo configure:9556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
7997
if { (eval echo configure:7998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9556
7998
  rm -rf conftest*
9557
7999
  eval "ac_cv_lib_$ac_lib_var=yes"
9558
8000
else
9571
8013
  echo "$ac_t""no" 1>&6
9572
8014
 
9573
8015
echo $ac_n "checking for mysql_query in -lmysqlclient""... $ac_c" 1>&6
9574
 
echo "configure:9575: checking for mysql_query in -lmysqlclient" >&5
 
8016
echo "configure:8017: checking for mysql_query in -lmysqlclient" >&5
9575
8017
ac_lib_var=`echo mysqlclient'_'mysql_query | sed 'y%./+-%__p_%'`
9576
8018
 
9577
8019
ac_save_LIBS="$LIBS"
9578
8020
LIBS="-lmysqlclient $ZLIB $SOCKLIB $MATHLIB $LIBS"
9579
8021
cat > conftest.$ac_ext <<EOF
9580
 
#line 9581 "configure"
 
8022
#line 8023 "configure"
9581
8023
#include "confdefs.h"
9582
8024
/* Override any gcc2 internal prototype to avoid an error.  */
9583
8025
/* We use char because int might match the return type of a gcc2
9588
8030
mysql_query()
9589
8031
; return 0; }
9590
8032
EOF
9591
 
if { (eval echo configure:9592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8033
if { (eval echo configure:8034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9592
8034
  rm -rf conftest*
9593
8035
  eval "ac_cv_lib_$ac_lib_var=yes"
9594
8036
else
9678
8120
  # Extract the first word of "mysql_config", so it can be a program name with args.
9679
8121
set dummy mysql_config; ac_word=$2
9680
8122
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9681
 
echo "configure:9682: checking for $ac_word" >&5
 
8123
echo "configure:8124: checking for $ac_word" >&5
9682
8124
 
9683
8125
case "$MYSQLD_CONFIG" in
9684
8126
  /*)
9714
8156
  fi
9715
8157
 
9716
8158
  if test "$MYSQLD_CONFIG" != "" ; then
 
8159
    
 
8160
    ac_ext=C
 
8161
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
8162
ac_cpp='$CXXCPP $CPPFLAGS'
 
8163
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
8164
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
8165
cross_compiling=$ac_cv_prog_cxx_cross
 
8166
 
9717
8167
    ac_save_libs="$LIBS"
9718
8168
    MYSQLDLIB=`"$MYSQLD_CONFIG" --libmysqld-libs`
9719
8169
 
9720
8170
    LIBS="$MYSQLDLIB $LIBS"
9721
8171
    echo $ac_n "checking for mysql_server_init""... $ac_c" 1>&6
9722
 
echo "configure:9723: checking for mysql_server_init" >&5
 
8172
echo "configure:8173: checking for mysql_server_init" >&5
9723
8173
 
9724
8174
cat > conftest.$ac_ext <<EOF
9725
 
#line 9726 "configure"
 
8175
#line 8176 "configure"
9726
8176
#include "confdefs.h"
9727
8177
/* System header to define __stub macros and hopefully few prototypes,
9728
8178
    which can conflict with char mysql_server_init(); below.  */
9729
8179
#include <assert.h>
9730
8180
/* Override any gcc2 internal prototype to avoid an error.  */
 
8181
#ifdef __cplusplus
 
8182
extern "C"
 
8183
#endif
9731
8184
/* We use char because int might match the return type of a gcc2
9732
8185
    builtin and then its argument prototype would still apply.  */
9733
8186
char mysql_server_init();
9745
8198
 
9746
8199
; return 0; }
9747
8200
EOF
9748
 
if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8201
if { (eval echo configure:8202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9749
8202
  rm -rf conftest*
9750
8203
  eval "ac_cv_func_mysql_server_init=yes"
9751
8204
else
9766
8219
fi
9767
8220
 
9768
8221
    LIBS=$ac_save_libs
 
8222
    ac_ext=c
 
8223
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
8224
ac_cpp='$CPP $CPPFLAGS'
 
8225
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
8226
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
8227
cross_compiling=$ac_cv_prog_cc_cross
 
8228
 
 
8229
    ac_ext=c
 
8230
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
8231
ac_cpp='$CPP $CPPFLAGS'
 
8232
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
8233
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
8234
cross_compiling=$ac_cv_prog_cc_cross
 
8235
 
9769
8236
  fi
9770
8237
 
9771
8238
fi # $USE_MYSQL
9783
8250
 
9784
8251
 
9785
8252
echo $ac_n "checking whether to use SQLite""... $ac_c" 1>&6
9786
 
echo "configure:9787: checking whether to use SQLite" >&5
 
8253
echo "configure:8254: checking whether to use SQLite" >&5
9787
8254
echo "$ac_t"""$with_sqlite"" 1>&6
9788
8255
case "$with_sqlite" in
9789
8256
        "no")   USE_SQLITE=     ;;
9803
8270
 
9804
8271
 
9805
8272
echo $ac_n "checking for location of SQLite includes""... $ac_c" 1>&6
9806
 
echo "configure:9807: checking for location of SQLite includes" >&5
 
8273
echo "configure:8274: checking for location of SQLite includes" >&5
9807
8274
case "$with_sqlite_includes" in
9808
8275
y | ye | yes | n | no)
9809
8276
        { echo "configure: error: *** You must supply a directory to --with-sqlite-includes." 1>&2; exit 1; }
9829
8296
do
9830
8297
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9831
8298
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9832
 
echo "configure:9833: checking for $ac_hdr" >&5
 
8299
echo "configure:8300: checking for $ac_hdr" >&5
9833
8300
 
9834
8301
cat > conftest.$ac_ext <<EOF
9835
 
#line 9836 "configure"
 
8302
#line 8303 "configure"
9836
8303
#include "confdefs.h"
9837
8304
#include <$ac_hdr>
9838
8305
EOF
9839
8306
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9840
 
{ (eval echo configure:9841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
8307
{ (eval echo configure:8308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9841
8308
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9842
8309
if test -z "$ac_err"; then
9843
8310
  rm -rf conftest*
9880
8347
 
9881
8348
 
9882
8349
echo $ac_n "checking for location of SQLite library""... $ac_c" 1>&6
9883
 
echo "configure:9884: checking for location of SQLite library" >&5
 
8350
echo "configure:8351: checking for location of SQLite library" >&5
9884
8351
case "$with_sqlite_libs" in
9885
8352
y | ye | yes | n | no)
9886
8353
        { echo "configure: error: *** You must supply a directory to --with-sqlite-libs." 1>&2; exit 1; }
9909
8376
 
9910
8377
 
9911
8378
echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
9912
 
echo "configure:9913: checking for sqlite3_open in -lsqlite3" >&5
 
8379
echo "configure:8380: checking for sqlite3_open in -lsqlite3" >&5
9913
8380
ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
9914
8381
 
9915
8382
ac_save_LIBS="$LIBS"
9916
8383
LIBS="-lsqlite3  $LIBS"
9917
8384
cat > conftest.$ac_ext <<EOF
9918
 
#line 9919 "configure"
 
8385
#line 8386 "configure"
9919
8386
#include "confdefs.h"
9920
8387
/* Override any gcc2 internal prototype to avoid an error.  */
9921
8388
/* We use char because int might match the return type of a gcc2
9926
8393
sqlite3_open()
9927
8394
; return 0; }
9928
8395
EOF
9929
 
if { (eval echo configure:9930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8396
if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9930
8397
  rm -rf conftest*
9931
8398
  eval "ac_cv_lib_$ac_lib_var=yes"
9932
8399
else
9945
8412
  echo "$ac_t""no" 1>&6
9946
8413
 
9947
8414
echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
9948
 
echo "configure:9949: checking for sqlite3_open in -lsqlite3" >&5
 
8415
echo "configure:8416: checking for sqlite3_open in -lsqlite3" >&5
9949
8416
ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
9950
8417
 
9951
8418
ac_save_LIBS="$LIBS"
9952
8419
LIBS="-lsqlite3 $DLLIB $LIBS"
9953
8420
cat > conftest.$ac_ext <<EOF
9954
 
#line 9955 "configure"
 
8421
#line 8422 "configure"
9955
8422
#include "confdefs.h"
9956
8423
/* Override any gcc2 internal prototype to avoid an error.  */
9957
8424
/* We use char because int might match the return type of a gcc2
9962
8429
sqlite3_open()
9963
8430
; return 0; }
9964
8431
EOF
9965
 
if { (eval echo configure:9966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8432
if { (eval echo configure:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9966
8433
  rm -rf conftest*
9967
8434
  eval "ac_cv_lib_$ac_lib_var=yes"
9968
8435
else
9981
8448
  echo "$ac_t""no" 1>&6
9982
8449
 
9983
8450
echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
9984
 
echo "configure:9985: checking for sqlite3_open in -lsqlite3" >&5
 
8451
echo "configure:8452: checking for sqlite3_open in -lsqlite3" >&5
9985
8452
ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
9986
8453
 
9987
8454
ac_save_LIBS="$LIBS"
9988
8455
LIBS="-lsqlite3 $MATHLIB $LIBS"
9989
8456
cat > conftest.$ac_ext <<EOF
9990
 
#line 9991 "configure"
 
8457
#line 8458 "configure"
9991
8458
#include "confdefs.h"
9992
8459
/* Override any gcc2 internal prototype to avoid an error.  */
9993
8460
/* We use char because int might match the return type of a gcc2
9998
8465
sqlite3_open()
9999
8466
; return 0; }
10000
8467
EOF
10001
 
if { (eval echo configure:10002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8468
if { (eval echo configure:8469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10002
8469
  rm -rf conftest*
10003
8470
  eval "ac_cv_lib_$ac_lib_var=yes"
10004
8471
else
10017
8484
  echo "$ac_t""no" 1>&6
10018
8485
 
10019
8486
echo $ac_n "checking for sqlite3_open in -lsqlite3""... $ac_c" 1>&6
10020
 
echo "configure:10021: checking for sqlite3_open in -lsqlite3" >&5
 
8487
echo "configure:8488: checking for sqlite3_open in -lsqlite3" >&5
10021
8488
ac_lib_var=`echo sqlite3'_'sqlite3_open | sed 'y%./+-%__p_%'`
10022
8489
 
10023
8490
ac_save_LIBS="$LIBS"
10024
8491
LIBS="-lsqlite3 $MATHLIB $DLLIB $LIBS"
10025
8492
cat > conftest.$ac_ext <<EOF
10026
 
#line 10027 "configure"
 
8493
#line 8494 "configure"
10027
8494
#include "confdefs.h"
10028
8495
/* Override any gcc2 internal prototype to avoid an error.  */
10029
8496
/* We use char because int might match the return type of a gcc2
10034
8501
sqlite3_open()
10035
8502
; return 0; }
10036
8503
EOF
10037
 
if { (eval echo configure:10038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8504
if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10038
8505
  rm -rf conftest*
10039
8506
  eval "ac_cv_lib_$ac_lib_var=yes"
10040
8507
else
10098
8565
 
10099
8566
# Done checking SQLite
10100
8567
 
10101
 
 
10102
 
# Enable FFMPEG option
10103
 
 
10104
 
 
10105
 
echo $ac_n "checking whether to use FFMPEG""... $ac_c" 1>&6
10106
 
echo "configure:10107: checking whether to use FFMPEG" >&5
10107
 
echo "$ac_t"""$with_ffmpeg"" 1>&6
10108
 
case "$with_ffmpeg" in
10109
 
        "no")   USE_FFMPEG=     ;;
10110
 
        "yes")  USE_FFMPEG="1"  ;;
10111
 
        *)      { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; }       ;;
10112
 
esac
10113
 
 
10114
 
 
10115
 
 
10116
 
FFMPEGINCPATH=
10117
 
FFMPEGLIBPATH=
10118
 
FFMPEGLIB=
10119
 
 
10120
 
if test -n "$USE_FFMPEG"; then
10121
 
 
10122
 
# With FFMPEG includes directory
10123
 
 
10124
 
 
10125
 
echo $ac_n "checking for location of FFMPEG includes""... $ac_c" 1>&6
10126
 
echo "configure:10127: checking for location of FFMPEG includes" >&5
10127
 
case "$with_ffmpeg_includes" in
10128
 
y | ye | yes | n | no)
10129
 
        { echo "configure: error: *** You must supply a directory to --with-ffmpeg-includes." 1>&2; exit 1; }
10130
 
        ;;
10131
 
esac
10132
 
echo "$ac_t""$with_ffmpeg_includes" 1>&6
10133
 
 
10134
 
if test -n "$with_ffmpeg_includes" ; then
10135
 
    for dir in $with_ffmpeg_includes; do
10136
 
        if test -d "$dir"; then
10137
 
            FFMPEGINCPATH="$FFMPEGINCPATH -I$dir"
10138
 
        else
10139
 
            { echo "configure: error: *** FFMPEG includes directory $dir does not exist." 1>&2; exit 1; }
10140
 
        fi
10141
 
    done
10142
 
fi
10143
 
 
10144
 
 
10145
 
 
10146
 
ac_save_cppflags="$CPPFLAGS"
10147
 
CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
10148
 
for ac_hdr in avcodec.h
10149
 
do
10150
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10151
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10152
 
echo "configure:10153: checking for $ac_hdr" >&5
10153
 
 
10154
 
cat > conftest.$ac_ext <<EOF
10155
 
#line 10156 "configure"
10156
 
#include "confdefs.h"
10157
 
#include <$ac_hdr>
10158
 
EOF
10159
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10160
 
{ (eval echo configure:10161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10161
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10162
 
if test -z "$ac_err"; then
10163
 
  rm -rf conftest*
10164
 
  eval "ac_cv_header_$ac_safe=yes"
10165
 
else
10166
 
  echo "$ac_err" >&5
10167
 
  echo "configure: failed program was:" >&5
10168
 
  cat conftest.$ac_ext >&5
10169
 
  rm -rf conftest*
10170
 
  eval "ac_cv_header_$ac_safe=no"
10171
 
fi
10172
 
rm -f conftest*
10173
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10174
 
  echo "$ac_t""yes" 1>&6
10175
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10176
 
  cat >> confdefs.h <<EOF
10177
 
#define $ac_tr_hdr 1
10178
 
EOF
10179
 
 
10180
 
else
10181
 
  echo "$ac_t""no" 1>&6
10182
 
{ echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
10183
 
 
10184
 
fi
10185
 
done
10186
 
 
10187
 
CPPFLAGS=$ac_save_cppflags
10188
 
 
10189
 
 
10190
 
ac_save_cppflags="$CPPFLAGS"
10191
 
CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
10192
 
for ac_hdr in avformat.h
10193
 
do
10194
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10195
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10196
 
echo "configure:10197: checking for $ac_hdr" >&5
10197
 
 
10198
 
cat > conftest.$ac_ext <<EOF
10199
 
#line 10200 "configure"
10200
 
#include "confdefs.h"
10201
 
#include <$ac_hdr>
10202
 
EOF
10203
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10204
 
{ (eval echo configure:10205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10205
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10206
 
if test -z "$ac_err"; then
10207
 
  rm -rf conftest*
10208
 
  eval "ac_cv_header_$ac_safe=yes"
10209
 
else
10210
 
  echo "$ac_err" >&5
10211
 
  echo "configure: failed program was:" >&5
10212
 
  cat conftest.$ac_ext >&5
10213
 
  rm -rf conftest*
10214
 
  eval "ac_cv_header_$ac_safe=no"
10215
 
fi
10216
 
rm -f conftest*
10217
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10218
 
  echo "$ac_t""yes" 1>&6
10219
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10220
 
  cat >> confdefs.h <<EOF
10221
 
#define $ac_tr_hdr 1
10222
 
EOF
10223
 
 
10224
 
else
10225
 
  echo "$ac_t""no" 1>&6
10226
 
{ echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
10227
 
 
10228
 
fi
10229
 
done
10230
 
 
10231
 
CPPFLAGS=$ac_save_cppflags
10232
 
 
10233
 
 
10234
 
ac_save_cppflags="$CPPFLAGS"
10235
 
CPPFLAGS="$FFMPEGINCPATH $CPPFLAGS"
10236
 
for ac_hdr in swscale.h
10237
 
do
10238
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10239
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10240
 
echo "configure:10241: checking for $ac_hdr" >&5
10241
 
 
10242
 
cat > conftest.$ac_ext <<EOF
10243
 
#line 10244 "configure"
10244
 
#include "confdefs.h"
10245
 
#include <$ac_hdr>
10246
 
EOF
10247
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10248
 
{ (eval echo configure:10249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10249
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10250
 
if test -z "$ac_err"; then
10251
 
  rm -rf conftest*
10252
 
  eval "ac_cv_header_$ac_safe=yes"
10253
 
else
10254
 
  echo "$ac_err" >&5
10255
 
  echo "configure: failed program was:" >&5
10256
 
  cat conftest.$ac_ext >&5
10257
 
  rm -rf conftest*
10258
 
  eval "ac_cv_header_$ac_safe=no"
10259
 
fi
10260
 
rm -f conftest*
10261
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10262
 
  echo "$ac_t""yes" 1>&6
10263
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10264
 
  cat >> confdefs.h <<EOF
10265
 
#define $ac_tr_hdr 1
10266
 
EOF
10267
 
 
10268
 
else
10269
 
  echo "$ac_t""no" 1>&6
10270
 
{ echo "configure: error: *** Unable to locate FFMPEG includes." 1>&2; exit 1; }
10271
 
 
10272
 
fi
10273
 
done
10274
 
 
10275
 
CPPFLAGS=$ac_save_cppflags
10276
 
 
10277
 
 
10278
 
cat >> confdefs.h <<\EOF
10279
 
#define HAVE_FFMPEG 1
10280
 
EOF
10281
 
 
10282
 
 
10283
 
fi # $USE_FFMPEG
10284
 
 
10285
 
if test -n "$USE_FFMPEG"; then
10286
 
 
10287
 
# With FFMPEG library directory
10288
 
 
10289
 
 
10290
 
echo $ac_n "checking for location of FFMPEG library""... $ac_c" 1>&6
10291
 
echo "configure:10292: checking for location of FFMPEG library" >&5
10292
 
case "$with_ffmpeg_libs" in
10293
 
y | ye | yes | n | no)
10294
 
        { echo "configure: error: *** You must supply a directory to --with-ffmpeg-libs." 1>&2; exit 1; }
10295
 
        ;;
10296
 
esac
10297
 
echo "$ac_t""$with_ffmpeg_libs" 1>&6
10298
 
 
10299
 
if test -n "$with_ffmpeg_libs"; then
10300
 
    for dir in $with_ffmpeg_libs; do
10301
 
        if test -d "$dir"; then
10302
 
            FFMPEGLIBPATH="$FFMPEGLIBPATH -L$dir"
10303
 
        else
10304
 
            { echo "configure: error: *** FFMPEG library directory $dir does not exist." 1>&2; exit 1; }
10305
 
        fi
10306
 
    done
10307
 
fi
10308
 
 
10309
 
 
10310
 
 
10311
 
ac_save_ldflags="$LDFLAGS"
10312
 
LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
10313
 
 
10314
 
 
10315
 
 
10316
 
 
10317
 
echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
10318
 
echo "configure:10319: checking for av_free in -lavutil" >&5
10319
 
ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
10320
 
 
10321
 
ac_save_LIBS="$LIBS"
10322
 
LIBS="-lavutil  $LIBS"
10323
 
cat > conftest.$ac_ext <<EOF
10324
 
#line 10325 "configure"
10325
 
#include "confdefs.h"
10326
 
/* Override any gcc2 internal prototype to avoid an error.  */
10327
 
/* We use char because int might match the return type of a gcc2
10328
 
    builtin and then its argument prototype would still apply.  */
10329
 
char av_free();
10330
 
 
10331
 
int main() {
10332
 
av_free()
10333
 
; return 0; }
10334
 
EOF
10335
 
if { (eval echo configure:10336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10336
 
  rm -rf conftest*
10337
 
  eval "ac_cv_lib_$ac_lib_var=yes"
10338
 
else
10339
 
  echo "configure: failed program was:" >&5
10340
 
  cat conftest.$ac_ext >&5
10341
 
  rm -rf conftest*
10342
 
  eval "ac_cv_lib_$ac_lib_var=no"
10343
 
fi
10344
 
rm -f conftest*
10345
 
LIBS="$ac_save_LIBS"
10346
 
 
10347
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10348
 
  echo "$ac_t""yes" 1>&6
10349
 
  FFMPEGLIB="$FFMPEGLIB -lavutil "
10350
 
else
10351
 
  echo "$ac_t""no" 1>&6
10352
 
 
10353
 
echo $ac_n "checking for av_free in -lavutil""... $ac_c" 1>&6
10354
 
echo "configure:10355: checking for av_free in -lavutil" >&5
10355
 
ac_lib_var=`echo avutil'_'av_free | sed 'y%./+-%__p_%'`
10356
 
 
10357
 
ac_save_LIBS="$LIBS"
10358
 
LIBS="-lavutil $MATHLIB $LIBS"
10359
 
cat > conftest.$ac_ext <<EOF
10360
 
#line 10361 "configure"
10361
 
#include "confdefs.h"
10362
 
/* Override any gcc2 internal prototype to avoid an error.  */
10363
 
/* We use char because int might match the return type of a gcc2
10364
 
    builtin and then its argument prototype would still apply.  */
10365
 
char av_free();
10366
 
 
10367
 
int main() {
10368
 
av_free()
10369
 
; return 0; }
10370
 
EOF
10371
 
if { (eval echo configure:10372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10372
 
  rm -rf conftest*
10373
 
  eval "ac_cv_lib_$ac_lib_var=yes"
10374
 
else
10375
 
  echo "configure: failed program was:" >&5
10376
 
  cat conftest.$ac_ext >&5
10377
 
  rm -rf conftest*
10378
 
  eval "ac_cv_lib_$ac_lib_var=no"
10379
 
fi
10380
 
rm -f conftest*
10381
 
LIBS="$ac_save_LIBS"
10382
 
 
10383
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10384
 
  echo "$ac_t""yes" 1>&6
10385
 
  FFMPEGLIB="$FFMPEGLIB -lavutil $MATHLIB"
10386
 
else
10387
 
  echo "$ac_t""no" 1>&6
10388
 
 
10389
 
LDFLAGS=${ac_save_ldflags}
10390
 
 
10391
 
    { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
10392
 
 
10393
 
 
10394
 
fi
10395
 
 
10396
 
 
10397
 
 
10398
 
 
10399
 
fi
10400
 
 
10401
 
 
10402
 
 
10403
 
 
10404
 
 
10405
 
 
10406
 
LDFLAGS=${ac_save_ldflags}
10407
 
 
10408
 
 
10409
 
ac_save_ldflags="$LDFLAGS"
10410
 
LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
10411
 
 
10412
 
 
10413
 
 
10414
 
 
10415
 
echo $ac_n "checking for avcodec_register in -lavcodec""... $ac_c" 1>&6
10416
 
echo "configure:10417: checking for avcodec_register in -lavcodec" >&5
10417
 
ac_lib_var=`echo avcodec'_'avcodec_register | sed 'y%./+-%__p_%'`
10418
 
 
10419
 
ac_save_LIBS="$LIBS"
10420
 
LIBS="-lavcodec $FFMPEGLIB  $LIBS"
10421
 
cat > conftest.$ac_ext <<EOF
10422
 
#line 10423 "configure"
10423
 
#include "confdefs.h"
10424
 
/* Override any gcc2 internal prototype to avoid an error.  */
10425
 
/* We use char because int might match the return type of a gcc2
10426
 
    builtin and then its argument prototype would still apply.  */
10427
 
char avcodec_register();
10428
 
 
10429
 
int main() {
10430
 
avcodec_register()
10431
 
; return 0; }
10432
 
EOF
10433
 
if { (eval echo configure:10434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10434
 
  rm -rf conftest*
10435
 
  eval "ac_cv_lib_$ac_lib_var=yes"
10436
 
else
10437
 
  echo "configure: failed program was:" >&5
10438
 
  cat conftest.$ac_ext >&5
10439
 
  rm -rf conftest*
10440
 
  eval "ac_cv_lib_$ac_lib_var=no"
10441
 
fi
10442
 
rm -f conftest*
10443
 
LIBS="$ac_save_LIBS"
10444
 
 
10445
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10446
 
  echo "$ac_t""yes" 1>&6
10447
 
  FFMPEGLIB="$FFMPEGLIB -lavcodec "
10448
 
else
10449
 
  echo "$ac_t""no" 1>&6
10450
 
 
10451
 
echo $ac_n "checking for avcodec_register in -lavcodec""... $ac_c" 1>&6
10452
 
echo "configure:10453: checking for avcodec_register in -lavcodec" >&5
10453
 
ac_lib_var=`echo avcodec'_'avcodec_register | sed 'y%./+-%__p_%'`
10454
 
 
10455
 
ac_save_LIBS="$LIBS"
10456
 
LIBS="-lavcodec $FFMPEGLIB $MATHLIB $LIBS"
10457
 
cat > conftest.$ac_ext <<EOF
10458
 
#line 10459 "configure"
10459
 
#include "confdefs.h"
10460
 
/* Override any gcc2 internal prototype to avoid an error.  */
10461
 
/* We use char because int might match the return type of a gcc2
10462
 
    builtin and then its argument prototype would still apply.  */
10463
 
char avcodec_register();
10464
 
 
10465
 
int main() {
10466
 
avcodec_register()
10467
 
; return 0; }
10468
 
EOF
10469
 
if { (eval echo configure:10470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10470
 
  rm -rf conftest*
10471
 
  eval "ac_cv_lib_$ac_lib_var=yes"
10472
 
else
10473
 
  echo "configure: failed program was:" >&5
10474
 
  cat conftest.$ac_ext >&5
10475
 
  rm -rf conftest*
10476
 
  eval "ac_cv_lib_$ac_lib_var=no"
10477
 
fi
10478
 
rm -f conftest*
10479
 
LIBS="$ac_save_LIBS"
10480
 
 
10481
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10482
 
  echo "$ac_t""yes" 1>&6
10483
 
  FFMPEGLIB="$FFMPEGLIB -lavcodec $MATHLIB"
10484
 
else
10485
 
  echo "$ac_t""no" 1>&6
10486
 
 
10487
 
LDFLAGS=${ac_save_ldflags}
10488
 
 
10489
 
    { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
10490
 
 
10491
 
 
10492
 
fi
10493
 
 
10494
 
 
10495
 
 
10496
 
 
10497
 
fi
10498
 
 
10499
 
 
10500
 
 
10501
 
 
10502
 
 
10503
 
 
10504
 
LDFLAGS=${ac_save_ldflags}
10505
 
 
10506
 
 
10507
 
ac_save_ldflags="$LDFLAGS"
10508
 
LDFLAGS="$FFMPEGLIBPATH $LDFLAGS"
10509
 
 
10510
 
 
10511
 
 
10512
 
 
10513
 
echo $ac_n "checking for avformat_alloc_context in -lavformat""... $ac_c" 1>&6
10514
 
echo "configure:10515: checking for avformat_alloc_context in -lavformat" >&5
10515
 
ac_lib_var=`echo avformat'_'avformat_alloc_context | sed 'y%./+-%__p_%'`
10516
 
 
10517
 
ac_save_LIBS="$LIBS"
10518
 
LIBS="-lavformat $FFMPEGLIB  $LIBS"
10519
 
cat > conftest.$ac_ext <<EOF
10520
 
#line 10521 "configure"
10521
 
#include "confdefs.h"
10522
 
/* Override any gcc2 internal prototype to avoid an error.  */
10523
 
/* We use char because int might match the return type of a gcc2
10524
 
    builtin and then its argument prototype would still apply.  */
10525
 
char avformat_alloc_context();
10526
 
 
10527
 
int main() {
10528
 
avformat_alloc_context()
10529
 
; return 0; }
10530
 
EOF
10531
 
if { (eval echo configure:10532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10532
 
  rm -rf conftest*
10533
 
  eval "ac_cv_lib_$ac_lib_var=yes"
10534
 
else
10535
 
  echo "configure: failed program was:" >&5
10536
 
  cat conftest.$ac_ext >&5
10537
 
  rm -rf conftest*
10538
 
  eval "ac_cv_lib_$ac_lib_var=no"
10539
 
fi
10540
 
rm -f conftest*
10541
 
LIBS="$ac_save_LIBS"
10542
 
 
10543
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10544
 
  echo "$ac_t""yes" 1>&6
10545
 
  FFMPEGLIB="$FFMPEGLIB -lavformat "
10546
 
else
10547
 
  echo "$ac_t""no" 1>&6
10548
 
 
10549
 
echo $ac_n "checking for avformat_alloc_context in -lavformat""... $ac_c" 1>&6
10550
 
echo "configure:10551: checking for avformat_alloc_context in -lavformat" >&5
10551
 
ac_lib_var=`echo avformat'_'avformat_alloc_context | sed 'y%./+-%__p_%'`
10552
 
 
10553
 
ac_save_LIBS="$LIBS"
10554
 
LIBS="-lavformat $FFMPEGLIB $MATHLIB $LIBS"
10555
 
cat > conftest.$ac_ext <<EOF
10556
 
#line 10557 "configure"
10557
 
#include "confdefs.h"
10558
 
/* Override any gcc2 internal prototype to avoid an error.  */
10559
 
/* We use char because int might match the return type of a gcc2
10560
 
    builtin and then its argument prototype would still apply.  */
10561
 
char avformat_alloc_context();
10562
 
 
10563
 
int main() {
10564
 
avformat_alloc_context()
10565
 
; return 0; }
10566
 
EOF
10567
 
if { (eval echo configure:10568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10568
 
  rm -rf conftest*
10569
 
  eval "ac_cv_lib_$ac_lib_var=yes"
10570
 
else
10571
 
  echo "configure: failed program was:" >&5
10572
 
  cat conftest.$ac_ext >&5
10573
 
  rm -rf conftest*
10574
 
  eval "ac_cv_lib_$ac_lib_var=no"
10575
 
fi
10576
 
rm -f conftest*
10577
 
LIBS="$ac_save_LIBS"
10578
 
 
10579
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10580
 
  echo "$ac_t""yes" 1>&6
10581
 
  FFMPEGLIB="$FFMPEGLIB -lavformat $MATHLIB"
10582
 
else
10583
 
  echo "$ac_t""no" 1>&6
10584
 
 
10585
 
LDFLAGS=${ac_save_ldflags}
10586
 
 
10587
 
    { echo "configure: error: *** Unable to locate FFMPEG library." 1>&2; exit 1; }
10588
 
 
10589
 
 
10590
 
fi
10591
 
 
10592
 
 
10593
 
 
10594
 
 
10595
 
fi
10596
 
 
10597
 
 
10598
 
 
10599
 
 
10600
 
 
10601
 
 
10602
 
LDFLAGS=${ac_save_ldflags}
10603
 
 
10604
 
 
10605
 
fi # $USE_FFMPEG
10606
 
 
10607
 
 
10608
 
 
10609
 
 
10610
 
 
10611
 
 
10612
 
 
10613
 
# Done checking FFMPEG
10614
 
 
10615
8568
# Enable OpenGL option
10616
8569
 
10617
8570
OPENGLINC=
10623
8576
OPENGL_WINDOWS=
10624
8577
 
10625
8578
echo $ac_n "checking whether to use OpenGL""... $ac_c" 1>&6
10626
 
echo "configure:10627: checking whether to use OpenGL" >&5
 
8579
echo "configure:8580: checking whether to use OpenGL" >&5
10627
8580
echo "$ac_t"""$with_opengl"" 1>&6
10628
8581
case "$with_opengl" in
10629
8582
        n|no)
10657
8610
 
10658
8611
 
10659
8612
echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
10660
 
echo "configure:10661: checking for location of OpenGL includes" >&5
 
8613
echo "configure:8614: checking for location of OpenGL includes" >&5
10661
8614
case "$with_opengl_includes" in
10662
8615
y | ye | yes | n | no)
10663
8616
        { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
10683
8636
do
10684
8637
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10685
8638
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10686
 
echo "configure:10687: checking for $ac_hdr" >&5
 
8639
echo "configure:8640: checking for $ac_hdr" >&5
10687
8640
 
10688
8641
cat > conftest.$ac_ext <<EOF
10689
 
#line 10690 "configure"
 
8642
#line 8643 "configure"
10690
8643
#include "confdefs.h"
10691
8644
#include <$ac_hdr>
10692
8645
EOF
10693
8646
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10694
 
{ (eval echo configure:10695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
8647
{ (eval echo configure:8648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10695
8648
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10696
8649
if test -z "$ac_err"; then
10697
8650
  rm -rf conftest*
10725
8678
 
10726
8679
 
10727
8680
echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
10728
 
echo "configure:10729: checking for location of OpenGL library" >&5
 
8681
echo "configure:8682: checking for location of OpenGL library" >&5
10729
8682
case "$with_opengl_libs" in
10730
8683
y | ye | yes | n | no)
10731
8684
        { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
10754
8707
 
10755
8708
 
10756
8709
echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
10757
 
echo "configure:10758: checking for glBegin in -lGL" >&5
 
8710
echo "configure:8711: checking for glBegin in -lGL" >&5
10758
8711
ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
10759
8712
 
10760
8713
ac_save_LIBS="$LIBS"
10761
8714
LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
10762
8715
cat > conftest.$ac_ext <<EOF
10763
 
#line 10764 "configure"
 
8716
#line 8717 "configure"
10764
8717
#include "confdefs.h"
10765
8718
/* Override any gcc2 internal prototype to avoid an error.  */
10766
8719
/* We use char because int might match the return type of a gcc2
10771
8724
glBegin()
10772
8725
; return 0; }
10773
8726
EOF
10774
 
if { (eval echo configure:10775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8727
if { (eval echo configure:8728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10775
8728
  rm -rf conftest*
10776
8729
  eval "ac_cv_lib_$ac_lib_var=yes"
10777
8730
else
10790
8743
  echo "$ac_t""no" 1>&6
10791
8744
 
10792
8745
echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
10793
 
echo "configure:10794: checking for glBegin in -lGL" >&5
 
8746
echo "configure:8747: checking for glBegin in -lGL" >&5
10794
8747
ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
10795
8748
 
10796
8749
ac_save_LIBS="$LIBS"
10797
8750
LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lXext $LIBS"
10798
8751
cat > conftest.$ac_ext <<EOF
10799
 
#line 10800 "configure"
 
8752
#line 8753 "configure"
10800
8753
#include "confdefs.h"
10801
8754
/* Override any gcc2 internal prototype to avoid an error.  */
10802
8755
/* We use char because int might match the return type of a gcc2
10807
8760
glBegin()
10808
8761
; return 0; }
10809
8762
EOF
10810
 
if { (eval echo configure:10811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8763
if { (eval echo configure:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10811
8764
  rm -rf conftest*
10812
8765
  eval "ac_cv_lib_$ac_lib_var=yes"
10813
8766
else
10826
8779
  echo "$ac_t""no" 1>&6
10827
8780
 
10828
8781
echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
10829
 
echo "configure:10830: checking for glBegin in -lGL" >&5
 
8782
echo "configure:8783: checking for glBegin in -lGL" >&5
10830
8783
ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
10831
8784
 
10832
8785
ac_save_LIBS="$LIBS"
10833
8786
LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread $LIBS"
10834
8787
cat > conftest.$ac_ext <<EOF
10835
 
#line 10836 "configure"
 
8788
#line 8789 "configure"
10836
8789
#include "confdefs.h"
10837
8790
/* Override any gcc2 internal prototype to avoid an error.  */
10838
8791
/* We use char because int might match the return type of a gcc2
10843
8796
glBegin()
10844
8797
; return 0; }
10845
8798
EOF
10846
 
if { (eval echo configure:10847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8799
if { (eval echo configure:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10847
8800
  rm -rf conftest*
10848
8801
  eval "ac_cv_lib_$ac_lib_var=yes"
10849
8802
else
10862
8815
  echo "$ac_t""no" 1>&6
10863
8816
 
10864
8817
echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
10865
 
echo "configure:10866: checking for glBegin in -lGL" >&5
 
8818
echo "configure:8819: checking for glBegin in -lGL" >&5
10866
8819
ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
10867
8820
 
10868
8821
ac_save_LIBS="$LIBS"
10869
8822
LIBS="-lGL $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lpthread -lXext $LIBS"
10870
8823
cat > conftest.$ac_ext <<EOF
10871
 
#line 10872 "configure"
 
8824
#line 8825 "configure"
10872
8825
#include "confdefs.h"
10873
8826
/* Override any gcc2 internal prototype to avoid an error.  */
10874
8827
/* We use char because int might match the return type of a gcc2
10879
8832
glBegin()
10880
8833
; return 0; }
10881
8834
EOF
10882
 
if { (eval echo configure:10883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8835
if { (eval echo configure:8836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10883
8836
  rm -rf conftest*
10884
8837
  eval "ac_cv_lib_$ac_lib_var=yes"
10885
8838
else
10941
8894
 
10942
8895
 
10943
8896
echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
10944
 
echo "configure:10945: checking for gluBeginCurve in -lGLU" >&5
 
8897
echo "configure:8898: checking for gluBeginCurve in -lGLU" >&5
10945
8898
ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
10946
8899
 
10947
8900
ac_save_LIBS="$LIBS"
10948
8901
LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
10949
8902
cat > conftest.$ac_ext <<EOF
10950
 
#line 10951 "configure"
 
8903
#line 8904 "configure"
10951
8904
#include "confdefs.h"
10952
8905
/* Override any gcc2 internal prototype to avoid an error.  */
10953
8906
/* We use char because int might match the return type of a gcc2
10958
8911
gluBeginCurve()
10959
8912
; return 0; }
10960
8913
EOF
10961
 
if { (eval echo configure:10962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8914
if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10962
8915
  rm -rf conftest*
10963
8916
  eval "ac_cv_lib_$ac_lib_var=yes"
10964
8917
else
10977
8930
  echo "$ac_t""no" 1>&6
10978
8931
 
10979
8932
echo $ac_n "checking for gluBeginCurve in -lGLU""... $ac_c" 1>&6
10980
 
echo "configure:10981: checking for gluBeginCurve in -lGLU" >&5
 
8933
echo "configure:8934: checking for gluBeginCurve in -lGLU" >&5
10981
8934
ac_lib_var=`echo GLU'_'gluBeginCurve | sed 'y%./+-%__p_%'`
10982
8935
 
10983
8936
ac_save_LIBS="$LIBS"
10984
8937
LIBS="-lGLU $OPENGLLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB -lstdc++ $LIBS"
10985
8938
cat > conftest.$ac_ext <<EOF
10986
 
#line 10987 "configure"
 
8939
#line 8940 "configure"
10987
8940
#include "confdefs.h"
10988
8941
/* Override any gcc2 internal prototype to avoid an error.  */
10989
8942
/* We use char because int might match the return type of a gcc2
10994
8947
gluBeginCurve()
10995
8948
; return 0; }
10996
8949
EOF
10997
 
if { (eval echo configure:10998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
8950
if { (eval echo configure:8951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10998
8951
  rm -rf conftest*
10999
8952
  eval "ac_cv_lib_$ac_lib_var=yes"
11000
8953
else
11035
8988
OPENGLLIB="$OPENGL_LIB_PATH $OPENGLLIB"
11036
8989
OPENGLULIB="$OPENGL_LIB_PATH $OPENGLULIB"
11037
8990
 
 
8991
 
 
8992
ac_save_libs="$LIBS"
11038
8993
ac_save_ldflags="$LDFLAGS"
11039
 
LDFLAGS="$LDFLAGS $OPENGLLIB"
 
8994
LIBS=" $OPENGLLIB $LIBS"
 
8995
LDFLAGS=" $LDFLAGS"
11040
8996
echo $ac_n "checking for glXCreatePbuffer""... $ac_c" 1>&6
11041
 
echo "configure:11042: checking for glXCreatePbuffer" >&5
 
8997
echo "configure:8998: checking for glXCreatePbuffer" >&5
11042
8998
 
11043
8999
cat > conftest.$ac_ext <<EOF
11044
 
#line 11045 "configure"
 
9000
#line 9001 "configure"
11045
9001
#include "confdefs.h"
11046
9002
/* System header to define __stub macros and hopefully few prototypes,
11047
9003
    which can conflict with char glXCreatePbuffer(); below.  */
11064
9020
 
11065
9021
; return 0; }
11066
9022
EOF
11067
 
if { (eval echo configure:11068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
9023
if { (eval echo configure:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11068
9024
  rm -rf conftest*
11069
9025
  eval "ac_cv_func_glXCreatePbuffer=yes"
11070
9026
else
11077
9033
 
11078
9034
if eval "test \"`echo '$ac_cv_func_'glXCreatePbuffer`\" = yes"; then
11079
9035
  echo "$ac_t""yes" 1>&6
11080
 
  cat >> confdefs.h <<\EOF
 
9036
  
 
9037
cat >> confdefs.h <<\EOF
11081
9038
#define HAVE_PBUFFERS 1
11082
9039
EOF
11083
9040
 
 
9041
 
11084
9042
else
11085
9043
  echo "$ac_t""no" 1>&6
 
9044
 
 
9045
 
 
9046
{ echo "configure: error: *** Unable to locate glXCreatePbuffer." 1>&2; exit 1; }
 
9047
 
 
9048
 
11086
9049
fi
11087
9050
 
 
9051
LIBS=${ac_save_libs}
 
9052
LDFLAGS=${ac_save_ldflags}
 
9053
 
 
9054
 
 
9055
ac_save_libs="$LIBS"
 
9056
ac_save_ldflags="$LDFLAGS"
 
9057
LIBS=" $OPENGLLIB $LIBS"
 
9058
LDFLAGS=" $LDFLAGS"
11088
9059
echo $ac_n "checking for glXCreateGLXPixmap""... $ac_c" 1>&6
11089
 
echo "configure:11090: checking for glXCreateGLXPixmap" >&5
 
9060
echo "configure:9061: checking for glXCreateGLXPixmap" >&5
11090
9061
 
11091
9062
cat > conftest.$ac_ext <<EOF
11092
 
#line 11093 "configure"
 
9063
#line 9064 "configure"
11093
9064
#include "confdefs.h"
11094
9065
/* System header to define __stub macros and hopefully few prototypes,
11095
9066
    which can conflict with char glXCreateGLXPixmap(); below.  */
11112
9083
 
11113
9084
; return 0; }
11114
9085
EOF
11115
 
if { (eval echo configure:11116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
9086
if { (eval echo configure:9087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11116
9087
  rm -rf conftest*
11117
9088
  eval "ac_cv_func_glXCreateGLXPixmap=yes"
11118
9089
else
11125
9096
 
11126
9097
if eval "test \"`echo '$ac_cv_func_'glXCreateGLXPixmap`\" = yes"; then
11127
9098
  echo "$ac_t""yes" 1>&6
11128
 
  cat >> confdefs.h <<\EOF
 
9099
  
 
9100
cat >> confdefs.h <<\EOF
11129
9101
#define HAVE_PIXMAPS 1
11130
9102
EOF
11131
9103
 
 
9104
 
11132
9105
else
11133
9106
  echo "$ac_t""no" 1>&6
 
9107
 
 
9108
 
 
9109
{ echo "configure: error: *** Unable to locate glXCreateGLXPixmap." 1>&2; exit 1; }
 
9110
 
 
9111
 
11134
9112
fi
11135
9113
 
11136
 
LDFLAGS="${ac_save_ldflags}"
 
9114
LIBS=${ac_save_libs}
 
9115
LDFLAGS=${ac_save_ldflags}
 
9116
 
11137
9117
 
11138
9118
cat >> confdefs.h <<\EOF
11139
9119
#define OPENGL_X11 1
11144
9124
 
11145
9125
if test "$OPENGL_AQUA" = 1 ; then
11146
9126
 
11147
 
with_opengl_includes=/System/Library/Frameworks/OpenGL.framework/Headers
11148
 
with_opengl_libs="-framework OpenGL -framework AGL -framework ApplicationServices"
11149
 
 
11150
 
# With OpenGL includes directory
11151
 
 
11152
 
 
11153
 
echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
11154
 
echo "configure:11155: checking for location of OpenGL includes" >&5
11155
 
case "$with_opengl_includes" in
 
9127
 
 
9128
echo $ac_n "checking for location of OpenGL framework""... $ac_c" 1>&6
 
9129
echo "configure:9130: checking for location of OpenGL framework" >&5
 
9130
case "$with_opengl_framework" in
11156
9131
y | ye | yes | n | no)
11157
 
        { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
 
9132
        { echo "configure: error: *** You must supply a directory to --with-opengl-framework." 1>&2; exit 1; }
11158
9133
        ;;
11159
9134
esac
11160
 
echo "$ac_t""$with_opengl_includes" 1>&6
 
9135
echo "$ac_t""$with_opengl_framework" 1>&6
11161
9136
 
11162
 
if test -n "$with_opengl_includes" ; then
11163
 
    for dir in $with_opengl_includes; do
11164
 
        if test -d "$dir"; then
11165
 
            OPENGLINC="$OPENGLINC -I$dir"
11166
 
        else
11167
 
            { echo "configure: error: *** OpenGL includes directory $dir does not exist." 1>&2; exit 1; }
11168
 
        fi
11169
 
    done
 
9137
if test -n "$with_opengl_framework"; then
 
9138
    if test -d $with_opengl_framework; then
 
9139
        OPENGLPATH="$OPENGLPATH -F$with_opengl_framework"
 
9140
    else
 
9141
        { echo "configure: error: *** OpenGL framework directory $dir does not exist." 1>&2; exit 1; }
 
9142
    fi
11170
9143
fi
11171
9144
 
11172
9145
 
11173
9146
 
11174
9147
ac_save_cppflags="$CPPFLAGS"
11175
 
CPPFLAGS="$OPENGLINC $CPPFLAGS"
 
9148
CPPFLAGS="$OPENGLPATH $CPPFLAGS"
11176
9149
for ac_hdr in OpenGL/gl.h OpenGL/glu.h
11177
9150
do
11178
9151
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11179
9152
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11180
 
echo "configure:11181: checking for $ac_hdr" >&5
 
9153
echo "configure:9154: checking for $ac_hdr" >&5
11181
9154
 
11182
9155
cat > conftest.$ac_ext <<EOF
11183
 
#line 11184 "configure"
 
9156
#line 9157 "configure"
11184
9157
#include "confdefs.h"
11185
9158
#include <$ac_hdr>
11186
9159
EOF
11187
9160
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11188
 
{ (eval echo configure:11189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
9161
{ (eval echo configure:9162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11189
9162
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11190
9163
if test -z "$ac_err"; then
11191
9164
  rm -rf conftest*
11215
9188
CPPFLAGS=$ac_save_cppflags
11216
9189
 
11217
9190
 
11218
 
# With OpenGL library directory
11219
9191
 
 
9192
ac_save_libs="$LIBS"
11220
9193
ac_save_ldflags="$LDFLAGS"
11221
 
LDFLAGS="$with_opengl_libs $LDFLAGS"
 
9194
LIBS="-framework OpenGL -framework AGL -framework ApplicationServices  $LIBS"
 
9195
LDFLAGS="$OPENGLPATH $LDFLAGS"
11222
9196
echo $ac_n "checking for glBegin""... $ac_c" 1>&6
11223
 
echo "configure:11224: checking for glBegin" >&5
 
9197
echo "configure:9198: checking for glBegin" >&5
11224
9198
 
11225
9199
cat > conftest.$ac_ext <<EOF
11226
 
#line 11227 "configure"
 
9200
#line 9201 "configure"
11227
9201
#include "confdefs.h"
11228
9202
/* System header to define __stub macros and hopefully few prototypes,
11229
9203
    which can conflict with char glBegin(); below.  */
11246
9220
 
11247
9221
; return 0; }
11248
9222
EOF
11249
 
if { (eval echo configure:11250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
9223
if { (eval echo configure:9224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11250
9224
  rm -rf conftest*
11251
9225
  eval "ac_cv_func_glBegin=yes"
11252
9226
else
11260
9234
if eval "test \"`echo '$ac_cv_func_'glBegin`\" = yes"; then
11261
9235
  echo "$ac_t""yes" 1>&6
11262
9236
  
 
9237
 
 
9238
    OPENGLLIB="$OPENGLLIB -framework OpenGL -framework AGL -framework ApplicationServices"
 
9239
 
 
9240
 
 
9241
else
 
9242
  echo "$ac_t""no" 1>&6
 
9243
 
 
9244
 
 
9245
{ echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
 
9246
 
 
9247
 
 
9248
 
 
9249
fi
 
9250
 
 
9251
LIBS=${ac_save_libs}
 
9252
LDFLAGS=${ac_save_ldflags}
 
9253
 
 
9254
 
 
9255
ac_save_libs="$LIBS"
 
9256
ac_save_ldflags="$LDFLAGS"
 
9257
LIBS=" $OPENGLLIB $LIBS"
 
9258
LDFLAGS="$OPENGLPATH $LDFLAGS"
11263
9259
echo $ac_n "checking for gluBeginCurve""... $ac_c" 1>&6
11264
 
echo "configure:11265: checking for gluBeginCurve" >&5
 
9260
echo "configure:9261: checking for gluBeginCurve" >&5
11265
9261
 
11266
9262
cat > conftest.$ac_ext <<EOF
11267
 
#line 11268 "configure"
 
9263
#line 9264 "configure"
11268
9264
#include "confdefs.h"
11269
9265
/* System header to define __stub macros and hopefully few prototypes,
11270
9266
    which can conflict with char gluBeginCurve(); below.  */
11287
9283
 
11288
9284
; return 0; }
11289
9285
EOF
11290
 
if { (eval echo configure:11291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
9286
if { (eval echo configure:9287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11291
9287
  rm -rf conftest*
11292
9288
  eval "ac_cv_func_gluBeginCurve=yes"
11293
9289
else
11301
9297
if eval "test \"`echo '$ac_cv_func_'gluBeginCurve`\" = yes"; then
11302
9298
  echo "$ac_t""yes" 1>&6
11303
9299
  
11304
 
OPENGLLIB="$with_opengl_libs"
11305
 
USE_OPENGL=1
11306
 
OPENGL_AQUA=1
 
9300
 
 
9301
    OPENGLLIB="$OPENGLLIB "
 
9302
 
11307
9303
 
11308
9304
else
11309
9305
  echo "$ac_t""no" 1>&6
 
9306
 
 
9307
 
11310
9308
{ echo "configure: error: *** Unable to locate GLU library." 1>&2; exit 1; }
11311
 
fi
11312
 
 
11313
 
 
11314
 
else
11315
 
  echo "$ac_t""no" 1>&6
11316
 
{ echo "configure: error: *** Unable to locate OpenGL library." 1>&2; exit 1; }
11317
 
fi
11318
 
 
11319
 
LDFLAGS="${ac_save_ldflags}"
 
9309
 
 
9310
 
 
9311
 
 
9312
fi
 
9313
 
 
9314
LIBS=${ac_save_libs}
 
9315
LDFLAGS=${ac_save_ldflags}
 
9316
 
 
9317
 
 
9318
OPENGLINC="$OPENGLPATH"
 
9319
OPENGLLIBPATH="$OPENGLPATH"
11320
9320
 
11321
9321
cat >> confdefs.h <<\EOF
11322
9322
#define OPENGL_AQUA 1
11331
9331
 
11332
9332
 
11333
9333
echo $ac_n "checking for location of OpenGL includes""... $ac_c" 1>&6
11334
 
echo "configure:11335: checking for location of OpenGL includes" >&5
 
9334
echo "configure:9335: checking for location of OpenGL includes" >&5
11335
9335
case "$with_opengl_includes" in
11336
9336
y | ye | yes | n | no)
11337
9337
        { echo "configure: error: *** You must supply a directory to --with-opengl-includes." 1>&2; exit 1; }
11357
9357
do
11358
9358
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11359
9359
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11360
 
echo "configure:11361: checking for $ac_hdr" >&5
 
9360
echo "configure:9361: checking for $ac_hdr" >&5
11361
9361
 
11362
9362
cat > conftest.$ac_ext <<EOF
11363
 
#line 11364 "configure"
 
9363
#line 9364 "configure"
11364
9364
#include "confdefs.h"
11365
9365
#include <$ac_hdr>
11366
9366
EOF
11367
9367
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11368
 
{ (eval echo configure:11369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
9368
{ (eval echo configure:9369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11369
9369
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11370
9370
if test -z "$ac_err"; then
11371
9371
  rm -rf conftest*
11399
9399
 
11400
9400
 
11401
9401
echo $ac_n "checking for location of OpenGL library""... $ac_c" 1>&6
11402
 
echo "configure:11403: checking for location of OpenGL library" >&5
 
9402
echo "configure:9403: checking for location of OpenGL library" >&5
11403
9403
case "$with_opengl_libs" in
11404
9404
y | ye | yes | n | no)
11405
9405
        { echo "configure: error: *** You must supply a directory to --with-opengl-libs." 1>&2; exit 1; }
11424
9424
ac_save_ldflags="$LDFLAGS"
11425
9425
ac_save_libs="$LIBS"
11426
9426
echo $ac_n "checking for OpenGL library""... $ac_c" 1>&6
11427
 
echo "configure:11428: checking for OpenGL library" >&5
 
9427
echo "configure:9428: checking for OpenGL library" >&5
11428
9428
LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
11429
9429
LIBS="-lopengl32  "
11430
9430
cat > conftest.$ac_ext <<EOF
11431
 
#line 11432 "configure"
 
9431
#line 9432 "configure"
11432
9432
#include "confdefs.h"
11433
9433
#include <GL/gl.h>
11434
9434
int main() {
11435
9435
glEnd();
11436
9436
; return 0; }
11437
9437
EOF
11438
 
if { (eval echo configure:11439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
9438
if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11439
9439
  rm -rf conftest*
11440
9440
  
11441
9441
echo "$ac_t""found" 1>&6
11459
9459
ac_save_ldflags="$LDFLAGS"
11460
9460
ac_save_libs="$LIBS"
11461
9461
echo $ac_n "checking for GLU library""... $ac_c" 1>&6
11462
 
echo "configure:11463: checking for GLU library" >&5
 
9462
echo "configure:9463: checking for GLU library" >&5
11463
9463
LDFLAGS="$OPENGL_LIB_PATH $LDFLAGS"
11464
9464
LIBS="-lglu32 $OPENGLLIB "
11465
9465
cat > conftest.$ac_ext <<EOF
11466
 
#line 11467 "configure"
 
9466
#line 9467 "configure"
11467
9467
#include "confdefs.h"
11468
9468
#include <GL/glu.h>
11469
9469
int main() {
11470
9470
gluNewQuadric();
11471
9471
; return 0; }
11472
9472
EOF
11473
 
if { (eval echo configure:11474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
9473
if { (eval echo configure:9474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11474
9474
  rm -rf conftest*
11475
9475
  
11476
9476
echo "$ac_t""found" 1>&6
11515
9515
 
11516
9516
# Done checking OpenGL
11517
9517
 
11518
 
# Enable TCLTK option
11519
 
 
11520
 
 
11521
 
echo $ac_n "checking whether to use Tcl/Tk""... $ac_c" 1>&6
11522
 
echo "configure:11523: checking whether to use Tcl/Tk" >&5
11523
 
echo "$ac_t"""$with_tcltk"" 1>&6
11524
 
case "$with_tcltk" in
11525
 
        "no")   USE_TCLTK=      ;;
11526
 
        "yes")  USE_TCLTK="1"   ;;
11527
 
        *)      { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; }       ;;
11528
 
esac
11529
 
 
11530
 
 
11531
 
 
11532
 
TCLINCDIR=
11533
 
TCLTKLIBPATH=
11534
 
TCLTKLIBS=
11535
 
 
11536
 
if test -n "$USE_TCLTK"; then
11537
 
 
11538
 
# With Tcl/Tk includes directory
11539
 
 
11540
 
 
11541
 
echo $ac_n "checking for location of Tcl/Tk includes""... $ac_c" 1>&6
11542
 
echo "configure:11543: checking for location of Tcl/Tk includes" >&5
11543
 
case "$with_tcltk_includes" in
11544
 
y | ye | yes | n | no)
11545
 
        { echo "configure: error: *** You must supply a directory to --with-tcltk-includes." 1>&2; exit 1; }
11546
 
        ;;
11547
 
esac
11548
 
echo "$ac_t""$with_tcltk_includes" 1>&6
11549
 
 
11550
 
if test -n "$with_tcltk_includes" ; then
11551
 
    for dir in $with_tcltk_includes; do
11552
 
        if test -d "$dir"; then
11553
 
            TCLINCDIR="$TCLINCDIR -I$dir"
11554
 
        else
11555
 
            { echo "configure: error: *** Tcl/Tk includes directory $dir does not exist." 1>&2; exit 1; }
11556
 
        fi
11557
 
    done
11558
 
fi
11559
 
 
11560
 
 
11561
 
 
11562
 
ac_save_cppflags="$CPPFLAGS"
11563
 
CPPFLAGS="$TCLINCDIR $CPPFLAGS"
11564
 
for ac_hdr in tcl.h
11565
 
do
11566
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11567
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11568
 
echo "configure:11569: checking for $ac_hdr" >&5
11569
 
 
11570
 
cat > conftest.$ac_ext <<EOF
11571
 
#line 11572 "configure"
11572
 
#include "confdefs.h"
11573
 
#include <$ac_hdr>
11574
 
EOF
11575
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11576
 
{ (eval echo configure:11577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11577
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11578
 
if test -z "$ac_err"; then
11579
 
  rm -rf conftest*
11580
 
  eval "ac_cv_header_$ac_safe=yes"
11581
 
else
11582
 
  echo "$ac_err" >&5
11583
 
  echo "configure: failed program was:" >&5
11584
 
  cat conftest.$ac_ext >&5
11585
 
  rm -rf conftest*
11586
 
  eval "ac_cv_header_$ac_safe=no"
11587
 
fi
11588
 
rm -f conftest*
11589
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11590
 
  echo "$ac_t""yes" 1>&6
11591
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11592
 
  cat >> confdefs.h <<EOF
11593
 
#define $ac_tr_hdr 1
11594
 
EOF
11595
 
 
11596
 
else
11597
 
  echo "$ac_t""no" 1>&6
11598
 
{ echo "configure: error: *** Unable to locate Tcl includes." 1>&2; exit 1; }
11599
 
 
11600
 
fi
11601
 
done
11602
 
 
11603
 
CPPFLAGS=$ac_save_cppflags
11604
 
 
11605
 
 
11606
 
 
11607
 
ac_save_cppflags="$CPPFLAGS"
11608
 
CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
11609
 
for ac_hdr in tk.h
11610
 
do
11611
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11612
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11613
 
echo "configure:11614: checking for $ac_hdr" >&5
11614
 
 
11615
 
cat > conftest.$ac_ext <<EOF
11616
 
#line 11617 "configure"
11617
 
#include "confdefs.h"
11618
 
#include <$ac_hdr>
11619
 
EOF
11620
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11621
 
{ (eval echo configure:11622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11622
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11623
 
if test -z "$ac_err"; then
11624
 
  rm -rf conftest*
11625
 
  eval "ac_cv_header_$ac_safe=yes"
11626
 
else
11627
 
  echo "$ac_err" >&5
11628
 
  echo "configure: failed program was:" >&5
11629
 
  cat conftest.$ac_ext >&5
11630
 
  rm -rf conftest*
11631
 
  eval "ac_cv_header_$ac_safe=no"
11632
 
fi
11633
 
rm -f conftest*
11634
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11635
 
  echo "$ac_t""yes" 1>&6
11636
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11637
 
  cat >> confdefs.h <<EOF
11638
 
#define $ac_tr_hdr 1
11639
 
EOF
11640
 
 
11641
 
else
11642
 
  echo "$ac_t""no" 1>&6
11643
 
{ echo "configure: error: *** Unable to locate Tk includes." 1>&2; exit 1; }
11644
 
 
11645
 
fi
11646
 
done
11647
 
 
11648
 
CPPFLAGS=$ac_save_cppflags
11649
 
 
11650
 
 
11651
 
# Tcl/Tk version checks
11652
 
 
11653
 
echo $ac_n "checking Tcl version""... $ac_c" 1>&6
11654
 
echo "configure:11655: checking Tcl version" >&5
11655
 
ac_save_cppflags="$CPPFLAGS"
11656
 
CPPFLAGS="$TCLINCDIR $CPPFLAGS"
11657
 
if test "$cross_compiling" = yes; then
11658
 
     tcl_ver=UNKNOWN
11659
 
    echo "$ac_t""unknown (cross-compiling)" 1>&6 
11660
 
else
11661
 
  cat > conftest.$ac_ext <<EOF
11662
 
#line 11663 "configure"
11663
 
#include "confdefs.h"
11664
 
 
11665
 
#include <stdio.h> 
11666
 
#include <tcl.h>
11667
 
int main(void) {
11668
 
 FILE *fp = fopen("conftestdata","w");
11669
 
 fputs(TCL_VERSION, fp);
11670
 
 return 0;
11671
 
}
11672
 
 
11673
 
EOF
11674
 
if { (eval echo configure:11675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11675
 
then
11676
 
     tcl_ver=`cat conftestdata`
11677
 
    echo "$ac_t""$tcl_ver" 1>&6
11678
 
else
11679
 
  echo "configure: failed program was:" >&5
11680
 
  cat conftest.$ac_ext >&5
11681
 
  rm -fr conftest*
11682
 
     { echo "configure: error: *** Could not determine Tcl version." 1>&2; exit 1; } 
11683
 
fi
11684
 
rm -fr conftest*
11685
 
fi
11686
 
 
11687
 
CPPFLAGS=$ac_save_cppflags
11688
 
 
11689
 
 
11690
 
 
11691
 
echo $ac_n "checking Tk version""... $ac_c" 1>&6
11692
 
echo "configure:11693: checking Tk version" >&5
11693
 
ac_save_cppflags="$CPPFLAGS"
11694
 
CPPFLAGS="$TCLINCDIR $X_CFLAGS $CPPFLAGS"
11695
 
if test "$cross_compiling" = yes; then
11696
 
     tk_ver=UNKNOWN
11697
 
    echo "$ac_t""unknown (cross-compiling)" 1>&6 
11698
 
else
11699
 
  cat > conftest.$ac_ext <<EOF
11700
 
#line 11701 "configure"
11701
 
#include "confdefs.h"
11702
 
 
11703
 
#include <stdio.h> 
11704
 
#include <tk.h>
11705
 
int main(void) {
11706
 
 FILE *fp = fopen("conftestdata","w");
11707
 
 fputs(TK_VERSION, fp);
11708
 
 return 0;
11709
 
}
11710
 
 
11711
 
EOF
11712
 
if { (eval echo configure:11713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11713
 
then
11714
 
     tk_ver=`cat conftestdata`
11715
 
    echo "$ac_t""$tk_ver" 1>&6
11716
 
else
11717
 
  echo "configure: failed program was:" >&5
11718
 
  cat conftest.$ac_ext >&5
11719
 
  rm -fr conftest*
11720
 
     { echo "configure: error: *** Could not determine Tk version." 1>&2; exit 1; } 
11721
 
fi
11722
 
rm -fr conftest*
11723
 
fi
11724
 
 
11725
 
CPPFLAGS=$ac_save_cppflags
11726
 
 
11727
 
 
11728
 
if test "$tcl_ver" = "$tk_ver" ; then
11729
 
    tcltk_ver="$tcl_ver"
11730
 
else
11731
 
    { echo "configure: error: *** Tcl/Tk version mismatch." 1>&2; exit 1; }
11732
 
fi
11733
 
 
11734
 
TCL_VERSION="$tcl_ver"
11735
 
 
11736
 
# FreeBSD and CygWin don't have a "dot" between major/minor version number
11737
 
tcltk_ver2=`echo "$tcltk_ver" | sed 's/\.//g'`
11738
 
 
11739
 
# With Tcl/Tk library directory
11740
 
 
11741
 
 
11742
 
echo $ac_n "checking for location of Tcl/Tk library""... $ac_c" 1>&6
11743
 
echo "configure:11744: checking for location of Tcl/Tk library" >&5
11744
 
case "$with_tcltk_libs" in
11745
 
y | ye | yes | n | no)
11746
 
        { echo "configure: error: *** You must supply a directory to --with-tcltk-libs." 1>&2; exit 1; }
11747
 
        ;;
11748
 
esac
11749
 
echo "$ac_t""$with_tcltk_libs" 1>&6
11750
 
 
11751
 
if test -n "$with_tcltk_libs"; then
11752
 
    for dir in $with_tcltk_libs; do
11753
 
        if test -d "$dir"; then
11754
 
            TCLTKLIBPATH="$TCLTKLIBPATH -L$dir"
11755
 
        else
11756
 
            { echo "configure: error: *** Tcl/Tk library directory $dir does not exist." 1>&2; exit 1; }
11757
 
        fi
11758
 
    done
11759
 
fi
11760
 
 
11761
 
 
11762
 
TCLLIB=
11763
 
TKLIB=
11764
 
MACOSX_ARCHS_TCLTK=
11765
 
 
11766
 
# Can't test tcl/tk libs on 64bit OSX Aqua for now
11767
 
# assume that if OpenGL Aqua, then user specifies TclTk Aqua
11768
 
if test "$OPENGL_AQUA" = 1 ; then
11769
 
    save_CFLAGS="$CFLAGS"
11770
 
    CFLAGS="`echo \"$CFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
11771
 
    save_LDFLAGS="$LDFLAGS"
11772
 
    LDFLAGS="`echo \"$LDFLAGS\" | sed -E 's/-arch +x86_64//g' | sed -E 's/-arch +ppc64//g'`"
11773
 
fi
11774
 
 
11775
 
 
11776
 
ac_save_ldflags="$LDFLAGS"
11777
 
LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
11778
 
 
11779
 
 
11780
 
 
11781
 
 
11782
 
echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
11783
 
echo "configure:11784: checking for Tcl_Init in -ltcl" >&5
11784
 
ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
11785
 
 
11786
 
ac_save_LIBS="$LIBS"
11787
 
LIBS="-ltcl $MATHLIB $LIBS"
11788
 
cat > conftest.$ac_ext <<EOF
11789
 
#line 11790 "configure"
11790
 
#include "confdefs.h"
11791
 
/* Override any gcc2 internal prototype to avoid an error.  */
11792
 
/* We use char because int might match the return type of a gcc2
11793
 
    builtin and then its argument prototype would still apply.  */
11794
 
char Tcl_Init();
11795
 
 
11796
 
int main() {
11797
 
Tcl_Init()
11798
 
; return 0; }
11799
 
EOF
11800
 
if { (eval echo configure:11801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11801
 
  rm -rf conftest*
11802
 
  eval "ac_cv_lib_$ac_lib_var=yes"
11803
 
else
11804
 
  echo "configure: failed program was:" >&5
11805
 
  cat conftest.$ac_ext >&5
11806
 
  rm -rf conftest*
11807
 
  eval "ac_cv_lib_$ac_lib_var=no"
11808
 
fi
11809
 
rm -f conftest*
11810
 
LIBS="$ac_save_LIBS"
11811
 
 
11812
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11813
 
  echo "$ac_t""yes" 1>&6
11814
 
  TCLLIB="$TCLLIB -ltcl $MATHLIB"
11815
 
else
11816
 
  echo "$ac_t""no" 1>&6
11817
 
 
11818
 
echo $ac_n "checking for Tcl_Init in -ltcl""... $ac_c" 1>&6
11819
 
echo "configure:11820: checking for Tcl_Init in -ltcl" >&5
11820
 
ac_lib_var=`echo tcl'_'Tcl_Init | sed 'y%./+-%__p_%'`
11821
 
 
11822
 
ac_save_LIBS="$LIBS"
11823
 
LIBS="-ltcl $MATHLIB $DLLIB $LIBS"
11824
 
cat > conftest.$ac_ext <<EOF
11825
 
#line 11826 "configure"
11826
 
#include "confdefs.h"
11827
 
/* Override any gcc2 internal prototype to avoid an error.  */
11828
 
/* We use char because int might match the return type of a gcc2
11829
 
    builtin and then its argument prototype would still apply.  */
11830
 
char Tcl_Init();
11831
 
 
11832
 
int main() {
11833
 
Tcl_Init()
11834
 
; return 0; }
11835
 
EOF
11836
 
if { (eval echo configure:11837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11837
 
  rm -rf conftest*
11838
 
  eval "ac_cv_lib_$ac_lib_var=yes"
11839
 
else
11840
 
  echo "configure: failed program was:" >&5
11841
 
  cat conftest.$ac_ext >&5
11842
 
  rm -rf conftest*
11843
 
  eval "ac_cv_lib_$ac_lib_var=no"
11844
 
fi
11845
 
rm -f conftest*
11846
 
LIBS="$ac_save_LIBS"
11847
 
 
11848
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11849
 
  echo "$ac_t""yes" 1>&6
11850
 
  TCLLIB="$TCLLIB -ltcl $MATHLIB $DLLIB"
11851
 
else
11852
 
  echo "$ac_t""no" 1>&6
11853
 
 
11854
 
LDFLAGS=${ac_save_ldflags}
11855
 
 
11856
 
ac_save_ldflags="$LDFLAGS"
11857
 
LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
11858
 
 
11859
 
 
11860
 
 
11861
 
 
11862
 
echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
11863
 
echo "configure:11864: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
11864
 
ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
11865
 
 
11866
 
ac_save_LIBS="$LIBS"
11867
 
LIBS="-ltcl$tcltk_ver $MATHLIB $LIBS"
11868
 
cat > conftest.$ac_ext <<EOF
11869
 
#line 11870 "configure"
11870
 
#include "confdefs.h"
11871
 
/* Override any gcc2 internal prototype to avoid an error.  */
11872
 
/* We use char because int might match the return type of a gcc2
11873
 
    builtin and then its argument prototype would still apply.  */
11874
 
char Tcl_Init();
11875
 
 
11876
 
int main() {
11877
 
Tcl_Init()
11878
 
; return 0; }
11879
 
EOF
11880
 
if { (eval echo configure:11881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11881
 
  rm -rf conftest*
11882
 
  eval "ac_cv_lib_$ac_lib_var=yes"
11883
 
else
11884
 
  echo "configure: failed program was:" >&5
11885
 
  cat conftest.$ac_ext >&5
11886
 
  rm -rf conftest*
11887
 
  eval "ac_cv_lib_$ac_lib_var=no"
11888
 
fi
11889
 
rm -f conftest*
11890
 
LIBS="$ac_save_LIBS"
11891
 
 
11892
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11893
 
  echo "$ac_t""yes" 1>&6
11894
 
  TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB"
11895
 
else
11896
 
  echo "$ac_t""no" 1>&6
11897
 
 
11898
 
echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver""... $ac_c" 1>&6
11899
 
echo "configure:11900: checking for Tcl_Init in -ltcl$tcltk_ver" >&5
11900
 
ac_lib_var=`echo tcl$tcltk_ver'_'Tcl_Init | sed 'y%./+-%__p_%'`
11901
 
 
11902
 
ac_save_LIBS="$LIBS"
11903
 
LIBS="-ltcl$tcltk_ver $MATHLIB $DLLIB $LIBS"
11904
 
cat > conftest.$ac_ext <<EOF
11905
 
#line 11906 "configure"
11906
 
#include "confdefs.h"
11907
 
/* Override any gcc2 internal prototype to avoid an error.  */
11908
 
/* We use char because int might match the return type of a gcc2
11909
 
    builtin and then its argument prototype would still apply.  */
11910
 
char Tcl_Init();
11911
 
 
11912
 
int main() {
11913
 
Tcl_Init()
11914
 
; return 0; }
11915
 
EOF
11916
 
if { (eval echo configure:11917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11917
 
  rm -rf conftest*
11918
 
  eval "ac_cv_lib_$ac_lib_var=yes"
11919
 
else
11920
 
  echo "configure: failed program was:" >&5
11921
 
  cat conftest.$ac_ext >&5
11922
 
  rm -rf conftest*
11923
 
  eval "ac_cv_lib_$ac_lib_var=no"
11924
 
fi
11925
 
rm -f conftest*
11926
 
LIBS="$ac_save_LIBS"
11927
 
 
11928
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11929
 
  echo "$ac_t""yes" 1>&6
11930
 
  TCLLIB="$TCLLIB -ltcl$tcltk_ver $MATHLIB $DLLIB"
11931
 
else
11932
 
  echo "$ac_t""no" 1>&6
11933
 
 
11934
 
LDFLAGS=${ac_save_ldflags}
11935
 
 
11936
 
ac_save_ldflags="$LDFLAGS"
11937
 
LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
11938
 
 
11939
 
 
11940
 
 
11941
 
 
11942
 
echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
11943
 
echo "configure:11944: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
11944
 
ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
11945
 
 
11946
 
ac_save_LIBS="$LIBS"
11947
 
LIBS="-ltcl$tcltk_ver2 $MATHLIB $LIBS"
11948
 
cat > conftest.$ac_ext <<EOF
11949
 
#line 11950 "configure"
11950
 
#include "confdefs.h"
11951
 
/* Override any gcc2 internal prototype to avoid an error.  */
11952
 
/* We use char because int might match the return type of a gcc2
11953
 
    builtin and then its argument prototype would still apply.  */
11954
 
char Tcl_Init();
11955
 
 
11956
 
int main() {
11957
 
Tcl_Init()
11958
 
; return 0; }
11959
 
EOF
11960
 
if { (eval echo configure:11961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11961
 
  rm -rf conftest*
11962
 
  eval "ac_cv_lib_$ac_lib_var=yes"
11963
 
else
11964
 
  echo "configure: failed program was:" >&5
11965
 
  cat conftest.$ac_ext >&5
11966
 
  rm -rf conftest*
11967
 
  eval "ac_cv_lib_$ac_lib_var=no"
11968
 
fi
11969
 
rm -f conftest*
11970
 
LIBS="$ac_save_LIBS"
11971
 
 
11972
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11973
 
  echo "$ac_t""yes" 1>&6
11974
 
  TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB"
11975
 
else
11976
 
  echo "$ac_t""no" 1>&6
11977
 
 
11978
 
echo $ac_n "checking for Tcl_Init in -ltcl$tcltk_ver2""... $ac_c" 1>&6
11979
 
echo "configure:11980: checking for Tcl_Init in -ltcl$tcltk_ver2" >&5
11980
 
ac_lib_var=`echo tcl$tcltk_ver2'_'Tcl_Init | sed 'y%./+-%__p_%'`
11981
 
 
11982
 
ac_save_LIBS="$LIBS"
11983
 
LIBS="-ltcl$tcltk_ver2 $MATHLIB $DLLIB $LIBS"
11984
 
cat > conftest.$ac_ext <<EOF
11985
 
#line 11986 "configure"
11986
 
#include "confdefs.h"
11987
 
/* Override any gcc2 internal prototype to avoid an error.  */
11988
 
/* We use char because int might match the return type of a gcc2
11989
 
    builtin and then its argument prototype would still apply.  */
11990
 
char Tcl_Init();
11991
 
 
11992
 
int main() {
11993
 
Tcl_Init()
11994
 
; return 0; }
11995
 
EOF
11996
 
if { (eval echo configure:11997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11997
 
  rm -rf conftest*
11998
 
  eval "ac_cv_lib_$ac_lib_var=yes"
11999
 
else
12000
 
  echo "configure: failed program was:" >&5
12001
 
  cat conftest.$ac_ext >&5
12002
 
  rm -rf conftest*
12003
 
  eval "ac_cv_lib_$ac_lib_var=no"
12004
 
fi
12005
 
rm -f conftest*
12006
 
LIBS="$ac_save_LIBS"
12007
 
 
12008
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12009
 
  echo "$ac_t""yes" 1>&6
12010
 
  TCLLIB="$TCLLIB -ltcl$tcltk_ver2 $MATHLIB $DLLIB"
12011
 
else
12012
 
  echo "$ac_t""no" 1>&6
12013
 
 
12014
 
LDFLAGS=${ac_save_ldflags}
12015
 
 
12016
 
    { echo "configure: error: *** Unable to locate Tcl library." 1>&2; exit 1; }
12017
 
 
12018
 
 
12019
 
fi
12020
 
 
12021
 
 
12022
 
 
12023
 
 
12024
 
fi
12025
 
 
12026
 
 
12027
 
 
12028
 
 
12029
 
 
12030
 
 
12031
 
LDFLAGS=${ac_save_ldflags}
12032
 
 
12033
 
 
12034
 
 
12035
 
fi
12036
 
 
12037
 
 
12038
 
 
12039
 
 
12040
 
fi
12041
 
 
12042
 
 
12043
 
 
12044
 
 
12045
 
 
12046
 
 
12047
 
LDFLAGS=${ac_save_ldflags}
12048
 
 
12049
 
 
12050
 
 
12051
 
fi
12052
 
 
12053
 
 
12054
 
 
12055
 
 
12056
 
fi
12057
 
 
12058
 
 
12059
 
 
12060
 
 
12061
 
 
12062
 
 
12063
 
LDFLAGS=${ac_save_ldflags}
12064
 
 
12065
 
 
12066
 
 
12067
 
ac_save_ldflags="$LDFLAGS"
12068
 
LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
12069
 
 
12070
 
 
12071
 
 
12072
 
 
12073
 
echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
12074
 
echo "configure:12075: checking for Tk_MainWindow in -ltk" >&5
12075
 
ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
12076
 
 
12077
 
ac_save_LIBS="$LIBS"
12078
 
LIBS="-ltk $TCLLIB $MATHLIB $LIBS"
12079
 
cat > conftest.$ac_ext <<EOF
12080
 
#line 12081 "configure"
12081
 
#include "confdefs.h"
12082
 
/* Override any gcc2 internal prototype to avoid an error.  */
12083
 
/* We use char because int might match the return type of a gcc2
12084
 
    builtin and then its argument prototype would still apply.  */
12085
 
char Tk_MainWindow();
12086
 
 
12087
 
int main() {
12088
 
Tk_MainWindow()
12089
 
; return 0; }
12090
 
EOF
12091
 
if { (eval echo configure:12092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12092
 
  rm -rf conftest*
12093
 
  eval "ac_cv_lib_$ac_lib_var=yes"
12094
 
else
12095
 
  echo "configure: failed program was:" >&5
12096
 
  cat conftest.$ac_ext >&5
12097
 
  rm -rf conftest*
12098
 
  eval "ac_cv_lib_$ac_lib_var=no"
12099
 
fi
12100
 
rm -f conftest*
12101
 
LIBS="$ac_save_LIBS"
12102
 
 
12103
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12104
 
  echo "$ac_t""yes" 1>&6
12105
 
  TKLIB="$TKLIB -ltk $MATHLIB"
12106
 
else
12107
 
  echo "$ac_t""no" 1>&6
12108
 
 
12109
 
echo $ac_n "checking for Tk_MainWindow in -ltk""... $ac_c" 1>&6
12110
 
echo "configure:12111: checking for Tk_MainWindow in -ltk" >&5
12111
 
ac_lib_var=`echo tk'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
12112
 
 
12113
 
ac_save_LIBS="$LIBS"
12114
 
LIBS="-ltk $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12115
 
cat > conftest.$ac_ext <<EOF
12116
 
#line 12117 "configure"
12117
 
#include "confdefs.h"
12118
 
/* Override any gcc2 internal prototype to avoid an error.  */
12119
 
/* We use char because int might match the return type of a gcc2
12120
 
    builtin and then its argument prototype would still apply.  */
12121
 
char Tk_MainWindow();
12122
 
 
12123
 
int main() {
12124
 
Tk_MainWindow()
12125
 
; return 0; }
12126
 
EOF
12127
 
if { (eval echo configure:12128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12128
 
  rm -rf conftest*
12129
 
  eval "ac_cv_lib_$ac_lib_var=yes"
12130
 
else
12131
 
  echo "configure: failed program was:" >&5
12132
 
  cat conftest.$ac_ext >&5
12133
 
  rm -rf conftest*
12134
 
  eval "ac_cv_lib_$ac_lib_var=no"
12135
 
fi
12136
 
rm -f conftest*
12137
 
LIBS="$ac_save_LIBS"
12138
 
 
12139
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12140
 
  echo "$ac_t""yes" 1>&6
12141
 
  TKLIB="$TKLIB -ltk $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
12142
 
else
12143
 
  echo "$ac_t""no" 1>&6
12144
 
 
12145
 
LDFLAGS=${ac_save_ldflags}
12146
 
 
12147
 
ac_save_ldflags="$LDFLAGS"
12148
 
LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
12149
 
 
12150
 
 
12151
 
 
12152
 
 
12153
 
echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
12154
 
echo "configure:12155: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
12155
 
ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
12156
 
 
12157
 
ac_save_LIBS="$LIBS"
12158
 
LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $LIBS"
12159
 
cat > conftest.$ac_ext <<EOF
12160
 
#line 12161 "configure"
12161
 
#include "confdefs.h"
12162
 
/* Override any gcc2 internal prototype to avoid an error.  */
12163
 
/* We use char because int might match the return type of a gcc2
12164
 
    builtin and then its argument prototype would still apply.  */
12165
 
char Tk_MainWindow();
12166
 
 
12167
 
int main() {
12168
 
Tk_MainWindow()
12169
 
; return 0; }
12170
 
EOF
12171
 
if { (eval echo configure:12172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12172
 
  rm -rf conftest*
12173
 
  eval "ac_cv_lib_$ac_lib_var=yes"
12174
 
else
12175
 
  echo "configure: failed program was:" >&5
12176
 
  cat conftest.$ac_ext >&5
12177
 
  rm -rf conftest*
12178
 
  eval "ac_cv_lib_$ac_lib_var=no"
12179
 
fi
12180
 
rm -f conftest*
12181
 
LIBS="$ac_save_LIBS"
12182
 
 
12183
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12184
 
  echo "$ac_t""yes" 1>&6
12185
 
  TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB"
12186
 
else
12187
 
  echo "$ac_t""no" 1>&6
12188
 
 
12189
 
echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver""... $ac_c" 1>&6
12190
 
echo "configure:12191: checking for Tk_MainWindow in -ltk$tcltk_ver" >&5
12191
 
ac_lib_var=`echo tk$tcltk_ver'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
12192
 
 
12193
 
ac_save_LIBS="$LIBS"
12194
 
LIBS="-ltk$tcltk_ver $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12195
 
cat > conftest.$ac_ext <<EOF
12196
 
#line 12197 "configure"
12197
 
#include "confdefs.h"
12198
 
/* Override any gcc2 internal prototype to avoid an error.  */
12199
 
/* We use char because int might match the return type of a gcc2
12200
 
    builtin and then its argument prototype would still apply.  */
12201
 
char Tk_MainWindow();
12202
 
 
12203
 
int main() {
12204
 
Tk_MainWindow()
12205
 
; return 0; }
12206
 
EOF
12207
 
if { (eval echo configure:12208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12208
 
  rm -rf conftest*
12209
 
  eval "ac_cv_lib_$ac_lib_var=yes"
12210
 
else
12211
 
  echo "configure: failed program was:" >&5
12212
 
  cat conftest.$ac_ext >&5
12213
 
  rm -rf conftest*
12214
 
  eval "ac_cv_lib_$ac_lib_var=no"
12215
 
fi
12216
 
rm -f conftest*
12217
 
LIBS="$ac_save_LIBS"
12218
 
 
12219
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12220
 
  echo "$ac_t""yes" 1>&6
12221
 
  TKLIB="$TKLIB -ltk$tcltk_ver $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
12222
 
else
12223
 
  echo "$ac_t""no" 1>&6
12224
 
 
12225
 
LDFLAGS=${ac_save_ldflags}
12226
 
 
12227
 
ac_save_ldflags="$LDFLAGS"
12228
 
LDFLAGS="$TCLTKLIBPATH $LDFLAGS"
12229
 
 
12230
 
 
12231
 
 
12232
 
 
12233
 
echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
12234
 
echo "configure:12235: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
12235
 
ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
12236
 
 
12237
 
ac_save_LIBS="$LIBS"
12238
 
LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $LIBS"
12239
 
cat > conftest.$ac_ext <<EOF
12240
 
#line 12241 "configure"
12241
 
#include "confdefs.h"
12242
 
/* Override any gcc2 internal prototype to avoid an error.  */
12243
 
/* We use char because int might match the return type of a gcc2
12244
 
    builtin and then its argument prototype would still apply.  */
12245
 
char Tk_MainWindow();
12246
 
 
12247
 
int main() {
12248
 
Tk_MainWindow()
12249
 
; return 0; }
12250
 
EOF
12251
 
if { (eval echo configure:12252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12252
 
  rm -rf conftest*
12253
 
  eval "ac_cv_lib_$ac_lib_var=yes"
12254
 
else
12255
 
  echo "configure: failed program was:" >&5
12256
 
  cat conftest.$ac_ext >&5
12257
 
  rm -rf conftest*
12258
 
  eval "ac_cv_lib_$ac_lib_var=no"
12259
 
fi
12260
 
rm -f conftest*
12261
 
LIBS="$ac_save_LIBS"
12262
 
 
12263
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12264
 
  echo "$ac_t""yes" 1>&6
12265
 
  TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB"
12266
 
else
12267
 
  echo "$ac_t""no" 1>&6
12268
 
 
12269
 
echo $ac_n "checking for Tk_MainWindow in -ltk$tcltk_ver2""... $ac_c" 1>&6
12270
 
echo "configure:12271: checking for Tk_MainWindow in -ltk$tcltk_ver2" >&5
12271
 
ac_lib_var=`echo tk$tcltk_ver2'_'Tk_MainWindow | sed 'y%./+-%__p_%'`
12272
 
 
12273
 
ac_save_LIBS="$LIBS"
12274
 
LIBS="-ltk$tcltk_ver2 $TCLLIB $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12275
 
cat > conftest.$ac_ext <<EOF
12276
 
#line 12277 "configure"
12277
 
#include "confdefs.h"
12278
 
/* Override any gcc2 internal prototype to avoid an error.  */
12279
 
/* We use char because int might match the return type of a gcc2
12280
 
    builtin and then its argument prototype would still apply.  */
12281
 
char Tk_MainWindow();
12282
 
 
12283
 
int main() {
12284
 
Tk_MainWindow()
12285
 
; return 0; }
12286
 
EOF
12287
 
if { (eval echo configure:12288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12288
 
  rm -rf conftest*
12289
 
  eval "ac_cv_lib_$ac_lib_var=yes"
12290
 
else
12291
 
  echo "configure: failed program was:" >&5
12292
 
  cat conftest.$ac_ext >&5
12293
 
  rm -rf conftest*
12294
 
  eval "ac_cv_lib_$ac_lib_var=no"
12295
 
fi
12296
 
rm -f conftest*
12297
 
LIBS="$ac_save_LIBS"
12298
 
 
12299
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12300
 
  echo "$ac_t""yes" 1>&6
12301
 
  TKLIB="$TKLIB -ltk$tcltk_ver2 $MATHLIB $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
12302
 
else
12303
 
  echo "$ac_t""no" 1>&6
12304
 
 
12305
 
LDFLAGS=${ac_save_ldflags}
12306
 
 
12307
 
    { echo "configure: error: *** Unable to locate Tk library." 1>&2; exit 1; }
12308
 
 
12309
 
 
12310
 
fi
12311
 
 
12312
 
 
12313
 
 
12314
 
 
12315
 
fi
12316
 
 
12317
 
 
12318
 
 
12319
 
 
12320
 
 
12321
 
 
12322
 
LDFLAGS=${ac_save_ldflags}
12323
 
 
12324
 
 
12325
 
 
12326
 
fi
12327
 
 
12328
 
 
12329
 
 
12330
 
 
12331
 
fi
12332
 
 
12333
 
 
12334
 
 
12335
 
 
12336
 
 
12337
 
 
12338
 
LDFLAGS=${ac_save_ldflags}
12339
 
 
12340
 
 
12341
 
 
12342
 
fi
12343
 
 
12344
 
 
12345
 
 
12346
 
 
12347
 
fi
12348
 
 
12349
 
 
12350
 
 
12351
 
 
12352
 
 
12353
 
 
12354
 
LDFLAGS=${ac_save_ldflags}
12355
 
 
12356
 
 
12357
 
# restore CFLAGS/LDLFAGS from Aqua 64bit strip
12358
 
# only Tcl/Tk-based makefiles will strip 64bit out during compile
12359
 
if test "$OPENGL_AQUA" = 1 ; then
12360
 
   CFLAGS="$save_CFLAGS"
12361
 
   LDFLAGS="$save_LDFLAGS"
12362
 
fi
12363
 
 
12364
 
TCLTKLIBS="$TKLIB $TCLLIB"
12365
 
 
12366
 
# check for available OSX archs in TclTk
12367
 
if test -n "$MACOSX_ARCHS" ; then
12368
 
  save_LDFLAGS="$LDFLAGS"
12369
 
  LDFLAGS=
12370
 
  save_CFLAGS="$CFLAGS"
12371
 
  CFLAGS=
12372
 
  tlib=`echo "$TCLLIB" | sed -e 's/-l//' -e 's/^  *//' -e 's/  *$//'`
12373
 
  for a in i386 ppc x86_64 ppc64
12374
 
  do
12375
 
    # add only if in MACOSX_ARCHS
12376
 
    echo $ac_n "checking for Tcl_Init in -l$tlib""... $ac_c" 1>&6
12377
 
echo "configure:12378: checking for Tcl_Init in -l$tlib" >&5
12378
 
ac_lib_var=`echo $tlib'_'Tcl_Init | sed 'y%./+-%__p_%'`
12379
 
 
12380
 
ac_save_LIBS="$LIBS"
12381
 
LIBS="-l$tlib -arch $a $MACOSX_SDK $TCLTKLIBPATH $LIBS"
12382
 
cat > conftest.$ac_ext <<EOF
12383
 
#line 12384 "configure"
12384
 
#include "confdefs.h"
12385
 
/* Override any gcc2 internal prototype to avoid an error.  */
12386
 
/* We use char because int might match the return type of a gcc2
12387
 
    builtin and then its argument prototype would still apply.  */
12388
 
char Tcl_Init();
12389
 
 
12390
 
int main() {
12391
 
Tcl_Init()
12392
 
; return 0; }
12393
 
EOF
12394
 
if { (eval echo configure:12395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12395
 
  rm -rf conftest*
12396
 
  eval "ac_cv_lib_$ac_lib_var=yes"
12397
 
else
12398
 
  echo "configure: failed program was:" >&5
12399
 
  cat conftest.$ac_ext >&5
12400
 
  rm -rf conftest*
12401
 
  eval "ac_cv_lib_$ac_lib_var=no"
12402
 
fi
12403
 
rm -f conftest*
12404
 
LIBS="$ac_save_LIBS"
12405
 
 
12406
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12407
 
  echo "$ac_t""yes" 1>&6
12408
 
  
12409
 
      if test -n "`echo "$MACOSX_ARCHS" | grep $a`" ; then
12410
 
        MACOSX_ARCHS_TCLTK="$MACOSX_ARCHS_TCLTK -arch $a"
12411
 
      fi
12412
 
      
12413
 
else
12414
 
  echo "$ac_t""no" 1>&6
12415
 
fi
12416
 
 
12417
 
  done
12418
 
  LDFLAGS="$save_LDFLAGS"
12419
 
  CFLAGS="$save_CFLAGS"
12420
 
fi
12421
 
 
12422
 
cat >> confdefs.h <<\EOF
12423
 
#define HAVE_TCLTK 1
12424
 
EOF
12425
 
 
12426
 
 
12427
 
fi # $USE_TCLTK
12428
 
 
12429
 
TKINCDIR=$TCLINCDIR
12430
 
 
12431
 
 
12432
 
 
12433
 
 
12434
 
 
12435
 
 
12436
 
 
12437
 
# Done checking Tcl/Tk
12438
 
 
12439
9518
# Enable ODBC option
12440
9519
 
12441
9520
 
12442
9521
echo $ac_n "checking whether to use ODBC""... $ac_c" 1>&6
12443
 
echo "configure:12444: checking whether to use ODBC" >&5
 
9522
echo "configure:9523: checking whether to use ODBC" >&5
12444
9523
echo "$ac_t"""$with_odbc"" 1>&6
12445
9524
case "$with_odbc" in
12446
9525
        "no")   USE_ODBC=       ;;
12459
9538
 
12460
9539
 
12461
9540
echo $ac_n "checking for location of ODBC includes""... $ac_c" 1>&6
12462
 
echo "configure:12463: checking for location of ODBC includes" >&5
 
9541
echo "configure:9542: checking for location of ODBC includes" >&5
12463
9542
case "$with_odbc_includes" in
12464
9543
y | ye | yes | n | no)
12465
9544
        { echo "configure: error: *** You must supply a directory to --with-odbc-includes." 1>&2; exit 1; }
12485
9564
do
12486
9565
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12487
9566
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12488
 
echo "configure:12489: checking for $ac_hdr" >&5
 
9567
echo "configure:9568: checking for $ac_hdr" >&5
12489
9568
 
12490
9569
cat > conftest.$ac_ext <<EOF
12491
 
#line 12492 "configure"
 
9570
#line 9571 "configure"
12492
9571
#include "confdefs.h"
12493
9572
#include <$ac_hdr>
12494
9573
EOF
12495
9574
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12496
 
{ (eval echo configure:12497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
9575
{ (eval echo configure:9576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12497
9576
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12498
9577
if test -z "$ac_err"; then
12499
9578
  rm -rf conftest*
12527
9606
 
12528
9607
 
12529
9608
echo $ac_n "checking for location of ODBC library""... $ac_c" 1>&6
12530
 
echo "configure:12531: checking for location of ODBC library" >&5
 
9609
echo "configure:9610: checking for location of ODBC library" >&5
12531
9610
case "$with_odbc_libs" in
12532
9611
y | ye | yes | n | no)
12533
9612
        { echo "configure: error: *** You must supply a directory to --with-odbc-libs." 1>&2; exit 1; }
12552
9631
 
12553
9632
 
12554
9633
echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
12555
 
echo "configure:12556: checking for SQLConnect in -lodbc" >&5
 
9634
echo "configure:9635: checking for SQLConnect in -lodbc" >&5
12556
9635
ac_lib_var=`echo odbc'_'SQLConnect | sed 'y%./+-%__p_%'`
12557
9636
 
12558
9637
ac_save_LIBS="$LIBS"
12559
9638
LIBS="-lodbc $ICONVLIB  $LIBS"
12560
9639
cat > conftest.$ac_ext <<EOF
12561
 
#line 12562 "configure"
 
9640
#line 9641 "configure"
12562
9641
#include "confdefs.h"
12563
9642
/* Override any gcc2 internal prototype to avoid an error.  */
12564
9643
/* We use char because int might match the return type of a gcc2
12569
9648
SQLConnect()
12570
9649
; return 0; }
12571
9650
EOF
12572
 
if { (eval echo configure:12573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
9651
if { (eval echo configure:9652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12573
9652
  rm -rf conftest*
12574
9653
  eval "ac_cv_lib_$ac_lib_var=yes"
12575
9654
else
12594
9673
 
12595
9674
 
12596
9675
echo $ac_n "checking for SQLConnect in -liodbc""... $ac_c" 1>&6
12597
 
echo "configure:12598: checking for SQLConnect in -liodbc" >&5
 
9676
echo "configure:9677: checking for SQLConnect in -liodbc" >&5
12598
9677
ac_lib_var=`echo iodbc'_'SQLConnect | sed 'y%./+-%__p_%'`
12599
9678
 
12600
9679
ac_save_LIBS="$LIBS"
12601
9680
LIBS="-liodbc  $LIBS"
12602
9681
cat > conftest.$ac_ext <<EOF
12603
 
#line 12604 "configure"
 
9682
#line 9683 "configure"
12604
9683
#include "confdefs.h"
12605
9684
/* Override any gcc2 internal prototype to avoid an error.  */
12606
9685
/* We use char because int might match the return type of a gcc2
12611
9690
SQLConnect()
12612
9691
; return 0; }
12613
9692
EOF
12614
 
if { (eval echo configure:12615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
9693
if { (eval echo configure:9694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12615
9694
  rm -rf conftest*
12616
9695
  eval "ac_cv_lib_$ac_lib_var=yes"
12617
9696
else
12636
9715
ac_save_ldflags="$LDFLAGS"
12637
9716
ac_save_libs="$LIBS"
12638
9717
echo $ac_n "checking for ODBC library""... $ac_c" 1>&6
12639
 
echo "configure:12640: checking for ODBC library" >&5
 
9718
echo "configure:9719: checking for ODBC library" >&5
12640
9719
LDFLAGS="$ODBCLIB $LDFLAGS"
12641
9720
LIBS="-lodbc32  "
12642
9721
cat > conftest.$ac_ext <<EOF
12643
 
#line 12644 "configure"
 
9722
#line 9723 "configure"
12644
9723
#include "confdefs.h"
12645
9724
#include <windows.h>
12646
9725
#include <sql.h>
12648
9727
SQLAllocEnv((SQLHENV *)0);
12649
9728
; return 0; }
12650
9729
EOF
12651
 
if { (eval echo configure:12652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
9730
if { (eval echo configure:9731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12652
9731
  rm -rf conftest*
12653
9732
  
12654
9733
echo "$ac_t""found" 1>&6
12697
9776
 
12698
9777
 
12699
9778
echo $ac_n "checking whether to use FFTW""... $ac_c" 1>&6
12700
 
echo "configure:12701: checking whether to use FFTW" >&5
 
9779
echo "configure:9780: checking whether to use FFTW" >&5
12701
9780
echo "$ac_t"""$with_fftw"" 1>&6
12702
9781
case "$with_fftw" in
12703
9782
        "no")   USE_FFTW=       ;;
12716
9795
 
12717
9796
 
12718
9797
echo $ac_n "checking for location of FFTW includes""... $ac_c" 1>&6
12719
 
echo "configure:12720: checking for location of FFTW includes" >&5
 
9798
echo "configure:9799: checking for location of FFTW includes" >&5
12720
9799
case "$with_fftw_includes" in
12721
9800
y | ye | yes | n | no)
12722
9801
        { echo "configure: error: *** You must supply a directory to --with-fftw-includes." 1>&2; exit 1; }
12742
9821
do
12743
9822
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12744
9823
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12745
 
echo "configure:12746: checking for $ac_hdr" >&5
 
9824
echo "configure:9825: checking for $ac_hdr" >&5
12746
9825
 
12747
9826
cat > conftest.$ac_ext <<EOF
12748
 
#line 12749 "configure"
 
9827
#line 9828 "configure"
12749
9828
#include "confdefs.h"
12750
9829
#include <$ac_hdr>
12751
9830
EOF
12752
9831
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12753
 
{ (eval echo configure:12754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
9832
{ (eval echo configure:9833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12754
9833
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12755
9834
if test -z "$ac_err"; then
12756
9835
  rm -rf conftest*
12778
9857
do
12779
9858
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12780
9859
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12781
 
echo "configure:12782: checking for $ac_hdr" >&5
 
9860
echo "configure:9861: checking for $ac_hdr" >&5
12782
9861
 
12783
9862
cat > conftest.$ac_ext <<EOF
12784
 
#line 12785 "configure"
 
9863
#line 9864 "configure"
12785
9864
#include "confdefs.h"
12786
9865
#include <$ac_hdr>
12787
9866
EOF
12788
9867
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12789
 
{ (eval echo configure:12790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
9868
{ (eval echo configure:9869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12790
9869
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12791
9870
if test -z "$ac_err"; then
12792
9871
  rm -rf conftest*
12814
9893
do
12815
9894
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12816
9895
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12817
 
echo "configure:12818: checking for $ac_hdr" >&5
 
9896
echo "configure:9897: checking for $ac_hdr" >&5
12818
9897
 
12819
9898
cat > conftest.$ac_ext <<EOF
12820
 
#line 12821 "configure"
 
9899
#line 9900 "configure"
12821
9900
#include "confdefs.h"
12822
9901
#include <$ac_hdr>
12823
9902
EOF
12824
9903
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12825
 
{ (eval echo configure:12826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
9904
{ (eval echo configure:9905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12826
9905
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12827
9906
if test -z "$ac_err"; then
12828
9907
  rm -rf conftest*
12868
9947
 
12869
9948
 
12870
9949
echo $ac_n "checking for location of FFTW library""... $ac_c" 1>&6
12871
 
echo "configure:12872: checking for location of FFTW library" >&5
 
9950
echo "configure:9951: checking for location of FFTW library" >&5
12872
9951
case "$with_fftw_libs" in
12873
9952
y | ye | yes | n | no)
12874
9953
        { echo "configure: error: *** You must supply a directory to --with-fftw-libs." 1>&2; exit 1; }
12893
9972
 
12894
9973
 
12895
9974
echo $ac_n "checking for fftw_execute in -lfftw3""... $ac_c" 1>&6
12896
 
echo "configure:12897: checking for fftw_execute in -lfftw3" >&5
 
9975
echo "configure:9976: checking for fftw_execute in -lfftw3" >&5
12897
9976
ac_lib_var=`echo fftw3'_'fftw_execute | sed 'y%./+-%__p_%'`
12898
9977
 
12899
9978
ac_save_LIBS="$LIBS"
12900
9979
LIBS="-lfftw3 $MATHLIB $LIBS"
12901
9980
cat > conftest.$ac_ext <<EOF
12902
 
#line 12903 "configure"
 
9981
#line 9982 "configure"
12903
9982
#include "confdefs.h"
12904
9983
/* Override any gcc2 internal prototype to avoid an error.  */
12905
9984
/* We use char because int might match the return type of a gcc2
12910
9989
fftw_execute()
12911
9990
; return 0; }
12912
9991
EOF
12913
 
if { (eval echo configure:12914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
9992
if { (eval echo configure:9993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12914
9993
  rm -rf conftest*
12915
9994
  eval "ac_cv_lib_$ac_lib_var=yes"
12916
9995
else
12935
10014
 
12936
10015
 
12937
10016
echo $ac_n "checking for fftwnd_one in -lfftw""... $ac_c" 1>&6
12938
 
echo "configure:12939: checking for fftwnd_one in -lfftw" >&5
 
10017
echo "configure:10018: checking for fftwnd_one in -lfftw" >&5
12939
10018
ac_lib_var=`echo fftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
12940
10019
 
12941
10020
ac_save_LIBS="$LIBS"
12942
10021
LIBS="-lfftw $MATHLIB $LIBS"
12943
10022
cat > conftest.$ac_ext <<EOF
12944
 
#line 12945 "configure"
 
10023
#line 10024 "configure"
12945
10024
#include "confdefs.h"
12946
10025
/* Override any gcc2 internal prototype to avoid an error.  */
12947
10026
/* We use char because int might match the return type of a gcc2
12952
10031
fftwnd_one()
12953
10032
; return 0; }
12954
10033
EOF
12955
 
if { (eval echo configure:12956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10034
if { (eval echo configure:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12956
10035
  rm -rf conftest*
12957
10036
  eval "ac_cv_lib_$ac_lib_var=yes"
12958
10037
else
12977
10056
 
12978
10057
 
12979
10058
echo $ac_n "checking for fftwnd_one in -ldfftw""... $ac_c" 1>&6
12980
 
echo "configure:12981: checking for fftwnd_one in -ldfftw" >&5
 
10059
echo "configure:10060: checking for fftwnd_one in -ldfftw" >&5
12981
10060
ac_lib_var=`echo dfftw'_'fftwnd_one | sed 'y%./+-%__p_%'`
12982
10061
 
12983
10062
ac_save_LIBS="$LIBS"
12984
10063
LIBS="-ldfftw $MATHLIB $LIBS"
12985
10064
cat > conftest.$ac_ext <<EOF
12986
 
#line 12987 "configure"
 
10065
#line 10066 "configure"
12987
10066
#include "confdefs.h"
12988
10067
/* Override any gcc2 internal prototype to avoid an error.  */
12989
10068
/* We use char because int might match the return type of a gcc2
12994
10073
fftwnd_one()
12995
10074
; return 0; }
12996
10075
EOF
12997
 
if { (eval echo configure:12998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10076
if { (eval echo configure:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12998
10077
  rm -rf conftest*
12999
10078
  eval "ac_cv_lib_$ac_lib_var=yes"
13000
10079
else
13051
10130
 
13052
10131
 
13053
10132
echo $ac_n "checking whether to use BLAS""... $ac_c" 1>&6
13054
 
echo "configure:13055: checking whether to use BLAS" >&5
 
10133
echo "configure:10134: checking whether to use BLAS" >&5
13055
10134
echo "$ac_t"""$with_blas"" 1>&6
13056
10135
case "$with_blas" in
13057
10136
        "no")   USE_BLAS=       ;;
13072
10151
 
13073
10152
 
13074
10153
echo $ac_n "checking for location of BLAS includes""... $ac_c" 1>&6
13075
 
echo "configure:13076: checking for location of BLAS includes" >&5
 
10154
echo "configure:10155: checking for location of BLAS includes" >&5
13076
10155
case "$with_blas_includes" in
13077
10156
y | ye | yes | n | no)
13078
10157
        { echo "configure: error: *** You must supply a directory to --with-blas-includes." 1>&2; exit 1; }
13092
10171
 
13093
10172
 
13094
10173
echo $ac_n "checking for location of BLAS library""... $ac_c" 1>&6
13095
 
echo "configure:13096: checking for location of BLAS library" >&5
 
10174
echo "configure:10175: checking for location of BLAS library" >&5
13096
10175
case "$with_blas_libs" in
13097
10176
y | ye | yes | n | no)
13098
10177
        { echo "configure: error: *** You must supply a directory to --with-blas-libs." 1>&2; exit 1; }
13118
10197
do
13119
10198
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13120
10199
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13121
 
echo "configure:13122: checking for $ac_hdr" >&5
 
10200
echo "configure:10201: checking for $ac_hdr" >&5
13122
10201
 
13123
10202
cat > conftest.$ac_ext <<EOF
13124
 
#line 13125 "configure"
 
10203
#line 10204 "configure"
13125
10204
#include "confdefs.h"
13126
10205
#include <$ac_hdr>
13127
10206
EOF
13128
10207
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13129
 
{ (eval echo configure:13130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
10208
{ (eval echo configure:10209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13130
10209
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13131
10210
if test -z "$ac_err"; then
13132
10211
  rm -rf conftest*
13161
10240
 
13162
10241
 
13163
10242
echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
13164
 
echo "configure:13165: checking for dnrm2_ in -lblas" >&5
 
10243
echo "configure:10244: checking for dnrm2_ in -lblas" >&5
13165
10244
ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
13166
10245
 
13167
10246
ac_save_LIBS="$LIBS"
13168
10247
LIBS="-lblas $MATHLIB  $LIBS"
13169
10248
cat > conftest.$ac_ext <<EOF
13170
 
#line 13171 "configure"
 
10249
#line 10250 "configure"
13171
10250
#include "confdefs.h"
13172
10251
/* Override any gcc2 internal prototype to avoid an error.  */
13173
10252
/* We use char because int might match the return type of a gcc2
13178
10257
dnrm2_()
13179
10258
; return 0; }
13180
10259
EOF
13181
 
if { (eval echo configure:13182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10260
if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13182
10261
  rm -rf conftest*
13183
10262
  eval "ac_cv_lib_$ac_lib_var=yes"
13184
10263
else
13197
10276
  echo "$ac_t""no" 1>&6
13198
10277
 
13199
10278
echo $ac_n "checking for dnrm2_ in -lblas""... $ac_c" 1>&6
13200
 
echo "configure:13201: checking for dnrm2_ in -lblas" >&5
 
10279
echo "configure:10280: checking for dnrm2_ in -lblas" >&5
13201
10280
ac_lib_var=`echo blas'_'dnrm2_ | sed 'y%./+-%__p_%'`
13202
10281
 
13203
10282
ac_save_LIBS="$LIBS"
13204
10283
LIBS="-lblas $MATHLIB -lg2c $LIBS"
13205
10284
cat > conftest.$ac_ext <<EOF
13206
 
#line 13207 "configure"
 
10285
#line 10286 "configure"
13207
10286
#include "confdefs.h"
13208
10287
/* Override any gcc2 internal prototype to avoid an error.  */
13209
10288
/* We use char because int might match the return type of a gcc2
13214
10293
dnrm2_()
13215
10294
; return 0; }
13216
10295
EOF
13217
 
if { (eval echo configure:13218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10296
if { (eval echo configure:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13218
10297
  rm -rf conftest*
13219
10298
  eval "ac_cv_lib_$ac_lib_var=yes"
13220
10299
else
13258
10337
save_LDFLAGS="$LDFLAGS"
13259
10338
LDFLAGS="$BLASLIB $LDFLAGS"
13260
10339
echo $ac_n "checking for ATL_xerbla in -latlas""... $ac_c" 1>&6
13261
 
echo "configure:13262: checking for ATL_xerbla in -latlas" >&5
 
10340
echo "configure:10341: checking for ATL_xerbla in -latlas" >&5
13262
10341
ac_lib_var=`echo atlas'_'ATL_xerbla | sed 'y%./+-%__p_%'`
13263
10342
 
13264
10343
ac_save_LIBS="$LIBS"
13265
10344
LIBS="-latlas  $LIBS"
13266
10345
cat > conftest.$ac_ext <<EOF
13267
 
#line 13268 "configure"
 
10346
#line 10347 "configure"
13268
10347
#include "confdefs.h"
13269
10348
/* Override any gcc2 internal prototype to avoid an error.  */
13270
10349
/* We use char because int might match the return type of a gcc2
13275
10354
ATL_xerbla()
13276
10355
; return 0; }
13277
10356
EOF
13278
 
if { (eval echo configure:13279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10357
if { (eval echo configure:10358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13279
10358
  rm -rf conftest*
13280
10359
  eval "ac_cv_lib_$ac_lib_var=yes"
13281
10360
else
13290
10369
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13291
10370
  echo "$ac_t""yes" 1>&6
13292
10371
  echo $ac_n "checking for sgemm_ in -lf77blas""... $ac_c" 1>&6
13293
 
echo "configure:13294: checking for sgemm_ in -lf77blas" >&5
 
10372
echo "configure:10373: checking for sgemm_ in -lf77blas" >&5
13294
10373
ac_lib_var=`echo f77blas'_'sgemm_ | sed 'y%./+-%__p_%'`
13295
10374
 
13296
10375
ac_save_LIBS="$LIBS"
13297
10376
LIBS="-lf77blas -latlas $LIBS"
13298
10377
cat > conftest.$ac_ext <<EOF
13299
 
#line 13300 "configure"
 
10378
#line 10379 "configure"
13300
10379
#include "confdefs.h"
13301
10380
/* Override any gcc2 internal prototype to avoid an error.  */
13302
10381
/* We use char because int might match the return type of a gcc2
13307
10386
sgemm_()
13308
10387
; return 0; }
13309
10388
EOF
13310
 
if { (eval echo configure:13311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10389
if { (eval echo configure:10390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13311
10390
  rm -rf conftest*
13312
10391
  eval "ac_cv_lib_$ac_lib_var=yes"
13313
10392
else
13322
10401
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13323
10402
  echo "$ac_t""yes" 1>&6
13324
10403
  echo $ac_n "checking for cblas_dgemm in -lcblas""... $ac_c" 1>&6
13325
 
echo "configure:13326: checking for cblas_dgemm in -lcblas" >&5
 
10404
echo "configure:10405: checking for cblas_dgemm in -lcblas" >&5
13326
10405
ac_lib_var=`echo cblas'_'cblas_dgemm | sed 'y%./+-%__p_%'`
13327
10406
 
13328
10407
ac_save_LIBS="$LIBS"
13329
10408
LIBS="-lcblas -lf77blas -latlas $LIBS"
13330
10409
cat > conftest.$ac_ext <<EOF
13331
 
#line 13332 "configure"
 
10410
#line 10411 "configure"
13332
10411
#include "confdefs.h"
13333
10412
/* Override any gcc2 internal prototype to avoid an error.  */
13334
10413
/* We use char because int might match the return type of a gcc2
13339
10418
cblas_dgemm()
13340
10419
; return 0; }
13341
10420
EOF
13342
 
if { (eval echo configure:13343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10421
if { (eval echo configure:10422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13343
10422
  rm -rf conftest*
13344
10423
  eval "ac_cv_lib_$ac_lib_var=yes"
13345
10424
else
13385
10464
        save_LIBS="$LIBS"
13386
10465
        LIBS="$vlib_flags $LIBS"
13387
10466
        echo $ac_n "checking for sgemm in $vlib_flags""... $ac_c" 1>&6
13388
 
echo "configure:13389: checking for sgemm in $vlib_flags" >&5
 
10467
echo "configure:10468: checking for sgemm in $vlib_flags" >&5
13389
10468
        cat > conftest.$ac_ext <<EOF
13390
 
#line 13391 "configure"
 
10469
#line 10470 "configure"
13391
10470
#include "confdefs.h"
13392
10471
 
13393
10472
int main() {
13394
10473
sgemm
13395
10474
; return 0; }
13396
10475
EOF
13397
 
if { (eval echo configure:13398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10476
if { (eval echo configure:10477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13398
10477
  rm -rf conftest*
13399
10478
  blas_ok=yes; BLASLIB="$vlib_flags"
13400
10479
else
13412
10491
# BLAS in PhiPACK libraries? (requires generic BLAS, too)
13413
10492
if test $blas_ok = no; then
13414
10493
        echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
13415
 
echo "configure:13416: checking for sgemm_ in -lblas" >&5
 
10494
echo "configure:10495: checking for sgemm_ in -lblas" >&5
13416
10495
ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
13417
10496
 
13418
10497
ac_save_LIBS="$LIBS"
13419
10498
LIBS="-lblas  $LIBS"
13420
10499
cat > conftest.$ac_ext <<EOF
13421
 
#line 13422 "configure"
 
10500
#line 10501 "configure"
13422
10501
#include "confdefs.h"
13423
10502
/* Override any gcc2 internal prototype to avoid an error.  */
13424
10503
/* We use char because int might match the return type of a gcc2
13429
10508
sgemm_()
13430
10509
; return 0; }
13431
10510
EOF
13432
 
if { (eval echo configure:13433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10511
if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13433
10512
  rm -rf conftest*
13434
10513
  eval "ac_cv_lib_$ac_lib_var=yes"
13435
10514
else
13444
10523
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13445
10524
  echo "$ac_t""yes" 1>&6
13446
10525
  echo $ac_n "checking for dgemm_ in -ldgemm""... $ac_c" 1>&6
13447
 
echo "configure:13448: checking for dgemm_ in -ldgemm" >&5
 
10526
echo "configure:10527: checking for dgemm_ in -ldgemm" >&5
13448
10527
ac_lib_var=`echo dgemm'_'dgemm_ | sed 'y%./+-%__p_%'`
13449
10528
 
13450
10529
ac_save_LIBS="$LIBS"
13451
10530
LIBS="-ldgemm -lblas $LIBS"
13452
10531
cat > conftest.$ac_ext <<EOF
13453
 
#line 13454 "configure"
 
10532
#line 10533 "configure"
13454
10533
#include "confdefs.h"
13455
10534
/* Override any gcc2 internal prototype to avoid an error.  */
13456
10535
/* We use char because int might match the return type of a gcc2
13461
10540
dgemm_()
13462
10541
; return 0; }
13463
10542
EOF
13464
 
if { (eval echo configure:13465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10543
if { (eval echo configure:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13465
10544
  rm -rf conftest*
13466
10545
  eval "ac_cv_lib_$ac_lib_var=yes"
13467
10546
else
13476
10555
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13477
10556
  echo "$ac_t""yes" 1>&6
13478
10557
  echo $ac_n "checking for sgemm_ in -lsgemm""... $ac_c" 1>&6
13479
 
echo "configure:13480: checking for sgemm_ in -lsgemm" >&5
 
10558
echo "configure:10559: checking for sgemm_ in -lsgemm" >&5
13480
10559
ac_lib_var=`echo sgemm'_'sgemm_ | sed 'y%./+-%__p_%'`
13481
10560
 
13482
10561
ac_save_LIBS="$LIBS"
13483
10562
LIBS="-lsgemm -lblas $LIBS"
13484
10563
cat > conftest.$ac_ext <<EOF
13485
 
#line 13486 "configure"
 
10564
#line 10565 "configure"
13486
10565
#include "confdefs.h"
13487
10566
/* Override any gcc2 internal prototype to avoid an error.  */
13488
10567
/* We use char because int might match the return type of a gcc2
13493
10572
sgemm_()
13494
10573
; return 0; }
13495
10574
EOF
13496
 
if { (eval echo configure:13497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10575
if { (eval echo configure:10576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13497
10576
  rm -rf conftest*
13498
10577
  eval "ac_cv_lib_$ac_lib_var=yes"
13499
10578
else
13527
10606
if test $blas_ok = no; then
13528
10607
        if test "x$GCC" != xyes; then # only works with Sun CC
13529
10608
                echo $ac_n "checking for acosp in -lsunmath""... $ac_c" 1>&6
13530
 
echo "configure:13531: checking for acosp in -lsunmath" >&5
 
10609
echo "configure:10610: checking for acosp in -lsunmath" >&5
13531
10610
ac_lib_var=`echo sunmath'_'acosp | sed 'y%./+-%__p_%'`
13532
10611
 
13533
10612
ac_save_LIBS="$LIBS"
13534
10613
LIBS="-lsunmath  $LIBS"
13535
10614
cat > conftest.$ac_ext <<EOF
13536
 
#line 13537 "configure"
 
10615
#line 10616 "configure"
13537
10616
#include "confdefs.h"
13538
10617
/* Override any gcc2 internal prototype to avoid an error.  */
13539
10618
/* We use char because int might match the return type of a gcc2
13544
10623
acosp()
13545
10624
; return 0; }
13546
10625
EOF
13547
 
if { (eval echo configure:13548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10626
if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13548
10627
  rm -rf conftest*
13549
10628
  eval "ac_cv_lib_$ac_lib_var=yes"
13550
10629
else
13559
10638
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13560
10639
  echo "$ac_t""yes" 1>&6
13561
10640
  echo $ac_n "checking for sgemm_ in -lsunperf""... $ac_c" 1>&6
13562
 
echo "configure:13563: checking for sgemm_ in -lsunperf" >&5
 
10641
echo "configure:10642: checking for sgemm_ in -lsunperf" >&5
13563
10642
ac_lib_var=`echo sunperf'_'sgemm_ | sed 'y%./+-%__p_%'`
13564
10643
 
13565
10644
ac_save_LIBS="$LIBS"
13566
10645
LIBS="-lsunperf -lsunmath $LIBS"
13567
10646
cat > conftest.$ac_ext <<EOF
13568
 
#line 13569 "configure"
 
10647
#line 10648 "configure"
13569
10648
#include "confdefs.h"
13570
10649
/* Override any gcc2 internal prototype to avoid an error.  */
13571
10650
/* We use char because int might match the return type of a gcc2
13576
10655
sgemm_()
13577
10656
; return 0; }
13578
10657
EOF
13579
 
if { (eval echo configure:13580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10658
if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13580
10659
  rm -rf conftest*
13581
10660
  eval "ac_cv_lib_$ac_lib_var=yes"
13582
10661
else
13606
10685
# Generic BLAS library
13607
10686
if test $blas_ok = no; then
13608
10687
        echo $ac_n "checking for sgemm_ in -lblas""... $ac_c" 1>&6
13609
 
echo "configure:13610: checking for sgemm_ in -lblas" >&5
 
10688
echo "configure:10689: checking for sgemm_ in -lblas" >&5
13610
10689
ac_lib_var=`echo blas'_'sgemm_ | sed 'y%./+-%__p_%'`
13611
10690
 
13612
10691
ac_save_LIBS="$LIBS"
13613
10692
LIBS="-lblas  $LIBS"
13614
10693
cat > conftest.$ac_ext <<EOF
13615
 
#line 13616 "configure"
 
10694
#line 10695 "configure"
13616
10695
#include "confdefs.h"
13617
10696
/* Override any gcc2 internal prototype to avoid an error.  */
13618
10697
/* We use char because int might match the return type of a gcc2
13623
10702
sgemm_()
13624
10703
; return 0; }
13625
10704
EOF
13626
 
if { (eval echo configure:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10705
if { (eval echo configure:10706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13627
10706
  rm -rf conftest*
13628
10707
  eval "ac_cv_lib_$ac_lib_var=yes"
13629
10708
else
13662
10741
 
13663
10742
 
13664
10743
echo $ac_n "checking whether to use LAPACK""... $ac_c" 1>&6
13665
 
echo "configure:13666: checking whether to use LAPACK" >&5
 
10744
echo "configure:10745: checking whether to use LAPACK" >&5
13666
10745
echo "$ac_t"""$with_lapack"" 1>&6
13667
10746
case "$with_lapack" in
13668
10747
        "no")   USE_LAPACK=     ;;
13687
10766
 
13688
10767
 
13689
10768
echo $ac_n "checking for location of LAPACK includes""... $ac_c" 1>&6
13690
 
echo "configure:13691: checking for location of LAPACK includes" >&5
 
10769
echo "configure:10770: checking for location of LAPACK includes" >&5
13691
10770
case "$with_lapack_includes" in
13692
10771
y | ye | yes | n | no)
13693
10772
        { echo "configure: error: *** You must supply a directory to --with-lapack-includes." 1>&2; exit 1; }
13707
10786
 
13708
10787
 
13709
10788
echo $ac_n "checking for location of LAPACK library""... $ac_c" 1>&6
13710
 
echo "configure:13711: checking for location of LAPACK library" >&5
 
10789
echo "configure:10790: checking for location of LAPACK library" >&5
13711
10790
case "$with_lapack_libs" in
13712
10791
y | ye | yes | n | no)
13713
10792
        { echo "configure: error: *** You must supply a directory to --with-lapack-libs." 1>&2; exit 1; }
13733
10812
do
13734
10813
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13735
10814
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13736
 
echo "configure:13737: checking for $ac_hdr" >&5
 
10815
echo "configure:10816: checking for $ac_hdr" >&5
13737
10816
 
13738
10817
cat > conftest.$ac_ext <<EOF
13739
 
#line 13740 "configure"
 
10818
#line 10819 "configure"
13740
10819
#include "confdefs.h"
13741
10820
#include <$ac_hdr>
13742
10821
EOF
13743
10822
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13744
 
{ (eval echo configure:13745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
10823
{ (eval echo configure:10824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13745
10824
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13746
10825
if test -z "$ac_err"; then
13747
10826
  rm -rf conftest*
13773
10852
        save_LIBS="$LIBS"; LIBS="$LIBS $BLASLIB $MATHLIB $FLIBS"
13774
10853
        save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
13775
10854
        echo $ac_n "checking for dsegv_""... $ac_c" 1>&6
13776
 
echo "configure:13777: checking for dsegv_" >&5
 
10855
echo "configure:10856: checking for dsegv_" >&5
13777
10856
 
13778
10857
cat > conftest.$ac_ext <<EOF
13779
 
#line 13780 "configure"
 
10858
#line 10859 "configure"
13780
10859
#include "confdefs.h"
13781
10860
/* System header to define __stub macros and hopefully few prototypes,
13782
10861
    which can conflict with char dsegv_(); below.  */
13799
10878
 
13800
10879
; return 0; }
13801
10880
EOF
13802
 
if { (eval echo configure:13803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10881
if { (eval echo configure:10882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13803
10882
  rm -rf conftest*
13804
10883
  eval "ac_cv_func_dsegv_=yes"
13805
10884
else
13826
10905
        save_libs="$LIBS"; LIBS="$BLASLIB $MATHLIB $LIBS"
13827
10906
        save_LDFLAGS="$LDFLAGS"; LDFLAGS="$LAPACKLIB $LDFLAGS"
13828
10907
        echo $ac_n "checking for desgv_ in -llapack""... $ac_c" 1>&6
13829
 
echo "configure:13830: checking for desgv_ in -llapack" >&5
 
10908
echo "configure:10909: checking for desgv_ in -llapack" >&5
13830
10909
ac_lib_var=`echo lapack'_'desgv_ | sed 'y%./+-%__p_%'`
13831
10910
 
13832
10911
ac_save_LIBS="$LIBS"
13833
10912
LIBS="-llapack $FLIBS $LIBS"
13834
10913
cat > conftest.$ac_ext <<EOF
13835
 
#line 13836 "configure"
 
10914
#line 10915 "configure"
13836
10915
#include "confdefs.h"
13837
10916
/* Override any gcc2 internal prototype to avoid an error.  */
13838
10917
/* We use char because int might match the return type of a gcc2
13843
10922
desgv_()
13844
10923
; return 0; }
13845
10924
EOF
13846
 
if { (eval echo configure:13847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10925
if { (eval echo configure:10926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13847
10926
  rm -rf conftest*
13848
10927
  eval "ac_cv_lib_$ac_lib_var=yes"
13849
10928
else
13875
10954
 
13876
10955
 
13877
10956
echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
13878
 
echo "configure:13879: checking for dgesv_ in -llapack" >&5
 
10957
echo "configure:10958: checking for dgesv_ in -llapack" >&5
13879
10958
ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
13880
10959
 
13881
10960
ac_save_LIBS="$LIBS"
13882
10961
LIBS="-llapack $BLASLIB $MATHLIB  $LIBS"
13883
10962
cat > conftest.$ac_ext <<EOF
13884
 
#line 13885 "configure"
 
10963
#line 10964 "configure"
13885
10964
#include "confdefs.h"
13886
10965
/* Override any gcc2 internal prototype to avoid an error.  */
13887
10966
/* We use char because int might match the return type of a gcc2
13892
10971
dgesv_()
13893
10972
; return 0; }
13894
10973
EOF
13895
 
if { (eval echo configure:13896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
10974
if { (eval echo configure:10975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13896
10975
  rm -rf conftest*
13897
10976
  eval "ac_cv_lib_$ac_lib_var=yes"
13898
10977
else
13911
10990
  echo "$ac_t""no" 1>&6
13912
10991
 
13913
10992
echo $ac_n "checking for dgesv_ in -llapack""... $ac_c" 1>&6
13914
 
echo "configure:13915: checking for dgesv_ in -llapack" >&5
 
10993
echo "configure:10994: checking for dgesv_ in -llapack" >&5
13915
10994
ac_lib_var=`echo lapack'_'dgesv_ | sed 'y%./+-%__p_%'`
13916
10995
 
13917
10996
ac_save_LIBS="$LIBS"
13918
10997
LIBS="-llapack $BLASLIB $MATHLIB -lg2c $LIBS"
13919
10998
cat > conftest.$ac_ext <<EOF
13920
 
#line 13921 "configure"
 
10999
#line 11000 "configure"
13921
11000
#include "confdefs.h"
13922
11001
/* Override any gcc2 internal prototype to avoid an error.  */
13923
11002
/* We use char because int might match the return type of a gcc2
13928
11007
dgesv_()
13929
11008
; return 0; }
13930
11009
EOF
13931
 
if { (eval echo configure:13932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
11010
if { (eval echo configure:11011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13932
11011
  rm -rf conftest*
13933
11012
  eval "ac_cv_lib_$ac_lib_var=yes"
13934
11013
else
13980
11059
 
13981
11060
# Done checking LAPACK
13982
11061
 
13983
 
# Enable Motif option
13984
 
 
13985
 
 
13986
 
echo $ac_n "checking whether to use Motif""... $ac_c" 1>&6
13987
 
echo "configure:13988: checking whether to use Motif" >&5
13988
 
echo "$ac_t"""$with_motif"" 1>&6
13989
 
case "$with_motif" in
13990
 
        "no")   USE_MOTIF=      ;;
13991
 
        "yes")  USE_MOTIF="1"   ;;
13992
 
        *)      { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; }       ;;
13993
 
esac
13994
 
 
13995
 
 
13996
 
 
13997
 
XMINC=
13998
 
XMLIB=
13999
 
 
14000
 
if test -n "$USE_MOTIF"; then
14001
 
 
14002
 
# With Motif includes directory
14003
 
 
14004
 
 
14005
 
echo $ac_n "checking for location of Motif includes""... $ac_c" 1>&6
14006
 
echo "configure:14007: checking for location of Motif includes" >&5
14007
 
case "$with_motif_includes" in
14008
 
y | ye | yes | n | no)
14009
 
        { echo "configure: error: *** You must supply a directory to --with-motif-includes." 1>&2; exit 1; }
14010
 
        ;;
14011
 
esac
14012
 
echo "$ac_t""$with_motif_includes" 1>&6
14013
 
 
14014
 
if test -n "$with_motif_includes" ; then
14015
 
    for dir in $with_motif_includes; do
14016
 
        if test -d "$dir"; then
14017
 
            XMINC="$XMINC -I$dir"
14018
 
        else
14019
 
            { echo "configure: error: *** Motif includes directory $dir does not exist." 1>&2; exit 1; }
14020
 
        fi
14021
 
    done
14022
 
fi
14023
 
 
14024
 
 
14025
 
 
14026
 
ac_save_cppflags="$CPPFLAGS"
14027
 
CPPFLAGS="$XMINC $X_CFLAGS $CPPFLAGS"
14028
 
for ac_hdr in Xm/Xm.h
14029
 
do
14030
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14031
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14032
 
echo "configure:14033: checking for $ac_hdr" >&5
14033
 
 
14034
 
cat > conftest.$ac_ext <<EOF
14035
 
#line 14036 "configure"
14036
 
#include "confdefs.h"
14037
 
#include <$ac_hdr>
14038
 
EOF
14039
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14040
 
{ (eval echo configure:14041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14041
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14042
 
if test -z "$ac_err"; then
14043
 
  rm -rf conftest*
14044
 
  eval "ac_cv_header_$ac_safe=yes"
14045
 
else
14046
 
  echo "$ac_err" >&5
14047
 
  echo "configure: failed program was:" >&5
14048
 
  cat conftest.$ac_ext >&5
14049
 
  rm -rf conftest*
14050
 
  eval "ac_cv_header_$ac_safe=no"
14051
 
fi
14052
 
rm -f conftest*
14053
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14054
 
  echo "$ac_t""yes" 1>&6
14055
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14056
 
  cat >> confdefs.h <<EOF
14057
 
#define $ac_tr_hdr 1
14058
 
EOF
14059
 
 
14060
 
else
14061
 
  echo "$ac_t""no" 1>&6
14062
 
{ echo "configure: error: *** Unable to locate Motif includes." 1>&2; exit 1; }
14063
 
 
14064
 
fi
14065
 
done
14066
 
 
14067
 
CPPFLAGS=$ac_save_cppflags
14068
 
 
14069
 
 
14070
 
# With Motif library directory
14071
 
 
14072
 
 
14073
 
echo $ac_n "checking for location of Motif library""... $ac_c" 1>&6
14074
 
echo "configure:14075: checking for location of Motif library" >&5
14075
 
case "$with_motif_libs" in
14076
 
y | ye | yes | n | no)
14077
 
        { echo "configure: error: *** You must supply a directory to --with-motif-libs." 1>&2; exit 1; }
14078
 
        ;;
14079
 
esac
14080
 
echo "$ac_t""$with_motif_libs" 1>&6
14081
 
 
14082
 
if test -n "$with_motif_libs"; then
14083
 
    for dir in $with_motif_libs; do
14084
 
        if test -d "$dir"; then
14085
 
            XMLIB="$XMLIB -L$dir"
14086
 
        else
14087
 
            { echo "configure: error: *** Motif library directory $dir does not exist." 1>&2; exit 1; }
14088
 
        fi
14089
 
    done
14090
 
fi
14091
 
 
14092
 
 
14093
 
 
14094
 
ac_save_ldflags="$LDFLAGS"
14095
 
LDFLAGS="$XMLIB $LDFLAGS"
14096
 
 
14097
 
 
14098
 
echo $ac_n "checking for XmStringCreate in -lXm""... $ac_c" 1>&6
14099
 
echo "configure:14100: checking for XmStringCreate in -lXm" >&5
14100
 
ac_lib_var=`echo Xm'_'XmStringCreate | sed 'y%./+-%__p_%'`
14101
 
 
14102
 
ac_save_LIBS="$LIBS"
14103
 
LIBS="-lXm $X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS  $LIBS"
14104
 
cat > conftest.$ac_ext <<EOF
14105
 
#line 14106 "configure"
14106
 
#include "confdefs.h"
14107
 
/* Override any gcc2 internal prototype to avoid an error.  */
14108
 
/* We use char because int might match the return type of a gcc2
14109
 
    builtin and then its argument prototype would still apply.  */
14110
 
char XmStringCreate();
14111
 
 
14112
 
int main() {
14113
 
XmStringCreate()
14114
 
; return 0; }
14115
 
EOF
14116
 
if { (eval echo configure:14117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14117
 
  rm -rf conftest*
14118
 
  eval "ac_cv_lib_$ac_lib_var=yes"
14119
 
else
14120
 
  echo "configure: failed program was:" >&5
14121
 
  cat conftest.$ac_ext >&5
14122
 
  rm -rf conftest*
14123
 
  eval "ac_cv_lib_$ac_lib_var=no"
14124
 
fi
14125
 
rm -f conftest*
14126
 
LIBS="$ac_save_LIBS"
14127
 
 
14128
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14129
 
  echo "$ac_t""yes" 1>&6
14130
 
  XMLIB="$XMLIB -lXm "
14131
 
else
14132
 
  echo "$ac_t""no" 1>&6
14133
 
 
14134
 
LDFLAGS=${ac_save_ldflags}
14135
 
 
14136
 
    { echo "configure: error: *** Unable to locate Motif library." 1>&2; exit 1; }
14137
 
 
14138
 
 
14139
 
fi
14140
 
 
14141
 
 
14142
 
 
14143
 
LDFLAGS=${ac_save_ldflags}
14144
 
 
14145
 
 
14146
 
fi # $USE_MOTIF
14147
 
 
14148
 
 
14149
 
 
14150
 
 
14151
 
# Done checking Motif
14152
 
 
14153
11062
# Enable Cairo display driver option
14154
11063
 
14155
11064
 
14156
11065
echo $ac_n "checking whether to use Cairo""... $ac_c" 1>&6
14157
 
echo "configure:14158: checking whether to use Cairo" >&5
 
11066
echo "configure:11067: checking whether to use Cairo" >&5
14158
11067
echo "$ac_t"""$with_cairo"" 1>&6
14159
11068
case "$with_cairo" in
14160
11069
        "no")   USE_CAIRO=      ;;
14170
11079
if test -n "$USE_CAIRO"; then
14171
11080
 
14172
11081
cairo="cairo"
14173
 
pkgs="cairo-ft cairo-fc"
 
11082
pkgs="cairo-ft cairo-fc cairo-pdf cairo-ps cairo-svg fontconfig"
14174
11083
if test -n "$USE_X11"; then
14175
 
        pkgs="$pkgs cairo-xlib-xrender"
 
11084
        pkgs="$pkgs cairo-xlib cairo-xlib-xrender"
14176
11085
fi
14177
11086
for pkg in $pkgs ; do
14178
11087
    if pkg-config --exists $pkg ; then
14186
11095
 
14187
11096
 
14188
11097
echo $ac_n "checking for location of cairo includes""... $ac_c" 1>&6
14189
 
echo "configure:14190: checking for location of cairo includes" >&5
 
11098
echo "configure:11099: checking for location of cairo includes" >&5
14190
11099
case "$with_cairo_includes" in
14191
11100
y | ye | yes | n | no)
14192
11101
        { echo "configure: error: *** You must supply a directory to --with-cairo-includes." 1>&2; exit 1; }
14212
11121
do
14213
11122
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14214
11123
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14215
 
echo "configure:14216: checking for $ac_hdr" >&5
 
11124
echo "configure:11125: checking for $ac_hdr" >&5
14216
11125
 
14217
11126
cat > conftest.$ac_ext <<EOF
14218
 
#line 14219 "configure"
 
11127
#line 11128 "configure"
14219
11128
#include "confdefs.h"
14220
11129
#include <$ac_hdr>
14221
11130
EOF
14222
11131
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14223
 
{ (eval echo configure:14224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
11132
{ (eval echo configure:11133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14224
11133
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14225
11134
if test -z "$ac_err"; then
14226
11135
  rm -rf conftest*
14256
11165
 
14257
11166
 
14258
11167
echo $ac_n "checking for location of cairo library""... $ac_c" 1>&6
14259
 
echo "configure:14260: checking for location of cairo library" >&5
 
11168
echo "configure:11169: checking for location of cairo library" >&5
14260
11169
case "$with_cairo_libs" in
14261
11170
y | ye | yes | n | no)
14262
11171
        { echo "configure: error: *** You must supply a directory to --with-cairo-libs." 1>&2; exit 1; }
14276
11185
 
14277
11186
 
14278
11187
echo $ac_n "checking for cairo linking flags""... $ac_c" 1>&6
14279
 
echo "configure:14280: checking for cairo linking flags" >&5
 
11188
echo "configure:11189: checking for cairo linking flags" >&5
14280
11189
case "$with_cairo_ldflags" in
14281
11190
y | ye | yes | n | no)
14282
11191
        { echo "configure: error: *** You must supply a directory to --with-cairo-ldflags." 1>&2; exit 1; }
14292
11201
LIBS=" $CAIROLIB $LIBS"
14293
11202
LDFLAGS=" $LDFLAGS"
14294
11203
echo $ac_n "checking for cairo_create""... $ac_c" 1>&6
14295
 
echo "configure:14296: checking for cairo_create" >&5
 
11204
echo "configure:11205: checking for cairo_create" >&5
14296
11205
 
14297
11206
cat > conftest.$ac_ext <<EOF
14298
 
#line 14299 "configure"
 
11207
#line 11208 "configure"
14299
11208
#include "confdefs.h"
14300
11209
/* System header to define __stub macros and hopefully few prototypes,
14301
11210
    which can conflict with char cairo_create(); below.  */
14318
11227
 
14319
11228
; return 0; }
14320
11229
EOF
14321
 
if { (eval echo configure:14322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
11230
if { (eval echo configure:11231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14322
11231
  rm -rf conftest*
14323
11232
  eval "ac_cv_func_cairo_create=yes"
14324
11233
else
14352
11261
LIBS=" $CAIROLIB $LIBS"
14353
11262
LDFLAGS=" $LDFLAGS"
14354
11263
echo $ac_n "checking for cairo_xlib_surface_create_with_xrender_format""... $ac_c" 1>&6
14355
 
echo "configure:14356: checking for cairo_xlib_surface_create_with_xrender_format" >&5
 
11264
echo "configure:11265: checking for cairo_xlib_surface_create_with_xrender_format" >&5
14356
11265
 
14357
11266
cat > conftest.$ac_ext <<EOF
14358
 
#line 14359 "configure"
 
11267
#line 11268 "configure"
14359
11268
#include "confdefs.h"
14360
11269
/* System header to define __stub macros and hopefully few prototypes,
14361
11270
    which can conflict with char cairo_xlib_surface_create_with_xrender_format(); below.  */
14378
11287
 
14379
11288
; return 0; }
14380
11289
EOF
14381
 
if { (eval echo configure:14382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
11290
if { (eval echo configure:11291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14382
11291
  rm -rf conftest*
14383
11292
  eval "ac_cv_func_cairo_xlib_surface_create_with_xrender_format=yes"
14384
11293
else
14397
11306
else
14398
11307
  echo "$ac_t""no" 1>&6
14399
11308
 
14400
 
CAIRO_HAS_XRENDER=0
 
11309
CAIRO_HAS_XRENDER=
14401
11310
 
14402
11311
fi
14403
11312
 
14411
11320
LIBS=" $CAIROLIB $LIBS"
14412
11321
LDFLAGS=" $LDFLAGS"
14413
11322
echo $ac_n "checking for cairo_xlib_surface_get_xrender_format""... $ac_c" 1>&6
14414
 
echo "configure:14415: checking for cairo_xlib_surface_get_xrender_format" >&5
 
11323
echo "configure:11324: checking for cairo_xlib_surface_get_xrender_format" >&5
14415
11324
 
14416
11325
cat > conftest.$ac_ext <<EOF
14417
 
#line 14418 "configure"
 
11326
#line 11327 "configure"
14418
11327
#include "confdefs.h"
14419
11328
/* System header to define __stub macros and hopefully few prototypes,
14420
11329
    which can conflict with char cairo_xlib_surface_get_xrender_format(); below.  */
14437
11346
 
14438
11347
; return 0; }
14439
11348
EOF
14440
 
if { (eval echo configure:14441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
11349
if { (eval echo configure:11350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14441
11350
  rm -rf conftest*
14442
11351
  eval "ac_cv_func_cairo_xlib_surface_get_xrender_format=yes"
14443
11352
else
14475
11384
 
14476
11385
# Done checking Cairo
14477
11386
 
14478
 
# Enable GLw option
14479
 
 
14480
 
 
14481
 
echo $ac_n "checking whether to use GLw""... $ac_c" 1>&6
14482
 
echo "configure:14483: checking whether to use GLw" >&5
14483
 
echo "$ac_t"""$with_glw"" 1>&6
14484
 
case "$with_glw" in
14485
 
        "no")   USE_GLW=        ;;
14486
 
        "yes")  USE_GLW="1"     ;;
14487
 
        *)      { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; }       ;;
14488
 
esac
14489
 
 
14490
 
 
14491
 
 
14492
 
OPENGLWINC=
14493
 
OPENGLWM=
14494
 
 
14495
 
if test -n "$USE_GLW"; then
14496
 
 
14497
 
# With GLw includes directory
14498
 
 
14499
 
 
14500
 
echo $ac_n "checking for location of GLw includes""... $ac_c" 1>&6
14501
 
echo "configure:14502: checking for location of GLw includes" >&5
14502
 
case "$with_glw_includes" in
14503
 
y | ye | yes | n | no)
14504
 
        { echo "configure: error: *** You must supply a directory to --with-glw-includes." 1>&2; exit 1; }
14505
 
        ;;
14506
 
esac
14507
 
echo "$ac_t""$with_glw_includes" 1>&6
14508
 
 
14509
 
if test -n "$with_glw_includes" ; then
14510
 
    for dir in $with_glw_includes; do
14511
 
        if test -d "$dir"; then
14512
 
            OPENGLWINC="$OPENGLWINC -I$dir"
14513
 
        else
14514
 
            { echo "configure: error: *** GLw includes directory $dir does not exist." 1>&2; exit 1; }
14515
 
        fi
14516
 
    done
14517
 
fi
14518
 
 
14519
 
 
14520
 
 
14521
 
ac_save_cppflags="$CPPFLAGS"
14522
 
CPPFLAGS="$OPENGLWINC $XMINC $X_CFLAGS $OPENGLINC $CPPFLAGS"
14523
 
for ac_hdr in GL/GLwMDrawA.h
14524
 
do
14525
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14526
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14527
 
echo "configure:14528: checking for $ac_hdr" >&5
14528
 
 
14529
 
cat > conftest.$ac_ext <<EOF
14530
 
#line 14531 "configure"
14531
 
#include "confdefs.h"
14532
 
#include <$ac_hdr>
14533
 
EOF
14534
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14535
 
{ (eval echo configure:14536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14536
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14537
 
if test -z "$ac_err"; then
14538
 
  rm -rf conftest*
14539
 
  eval "ac_cv_header_$ac_safe=yes"
14540
 
else
14541
 
  echo "$ac_err" >&5
14542
 
  echo "configure: failed program was:" >&5
14543
 
  cat conftest.$ac_ext >&5
14544
 
  rm -rf conftest*
14545
 
  eval "ac_cv_header_$ac_safe=no"
14546
 
fi
14547
 
rm -f conftest*
14548
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14549
 
  echo "$ac_t""yes" 1>&6
14550
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14551
 
  cat >> confdefs.h <<EOF
14552
 
#define $ac_tr_hdr 1
14553
 
EOF
14554
 
 
14555
 
else
14556
 
  echo "$ac_t""no" 1>&6
14557
 
ac_save_cppflags="$CPPFLAGS"
14558
 
CPPFLAGS=" $CPPFLAGS"
14559
 
for ac_hdr in X11/GLw/GLwMDrawA.h
14560
 
do
14561
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14562
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14563
 
echo "configure:14564: checking for $ac_hdr" >&5
14564
 
 
14565
 
cat > conftest.$ac_ext <<EOF
14566
 
#line 14567 "configure"
14567
 
#include "confdefs.h"
14568
 
#include <$ac_hdr>
14569
 
EOF
14570
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14571
 
{ (eval echo configure:14572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14572
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14573
 
if test -z "$ac_err"; then
14574
 
  rm -rf conftest*
14575
 
  eval "ac_cv_header_$ac_safe=yes"
14576
 
else
14577
 
  echo "$ac_err" >&5
14578
 
  echo "configure: failed program was:" >&5
14579
 
  cat conftest.$ac_ext >&5
14580
 
  rm -rf conftest*
14581
 
  eval "ac_cv_header_$ac_safe=no"
14582
 
fi
14583
 
rm -f conftest*
14584
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14585
 
  echo "$ac_t""yes" 1>&6
14586
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14587
 
  cat >> confdefs.h <<EOF
14588
 
#define $ac_tr_hdr 1
14589
 
EOF
14590
 
 
14591
 
else
14592
 
  echo "$ac_t""no" 1>&6
14593
 
{ echo "configure: error: *** Unable to locate GLwM includes." 1>&2; exit 1; }
14594
 
 
14595
 
fi
14596
 
done
14597
 
 
14598
 
CPPFLAGS=$ac_save_cppflags
14599
 
 
14600
 
 
14601
 
fi
14602
 
done
14603
 
 
14604
 
CPPFLAGS=$ac_save_cppflags
14605
 
 
14606
 
 
14607
 
# With GLw library directory
14608
 
 
14609
 
 
14610
 
echo $ac_n "checking for location of GLw library""... $ac_c" 1>&6
14611
 
echo "configure:14612: checking for location of GLw library" >&5
14612
 
case "$with_glw_libs" in
14613
 
y | ye | yes | n | no)
14614
 
        { echo "configure: error: *** You must supply a directory to --with-glw-libs." 1>&2; exit 1; }
14615
 
        ;;
14616
 
esac
14617
 
echo "$ac_t""$with_glw_libs" 1>&6
14618
 
 
14619
 
if test -n "$with_glw_libs"; then
14620
 
    for dir in $with_glw_libs; do
14621
 
        if test -d "$dir"; then
14622
 
            OPENGLWM="$OPENGLWM -L$dir"
14623
 
        else
14624
 
            { echo "configure: error: *** GLw library directory $dir does not exist." 1>&2; exit 1; }
14625
 
        fi
14626
 
    done
14627
 
fi
14628
 
 
14629
 
 
14630
 
 
14631
 
ac_save_ldflags="$LDFLAGS"
14632
 
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14633
 
 
14634
 
 
14635
 
echo $ac_n "checking for GLwCreateMDrawingArea in -lGLw""... $ac_c" 1>&6
14636
 
echo "configure:14637: checking for GLwCreateMDrawingArea in -lGLw" >&5
14637
 
ac_lib_var=`echo GLw'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
14638
 
 
14639
 
ac_save_LIBS="$LIBS"
14640
 
LIBS="-lGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
14641
 
cat > conftest.$ac_ext <<EOF
14642
 
#line 14643 "configure"
14643
 
#include "confdefs.h"
14644
 
/* Override any gcc2 internal prototype to avoid an error.  */
14645
 
/* We use char because int might match the return type of a gcc2
14646
 
    builtin and then its argument prototype would still apply.  */
14647
 
char GLwCreateMDrawingArea();
14648
 
 
14649
 
int main() {
14650
 
GLwCreateMDrawingArea()
14651
 
; return 0; }
14652
 
EOF
14653
 
if { (eval echo configure:14654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14654
 
  rm -rf conftest*
14655
 
  eval "ac_cv_lib_$ac_lib_var=yes"
14656
 
else
14657
 
  echo "configure: failed program was:" >&5
14658
 
  cat conftest.$ac_ext >&5
14659
 
  rm -rf conftest*
14660
 
  eval "ac_cv_lib_$ac_lib_var=no"
14661
 
fi
14662
 
rm -f conftest*
14663
 
LIBS="$ac_save_LIBS"
14664
 
 
14665
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14666
 
  echo "$ac_t""yes" 1>&6
14667
 
  OPENGLWM="$OPENGLWM -lGLw "
14668
 
else
14669
 
  echo "$ac_t""no" 1>&6
14670
 
 
14671
 
LDFLAGS=${ac_save_ldflags}
14672
 
 
14673
 
ac_save_ldflags="$LDFLAGS"
14674
 
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14675
 
 
14676
 
 
14677
 
echo $ac_n "checking for GLwCreateM1DrawingArea in -lGLw""... $ac_c" 1>&6
14678
 
echo "configure:14679: checking for GLwCreateM1DrawingArea in -lGLw" >&5
14679
 
ac_lib_var=`echo GLw'_'GLwCreateM1DrawingArea | sed 'y%./+-%__p_%'`
14680
 
 
14681
 
ac_save_LIBS="$LIBS"
14682
 
LIBS="-lGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
14683
 
cat > conftest.$ac_ext <<EOF
14684
 
#line 14685 "configure"
14685
 
#include "confdefs.h"
14686
 
/* Override any gcc2 internal prototype to avoid an error.  */
14687
 
/* We use char because int might match the return type of a gcc2
14688
 
    builtin and then its argument prototype would still apply.  */
14689
 
char GLwCreateM1DrawingArea();
14690
 
 
14691
 
int main() {
14692
 
GLwCreateM1DrawingArea()
14693
 
; return 0; }
14694
 
EOF
14695
 
if { (eval echo configure:14696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14696
 
  rm -rf conftest*
14697
 
  eval "ac_cv_lib_$ac_lib_var=yes"
14698
 
else
14699
 
  echo "configure: failed program was:" >&5
14700
 
  cat conftest.$ac_ext >&5
14701
 
  rm -rf conftest*
14702
 
  eval "ac_cv_lib_$ac_lib_var=no"
14703
 
fi
14704
 
rm -f conftest*
14705
 
LIBS="$ac_save_LIBS"
14706
 
 
14707
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14708
 
  echo "$ac_t""yes" 1>&6
14709
 
  OPENGLWM="$OPENGLWM -lGLw "
14710
 
else
14711
 
  echo "$ac_t""no" 1>&6
14712
 
 
14713
 
LDFLAGS=${ac_save_ldflags}
14714
 
 
14715
 
ac_save_ldflags="$LDFLAGS"
14716
 
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14717
 
 
14718
 
 
14719
 
echo $ac_n "checking for GLwCreateM2DrawingArea in -lGLw""... $ac_c" 1>&6
14720
 
echo "configure:14721: checking for GLwCreateM2DrawingArea in -lGLw" >&5
14721
 
ac_lib_var=`echo GLw'_'GLwCreateM2DrawingArea | sed 'y%./+-%__p_%'`
14722
 
 
14723
 
ac_save_LIBS="$LIBS"
14724
 
LIBS="-lGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
14725
 
cat > conftest.$ac_ext <<EOF
14726
 
#line 14727 "configure"
14727
 
#include "confdefs.h"
14728
 
/* Override any gcc2 internal prototype to avoid an error.  */
14729
 
/* We use char because int might match the return type of a gcc2
14730
 
    builtin and then its argument prototype would still apply.  */
14731
 
char GLwCreateM2DrawingArea();
14732
 
 
14733
 
int main() {
14734
 
GLwCreateM2DrawingArea()
14735
 
; return 0; }
14736
 
EOF
14737
 
if { (eval echo configure:14738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14738
 
  rm -rf conftest*
14739
 
  eval "ac_cv_lib_$ac_lib_var=yes"
14740
 
else
14741
 
  echo "configure: failed program was:" >&5
14742
 
  cat conftest.$ac_ext >&5
14743
 
  rm -rf conftest*
14744
 
  eval "ac_cv_lib_$ac_lib_var=no"
14745
 
fi
14746
 
rm -f conftest*
14747
 
LIBS="$ac_save_LIBS"
14748
 
 
14749
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14750
 
  echo "$ac_t""yes" 1>&6
14751
 
  OPENGLWM="$OPENGLWM -lGLw "
14752
 
else
14753
 
  echo "$ac_t""no" 1>&6
14754
 
 
14755
 
LDFLAGS=${ac_save_ldflags}
14756
 
 
14757
 
ac_save_ldflags="$LDFLAGS"
14758
 
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14759
 
 
14760
 
 
14761
 
echo $ac_n "checking for GLwCreateMDrawingArea in -lGLwM""... $ac_c" 1>&6
14762
 
echo "configure:14763: checking for GLwCreateMDrawingArea in -lGLwM" >&5
14763
 
ac_lib_var=`echo GLwM'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
14764
 
 
14765
 
ac_save_LIBS="$LIBS"
14766
 
LIBS="-lGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
14767
 
cat > conftest.$ac_ext <<EOF
14768
 
#line 14769 "configure"
14769
 
#include "confdefs.h"
14770
 
/* Override any gcc2 internal prototype to avoid an error.  */
14771
 
/* We use char because int might match the return type of a gcc2
14772
 
    builtin and then its argument prototype would still apply.  */
14773
 
char GLwCreateMDrawingArea();
14774
 
 
14775
 
int main() {
14776
 
GLwCreateMDrawingArea()
14777
 
; return 0; }
14778
 
EOF
14779
 
if { (eval echo configure:14780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14780
 
  rm -rf conftest*
14781
 
  eval "ac_cv_lib_$ac_lib_var=yes"
14782
 
else
14783
 
  echo "configure: failed program was:" >&5
14784
 
  cat conftest.$ac_ext >&5
14785
 
  rm -rf conftest*
14786
 
  eval "ac_cv_lib_$ac_lib_var=no"
14787
 
fi
14788
 
rm -f conftest*
14789
 
LIBS="$ac_save_LIBS"
14790
 
 
14791
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14792
 
  echo "$ac_t""yes" 1>&6
14793
 
  OPENGLWM="$OPENGLWM -lGLwM "
14794
 
else
14795
 
  echo "$ac_t""no" 1>&6
14796
 
 
14797
 
LDFLAGS=${ac_save_ldflags}
14798
 
 
14799
 
ac_save_ldflags="$LDFLAGS"
14800
 
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14801
 
 
14802
 
 
14803
 
echo $ac_n "checking for GLwCreateM1DrawingArea in -lGLwM""... $ac_c" 1>&6
14804
 
echo "configure:14805: checking for GLwCreateM1DrawingArea in -lGLwM" >&5
14805
 
ac_lib_var=`echo GLwM'_'GLwCreateM1DrawingArea | sed 'y%./+-%__p_%'`
14806
 
 
14807
 
ac_save_LIBS="$LIBS"
14808
 
LIBS="-lGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
14809
 
cat > conftest.$ac_ext <<EOF
14810
 
#line 14811 "configure"
14811
 
#include "confdefs.h"
14812
 
/* Override any gcc2 internal prototype to avoid an error.  */
14813
 
/* We use char because int might match the return type of a gcc2
14814
 
    builtin and then its argument prototype would still apply.  */
14815
 
char GLwCreateM1DrawingArea();
14816
 
 
14817
 
int main() {
14818
 
GLwCreateM1DrawingArea()
14819
 
; return 0; }
14820
 
EOF
14821
 
if { (eval echo configure:14822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14822
 
  rm -rf conftest*
14823
 
  eval "ac_cv_lib_$ac_lib_var=yes"
14824
 
else
14825
 
  echo "configure: failed program was:" >&5
14826
 
  cat conftest.$ac_ext >&5
14827
 
  rm -rf conftest*
14828
 
  eval "ac_cv_lib_$ac_lib_var=no"
14829
 
fi
14830
 
rm -f conftest*
14831
 
LIBS="$ac_save_LIBS"
14832
 
 
14833
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14834
 
  echo "$ac_t""yes" 1>&6
14835
 
  OPENGLWM="$OPENGLWM -lGLwM "
14836
 
else
14837
 
  echo "$ac_t""no" 1>&6
14838
 
 
14839
 
LDFLAGS=${ac_save_ldflags}
14840
 
 
14841
 
ac_save_ldflags="$LDFLAGS"
14842
 
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14843
 
 
14844
 
 
14845
 
echo $ac_n "checking for GLwCreateM2DrawingArea in -lGLwM""... $ac_c" 1>&6
14846
 
echo "configure:14847: checking for GLwCreateM2DrawingArea in -lGLwM" >&5
14847
 
ac_lib_var=`echo GLwM'_'GLwCreateM2DrawingArea | sed 'y%./+-%__p_%'`
14848
 
 
14849
 
ac_save_LIBS="$LIBS"
14850
 
LIBS="-lGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
14851
 
cat > conftest.$ac_ext <<EOF
14852
 
#line 14853 "configure"
14853
 
#include "confdefs.h"
14854
 
/* Override any gcc2 internal prototype to avoid an error.  */
14855
 
/* We use char because int might match the return type of a gcc2
14856
 
    builtin and then its argument prototype would still apply.  */
14857
 
char GLwCreateM2DrawingArea();
14858
 
 
14859
 
int main() {
14860
 
GLwCreateM2DrawingArea()
14861
 
; return 0; }
14862
 
EOF
14863
 
if { (eval echo configure:14864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14864
 
  rm -rf conftest*
14865
 
  eval "ac_cv_lib_$ac_lib_var=yes"
14866
 
else
14867
 
  echo "configure: failed program was:" >&5
14868
 
  cat conftest.$ac_ext >&5
14869
 
  rm -rf conftest*
14870
 
  eval "ac_cv_lib_$ac_lib_var=no"
14871
 
fi
14872
 
rm -f conftest*
14873
 
LIBS="$ac_save_LIBS"
14874
 
 
14875
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14876
 
  echo "$ac_t""yes" 1>&6
14877
 
  OPENGLWM="$OPENGLWM -lGLwM "
14878
 
else
14879
 
  echo "$ac_t""no" 1>&6
14880
 
 
14881
 
LDFLAGS=${ac_save_ldflags}
14882
 
 
14883
 
ac_save_ldflags="$LDFLAGS"
14884
 
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14885
 
 
14886
 
 
14887
 
 
14888
 
 
14889
 
echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLw""... $ac_c" 1>&6
14890
 
echo "configure:14891: checking for GLwCreateMDrawingArea in -lMesaGLw" >&5
14891
 
ac_lib_var=`echo MesaGLw'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
14892
 
 
14893
 
ac_save_LIBS="$LIBS"
14894
 
LIBS="-lMesaGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
14895
 
cat > conftest.$ac_ext <<EOF
14896
 
#line 14897 "configure"
14897
 
#include "confdefs.h"
14898
 
/* Override any gcc2 internal prototype to avoid an error.  */
14899
 
/* We use char because int might match the return type of a gcc2
14900
 
    builtin and then its argument prototype would still apply.  */
14901
 
char GLwCreateMDrawingArea();
14902
 
 
14903
 
int main() {
14904
 
GLwCreateMDrawingArea()
14905
 
; return 0; }
14906
 
EOF
14907
 
if { (eval echo configure:14908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14908
 
  rm -rf conftest*
14909
 
  eval "ac_cv_lib_$ac_lib_var=yes"
14910
 
else
14911
 
  echo "configure: failed program was:" >&5
14912
 
  cat conftest.$ac_ext >&5
14913
 
  rm -rf conftest*
14914
 
  eval "ac_cv_lib_$ac_lib_var=no"
14915
 
fi
14916
 
rm -f conftest*
14917
 
LIBS="$ac_save_LIBS"
14918
 
 
14919
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14920
 
  echo "$ac_t""yes" 1>&6
14921
 
  OPENGLWM="$OPENGLWM -lMesaGLw "
14922
 
else
14923
 
  echo "$ac_t""no" 1>&6
14924
 
 
14925
 
echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLw""... $ac_c" 1>&6
14926
 
echo "configure:14927: checking for GLwCreateMDrawingArea in -lMesaGLw" >&5
14927
 
ac_lib_var=`echo MesaGLw'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
14928
 
 
14929
 
ac_save_LIBS="$LIBS"
14930
 
LIBS="-lMesaGLw $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $OPENGLULIB $LIBS"
14931
 
cat > conftest.$ac_ext <<EOF
14932
 
#line 14933 "configure"
14933
 
#include "confdefs.h"
14934
 
/* Override any gcc2 internal prototype to avoid an error.  */
14935
 
/* We use char because int might match the return type of a gcc2
14936
 
    builtin and then its argument prototype would still apply.  */
14937
 
char GLwCreateMDrawingArea();
14938
 
 
14939
 
int main() {
14940
 
GLwCreateMDrawingArea()
14941
 
; return 0; }
14942
 
EOF
14943
 
if { (eval echo configure:14944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14944
 
  rm -rf conftest*
14945
 
  eval "ac_cv_lib_$ac_lib_var=yes"
14946
 
else
14947
 
  echo "configure: failed program was:" >&5
14948
 
  cat conftest.$ac_ext >&5
14949
 
  rm -rf conftest*
14950
 
  eval "ac_cv_lib_$ac_lib_var=no"
14951
 
fi
14952
 
rm -f conftest*
14953
 
LIBS="$ac_save_LIBS"
14954
 
 
14955
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14956
 
  echo "$ac_t""yes" 1>&6
14957
 
  OPENGLWM="$OPENGLWM -lMesaGLw $OPENGLULIB"
14958
 
else
14959
 
  echo "$ac_t""no" 1>&6
14960
 
 
14961
 
LDFLAGS=${ac_save_ldflags}
14962
 
 
14963
 
ac_save_ldflags="$LDFLAGS"
14964
 
LDFLAGS="$OPENGLWM $XMLIB $OPENGL_LIB_PATH $LDFLAGS"
14965
 
 
14966
 
 
14967
 
 
14968
 
 
14969
 
echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLwM""... $ac_c" 1>&6
14970
 
echo "configure:14971: checking for GLwCreateMDrawingArea in -lMesaGLwM" >&5
14971
 
ac_lib_var=`echo MesaGLwM'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
14972
 
 
14973
 
ac_save_LIBS="$LIBS"
14974
 
LIBS="-lMesaGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB  $LIBS"
14975
 
cat > conftest.$ac_ext <<EOF
14976
 
#line 14977 "configure"
14977
 
#include "confdefs.h"
14978
 
/* Override any gcc2 internal prototype to avoid an error.  */
14979
 
/* We use char because int might match the return type of a gcc2
14980
 
    builtin and then its argument prototype would still apply.  */
14981
 
char GLwCreateMDrawingArea();
14982
 
 
14983
 
int main() {
14984
 
GLwCreateMDrawingArea()
14985
 
; return 0; }
14986
 
EOF
14987
 
if { (eval echo configure:14988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14988
 
  rm -rf conftest*
14989
 
  eval "ac_cv_lib_$ac_lib_var=yes"
14990
 
else
14991
 
  echo "configure: failed program was:" >&5
14992
 
  cat conftest.$ac_ext >&5
14993
 
  rm -rf conftest*
14994
 
  eval "ac_cv_lib_$ac_lib_var=no"
14995
 
fi
14996
 
rm -f conftest*
14997
 
LIBS="$ac_save_LIBS"
14998
 
 
14999
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15000
 
  echo "$ac_t""yes" 1>&6
15001
 
  OPENGLWM="$OPENGLWM -lMesaGLwM "
15002
 
else
15003
 
  echo "$ac_t""no" 1>&6
15004
 
 
15005
 
echo $ac_n "checking for GLwCreateMDrawingArea in -lMesaGLwM""... $ac_c" 1>&6
15006
 
echo "configure:15007: checking for GLwCreateMDrawingArea in -lMesaGLwM" >&5
15007
 
ac_lib_var=`echo MesaGLwM'_'GLwCreateMDrawingArea | sed 'y%./+-%__p_%'`
15008
 
 
15009
 
ac_save_LIBS="$LIBS"
15010
 
LIBS="-lMesaGLwM $X_LIBS $OPENGLLIB -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $MATHLIB $OPENGLULIB $LIBS"
15011
 
cat > conftest.$ac_ext <<EOF
15012
 
#line 15013 "configure"
15013
 
#include "confdefs.h"
15014
 
/* Override any gcc2 internal prototype to avoid an error.  */
15015
 
/* We use char because int might match the return type of a gcc2
15016
 
    builtin and then its argument prototype would still apply.  */
15017
 
char GLwCreateMDrawingArea();
15018
 
 
15019
 
int main() {
15020
 
GLwCreateMDrawingArea()
15021
 
; return 0; }
15022
 
EOF
15023
 
if { (eval echo configure:15024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15024
 
  rm -rf conftest*
15025
 
  eval "ac_cv_lib_$ac_lib_var=yes"
15026
 
else
15027
 
  echo "configure: failed program was:" >&5
15028
 
  cat conftest.$ac_ext >&5
15029
 
  rm -rf conftest*
15030
 
  eval "ac_cv_lib_$ac_lib_var=no"
15031
 
fi
15032
 
rm -f conftest*
15033
 
LIBS="$ac_save_LIBS"
15034
 
 
15035
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15036
 
  echo "$ac_t""yes" 1>&6
15037
 
  OPENGLWM="$OPENGLWM -lMesaGLwM $OPENGLULIB"
15038
 
else
15039
 
  echo "$ac_t""no" 1>&6
15040
 
 
15041
 
LDFLAGS=${ac_save_ldflags}
15042
 
 
15043
 
    { echo "configure: error: *** Unable to locate GLwM library." 1>&2; exit 1; }
15044
 
 
15045
 
 
15046
 
fi
15047
 
 
15048
 
 
15049
 
 
15050
 
 
15051
 
fi
15052
 
 
15053
 
 
15054
 
 
15055
 
 
15056
 
 
15057
 
 
15058
 
LDFLAGS=${ac_save_ldflags}
15059
 
 
15060
 
 
15061
 
 
15062
 
fi
15063
 
 
15064
 
 
15065
 
 
15066
 
 
15067
 
fi
15068
 
 
15069
 
 
15070
 
 
15071
 
 
15072
 
 
15073
 
 
15074
 
LDFLAGS=${ac_save_ldflags}
15075
 
 
15076
 
 
15077
 
 
15078
 
fi
15079
 
 
15080
 
 
15081
 
 
15082
 
LDFLAGS=${ac_save_ldflags}
15083
 
 
15084
 
 
15085
 
 
15086
 
fi
15087
 
 
15088
 
 
15089
 
 
15090
 
LDFLAGS=${ac_save_ldflags}
15091
 
 
15092
 
 
15093
 
 
15094
 
fi
15095
 
 
15096
 
 
15097
 
 
15098
 
LDFLAGS=${ac_save_ldflags}
15099
 
 
15100
 
 
15101
 
 
15102
 
fi
15103
 
 
15104
 
 
15105
 
 
15106
 
LDFLAGS=${ac_save_ldflags}
15107
 
 
15108
 
 
15109
 
 
15110
 
fi
15111
 
 
15112
 
 
15113
 
 
15114
 
LDFLAGS=${ac_save_ldflags}
15115
 
 
15116
 
 
15117
 
 
15118
 
fi
15119
 
 
15120
 
 
15121
 
 
15122
 
LDFLAGS=${ac_save_ldflags}
15123
 
 
15124
 
 
15125
 
fi # $USE_OPENGL && $USE_MOTIF
15126
 
 
15127
 
 
15128
 
 
15129
 
 
15130
 
# Done checking GLw
15131
 
 
15132
11387
# Enable FreeType option
15133
11388
 
15134
11389
 
15135
11390
echo $ac_n "checking whether to use FreeType""... $ac_c" 1>&6
15136
 
echo "configure:15137: checking whether to use FreeType" >&5
 
11391
echo "configure:11392: checking whether to use FreeType" >&5
15137
11392
echo "$ac_t"""$with_freetype"" 1>&6
15138
11393
case "$with_freetype" in
15139
11394
        "no")   USE_FREETYPE=   ;;
15152
11407
 
15153
11408
 
15154
11409
echo $ac_n "checking for location of FreeType includes""... $ac_c" 1>&6
15155
 
echo "configure:15156: checking for location of FreeType includes" >&5
 
11410
echo "configure:11411: checking for location of FreeType includes" >&5
15156
11411
case "$with_freetype_includes" in
15157
11412
y | ye | yes | n | no)
15158
11413
        { echo "configure: error: *** You must supply a directory to --with-freetype-includes." 1>&2; exit 1; }
15178
11433
do
15179
11434
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15180
11435
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15181
 
echo "configure:15182: checking for $ac_hdr" >&5
 
11436
echo "configure:11437: checking for $ac_hdr" >&5
15182
11437
 
15183
11438
cat > conftest.$ac_ext <<EOF
15184
 
#line 15185 "configure"
 
11439
#line 11440 "configure"
15185
11440
#include "confdefs.h"
15186
11441
#include <$ac_hdr>
15187
11442
EOF
15188
11443
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15189
 
{ (eval echo configure:15190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
11444
{ (eval echo configure:11445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15190
11445
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15191
11446
if test -z "$ac_err"; then
15192
11447
  rm -rf conftest*
15220
11475
 
15221
11476
 
15222
11477
echo $ac_n "checking for location of FreeType library""... $ac_c" 1>&6
15223
 
echo "configure:15224: checking for location of FreeType library" >&5
 
11478
echo "configure:11479: checking for location of FreeType library" >&5
15224
11479
case "$with_freetype_libs" in
15225
11480
y | ye | yes | n | no)
15226
11481
        { echo "configure: error: *** You must supply a directory to --with-freetype-libs." 1>&2; exit 1; }
15245
11500
 
15246
11501
 
15247
11502
echo $ac_n "checking for FT_Init_FreeType in -lfreetype""... $ac_c" 1>&6
15248
 
echo "configure:15249: checking for FT_Init_FreeType in -lfreetype" >&5
 
11503
echo "configure:11504: checking for FT_Init_FreeType in -lfreetype" >&5
15249
11504
ac_lib_var=`echo freetype'_'FT_Init_FreeType | sed 'y%./+-%__p_%'`
15250
11505
 
15251
11506
ac_save_LIBS="$LIBS"
15252
11507
LIBS="-lfreetype  $LIBS"
15253
11508
cat > conftest.$ac_ext <<EOF
15254
 
#line 15255 "configure"
 
11509
#line 11510 "configure"
15255
11510
#include "confdefs.h"
15256
11511
/* Override any gcc2 internal prototype to avoid an error.  */
15257
11512
/* We use char because int might match the return type of a gcc2
15262
11517
FT_Init_FreeType()
15263
11518
; return 0; }
15264
11519
EOF
15265
 
if { (eval echo configure:15266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
11520
if { (eval echo configure:11521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15266
11521
  rm -rf conftest*
15267
11522
  eval "ac_cv_lib_$ac_lib_var=yes"
15268
11523
else
15303
11558
 
15304
11559
 
15305
11560
echo $ac_n "checking whether to use NLS""... $ac_c" 1>&6
15306
 
echo "configure:15307: checking whether to use NLS" >&5
 
11561
echo "configure:11562: checking whether to use NLS" >&5
15307
11562
echo "$ac_t"""$with_nls"" 1>&6
15308
11563
case "$with_nls" in
15309
11564
        "no")   USE_NLS=        ;;
15323
11578
 
15324
11579
 
15325
11580
echo $ac_n "checking for gettext""... $ac_c" 1>&6
15326
 
echo "configure:15327: checking for gettext" >&5
 
11581
echo "configure:11582: checking for gettext" >&5
15327
11582
 
15328
11583
cat > conftest.$ac_ext <<EOF
15329
 
#line 15330 "configure"
 
11584
#line 11585 "configure"
15330
11585
#include "confdefs.h"
15331
11586
/* System header to define __stub macros and hopefully few prototypes,
15332
11587
    which can conflict with char gettext(); below.  */
15349
11604
 
15350
11605
; return 0; }
15351
11606
EOF
15352
 
if { (eval echo configure:15353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
11607
if { (eval echo configure:11608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15353
11608
  rm -rf conftest*
15354
11609
  eval "ac_cv_func_gettext=yes"
15355
11610
else
15367
11622
  echo "$ac_t""no" 1>&6
15368
11623
 
15369
11624
echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
15370
 
echo "configure:15371: checking for gettext in -lintl" >&5
 
11625
echo "configure:11626: checking for gettext in -lintl" >&5
15371
11626
ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
15372
11627
 
15373
11628
ac_save_LIBS="$LIBS"
15374
11629
LIBS="-lintl  $LIBS"
15375
11630
cat > conftest.$ac_ext <<EOF
15376
 
#line 15377 "configure"
 
11631
#line 11632 "configure"
15377
11632
#include "confdefs.h"
15378
11633
/* Override any gcc2 internal prototype to avoid an error.  */
15379
11634
/* We use char because int might match the return type of a gcc2
15384
11639
gettext()
15385
11640
; return 0; }
15386
11641
EOF
15387
 
if { (eval echo configure:15388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
11642
if { (eval echo configure:11643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15388
11643
  rm -rf conftest*
15389
11644
  eval "ac_cv_lib_$ac_lib_var=yes"
15390
11645
else
15419
11674
 
15420
11675
 
15421
11676
echo $ac_n "checking whether to use C++""... $ac_c" 1>&6
15422
 
echo "configure:15423: checking whether to use C++" >&5
 
11677
echo "configure:11678: checking whether to use C++" >&5
15423
11678
echo "$ac_t"""$with_cxx"" 1>&6
15424
11679
case "$with_cxx" in
15425
11680
        "no")   USE_CXX=        ;;
15435
11690
# Extract the first word of "$ac_prog", so it can be a program name with args.
15436
11691
set dummy $ac_prog; ac_word=$2
15437
11692
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15438
 
echo "configure:15439: checking for $ac_word" >&5
 
11693
echo "configure:11694: checking for $ac_word" >&5
15439
11694
 
15440
11695
if test -n "$CXX"; then
15441
11696
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
15464
11719
 
15465
11720
 
15466
11721
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
15467
 
echo "configure:15468: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
 
11722
echo "configure:11723: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
15468
11723
 
15469
11724
ac_ext=C
15470
11725
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15475
11730
 
15476
11731
cat > conftest.$ac_ext << EOF
15477
11732
 
15478
 
#line 15479 "configure"
 
11733
#line 11734 "configure"
15479
11734
#include "confdefs.h"
15480
11735
 
15481
11736
int main(){return(0);}
15482
11737
EOF
15483
 
if { (eval echo configure:15484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
11738
if { (eval echo configure:11739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15484
11739
  ac_cv_prog_cxx_works=yes
15485
11740
  # If we can't run a trivial program, we are probably using a cross compiler.
15486
11741
  if (./conftest; exit) 2>/dev/null; then
15506
11761
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
15507
11762
fi
15508
11763
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
15509
 
echo "configure:15510: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
 
11764
echo "configure:11765: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
15510
11765
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
15511
11766
cross_compiling=$ac_cv_prog_cxx_cross
15512
11767
 
15513
11768
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
15514
 
echo "configure:15515: checking whether we are using GNU C++" >&5
 
11769
echo "configure:11770: checking whether we are using GNU C++" >&5
15515
11770
 
15516
11771
cat > conftest.C <<EOF
15517
11772
#ifdef __GNUC__
15518
11773
  yes;
15519
11774
#endif
15520
11775
EOF
15521
 
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:15522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
11776
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:11777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
15522
11777
  ac_cv_prog_gxx=yes
15523
11778
else
15524
11779
  ac_cv_prog_gxx=no
15536
11791
ac_save_CXXFLAGS="$CXXFLAGS"
15537
11792
CXXFLAGS=
15538
11793
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
15539
 
echo "configure:15540: checking whether ${CXX-g++} accepts -g" >&5
 
11794
echo "configure:11795: checking whether ${CXX-g++} accepts -g" >&5
15540
11795
 
15541
11796
echo 'void f(){}' > conftest.cc
15542
11797
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
15574
11829
   'void exit (int);'
15575
11830
do
15576
11831
  cat > conftest.$ac_ext <<EOF
15577
 
#line 15578 "configure"
 
11832
#line 11833 "configure"
15578
11833
#include "confdefs.h"
15579
11834
#include <stdlib.h>
15580
11835
$ac_declaration
15582
11837
exit (42);
15583
11838
; return 0; }
15584
11839
EOF
15585
 
if { (eval echo configure:15586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
11840
if { (eval echo configure:11841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15586
11841
  :
15587
11842
else
15588
11843
  echo "configure: failed program was:" >&5
15592
11847
fi
15593
11848
rm -f conftest*
15594
11849
  cat > conftest.$ac_ext <<EOF
15595
 
#line 15596 "configure"
 
11850
#line 11851 "configure"
15596
11851
#include "confdefs.h"
15597
11852
$ac_declaration
15598
11853
int main() {
15599
11854
exit (42);
15600
11855
; return 0; }
15601
11856
EOF
15602
 
if { (eval echo configure:15603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
11857
if { (eval echo configure:11858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15603
11858
  rm -rf conftest*
15604
11859
  break
15605
11860
else
15628
11883
 
15629
11884
 
15630
11885
echo $ac_n "checking whether to use openDWG""... $ac_c" 1>&6
15631
 
echo "configure:15632: checking whether to use openDWG" >&5
 
11886
echo "configure:11887: checking whether to use openDWG" >&5
15632
11887
echo "$ac_t"""$with_opendwg"" 1>&6
15633
11888
case "$with_opendwg" in
15634
11889
        "no")   USE_OPENDWG=    ;;
15648
11903
 
15649
11904
 
15650
11905
echo $ac_n "checking for location of openDGW includes""... $ac_c" 1>&6
15651
 
echo "configure:15652: checking for location of openDGW includes" >&5
 
11906
echo "configure:11907: checking for location of openDGW includes" >&5
15652
11907
case "$with_opendwg_includes" in
15653
11908
y | ye | yes | n | no)
15654
11909
        { echo "configure: error: *** You must supply a directory to --with-opendwg-includes." 1>&2; exit 1; }
15674
11929
do
15675
11930
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15676
11931
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15677
 
echo "configure:15678: checking for $ac_hdr" >&5
 
11932
echo "configure:11933: checking for $ac_hdr" >&5
15678
11933
 
15679
11934
cat > conftest.$ac_ext <<EOF
15680
 
#line 15681 "configure"
 
11935
#line 11936 "configure"
15681
11936
#include "confdefs.h"
15682
11937
#include <$ac_hdr>
15683
11938
EOF
15684
11939
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15685
 
{ (eval echo configure:15686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
11940
{ (eval echo configure:11941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15686
11941
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15687
11942
if test -z "$ac_err"; then
15688
11943
  rm -rf conftest*
15716
11971
 
15717
11972
 
15718
11973
echo $ac_n "checking for location of openDWG library""... $ac_c" 1>&6
15719
 
echo "configure:15720: checking for location of openDWG library" >&5
 
11974
echo "configure:11975: checking for location of openDWG library" >&5
15720
11975
case "$with_opendwg_libs" in
15721
11976
y | ye | yes | n | no)
15722
11977
        { echo "configure: error: *** You must supply a directory to --with-opendwg-libs." 1>&2; exit 1; }
15753
12008
 
15754
12009
# Done checking OPENDWG
15755
12010
 
15756
 
# Enable LFS (from cdr-tools)
 
12011
# Enable pthread option
 
12012
 
 
12013
 
 
12014
echo $ac_n "checking whether to use POSIX threads""... $ac_c" 1>&6
 
12015
echo "configure:12016: checking whether to use POSIX threads" >&5
 
12016
echo "$ac_t"""$with_pthread"" 1>&6
 
12017
case "$with_pthread" in
 
12018
        "no")   USE_PTHREAD=    ;;
 
12019
        "yes")  USE_PTHREAD="1" ;;
 
12020
        *)      { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; }       ;;
 
12021
esac
 
12022
 
 
12023
 
 
12024
 
 
12025
PTHREADINCPATH=
 
12026
PTHREADLIBPATH=
 
12027
PTHREADLIB=
 
12028
 
 
12029
if test -n "$USE_PTHREAD"; then
 
12030
 
 
12031
# With pthread includes directory
 
12032
 
 
12033
 
 
12034
echo $ac_n "checking for location of POSIX threads includes""... $ac_c" 1>&6
 
12035
echo "configure:12036: checking for location of POSIX threads includes" >&5
 
12036
case "$with_pthread_includes" in
 
12037
y | ye | yes | n | no)
 
12038
        { echo "configure: error: *** You must supply a directory to --with-pthread-includes." 1>&2; exit 1; }
 
12039
        ;;
 
12040
esac
 
12041
echo "$ac_t""$with_pthread_includes" 1>&6
 
12042
 
 
12043
if test -n "$with_pthread_includes" ; then
 
12044
    for dir in $with_pthread_includes; do
 
12045
        if test -d "$dir"; then
 
12046
            PTHREADINCPATH="$PTHREADINCPATH -I$dir"
 
12047
        else
 
12048
            { echo "configure: error: *** POSIX threads includes directory $dir does not exist." 1>&2; exit 1; }
 
12049
        fi
 
12050
    done
 
12051
fi
 
12052
 
 
12053
 
 
12054
 
 
12055
ac_save_cppflags="$CPPFLAGS"
 
12056
CPPFLAGS="$PTHREADINCPATH $CPPFLAGS"
 
12057
for ac_hdr in pthread.h
 
12058
do
 
12059
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
12060
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
12061
echo "configure:12062: checking for $ac_hdr" >&5
 
12062
 
 
12063
cat > conftest.$ac_ext <<EOF
 
12064
#line 12065 "configure"
 
12065
#include "confdefs.h"
 
12066
#include <$ac_hdr>
 
12067
EOF
 
12068
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
12069
{ (eval echo configure:12070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
12070
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
12071
if test -z "$ac_err"; then
 
12072
  rm -rf conftest*
 
12073
  eval "ac_cv_header_$ac_safe=yes"
 
12074
else
 
12075
  echo "$ac_err" >&5
 
12076
  echo "configure: failed program was:" >&5
 
12077
  cat conftest.$ac_ext >&5
 
12078
  rm -rf conftest*
 
12079
  eval "ac_cv_header_$ac_safe=no"
 
12080
fi
 
12081
rm -f conftest*
 
12082
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
12083
  echo "$ac_t""yes" 1>&6
 
12084
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
12085
  cat >> confdefs.h <<EOF
 
12086
#define $ac_tr_hdr 1
 
12087
EOF
 
12088
 
 
12089
else
 
12090
  echo "$ac_t""no" 1>&6
 
12091
{ echo "configure: error: *** Unable to locate POSIX threads includes." 1>&2; exit 1; }
 
12092
 
 
12093
fi
 
12094
done
 
12095
 
 
12096
CPPFLAGS=$ac_save_cppflags
 
12097
 
 
12098
 
 
12099
# With pthread library directory
 
12100
 
 
12101
 
 
12102
echo $ac_n "checking for location of POSIX threads library""... $ac_c" 1>&6
 
12103
echo "configure:12104: checking for location of POSIX threads library" >&5
 
12104
case "$with_pthread_libs" in
 
12105
y | ye | yes | n | no)
 
12106
        { echo "configure: error: *** You must supply a directory to --with-pthread-libs." 1>&2; exit 1; }
 
12107
        ;;
 
12108
esac
 
12109
echo "$ac_t""$with_pthread_libs" 1>&6
 
12110
 
 
12111
if test -n "$with_pthread_libs"; then
 
12112
    for dir in $with_pthread_libs; do
 
12113
        if test -d "$dir"; then
 
12114
            PTHREADLIBPATH="$PTHREADLIBPATH -L$dir"
 
12115
        else
 
12116
            { echo "configure: error: *** POSIX threads library directory $dir does not exist." 1>&2; exit 1; }
 
12117
        fi
 
12118
    done
 
12119
fi
 
12120
 
 
12121
 
 
12122
 
 
12123
ac_save_libs="$LIBS"
 
12124
ac_save_ldflags="$LDFLAGS"
 
12125
LIBS="  $LIBS"
 
12126
LDFLAGS=" $LDFLAGS"
 
12127
echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
 
12128
echo "configure:12129: checking for pthread_create" >&5
 
12129
 
 
12130
cat > conftest.$ac_ext <<EOF
 
12131
#line 12132 "configure"
 
12132
#include "confdefs.h"
 
12133
/* System header to define __stub macros and hopefully few prototypes,
 
12134
    which can conflict with char pthread_create(); below.  */
 
12135
#include <assert.h>
 
12136
/* Override any gcc2 internal prototype to avoid an error.  */
 
12137
/* We use char because int might match the return type of a gcc2
 
12138
    builtin and then its argument prototype would still apply.  */
 
12139
char pthread_create();
 
12140
 
 
12141
int main() {
 
12142
 
 
12143
/* The GNU C library defines this for functions which it implements
 
12144
    to always fail with ENOSYS.  Some functions are actually named
 
12145
    something starting with __ and the normal name is an alias.  */
 
12146
#if defined (__stub_pthread_create) || defined (__stub___pthread_create)
 
12147
choke me
 
12148
#else
 
12149
pthread_create();
 
12150
#endif
 
12151
 
 
12152
; return 0; }
 
12153
EOF
 
12154
if { (eval echo configure:12155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
12155
  rm -rf conftest*
 
12156
  eval "ac_cv_func_pthread_create=yes"
 
12157
else
 
12158
  echo "configure: failed program was:" >&5
 
12159
  cat conftest.$ac_ext >&5
 
12160
  rm -rf conftest*
 
12161
  eval "ac_cv_func_pthread_create=no"
 
12162
fi
 
12163
rm -f conftest*
 
12164
 
 
12165
if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
 
12166
  echo "$ac_t""yes" 1>&6
 
12167
  
 
12168
 
 
12169
    PTHREADLIB="$PTHREADLIB "
 
12170
 
 
12171
 
 
12172
else
 
12173
  echo "$ac_t""no" 1>&6
 
12174
 
 
12175
 
 
12176
ac_save_ldflags="$LDFLAGS"
 
12177
LDFLAGS="$PTHREADLIBPATH $LDFLAGS"
 
12178
 
 
12179
 
 
12180
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
 
12181
echo "configure:12182: checking for pthread_create in -lpthread" >&5
 
12182
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
 
12183
 
 
12184
ac_save_LIBS="$LIBS"
 
12185
LIBS="-lpthread  $LIBS"
 
12186
cat > conftest.$ac_ext <<EOF
 
12187
#line 12188 "configure"
 
12188
#include "confdefs.h"
 
12189
/* Override any gcc2 internal prototype to avoid an error.  */
 
12190
/* We use char because int might match the return type of a gcc2
 
12191
    builtin and then its argument prototype would still apply.  */
 
12192
char pthread_create();
 
12193
 
 
12194
int main() {
 
12195
pthread_create()
 
12196
; return 0; }
 
12197
EOF
 
12198
if { (eval echo configure:12199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
12199
  rm -rf conftest*
 
12200
  eval "ac_cv_lib_$ac_lib_var=yes"
 
12201
else
 
12202
  echo "configure: failed program was:" >&5
 
12203
  cat conftest.$ac_ext >&5
 
12204
  rm -rf conftest*
 
12205
  eval "ac_cv_lib_$ac_lib_var=no"
 
12206
fi
 
12207
rm -f conftest*
 
12208
LIBS="$ac_save_LIBS"
 
12209
 
 
12210
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
12211
  echo "$ac_t""yes" 1>&6
 
12212
  PTHREADLIB="$PTHREADLIB -lpthread "
 
12213
else
 
12214
  echo "$ac_t""no" 1>&6
 
12215
 
 
12216
LDFLAGS=${ac_save_ldflags}
 
12217
 
 
12218
    { echo "configure: error: *** Unable to locate POSIX threads library." 1>&2; exit 1; }
 
12219
 
 
12220
 
 
12221
fi
 
12222
 
 
12223
 
 
12224
 
 
12225
LDFLAGS=${ac_save_ldflags}
 
12226
 
 
12227
 
 
12228
 
 
12229
fi
 
12230
 
 
12231
LIBS=${ac_save_libs}
 
12232
LDFLAGS=${ac_save_ldflags}
 
12233
 
 
12234
 
 
12235
fi # $USE_PTHREAD
 
12236
 
 
12237
 
 
12238
 
 
12239
 
 
12240
 
 
12241
 
 
12242
# Done checking pthread
 
12243
 
 
12244
# Enable OpenMP option
 
12245
 
 
12246
 
 
12247
echo $ac_n "checking whether to use OpenMP""... $ac_c" 1>&6
 
12248
echo "configure:12249: checking whether to use OpenMP" >&5
 
12249
echo "$ac_t"""$with_openmp"" 1>&6
 
12250
case "$with_openmp" in
 
12251
        "no")   USE_OPENMP=     ;;
 
12252
        "yes")  USE_OPENMP="1"  ;;
 
12253
        *)      { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; }       ;;
 
12254
esac
 
12255
 
 
12256
 
 
12257
 
 
12258
OMPINCPATH=
 
12259
OMPLIBPATH=
 
12260
OMPLIB=
 
12261
OMPCFLAGS=
 
12262
 
 
12263
if test -n "$USE_OPENMP"; then
 
12264
 
 
12265
# With OpenMP includes directory
 
12266
 
 
12267
 
 
12268
echo $ac_n "checking for location of OpenMP includes""... $ac_c" 1>&6
 
12269
echo "configure:12270: checking for location of OpenMP includes" >&5
 
12270
case "$with_openmp_includes" in
 
12271
y | ye | yes | n | no)
 
12272
        { echo "configure: error: *** You must supply a directory to --with-openmp-includes." 1>&2; exit 1; }
 
12273
        ;;
 
12274
esac
 
12275
echo "$ac_t""$with_openmp_includes" 1>&6
 
12276
 
 
12277
if test -n "$with_openmp_includes" ; then
 
12278
    for dir in $with_openmp_includes; do
 
12279
        if test -d "$dir"; then
 
12280
            OMPINCPATH="$OMPINCPATH -I$dir"
 
12281
        else
 
12282
            { echo "configure: error: *** OpenMP includes directory $dir does not exist." 1>&2; exit 1; }
 
12283
        fi
 
12284
    done
 
12285
fi
 
12286
 
 
12287
 
 
12288
 
 
12289
ac_save_cppflags="$CPPFLAGS"
 
12290
CPPFLAGS="$OMPINCPATH $CPPFLAGS"
 
12291
for ac_hdr in omp.h
 
12292
do
 
12293
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
12294
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
12295
echo "configure:12296: checking for $ac_hdr" >&5
 
12296
 
 
12297
cat > conftest.$ac_ext <<EOF
 
12298
#line 12299 "configure"
 
12299
#include "confdefs.h"
 
12300
#include <$ac_hdr>
 
12301
EOF
 
12302
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
12303
{ (eval echo configure:12304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
12304
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
12305
if test -z "$ac_err"; then
 
12306
  rm -rf conftest*
 
12307
  eval "ac_cv_header_$ac_safe=yes"
 
12308
else
 
12309
  echo "$ac_err" >&5
 
12310
  echo "configure: failed program was:" >&5
 
12311
  cat conftest.$ac_ext >&5
 
12312
  rm -rf conftest*
 
12313
  eval "ac_cv_header_$ac_safe=no"
 
12314
fi
 
12315
rm -f conftest*
 
12316
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
12317
  echo "$ac_t""yes" 1>&6
 
12318
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
12319
  cat >> confdefs.h <<EOF
 
12320
#define $ac_tr_hdr 1
 
12321
EOF
 
12322
 
 
12323
else
 
12324
  echo "$ac_t""no" 1>&6
 
12325
{ echo "configure: error: *** Unable to locate OpenMP includes." 1>&2; exit 1; }
 
12326
 
 
12327
fi
 
12328
done
 
12329
 
 
12330
CPPFLAGS=$ac_save_cppflags
 
12331
 
 
12332
 
 
12333
# With OpenMP library directory
 
12334
# GCC et al.: -lgomp
 
12335
# Solaris cc: -lmtsk
 
12336
# AIX xlc: -lxlsmp
 
12337
# SGI IRIX 6.5 MIPSpro C/C++: -lmp
 
12338
 
 
12339
 
 
12340
echo $ac_n "checking for location of OpenMP library""... $ac_c" 1>&6
 
12341
echo "configure:12342: checking for location of OpenMP library" >&5
 
12342
case "$with_openmp_libs" in
 
12343
y | ye | yes | n | no)
 
12344
        { echo "configure: error: *** You must supply a directory to --with-openmp-libs." 1>&2; exit 1; }
 
12345
        ;;
 
12346
esac
 
12347
echo "$ac_t""$with_openmp_libs" 1>&6
 
12348
 
 
12349
if test -n "$with_openmp_libs"; then
 
12350
    for dir in $with_openmp_libs; do
 
12351
        if test -d "$dir"; then
 
12352
            OMPLIBPATH="$OMPLIBPATH -L$dir"
 
12353
        else
 
12354
            { echo "configure: error: *** OpenMP library directory $dir does not exist." 1>&2; exit 1; }
 
12355
        fi
 
12356
    done
 
12357
fi
 
12358
 
 
12359
 
 
12360
 
 
12361
ac_save_libs="$LIBS"
 
12362
ac_save_ldflags="$LDFLAGS"
 
12363
LIBS="  $LIBS"
 
12364
LDFLAGS=" $LDFLAGS"
 
12365
echo $ac_n "checking for GOMP_parallel_start""... $ac_c" 1>&6
 
12366
echo "configure:12367: checking for GOMP_parallel_start" >&5
 
12367
 
 
12368
cat > conftest.$ac_ext <<EOF
 
12369
#line 12370 "configure"
 
12370
#include "confdefs.h"
 
12371
/* System header to define __stub macros and hopefully few prototypes,
 
12372
    which can conflict with char GOMP_parallel_start(); below.  */
 
12373
#include <assert.h>
 
12374
/* Override any gcc2 internal prototype to avoid an error.  */
 
12375
/* We use char because int might match the return type of a gcc2
 
12376
    builtin and then its argument prototype would still apply.  */
 
12377
char GOMP_parallel_start();
 
12378
 
 
12379
int main() {
 
12380
 
 
12381
/* The GNU C library defines this for functions which it implements
 
12382
    to always fail with ENOSYS.  Some functions are actually named
 
12383
    something starting with __ and the normal name is an alias.  */
 
12384
#if defined (__stub_GOMP_parallel_start) || defined (__stub___GOMP_parallel_start)
 
12385
choke me
 
12386
#else
 
12387
GOMP_parallel_start();
 
12388
#endif
 
12389
 
 
12390
; return 0; }
 
12391
EOF
 
12392
if { (eval echo configure:12393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
12393
  rm -rf conftest*
 
12394
  eval "ac_cv_func_GOMP_parallel_start=yes"
 
12395
else
 
12396
  echo "configure: failed program was:" >&5
 
12397
  cat conftest.$ac_ext >&5
 
12398
  rm -rf conftest*
 
12399
  eval "ac_cv_func_GOMP_parallel_start=no"
 
12400
fi
 
12401
rm -f conftest*
 
12402
 
 
12403
if eval "test \"`echo '$ac_cv_func_'GOMP_parallel_start`\" = yes"; then
 
12404
  echo "$ac_t""yes" 1>&6
 
12405
  
 
12406
 
 
12407
    OMPLIB="$OMPLIB "
 
12408
 
 
12409
 
 
12410
else
 
12411
  echo "$ac_t""no" 1>&6
 
12412
 
 
12413
 
 
12414
ac_save_ldflags="$LDFLAGS"
 
12415
LDFLAGS="$OMPLIBPATH $LDFLAGS"
 
12416
 
 
12417
 
 
12418
echo $ac_n "checking for GOMP_parallel_start in -lgomp""... $ac_c" 1>&6
 
12419
echo "configure:12420: checking for GOMP_parallel_start in -lgomp" >&5
 
12420
ac_lib_var=`echo gomp'_'GOMP_parallel_start | sed 'y%./+-%__p_%'`
 
12421
 
 
12422
ac_save_LIBS="$LIBS"
 
12423
LIBS="-lgomp  $LIBS"
 
12424
cat > conftest.$ac_ext <<EOF
 
12425
#line 12426 "configure"
 
12426
#include "confdefs.h"
 
12427
/* Override any gcc2 internal prototype to avoid an error.  */
 
12428
/* We use char because int might match the return type of a gcc2
 
12429
    builtin and then its argument prototype would still apply.  */
 
12430
char GOMP_parallel_start();
 
12431
 
 
12432
int main() {
 
12433
GOMP_parallel_start()
 
12434
; return 0; }
 
12435
EOF
 
12436
if { (eval echo configure:12437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
12437
  rm -rf conftest*
 
12438
  eval "ac_cv_lib_$ac_lib_var=yes"
 
12439
else
 
12440
  echo "configure: failed program was:" >&5
 
12441
  cat conftest.$ac_ext >&5
 
12442
  rm -rf conftest*
 
12443
  eval "ac_cv_lib_$ac_lib_var=no"
 
12444
fi
 
12445
rm -f conftest*
 
12446
LIBS="$ac_save_LIBS"
 
12447
 
 
12448
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
12449
  echo "$ac_t""yes" 1>&6
 
12450
  OMPLIB="$OMPLIB -lgomp "
 
12451
else
 
12452
  echo "$ac_t""no" 1>&6
 
12453
 
 
12454
LDFLAGS=${ac_save_ldflags}
 
12455
 
 
12456
    { echo "configure: error: *** Unable to locate OpenMP library." 1>&2; exit 1; }
 
12457
 
 
12458
 
 
12459
fi
 
12460
 
 
12461
 
 
12462
 
 
12463
LDFLAGS=${ac_save_ldflags}
 
12464
 
 
12465
 
 
12466
 
 
12467
fi
 
12468
 
 
12469
LIBS=${ac_save_libs}
 
12470
LDFLAGS=${ac_save_ldflags}
 
12471
 
 
12472
 
 
12473
# compiler dependent
 
12474
#if test ${CC} = "gcc" ; then
 
12475
if test x$GCC = xyes ; then
 
12476
        # GNU C compiler (>= 4.2.1)
 
12477
        OMPCFLAGS=-fopenmp
 
12478
elif test ${CC} = "icc" ; then
 
12479
        # Intel compiler
 
12480
        OMPCFLAGS=-openmp
 
12481
elif test ${CC} = "opencc" ; then
 
12482
        # AMD's x86 Open64 compiler
 
12483
        OMPCFLAGS=-mp
 
12484
elif test ${CC} = "pgcc" ; then
 
12485
        # Portland Group's compiler
 
12486
        OMPCFLAGS=-mp
 
12487
# ... anybody else?
 
12488
fi
 
12489
 
 
12490
# try to build a test program with "$CC $OMPCLFAGS" to confirm it works
 
12491
#...how?
 
12492
#echo "int main() {return 0;}" > test.c 
 
12493
#$CC $OMPCLFAGS test.c -o test
 
12494
 
 
12495
fi # $USE_OPENMP
 
12496
 
 
12497
 
 
12498
 
 
12499
 
 
12500
 
 
12501
 
 
12502
 
 
12503
# Done checking OpenMP
 
12504
 
 
12505
# Enable OpenCL option
 
12506
 
 
12507
 
 
12508
echo $ac_n "checking whether to use OpenCL""... $ac_c" 1>&6
 
12509
echo "configure:12510: checking whether to use OpenCL" >&5
 
12510
echo "$ac_t"""$with_opencl"" 1>&6
 
12511
case "$with_opencl" in
 
12512
        "no")   USE_OPENCL=     ;;
 
12513
        "yes")  USE_OPENCL="1"  ;;
 
12514
        *)      { echo "configure: error: *** You must answer yes or no." 1>&2; exit 1; }       ;;
 
12515
esac
 
12516
 
 
12517
 
 
12518
 
 
12519
OCLINCPATH=
 
12520
OCLLIBPATH=
 
12521
OCLLIB=
 
12522
 
 
12523
if test -n "$USE_OPENCL"; then
 
12524
 
 
12525
# With OpenCL includes directory
 
12526
 
 
12527
 
 
12528
echo $ac_n "checking for location of OpenCL includes""... $ac_c" 1>&6
 
12529
echo "configure:12530: checking for location of OpenCL includes" >&5
 
12530
case "$with_opencl_includes" in
 
12531
y | ye | yes | n | no)
 
12532
        { echo "configure: error: *** You must supply a directory to --with-opencl-includes." 1>&2; exit 1; }
 
12533
        ;;
 
12534
esac
 
12535
echo "$ac_t""$with_opencl_includes" 1>&6
 
12536
 
 
12537
if test -n "$with_opencl_includes" ; then
 
12538
    for dir in $with_opencl_includes; do
 
12539
        if test -d "$dir"; then
 
12540
            OCLINCPATH="$OCLINCPATH -I$dir"
 
12541
        else
 
12542
            { echo "configure: error: *** OpenCL includes directory $dir does not exist." 1>&2; exit 1; }
 
12543
        fi
 
12544
    done
 
12545
fi
 
12546
 
 
12547
 
 
12548
if test -n "$MACOSX_APP" ; then
 
12549
    
 
12550
ac_save_cppflags="$CPPFLAGS"
 
12551
CPPFLAGS="$OCLINCPATH $CPPFLAGS"
 
12552
for ac_hdr in OpenCL/opencl.h
 
12553
do
 
12554
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
12555
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
12556
echo "configure:12557: checking for $ac_hdr" >&5
 
12557
 
 
12558
cat > conftest.$ac_ext <<EOF
 
12559
#line 12560 "configure"
 
12560
#include "confdefs.h"
 
12561
#include <$ac_hdr>
 
12562
EOF
 
12563
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
12564
{ (eval echo configure:12565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
12565
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
12566
if test -z "$ac_err"; then
 
12567
  rm -rf conftest*
 
12568
  eval "ac_cv_header_$ac_safe=yes"
 
12569
else
 
12570
  echo "$ac_err" >&5
 
12571
  echo "configure: failed program was:" >&5
 
12572
  cat conftest.$ac_ext >&5
 
12573
  rm -rf conftest*
 
12574
  eval "ac_cv_header_$ac_safe=no"
 
12575
fi
 
12576
rm -f conftest*
 
12577
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
12578
  echo "$ac_t""yes" 1>&6
 
12579
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
12580
  cat >> confdefs.h <<EOF
 
12581
#define $ac_tr_hdr 1
 
12582
EOF
 
12583
 
 
12584
else
 
12585
  echo "$ac_t""no" 1>&6
 
12586
{ echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
 
12587
 
 
12588
fi
 
12589
done
 
12590
 
 
12591
CPPFLAGS=$ac_save_cppflags
 
12592
 
 
12593
 
 
12594
    # With OpenCL library directory
 
12595
    ### FIXME: ###
 
12596
    #LOC_CHECK_FRAMEWORK_PATH(opencl,OpenCL,OPENCLPATH)
 
12597
    # last term in following would become ',$OPENCLPATH)' if above is uncommented
 
12598
    
 
12599
ac_save_libs="$LIBS"
 
12600
ac_save_ldflags="$LDFLAGS"
 
12601
LIBS="-framework OpenCL  $LIBS"
 
12602
LDFLAGS=" $LDFLAGS"
 
12603
echo $ac_n "checking for clGetPlatformInfo""... $ac_c" 1>&6
 
12604
echo "configure:12605: checking for clGetPlatformInfo" >&5
 
12605
 
 
12606
cat > conftest.$ac_ext <<EOF
 
12607
#line 12608 "configure"
 
12608
#include "confdefs.h"
 
12609
/* System header to define __stub macros and hopefully few prototypes,
 
12610
    which can conflict with char clGetPlatformInfo(); below.  */
 
12611
#include <assert.h>
 
12612
/* Override any gcc2 internal prototype to avoid an error.  */
 
12613
/* We use char because int might match the return type of a gcc2
 
12614
    builtin and then its argument prototype would still apply.  */
 
12615
char clGetPlatformInfo();
 
12616
 
 
12617
int main() {
 
12618
 
 
12619
/* The GNU C library defines this for functions which it implements
 
12620
    to always fail with ENOSYS.  Some functions are actually named
 
12621
    something starting with __ and the normal name is an alias.  */
 
12622
#if defined (__stub_clGetPlatformInfo) || defined (__stub___clGetPlatformInfo)
 
12623
choke me
 
12624
#else
 
12625
clGetPlatformInfo();
 
12626
#endif
 
12627
 
 
12628
; return 0; }
 
12629
EOF
 
12630
if { (eval echo configure:12631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
12631
  rm -rf conftest*
 
12632
  eval "ac_cv_func_clGetPlatformInfo=yes"
 
12633
else
 
12634
  echo "configure: failed program was:" >&5
 
12635
  cat conftest.$ac_ext >&5
 
12636
  rm -rf conftest*
 
12637
  eval "ac_cv_func_clGetPlatformInfo=no"
 
12638
fi
 
12639
rm -f conftest*
 
12640
 
 
12641
if eval "test \"`echo '$ac_cv_func_'clGetPlatformInfo`\" = yes"; then
 
12642
  echo "$ac_t""yes" 1>&6
 
12643
  
 
12644
 
 
12645
    OCLLIB="$OCLLIB -framework OpenCL"
 
12646
 
 
12647
 
 
12648
else
 
12649
  echo "$ac_t""no" 1>&6
 
12650
 
 
12651
 
 
12652
{ echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
 
12653
 
 
12654
 
 
12655
 
 
12656
fi
 
12657
 
 
12658
LIBS=${ac_save_libs}
 
12659
LDFLAGS=${ac_save_ldflags}
 
12660
 
 
12661
else
 
12662
    
 
12663
ac_save_cppflags="$CPPFLAGS"
 
12664
CPPFLAGS="$OCLINCPATH $CPPFLAGS"
 
12665
for ac_hdr in CL/cl.h
 
12666
do
 
12667
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 
12668
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 
12669
echo "configure:12670: checking for $ac_hdr" >&5
 
12670
 
 
12671
cat > conftest.$ac_ext <<EOF
 
12672
#line 12673 "configure"
 
12673
#include "confdefs.h"
 
12674
#include <$ac_hdr>
 
12675
EOF
 
12676
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
12677
{ (eval echo configure:12678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
12678
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
12679
if test -z "$ac_err"; then
 
12680
  rm -rf conftest*
 
12681
  eval "ac_cv_header_$ac_safe=yes"
 
12682
else
 
12683
  echo "$ac_err" >&5
 
12684
  echo "configure: failed program was:" >&5
 
12685
  cat conftest.$ac_ext >&5
 
12686
  rm -rf conftest*
 
12687
  eval "ac_cv_header_$ac_safe=no"
 
12688
fi
 
12689
rm -f conftest*
 
12690
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 
12691
  echo "$ac_t""yes" 1>&6
 
12692
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
12693
  cat >> confdefs.h <<EOF
 
12694
#define $ac_tr_hdr 1
 
12695
EOF
 
12696
 
 
12697
else
 
12698
  echo "$ac_t""no" 1>&6
 
12699
{ echo "configure: error: *** Unable to locate OpenCL includes." 1>&2; exit 1; }
 
12700
 
 
12701
fi
 
12702
done
 
12703
 
 
12704
CPPFLAGS=$ac_save_cppflags
 
12705
 
 
12706
 
 
12707
    # With OpenCL library directory
 
12708
    
 
12709
echo $ac_n "checking for location of OpenCL library""... $ac_c" 1>&6
 
12710
echo "configure:12711: checking for location of OpenCL library" >&5
 
12711
case "$with_opencl_libs" in
 
12712
y | ye | yes | n | no)
 
12713
        { echo "configure: error: *** You must supply a directory to --with-opencl-libs." 1>&2; exit 1; }
 
12714
        ;;
 
12715
esac
 
12716
echo "$ac_t""$with_opencl_libs" 1>&6
 
12717
 
 
12718
if test -n "$with_opencl_libs"; then
 
12719
    for dir in $with_opencl_libs; do
 
12720
        if test -d "$dir"; then
 
12721
            OCLLIBPATH="$OCLLIBPATH -L$dir"
 
12722
        else
 
12723
            { echo "configure: error: *** OpenCL library directory $dir does not exist." 1>&2; exit 1; }
 
12724
        fi
 
12725
    done
 
12726
fi
 
12727
 
 
12728
    
 
12729
ac_save_ldflags="$LDFLAGS"
 
12730
LDFLAGS="$OCLLIBPATH $LDFLAGS"
 
12731
 
 
12732
 
 
12733
echo $ac_n "checking for clGetPlatformInfo in -lOpenCL""... $ac_c" 1>&6
 
12734
echo "configure:12735: checking for clGetPlatformInfo in -lOpenCL" >&5
 
12735
ac_lib_var=`echo OpenCL'_'clGetPlatformInfo | sed 'y%./+-%__p_%'`
 
12736
 
 
12737
ac_save_LIBS="$LIBS"
 
12738
LIBS="-lOpenCL  $LIBS"
 
12739
cat > conftest.$ac_ext <<EOF
 
12740
#line 12741 "configure"
 
12741
#include "confdefs.h"
 
12742
/* Override any gcc2 internal prototype to avoid an error.  */
 
12743
/* We use char because int might match the return type of a gcc2
 
12744
    builtin and then its argument prototype would still apply.  */
 
12745
char clGetPlatformInfo();
 
12746
 
 
12747
int main() {
 
12748
clGetPlatformInfo()
 
12749
; return 0; }
 
12750
EOF
 
12751
if { (eval echo configure:12752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
12752
  rm -rf conftest*
 
12753
  eval "ac_cv_lib_$ac_lib_var=yes"
 
12754
else
 
12755
  echo "configure: failed program was:" >&5
 
12756
  cat conftest.$ac_ext >&5
 
12757
  rm -rf conftest*
 
12758
  eval "ac_cv_lib_$ac_lib_var=no"
 
12759
fi
 
12760
rm -f conftest*
 
12761
LIBS="$ac_save_LIBS"
 
12762
 
 
12763
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
12764
  echo "$ac_t""yes" 1>&6
 
12765
  OCLLIB="$OCLLIB -lOpenCL "
 
12766
else
 
12767
  echo "$ac_t""no" 1>&6
 
12768
 
 
12769
LDFLAGS=${ac_save_ldflags}
 
12770
 
 
12771
    { echo "configure: error: *** Unable to locate OpenCL library." 1>&2; exit 1; }
 
12772
 
 
12773
 
 
12774
fi
 
12775
 
 
12776
 
 
12777
 
 
12778
LDFLAGS=${ac_save_ldflags}
 
12779
 
 
12780
    # expanded symbol check: yes? no?
 
12781
    #LOC_CHECK_FUNC(clGetPlatformInfo,OpenCL functions,OCLLIB,,,,,[
 
12782
    #LOC_CHECK_LIBS(OpenCL,clGetPlatformInfo,OpenCL,$OCLLIBPATH,OCLLIB,,,)
 
12783
    #])
 
12784
fi
 
12785
 
 
12786
fi # $USE_OPENCL
 
12787
 
 
12788
 
 
12789
 
 
12790
 
 
12791
 
 
12792
 
 
12793
# Done checking OpenCL
 
12794
 
 
12795
# Enable LFS (from cdr-tools, tar, and autoconf 2.68)
15757
12796
# Check whether --enable-largefile or --disable-largefile was given.
15758
12797
if test "${enable_largefile+set}" = set; then
15759
12798
  enableval="$enable_largefile"
15760
12799
  :
15761
12800
fi
15762
12801
 
15763
 
   if test "$enable_largefile" = yes; then
 
12802
   LFS_CFLAGS=
 
12803
   if test "$enable_largefile" != no; then
 
12804
     ac_save_cflags=$CFLAGS
 
12805
     if test "`which getconf 2>&5`" ; then
 
12806
       LFS_CFLAGS=`getconf LFS_CFLAGS 2>&5`
 
12807
       CFLAGS="$LFS_CFLAGS $ac_save_cflags"
 
12808
     fi
15764
12809
 
15765
12810
     echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
15766
 
echo "configure:15767: checking for special C compiler options needed for large files" >&5
 
12811
echo "configure:12812: checking for special C compiler options needed for large files" >&5
15767
12812
 
15768
12813
ac_cv_sys_largefile_CC=no
15769
12814
        largefile_cc_opt=""
15771
12816
          # IRIX 6.2 and later do not support large files by default,
15772
12817
          # so use the C compiler's -n32 option if that helps.
15773
12818
          cat > conftest.$ac_ext <<EOF
15774
 
#line 15775 "configure"
 
12819
#line 12820 "configure"
15775
12820
#include "confdefs.h"
15776
12821
#include <sys/types.h>
15777
12822
    /* Check that off_t can represent 2**63 - 1 correctly.
15787
12832
 
15788
12833
; return 0; }
15789
12834
EOF
15790
 
if { (eval echo configure:15791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
12835
if { (eval echo configure:12836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15791
12836
  :
15792
12837
else
15793
12838
  echo "configure: failed program was:" >&5
15796
12841
  ac_save_CC="${CC-cc}"
15797
12842
             CC="$CC -n32"
15798
12843
             cat > conftest.$ac_ext <<EOF
15799
 
#line 15800 "configure"
 
12844
#line 12845 "configure"
15800
12845
#include "confdefs.h"
15801
12846
#include <sys/types.h>
15802
12847
    /* Check that off_t can represent 2**63 - 1 correctly.
15812
12857
 
15813
12858
; return 0; }
15814
12859
EOF
15815
 
if { (eval echo configure:15816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
12860
if { (eval echo configure:12861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15816
12861
  rm -rf conftest*
15817
12862
  ac_cv_sys_largefile_CC=' -n32'
15818
12863
else
15829
12874
     if test "$ac_cv_sys_largefile_CC" != no; then
15830
12875
       CC="$CC$ac_cv_sys_largefile_CC"
15831
12876
       largefile_cc_opt="$ac_cv_sys_largefile_CC"
 
12877
 
 
12878
       if test "$LFS_CFLAGS" ; then
 
12879
         LFS_CFLAGS="$LFS_CFLAGS $ac_cv_sys_largefile_CC"
 
12880
       else
 
12881
         LFS_CFLAGS="$ac_cv_sys_largefile_CC"
 
12882
         CFLAGS="$LFS_CFLAGS $ac_save_cflags"
 
12883
       fi
15832
12884
     fi
15833
12885
 
15834
12886
     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
15835
 
echo "configure:15836: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
12887
echo "configure:12888: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15836
12888
 
15837
12889
ac_cv_sys_file_offset_bits=no
15838
12890
      cat > conftest.$ac_ext <<EOF
15839
 
#line 15840 "configure"
 
12891
#line 12892 "configure"
15840
12892
#include "confdefs.h"
15841
12893
#include <sys/types.h>
15842
12894
    /* Check that off_t can represent 2**63 - 1 correctly.
15852
12904
 
15853
12905
; return 0; }
15854
12906
EOF
15855
 
if { (eval echo configure:15856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
12907
if { (eval echo configure:12908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15856
12908
  :
15857
12909
else
15858
12910
  echo "configure: failed program was:" >&5
15859
12911
  cat conftest.$ac_ext >&5
15860
12912
  rm -rf conftest*
15861
12913
  cat > conftest.$ac_ext <<EOF
15862
 
#line 15863 "configure"
 
12914
#line 12915 "configure"
15863
12915
#include "confdefs.h"
15864
12916
#define _FILE_OFFSET_BITS 64
15865
12917
#include <sys/types.h>
15877
12929
 
15878
12930
; return 0; }
15879
12931
EOF
15880
 
if { (eval echo configure:15881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
12932
if { (eval echo configure:12933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15881
12933
  rm -rf conftest*
15882
12934
  ac_cv_sys_file_offset_bits=64
15883
12935
else
15894
12946
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15895
12947
EOF
15896
12948
 
 
12949
 
 
12950
   if test "$LFS_CFLAGS" ; then
 
12951
     LFS_CFLAGS="$LFS_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
 
12952
   else
 
12953
     LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
 
12954
   fi
 
12955
 
15897
12956
   fi
15898
12957
     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
15899
 
echo "configure:15900: checking for _LARGE_FILES value needed for large files" >&5
 
12958
echo "configure:12959: checking for _LARGE_FILES value needed for large files" >&5
15900
12959
 
15901
12960
ac_cv_sys_large_files=no
15902
12961
      cat > conftest.$ac_ext <<EOF
15903
 
#line 15904 "configure"
 
12962
#line 12963 "configure"
15904
12963
#include "confdefs.h"
15905
12964
#include <sys/types.h>
15906
12965
    /* Check that off_t can represent 2**63 - 1 correctly.
15916
12975
 
15917
12976
; return 0; }
15918
12977
EOF
15919
 
if { (eval echo configure:15920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
12978
if { (eval echo configure:12979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15920
12979
  :
15921
12980
else
15922
12981
  echo "configure: failed program was:" >&5
15923
12982
  cat conftest.$ac_ext >&5
15924
12983
  rm -rf conftest*
15925
12984
  cat > conftest.$ac_ext <<EOF
15926
 
#line 15927 "configure"
 
12985
#line 12986 "configure"
15927
12986
#include "confdefs.h"
15928
12987
#define _LARGE_FILES 1
15929
12988
#include <sys/types.h>
15941
13000
 
15942
13001
; return 0; }
15943
13002
EOF
15944
 
if { (eval echo configure:15945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
13003
if { (eval echo configure:13004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15945
13004
  rm -rf conftest*
15946
13005
  ac_cv_sys_large_files=1
15947
13006
else
15958
13017
#define _LARGE_FILES $ac_cv_sys_large_files
15959
13018
EOF
15960
13019
 
 
13020
 
 
13021
   if test "$LFS_CFLAGS" ; then
 
13022
     LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
 
13023
   else
 
13024
     LFS_CFLAGS="-D_LARGE_FILES=$ac_cv_sys_large_files"
 
13025
   fi
 
13026
 
15961
13027
   fi
15962
13028
     echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
15963
 
echo "configure:15964: checking for _LARGEFILE_SOURCE value needed for large files" >&5
 
13029
echo "configure:13030: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15964
13030
 
15965
13031
ac_cv_sys_largefile_source=no
15966
13032
      cat > conftest.$ac_ext <<EOF
15967
 
#line 15968 "configure"
 
13033
#line 13034 "configure"
15968
13034
#include "confdefs.h"
15969
13035
#include <stdio.h>
15970
13036
int main() {
15971
13037
return !fseeko;
15972
13038
; return 0; }
15973
13039
EOF
15974
 
if { (eval echo configure:15975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
13040
if { (eval echo configure:13041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15975
13041
  :
15976
13042
else
15977
13043
  echo "configure: failed program was:" >&5
15978
13044
  cat conftest.$ac_ext >&5
15979
13045
  rm -rf conftest*
15980
13046
  cat > conftest.$ac_ext <<EOF
15981
 
#line 15982 "configure"
 
13047
#line 13048 "configure"
15982
13048
#include "confdefs.h"
15983
13049
#define _LARGEFILE_SOURCE 1
15984
13050
#include <stdio.h>
15987
13053
return !fseeko;
15988
13054
; return 0; }
15989
13055
EOF
15990
 
if { (eval echo configure:15991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
13056
if { (eval echo configure:13057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15991
13057
  rm -rf conftest*
15992
13058
  ac_cv_sys_largefile_source=1
15993
13059
else
16004
13070
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16005
13071
EOF
16006
13072
 
16007
 
   fi
 
13073
 
 
13074
   if test "$LFS_CFLAGS" ; then
 
13075
     LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
 
13076
   else
 
13077
     LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
 
13078
   fi
 
13079
 
 
13080
   fi
 
13081
 
 
13082
     CFLAGS=$ac_save_cflags
16008
13083
   fi
16009
13084
  
 
13085
ac_save_cflags=${CFLAGS}
 
13086
CFLAGS="$LFS_CFLAGS ${ac_save_cflags}"
 
13087
echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
 
13088
echo "configure:13089: checking for _LARGEFILE_SOURCE value needed for large files" >&5
 
13089
 
 
13090
ac_cv_sys_largefile_source=no
 
13091
      cat > conftest.$ac_ext <<EOF
 
13092
#line 13093 "configure"
 
13093
#include "confdefs.h"
 
13094
#include <stdio.h>
 
13095
int main() {
 
13096
return !fseeko;
 
13097
; return 0; }
 
13098
EOF
 
13099
if { (eval echo configure:13100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
13100
  :
 
13101
else
 
13102
  echo "configure: failed program was:" >&5
 
13103
  cat conftest.$ac_ext >&5
 
13104
  rm -rf conftest*
 
13105
  cat > conftest.$ac_ext <<EOF
 
13106
#line 13107 "configure"
 
13107
#include "confdefs.h"
 
13108
#define _LARGEFILE_SOURCE 1
 
13109
#include <stdio.h>
 
13110
           
 
13111
int main() {
 
13112
return !fseeko;
 
13113
; return 0; }
 
13114
EOF
 
13115
if { (eval echo configure:13116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
13116
  rm -rf conftest*
 
13117
  ac_cv_sys_largefile_source=1
 
13118
else
 
13119
  echo "configure: failed program was:" >&5
 
13120
  cat conftest.$ac_ext >&5
 
13121
fi
 
13122
rm -f conftest*
 
13123
fi
 
13124
rm -f conftest*
 
13125
 
 
13126
echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
 
13127
   if test "$ac_cv_sys_largefile_source" != no; then
 
13128
     cat >> confdefs.h <<EOF
 
13129
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
 
13130
EOF
 
13131
 
 
13132
 
 
13133
   if test "$LFS_CFLAGS" ; then
 
13134
     LFS_CFLAGS="$LFS_CFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
 
13135
   else
 
13136
     LFS_CFLAGS="-D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
 
13137
   fi
 
13138
 
 
13139
   fi
 
13140
   # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
 
13141
   # in glibc 2.1.3, but that breaks too many other things.
 
13142
   # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
 
13143
 
 
13144
   echo $ac_n "checking for fseeko""... $ac_c" 1>&6
 
13145
echo "configure:13146: checking for fseeko" >&5
 
13146
 
 
13147
ac_cv_func_fseeko=no
 
13148
      cat > conftest.$ac_ext <<EOF
 
13149
#line 13150 "configure"
 
13150
#include "confdefs.h"
 
13151
#include <stdio.h>
 
13152
int main() {
 
13153
return fseeko && fseeko (stdin, 0, 0);
 
13154
; return 0; }
 
13155
EOF
 
13156
if { (eval echo configure:13157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
13157
  rm -rf conftest*
 
13158
  ac_cv_func_fseeko=yes
 
13159
else
 
13160
  echo "configure: failed program was:" >&5
 
13161
  cat conftest.$ac_ext >&5
 
13162
fi
 
13163
rm -f conftest*
 
13164
 
 
13165
echo "$ac_t""$ac_cv_func_fseeko" 1>&6
 
13166
   if test $ac_cv_func_fseeko != no; then
 
13167
     cat >> confdefs.h <<\EOF
 
13168
#define HAVE_FSEEKO 1
 
13169
EOF
 
13170
 
 
13171
   fi
16010
13172
echo $ac_n "checking if system supports Large Files at all""... $ac_c" 1>&6
16011
 
echo "configure:16012: checking if system supports Large Files at all" >&5
 
13173
echo "configure:13174: checking if system supports Large Files at all" >&5
16012
13174
 
16013
13175
cat > conftest.$ac_ext <<EOF
16014
 
#line 16015 "configure"
 
13176
#line 13177 "configure"
16015
13177
#include "confdefs.h"
16016
13178
#include <stdio.h>
16017
13179
#include <sys/types.h>
16043
13205
#endif
16044
13206
; return 0; }
16045
13207
EOF
16046
 
if { (eval echo configure:16047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
13208
if { (eval echo configure:13209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16047
13209
  rm -rf conftest*
16048
13210
  ac_cv_largefiles=yes
16049
13211
else
16060
13222
#define HAVE_LARGEFILES 1
16061
13223
EOF
16062
13224
 
 
13225
          USE_LARGEFILES=1
 
13226
        else
 
13227
          USE_LARGEFILES=
 
13228
          LFS_CFLAGS=
16063
13229
        fi
16064
 
 
16065
 
USE_LARGEFILES=
16066
 
if test $ac_cv_largefiles = yes; then
16067
 
        USE_LARGEFILES=1
16068
 
fi
16069
 
 
 
13230
        
 
13231
        
 
13232
        
 
13233
CFLAGS=${ac_save_cflags}
16070
13234
# Done large file support
16071
13235
 
16072
 
# Python check
16073
 
 
16074
 
echo $ac_n "checking whether to use Python""... $ac_c" 1>&6
16075
 
echo "configure:16076: checking whether to use Python" >&5
16076
 
 
16077
 
PYTHONINC=
16078
 
PYTHONCFLAGS=
16079
 
PYTHONLDFLAGS=
16080
 
USE_PYTHON=
16081
 
MACOSX_ARCHS_PYTHON=
16082
 
 
16083
 
if test "$with_python" = "no" ; then
16084
 
  echo "$ac_t""no" 1>&6
16085
 
else
16086
 
  echo "$ac_t""yes" 1>&6
16087
 
  USE_PYTHON="1"
16088
 
  if test "$with_python" != "yes" ; then
16089
 
    PY_CONFIG="$with_python"
16090
 
  fi
16091
 
 
16092
 
  # Extract the first word of "python-config", so it can be a program name with args.
16093
 
set dummy python-config; ac_word=$2
16094
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16095
 
echo "configure:16096: checking for $ac_word" >&5
16096
 
 
16097
 
case "$PY_CONFIG" in
16098
 
  /*)
16099
 
  ac_cv_path_PY_CONFIG="$PY_CONFIG" # Let the user override the test with a path.
16100
 
  ;;
16101
 
  ?:/*)                  
16102
 
  ac_cv_path_PY_CONFIG="$PY_CONFIG" # Let the user override the test with a dos path.
16103
 
  ;;
16104
 
  *)
16105
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
16106
 
  ac_dummy="$PATH"
16107
 
  for ac_dir in $ac_dummy; do 
16108
 
    test -z "$ac_dir" && ac_dir=.
16109
 
    if test -f $ac_dir/$ac_word; then
16110
 
      ac_cv_path_PY_CONFIG="$ac_dir/$ac_word"
16111
 
      break
16112
 
    fi
16113
 
  done
16114
 
  IFS="$ac_save_ifs"
16115
 
  test -z "$ac_cv_path_PY_CONFIG" && ac_cv_path_PY_CONFIG="no"
16116
 
  ;;
16117
 
esac
16118
 
PY_CONFIG="$ac_cv_path_PY_CONFIG"
16119
 
if test -n "$PY_CONFIG"; then
16120
 
  echo "$ac_t""$PY_CONFIG" 1>&6
16121
 
else
16122
 
  echo "$ac_t""no" 1>&6
16123
 
fi
16124
 
 
16125
 
 
16126
 
  if test "$PY_CONFIG" != "no" ; then
16127
 
    # With Python includes directory 
16128
 
 
16129
 
    PYTHONINC=`"$PY_CONFIG" --includes`
16130
 
    
16131
 
ac_save_cppflags="$CPPFLAGS"
16132
 
CPPFLAGS="$PYTHONINC $CPPFLAGS"
16133
 
for ac_hdr in Python.h
16134
 
do
16135
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16136
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16137
 
echo "configure:16138: checking for $ac_hdr" >&5
16138
 
 
16139
 
cat > conftest.$ac_ext <<EOF
16140
 
#line 16141 "configure"
16141
 
#include "confdefs.h"
16142
 
#include <$ac_hdr>
16143
 
EOF
16144
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16145
 
{ (eval echo configure:16146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16146
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16147
 
if test -z "$ac_err"; then
16148
 
  rm -rf conftest*
16149
 
  eval "ac_cv_header_$ac_safe=yes"
16150
 
else
16151
 
  echo "$ac_err" >&5
16152
 
  echo "configure: failed program was:" >&5
16153
 
  cat conftest.$ac_ext >&5
16154
 
  rm -rf conftest*
16155
 
  eval "ac_cv_header_$ac_safe=no"
16156
 
fi
16157
 
rm -f conftest*
16158
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16159
 
  echo "$ac_t""yes" 1>&6
16160
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16161
 
  cat >> confdefs.h <<EOF
16162
 
#define $ac_tr_hdr 1
16163
 
EOF
16164
 
 
16165
 
else
16166
 
  echo "$ac_t""no" 1>&6
16167
 
{ echo "configure: error: *** Unable to locate Python includes." 1>&2; exit 1; }
16168
 
 
16169
 
fi
16170
 
done
16171
 
 
16172
 
CPPFLAGS=$ac_save_cppflags
16173
 
 
16174
 
 
16175
 
    PYTHONCFLAGS=`"$PY_CONFIG" --cflags`
16176
 
 
16177
 
    # With Python library directory
16178
 
 
16179
 
    PYTHONLDFLAGS=`"$PY_CONFIG" --ldflags`
16180
 
 
16181
 
    # shouldn't have arch flags in C/LD flags on OSX
16182
 
    for a in i386 ppc x86_64 ppc64
16183
 
    do
16184
 
      PYTHONCFLAGS=`echo "$PYTHONCFLAGS" | sed "s/-arch  *$a//g"`
16185
 
      PYTHONLDFLAGS=`echo "$PYTHONLDFLAGS" | sed "s/-arch  *$a//g"`
16186
 
    done
16187
 
  fi
16188
 
 
16189
 
  # check for available OSX archs in Python, assume framework
16190
 
  if test -n "$MACOSX_ARCHS" ; then
16191
 
    pylib=`"$PY_CONFIG" --prefix`/Python
16192
 
    pylibinfo=`file "$pylib"`
16193
 
    for a in i386 ppc x86_64 ppc64
16194
 
    do
16195
 
      # add only if in MACOSX_ARCHS
16196
 
      if test -n "`echo \"$pylibinfo\" | grep \"library $a\"`" ; then
16197
 
        if test -n "`echo "$MACOSX_ARCHS" | grep $a`" ; then
16198
 
          MACOSX_ARCHS_PYTHON="$MACOSX_ARCHS_PYTHON -arch $a"
16199
 
        fi
16200
 
      fi
16201
 
    done
16202
 
  fi
16203
 
 
16204
 
fi # Done checking Python
16205
 
 
16206
 
 
16207
 
 
16208
 
 
16209
 
 
16210
 
 
16211
 
 
16212
13236
# Enable wxWidgets support (for wxGUI)
16213
13237
 
16214
13238
echo $ac_n "checking whether to use wxWidgets""... $ac_c" 1>&6
16215
 
echo "configure:16216: checking whether to use wxWidgets" >&5
 
13239
echo "configure:13240: checking whether to use wxWidgets" >&5
16216
13240
 
16217
13241
WXVERSION=
16218
13242
WXWIDGETSCXXFLAGS= 
16233
13257
  # Extract the first word of "wx-config", so it can be a program name with args.
16234
13258
set dummy wx-config; ac_word=$2
16235
13259
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16236
 
echo "configure:16237: checking for $ac_word" >&5
 
13260
echo "configure:13261: checking for $ac_word" >&5
16237
13261
 
16238
13262
case "$WX_CONFIG" in
16239
13263
  /*)
16281
13305
 REQWX="2.8.1"
16282
13306
 
16283
13307
 echo $ac_n "checking wxWidgets version""... $ac_c" 1>&6
16284
 
echo "configure:16285: checking wxWidgets version" >&5
 
13308
echo "configure:13309: checking wxWidgets version" >&5
16285
13309
 if WXVERSION=`"$WX_CONFIG" --version`; then
16286
13310
   echo "$ac_t""$WXVERSION" 1>&6
16287
13311
 else
16304
13328
do
16305
13329
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16306
13330
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16307
 
echo "configure:16308: checking for $ac_hdr" >&5
 
13331
echo "configure:13332: checking for $ac_hdr" >&5
16308
13332
 
16309
13333
cat > conftest.$ac_ext <<EOF
16310
 
#line 16311 "configure"
 
13334
#line 13335 "configure"
16311
13335
#include "confdefs.h"
16312
13336
#include <$ac_hdr>
16313
13337
EOF
16314
13338
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16315
 
{ (eval echo configure:16316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
13339
{ (eval echo configure:13340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16316
13340
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16317
13341
if test -z "$ac_err"; then
16318
13342
  rm -rf conftest*
16358
13382
  if test -n "$MACOSX_ARCHS" ; then
16359
13383
    wxver=`"$WX_CONFIG" --version`
16360
13384
    wxlib=`"$WX_CONFIG" --prefix`/lib/lib`"$WX_CONFIG" --basename`-`echo "$wxver" | cut -d . -f1,2`.dylib
16361
 
    wxlibinfo=`file -L "$wxlib"`
 
13385
    wxlibinfo=`file "$wxlib"`
16362
13386
    for a in i386 ppc x86_64 ppc64
16363
13387
    do
16364
13388
      # add only if in MACOSX_ARCHS
16444
13468
ac_given_srcdir=$srcdir
16445
13469
ac_given_INSTALL="$INSTALL"
16446
13470
 
16447
 
trap 'rm -fr `echo "include/Make/Grass.make include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h include/winname.h grass.pc include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
13471
trap 'rm -fr `echo "include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16448
13472
EOF
16449
13473
cat >> $CONFIG_STATUS <<EOF
16450
13474
 
16505
13529
s%@MACOSX_ARCHS@%$MACOSX_ARCHS%g
16506
13530
s%@MACOSX_SDK@%$MACOSX_SDK%g
16507
13531
s%@INSTDIR@%$INSTDIR%g
16508
 
s%@GRASS_LIB_PREFIX@%$GRASS_LIB_PREFIX%g
16509
 
s%@GRASS_LIB_SUFFIX@%$GRASS_LIB_SUFFIX%g
16510
13532
s%@GRASS_LIBRARY_TYPE@%$GRASS_LIBRARY_TYPE%g
16511
 
s%@RANLIB@%$RANLIB%g
16512
 
s%@AR@%$AR%g
16513
 
s%@CPP@%$CPP%g
16514
 
s%@PLAT_OBJS@%$PLAT_OBJS%g
16515
 
s%@CFLAGS_DEBUG@%$CFLAGS_DEBUG%g
16516
 
s%@CFLAGS_OPTIMIZE@%$CFLAGS_OPTIMIZE%g
16517
 
s%@CFLAGS_WARNING@%$CFLAGS_WARNING%g
16518
 
s%@EXTRA_CFLAGS@%$EXTRA_CFLAGS%g
16519
 
s%@LDFLAGS_DEBUG@%$LDFLAGS_DEBUG%g
16520
 
s%@LDFLAGS_OPTIMIZE@%$LDFLAGS_OPTIMIZE%g
16521
 
s%@CC_SEARCH_FLAGS@%$CC_SEARCH_FLAGS%g
16522
13533
s%@LD_SEARCH_FLAGS@%$LD_SEARCH_FLAGS%g
16523
13534
s%@LD_LIBRARY_PATH_VAR@%$LD_LIBRARY_PATH_VAR%g
16524
 
s%@STLIB_LD@%$STLIB_LD%g
16525
13535
s%@SHLIB_LD@%$SHLIB_LD%g
16526
 
s%@GRASS_SHLIB_LD_EXTRAS@%$GRASS_SHLIB_LD_EXTRAS%g
16527
13536
s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g
16528
 
s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
16529
13537
s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
16530
13538
s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
16531
 
s%@MAKE_LIB@%$MAKE_LIB%g
16532
 
s%@MAKE_STUB_LIB@%$MAKE_STUB_LIB%g
16533
 
s%@INSTALL_LIB@%$INSTALL_LIB%g
16534
 
s%@INSTALL_STUB_LIB@%$INSTALL_STUB_LIB%g
 
13539
s%@STLIB_LD@%$STLIB_LD%g
 
13540
s%@STLIB_SUFFIX@%$STLIB_SUFFIX%g
16535
13541
s%@INCLUDE_DIRS@%$INCLUDE_DIRS%g
16536
13542
s%@LIBRARY_DIRS@%$LIBRARY_DIRS%g
16537
13543
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16542
13548
s%@LEXPATH@%$LEXPATH%g
16543
13549
s%@YACC@%$YACC%g
16544
13550
s%@YACCPATH@%$YACCPATH%g
 
13551
s%@RANLIB@%$RANLIB%g
 
13552
s%@AR@%$AR%g
16545
13553
s%@ENV@%$ENV%g
16546
13554
s%@PERL@%$PERL%g
 
13555
s%@CPP@%$CPP%g
16547
13556
s%@CROSS_COMPILING@%$CROSS_COMPILING%g
16548
13557
s%@X_CFLAGS@%$X_CFLAGS%g
16549
13558
s%@X_LIBS@%$X_LIBS%g
16552
13561
s%@XLIB@%$XLIB%g
16553
13562
s%@XTLIB@%$XTLIB%g
16554
13563
s%@USE_X11@%$USE_X11%g
16555
 
s%@CURSES_MAXY@%$CURSES_MAXY%g
16556
 
s%@CURSESLIB@%$CURSESLIB%g
16557
 
s%@USE_CURSES@%$USE_CURSES%g
16558
 
s%@COMPATLIB@%$COMPATLIB%g
16559
13564
s%@DBMIEXTRALIB@%$DBMIEXTRALIB%g
16560
 
s%@XDRLIB@%$XDRLIB%g
16561
13565
s%@HAVE_ASPRINTF@%$HAVE_ASPRINTF%g
16562
13566
s%@MATHLIB@%$MATHLIB%g
16563
13567
s%@DLLIB@%$DLLIB%g
16584
13588
s%@GDAL_CFLAGS@%$GDAL_CFLAGS%g
16585
13589
s%@USE_GDAL@%$USE_GDAL%g
16586
13590
s%@USE_OGR@%$USE_OGR%g
 
13591
s%@LIBLAS_CONFIG@%$LIBLAS_CONFIG%g
 
13592
s%@LIBLAS_LIBS@%$LIBLAS_LIBS%g
 
13593
s%@LIBLAS_CFLAGS@%$LIBLAS_CFLAGS%g
 
13594
s%@LIBLAS_INC@%$LIBLAS_INC%g
 
13595
s%@USE_LIBLAS@%$USE_LIBLAS%g
 
13596
s%@NETCDF_CONFIG@%$NETCDF_CONFIG%g
 
13597
s%@NETCDF_LIBS@%$NETCDF_LIBS%g
 
13598
s%@NETCDF_CFLAGS@%$NETCDF_CFLAGS%g
 
13599
s%@USE_NETCDF@%$USE_NETCDF%g
16587
13600
s%@GEOS_CONFIG@%$GEOS_CONFIG%g
16588
13601
s%@GEOS_LIBS@%$GEOS_LIBS%g
16589
13602
s%@GEOS_CFLAGS@%$GEOS_CFLAGS%g
16608
13621
s%@SQLITEINCPATH@%$SQLITEINCPATH%g
16609
13622
s%@SQLITELIBPATH@%$SQLITELIBPATH%g
16610
13623
s%@SQLITELIB@%$SQLITELIB%g
16611
 
s%@USE_FFMPEG@%$USE_FFMPEG%g
16612
 
s%@FFMPEGINCPATH@%$FFMPEGINCPATH%g
16613
 
s%@FFMPEGLIBPATH@%$FFMPEGLIBPATH%g
16614
 
s%@FFMPEGLIB@%$FFMPEGLIB%g
16615
13624
s%@USE_OPENGL@%$USE_OPENGL%g
16616
13625
s%@OPENGL_X11@%$OPENGL_X11%g
16617
13626
s%@OPENGL_AQUA@%$OPENGL_AQUA%g
16619
13628
s%@OPENGLINC@%$OPENGLINC%g
16620
13629
s%@OPENGLLIB@%$OPENGLLIB%g
16621
13630
s%@OPENGLULIB@%$OPENGLULIB%g
16622
 
s%@TCLINCDIR@%$TCLINCDIR%g
16623
 
s%@TKINCDIR@%$TKINCDIR%g
16624
 
s%@TCLTKLIBPATH@%$TCLTKLIBPATH%g
16625
 
s%@TCLTKLIBS@%$TCLTKLIBS%g
16626
 
s%@TCL_VERSION@%$TCL_VERSION%g
16627
 
s%@MACOSX_ARCHS_TCLTK@%$MACOSX_ARCHS_TCLTK%g
16628
13631
s%@ODBCINC@%$ODBCINC%g
16629
13632
s%@ODBCLIB@%$ODBCLIB%g
16630
13633
s%@FFTWINC@%$FFTWINC%g
16633
13636
s%@BLASINC@%$BLASINC%g
16634
13637
s%@LAPACKLIB@%$LAPACKLIB%g
16635
13638
s%@LAPACKINC@%$LAPACKINC%g
16636
 
s%@XMINC@%$XMINC%g
16637
 
s%@XMLIB@%$XMLIB%g
16638
13639
s%@CAIRO_HAS_XRENDER@%$CAIRO_HAS_XRENDER%g
16639
13640
s%@CAIRO_HAS_XRENDER_SURFACE@%$CAIRO_HAS_XRENDER_SURFACE%g
16640
13641
s%@CAIROINC@%$CAIROINC%g
16641
13642
s%@CAIROLIB@%$CAIROLIB%g
16642
13643
s%@USE_CAIRO@%$USE_CAIRO%g
16643
 
s%@OPENGLWINC@%$OPENGLWINC%g
16644
 
s%@OPENGLWM@%$OPENGLWM%g
16645
13644
s%@FTINC@%$FTINC%g
16646
13645
s%@FTLIB@%$FTLIB%g
16647
13646
s%@INTLLIB@%$INTLLIB%g
16651
13650
s%@OPENDWGLIBPATH@%$OPENDWGLIBPATH%g
16652
13651
s%@OPENDWGLIB@%$OPENDWGLIB%g
16653
13652
s%@USE_OPENDWG@%$USE_OPENDWG%g
 
13653
s%@PTHREADINCPATH@%$PTHREADINCPATH%g
 
13654
s%@PTHREADLIBPATH@%$PTHREADLIBPATH%g
 
13655
s%@PTHREADLIB@%$PTHREADLIB%g
 
13656
s%@USE_PTHREAD@%$USE_PTHREAD%g
 
13657
s%@OMPINCPATH@%$OMPINCPATH%g
 
13658
s%@OMPLIBPATH@%$OMPLIBPATH%g
 
13659
s%@OMPLIB@%$OMPLIB%g
 
13660
s%@OMPCFLAGS@%$OMPCFLAGS%g
 
13661
s%@USE_OPENMP@%$USE_OPENMP%g
 
13662
s%@OCLINCPATH@%$OCLINCPATH%g
 
13663
s%@OCLLIBPATH@%$OCLLIBPATH%g
 
13664
s%@OCLLIB@%$OCLLIB%g
 
13665
s%@USE_OPENCL@%$USE_OPENCL%g
16654
13666
s%@USE_LARGEFILES@%$USE_LARGEFILES%g
16655
 
s%@PY_CONFIG@%$PY_CONFIG%g
16656
 
s%@PYTHONINC@%$PYTHONINC%g
16657
 
s%@PYTHONCFLAGS@%$PYTHONCFLAGS%g
16658
 
s%@PYTHONLDFLAGS@%$PYTHONLDFLAGS%g
16659
 
s%@USE_PYTHON@%$USE_PYTHON%g
16660
 
s%@MACOSX_ARCHS_PYTHON@%$MACOSX_ARCHS_PYTHON%g
 
13667
s%@LFS_CFLAGS@%$LFS_CFLAGS%g
16661
13668
s%@WX_CONFIG@%$WX_CONFIG%g
16662
13669
s%@WXVERSION@%$WXVERSION%g
16663
13670
s%@WXWIDGETSCXXFLAGS@%$WXWIDGETSCXXFLAGS%g
16709
13716
 
16710
13717
cat >> $CONFIG_STATUS <<EOF
16711
13718
 
16712
 
CONFIG_FILES=\${CONFIG_FILES-"include/Make/Grass.make include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h include/winname.h grass.pc"}
 
13719
CONFIG_FILES=\${CONFIG_FILES-"include/Make/Platform.make include/Make/Doxyfile_arch_html include/Make/Doxyfile_arch_latex include/version.h grass.pc"}
16713
13720
EOF
16714
13721
cat >> $CONFIG_STATUS <<\EOF
16715
13722
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16895
13902
 
16896
13903
# Display configuration status
16897
13904
 
16898
 
USE_TOGL=
16899
 
if test -n "${USE_TCLTK}" -a -n "${USE_OPENGL}" ; then
16900
 
    USE_TOGL="1"
16901
 
fi
16902
 
 
16903
13905
 
16904
13906
echo ""
16905
13907
 
16910
13912
echo ""
16911
13913
 
16912
13914
 
16913
 
echo "  Source directory:            ${SRCDIR}"
16914
 
 
16915
 
 
16916
 
echo "  Build directory:             ${DSTDIR}"
16917
 
 
16918
 
 
16919
 
echo "  Installation directory:      ${INSTDIR}"
16920
 
 
16921
 
 
16922
 
echo "  Startup script in directory: ${bindir}"
16923
 
 
16924
 
 
16925
 
echo "  C compiler:                  ${CC} ${CFLAGS}"
16926
 
 
16927
 
 
16928
 
echo "  C++ compiler:                ${CXX} ${CXXFLAGS}"
16929
 
 
16930
 
#LOC_MSG([  FORTRAN compiler:            ${F77} ${FFLAGS}])
16931
 
 
16932
 
echo "  Building shared libraries:   ${shared_ok}"
16933
 
 
16934
 
 
16935
 
echo "  64bit support:               ${do64bit}"
16936
 
 
16937
 
 
16938
 
echo "  OpenGL platform:             ${OPENGL_TYPE}"
 
13915
echo "  Source directory:           ${SRCDIR}"
 
13916
 
 
13917
 
 
13918
echo "  Build directory:            ${DSTDIR}"
 
13919
 
 
13920
 
 
13921
echo "  Installation directory:     ${INSTDIR}"
 
13922
 
 
13923
 
 
13924
echo "  Startup script in directory:${bindir}"
 
13925
 
 
13926
 
 
13927
echo "  C compiler:                 ${CC} ${CFLAGS}"
 
13928
 
 
13929
 
 
13930
echo "  C++ compiler:               ${CXX} ${CXXFLAGS}"
 
13931
 
 
13932
 
 
13933
echo "  Building shared libraries:  ${shared_ok}"
 
13934
 
 
13935
 
 
13936
echo "  OpenGL platform:            ${OPENGL_TYPE}"
16939
13937
 
16940
13938
 
16941
13939
echo ""
16952
13950
echo ""
16953
13951
 
16954
13952
 
16955
 
echo "  Tcl/Tk NVIZ:                `if test -n "${USE_TOGL}" ; then echo yes ; else echo no ; fi`"
16956
 
 
16957
 
echo ""
16958
 
 
16959
 
 
16960
13953
echo "  BLAS support:               `if test -n "${USE_BLAS}" ; then echo yes ; else echo no ; fi`"
16961
13954
 
16962
13955
echo "  C++ support:                `if test -n "${USE_CXX}" ; then echo yes ; else echo no ; fi`"
16965
13958
 
16966
13959
echo "  DWG support:                `if test -n "${USE_OPENDWG}" ; then echo yes ; else echo no ; fi`"
16967
13960
 
16968
 
echo "  FFMPEG support:             `if test -n "${USE_FFMPEG}" ; then echo yes ; else echo no ; fi`"
16969
 
 
16970
13961
echo "  FFTW support:               `if test -n "${USE_FFTW}" ; then echo yes ; else echo no ; fi`"
16971
13962
 
16972
13963
echo "  FreeType support:           `if test -n "${USE_FREETYPE}" ; then echo yes ; else echo no ; fi`"
16975
13966
 
16976
13967
echo "  GEOS support:               `if test -n "${USE_GEOS}" ; then echo yes ; else echo no ; fi`"
16977
13968
 
16978
 
echo "  GLw support:                `if test -n "${USE_GLW}" ; then echo yes ; else echo no ; fi`"
16979
 
 
16980
13969
echo "  LAPACK support:             `if test -n "${USE_LAPACK}" ; then echo yes ; else echo no ; fi`"
16981
13970
 
16982
13971
echo "  Large File support (LFS):   `if test -n "${USE_LARGEFILES}" ; then echo yes ; else echo no ; fi`"
16983
13972
 
16984
 
echo "  Motif support:              `if test -n "${USE_MOTIF}" ; then echo yes ; else echo no ; fi`"
 
13973
echo "  libLAS support:             `if test -n "${USE_LIBLAS}" ; then echo yes ; else echo no ; fi`"
16985
13974
 
16986
13975
echo "  MySQL support:              `if test -n "${USE_MYSQL}" ; then echo yes ; else echo no ; fi`"
16987
13976
 
 
13977
echo "  NetCDF support:             `if test -n "${USE_NETCDF}" ; then echo yes ; else echo no ; fi`"
 
13978
 
16988
13979
echo "  NLS support:                `if test -n "${USE_NLS}" ; then echo yes ; else echo no ; fi`"
16989
13980
 
16990
13981
echo "  ODBC support:               `if test -n "${USE_ODBC}" ; then echo yes ; else echo no ; fi`"
16991
13982
 
16992
13983
echo "  OGR support:                `if test -n "${USE_OGR}" ; then echo yes ; else echo no ; fi`"
16993
13984
 
 
13985
echo "  OpenCL support:             `if test -n "${USE_OPENCL}" ; then echo yes ; else echo no ; fi`"
 
13986
 
16994
13987
echo "  OpenGL support:             `if test -n "${USE_OPENGL}" ; then echo yes ; else echo no ; fi`"
16995
13988
 
 
13989
echo "  OpenMP support:             `if test -n "${USE_OPENMP}" ; then echo yes ; else echo no ; fi`"
 
13990
 
16996
13991
echo "  PNG support:                `if test -n "${USE_PNG}" ; then echo yes ; else echo no ; fi`"
16997
13992
 
 
13993
echo "  POSIX thread support:       `if test -n "${USE_PTHREAD}" ; then echo yes ; else echo no ; fi`"
 
13994
 
16998
13995
echo "  PostgreSQL support:         `if test -n "${USE_POSTGRES}" ; then echo yes ; else echo no ; fi`"
16999
13996
 
17000
 
echo "  Python support:             `if test -n "${USE_PYTHON}" ; then echo yes ; else echo no ; fi`"
17001
 
 
17002
13997
echo "  Readline support:           `if test -n "${USE_READLINE}" ; then echo yes ; else echo no ; fi`"
17003
13998
 
 
13999
echo "  Regex support:              `if test -n "${USE_REGEX}" ; then echo yes ; else echo no ; fi`"
 
14000
 
17004
14001
echo "  SQLite support:             `if test -n "${USE_SQLITE}" ; then echo yes ; else echo no ; fi`"
17005
14002
 
17006
 
echo "  Tcl/Tk support:             `if test -n "${USE_TCLTK}" ; then echo yes ; else echo no ; fi`"
 
14003
echo "  TIFF support:               `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
17007
14004
 
17008
14005
echo "  wxWidgets support:          `if test -n "${USE_WXWIDGETS}" ; then echo yes ; else echo no ; fi`"
17009
14006
 
17010
 
echo "  TIFF support:               `if test -n "${USE_TIFF}" ; then echo yes ; else echo no ; fi`"
17011
 
 
17012
14007
echo "  X11 support:                `if test -n "${USE_X11}" ; then echo yes ; else echo no ; fi`"
17013
14008
 
17014
14009
echo ""