Codebase list libgeotiff / 00173b4
New upstream release. Francesco Paolo Lovergine 15 years ago
19 changed file(s) with 4121 addition(s) and 2276 deletion(s). Raw diff Collapse all Expand all
0 2008-07-21 Frank Warmerdam <warmerdam@pobox.com>
1
2 * Prepare 1.2.5 release.
3
4 * csv/*.csv: upgraded to EPSG 6.17.
5
6 2008-07-03 Frank Warmerdam <warmerdam@pobox.com>
7
8 * geo_normalize.c: Fix potential buffer overflow in GTIFAngleStringToDD
9 http://trac.osgeo.org/gdal/ticket/2228
10
11 2008-05-21 Frank Warmerdam <warmerdam@pobox.com>
12
13 * bin/geotifcp.c: Support for -4 option to set from proj.4 def.
14
15 * geotiff_proj4.c: Preliminary proj4->geotiff function, quite incomplete
16
17 2008-05-09 Frank Warmerdam <warmerdam@pobox.com>
18
19 * geo_simpletags.{c,h}, geo_new.c, geotiff.h: Introduce "simple tags"
20 API for parsing geotiff tags that don't come via libtiff. Mostly for
21 use of liblas.
22
23 2008-01-31 Frank Warmerdam <warmerdam@pobox.com>
24
25 * geo_normalize.c: Ignore GCS values less than 1 as seen in the ENVI
26 generated file reported in:
27 http://trac.osgeo.org/gdal/ticket/2183
28
29 2007-12-11 Frank Warmerdam <warmerdam@pobox.com>
30
31 * geo_normalize.c: Add EPSG 9822 (Albers Equal Area) support from EPSG
32
33 2007-10-02 Frank Warmerdam <warmerdam@pobox.com>
34
35 * geo_new.c: avoid memory leak in case of error.
36
037 2007-07-28 Frank Warmerdam <warmerdam@pobox.com>
138
239 * Issue libgeotiff 1.2.4 release.
4242
4343 GT_INCLUDE_FILES = xtiffio.h geotiff.h geotiffio.h geovalues.h \
4444 geonames.h geokeys.h geo_tiffp.h geo_config.h geo_keyp.h \
45 geo_normalize.h cpl_serv.h \
45 geo_normalize.h cpl_serv.h geo_simpletags.h \
4646 epsg_datum.inc epsg_gcs.inc epsg_pm.inc epsg_units.inc geo_ctrans.inc\
4747 epsg_ellipse.inc epsg_pcs.inc epsg_proj.inc epsg_vertcs.inc geokeys.inc
4848
7171 geo_normalize.o \
7272 geotiff_proj4.o \
7373 geo_extra.o \
74 geo_simpletags.o \
7475 cpl_serv.o \
7576 ${NULL}
7677
00 AC_DEFUN(AC_COMPILER_WFLAGS,
11 [
2 # Remove -g from compile flags, we will add via CFG variable if
3 # we need it.
4 CXXFLAGS=`echo "$CXXFLAGS " | sed "s/-g //"`
5 CFLAGS=`echo "$CFLAGS " | sed "s/-g //"`
6
72 # check for GNU compiler, and use -Wall
83 if test "$GCC" = "yes"; then
94 C_WFLAGS="-Wall"
1616 /* GeoTIFF overrides */
1717
1818 #include "geotiff.h"
19 #include "geo_normalize.h"
1920 #include "geo_tiffp.h"
2021 #include "geo_keyp.h"
2122 #include "xtiffio.h"
5455 static uint16 defcompression = (uint16) -1;
5556 static uint16 defpredictor = (uint16) -1;
5657 static char *geofile=(char *)0;
58 static char *proj4_string = (char *) 0;
5759 static char *worldfile=(char *)0;
5860
5961 static void ApplyWorldFile(const char *worldfile, TIFF *out);
7880 extern int optind;
7981 extern char* optarg;
8082
81 while ((c = getopt(argc, argv, "c:f:l:o:p:r:w:e:g:aistd")) != -1)
83 while ((c = getopt(argc, argv, "c:f:l:o:p:r:w:e:g:4:aistd")) != -1)
8284 switch (c) {
8385 case 'a': /* append to output */
8486 mode = "a";
106108 break;
107109 case 'g': /* GeoTIFF metadata file */
108110 geofile = optarg;
111 break;
112 case '4':
113 proj4_string = optarg;
109114 break;
110115 case 'l': /* tile length */
111116 outtiled = TRUE;
246251 return;
247252 }
248253
249 /* Install keys and tags */
250 fd = fopen(geofile,"r");
251 if( fd == NULL )
254 if( geofile )
252255 {
253 perror( geofile );
254 exit( -1 );
256 /* Install keys and tags */
257 fd = fopen(geofile,"r");
258 if( fd == NULL )
259 {
260 perror( geofile );
261 exit( -1 );
262 }
263 if (!GTIFImport(gtif,0,fd))
264 {
265 fprintf(stderr,"Failure in GTIFImport\n");
266 exit (-1);
267 }
268 fclose(fd);
255269 }
256 if (!GTIFImport(gtif,0,fd)) goto bad;
257 fclose(fd);
270 else if( proj4_string )
271 {
272 if( !GTIFSetFromProj4(gtif,proj4_string) )
273 {
274 fprintf(stderr,"Failure in GTIFSetFromProj4\n");
275 exit (-1);
276 }
277 }
258278 GTIFWriteKeys(gtif);
259279 GTIFFree(gtif);
260280 return;
261 bad:
262 fprintf(stderr,"Failure in GTIFImport\n");
263 exit (-1);
264281 }
265282
266283 static void CopyGeoTIFF(TIFF * in, TIFF *out)
351368 "usage: gtiffcp [options] input... output",
352369 "where options are:",
353370 " -g file install GeoTIFF metadata from <file>",
371 " -4 proj4_str install GeoTIFF metadata from proj4 string",
354372 " -e file install positioning info from ESRI Worldfile <file>",
355373 " -a append to output instead of overwriting",
356374 " -o offset set initial directory offset",
632650 }
633651 cpOtherTags(in, out);
634652
635 if (geofile)
653 if (geofile || proj4_string )
636654 InstallGeoTIFF(out);
637655 else
638656 CopyGeoTIFF(in,out);
88 #include "geotiff.h"
99 #include "xtiffio.h"
1010 #include "geo_normalize.h"
11 #include "geo_simpletags.h"
1112 #include "geovalues.h"
1213 #include "tiffio.h"
1314 #include "cpl_serv.h"
1718 static void GTIFPrintCorners( GTIF *, GTIFDefn *, FILE *, int, int, int, int );
1819 static const char *CSVFileOverride( const char * );
1920 static const char *CSVDirName = NULL;
21 static TIFF *st_setup_test_info();
2022
2123 void Usage()
2224
4143 GTIF *gtif=(GTIF*)0; /* GeoKey-level descriptor */
4244 int i, norm_print_flag = 1, proj4_print_flag = 0;
4345 int tfw_flag = 0, inv_flag = 0, dec_flag = 0;
46 int st_test_flag = 0;
4447
4548 /*
4649 * Handle command line options.
6265 inv_flag = 1;
6366 else if( strcmp(argv[i],"-d") == 0 )
6467 dec_flag = 1;
68 else if( strcmp(argv[i],"-st_test") == 0 )
69 {
70 st_test_flag = 1;
71 norm_print_flag = 0;
72 }
6573 else if( fname == NULL && argv[i][0] != '-' )
6674 fname = argv[i];
6775 else
7078 }
7179 }
7280
73 if( fname == NULL )
81 if( fname == NULL && !st_test_flag )
7482 Usage();
7583
7684 /*
7785 * Open the file, read the GeoTIFF information, and print to stdout.
7886 */
7987
80 tif=XTIFFOpen(fname,"r");
81 if (!tif) goto failure;
88 if( st_test_flag )
89 {
90 tif = st_setup_test_info();
91 gtif = GTIFNewSimpleTags( tif );
92 }
93 else
94 {
95 tif=XTIFFOpen(fname,"r");
96 if (!tif) goto failure;
8297
83 gtif = GTIFNew(tif);
84 if (!gtif)
85 {
86 fprintf(stderr,"failed in GTIFNew\n");
87 goto failure;
98 gtif = GTIFNew(tif);
99 if (!gtif)
100 {
101 fprintf(stderr,"failed in GTIFNew\n");
102 goto failure;
103 }
88104 }
89105
90106 if( tfw_flag )
128144
129145 Success:
130146 GTIFFree(gtif);
131 XTIFFClose(tif);
147 if( st_test_flag )
148 ST_Destroy( (ST_TIFF *) tif );
149 else
150 XTIFFClose(tif);
132151 return 0;
133152
134153 failure:
307326
308327 fclose( fp );
309328 }
329
330 /************************************************************************/
331 /* st_setup_test_info() */
332 /* */
333 /* Setup a ST_TIFF structure for a simulated TIFF file. This */
334 /* is just a hack to test the ST_ interface. */
335 /************************************************************************/
336
337 static TIFF *st_setup_test_info()
338
339 {
340 ST_TIFF *st;
341 double dbl_data[100];
342 short shrt_data[] =
343 { 1,1,0,6,1024,0,1,1,1025,0,1,1,1026,34737,17,0,2052,0,1,9001,2054,0,1,9102,3072,0,1,26711 };
344 char *ascii_data = "UTM 11 S E000|";
345
346 st = ST_Create();
347
348 dbl_data[0] = 60;
349 dbl_data[1] = 60;
350 dbl_data[2] = 0;
351
352 ST_SetKey( st, 33550, 3, STT_DOUBLE, dbl_data );
353
354 dbl_data[0] = 0;
355 dbl_data[1] = 0;
356 dbl_data[2] = 0;
357 dbl_data[3] = 440720;
358 dbl_data[4] = 3751320;
359 dbl_data[5] = 0;
360 ST_SetKey( st, 33922, 6, STT_DOUBLE, dbl_data );
361
362 ST_SetKey( st, 34735, sizeof(shrt_data)/2, STT_SHORT, shrt_data );
363 ST_SetKey( st, 34737, strlen(ascii_data)+1, STT_ASCII, ascii_data );
364
365 return (TIFF *) st;
366 }
+2793
-2229
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59.
2 # Generated by GNU Autoconf 2.61.
33 #
4 # Copyright (C) 2003 Free Software Foundation, Inc.
4 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
56 # This configure script is free software; the Free Software Foundation
67 # gives unlimited permission to copy, distribute and modify it.
78 ## --------------------- ##
89 ## M4sh Initialization. ##
910 ## --------------------- ##
1011
11 # Be Bourne compatible
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
1214 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1315 emulate sh
1416 NULLCMD=:
1517 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1618 # is contrary to our usage. Disable this feature.
1719 alias -g '${1+"$@"}'='"$@"'
18 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19 set -o posix
20 fi
21 DUALCASE=1; export DUALCASE # for MKS sh
22
23 # Support unset when possible.
24 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25 as_unset=unset
26 else
27 as_unset=false
28 fi
29
30
31 # Work around bugs in pre-3.0 UWIN ksh.
32 $as_unset ENV MAIL MAILPATH
33 PS1='$ '
34 PS2='> '
35 PS4='+ '
36
37 # NLS nuisances.
38 for as_var in \
39 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41 LC_TELEPHONE LC_TIME
42 do
43 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
45 else
46 $as_unset $as_var
47 fi
48 done
49
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52 as_expr=expr
53 else
54 as_expr=false
55 fi
56
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58 as_basename=basename
59 else
60 as_basename=false
61 fi
62
63
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
75
76
77 # PATH needs CR, and LINENO needs CR and PATH.
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in
23 *posix*) set -o posix ;;
24 esac
25
26 fi
27
28
29
30
31 # PATH needs CR
7832 # Avoid depending upon Character Ranges.
7933 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8034 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9549 rm -f conf$$.sh
9650 fi
9751
98
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55 else
56 as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" "" $as_nl"
68
69 # Find who we are. Look in the path if we contain no directory separator.
70 case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
11074 do
11175 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11478 done
115
116 ;;
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
79 IFS=$as_save_IFS
80
81 ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86 as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
106 do
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
122111 fi
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
126 fi
127 case $CONFIG_SHELL in
128 '')
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
117 as_expr=expr
118 else
119 as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123 as_basename=basename
124 else
125 as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
137 q
138 }
139 /^X\/\(\/\/\)$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\).*/{
144 s//\1/
145 q
146 }
147 s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156 else
157 as_have_required=no
158 fi
159
160 if test $as_have_required = yes && (eval ":
161 (as_func_return () {
162 (exit \$1)
163 }
164 as_func_success () {
165 as_func_return 0
166 }
167 as_func_failure () {
168 as_func_return 1
169 }
170 as_func_ret_success () {
171 return 0
172 }
173 as_func_ret_failure () {
174 return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179 :
180 else
181 exitcode=1
182 echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191 :
192 else
193 exitcode=1
194 echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 :
204 else
205 exitcode=1
206 echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217 :
218 else
219 as_candidate_shells=
129220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131222 do
132223 IFS=$as_save_IFS
133224 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
225 case $as_dir in
136226 /*)
137 if ("$as_dir/$as_base" -c '
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231 done
232 IFS=$as_save_IFS
233
234
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in
248 *posix*) set -o posix ;;
249 esac
250
251 fi
252
253
254 :
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in
269 *posix*) set -o posix ;;
270 esac
271
272 fi
273
274
275 :
276 (as_func_return () {
277 (exit $1)
278 }
279 as_func_success () {
280 as_func_return 0
281 }
282 as_func_failure () {
283 as_func_return 1
284 }
285 as_func_ret_success () {
286 return 0
287 }
288 as_func_ret_failure () {
289 return 1
290 }
291
292 exitcode=0
293 if as_func_success; then
294 :
295 else
296 exitcode=1
297 echo as_func_success failed.
298 fi
299
300 if as_func_failure; then
301 exitcode=1
302 echo as_func_failure succeeded.
303 fi
304
305 if as_func_ret_success; then
306 :
307 else
308 exitcode=1
309 echo as_func_ret_success failed.
310 fi
311
312 if as_func_ret_failure; then
313 exitcode=1
314 echo as_func_ret_failure succeeded.
315 fi
316
317 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 :
319 else
320 exitcode=1
321 echo positional parameters were not saved.
322 fi
323
324 test $exitcode = 0) || { (exit 1); exit 1; }
325
326 (
138327 as_lineno_1=$LINENO
139328 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141329 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
146 export CONFIG_SHELL
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148 fi;;
149 esac
150 done
151 done
152 ;;
153 esac
330 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331
332 _ASEOF
333 }; then
334 break
335 fi
336
337 fi
338
339 done
340
341 if test "x$CONFIG_SHELL" != x; then
342 for as_var in BASH_ENV ENV
343 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
344 done
345 export CONFIG_SHELL
346 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 fi
348
349
350 if test $as_have_required = no; then
351 echo This script requires a shell more modern than all the
352 echo shells that I found on your system. Please install a
353 echo modern shell, or manually run the script under such a
354 echo shell if you do have one.
355 { (exit 1); exit 1; }
356 fi
357
358
359 fi
360
361 fi
362
363
364
365 (eval "as_func_return () {
366 (exit \$1)
367 }
368 as_func_success () {
369 as_func_return 0
370 }
371 as_func_failure () {
372 as_func_return 1
373 }
374 as_func_ret_success () {
375 return 0
376 }
377 as_func_ret_failure () {
378 return 1
379 }
380
381 exitcode=0
382 if as_func_success; then
383 :
384 else
385 exitcode=1
386 echo as_func_success failed.
387 fi
388
389 if as_func_failure; then
390 exitcode=1
391 echo as_func_failure succeeded.
392 fi
393
394 if as_func_ret_success; then
395 :
396 else
397 exitcode=1
398 echo as_func_ret_success failed.
399 fi
400
401 if as_func_ret_failure; then
402 exitcode=1
403 echo as_func_ret_failure succeeded.
404 fi
405
406 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 :
408 else
409 exitcode=1
410 echo positional parameters were not saved.
411 fi
412
413 test \$exitcode = 0") || {
414 echo No shell found that supports shell functions.
415 echo Please tell autoconf@gnu.org about your system,
416 echo including any error possibly output before this
417 echo message
418 }
419
420
421
422 as_lineno_1=$LINENO
423 as_lineno_2=$LINENO
424 test "x$as_lineno_1" != "x$as_lineno_2" &&
425 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
154426
155427 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156428 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
429 # line-number line after each line using $LINENO; the second 'sed'
430 # does the real work. The second script uses 'N' to pair each
431 # line-number line with the line containing $LINENO, and appends
432 # trailing '-' during substitution so that $LINENO is not a special
433 # case at line end.
161434 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
435 # scripts with optimization help from Paolo Bonzini. Blame Lee
436 # E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
164441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
165446 N
166 s,$,-,
167 : loop
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
169449 t loop
170 s,-$,,
171 s,^['$as_cr_digits']*\n,,
450 s/-\n.*//
172451 ' >$as_me.lineno &&
173 chmod +x $as_me.lineno ||
452 chmod +x "$as_me.lineno" ||
174453 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175454 { (exit 1); exit 1; }; }
176455
177456 # Don't try to exec as it changes $[0], causing all sort of problems
178457 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
180 . ./$as_me.lineno
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
181460 # Exit status is that of the last command.
182461 exit
183462 }
184463
185464
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T=' ' ;;
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 as_dirname=dirname
467 else
468 as_dirname=false
469 fi
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in
473 -n*)
474 case `echo 'x\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 *) ECHO_C='\c';;
477 esac;;
478 *)
479 ECHO_N='-n';;
191480 esac
192481
193 if expr a : '\(a\)' >/dev/null 2>&1; then
482 if expr a : '\(a\)' >/dev/null 2>&1 &&
483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
194484 as_expr=expr
195485 else
196486 as_expr=false
197487 fi
198488
199489 rm -f conf$$ conf$$.exe conf$$.file
490 if test -d conf$$.dir; then
491 rm -f conf$$.dir/conf$$.file
492 else
493 rm -f conf$$.dir
494 mkdir conf$$.dir
495 fi
200496 echo >conf$$.file
201497 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
498 as_ln_s='ln -s'
499 # ... but there are two gotchas:
500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
502 # In both cases, we have to default to `cp -p'.
503 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
206504 as_ln_s='cp -p'
207 else
208 as_ln_s='ln -s'
209 fi
210505 elif ln conf$$.file conf$$ 2>/dev/null; then
211506 as_ln_s=ln
212507 else
213508 as_ln_s='cp -p'
214509 fi
215 rm -f conf$$ conf$$.exe conf$$.file
510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
511 rmdir conf$$.dir 2>/dev/null
216512
217513 if mkdir -p . 2>/dev/null; then
218514 as_mkdir_p=:
221517 as_mkdir_p=false
222518 fi
223519
224 as_executable_p="test -f"
520 if test -x / >/dev/null 2>&1; then
521 as_test_x='test -x'
522 else
523 if ls -dL / >/dev/null 2>&1; then
524 as_ls_L_option=L
525 else
526 as_ls_L_option=
527 fi
528 as_test_x='
529 eval sh -c '\''
530 if test -d "$1"; then
531 test -d "$1/.";
532 else
533 case $1 in
534 -*)set "./$1";;
535 esac;
536 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
537 ???[sx]*):;;*)false;;esac;fi
538 '\'' sh
539 '
540 fi
541 as_executable_p=$as_test_x
225542
226543 # Sed expression to map a string onto a valid CPP name.
227544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231548
232549
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
550
551 exec 7<&0 </dev/null 6>&1
242552
243553 # Name of the host.
244554 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245555 # so uname gets run too.
246556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247557
248 exec 6>&1
249
250558 #
251559 # Initializations.
252560 #
253561 ac_default_prefix=/usr/local
562 ac_clean_files=
254563 ac_config_libobj_dir=.
564 LIBOBJS=
255565 cross_compiling=no
256566 subdirs=
257567 MFLAGS=
258568 MAKEFLAGS=
259569 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265570
266571 # Identity of this package.
267572 PACKAGE_NAME=
274579 # Factoring default headers for most tests.
275580 ac_includes_default="\
276581 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
582 #ifdef HAVE_SYS_TYPES_H
278583 # include <sys/types.h>
279584 #endif
280 #if HAVE_SYS_STAT_H
585 #ifdef HAVE_SYS_STAT_H
281586 # include <sys/stat.h>
282587 #endif
283 #if STDC_HEADERS
588 #ifdef STDC_HEADERS
284589 # include <stdlib.h>
285590 # include <stddef.h>
286591 #else
287 # if HAVE_STDLIB_H
592 # ifdef HAVE_STDLIB_H
288593 # include <stdlib.h>
289594 # endif
290595 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
293598 # include <memory.h>
294599 # endif
295600 # include <string.h>
296601 #endif
297 #if HAVE_STRINGS_H
602 #ifdef HAVE_STRINGS_H
298603 # include <strings.h>
299604 #endif
300 #if HAVE_INTTYPES_H
605 #ifdef HAVE_INTTYPES_H
301606 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306607 #endif
307 #if HAVE_UNISTD_H
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
308612 # include <unistd.h>
309613 #endif"
310614
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os VERSION_MAJOR VERSION_MINOR VERSION_POINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX_WFLAGS C_WFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB CXX_PIC C_PIC LD_SHARED SO_EXT GEOTIFF_SO GEOTIFF_IMP GEOTIFF_DLL CPP EGREP ZIP_INC TIFF_INC PROJ_INC CSV_SOURCE LIBOBJS LTLIBOBJS'
615 ac_subst_vars='SHELL
616 PATH_SEPARATOR
617 PACKAGE_NAME
618 PACKAGE_TARNAME
619 PACKAGE_VERSION
620 PACKAGE_STRING
621 PACKAGE_BUGREPORT
622 exec_prefix
623 prefix
624 program_transform_name
625 bindir
626 sbindir
627 libexecdir
628 datarootdir
629 datadir
630 sysconfdir
631 sharedstatedir
632 localstatedir
633 includedir
634 oldincludedir
635 docdir
636 infodir
637 htmldir
638 dvidir
639 pdfdir
640 psdir
641 libdir
642 localedir
643 mandir
644 DEFS
645 ECHO_C
646 ECHO_N
647 ECHO_T
648 LIBS
649 build_alias
650 host_alias
651 target_alias
652 build
653 build_cpu
654 build_vendor
655 build_os
656 host
657 host_cpu
658 host_vendor
659 host_os
660 target
661 target_cpu
662 target_vendor
663 target_os
664 VERSION_MAJOR
665 VERSION_MINOR
666 VERSION_POINT
667 CC
668 CFLAGS
669 LDFLAGS
670 CPPFLAGS
671 ac_ct_CC
672 EXEEXT
673 OBJEXT
674 CXX_WFLAGS
675 C_WFLAGS
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 LN_S
680 RANLIB
681 CXX_PIC
682 C_PIC
683 LD_SHARED
684 SO_EXT
685 GEOTIFF_SO
686 GEOTIFF_IMP
687 GEOTIFF_DLL
688 CPP
689 GREP
690 EGREP
691 ZIP_INC
692 TIFF_INC
693 PROJ_INC
694 CSV_SOURCE
695 LIBOBJS
696 LTLIBOBJS'
312697 ac_subst_files=''
698 ac_precious_vars='build_alias
699 host_alias
700 target_alias
701 CC
702 CFLAGS
703 LDFLAGS
704 LIBS
705 CPPFLAGS
706 CPP'
707
313708
314709 # Initialize some variables set by options.
315710 ac_init_help=
336731 # and all the variables that are supposed to be based on exec_prefix
337732 # by default will actually change.
338733 # Use braces instead of parens because sh, perl, etc. also accept them.
734 # (The list follows the same order as the GNU Coding Standards.)
339735 bindir='${exec_prefix}/bin'
340736 sbindir='${exec_prefix}/sbin'
341737 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
738 datarootdir='${prefix}/share'
739 datadir='${datarootdir}'
343740 sysconfdir='${prefix}/etc'
344741 sharedstatedir='${prefix}/com'
345742 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347743 includedir='${prefix}/include'
348744 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
745 docdir='${datarootdir}/doc/${PACKAGE}'
746 infodir='${datarootdir}/info'
747 htmldir='${docdir}'
748 dvidir='${docdir}'
749 pdfdir='${docdir}'
750 psdir='${docdir}'
751 libdir='${exec_prefix}/lib'
752 localedir='${datarootdir}/locale'
753 mandir='${datarootdir}/man'
351754
352755 ac_prev=
756 ac_dashdash=
353757 for ac_option
354758 do
355759 # If the previous option needs an argument, assign it.
356760 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
761 eval $ac_prev=\$ac_option
358762 ac_prev=
359763 continue
360764 fi
361765
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
766 case $ac_option in
767 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
768 *) ac_optarg=yes ;;
769 esac
363770
364771 # Accept the important Cygnus configure options, so we can diagnose typos.
365772
366 case $ac_option in
773 case $ac_dashdash$ac_option in
774 --)
775 ac_dashdash=yes ;;
367776
368777 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369778 ac_prev=bindir ;;
385794 --config-cache | -C)
386795 cache_file=config.cache ;;
387796
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
797 -datadir | --datadir | --datadi | --datad)
389798 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
799 -datadir=* | --datadir=* | --datadi=* | --datad=*)
392800 datadir=$ac_optarg ;;
801
802 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
803 | --dataroo | --dataro | --datar)
804 ac_prev=datarootdir ;;
805 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
806 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
807 datarootdir=$ac_optarg ;;
393808
394809 -disable-* | --disable-*)
395810 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396811 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
812 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
398813 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399814 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
815 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
816 eval enable_$ac_feature=no ;;
817
818 -docdir | --docdir | --docdi | --doc | --do)
819 ac_prev=docdir ;;
820 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
821 docdir=$ac_optarg ;;
822
823 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
824 ac_prev=dvidir ;;
825 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
826 dvidir=$ac_optarg ;;
402827
403828 -enable-* | --enable-*)
404829 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405830 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
831 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
407832 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408833 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
834 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
835 eval enable_$ac_feature=\$ac_optarg ;;
415836
416837 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417838 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
438859 -host=* | --host=* | --hos=* | --ho=*)
439860 host_alias=$ac_optarg ;;
440861
862 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
863 ac_prev=htmldir ;;
864 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
865 | --ht=*)
866 htmldir=$ac_optarg ;;
867
441868 -includedir | --includedir | --includedi | --included | --include \
442869 | --includ | --inclu | --incl | --inc)
443870 ac_prev=includedir ;;
462889 | --libexe=* | --libex=* | --libe=*)
463890 libexecdir=$ac_optarg ;;
464891
892 -localedir | --localedir | --localedi | --localed | --locale)
893 ac_prev=localedir ;;
894 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
895 localedir=$ac_optarg ;;
896
465897 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
898 | --localstate | --localstat | --localsta | --localst | --locals)
468899 ac_prev=localstatedir ;;
469900 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
901 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
472902 localstatedir=$ac_optarg ;;
473903
474904 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
533963 | --progr-tra=* | --program-tr=* | --program-t=*)
534964 program_transform_name=$ac_optarg ;;
535965
966 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
967 ac_prev=pdfdir ;;
968 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
969 pdfdir=$ac_optarg ;;
970
971 -psdir | --psdir | --psdi | --psd | --ps)
972 ac_prev=psdir ;;
973 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
974 psdir=$ac_optarg ;;
975
536976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537977 | -silent | --silent | --silen | --sile | --sil)
538978 silent=yes ;;
5851025 -with-* | --with-*)
5861026 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
5871027 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1028 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5891029 { echo "$as_me: error: invalid package name: $ac_package" >&2
5901030 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
1031 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1032 eval with_$ac_package=\$ac_optarg ;;
5971033
5981034 -without-* | --without-*)
5991035 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
6001036 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1037 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6021038 { echo "$as_me: error: invalid package name: $ac_package" >&2
6031039 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
1040 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1041 eval with_$ac_package=no ;;
6061042
6071043 --x)
6081044 # Obsolete; use --with-x.
6331069 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
6341070 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
6351071 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
1072 eval $ac_envvar=\$ac_optarg
6381073 export $ac_envvar ;;
6391074
6401075 *)
6541089 { (exit 1); exit 1; }; }
6551090 fi
6561091
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
1092 # Be sure to have absolute directory names.
1093 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1094 datadir sysconfdir sharedstatedir localstatedir includedir \
1095 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1096 libdir localedir mandir
6591097 do
660 eval ac_val=$`echo $ac_var`
1098 eval ac_val=\$$ac_var
6611099 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
1100 [\\/$]* | ?:[\\/]* ) continue;;
1101 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
6651102 esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
1103 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1104 { (exit 1); exit 1; }; }
6781105 done
6791106
6801107 # There might be people who depend on the old broken behavior: `$host'
7011128 test "$silent" = yes && exec 6>/dev/null
7021129
7031130
1131 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1132 ac_ls_di=`ls -di .` &&
1133 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1134 { echo "$as_me: error: Working directory cannot be determined" >&2
1135 { (exit 1); exit 1; }; }
1136 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1137 { echo "$as_me: error: pwd does not report name of working directory" >&2
1138 { (exit 1); exit 1; }; }
1139
1140
7041141 # Find the source files, if location was not specified.
7051142 if test -z "$srcdir"; then
7061143 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
1144 # Try the directory containing this script, then the parent directory.
1145 ac_confdir=`$as_dirname -- "$0" ||
7091146 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7101147 X"$0" : 'X\(//\)[^/]' \| \
7111148 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
1149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7141150 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
1151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1152 s//\1/
1153 q
1154 }
1155 /^X\(\/\/\)[^/].*/{
1156 s//\1/
1157 q
1158 }
1159 /^X\(\/\/\)$/{
1160 s//\1/
1161 q
1162 }
1163 /^X\(\/\).*/{
1164 s//\1/
1165 q
1166 }
1167 s/.*/./; q'`
7201168 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
1169 if test ! -r "$srcdir/$ac_unique_file"; then
7221170 srcdir=..
7231171 fi
7241172 else
7251173 ac_srcdir_defaulted=no
7261174 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1175 if test ! -r "$srcdir/$ac_unique_file"; then
1176 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1177 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
7301178 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1179 fi
1180 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1181 ac_abs_confdir=`(
1182 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
7331183 { (exit 1); exit 1; }; }
734 fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
1184 pwd)`
1185 # When building in place, set srcdir=.
1186 if test "$ac_abs_confdir" = "$ac_pwd"; then
1187 srcdir=.
1188 fi
1189 # Remove unnecessary trailing slashes from srcdir.
1190 # Double slashes in file names in object file debugging info
1191 # mess up M-x gdb in Emacs.
1192 case $srcdir in
1193 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1194 esac
1195 for ac_var in $ac_precious_vars; do
1196 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1197 eval ac_env_${ac_var}_value=\$${ac_var}
1198 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1199 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1200 done
7721201
7731202 #
7741203 # Report the --help message.
7971226 -n, --no-create do not create output files
7981227 --srcdir=DIR find the sources in DIR [configure dir or \`..']
7991228
800 _ACEOF
801
802 cat <<_ACEOF
8031229 Installation directories:
8041230 --prefix=PREFIX install architecture-independent files in PREFIX
8051231 [$ac_default_prefix]
8171243 --bindir=DIR user executables [EPREFIX/bin]
8181244 --sbindir=DIR system admin executables [EPREFIX/sbin]
8191245 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
8211246 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
8221247 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
8231248 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
8241249 --libdir=DIR object code libraries [EPREFIX/lib]
8251250 --includedir=DIR C header files [PREFIX/include]
8261251 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
1252 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1253 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1254 --infodir=DIR info documentation [DATAROOTDIR/info]
1255 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1256 --mandir=DIR man documentation [DATAROOTDIR/man]
1257 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1258 --htmldir=DIR html documentation [DOCDIR]
1259 --dvidir=DIR dvi documentation [DOCDIR]
1260 --pdfdir=DIR pdf documentation [DOCDIR]
1261 --psdir=DIR ps documentation [DOCDIR]
8291262 _ACEOF
8301263
8311264 cat <<\_ACEOF
8601293 CFLAGS C compiler flags
8611294 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
8621295 nonstandard directory <lib dir>
863 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864 headers in a nonstandard directory <include dir>
1296 LIBS libraries to pass to the linker, e.g. -l<library>
1297 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1298 you have headers in a nonstandard directory <include dir>
8651299 CPP C preprocessor
8661300
8671301 Use these variables to override the choices made by `configure' or to help
8681302 it to find libraries and programs with nonstandard names/locations.
8691303
8701304 _ACEOF
1305 ac_status=$?
8711306 fi
8721307
8731308 if test "$ac_init_help" = "recursive"; then
8741309 # If there are subdirs, report their specific --help.
875 ac_popdir=`pwd`
8761310 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877 test -d $ac_dir || continue
1311 test -d "$ac_dir" || continue
8781312 ac_builddir=.
8791313
880 if test "$ac_dir" != .; then
1314 case "$ac_dir" in
1315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1316 *)
8811317 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882 # A "../" for each directory in $ac_dir_suffix.
883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884 else
885 ac_dir_suffix= ac_top_builddir=
886 fi
1318 # A ".." for each directory in $ac_dir_suffix.
1319 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1320 case $ac_top_builddir_sub in
1321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1323 esac ;;
1324 esac
1325 ac_abs_top_builddir=$ac_pwd
1326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1327 # for backward compatibility:
1328 ac_top_builddir=$ac_top_build_prefix
8871329
8881330 case $srcdir in
889 .) # No --srcdir option. We are building in place.
1331 .) # We are building in place.
8901332 ac_srcdir=.
891 if test -z "$ac_top_builddir"; then
892 ac_top_srcdir=.
893 else
894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895 fi ;;
896 [\\/]* | ?:[\\/]* ) # Absolute path.
1333 ac_top_srcdir=$ac_top_builddir_sub
1334 ac_abs_top_srcdir=$ac_pwd ;;
1335 [\\/]* | ?:[\\/]* ) # Absolute name.
8971336 ac_srcdir=$srcdir$ac_dir_suffix;
898 ac_top_srcdir=$srcdir ;;
899 *) # Relative path.
900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1337 ac_top_srcdir=$srcdir
1338 ac_abs_top_srcdir=$srcdir ;;
1339 *) # Relative name.
1340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1341 ac_top_srcdir=$ac_top_build_prefix$srcdir
1342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9021343 esac
903
904 # Do not use `cd foo && pwd` to compute absolute paths, because
905 # the directories may not exist.
906 case `pwd` in
907 .) ac_abs_builddir="$ac_dir";;
908 *)
909 case "$ac_dir" in
910 .) ac_abs_builddir=`pwd`;;
911 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
912 *) ac_abs_builddir=`pwd`/"$ac_dir";;
913 esac;;
914 esac
915 case $ac_abs_builddir in
916 .) ac_abs_top_builddir=${ac_top_builddir}.;;
917 *)
918 case ${ac_top_builddir}. in
919 .) ac_abs_top_builddir=$ac_abs_builddir;;
920 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
921 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
922 esac;;
923 esac
924 case $ac_abs_builddir in
925 .) ac_abs_srcdir=$ac_srcdir;;
926 *)
927 case $ac_srcdir in
928 .) ac_abs_srcdir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
930 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_top_srcdir=$ac_top_srcdir;;
935 *)
936 case $ac_top_srcdir in
937 .) ac_abs_top_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
939 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
940 esac;;
941 esac
942
943 cd $ac_dir
944 # Check for guested configure; otherwise get Cygnus style configure.
945 if test -f $ac_srcdir/configure.gnu; then
946 echo
947 $SHELL $ac_srcdir/configure.gnu --help=recursive
948 elif test -f $ac_srcdir/configure; then
949 echo
950 $SHELL $ac_srcdir/configure --help=recursive
951 elif test -f $ac_srcdir/configure.ac ||
952 test -f $ac_srcdir/configure.in; then
953 echo
954 $ac_configure --help
1344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1345
1346 cd "$ac_dir" || { ac_status=$?; continue; }
1347 # Check for guested configure.
1348 if test -f "$ac_srcdir/configure.gnu"; then
1349 echo &&
1350 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1351 elif test -f "$ac_srcdir/configure"; then
1352 echo &&
1353 $SHELL "$ac_srcdir/configure" --help=recursive
9551354 else
9561355 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957 fi
958 cd "$ac_popdir"
1356 fi || ac_status=$?
1357 cd "$ac_pwd" || { ac_status=$?; break; }
9591358 done
9601359 fi
9611360
962 test -n "$ac_init_help" && exit 0
1361 test -n "$ac_init_help" && exit $ac_status
9631362 if $ac_init_version; then
9641363 cat <<\_ACEOF
965
966 Copyright (C) 2003 Free Software Foundation, Inc.
1364 configure
1365 generated by GNU Autoconf 2.61
1366
1367 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1368 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9671369 This configure script is free software; the Free Software Foundation
9681370 gives unlimited permission to copy, distribute and modify it.
9691371 _ACEOF
970 exit 0
971 fi
972 exec 5>config.log
973 cat >&5 <<_ACEOF
1372 exit
1373 fi
1374 cat >config.log <<_ACEOF
9741375 This file contains any messages produced by compilers while
9751376 running configure, to aid debugging if configure makes a mistake.
9761377
9771378 It was created by $as_me, which was
978 generated by GNU Autoconf 2.59. Invocation command line was
1379 generated by GNU Autoconf 2.61. Invocation command line was
9791380
9801381 $ $0 $@
9811382
9821383 _ACEOF
1384 exec 5>>config.log
9831385 {
9841386 cat <<_ASUNAME
9851387 ## --------- ##
9981400 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
9991401 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
10001402 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1403 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
10021404 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
10031405 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
10041406 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
10121414 test -z "$as_dir" && as_dir=.
10131415 echo "PATH: $as_dir"
10141416 done
1417 IFS=$as_save_IFS
10151418
10161419 } >&5
10171420
10331436 ac_configure_args=
10341437 ac_configure_args0=
10351438 ac_configure_args1=
1036 ac_sep=
10371439 ac_must_keep_next=false
10381440 for ac_pass in 1 2
10391441 do
10441446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10451447 | -silent | --silent | --silen | --sile | --sil)
10461448 continue ;;
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1449 *\'*)
10481450 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10491451 esac
10501452 case $ac_pass in
10661468 -* ) ac_must_keep_next=true ;;
10671469 esac
10681470 fi
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1071 ac_sep=" "
1471 ac_configure_args="$ac_configure_args '$ac_arg'"
10721472 ;;
10731473 esac
10741474 done
10791479 # When interrupted or exit'd, cleanup temporary files, and complete
10801480 # config.log. We remove comments because anyway the quotes in there
10811481 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1482 # WARNING: Use '\'' to represent an apostrophe within the trap.
1483 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
10841484 trap 'exit_status=$?
10851485 # Save into config.log some information that might help in debugging.
10861486 {
10931493 _ASBOX
10941494 echo
10951495 # The following way of writing the cache mishandles newlines in values,
1096 {
1496 (
1497 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1498 eval ac_val=\$$ac_var
1499 case $ac_val in #(
1500 *${as_nl}*)
1501 case $ac_var in #(
1502 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1503 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1504 esac
1505 case $ac_var in #(
1506 _ | IFS | as_nl) ;; #(
1507 *) $as_unset $ac_var ;;
1508 esac ;;
1509 esac
1510 done
10971511 (set) 2>&1 |
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 *ac_space=\ *)
1512 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1513 *${as_nl}ac_space=\ *)
11001514 sed -n \
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1515 "s/'\''/'\''\\\\'\'''\''/g;
1516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1517 ;; #(
1518 *)
1519 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11031520 ;;
1104 *)
1105 sed -n \
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107 ;;
1108 esac;
1109 }
1521 esac |
1522 sort
1523 )
11101524 echo
11111525
11121526 cat <<\_ASBOX
11171531 echo
11181532 for ac_var in $ac_subst_vars
11191533 do
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1534 eval ac_val=\$$ac_var
1535 case $ac_val in
1536 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1537 esac
1538 echo "$ac_var='\''$ac_val'\''"
11221539 done | sort
11231540 echo
11241541
11251542 if test -n "$ac_subst_files"; then
11261543 cat <<\_ASBOX
1127 ## ------------- ##
1128 ## Output files. ##
1129 ## ------------- ##
1544 ## ------------------- ##
1545 ## File substitutions. ##
1546 ## ------------------- ##
11301547 _ASBOX
11311548 echo
11321549 for ac_var in $ac_subst_files
11331550 do
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1551 eval ac_val=\$$ac_var
1552 case $ac_val in
1553 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1554 esac
1555 echo "$ac_var='\''$ac_val'\''"
11361556 done | sort
11371557 echo
11381558 fi
11441564 ## ----------- ##
11451565 _ASBOX
11461566 echo
1147 sed "/^$/d" confdefs.h | sort
1567 cat confdefs.h
11481568 echo
11491569 fi
11501570 test "$ac_signal" != 0 &&
11511571 echo "$as_me: caught signal $ac_signal"
11521572 echo "$as_me: exit $exit_status"
11531573 } >&5
1154 rm -f core *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1574 rm -f core *.core core.conftest.* &&
1575 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
11561576 exit $exit_status
1157 ' 0
1577 ' 0
11581578 for ac_signal in 1 2 13 15; do
11591579 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
11601580 done
11611581 ac_signal=0
11621582
11631583 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 echo >confdefs.h
1584 rm -f -r conftest* confdefs.h
11671585
11681586 # Predefined preprocessor variables.
11691587
11941612
11951613 # Let the site file select an alternate cache file if it wants to.
11961614 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 else
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202 fi
1203 fi
1204 for ac_site_file in $CONFIG_SITE; do
1615 if test -n "$CONFIG_SITE"; then
1616 set x "$CONFIG_SITE"
1617 elif test "x$prefix" != xNONE; then
1618 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1619 else
1620 set x "$ac_default_prefix/share/config.site" \
1621 "$ac_default_prefix/etc/config.site"
1622 fi
1623 shift
1624 for ac_site_file
1625 do
12051626 if test -r "$ac_site_file"; then
12061627 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
12071628 echo "$as_me: loading site script $ac_site_file" >&6;}
12171638 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
12181639 echo "$as_me: loading cache $cache_file" >&6;}
12191640 case $cache_file in
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1641 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1642 *) . "./$cache_file";;
12221643 esac
12231644 fi
12241645 else
12301651 # Check that the precious variables saved in the cache have kept the same
12311652 # value.
12321653 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1654 for ac_var in $ac_precious_vars; do
12351655 eval ac_old_set=\$ac_cv_env_${ac_var}_set
12361656 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1657 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1658 eval ac_new_val=\$ac_env_${ac_var}_value
12391659 case $ac_old_set,$ac_new_set in
12401660 set,)
12411661 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
12601680 # Pass precious variables to config.status.
12611681 if test "$ac_new_set" = set; then
12621682 case $ac_new_val in
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1683 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
12651684 *) ac_arg=$ac_var=$ac_new_val ;;
12661685 esac
12671686 case " $ac_configure_args " in
12781697 { (exit 1); exit 1; }; }
12791698 fi
12801699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
12811716 ac_ext=c
12821717 ac_cpp='$CPP $CPPFLAGS'
12831718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12851720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12861721
12871722
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305 ac_config_headers="$ac_config_headers geo_config.h"
1723 ac_config_headers="$ac_config_headers geo_config.h"
13061724
13071725 ac_aux_dir=
1308 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1309 if test -f $ac_dir/install-sh; then
1726 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1727 if test -f "$ac_dir/install-sh"; then
13101728 ac_aux_dir=$ac_dir
13111729 ac_install_sh="$ac_aux_dir/install-sh -c"
13121730 break
1313 elif test -f $ac_dir/install.sh; then
1731 elif test -f "$ac_dir/install.sh"; then
13141732 ac_aux_dir=$ac_dir
13151733 ac_install_sh="$ac_aux_dir/install.sh -c"
13161734 break
1317 elif test -f $ac_dir/shtool; then
1735 elif test -f "$ac_dir/shtool"; then
13181736 ac_aux_dir=$ac_dir
13191737 ac_install_sh="$ac_aux_dir/shtool install -c"
13201738 break
13211739 fi
13221740 done
13231741 if test -z "$ac_aux_dir"; then
1324 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1325 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1742 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1743 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
13261744 { (exit 1); exit 1; }; }
13271745 fi
1328 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1329 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1330 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1746
1747 # These three variables are undocumented and unsupported,
1748 # and are intended to be withdrawn in a future Autoconf release.
1749 # They can cause serious problems if a builder's source tree is in a directory
1750 # whose full name contains unusual characters.
1751 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1752 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1753 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1754
13311755
13321756 # Make sure we can run config.sub.
1333 $ac_config_sub sun4 >/dev/null 2>&1 ||
1334 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1335 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1757 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1758 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1759 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
13361760 { (exit 1); exit 1; }; }
13371761
1338 echo "$as_me:$LINENO: checking build system type" >&5
1339 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1762 { echo "$as_me:$LINENO: checking build system type" >&5
1763 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
13401764 if test "${ac_cv_build+set}" = set; then
13411765 echo $ECHO_N "(cached) $ECHO_C" >&6
13421766 else
1343 ac_cv_build_alias=$build_alias
1344 test -z "$ac_cv_build_alias" &&
1345 ac_cv_build_alias=`$ac_config_guess`
1346 test -z "$ac_cv_build_alias" &&
1767 ac_build_alias=$build_alias
1768 test "x$ac_build_alias" = x &&
1769 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1770 test "x$ac_build_alias" = x &&
13471771 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
13481772 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
13491773 { (exit 1); exit 1; }; }
1350 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1351 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1352 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1774 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1775 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1776 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
13531777 { (exit 1); exit 1; }; }
13541778
13551779 fi
1356 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1357 echo "${ECHO_T}$ac_cv_build" >&6
1780 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1781 echo "${ECHO_T}$ac_cv_build" >&6; }
1782 case $ac_cv_build in
1783 *-*-*) ;;
1784 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1785 echo "$as_me: error: invalid value of canonical build" >&2;}
1786 { (exit 1); exit 1; }; };;
1787 esac
13581788 build=$ac_cv_build
1359 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1360 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1361 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362
1363
1364 echo "$as_me:$LINENO: checking host system type" >&5
1365 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1789 ac_save_IFS=$IFS; IFS='-'
1790 set x $ac_cv_build
1791 shift
1792 build_cpu=$1
1793 build_vendor=$2
1794 shift; shift
1795 # Remember, the first character of IFS is used to create $*,
1796 # except with old shells:
1797 build_os=$*
1798 IFS=$ac_save_IFS
1799 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1800
1801
1802 { echo "$as_me:$LINENO: checking host system type" >&5
1803 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
13661804 if test "${ac_cv_host+set}" = set; then
13671805 echo $ECHO_N "(cached) $ECHO_C" >&6
13681806 else
1369 ac_cv_host_alias=$host_alias
1370 test -z "$ac_cv_host_alias" &&
1371 ac_cv_host_alias=$ac_cv_build_alias
1372 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1374 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1807 if test "x$host_alias" = x; then
1808 ac_cv_host=$ac_cv_build
1809 else
1810 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1811 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1812 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
13751813 { (exit 1); exit 1; }; }
1376
1377 fi
1378 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1379 echo "${ECHO_T}$ac_cv_host" >&6
1814 fi
1815
1816 fi
1817 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1818 echo "${ECHO_T}$ac_cv_host" >&6; }
1819 case $ac_cv_host in
1820 *-*-*) ;;
1821 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1822 echo "$as_me: error: invalid value of canonical host" >&2;}
1823 { (exit 1); exit 1; }; };;
1824 esac
13801825 host=$ac_cv_host
1381 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384
1385
1386 echo "$as_me:$LINENO: checking target system type" >&5
1387 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1826 ac_save_IFS=$IFS; IFS='-'
1827 set x $ac_cv_host
1828 shift
1829 host_cpu=$1
1830 host_vendor=$2
1831 shift; shift
1832 # Remember, the first character of IFS is used to create $*,
1833 # except with old shells:
1834 host_os=$*
1835 IFS=$ac_save_IFS
1836 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1837
1838
1839 { echo "$as_me:$LINENO: checking target system type" >&5
1840 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
13881841 if test "${ac_cv_target+set}" = set; then
13891842 echo $ECHO_N "(cached) $ECHO_C" >&6
13901843 else
1391 ac_cv_target_alias=$target_alias
1392 test "x$ac_cv_target_alias" = "x" &&
1393 ac_cv_target_alias=$ac_cv_host_alias
1394 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1844 if test "x$target_alias" = x; then
1845 ac_cv_target=$ac_cv_host
1846 else
1847 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1848 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1849 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
13971850 { (exit 1); exit 1; }; }
1398
1399 fi
1400 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1401 echo "${ECHO_T}$ac_cv_target" >&6
1851 fi
1852
1853 fi
1854 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1855 echo "${ECHO_T}$ac_cv_target" >&6; }
1856 case $ac_cv_target in
1857 *-*-*) ;;
1858 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1859 echo "$as_me: error: invalid value of canonical target" >&2;}
1860 { (exit 1); exit 1; }; };;
1861 esac
14021862 target=$ac_cv_target
1403 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1863 ac_save_IFS=$IFS; IFS='-'
1864 set x $ac_cv_target
1865 shift
1866 target_cpu=$1
1867 target_vendor=$2
1868 shift; shift
1869 # Remember, the first character of IFS is used to create $*,
1870 # except with old shells:
1871 target_os=$*
1872 IFS=$ac_save_IFS
1873 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
14061874
14071875
14081876 # The aliases save the names the user supplied, while $host etc.
14141882
14151883 VERSION_MAJOR=1
14161884 VERSION_MINOR=2
1417 VERSION_POINT=4
1885 VERSION_POINT=5
14181886 VERSION_MAJOR=$VERSION_MAJOR
14191887
14201888 VERSION_MINOR=$VERSION_MINOR
14301898 if test -n "$ac_tool_prefix"; then
14311899 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14321900 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14351903 if test "${ac_cv_prog_CC+set}" = set; then
14361904 echo $ECHO_N "(cached) $ECHO_C" >&6
14371905 else
14441912 IFS=$as_save_IFS
14451913 test -z "$as_dir" && as_dir=.
14461914 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14481916 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14491917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14501918 break 2
14511919 fi
14521920 done
14531921 done
1922 IFS=$as_save_IFS
14541923
14551924 fi
14561925 fi
14571926 CC=$ac_cv_prog_CC
14581927 if test -n "$CC"; then
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460 echo "${ECHO_T}$CC" >&6
1461 else
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1464 fi
1928 { echo "$as_me:$LINENO: result: $CC" >&5
1929 echo "${ECHO_T}$CC" >&6; }
1930 else
1931 { echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6; }
1933 fi
1934
14651935
14661936 fi
14671937 if test -z "$ac_cv_prog_CC"; then
14681938 ac_ct_CC=$CC
14691939 # Extract the first word of "gcc", so it can be a program name with args.
14701940 set dummy gcc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14731943 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14741944 echo $ECHO_N "(cached) $ECHO_C" >&6
14751945 else
14821952 IFS=$as_save_IFS
14831953 test -z "$as_dir" && as_dir=.
14841954 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14861956 ac_cv_prog_ac_ct_CC="gcc"
14871957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14881958 break 2
14891959 fi
14901960 done
14911961 done
1962 IFS=$as_save_IFS
14921963
14931964 fi
14941965 fi
14951966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14961967 if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1499 else
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1502 fi
1503
1504 CC=$ac_ct_CC
1968 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969 echo "${ECHO_T}$ac_ct_CC" >&6; }
1970 else
1971 { echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6; }
1973 fi
1974
1975 if test "x$ac_ct_CC" = x; then
1976 CC=""
1977 else
1978 case $cross_compiling:$ac_tool_warned in
1979 yes:)
1980 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1981 whose name does not start with the host triplet. If you think this
1982 configuration is useful to you, please write to autoconf@gnu.org." >&5
1983 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1984 whose name does not start with the host triplet. If you think this
1985 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1986 ac_tool_warned=yes ;;
1987 esac
1988 CC=$ac_ct_CC
1989 fi
15051990 else
15061991 CC="$ac_cv_prog_CC"
15071992 fi
15081993
15091994 if test -z "$CC"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15121997 set dummy ${ac_tool_prefix}cc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15152000 if test "${ac_cv_prog_CC+set}" = set; then
15162001 echo $ECHO_N "(cached) $ECHO_C" >&6
15172002 else
15242009 IFS=$as_save_IFS
15252010 test -z "$as_dir" && as_dir=.
15262011 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15282013 ac_cv_prog_CC="${ac_tool_prefix}cc"
15292014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15302015 break 2
15312016 fi
15322017 done
15332018 done
2019 IFS=$as_save_IFS
15342020
15352021 fi
15362022 fi
15372023 CC=$ac_cv_prog_CC
15382024 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1541 else
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546 fi
1547 if test -z "$ac_cv_prog_CC"; then
1548 ac_ct_CC=$CC
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC="cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 break 2
2025 { echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6; }
2027 else
2028 { echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6; }
2030 fi
2031
2032
15692033 fi
1570 done
1571 done
1572
1573 fi
1574 fi
1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1579 else
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1582 fi
1583
1584 CC=$ac_ct_CC
1585 else
1586 CC="$ac_cv_prog_CC"
1587 fi
1588
15892034 fi
15902035 if test -z "$CC"; then
15912036 # Extract the first word of "cc", so it can be a program name with args.
15922037 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15952040 if test "${ac_cv_prog_CC+set}" = set; then
15962041 echo $ECHO_N "(cached) $ECHO_C" >&6
15972042 else
16052050 IFS=$as_save_IFS
16062051 test -z "$as_dir" && as_dir=.
16072052 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16092054 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16102055 ac_prog_rejected=yes
16112056 continue
16162061 fi
16172062 done
16182063 done
2064 IFS=$as_save_IFS
16192065
16202066 if test $ac_prog_rejected = yes; then
16212067 # We found a bogon in the path, so make sure we never use it.
16332079 fi
16342080 CC=$ac_cv_prog_CC
16352081 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
2082 { echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6; }
2084 else
2085 { echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6; }
2087 fi
2088
16422089
16432090 fi
16442091 if test -z "$CC"; then
16452092 if test -n "$ac_tool_prefix"; then
1646 for ac_prog in cl
2093 for ac_prog in cl.exe
16472094 do
16482095 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16492096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16522099 if test "${ac_cv_prog_CC+set}" = set; then
16532100 echo $ECHO_N "(cached) $ECHO_C" >&6
16542101 else
16612108 IFS=$as_save_IFS
16622109 test -z "$as_dir" && as_dir=.
16632110 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16652112 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16662113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16672114 break 2
16682115 fi
16692116 done
16702117 done
2118 IFS=$as_save_IFS
16712119
16722120 fi
16732121 fi
16742122 CC=$ac_cv_prog_CC
16752123 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
2124 { echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6; }
2126 else
2127 { echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6; }
2129 fi
2130
16822131
16832132 test -n "$CC" && break
16842133 done
16852134 fi
16862135 if test -z "$CC"; then
16872136 ac_ct_CC=$CC
1688 for ac_prog in cl
2137 for ac_prog in cl.exe
16892138 do
16902139 # Extract the first word of "$ac_prog", so it can be a program name with args.
16912140 set dummy $ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16942143 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16952144 echo $ECHO_N "(cached) $ECHO_C" >&6
16962145 else
17032152 IFS=$as_save_IFS
17042153 test -z "$as_dir" && as_dir=.
17052154 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17072156 ac_cv_prog_ac_ct_CC="$ac_prog"
17082157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17092158 break 2
17102159 fi
17112160 done
17122161 done
2162 IFS=$as_save_IFS
17132163
17142164 fi
17152165 fi
17162166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
17172167 if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
2168 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169 echo "${ECHO_T}$ac_ct_CC" >&6; }
2170 else
2171 { echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6; }
2173 fi
2174
17242175
17252176 test -n "$ac_ct_CC" && break
17262177 done
17272178
1728 CC=$ac_ct_CC
2179 if test "x$ac_ct_CC" = x; then
2180 CC=""
2181 else
2182 case $cross_compiling:$ac_tool_warned in
2183 yes:)
2184 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2185 whose name does not start with the host triplet. If you think this
2186 configuration is useful to you, please write to autoconf@gnu.org." >&5
2187 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2188 whose name does not start with the host triplet. If you think this
2189 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2190 ac_tool_warned=yes ;;
2191 esac
2192 CC=$ac_ct_CC
2193 fi
17292194 fi
17302195
17312196 fi
17382203 { (exit 1); exit 1; }; }
17392204
17402205 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742 "checking for C compiler version" >&5
2206 echo "$as_me:$LINENO: checking for C compiler version" >&5
17432207 ac_compiler=`set X $ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745 (eval $ac_compiler --version </dev/null >&5) 2>&5
2208 { (ac_try="$ac_compiler --version >&5"
2209 case "(($ac_try" in
2210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2212 esac
2213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2214 (eval "$ac_compiler --version >&5") 2>&5
17462215 ac_status=$?
17472216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482217 (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750 (eval $ac_compiler -v </dev/null >&5) 2>&5
2218 { (ac_try="$ac_compiler -v >&5"
2219 case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222 esac
2223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2224 (eval "$ac_compiler -v >&5") 2>&5
17512225 ac_status=$?
17522226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532227 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755 (eval $ac_compiler -V </dev/null >&5) 2>&5
2228 { (ac_try="$ac_compiler -V >&5"
2229 case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232 esac
2233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2234 (eval "$ac_compiler -V >&5") 2>&5
17562235 ac_status=$?
17572236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582237 (exit $ac_status); }
17772256 # Try to create an executable without -o first, disregard a.out.
17782257 # It will help us diagnose broken compilers, and finding out an intuition
17792258 # of exeext.
1780 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1781 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2259 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2260 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
17822261 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1783 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1784 (eval $ac_link_default) 2>&5
2262 #
2263 # List of possible output files, starting from the most likely.
2264 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2265 # only as a last resort. b.out is created by i960 compilers.
2266 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2267 #
2268 # The IRIX 6 linker writes into existing files which may not be
2269 # executable, retaining their permissions. Remove them first so a
2270 # subsequent execution test works.
2271 ac_rmfiles=
2272 for ac_file in $ac_files
2273 do
2274 case $ac_file in
2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2276 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2277 esac
2278 done
2279 rm -f $ac_rmfiles
2280
2281 if { (ac_try="$ac_link_default"
2282 case "(($ac_try" in
2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284 *) ac_try_echo=$ac_try;;
2285 esac
2286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2287 (eval "$ac_link_default") 2>&5
17852288 ac_status=$?
17862289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872290 (exit $ac_status); }; then
1788 # Find the output, starting from the most likely. This scheme is
1789 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1790 # resort.
1791
1792 # Be careful to initialize this variable, since it used to be cached.
1793 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1794 ac_cv_exeext=
1795 # b.out is created by i960 compilers.
1796 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2291 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2292 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2293 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2294 # so that the user can short-circuit this test for compilers unknown to
2295 # Autoconf.
2296 for ac_file in $ac_files ''
17972297 do
17982298 test -f "$ac_file" || continue
17992299 case $ac_file in
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1801 ;;
1802 conftest.$ac_ext )
1803 # This is the source file.
2300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
18042301 ;;
18052302 [ab].out )
18062303 # We found the default executable, but exeext='' is most
18072304 # certainly right.
18082305 break;;
18092306 *.* )
1810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1811 # FIXME: I believe we export ac_cv_exeext for Libtool,
1812 # but it would be cool to find out if it's true. Does anybody
1813 # maintain Libtool? --akim.
1814 export ac_cv_exeext
2307 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2308 then :; else
2309 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2310 fi
2311 # We set ac_cv_exeext here because the later test for it is not
2312 # safe: cross compilers may not add the suffix if given an `-o'
2313 # argument, so we may need to know it at that point already.
2314 # Even if this section looks crufty: it has the advantage of
2315 # actually working.
18152316 break;;
18162317 * )
18172318 break;;
18182319 esac
18192320 done
1820 else
2321 test "$ac_cv_exeext" = no && ac_cv_exeext=
2322
2323 else
2324 ac_file=''
2325 fi
2326
2327 { echo "$as_me:$LINENO: result: $ac_file" >&5
2328 echo "${ECHO_T}$ac_file" >&6; }
2329 if test -z "$ac_file"; then
18212330 echo "$as_me: failed program was:" >&5
18222331 sed 's/^/| /' conftest.$ac_ext >&5
18232332
18292338 fi
18302339
18312340 ac_exeext=$ac_cv_exeext
1832 echo "$as_me:$LINENO: result: $ac_file" >&5
1833 echo "${ECHO_T}$ac_file" >&6
1834
1835 # Check the compiler produces executables we can run. If not, either
2341
2342 # Check that the compiler produces executables we can run. If not, either
18362343 # the compiler is broken, or we cross compile.
1837 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1838 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2344 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2345 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
18392346 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
18402347 # If not cross compiling, check that we can run a simple program.
18412348 if test "$cross_compiling" != yes; then
18422349 if { ac_try='./$ac_file'
1843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1844 (eval $ac_try) 2>&5
2350 { (case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353 esac
2354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_try") 2>&5
18452356 ac_status=$?
18462357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472358 (exit $ac_status); }; }; then
18602371 fi
18612372 fi
18622373 fi
1863 echo "$as_me:$LINENO: result: yes" >&5
1864 echo "${ECHO_T}yes" >&6
2374 { echo "$as_me:$LINENO: result: yes" >&5
2375 echo "${ECHO_T}yes" >&6; }
18652376
18662377 rm -f a.out a.exe conftest$ac_cv_exeext b.out
18672378 ac_clean_files=$ac_clean_files_save
1868 # Check the compiler produces executables we can run. If not, either
2379 # Check that the compiler produces executables we can run. If not, either
18692380 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1872 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1873 echo "${ECHO_T}$cross_compiling" >&6
1874
1875 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1878 (eval $ac_link) 2>&5
2381 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2382 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2383 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2384 echo "${ECHO_T}$cross_compiling" >&6; }
2385
2386 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2387 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2388 if { (ac_try="$ac_link"
2389 case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2392 esac
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_link") 2>&5
18792395 ac_status=$?
18802396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812397 (exit $ac_status); }; then
18862402 for ac_file in conftest.exe conftest conftest.*; do
18872403 test -f "$ac_file" || continue
18882404 case $ac_file in
1889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
18902406 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1891 export ac_cv_exeext
18922407 break;;
18932408 * ) break;;
18942409 esac
19022417 fi
19032418
19042419 rm -f conftest$ac_cv_exeext
1905 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1906 echo "${ECHO_T}$ac_cv_exeext" >&6
2420 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2421 echo "${ECHO_T}$ac_cv_exeext" >&6; }
19072422
19082423 rm -f conftest.$ac_ext
19092424 EXEEXT=$ac_cv_exeext
19102425 ac_exeext=$EXEEXT
1911 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1912 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2426 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2427 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
19132428 if test "${ac_cv_objext+set}" = set; then
19142429 echo $ECHO_N "(cached) $ECHO_C" >&6
19152430 else
19292444 }
19302445 _ACEOF
19312446 rm -f conftest.o conftest.obj
1932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933 (eval $ac_compile) 2>&5
2447 if { (ac_try="$ac_compile"
2448 case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451 esac
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compile") 2>&5
19342454 ac_status=$?
19352455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362456 (exit $ac_status); }; then
1937 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2457 for ac_file in conftest.o conftest.obj conftest.*; do
2458 test -f "$ac_file" || continue;
19382459 case $ac_file in
1939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
19402461 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
19412462 break;;
19422463 esac
19542475
19552476 rm -f conftest.$ac_cv_objext conftest.$ac_ext
19562477 fi
1957 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1958 echo "${ECHO_T}$ac_cv_objext" >&6
2478 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2479 echo "${ECHO_T}$ac_cv_objext" >&6; }
19592480 OBJEXT=$ac_cv_objext
19602481 ac_objext=$OBJEXT
1961 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1962 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2482 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2483 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19632484 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19642485 echo $ECHO_N "(cached) $ECHO_C" >&6
19652486 else
19822503 }
19832504 _ACEOF
19842505 rm -f conftest.$ac_objext
1985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1986 (eval $ac_compile) 2>conftest.er1
2506 if { (ac_try="$ac_compile"
2507 case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2510 esac
2511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2512 (eval "$ac_compile") 2>conftest.er1
19872513 ac_status=$?
19882514 grep -v '^ *+' conftest.er1 >conftest.err
19892515 rm -f conftest.er1
19902516 cat conftest.err >&5
19912517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; } &&
1999 { ac_try='test -s conftest.$ac_objext'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; }; then
2518 (exit $ac_status); } && {
2519 test -z "$ac_c_werror_flag" ||
2520 test ! -s conftest.err
2521 } && test -s conftest.$ac_objext; then
20052522 ac_compiler_gnu=yes
20062523 else
20072524 echo "$as_me: failed program was:" >&5
20082525 sed 's/^/| /' conftest.$ac_ext >&5
20092526
2010 ac_compiler_gnu=no
2011 fi
2012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527 ac_compiler_gnu=no
2528 fi
2529
2530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20132531 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20142532
20152533 fi
2016 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2017 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2534 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2535 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20182536 GCC=`test $ac_compiler_gnu = yes && echo yes`
20192537 ac_test_CFLAGS=${CFLAGS+set}
20202538 ac_save_CFLAGS=$CFLAGS
2021 CFLAGS="-g"
2022 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2023 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2539 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2540 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20242541 if test "${ac_cv_prog_cc_g+set}" = set; then
20252542 echo $ECHO_N "(cached) $ECHO_C" >&6
20262543 else
2027 cat >conftest.$ac_ext <<_ACEOF
2544 ac_save_c_werror_flag=$ac_c_werror_flag
2545 ac_c_werror_flag=yes
2546 ac_cv_prog_cc_g=no
2547 CFLAGS="-g"
2548 cat >conftest.$ac_ext <<_ACEOF
20282549 /* confdefs.h. */
20292550 _ACEOF
20302551 cat confdefs.h >>conftest.$ac_ext
20402561 }
20412562 _ACEOF
20422563 rm -f conftest.$ac_objext
2043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>conftest.er1
2564 if { (ac_try="$ac_compile"
2565 case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568 esac
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_compile") 2>conftest.er1
20452571 ac_status=$?
20462572 grep -v '^ *+' conftest.er1 >conftest.err
20472573 rm -f conftest.er1
20482574 cat conftest.err >&5
20492575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
2051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053 (eval $ac_try) 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; } &&
2057 { ac_try='test -s conftest.$ac_objext'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 (eval $ac_try) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2576 (exit $ac_status); } && {
2577 test -z "$ac_c_werror_flag" ||
2578 test ! -s conftest.err
2579 } && test -s conftest.$ac_objext; then
20632580 ac_cv_prog_cc_g=yes
20642581 else
20652582 echo "$as_me: failed program was:" >&5
20662583 sed 's/^/| /' conftest.$ac_ext >&5
20672584
2068 ac_cv_prog_cc_g=no
2069 fi
2070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2071 fi
2072 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2073 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2585 CFLAGS=""
2586 cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h. */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2592
2593 int
2594 main ()
2595 {
2596
2597 ;
2598 return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2603 case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2609 ac_status=$?
2610 grep -v '^ *+' conftest.er1 >conftest.err
2611 rm -f conftest.er1
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } && {
2615 test -z "$ac_c_werror_flag" ||
2616 test ! -s conftest.err
2617 } && test -s conftest.$ac_objext; then
2618 :
2619 else
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_c_werror_flag=$ac_save_c_werror_flag
2624 CFLAGS="-g"
2625 cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h. */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h. */
2631
2632 int
2633 main ()
2634 {
2635
2636 ;
2637 return 0;
2638 }
2639 _ACEOF
2640 rm -f conftest.$ac_objext
2641 if { (ac_try="$ac_compile"
2642 case "(($ac_try" in
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2645 esac
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_compile") 2>conftest.er1
2648 ac_status=$?
2649 grep -v '^ *+' conftest.er1 >conftest.err
2650 rm -f conftest.er1
2651 cat conftest.err >&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } && {
2654 test -z "$ac_c_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest.$ac_objext; then
2657 ac_cv_prog_cc_g=yes
2658 else
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662
2663 fi
2664
2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2666 fi
2667
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 fi
2670
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 ac_c_werror_flag=$ac_save_c_werror_flag
2673 fi
2674 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2675 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20742676 if test "$ac_test_CFLAGS" = set; then
20752677 CFLAGS=$ac_save_CFLAGS
20762678 elif test $ac_cv_prog_cc_g = yes; then
20862688 CFLAGS=
20872689 fi
20882690 fi
2089 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2090 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2091 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2691 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2692 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2693 if test "${ac_cv_prog_cc_c89+set}" = set; then
20922694 echo $ECHO_N "(cached) $ECHO_C" >&6
20932695 else
2094 ac_cv_prog_cc_stdc=no
2696 ac_cv_prog_cc_c89=no
20952697 ac_save_CC=$CC
20962698 cat >conftest.$ac_ext <<_ACEOF
20972699 /* confdefs.h. */
21252727 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
21262728 function prototypes and stuff, but not '\xHH' hex character constants.
21272729 These don't provoke an error unfortunately, instead are silently treated
2128 as 'x'. The following induces an error, until -std1 is added to get
2730 as 'x'. The following induces an error, until -std is added to get
21292731 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
21302732 array size at least. It's necessary to write '\x00'==0 to get something
2131 that's true only with -std1. */
2733 that's true only with -std. */
21322734 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2735
2736 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2737 inside strings and character constants. */
2738 #define FOO(x) 'x'
2739 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
21332740
21342741 int test (int i, double x);
21352742 struct s1 {int (*f) (int a);};
21452752 return 0;
21462753 }
21472754 _ACEOF
2148 # Don't try gcc -ansi; that turns off useful extensions and
2149 # breaks some systems' header files.
2150 # AIX -qlanglvl=ansi
2151 # Ultrix and OSF/1 -std1
2152 # HP-UX 10.20 and later -Ae
2153 # HP-UX older versions -Aa -D_HPUX_SOURCE
2154 # SVR4 -Xc -D__EXTENSIONS__
2155 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2755 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2756 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
21562757 do
21572758 CC="$ac_save_CC $ac_arg"
21582759 rm -f conftest.$ac_objext
2159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>conftest.er1
2760 if { (ac_try="$ac_compile"
2761 case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764 esac
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compile") 2>conftest.er1
21612767 ac_status=$?
21622768 grep -v '^ *+' conftest.er1 >conftest.err
21632769 rm -f conftest.er1
21642770 cat conftest.err >&5
21652771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); } &&
2167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2169 (eval $ac_try) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; } &&
2173 { ac_try='test -s conftest.$ac_objext'
2174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175 (eval $ac_try) 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; }; then
2179 ac_cv_prog_cc_stdc=$ac_arg
2180 break
2772 (exit $ac_status); } && {
2773 test -z "$ac_c_werror_flag" ||
2774 test ! -s conftest.err
2775 } && test -s conftest.$ac_objext; then
2776 ac_cv_prog_cc_c89=$ac_arg
21812777 else
21822778 echo "$as_me: failed program was:" >&5
21832779 sed 's/^/| /' conftest.$ac_ext >&5
21842780
2185 fi
2186 rm -f conftest.err conftest.$ac_objext
2781
2782 fi
2783
2784 rm -f core conftest.err conftest.$ac_objext
2785 test "x$ac_cv_prog_cc_c89" != "xno" && break
21872786 done
2188 rm -f conftest.$ac_ext conftest.$ac_objext
2787 rm -f conftest.$ac_ext
21892788 CC=$ac_save_CC
21902789
21912790 fi
2192
2193 case "x$ac_cv_prog_cc_stdc" in
2194 x|xno)
2195 echo "$as_me:$LINENO: result: none needed" >&5
2196 echo "${ECHO_T}none needed" >&6 ;;
2791 # AC_CACHE_VAL
2792 case "x$ac_cv_prog_cc_c89" in
2793 x)
2794 { echo "$as_me:$LINENO: result: none needed" >&5
2795 echo "${ECHO_T}none needed" >&6; } ;;
2796 xno)
2797 { echo "$as_me:$LINENO: result: unsupported" >&5
2798 echo "${ECHO_T}unsupported" >&6; } ;;
21972799 *)
2198 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2199 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2200 CC="$CC $ac_cv_prog_cc_stdc" ;;
2800 CC="$CC $ac_cv_prog_cc_c89"
2801 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2802 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
22012803 esac
22022804
2203 # Some people use a C++ compiler to compile C. Since we use `exit',
2204 # in C++ we need to declare it. In case someone uses the same compiler
2205 # for both compiling C and C++ we need to have the C++ compiler decide
2206 # the declaration of exit, since it's the most demanding environment.
2207 cat >conftest.$ac_ext <<_ACEOF
2208 #ifndef __cplusplus
2209 choke me
2210 #endif
2211 _ACEOF
2212 rm -f conftest.$ac_objext
2213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214 (eval $ac_compile) 2>conftest.er1
2215 ac_status=$?
2216 grep -v '^ *+' conftest.er1 >conftest.err
2217 rm -f conftest.er1
2218 cat conftest.err >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); } &&
2221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; } &&
2227 { ac_try='test -s conftest.$ac_objext'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 (eval $ac_try) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2233 for ac_declaration in \
2234 '' \
2235 'extern "C" void std::exit (int) throw (); using std::exit;' \
2236 'extern "C" void std::exit (int); using std::exit;' \
2237 'extern "C" void exit (int) throw ();' \
2238 'extern "C" void exit (int);' \
2239 'void exit (int);'
2240 do
2241 cat >conftest.$ac_ext <<_ACEOF
2242 /* confdefs.h. */
2243 _ACEOF
2244 cat confdefs.h >>conftest.$ac_ext
2245 cat >>conftest.$ac_ext <<_ACEOF
2246 /* end confdefs.h. */
2247 $ac_declaration
2248 #include <stdlib.h>
2249 int
2250 main ()
2251 {
2252 exit (42);
2253 ;
2254 return 0;
2255 }
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>conftest.er1
2260 ac_status=$?
2261 grep -v '^ *+' conftest.er1 >conftest.err
2262 rm -f conftest.er1
2263 cat conftest.err >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
2266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; } &&
2272 { ac_try='test -s conftest.$ac_objext'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 (eval $ac_try) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; }; then
2278 :
2279 else
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 continue
2284 fi
2285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286 cat >conftest.$ac_ext <<_ACEOF
2287 /* confdefs.h. */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2292 $ac_declaration
2293 int
2294 main ()
2295 {
2296 exit (42);
2297 ;
2298 return 0;
2299 }
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>conftest.er1
2304 ac_status=$?
2305 grep -v '^ *+' conftest.er1 >conftest.err
2306 rm -f conftest.er1
2307 cat conftest.err >&5
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); } &&
2310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 (eval $ac_try) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; } &&
2316 { ac_try='test -s conftest.$ac_objext'
2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 (eval $ac_try) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; }; then
2322 break
2323 else
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 fi
2328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2329 done
2330 rm -f conftest*
2331 if test -n "$ac_declaration"; then
2332 echo '#ifdef __cplusplus' >>confdefs.h
2333 echo $ac_declaration >>confdefs.h
2334 echo '#endif' >>confdefs.h
2335 fi
2336
2337 else
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2340
2341 fi
2342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805
23432806 ac_ext=c
23442807 ac_cpp='$CPP $CPPFLAGS'
23452808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23462809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23472810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23482811
2349
2350 # Remove -g from compile flags, we will add via CFG variable if
2351 # we need it.
2352 CXXFLAGS=`echo "$CXXFLAGS " | sed "s/-g //"`
2353 CFLAGS=`echo "$CFLAGS " | sed "s/-g //"`
23542812
23552813 # check for GNU compiler, and use -Wall
23562814 if test "$GCC" = "yes"; then
23882846 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
23892847 # OS/2's system install, which has a completely different semantic
23902848 # ./install, which can be erroneously created by make from ./install.sh.
2391 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2392 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2849 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2850 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
23932851 if test -z "$INSTALL"; then
23942852 if test "${ac_cv_path_install+set}" = set; then
23952853 echo $ECHO_N "(cached) $ECHO_C" >&6
24112869 # by default.
24122870 for ac_prog in ginstall scoinst install; do
24132871 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2872 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
24152873 if test $ac_prog = install &&
24162874 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24172875 # AIX install. It has an incompatible calling convention.
24302888 ;;
24312889 esac
24322890 done
2891 IFS=$as_save_IFS
24332892
24342893
24352894 fi
24362895 if test "${ac_cv_path_install+set}" = set; then
24372896 INSTALL=$ac_cv_path_install
24382897 else
2439 # As a last resort, use the slow shell script. We don't cache a
2440 # path for INSTALL within a source directory, because that will
2898 # As a last resort, use the slow shell script. Don't cache a
2899 # value for INSTALL within a source directory, because that will
24412900 # break other packages using the cache if that directory is
2442 # removed, or if the path is relative.
2901 # removed, or if the value is a relative name.
24432902 INSTALL=$ac_install_sh
24442903 fi
24452904 fi
2446 echo "$as_me:$LINENO: result: $INSTALL" >&5
2447 echo "${ECHO_T}$INSTALL" >&6
2905 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2906 echo "${ECHO_T}$INSTALL" >&6; }
24482907
24492908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
24502909 # It thinks the first close brace ends the variable substitution.
24542913
24552914 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
24562915
2457 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2458 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2916 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2917 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
24592918 LN_S=$as_ln_s
24602919 if test "$LN_S" = "ln -s"; then
2461 echo "$as_me:$LINENO: result: yes" >&5
2462 echo "${ECHO_T}yes" >&6
2463 else
2464 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2465 echo "${ECHO_T}no, using $LN_S" >&6
2920 { echo "$as_me:$LINENO: result: yes" >&5
2921 echo "${ECHO_T}yes" >&6; }
2922 else
2923 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2924 echo "${ECHO_T}no, using $LN_S" >&6; }
24662925 fi
24672926
24682927 if test -n "$ac_tool_prefix"; then
24692928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24702929 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2471 echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24732932 if test "${ac_cv_prog_RANLIB+set}" = set; then
24742933 echo $ECHO_N "(cached) $ECHO_C" >&6
24752934 else
24822941 IFS=$as_save_IFS
24832942 test -z "$as_dir" && as_dir=.
24842943 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24862945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
24872946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24882947 break 2
24892948 fi
24902949 done
24912950 done
2951 IFS=$as_save_IFS
24922952
24932953 fi
24942954 fi
24952955 RANLIB=$ac_cv_prog_RANLIB
24962956 if test -n "$RANLIB"; then
2497 echo "$as_me:$LINENO: result: $RANLIB" >&5
2498 echo "${ECHO_T}$RANLIB" >&6
2499 else
2500 echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6
2502 fi
2957 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2958 echo "${ECHO_T}$RANLIB" >&6; }
2959 else
2960 { echo "$as_me:$LINENO: result: no" >&5
2961 echo "${ECHO_T}no" >&6; }
2962 fi
2963
25032964
25042965 fi
25052966 if test -z "$ac_cv_prog_RANLIB"; then
25062967 ac_ct_RANLIB=$RANLIB
25072968 # Extract the first word of "ranlib", so it can be a program name with args.
25082969 set dummy ranlib; ac_word=$2
2509 echo "$as_me:$LINENO: checking for $ac_word" >&5
2510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25112972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
25122973 echo $ECHO_N "(cached) $ECHO_C" >&6
25132974 else
25202981 IFS=$as_save_IFS
25212982 test -z "$as_dir" && as_dir=.
25222983 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25242985 ac_cv_prog_ac_ct_RANLIB="ranlib"
25252986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25262987 break 2
25272988 fi
25282989 done
25292990 done
2530
2531 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2991 IFS=$as_save_IFS
2992
25322993 fi
25332994 fi
25342995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
25352996 if test -n "$ac_ct_RANLIB"; then
2536 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2537 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2538 else
2539 echo "$as_me:$LINENO: result: no" >&5
2540 echo "${ECHO_T}no" >&6
2541 fi
2542
2543 RANLIB=$ac_ct_RANLIB
2997 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2998 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2999 else
3000 { echo "$as_me:$LINENO: result: no" >&5
3001 echo "${ECHO_T}no" >&6; }
3002 fi
3003
3004 if test "x$ac_ct_RANLIB" = x; then
3005 RANLIB=":"
3006 else
3007 case $cross_compiling:$ac_tool_warned in
3008 yes:)
3009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3010 whose name does not start with the host triplet. If you think this
3011 configuration is useful to you, please write to autoconf@gnu.org." >&5
3012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3013 whose name does not start with the host triplet. If you think this
3014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017 RANLIB=$ac_ct_RANLIB
3018 fi
25443019 else
25453020 RANLIB="$ac_cv_prog_RANLIB"
25463021 fi
25813056 fi
25823057
25833058
2584 # Check whether --with-ld-shared or --without-ld-shared was given.
3059 # Check whether --with-ld-shared was given.
25853060 if test "${with_ld_shared+set}" = set; then
2586 withval="$with_ld_shared"
2587
2588 fi;
3061 withval=$with_ld_shared;
3062 fi
3063
25893064
25903065 if test "$with_ld_shared" != "" ; then
25913066 if test "$with_ld_shared" = "no" ; then
27353210
27363211
27373212
2738 echo "$as_me:$LINENO: checking for exp in -lm" >&5
2739 echo $ECHO_N "checking for exp in -lm... $ECHO_C" >&6
3213 { echo "$as_me:$LINENO: checking for exp in -lm" >&5
3214 echo $ECHO_N "checking for exp in -lm... $ECHO_C" >&6; }
27403215 if test "${ac_cv_lib_m_exp+set}" = set; then
27413216 echo $ECHO_N "(cached) $ECHO_C" >&6
27423217 else
27493224 cat >>conftest.$ac_ext <<_ACEOF
27503225 /* end confdefs.h. */
27513226
2752 /* Override any gcc2 internal prototype to avoid an error. */
3227 /* Override any GCC internal prototype to avoid an error.
3228 Use char because int might match the return type of a GCC
3229 builtin and then its argument prototype would still apply. */
27533230 #ifdef __cplusplus
27543231 extern "C"
27553232 #endif
2756 /* We use char because int might match the return type of a gcc2
2757 builtin and then its argument prototype would still apply. */
27583233 char exp ();
27593234 int
27603235 main ()
27613236 {
2762 exp ();
3237 return exp ();
27633238 ;
27643239 return 0;
27653240 }
27663241 _ACEOF
27673242 rm -f conftest.$ac_objext conftest$ac_exeext
2768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2769 (eval $ac_link) 2>conftest.er1
3243 if { (ac_try="$ac_link"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_link") 2>conftest.er1
27703250 ac_status=$?
27713251 grep -v '^ *+' conftest.er1 >conftest.err
27723252 rm -f conftest.er1
27733253 cat conftest.err >&5
27743254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } &&
2776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; } &&
2782 { ac_try='test -s conftest$ac_exeext'
2783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 (eval $ac_try) 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; }; then
3255 (exit $ac_status); } && {
3256 test -z "$ac_c_werror_flag" ||
3257 test ! -s conftest.err
3258 } && test -s conftest$ac_exeext &&
3259 $as_test_x conftest$ac_exeext; then
27883260 ac_cv_lib_m_exp=yes
27893261 else
27903262 echo "$as_me: failed program was:" >&5
27913263 sed 's/^/| /' conftest.$ac_ext >&5
27923264
2793 ac_cv_lib_m_exp=no
2794 fi
2795 rm -f conftest.err conftest.$ac_objext \
3265 ac_cv_lib_m_exp=no
3266 fi
3267
3268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27963269 conftest$ac_exeext conftest.$ac_ext
27973270 LIBS=$ac_check_lib_save_LIBS
27983271 fi
2799 echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp" >&5
2800 echo "${ECHO_T}$ac_cv_lib_m_exp" >&6
3272 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp" >&5
3273 echo "${ECHO_T}$ac_cv_lib_m_exp" >&6; }
28013274 if test $ac_cv_lib_m_exp = yes; then
28023275 cat >>confdefs.h <<_ACEOF
28033276 #define HAVE_LIBM 1
28153288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28163289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28173290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2819 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3291 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3292 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
28203293 # On Suns, sometimes $CPP names a directory.
28213294 if test -n "$CPP" && test -d "$CPP"; then
28223295 CPP=
28503323 #endif
28513324 Syntax error
28523325 _ACEOF
2853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3326 if { (ac_try="$ac_cpp conftest.$ac_ext"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28553333 ac_status=$?
28563334 grep -v '^ *+' conftest.er1 >conftest.err
28573335 rm -f conftest.er1
28583336 cat conftest.err >&5
28593337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } >/dev/null; then
2861 if test -s conftest.err; then
2862 ac_cpp_err=$ac_c_preproc_warn_flag
2863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2864 else
2865 ac_cpp_err=
2866 fi
2867 else
2868 ac_cpp_err=yes
2869 fi
2870 if test -z "$ac_cpp_err"; then
3338 (exit $ac_status); } >/dev/null && {
3339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3340 test ! -s conftest.err
3341 }; then
28713342 :
28723343 else
28733344 echo "$as_me: failed program was:" >&5
28763347 # Broken: fails on valid input.
28773348 continue
28783349 fi
3350
28793351 rm -f conftest.err conftest.$ac_ext
28803352
2881 # OK, works on sane cases. Now check whether non-existent headers
3353 # OK, works on sane cases. Now check whether nonexistent headers
28823354 # can be detected and how.
28833355 cat >conftest.$ac_ext <<_ACEOF
28843356 /* confdefs.h. */
28883360 /* end confdefs.h. */
28893361 #include <ac_nonexistent.h>
28903362 _ACEOF
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3363 if { (ac_try="$ac_cpp conftest.$ac_ext"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28933370 ac_status=$?
28943371 grep -v '^ *+' conftest.er1 >conftest.err
28953372 rm -f conftest.er1
28963373 cat conftest.err >&5
28973374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev/null; then
2899 if test -s conftest.err; then
2900 ac_cpp_err=$ac_c_preproc_warn_flag
2901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2902 else
2903 ac_cpp_err=
2904 fi
2905 else
2906 ac_cpp_err=yes
2907 fi
2908 if test -z "$ac_cpp_err"; then
3375 (exit $ac_status); } >/dev/null && {
3376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3377 test ! -s conftest.err
3378 }; then
29093379 # Broken: success on invalid input.
29103380 continue
29113381 else
29163386 ac_preproc_ok=:
29173387 break
29183388 fi
3389
29193390 rm -f conftest.err conftest.$ac_ext
29203391
29213392 done
29333404 else
29343405 ac_cv_prog_CPP=$CPP
29353406 fi
2936 echo "$as_me:$LINENO: result: $CPP" >&5
2937 echo "${ECHO_T}$CPP" >&6
3407 { echo "$as_me:$LINENO: result: $CPP" >&5
3408 echo "${ECHO_T}$CPP" >&6; }
29383409 ac_preproc_ok=false
29393410 for ac_c_preproc_warn_flag in '' yes
29403411 do
29573428 #endif
29583429 Syntax error
29593430 _ACEOF
2960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3431 if { (ac_try="$ac_cpp conftest.$ac_ext"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29623438 ac_status=$?
29633439 grep -v '^ *+' conftest.er1 >conftest.err
29643440 rm -f conftest.er1
29653441 cat conftest.err >&5
29663442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } >/dev/null; then
2968 if test -s conftest.err; then
2969 ac_cpp_err=$ac_c_preproc_warn_flag
2970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2971 else
2972 ac_cpp_err=
2973 fi
2974 else
2975 ac_cpp_err=yes
2976 fi
2977 if test -z "$ac_cpp_err"; then
3443 (exit $ac_status); } >/dev/null && {
3444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 }; then
29783447 :
29793448 else
29803449 echo "$as_me: failed program was:" >&5
29833452 # Broken: fails on valid input.
29843453 continue
29853454 fi
3455
29863456 rm -f conftest.err conftest.$ac_ext
29873457
2988 # OK, works on sane cases. Now check whether non-existent headers
3458 # OK, works on sane cases. Now check whether nonexistent headers
29893459 # can be detected and how.
29903460 cat >conftest.$ac_ext <<_ACEOF
29913461 /* confdefs.h. */
29953465 /* end confdefs.h. */
29963466 #include <ac_nonexistent.h>
29973467 _ACEOF
2998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3468 if { (ac_try="$ac_cpp conftest.$ac_ext"
3469 case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30003475 ac_status=$?
30013476 grep -v '^ *+' conftest.er1 >conftest.err
30023477 rm -f conftest.er1
30033478 cat conftest.err >&5
30043479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } >/dev/null; then
3006 if test -s conftest.err; then
3007 ac_cpp_err=$ac_c_preproc_warn_flag
3008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3009 else
3010 ac_cpp_err=
3011 fi
3012 else
3013 ac_cpp_err=yes
3014 fi
3015 if test -z "$ac_cpp_err"; then
3480 (exit $ac_status); } >/dev/null && {
3481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3483 }; then
30163484 # Broken: success on invalid input.
30173485 continue
30183486 else
30233491 ac_preproc_ok=:
30243492 break
30253493 fi
3494
30263495 rm -f conftest.err conftest.$ac_ext
30273496
30283497 done
30453514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30463515
30473516
3048 echo "$as_me:$LINENO: checking for egrep" >&5
3049 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3050 if test "${ac_cv_prog_egrep+set}" = set; then
3517 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3518 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3519 if test "${ac_cv_path_GREP+set}" = set; then
30513520 echo $ECHO_N "(cached) $ECHO_C" >&6
30523521 else
3053 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3054 then ac_cv_prog_egrep='grep -E'
3055 else ac_cv_prog_egrep='egrep'
3522 # Extract the first word of "grep ggrep" to use in msg output
3523 if test -z "$GREP"; then
3524 set dummy grep ggrep; ac_prog_name=$2
3525 if test "${ac_cv_path_GREP+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 ac_path_GREP_found=false
3529 # Loop through the user's path and test for each of PROGNAME-LIST
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3532 do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_prog in grep ggrep; do
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3538 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3539 # Check for GNU ac_path_GREP and select it if it is found.
3540 # Check for GNU $ac_path_GREP
3541 case `"$ac_path_GREP" --version 2>&1` in
3542 *GNU*)
3543 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3544 *)
3545 ac_count=0
3546 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3547 while :
3548 do
3549 cat "conftest.in" "conftest.in" >"conftest.tmp"
3550 mv "conftest.tmp" "conftest.in"
3551 cp "conftest.in" "conftest.nl"
3552 echo 'GREP' >> "conftest.nl"
3553 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3555 ac_count=`expr $ac_count + 1`
3556 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3557 # Best one so far, save it but keep looking for a better one
3558 ac_cv_path_GREP="$ac_path_GREP"
3559 ac_path_GREP_max=$ac_count
30563560 fi
3057 fi
3058 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3059 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3060 EGREP=$ac_cv_prog_egrep
3061
3062
3063 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3064 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3561 # 10*(2^10) chars as input seems more than enough
3562 test $ac_count -gt 10 && break
3563 done
3564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3565 esac
3566
3567
3568 $ac_path_GREP_found && break 3
3569 done
3570 done
3571
3572 done
3573 IFS=$as_save_IFS
3574
3575
3576 fi
3577
3578 GREP="$ac_cv_path_GREP"
3579 if test -z "$GREP"; then
3580 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3581 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3582 { (exit 1); exit 1; }; }
3583 fi
3584
3585 else
3586 ac_cv_path_GREP=$GREP
3587 fi
3588
3589
3590 fi
3591 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3592 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3593 GREP="$ac_cv_path_GREP"
3594
3595
3596 { echo "$as_me:$LINENO: checking for egrep" >&5
3597 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3598 if test "${ac_cv_path_EGREP+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3602 then ac_cv_path_EGREP="$GREP -E"
3603 else
3604 # Extract the first word of "egrep" to use in msg output
3605 if test -z "$EGREP"; then
3606 set dummy egrep; ac_prog_name=$2
3607 if test "${ac_cv_path_EGREP+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610 ac_path_EGREP_found=false
3611 # Loop through the user's path and test for each of PROGNAME-LIST
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3614 do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_prog in egrep; do
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3620 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3621 # Check for GNU ac_path_EGREP and select it if it is found.
3622 # Check for GNU $ac_path_EGREP
3623 case `"$ac_path_EGREP" --version 2>&1` in
3624 *GNU*)
3625 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3626 *)
3627 ac_count=0
3628 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3629 while :
3630 do
3631 cat "conftest.in" "conftest.in" >"conftest.tmp"
3632 mv "conftest.tmp" "conftest.in"
3633 cp "conftest.in" "conftest.nl"
3634 echo 'EGREP' >> "conftest.nl"
3635 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637 ac_count=`expr $ac_count + 1`
3638 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3639 # Best one so far, save it but keep looking for a better one
3640 ac_cv_path_EGREP="$ac_path_EGREP"
3641 ac_path_EGREP_max=$ac_count
3642 fi
3643 # 10*(2^10) chars as input seems more than enough
3644 test $ac_count -gt 10 && break
3645 done
3646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3647 esac
3648
3649
3650 $ac_path_EGREP_found && break 3
3651 done
3652 done
3653
3654 done
3655 IFS=$as_save_IFS
3656
3657
3658 fi
3659
3660 EGREP="$ac_cv_path_EGREP"
3661 if test -z "$EGREP"; then
3662 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3663 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3664 { (exit 1); exit 1; }; }
3665 fi
3666
3667 else
3668 ac_cv_path_EGREP=$EGREP
3669 fi
3670
3671
3672 fi
3673 fi
3674 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3675 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3676 EGREP="$ac_cv_path_EGREP"
3677
3678
3679 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3680 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30653681 if test "${ac_cv_header_stdc+set}" = set; then
30663682 echo $ECHO_N "(cached) $ECHO_C" >&6
30673683 else
30853701 }
30863702 _ACEOF
30873703 rm -f conftest.$ac_objext
3088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3089 (eval $ac_compile) 2>conftest.er1
3704 if { (ac_try="$ac_compile"
3705 case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708 esac
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_compile") 2>conftest.er1
30903711 ac_status=$?
30913712 grep -v '^ *+' conftest.er1 >conftest.err
30923713 rm -f conftest.er1
30933714 cat conftest.err >&5
30943715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; } &&
3102 { ac_try='test -s conftest.$ac_objext'
3103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 (eval $ac_try) 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
31083720 ac_cv_header_stdc=yes
31093721 else
31103722 echo "$as_me: failed program was:" >&5
31113723 sed 's/^/| /' conftest.$ac_ext >&5
31123724
3113 ac_cv_header_stdc=no
3114 fi
3115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_cv_header_stdc=no
3726 fi
3727
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31163729
31173730 if test $ac_cv_header_stdc = yes; then
31183731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31683781 cat >>conftest.$ac_ext <<_ACEOF
31693782 /* end confdefs.h. */
31703783 #include <ctype.h>
3784 #include <stdlib.h>
31713785 #if ((' ' & 0x0FF) == 0x020)
31723786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31733787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31873801 for (i = 0; i < 256; i++)
31883802 if (XOR (islower (i), ISLOWER (i))
31893803 || toupper (i) != TOUPPER (i))
3190 exit(2);
3191 exit (0);
3804 return 2;
3805 return 0;
31923806 }
31933807 _ACEOF
31943808 rm -f conftest$ac_exeext
3195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196 (eval $ac_link) 2>&5
3809 if { (ac_try="$ac_link"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815 (eval "$ac_link") 2>&5
31973816 ac_status=$?
31983817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 (eval $ac_try) 2>&5
3819 { (case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_try") 2>&5
32023825 ac_status=$?
32033826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043827 (exit $ac_status); }; }; then
32113834 ( exit $ac_status )
32123835 ac_cv_header_stdc=no
32133836 fi
3214 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3215 fi
3216 fi
3217 fi
3218 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3219 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3838 fi
3839
3840
3841 fi
3842 fi
3843 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3844 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
32203845 if test $ac_cv_header_stdc = yes; then
32213846
32223847 cat >>confdefs.h <<\_ACEOF
32393864 inttypes.h stdint.h unistd.h
32403865 do
32413866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3242 echo "$as_me:$LINENO: checking for $ac_header" >&5
3243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32453870 echo $ECHO_N "(cached) $ECHO_C" >&6
32463871 else
32473872 cat >conftest.$ac_ext <<_ACEOF
32553880 #include <$ac_header>
32563881 _ACEOF
32573882 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>conftest.er1
3883 if { (ac_try="$ac_compile"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>conftest.er1
32603890 ac_status=$?
32613891 grep -v '^ *+' conftest.er1 >conftest.err
32623892 rm -f conftest.er1
32633893 cat conftest.err >&5
32643894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3895 (exit $ac_status); } && {
3896 test -z "$ac_c_werror_flag" ||
3897 test ! -s conftest.err
3898 } && test -s conftest.$ac_objext; then
32783899 eval "$as_ac_Header=yes"
32793900 else
32803901 echo "$as_me: failed program was:" >&5
32813902 sed 's/^/| /' conftest.$ac_ext >&5
32823903
3283 eval "$as_ac_Header=no"
3284 fi
3285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286 fi
3287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3904 eval "$as_ac_Header=no"
3905 fi
3906
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 fi
3909 ac_res=`eval echo '${'$as_ac_Header'}'`
3910 { echo "$as_me:$LINENO: result: $ac_res" >&5
3911 echo "${ECHO_T}$ac_res" >&6; }
32893912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32903913 cat >>confdefs.h <<_ACEOF
32913914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33023925 for ac_header in string.h strings.h stdlib.h
33033926 do
33043927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3306 echo "$as_me:$LINENO: checking for $ac_header" >&5
3307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33093932 echo $ECHO_N "(cached) $ECHO_C" >&6
33103933 fi
3311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3934 ac_res=`eval echo '${'$as_ac_Header'}'`
3935 { echo "$as_me:$LINENO: result: $ac_res" >&5
3936 echo "${ECHO_T}$ac_res" >&6; }
33133937 else
33143938 # Is the header compilable?
3315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3939 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33173941 cat >conftest.$ac_ext <<_ACEOF
33183942 /* confdefs.h. */
33193943 _ACEOF
33243948 #include <$ac_header>
33253949 _ACEOF
33263950 rm -f conftest.$ac_objext
3327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3328 (eval $ac_compile) 2>conftest.er1
3951 if { (ac_try="$ac_compile"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_compile") 2>conftest.er1
33293958 ac_status=$?
33303959 grep -v '^ *+' conftest.er1 >conftest.err
33313960 rm -f conftest.er1
33323961 cat conftest.err >&5
33333962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 (eval $ac_try) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3343 (eval $ac_try) 2>&5
3344 ac_status=$?
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest.$ac_objext; then
33473967 ac_header_compiler=yes
33483968 else
33493969 echo "$as_me: failed program was:" >&5
33503970 sed 's/^/| /' conftest.$ac_ext >&5
33513971
3352 ac_header_compiler=no
3353 fi
3354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3356 echo "${ECHO_T}$ac_header_compiler" >&6
3972 ac_header_compiler=no
3973 fi
3974
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3977 echo "${ECHO_T}$ac_header_compiler" >&6; }
33573978
33583979 # Is the header present?
3359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3980 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33613982 cat >conftest.$ac_ext <<_ACEOF
33623983 /* confdefs.h. */
33633984 _ACEOF
33663987 /* end confdefs.h. */
33673988 #include <$ac_header>
33683989 _ACEOF
3369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3990 if { (ac_try="$ac_cpp conftest.$ac_ext"
3991 case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3994 esac
3995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33713997 ac_status=$?
33723998 grep -v '^ *+' conftest.er1 >conftest.err
33733999 rm -f conftest.er1
33744000 cat conftest.err >&5
33754001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_c_preproc_warn_flag
3379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380 else
3381 ac_cpp_err=
3382 fi
3383 else
3384 ac_cpp_err=yes
3385 fi
3386 if test -z "$ac_cpp_err"; then
4002 (exit $ac_status); } >/dev/null && {
4003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4004 test ! -s conftest.err
4005 }; then
33874006 ac_header_preproc=yes
33884007 else
33894008 echo "$as_me: failed program was:" >&5
33914010
33924011 ac_header_preproc=no
33934012 fi
4013
33944014 rm -f conftest.err conftest.$ac_ext
3395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3396 echo "${ECHO_T}$ac_header_preproc" >&6
4015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4016 echo "${ECHO_T}$ac_header_preproc" >&6; }
33974017
33984018 # So? What about this header?
33994019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34174037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34184038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34194039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3420 (
3421 cat <<\_ASBOX
3422 ## ------------------------------------------ ##
3423 ## Report this to the AC_PACKAGE_NAME lists. ##
3424 ## ------------------------------------------ ##
3425 _ASBOX
3426 ) |
3427 sed "s/^/$as_me: WARNING: /" >&2
4040
34284041 ;;
34294042 esac
3430 echo "$as_me:$LINENO: checking for $ac_header" >&5
3431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34334046 echo $ECHO_N "(cached) $ECHO_C" >&6
34344047 else
34354048 eval "$as_ac_Header=\$ac_header_preproc"
34364049 fi
3437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4050 ac_res=`eval echo '${'$as_ac_Header'}'`
4051 { echo "$as_me:$LINENO: result: $ac_res" >&5
4052 echo "${ECHO_T}$ac_res" >&6; }
34394053
34404054 fi
34414055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34494063
34504064
34514065
3452 # Check whether --with-zip or --without-zip was given.
4066 # Check whether --with-zip was given.
34534067 if test "${with_zip+set}" = set; then
3454 withval="$with_zip"
3455 ZIP=$withval
4068 withval=$with_zip; ZIP=$withval
34564069 else
34574070 ZIP=yes
3458 fi;
4071 fi
4072
34594073 if test "$ZIP" = "yes" ; then
34604074
3461 echo "$as_me:$LINENO: checking for inflateInit_ in -lz" >&5
3462 echo $ECHO_N "checking for inflateInit_ in -lz... $ECHO_C" >&6
4075 { echo "$as_me:$LINENO: checking for inflateInit_ in -lz" >&5
4076 echo $ECHO_N "checking for inflateInit_ in -lz... $ECHO_C" >&6; }
34634077 if test "${ac_cv_lib_z_inflateInit_+set}" = set; then
34644078 echo $ECHO_N "(cached) $ECHO_C" >&6
34654079 else
34724086 cat >>conftest.$ac_ext <<_ACEOF
34734087 /* end confdefs.h. */
34744088
3475 /* Override any gcc2 internal prototype to avoid an error. */
4089 /* Override any GCC internal prototype to avoid an error.
4090 Use char because int might match the return type of a GCC
4091 builtin and then its argument prototype would still apply. */
34764092 #ifdef __cplusplus
34774093 extern "C"
34784094 #endif
3479 /* We use char because int might match the return type of a gcc2
3480 builtin and then its argument prototype would still apply. */
34814095 char inflateInit_ ();
34824096 int
34834097 main ()
34844098 {
3485 inflateInit_ ();
4099 return inflateInit_ ();
34864100 ;
34874101 return 0;
34884102 }
34894103 _ACEOF
34904104 rm -f conftest.$ac_objext conftest$ac_exeext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3492 (eval $ac_link) 2>conftest.er1
4105 if { (ac_try="$ac_link"
4106 case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109 esac
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_link") 2>conftest.er1
34934112 ac_status=$?
34944113 grep -v '^ *+' conftest.er1 >conftest.err
34954114 rm -f conftest.er1
34964115 cat conftest.err >&5
34974116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 (eval $ac_try) 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; } &&
3505 { ac_try='test -s conftest$ac_exeext'
3506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507 (eval $ac_try) 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
4117 (exit $ac_status); } && {
4118 test -z "$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4120 } && test -s conftest$ac_exeext &&
4121 $as_test_x conftest$ac_exeext; then
35114122 ac_cv_lib_z_inflateInit_=yes
35124123 else
35134124 echo "$as_me: failed program was:" >&5
35144125 sed 's/^/| /' conftest.$ac_ext >&5
35154126
3516 ac_cv_lib_z_inflateInit_=no
3517 fi
3518 rm -f conftest.err conftest.$ac_objext \
4127 ac_cv_lib_z_inflateInit_=no
4128 fi
4129
4130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35194131 conftest$ac_exeext conftest.$ac_ext
35204132 LIBS=$ac_check_lib_save_LIBS
35214133 fi
3522 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateInit_" >&5
3523 echo "${ECHO_T}$ac_cv_lib_z_inflateInit_" >&6
4134 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateInit_" >&5
4135 echo "${ECHO_T}$ac_cv_lib_z_inflateInit_" >&6; }
35244136 if test $ac_cv_lib_z_inflateInit_ = yes; then
35254137 cat >>confdefs.h <<_ACEOF
35264138 #define HAVE_LIBZ 1
35344146 for ac_header in zlib.h
35354147 do
35364148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3538 echo "$as_me:$LINENO: checking for $ac_header" >&5
3539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35414153 echo $ECHO_N "(cached) $ECHO_C" >&6
35424154 fi
3543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4155 ac_res=`eval echo '${'$as_ac_Header'}'`
4156 { echo "$as_me:$LINENO: result: $ac_res" >&5
4157 echo "${ECHO_T}$ac_res" >&6; }
35454158 else
35464159 # Is the header compilable?
3547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35494162 cat >conftest.$ac_ext <<_ACEOF
35504163 /* confdefs.h. */
35514164 _ACEOF
35564169 #include <$ac_header>
35574170 _ACEOF
35584171 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
4172 if { (ac_try="$ac_compile"
4173 case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176 esac
4177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_compile") 2>conftest.er1
35614179 ac_status=$?
35624180 grep -v '^ *+' conftest.er1 >conftest.err
35634181 rm -f conftest.er1
35644182 cat conftest.err >&5
35654183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569 (eval $ac_try) 2>&5
3570 ac_status=$?
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; } &&
3573 { ac_try='test -s conftest.$ac_objext'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 (eval $ac_try) 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; }; then
4184 (exit $ac_status); } && {
4185 test -z "$ac_c_werror_flag" ||
4186 test ! -s conftest.err
4187 } && test -s conftest.$ac_objext; then
35794188 ac_header_compiler=yes
35804189 else
35814190 echo "$as_me: failed program was:" >&5
35824191 sed 's/^/| /' conftest.$ac_ext >&5
35834192
3584 ac_header_compiler=no
3585 fi
3586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3588 echo "${ECHO_T}$ac_header_compiler" >&6
4193 ac_header_compiler=no
4194 fi
4195
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4198 echo "${ECHO_T}$ac_header_compiler" >&6; }
35894199
35904200 # Is the header present?
3591 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35934203 cat >conftest.$ac_ext <<_ACEOF
35944204 /* confdefs.h. */
35954205 _ACEOF
35984208 /* end confdefs.h. */
35994209 #include <$ac_header>
36004210 _ACEOF
3601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4211 if { (ac_try="$ac_cpp conftest.$ac_ext"
4212 case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36034218 ac_status=$?
36044219 grep -v '^ *+' conftest.er1 >conftest.err
36054220 rm -f conftest.er1
36064221 cat conftest.err >&5
36074222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 else
3613 ac_cpp_err=
3614 fi
3615 else
3616 ac_cpp_err=yes
3617 fi
3618 if test -z "$ac_cpp_err"; then
4223 (exit $ac_status); } >/dev/null && {
4224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4225 test ! -s conftest.err
4226 }; then
36194227 ac_header_preproc=yes
36204228 else
36214229 echo "$as_me: failed program was:" >&5
36234231
36244232 ac_header_preproc=no
36254233 fi
4234
36264235 rm -f conftest.err conftest.$ac_ext
3627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3628 echo "${ECHO_T}$ac_header_preproc" >&6
4236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4237 echo "${ECHO_T}$ac_header_preproc" >&6; }
36294238
36304239 # So? What about this header?
36314240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36494258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36504259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36514260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3652 (
3653 cat <<\_ASBOX
3654 ## ------------------------------------------ ##
3655 ## Report this to the AC_PACKAGE_NAME lists. ##
3656 ## ------------------------------------------ ##
3657 _ASBOX
3658 ) |
3659 sed "s/^/$as_me: WARNING: /" >&2
4261
36604262 ;;
36614263 esac
3662 echo "$as_me:$LINENO: checking for $ac_header" >&5
3663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36654267 echo $ECHO_N "(cached) $ECHO_C" >&6
36664268 else
36674269 eval "$as_ac_Header=\$ac_header_preproc"
36684270 fi
3669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4271 ac_res=`eval echo '${'$as_ac_Header'}'`
4272 { echo "$as_me:$LINENO: result: $ac_res" >&5
4273 echo "${ECHO_T}$ac_res" >&6; }
36714274
36724275 fi
36734276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36984301 fi
36994302
37004303
3701 # Check whether --with-jpeg or --without-jpeg was given.
4304 # Check whether --with-jpeg was given.
37024305 if test "${with_jpeg+set}" = set; then
3703 withval="$with_jpeg"
3704 JPEG=$withval
4306 withval=$with_jpeg; JPEG=$withval
37054307 else
37064308 JPEG=yes
3707 fi;
4309 fi
4310
37084311 if test "$JPEG" = "yes" ; then
37094312
3710 echo "$as_me:$LINENO: checking for jinit_compress_master in -ljpeg" >&5
3711 echo $ECHO_N "checking for jinit_compress_master in -ljpeg... $ECHO_C" >&6
4313 { echo "$as_me:$LINENO: checking for jinit_compress_master in -ljpeg" >&5
4314 echo $ECHO_N "checking for jinit_compress_master in -ljpeg... $ECHO_C" >&6; }
37124315 if test "${ac_cv_lib_jpeg_jinit_compress_master+set}" = set; then
37134316 echo $ECHO_N "(cached) $ECHO_C" >&6
37144317 else
37214324 cat >>conftest.$ac_ext <<_ACEOF
37224325 /* end confdefs.h. */
37234326
3724 /* Override any gcc2 internal prototype to avoid an error. */
4327 /* Override any GCC internal prototype to avoid an error.
4328 Use char because int might match the return type of a GCC
4329 builtin and then its argument prototype would still apply. */
37254330 #ifdef __cplusplus
37264331 extern "C"
37274332 #endif
3728 /* We use char because int might match the return type of a gcc2
3729 builtin and then its argument prototype would still apply. */
37304333 char jinit_compress_master ();
37314334 int
37324335 main ()
37334336 {
3734 jinit_compress_master ();
4337 return jinit_compress_master ();
37354338 ;
37364339 return 0;
37374340 }
37384341 _ACEOF
37394342 rm -f conftest.$ac_objext conftest$ac_exeext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3741 (eval $ac_link) 2>conftest.er1
4343 if { (ac_try="$ac_link"
4344 case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347 esac
4348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_link") 2>conftest.er1
37424350 ac_status=$?
37434351 grep -v '^ *+' conftest.er1 >conftest.err
37444352 rm -f conftest.er1
37454353 cat conftest.err >&5
37464354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try='test -s conftest$ac_exeext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
4355 (exit $ac_status); } && {
4356 test -z "$ac_c_werror_flag" ||
4357 test ! -s conftest.err
4358 } && test -s conftest$ac_exeext &&
4359 $as_test_x conftest$ac_exeext; then
37604360 ac_cv_lib_jpeg_jinit_compress_master=yes
37614361 else
37624362 echo "$as_me: failed program was:" >&5
37634363 sed 's/^/| /' conftest.$ac_ext >&5
37644364
3765 ac_cv_lib_jpeg_jinit_compress_master=no
3766 fi
3767 rm -f conftest.err conftest.$ac_objext \
4365 ac_cv_lib_jpeg_jinit_compress_master=no
4366 fi
4367
4368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37684369 conftest$ac_exeext conftest.$ac_ext
37694370 LIBS=$ac_check_lib_save_LIBS
37704371 fi
3771 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jinit_compress_master" >&5
3772 echo "${ECHO_T}$ac_cv_lib_jpeg_jinit_compress_master" >&6
4372 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jinit_compress_master" >&5
4373 echo "${ECHO_T}$ac_cv_lib_jpeg_jinit_compress_master" >&6; }
37734374 if test $ac_cv_lib_jpeg_jinit_compress_master = yes; then
37744375 cat >>confdefs.h <<_ACEOF
37754376 #define HAVE_LIBJPEG 1
37954396 fi
37964397
37974398
3798 # Check whether --with-libtiff or --without-libtiff was given.
4399 # Check whether --with-libtiff was given.
37994400 if test "${with_libtiff+set}" = set; then
3800 withval="$with_libtiff"
3801
3802 fi;
4401 withval=$with_libtiff;
4402 fi
4403
38034404
38044405 if test "$with_libtiff" != "" ; then
38054406 if test -f $with_libtiff/include/tiffio.h -a -d $with_libtiff/lib ; then
38114412 fi
38124413 LIBS_SAVED="$LIBS"
38134414
3814 echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
3815 echo $ECHO_N "checking for TIFFOpen in -ltiff... $ECHO_C" >&6
4415 { echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
4416 echo $ECHO_N "checking for TIFFOpen in -ltiff... $ECHO_C" >&6; }
38164417 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
38174418 echo $ECHO_N "(cached) $ECHO_C" >&6
38184419 else
38254426 cat >>conftest.$ac_ext <<_ACEOF
38264427 /* end confdefs.h. */
38274428
3828 /* Override any gcc2 internal prototype to avoid an error. */
4429 /* Override any GCC internal prototype to avoid an error.
4430 Use char because int might match the return type of a GCC
4431 builtin and then its argument prototype would still apply. */
38294432 #ifdef __cplusplus
38304433 extern "C"
38314434 #endif
3832 /* We use char because int might match the return type of a gcc2
3833 builtin and then its argument prototype would still apply. */
38344435 char TIFFOpen ();
38354436 int
38364437 main ()
38374438 {
3838 TIFFOpen ();
4439 return TIFFOpen ();
38394440 ;
38404441 return 0;
38414442 }
38424443 _ACEOF
38434444 rm -f conftest.$ac_objext conftest$ac_exeext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845 (eval $ac_link) 2>conftest.er1
4445 if { (ac_try="$ac_link"
4446 case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449 esac
4450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4451 (eval "$ac_link") 2>conftest.er1
38464452 ac_status=$?
38474453 grep -v '^ *+' conftest.er1 >conftest.err
38484454 rm -f conftest.er1
38494455 cat conftest.err >&5
38504456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 (eval $ac_try) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; } &&
3858 { ac_try='test -s conftest$ac_exeext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
4457 (exit $ac_status); } && {
4458 test -z "$ac_c_werror_flag" ||
4459 test ! -s conftest.err
4460 } && test -s conftest$ac_exeext &&
4461 $as_test_x conftest$ac_exeext; then
38644462 ac_cv_lib_tiff_TIFFOpen=yes
38654463 else
38664464 echo "$as_me: failed program was:" >&5
38674465 sed 's/^/| /' conftest.$ac_ext >&5
38684466
3869 ac_cv_lib_tiff_TIFFOpen=no
3870 fi
3871 rm -f conftest.err conftest.$ac_objext \
4467 ac_cv_lib_tiff_TIFFOpen=no
4468 fi
4469
4470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38724471 conftest$ac_exeext conftest.$ac_ext
38734472 LIBS=$ac_check_lib_save_LIBS
38744473 fi
3875 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
3876 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFOpen" >&6
4474 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
4475 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFOpen" >&6; }
38774476 if test $ac_cv_lib_tiff_TIFFOpen = yes; then
38784477 cat >>confdefs.h <<_ACEOF
38794478 #define HAVE_LIBTIFF 1
38884487 fi
38894488
38904489
3891 echo "$as_me:$LINENO: checking for TIFFMergeFieldInfo in -ltiff" >&5
3892 echo $ECHO_N "checking for TIFFMergeFieldInfo in -ltiff... $ECHO_C" >&6
4490 { echo "$as_me:$LINENO: checking for TIFFMergeFieldInfo in -ltiff" >&5
4491 echo $ECHO_N "checking for TIFFMergeFieldInfo in -ltiff... $ECHO_C" >&6; }
38934492 if test "${ac_cv_lib_tiff_TIFFMergeFieldInfo+set}" = set; then
38944493 echo $ECHO_N "(cached) $ECHO_C" >&6
38954494 else
39024501 cat >>conftest.$ac_ext <<_ACEOF
39034502 /* end confdefs.h. */
39044503
3905 /* Override any gcc2 internal prototype to avoid an error. */
4504 /* Override any GCC internal prototype to avoid an error.
4505 Use char because int might match the return type of a GCC
4506 builtin and then its argument prototype would still apply. */
39064507 #ifdef __cplusplus
39074508 extern "C"
39084509 #endif
3909 /* We use char because int might match the return type of a gcc2
3910 builtin and then its argument prototype would still apply. */
39114510 char TIFFMergeFieldInfo ();
39124511 int
39134512 main ()
39144513 {
3915 TIFFMergeFieldInfo ();
4514 return TIFFMergeFieldInfo ();
39164515 ;
39174516 return 0;
39184517 }
39194518 _ACEOF
39204519 rm -f conftest.$ac_objext conftest$ac_exeext
3921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3922 (eval $ac_link) 2>conftest.er1
4520 if { (ac_try="$ac_link"
4521 case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524 esac
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_link") 2>conftest.er1
39234527 ac_status=$?
39244528 grep -v '^ *+' conftest.er1 >conftest.err
39254529 rm -f conftest.er1
39264530 cat conftest.err >&5
39274531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } &&
3929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 (eval $ac_try) 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; } &&
3935 { ac_try='test -s conftest$ac_exeext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
4532 (exit $ac_status); } && {
4533 test -z "$ac_c_werror_flag" ||
4534 test ! -s conftest.err
4535 } && test -s conftest$ac_exeext &&
4536 $as_test_x conftest$ac_exeext; then
39414537 ac_cv_lib_tiff_TIFFMergeFieldInfo=yes
39424538 else
39434539 echo "$as_me: failed program was:" >&5
39444540 sed 's/^/| /' conftest.$ac_ext >&5
39454541
3946 ac_cv_lib_tiff_TIFFMergeFieldInfo=no
3947 fi
3948 rm -f conftest.err conftest.$ac_objext \
4542 ac_cv_lib_tiff_TIFFMergeFieldInfo=no
4543 fi
4544
4545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39494546 conftest$ac_exeext conftest.$ac_ext
39504547 LIBS=$ac_check_lib_save_LIBS
39514548 fi
3952 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFMergeFieldInfo" >&5
3953 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFMergeFieldInfo" >&6
4549 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFMergeFieldInfo" >&5
4550 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFMergeFieldInfo" >&6; }
39544551 if test $ac_cv_lib_tiff_TIFFMergeFieldInfo = yes; then
39554552 cat >>confdefs.h <<_ACEOF
39564553 #define HAVE_LIBTIFF 1
39694566 LIBS="$LIBS_SAVED"
39704567 else
39714568
3972 echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
3973 echo $ECHO_N "checking for TIFFOpen in -ltiff... $ECHO_C" >&6
4569 { echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
4570 echo $ECHO_N "checking for TIFFOpen in -ltiff... $ECHO_C" >&6; }
39744571 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
39754572 echo $ECHO_N "(cached) $ECHO_C" >&6
39764573 else
39834580 cat >>conftest.$ac_ext <<_ACEOF
39844581 /* end confdefs.h. */
39854582
3986 /* Override any gcc2 internal prototype to avoid an error. */
4583 /* Override any GCC internal prototype to avoid an error.
4584 Use char because int might match the return type of a GCC
4585 builtin and then its argument prototype would still apply. */
39874586 #ifdef __cplusplus
39884587 extern "C"
39894588 #endif
3990 /* We use char because int might match the return type of a gcc2
3991 builtin and then its argument prototype would still apply. */
39924589 char TIFFOpen ();
39934590 int
39944591 main ()
39954592 {
3996 TIFFOpen ();
4593 return TIFFOpen ();
39974594 ;
39984595 return 0;
39994596 }
40004597 _ACEOF
40014598 rm -f conftest.$ac_objext conftest$ac_exeext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4003 (eval $ac_link) 2>conftest.er1
4599 if { (ac_try="$ac_link"
4600 case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4603 esac
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_link") 2>conftest.er1
40044606 ac_status=$?
40054607 grep -v '^ *+' conftest.er1 >conftest.err
40064608 rm -f conftest.er1
40074609 cat conftest.err >&5
40084610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012 (eval $ac_try) 2>&5
4013 ac_status=$?
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; } &&
4016 { ac_try='test -s conftest$ac_exeext'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 (eval $ac_try) 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4611 (exit $ac_status); } && {
4612 test -z "$ac_c_werror_flag" ||
4613 test ! -s conftest.err
4614 } && test -s conftest$ac_exeext &&
4615 $as_test_x conftest$ac_exeext; then
40224616 ac_cv_lib_tiff_TIFFOpen=yes
40234617 else
40244618 echo "$as_me: failed program was:" >&5
40254619 sed 's/^/| /' conftest.$ac_ext >&5
40264620
4027 ac_cv_lib_tiff_TIFFOpen=no
4028 fi
4029 rm -f conftest.err conftest.$ac_objext \
4621 ac_cv_lib_tiff_TIFFOpen=no
4622 fi
4623
4624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40304625 conftest$ac_exeext conftest.$ac_ext
40314626 LIBS=$ac_check_lib_save_LIBS
40324627 fi
4033 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
4034 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFOpen" >&6
4628 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
4629 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFOpen" >&6; }
40354630 if test $ac_cv_lib_tiff_TIFFOpen = yes; then
40364631 cat >>confdefs.h <<_ACEOF
40374632 #define HAVE_LIBTIFF 1
40494644
40504645 LIBS_SAVED="$LIBS"
40514646
4052 echo "$as_me:$LINENO: checking for TIFFMergeFieldInfo in -ltiff" >&5
4053 echo $ECHO_N "checking for TIFFMergeFieldInfo in -ltiff... $ECHO_C" >&6
4647 { echo "$as_me:$LINENO: checking for TIFFMergeFieldInfo in -ltiff" >&5
4648 echo $ECHO_N "checking for TIFFMergeFieldInfo in -ltiff... $ECHO_C" >&6; }
40544649 if test "${ac_cv_lib_tiff_TIFFMergeFieldInfo+set}" = set; then
40554650 echo $ECHO_N "(cached) $ECHO_C" >&6
40564651 else
40634658 cat >>conftest.$ac_ext <<_ACEOF
40644659 /* end confdefs.h. */
40654660
4066 /* Override any gcc2 internal prototype to avoid an error. */
4661 /* Override any GCC internal prototype to avoid an error.
4662 Use char because int might match the return type of a GCC
4663 builtin and then its argument prototype would still apply. */
40674664 #ifdef __cplusplus
40684665 extern "C"
40694666 #endif
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
40724667 char TIFFMergeFieldInfo ();
40734668 int
40744669 main ()
40754670 {
4076 TIFFMergeFieldInfo ();
4671 return TIFFMergeFieldInfo ();
40774672 ;
40784673 return 0;
40794674 }
40804675 _ACEOF
40814676 rm -f conftest.$ac_objext conftest$ac_exeext
4082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4083 (eval $ac_link) 2>conftest.er1
4677 if { (ac_try="$ac_link"
4678 case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_link") 2>conftest.er1
40844684 ac_status=$?
40854685 grep -v '^ *+' conftest.er1 >conftest.err
40864686 rm -f conftest.er1
40874687 cat conftest.err >&5
40884688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest$ac_exeext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
4689 (exit $ac_status); } && {
4690 test -z "$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest$ac_exeext &&
4693 $as_test_x conftest$ac_exeext; then
41024694 ac_cv_lib_tiff_TIFFMergeFieldInfo=yes
41034695 else
41044696 echo "$as_me: failed program was:" >&5
41054697 sed 's/^/| /' conftest.$ac_ext >&5
41064698
4107 ac_cv_lib_tiff_TIFFMergeFieldInfo=no
4108 fi
4109 rm -f conftest.err conftest.$ac_objext \
4699 ac_cv_lib_tiff_TIFFMergeFieldInfo=no
4700 fi
4701
4702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41104703 conftest$ac_exeext conftest.$ac_ext
41114704 LIBS=$ac_check_lib_save_LIBS
41124705 fi
4113 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFMergeFieldInfo" >&5
4114 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFMergeFieldInfo" >&6
4706 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFMergeFieldInfo" >&5
4707 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFMergeFieldInfo" >&6; }
41154708 if test $ac_cv_lib_tiff_TIFFMergeFieldInfo = yes; then
41164709 cat >>confdefs.h <<_ACEOF
41174710 #define HAVE_LIBTIFF 1
41364729
41374730
41384731
4139 # Check whether --with-proj or --without-proj was given.
4732 # Check whether --with-proj was given.
41404733 if test "${with_proj+set}" = set; then
4141 withval="$with_proj"
4142 PROJ_HOME=$withval
4734 withval=$with_proj; PROJ_HOME=$withval
41434735 else
41444736 PROJ_HOME=
4145 fi;
4737 fi
4738
41464739
41474740 if test "$PROJ_HOME" != "" -a "$PROJ_HOME" != "no" ; then
41484741 if test -d "$PROJ_HOME/src/pj_init.c" ; then
41874780
41884781 else
41894782
4190 echo "$as_me:$LINENO: checking for pj_init in -lproj" >&5
4191 echo $ECHO_N "checking for pj_init in -lproj... $ECHO_C" >&6
4783 { echo "$as_me:$LINENO: checking for pj_init in -lproj" >&5
4784 echo $ECHO_N "checking for pj_init in -lproj... $ECHO_C" >&6; }
41924785 if test "${ac_cv_lib_proj_pj_init+set}" = set; then
41934786 echo $ECHO_N "(cached) $ECHO_C" >&6
41944787 else
42014794 cat >>conftest.$ac_ext <<_ACEOF
42024795 /* end confdefs.h. */
42034796
4204 /* Override any gcc2 internal prototype to avoid an error. */
4797 /* Override any GCC internal prototype to avoid an error.
4798 Use char because int might match the return type of a GCC
4799 builtin and then its argument prototype would still apply. */
42054800 #ifdef __cplusplus
42064801 extern "C"
42074802 #endif
4208 /* We use char because int might match the return type of a gcc2
4209 builtin and then its argument prototype would still apply. */
42104803 char pj_init ();
42114804 int
42124805 main ()
42134806 {
4214 pj_init ();
4807 return pj_init ();
42154808 ;
42164809 return 0;
42174810 }
42184811 _ACEOF
42194812 rm -f conftest.$ac_objext conftest$ac_exeext
4220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4221 (eval $ac_link) 2>conftest.er1
4813 if { (ac_try="$ac_link"
4814 case "(($ac_try" in
4815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816 *) ac_try_echo=$ac_try;;
4817 esac
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819 (eval "$ac_link") 2>conftest.er1
42224820 ac_status=$?
42234821 grep -v '^ *+' conftest.er1 >conftest.err
42244822 rm -f conftest.er1
42254823 cat conftest.err >&5
42264824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest$ac_exeext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4825 (exit $ac_status); } && {
4826 test -z "$ac_c_werror_flag" ||
4827 test ! -s conftest.err
4828 } && test -s conftest$ac_exeext &&
4829 $as_test_x conftest$ac_exeext; then
42404830 ac_cv_lib_proj_pj_init=yes
42414831 else
42424832 echo "$as_me: failed program was:" >&5
42434833 sed 's/^/| /' conftest.$ac_ext >&5
42444834
4245 ac_cv_lib_proj_pj_init=no
4246 fi
4247 rm -f conftest.err conftest.$ac_objext \
4835 ac_cv_lib_proj_pj_init=no
4836 fi
4837
4838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42484839 conftest$ac_exeext conftest.$ac_ext
42494840 LIBS=$ac_check_lib_save_LIBS
42504841 fi
4251 echo "$as_me:$LINENO: result: $ac_cv_lib_proj_pj_init" >&5
4252 echo "${ECHO_T}$ac_cv_lib_proj_pj_init" >&6
4842 { echo "$as_me:$LINENO: result: $ac_cv_lib_proj_pj_init" >&5
4843 echo "${ECHO_T}$ac_cv_lib_proj_pj_init" >&6; }
42534844 if test $ac_cv_lib_proj_pj_init = yes; then
42544845 cat >>confdefs.h <<_ACEOF
42554846 #define HAVE_LIBPROJ 1
42634854 for ac_header in projects.h
42644855 do
42654856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4267 echo "$as_me:$LINENO: checking for $ac_header" >&5
4268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42704861 echo $ECHO_N "(cached) $ECHO_C" >&6
42714862 fi
4272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4863 ac_res=`eval echo '${'$as_ac_Header'}'`
4864 { echo "$as_me:$LINENO: result: $ac_res" >&5
4865 echo "${ECHO_T}$ac_res" >&6; }
42744866 else
42754867 # Is the header compilable?
4276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
42784870 cat >conftest.$ac_ext <<_ACEOF
42794871 /* confdefs.h. */
42804872 _ACEOF
42854877 #include <$ac_header>
42864878 _ACEOF
42874879 rm -f conftest.$ac_objext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>conftest.er1
4880 if { (ac_try="$ac_compile"
4881 case "(($ac_try" in
4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4884 esac
4885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886 (eval "$ac_compile") 2>conftest.er1
42904887 ac_status=$?
42914888 grep -v '^ *+' conftest.er1 >conftest.err
42924889 rm -f conftest.er1
42934890 cat conftest.err >&5
42944891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; } &&
4302 { ac_try='test -s conftest.$ac_objext'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4892 (exit $ac_status); } && {
4893 test -z "$ac_c_werror_flag" ||
4894 test ! -s conftest.err
4895 } && test -s conftest.$ac_objext; then
43084896 ac_header_compiler=yes
43094897 else
43104898 echo "$as_me: failed program was:" >&5
43114899 sed 's/^/| /' conftest.$ac_ext >&5
43124900
4313 ac_header_compiler=no
4314 fi
4315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4317 echo "${ECHO_T}$ac_header_compiler" >&6
4901 ac_header_compiler=no
4902 fi
4903
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4906 echo "${ECHO_T}$ac_header_compiler" >&6; }
43184907
43194908 # Is the header present?
4320 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43224911 cat >conftest.$ac_ext <<_ACEOF
43234912 /* confdefs.h. */
43244913 _ACEOF
43274916 /* end confdefs.h. */
43284917 #include <$ac_header>
43294918 _ACEOF
4330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4919 if { (ac_try="$ac_cpp conftest.$ac_ext"
4920 case "(($ac_try" in
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4923 esac
4924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43324926 ac_status=$?
43334927 grep -v '^ *+' conftest.er1 >conftest.err
43344928 rm -f conftest.er1
43354929 cat conftest.err >&5
43364930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } >/dev/null; then
4338 if test -s conftest.err; then
4339 ac_cpp_err=$ac_c_preproc_warn_flag
4340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4341 else
4342 ac_cpp_err=
4343 fi
4344 else
4345 ac_cpp_err=yes
4346 fi
4347 if test -z "$ac_cpp_err"; then
4931 (exit $ac_status); } >/dev/null && {
4932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4933 test ! -s conftest.err
4934 }; then
43484935 ac_header_preproc=yes
43494936 else
43504937 echo "$as_me: failed program was:" >&5
43524939
43534940 ac_header_preproc=no
43544941 fi
4942
43554943 rm -f conftest.err conftest.$ac_ext
4356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4357 echo "${ECHO_T}$ac_header_preproc" >&6
4944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4945 echo "${ECHO_T}$ac_header_preproc" >&6; }
43584946
43594947 # So? What about this header?
43604948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43784966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43794967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43804968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4381 (
4382 cat <<\_ASBOX
4383 ## ------------------------------------------ ##
4384 ## Report this to the AC_PACKAGE_NAME lists. ##
4385 ## ------------------------------------------ ##
4386 _ASBOX
4387 ) |
4388 sed "s/^/$as_me: WARNING: /" >&2
4969
43894970 ;;
43904971 esac
4391 echo "$as_me:$LINENO: checking for $ac_header" >&5
4392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43944975 echo $ECHO_N "(cached) $ECHO_C" >&6
43954976 else
43964977 eval "$as_ac_Header=\$ac_header_preproc"
43974978 fi
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4979 ac_res=`eval echo '${'$as_ac_Header'}'`
4980 { echo "$as_me:$LINENO: result: $ac_res" >&5
4981 echo "${ECHO_T}$ac_res" >&6; }
44004982
44014983 fi
44024984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44114993 fi
44124994
44134995
4414 # Check whether --enable-incode-epsg or --disable-incode-epsg was given.
4996 # Check whether --enable-incode-epsg was given.
44154997 if test "${enable_incode_epsg+set}" = set; then
4416 enableval="$enable_incode_epsg"
4417
4998 enableval=$enable_incode_epsg;
44184999 else
44195000 enable_incode_epsg=no
4420 fi;
5001 fi
5002
44215003
44225004 if test "$enable_incode_epsg" != "yes" ; then
44235005 echo "EPSG tables will be read from .csv files."
44325014
44335015
44345016
4435 ac_config_files="$ac_config_files Makefile bin/Makefile"
5017 ac_config_files="$ac_config_files Makefile bin/Makefile"
5018
44365019 cat >confcache <<\_ACEOF
44375020 # This file is a shell script that caches the results of configure
44385021 # tests run on this system so they can be shared between configure
44515034
44525035 # The following way of writing the cache mishandles newlines in values,
44535036 # but we know of no workaround that is simple, portable, and efficient.
4454 # So, don't put newlines in cache variables' values.
5037 # So, we kill variables containing newlines.
44555038 # Ultrix sh set writes to stderr and can't be redirected directly,
44565039 # and sets the high bit in the cache file unless we assign to the vars.
4457 {
5040 (
5041 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5042 eval ac_val=\$$ac_var
5043 case $ac_val in #(
5044 *${as_nl}*)
5045 case $ac_var in #(
5046 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5047 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5048 esac
5049 case $ac_var in #(
5050 _ | IFS | as_nl) ;; #(
5051 *) $as_unset $ac_var ;;
5052 esac ;;
5053 esac
5054 done
5055
44585056 (set) 2>&1 |
4459 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4460 *ac_space=\ *)
5057 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5058 *${as_nl}ac_space=\ *)
44615059 # `set' does not quote correctly, so add quotes (double-quote
44625060 # substitution turns \\\\ into \\, and sed turns \\ into \).
44635061 sed -n \
44645062 "s/'/'\\\\''/g;
44655063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4466 ;;
5064 ;; #(
44675065 *)
44685066 # `set' quotes correctly as required by POSIX, so do not add quotes.
4469 sed -n \
4470 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44715068 ;;
4472 esac;
4473 } |
5069 esac |
5070 sort
5071 ) |
44745072 sed '
5073 /^ac_cv_env_/b end
44755074 t clear
4476 : clear
5075 :clear
44775076 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44785077 t end
4479 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4480 : end' >>confcache
4481 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4482 if test -w $cache_file; then
4483 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5079 :end' >>confcache
5080 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5081 if test -w "$cache_file"; then
5082 test "x$cache_file" != "x/dev/null" &&
5083 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5084 echo "$as_me: updating cache $cache_file" >&6;}
44845085 cat confcache >$cache_file
44855086 else
4486 echo "not updating unwritable cache $cache_file"
5087 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5088 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44875089 fi
44885090 fi
44895091 rm -f confcache
44915093 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44925094 # Let make expand exec_prefix.
44935095 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4494
4495 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4496 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4497 # trailing colons and then remove the whole line if VPATH becomes empty
4498 # (actually we leave an empty line to preserve line numbers).
4499 if test "x$srcdir" = x.; then
4500 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4501 s/:*\$(srcdir):*/:/;
4502 s/:*\${srcdir}:*/:/;
4503 s/:*@srcdir@:*/:/;
4504 s/^\([^=]*=[ ]*\):*/\1/;
4505 s/:*$//;
4506 s/^[^=]*=[ ]*$//;
4507 }'
4508 fi
45095096
45105097 DEFS=-DHAVE_CONFIG_H
45115098
45135100 ac_ltlibobjs=
45145101 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45155102 # 1. Remove the extension, and $U if already installed.
4516 ac_i=`echo "$ac_i" |
4517 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4518 # 2. Add them.
4519 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4520 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5104 ac_i=`echo "$ac_i" | sed "$ac_script"`
5105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5106 # will be set to the directory where LIBOBJS objects are built.
5107 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5108 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
45215109 done
45225110 LIBOBJS=$ac_libobjs
45235111
45485136 ## M4sh Initialization. ##
45495137 ## --------------------- ##
45505138
4551 # Be Bourne compatible
5139 # Be more Bourne compatible
5140 DUALCASE=1; export DUALCASE # for MKS sh
45525141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45535142 emulate sh
45545143 NULLCMD=:
45555144 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45565145 # is contrary to our usage. Disable this feature.
45575146 alias -g '${1+"$@"}'='"$@"'
4558 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4559 set -o posix
4560 fi
4561 DUALCASE=1; export DUALCASE # for MKS sh
4562
4563 # Support unset when possible.
4564 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4565 as_unset=unset
4566 else
4567 as_unset=false
4568 fi
4569
4570
4571 # Work around bugs in pre-3.0 UWIN ksh.
4572 $as_unset ENV MAIL MAILPATH
4573 PS1='$ '
4574 PS2='> '
4575 PS4='+ '
4576
4577 # NLS nuisances.
4578 for as_var in \
4579 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4580 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4581 LC_TELEPHONE LC_TIME
4582 do
4583 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4584 eval $as_var=C; export $as_var
4585 else
4586 $as_unset $as_var
4587 fi
4588 done
4589
4590 # Required to use basename.
4591 if expr a : '\(a\)' >/dev/null 2>&1; then
4592 as_expr=expr
4593 else
4594 as_expr=false
4595 fi
4596
4597 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4598 as_basename=basename
4599 else
4600 as_basename=false
4601 fi
4602
4603
4604 # Name of the executable.
4605 as_me=`$as_basename "$0" ||
4606 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4607 X"$0" : 'X\(//\)$' \| \
4608 X"$0" : 'X\(/\)$' \| \
4609 . : '\(.\)' 2>/dev/null ||
4610 echo X/"$0" |
4611 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4612 /^X\/\(\/\/\)$/{ s//\1/; q; }
4613 /^X\/\(\/\).*/{ s//\1/; q; }
4614 s/.*/./; q'`
4615
4616
4617 # PATH needs CR, and LINENO needs CR and PATH.
5147 setopt NO_GLOB_SUBST
5148 else
5149 case `(set -o) 2>/dev/null` in
5150 *posix*) set -o posix ;;
5151 esac
5152
5153 fi
5154
5155
5156
5157
5158 # PATH needs CR
46185159 # Avoid depending upon Character Ranges.
46195160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46205161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46355176 rm -f conf$$.sh
46365177 fi
46375178
4638
4639 as_lineno_1=$LINENO
4640 as_lineno_2=$LINENO
4641 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4642 test "x$as_lineno_1" != "x$as_lineno_2" &&
4643 test "x$as_lineno_3" = "x$as_lineno_2" || {
4644 # Find who we are. Look in the path if we contain no path at all
4645 # relative or not.
4646 case $0 in
4647 *[\\/]* ) as_myself=$0 ;;
4648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 # Support unset when possible.
5180 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5181 as_unset=unset
5182 else
5183 as_unset=false
5184 fi
5185
5186
5187 # IFS
5188 # We need space, tab and new line, in precisely that order. Quoting is
5189 # there to prevent editors from complaining about space-tab.
5190 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5191 # splitting by setting IFS to empty value.)
5192 as_nl='
5193 '
5194 IFS=" "" $as_nl"
5195
5196 # Find who we are. Look in the path if we contain no directory separator.
5197 case $0 in
5198 *[\\/]* ) as_myself=$0 ;;
5199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46495200 for as_dir in $PATH
46505201 do
46515202 IFS=$as_save_IFS
46525203 test -z "$as_dir" && as_dir=.
46535204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46545205 done
4655
4656 ;;
4657 esac
4658 # We did not find ourselves, most probably we were run as `sh COMMAND'
4659 # in which case we are not to be found in the path.
4660 if test "x$as_myself" = x; then
4661 as_myself=$0
5206 IFS=$as_save_IFS
5207
5208 ;;
5209 esac
5210 # We did not find ourselves, most probably we were run as `sh COMMAND'
5211 # in which case we are not to be found in the path.
5212 if test "x$as_myself" = x; then
5213 as_myself=$0
5214 fi
5215 if test ! -f "$as_myself"; then
5216 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5217 { (exit 1); exit 1; }
5218 fi
5219
5220 # Work around bugs in pre-3.0 UWIN ksh.
5221 for as_var in ENV MAIL MAILPATH
5222 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5223 done
5224 PS1='$ '
5225 PS2='> '
5226 PS4='+ '
5227
5228 # NLS nuisances.
5229 for as_var in \
5230 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5231 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5232 LC_TELEPHONE LC_TIME
5233 do
5234 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5235 eval $as_var=C; export $as_var
5236 else
5237 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
46625238 fi
4663 if test ! -f "$as_myself"; then
4664 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4665 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4666 { (exit 1); exit 1; }; }
4667 fi
4668 case $CONFIG_SHELL in
4669 '')
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for as_base in sh bash ksh sh5; do
4676 case $as_dir in
4677 /*)
4678 if ("$as_dir/$as_base" -c '
5239 done
5240
5241 # Required to use basename.
5242 if expr a : '\(a\)' >/dev/null 2>&1 &&
5243 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5244 as_expr=expr
5245 else
5246 as_expr=false
5247 fi
5248
5249 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5250 as_basename=basename
5251 else
5252 as_basename=false
5253 fi
5254
5255
5256 # Name of the executable.
5257 as_me=`$as_basename -- "$0" ||
5258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5259 X"$0" : 'X\(//\)$' \| \
5260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5261 echo X/"$0" |
5262 sed '/^.*\/\([^/][^/]*\)\/*$/{
5263 s//\1/
5264 q
5265 }
5266 /^X\/\(\/\/\)$/{
5267 s//\1/
5268 q
5269 }
5270 /^X\/\(\/\).*/{
5271 s//\1/
5272 q
5273 }
5274 s/.*/./; q'`
5275
5276 # CDPATH.
5277 $as_unset CDPATH
5278
5279
5280
46795281 as_lineno_1=$LINENO
46805282 as_lineno_2=$LINENO
4681 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46825283 test "x$as_lineno_1" != "x$as_lineno_2" &&
4683 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4684 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4685 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4686 CONFIG_SHELL=$as_dir/$as_base
4687 export CONFIG_SHELL
4688 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4689 fi;;
4690 esac
4691 done
4692 done
4693 ;;
4694 esac
5284 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
46955285
46965286 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46975287 # uniformly replaced by the line number. The first 'sed' inserts a
4698 # line-number line before each line; the second 'sed' does the real
4699 # work. The second script uses 'N' to pair each line-number line
4700 # with the numbered line, and appends trailing '-' during
4701 # substitution so that $LINENO is not a special case at line end.
5288 # line-number line after each line using $LINENO; the second 'sed'
5289 # does the real work. The second script uses 'N' to pair each
5290 # line-number line with the line containing $LINENO, and appends
5291 # trailing '-' during substitution so that $LINENO is not a special
5292 # case at line end.
47025293 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4703 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4704 sed '=' <$as_myself |
5294 # scripts with optimization help from Paolo Bonzini. Blame Lee
5295 # E. McMahon (1931-1989) for sed's syntax. :-)
5296 sed -n '
5297 p
5298 /[$]LINENO/=
5299 ' <$as_myself |
47055300 sed '
5301 s/[$]LINENO.*/&-/
5302 t lineno
5303 b
5304 :lineno
47065305 N
4707 s,$,-,
4708 : loop
4709 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5306 :loop
5307 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47105308 t loop
4711 s,-$,,
4712 s,^['$as_cr_digits']*\n,,
5309 s/-\n.*//
47135310 ' >$as_me.lineno &&
4714 chmod +x $as_me.lineno ||
4715 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4716 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5311 chmod +x "$as_me.lineno" ||
5312 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
47175313 { (exit 1); exit 1; }; }
47185314
47195315 # Don't try to exec as it changes $[0], causing all sort of problems
47205316 # (the dirname of $[0] is not the place where we might find the
4721 # original and so on. Autoconf is especially sensible to this).
4722 . ./$as_me.lineno
5317 # original and so on. Autoconf is especially sensitive to this).
5318 . "./$as_me.lineno"
47235319 # Exit status is that of the last command.
47245320 exit
47255321 }
47265322
47275323
4728 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4729 *c*,-n*) ECHO_N= ECHO_C='
4730 ' ECHO_T=' ' ;;
4731 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4732 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5324 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5325 as_dirname=dirname
5326 else
5327 as_dirname=false
5328 fi
5329
5330 ECHO_C= ECHO_N= ECHO_T=
5331 case `echo -n x` in
5332 -n*)
5333 case `echo 'x\c'` in
5334 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5335 *) ECHO_C='\c';;
5336 esac;;
5337 *)
5338 ECHO_N='-n';;
47335339 esac
47345340
4735 if expr a : '\(a\)' >/dev/null 2>&1; then
5341 if expr a : '\(a\)' >/dev/null 2>&1 &&
5342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47365343 as_expr=expr
47375344 else
47385345 as_expr=false
47395346 fi
47405347
47415348 rm -f conf$$ conf$$.exe conf$$.file
5349 if test -d conf$$.dir; then
5350 rm -f conf$$.dir/conf$$.file
5351 else
5352 rm -f conf$$.dir
5353 mkdir conf$$.dir
5354 fi
47425355 echo >conf$$.file
47435356 if ln -s conf$$.file conf$$ 2>/dev/null; then
4744 # We could just check for DJGPP; but this test a) works b) is more generic
4745 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4746 if test -f conf$$.exe; then
4747 # Don't use ln at all; we don't have any links
5357 as_ln_s='ln -s'
5358 # ... but there are two gotchas:
5359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5361 # In both cases, we have to default to `cp -p'.
5362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
47485363 as_ln_s='cp -p'
4749 else
4750 as_ln_s='ln -s'
4751 fi
47525364 elif ln conf$$.file conf$$ 2>/dev/null; then
47535365 as_ln_s=ln
47545366 else
47555367 as_ln_s='cp -p'
47565368 fi
4757 rm -f conf$$ conf$$.exe conf$$.file
5369 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5370 rmdir conf$$.dir 2>/dev/null
47585371
47595372 if mkdir -p . 2>/dev/null; then
47605373 as_mkdir_p=:
47635376 as_mkdir_p=false
47645377 fi
47655378
4766 as_executable_p="test -f"
5379 if test -x / >/dev/null 2>&1; then
5380 as_test_x='test -x'
5381 else
5382 if ls -dL / >/dev/null 2>&1; then
5383 as_ls_L_option=L
5384 else
5385 as_ls_L_option=
5386 fi
5387 as_test_x='
5388 eval sh -c '\''
5389 if test -d "$1"; then
5390 test -d "$1/.";
5391 else
5392 case $1 in
5393 -*)set "./$1";;
5394 esac;
5395 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5396 ???[sx]*):;;*)false;;esac;fi
5397 '\'' sh
5398 '
5399 fi
5400 as_executable_p=$as_test_x
47675401
47685402 # Sed expression to map a string onto a valid CPP name.
47695403 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47725406 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47735407
47745408
4775 # IFS
4776 # We need space, tab and new line, in precisely that order.
4777 as_nl='
4778 '
4779 IFS=" $as_nl"
4780
4781 # CDPATH.
4782 $as_unset CDPATH
4783
47845409 exec 6>&1
47855410
4786 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5411 # Save the log message, to keep $[0] and so on meaningful, and to
47875412 # report actual input values of CONFIG_FILES etc. instead of their
4788 # values after options handling. Logging --version etc. is OK.
4789 exec 5>>config.log
4790 {
4791 echo
4792 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4793 ## Running $as_me. ##
4794 _ASBOX
4795 } >&5
4796 cat >&5 <<_CSEOF
4797
5413 # values after options handling.
5414 ac_log="
47985415 This file was extended by $as_me, which was
4799 generated by GNU Autoconf 2.59. Invocation command line was
5416 generated by GNU Autoconf 2.61. Invocation command line was
48005417
48015418 CONFIG_FILES = $CONFIG_FILES
48025419 CONFIG_HEADERS = $CONFIG_HEADERS
48045421 CONFIG_COMMANDS = $CONFIG_COMMANDS
48055422 $ $0 $@
48065423
4807 _CSEOF
4808 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4809 echo >&5
4810 _ACEOF
4811
5424 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5425 "
5426
5427 _ACEOF
5428
5429 cat >>$CONFIG_STATUS <<_ACEOF
48125430 # Files that config.status was made for.
4813 if test -n "$ac_config_files"; then
4814 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4815 fi
4816
4817 if test -n "$ac_config_headers"; then
4818 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4819 fi
4820
4821 if test -n "$ac_config_links"; then
4822 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4823 fi
4824
4825 if test -n "$ac_config_commands"; then
4826 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4827 fi
5431 config_files="$ac_config_files"
5432 config_headers="$ac_config_headers"
5433
5434 _ACEOF
48285435
48295436 cat >>$CONFIG_STATUS <<\_ACEOF
4830
48315437 ac_cs_usage="\
48325438 \`$as_me' instantiates files from templates according to the
48335439 current configuration.
48355441 Usage: $0 [OPTIONS] [FILE]...
48365442
48375443 -h, --help print this help, then exit
4838 -V, --version print version number, then exit
5444 -V, --version print version number and configuration settings, then exit
48395445 -q, --quiet do not print progress messages
48405446 -d, --debug don't remove temporary files
48415447 --recheck update $as_me by reconfiguring in the same conditions
48515457 $config_headers
48525458
48535459 Report bugs to <bug-autoconf@gnu.org>."
4854 _ACEOF
4855
5460
5461 _ACEOF
48565462 cat >>$CONFIG_STATUS <<_ACEOF
48575463 ac_cs_version="\\
48585464 config.status
4859 configured by $0, generated by GNU Autoconf 2.59,
4860 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4861
4862 Copyright (C) 2003 Free Software Foundation, Inc.
5465 configured by $0, generated by GNU Autoconf 2.61,
5466 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5467
5468 Copyright (C) 2006 Free Software Foundation, Inc.
48635469 This config.status script is free software; the Free Software Foundation
48645470 gives unlimited permission to copy, distribute and modify it."
4865 srcdir=$srcdir
4866 INSTALL="$INSTALL"
5471
5472 ac_pwd='$ac_pwd'
5473 srcdir='$srcdir'
5474 INSTALL='$INSTALL'
48675475 _ACEOF
48685476
48695477 cat >>$CONFIG_STATUS <<\_ACEOF
48745482 do
48755483 case $1 in
48765484 --*=*)
4877 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4878 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
48795487 ac_shift=:
48805488 ;;
4881 -*)
5489 *)
48825490 ac_option=$1
48835491 ac_optarg=$2
48845492 ac_shift=shift
48855493 ;;
4886 *) # This is not an option, so the user has probably given explicit
4887 # arguments.
4888 ac_option=$1
4889 ac_need_defaults=false;;
48905494 esac
48915495
48925496 case $ac_option in
48935497 # Handling of the options.
4894 _ACEOF
4895 cat >>$CONFIG_STATUS <<\_ACEOF
48965498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48975499 ac_cs_recheck=: ;;
4898 --version | --vers* | -V )
4899 echo "$ac_cs_version"; exit 0 ;;
4900 --he | --h)
4901 # Conflict between --help and --header
4902 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4903 Try \`$0 --help' for more information." >&5
4904 echo "$as_me: error: ambiguous option: $1
4905 Try \`$0 --help' for more information." >&2;}
4906 { (exit 1); exit 1; }; };;
4907 --help | --hel | -h )
4908 echo "$ac_cs_usage"; exit 0 ;;
4909 --debug | --d* | -d )
5500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5501 echo "$ac_cs_version"; exit ;;
5502 --debug | --debu | --deb | --de | --d | -d )
49105503 debug=: ;;
49115504 --file | --fil | --fi | --f )
49125505 $ac_shift
49165509 $ac_shift
49175510 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49185511 ac_need_defaults=false;;
5512 --he | --h)
5513 # Conflict between --help and --header
5514 { echo "$as_me: error: ambiguous option: $1
5515 Try \`$0 --help' for more information." >&2
5516 { (exit 1); exit 1; }; };;
5517 --help | --hel | -h )
5518 echo "$ac_cs_usage"; exit ;;
49195519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49205520 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49215521 ac_cs_silent=: ;;
49225522
49235523 # This is an error.
4924 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4925 Try \`$0 --help' for more information." >&5
4926 echo "$as_me: error: unrecognized option: $1
4927 Try \`$0 --help' for more information." >&2;}
5524 -*) { echo "$as_me: error: unrecognized option: $1
5525 Try \`$0 --help' for more information." >&2
49285526 { (exit 1); exit 1; }; } ;;
49295527
4930 *) ac_config_targets="$ac_config_targets $1" ;;
5528 *) ac_config_targets="$ac_config_targets $1"
5529 ac_need_defaults=false ;;
49315530
49325531 esac
49335532 shift
49435542 _ACEOF
49445543 cat >>$CONFIG_STATUS <<_ACEOF
49455544 if \$ac_cs_recheck; then
4946 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4947 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4948 fi
4949
4950 _ACEOF
4951
4952
4953
4954
4955
5545 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5546 CONFIG_SHELL=$SHELL
5547 export CONFIG_SHELL
5548 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5549 fi
5550
5551 _ACEOF
49565552 cat >>$CONFIG_STATUS <<\_ACEOF
5553 exec 5>>config.log
5554 {
5555 echo
5556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5557 ## Running $as_me. ##
5558 _ASBOX
5559 echo "$ac_log"
5560 } >&5
5561
5562 _ACEOF
5563 cat >>$CONFIG_STATUS <<_ACEOF
5564 _ACEOF
5565
5566 cat >>$CONFIG_STATUS <<\_ACEOF
5567
5568 # Handling of arguments.
49575569 for ac_config_target in $ac_config_targets
49585570 do
4959 case "$ac_config_target" in
4960 # Handling of arguments.
4961 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4962 "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
4963 "geo_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS geo_config.h" ;;
5571 case $ac_config_target in
5572 "geo_config.h") CONFIG_HEADERS="$CONFIG_HEADERS geo_config.h" ;;
5573 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5574 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
5575
49645576 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49655577 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49665578 { (exit 1); exit 1; }; };;
49675579 esac
49685580 done
5581
49695582
49705583 # If the user did not use the arguments to specify the items to instantiate,
49715584 # then the envvar interface is used. Set only those that are not.
49775590 fi
49785591
49795592 # Have a temporary directory for convenience. Make it in the build tree
4980 # simply because there is no reason to put it here, and in addition,
5593 # simply because there is no reason against having it here, and in addition,
49815594 # creating and moving files from /tmp can sometimes cause problems.
4982 # Create a temporary directory, and hook for its removal unless debugging.
5595 # Hook for its removal unless debugging.
5596 # Note that there is a small window in which the directory will not be cleaned:
5597 # after its creation but before its name has been assigned to `$tmp'.
49835598 $debug ||
49845599 {
4985 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5600 tmp=
5601 trap 'exit_status=$?
5602 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5603 ' 0
49865604 trap '{ (exit 1); exit 1; }' 1 2 13 15
49875605 }
4988
49895606 # Create a (secure) tmp directory for tmp files.
49905607
49915608 {
4992 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5609 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
49935610 test -n "$tmp" && test -d "$tmp"
49945611 } ||
49955612 {
4996 tmp=./confstat$$-$RANDOM
4997 (umask 077 && mkdir $tmp)
5613 tmp=./conf$$-$RANDOM
5614 (umask 077 && mkdir "$tmp")
49985615 } ||
49995616 {
50005617 echo "$me: cannot create a temporary directory in ." >&2
50015618 { (exit 1); exit 1; }
50025619 }
50035620
5004 _ACEOF
5005
5006 cat >>$CONFIG_STATUS <<_ACEOF
5007
50085621 #
5009 # CONFIG_FILES section.
5622 # Set up the sed scripts for CONFIG_FILES section.
50105623 #
50115624
50125625 # No need to generate the scripts if there are no CONFIG_FILES.
50135626 # This happens for instance when ./config.status config.h
5014 if test -n "\$CONFIG_FILES"; then
5015 # Protect against being on the right side of a sed subst in config.status.
5016 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5017 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5018 s,@SHELL@,$SHELL,;t t
5019 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5020 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5021 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5022 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5023 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5024 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5025 s,@exec_prefix@,$exec_prefix,;t t
5026 s,@prefix@,$prefix,;t t
5027 s,@program_transform_name@,$program_transform_name,;t t
5028 s,@bindir@,$bindir,;t t
5029 s,@sbindir@,$sbindir,;t t
5030 s,@libexecdir@,$libexecdir,;t t
5031 s,@datadir@,$datadir,;t t
5032 s,@sysconfdir@,$sysconfdir,;t t
5033 s,@sharedstatedir@,$sharedstatedir,;t t
5034 s,@localstatedir@,$localstatedir,;t t
5035 s,@libdir@,$libdir,;t t
5036 s,@includedir@,$includedir,;t t
5037 s,@oldincludedir@,$oldincludedir,;t t
5038 s,@infodir@,$infodir,;t t
5039 s,@mandir@,$mandir,;t t
5040 s,@build_alias@,$build_alias,;t t
5041 s,@host_alias@,$host_alias,;t t
5042 s,@target_alias@,$target_alias,;t t
5043 s,@DEFS@,$DEFS,;t t
5044 s,@ECHO_C@,$ECHO_C,;t t
5045 s,@ECHO_N@,$ECHO_N,;t t
5046 s,@ECHO_T@,$ECHO_T,;t t
5047 s,@LIBS@,$LIBS,;t t
5048 s,@build@,$build,;t t
5049 s,@build_cpu@,$build_cpu,;t t
5050 s,@build_vendor@,$build_vendor,;t t
5051 s,@build_os@,$build_os,;t t
5052 s,@host@,$host,;t t
5053 s,@host_cpu@,$host_cpu,;t t
5054 s,@host_vendor@,$host_vendor,;t t
5055 s,@host_os@,$host_os,;t t
5056 s,@target@,$target,;t t
5057 s,@target_cpu@,$target_cpu,;t t
5058 s,@target_vendor@,$target_vendor,;t t
5059 s,@target_os@,$target_os,;t t
5060 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
5061 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
5062 s,@VERSION_POINT@,$VERSION_POINT,;t t
5063 s,@CC@,$CC,;t t
5064 s,@CFLAGS@,$CFLAGS,;t t
5065 s,@LDFLAGS@,$LDFLAGS,;t t
5066 s,@CPPFLAGS@,$CPPFLAGS,;t t
5067 s,@ac_ct_CC@,$ac_ct_CC,;t t
5068 s,@EXEEXT@,$EXEEXT,;t t
5069 s,@OBJEXT@,$OBJEXT,;t t
5070 s,@CXX_WFLAGS@,$CXX_WFLAGS,;t t
5071 s,@C_WFLAGS@,$C_WFLAGS,;t t
5072 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5073 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5074 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5075 s,@LN_S@,$LN_S,;t t
5076 s,@RANLIB@,$RANLIB,;t t
5077 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5078 s,@CXX_PIC@,$CXX_PIC,;t t
5079 s,@C_PIC@,$C_PIC,;t t
5080 s,@LD_SHARED@,$LD_SHARED,;t t
5081 s,@SO_EXT@,$SO_EXT,;t t
5082 s,@GEOTIFF_SO@,$GEOTIFF_SO,;t t
5083 s,@GEOTIFF_IMP@,$GEOTIFF_IMP,;t t
5084 s,@GEOTIFF_DLL@,$GEOTIFF_DLL,;t t
5085 s,@CPP@,$CPP,;t t
5086 s,@EGREP@,$EGREP,;t t
5087 s,@ZIP_INC@,$ZIP_INC,;t t
5088 s,@TIFF_INC@,$TIFF_INC,;t t
5089 s,@PROJ_INC@,$PROJ_INC,;t t
5090 s,@CSV_SOURCE@,$CSV_SOURCE,;t t
5091 s,@LIBOBJS@,$LIBOBJS,;t t
5092 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5093 CEOF
5094
5095 _ACEOF
5096
5097 cat >>$CONFIG_STATUS <<\_ACEOF
5098 # Split the substitutions into bite-sized pieces for seds with
5099 # small command number limits, like on Digital OSF/1 and HP-UX.
5100 ac_max_sed_lines=48
5101 ac_sed_frag=1 # Number of current file.
5102 ac_beg=1 # First line for current file.
5103 ac_end=$ac_max_sed_lines # Line after last line for current file.
5104 ac_more_lines=:
5105 ac_sed_cmds=
5106 while $ac_more_lines; do
5107 if test $ac_beg -gt 1; then
5108 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5109 else
5110 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5627 if test -n "$CONFIG_FILES"; then
5628
5629 _ACEOF
5630
5631
5632
5633 ac_delim='%!_!# '
5634 for ac_last_try in false false false false false :; do
5635 cat >conf$$subs.sed <<_ACEOF
5636 SHELL!$SHELL$ac_delim
5637 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5638 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5639 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5640 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5641 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5642 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5643 exec_prefix!$exec_prefix$ac_delim
5644 prefix!$prefix$ac_delim
5645 program_transform_name!$program_transform_name$ac_delim
5646 bindir!$bindir$ac_delim
5647 sbindir!$sbindir$ac_delim
5648 libexecdir!$libexecdir$ac_delim
5649 datarootdir!$datarootdir$ac_delim
5650 datadir!$datadir$ac_delim
5651 sysconfdir!$sysconfdir$ac_delim
5652 sharedstatedir!$sharedstatedir$ac_delim
5653 localstatedir!$localstatedir$ac_delim
5654 includedir!$includedir$ac_delim
5655 oldincludedir!$oldincludedir$ac_delim
5656 docdir!$docdir$ac_delim
5657 infodir!$infodir$ac_delim
5658 htmldir!$htmldir$ac_delim
5659 dvidir!$dvidir$ac_delim
5660 pdfdir!$pdfdir$ac_delim
5661 psdir!$psdir$ac_delim
5662 libdir!$libdir$ac_delim
5663 localedir!$localedir$ac_delim
5664 mandir!$mandir$ac_delim
5665 DEFS!$DEFS$ac_delim
5666 ECHO_C!$ECHO_C$ac_delim
5667 ECHO_N!$ECHO_N$ac_delim
5668 ECHO_T!$ECHO_T$ac_delim
5669 LIBS!$LIBS$ac_delim
5670 build_alias!$build_alias$ac_delim
5671 host_alias!$host_alias$ac_delim
5672 target_alias!$target_alias$ac_delim
5673 build!$build$ac_delim
5674 build_cpu!$build_cpu$ac_delim
5675 build_vendor!$build_vendor$ac_delim
5676 build_os!$build_os$ac_delim
5677 host!$host$ac_delim
5678 host_cpu!$host_cpu$ac_delim
5679 host_vendor!$host_vendor$ac_delim
5680 host_os!$host_os$ac_delim
5681 target!$target$ac_delim
5682 target_cpu!$target_cpu$ac_delim
5683 target_vendor!$target_vendor$ac_delim
5684 target_os!$target_os$ac_delim
5685 VERSION_MAJOR!$VERSION_MAJOR$ac_delim
5686 VERSION_MINOR!$VERSION_MINOR$ac_delim
5687 VERSION_POINT!$VERSION_POINT$ac_delim
5688 CC!$CC$ac_delim
5689 CFLAGS!$CFLAGS$ac_delim
5690 LDFLAGS!$LDFLAGS$ac_delim
5691 CPPFLAGS!$CPPFLAGS$ac_delim
5692 ac_ct_CC!$ac_ct_CC$ac_delim
5693 EXEEXT!$EXEEXT$ac_delim
5694 OBJEXT!$OBJEXT$ac_delim
5695 CXX_WFLAGS!$CXX_WFLAGS$ac_delim
5696 C_WFLAGS!$C_WFLAGS$ac_delim
5697 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5698 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5699 INSTALL_DATA!$INSTALL_DATA$ac_delim
5700 LN_S!$LN_S$ac_delim
5701 RANLIB!$RANLIB$ac_delim
5702 CXX_PIC!$CXX_PIC$ac_delim
5703 C_PIC!$C_PIC$ac_delim
5704 LD_SHARED!$LD_SHARED$ac_delim
5705 SO_EXT!$SO_EXT$ac_delim
5706 GEOTIFF_SO!$GEOTIFF_SO$ac_delim
5707 GEOTIFF_IMP!$GEOTIFF_IMP$ac_delim
5708 GEOTIFF_DLL!$GEOTIFF_DLL$ac_delim
5709 CPP!$CPP$ac_delim
5710 GREP!$GREP$ac_delim
5711 EGREP!$EGREP$ac_delim
5712 ZIP_INC!$ZIP_INC$ac_delim
5713 TIFF_INC!$TIFF_INC$ac_delim
5714 PROJ_INC!$PROJ_INC$ac_delim
5715 CSV_SOURCE!$CSV_SOURCE$ac_delim
5716 LIBOBJS!$LIBOBJS$ac_delim
5717 LTLIBOBJS!$LTLIBOBJS$ac_delim
5718 _ACEOF
5719
5720 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
5721 break
5722 elif $ac_last_try; then
5723 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5724 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5725 { (exit 1); exit 1; }; }
5726 else
5727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5728 fi
5729 done
5730
5731 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5732 if test -n "$ac_eof"; then
5733 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5734 ac_eof=`expr $ac_eof + 1`
5735 fi
5736
5737 cat >>$CONFIG_STATUS <<_ACEOF
5738 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5740 _ACEOF
5741 sed '
5742 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5743 s/^/s,@/; s/!/@,|#_!!_#|/
5744 :n
5745 t n
5746 s/'"$ac_delim"'$/,g/; t
5747 s/$/\\/; p
5748 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5749 ' >>$CONFIG_STATUS <conf$$subs.sed
5750 rm -f conf$$subs.sed
5751 cat >>$CONFIG_STATUS <<_ACEOF
5752 :end
5753 s/|#_!!_#|//g
5754 CEOF$ac_eof
5755 _ACEOF
5756
5757
5758 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5759 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5760 # trailing colons and then remove the whole line if VPATH becomes empty
5761 # (actually we leave an empty line to preserve line numbers).
5762 if test "x$srcdir" = x.; then
5763 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5764 s/:*\$(srcdir):*/:/
5765 s/:*\${srcdir}:*/:/
5766 s/:*@srcdir@:*/:/
5767 s/^\([^=]*=[ ]*\):*/\1/
5768 s/:*$//
5769 s/^[^=]*=[ ]*$//
5770 }'
5771 fi
5772
5773 cat >>$CONFIG_STATUS <<\_ACEOF
5774 fi # test -n "$CONFIG_FILES"
5775
5776
5777 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
5778 do
5779 case $ac_tag in
5780 :[FHLC]) ac_mode=$ac_tag; continue;;
5781 esac
5782 case $ac_mode$ac_tag in
5783 :[FHL]*:*);;
5784 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5785 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5786 { (exit 1); exit 1; }; };;
5787 :[FH]-) ac_tag=-:-;;
5788 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5789 esac
5790 ac_save_IFS=$IFS
5791 IFS=:
5792 set x $ac_tag
5793 IFS=$ac_save_IFS
5794 shift
5795 ac_file=$1
5796 shift
5797
5798 case $ac_mode in
5799 :L) ac_source=$1;;
5800 :[FH])
5801 ac_file_inputs=
5802 for ac_f
5803 do
5804 case $ac_f in
5805 -) ac_f="$tmp/stdin";;
5806 *) # Look for the file first in the build tree, then in the source tree
5807 # (if the path is not absolute). The absolute path cannot be DOS-style,
5808 # because $ac_f cannot contain `:'.
5809 test -f "$ac_f" ||
5810 case $ac_f in
5811 [\\/$]*) false;;
5812 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5813 esac ||
5814 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5815 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5816 { (exit 1); exit 1; }; };;
5817 esac
5818 ac_file_inputs="$ac_file_inputs $ac_f"
5819 done
5820
5821 # Let's still pretend it is `configure' which instantiates (i.e., don't
5822 # use $as_me), people would be surprised to read:
5823 # /* config.h. Generated by config.status. */
5824 configure_input="Generated from "`IFS=:
5825 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5826 if test x"$ac_file" != x-; then
5827 configure_input="$ac_file. $configure_input"
5828 { echo "$as_me:$LINENO: creating $ac_file" >&5
5829 echo "$as_me: creating $ac_file" >&6;}
51115830 fi
5112 if test ! -s $tmp/subs.frag; then
5113 ac_more_lines=false
5114 else
5115 # The purpose of the label and of the branching condition is to
5116 # speed up the sed processing (if there are no `@' at all, there
5117 # is no need to browse any of the substitutions).
5118 # These are the two extra sed commands mentioned above.
5119 (echo ':t
5120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5121 if test -z "$ac_sed_cmds"; then
5122 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5123 else
5124 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5125 fi
5126 ac_sed_frag=`expr $ac_sed_frag + 1`
5127 ac_beg=$ac_end
5128 ac_end=`expr $ac_end + $ac_max_sed_lines`
5129 fi
5130 done
5131 if test -z "$ac_sed_cmds"; then
5132 ac_sed_cmds=cat
5133 fi
5134 fi # test -n "$CONFIG_FILES"
5135
5136 _ACEOF
5137 cat >>$CONFIG_STATUS <<\_ACEOF
5138 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5140 case $ac_file in
5141 - | *:- | *:-:* ) # input from stdin
5142 cat >$tmp/stdin
5143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5147 * ) ac_file_in=$ac_file.in ;;
5831
5832 case $ac_tag in
5833 *:-:* | *:-) cat >"$tmp/stdin";;
5834 esac
5835 ;;
51485836 esac
51495837
5150 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5151 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5838 ac_dir=`$as_dirname -- "$ac_file" ||
51525839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51535840 X"$ac_file" : 'X\(//\)[^/]' \| \
51545841 X"$ac_file" : 'X\(//\)$' \| \
5155 X"$ac_file" : 'X\(/\)' \| \
5156 . : '\(.\)' 2>/dev/null ||
5842 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51575843 echo X"$ac_file" |
5158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5160 /^X\(\/\/\)$/{ s//\1/; q; }
5161 /^X\(\/\).*/{ s//\1/; q; }
5162 s/.*/./; q'`
5163 { if $as_mkdir_p; then
5164 mkdir -p "$ac_dir"
5165 else
5166 as_dir="$ac_dir"
5844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5845 s//\1/
5846 q
5847 }
5848 /^X\(\/\/\)[^/].*/{
5849 s//\1/
5850 q
5851 }
5852 /^X\(\/\/\)$/{
5853 s//\1/
5854 q
5855 }
5856 /^X\(\/\).*/{
5857 s//\1/
5858 q
5859 }
5860 s/.*/./; q'`
5861 { as_dir="$ac_dir"
5862 case $as_dir in #(
5863 -*) as_dir=./$as_dir;;
5864 esac
5865 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
51675866 as_dirs=
5168 while test ! -d "$as_dir"; do
5169 as_dirs="$as_dir $as_dirs"
5170 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5867 while :; do
5868 case $as_dir in #(
5869 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5870 *) as_qdir=$as_dir;;
5871 esac
5872 as_dirs="'$as_qdir' $as_dirs"
5873 as_dir=`$as_dirname -- "$as_dir" ||
51715874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51725875 X"$as_dir" : 'X\(//\)[^/]' \| \
51735876 X"$as_dir" : 'X\(//\)$' \| \
5174 X"$as_dir" : 'X\(/\)' \| \
5175 . : '\(.\)' 2>/dev/null ||
5877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51765878 echo X"$as_dir" |
5177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5179 /^X\(\/\/\)$/{ s//\1/; q; }
5180 /^X\(\/\).*/{ s//\1/; q; }
5181 s/.*/./; q'`
5879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5880 s//\1/
5881 q
5882 }
5883 /^X\(\/\/\)[^/].*/{
5884 s//\1/
5885 q
5886 }
5887 /^X\(\/\/\)$/{
5888 s//\1/
5889 q
5890 }
5891 /^X\(\/\).*/{
5892 s//\1/
5893 q
5894 }
5895 s/.*/./; q'`
5896 test -d "$as_dir" && break
51825897 done
5183 test ! -n "$as_dirs" || mkdir $as_dirs
5184 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5185 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5898 test -z "$as_dirs" || eval "mkdir $as_dirs"
5899 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5900 echo "$as_me: error: cannot create directory $as_dir" >&2;}
51865901 { (exit 1); exit 1; }; }; }
5187
51885902 ac_builddir=.
51895903
5190 if test "$ac_dir" != .; then
5904 case "$ac_dir" in
5905 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5906 *)
51915907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5192 # A "../" for each directory in $ac_dir_suffix.
5193 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5194 else
5195 ac_dir_suffix= ac_top_builddir=
5196 fi
5908 # A ".." for each directory in $ac_dir_suffix.
5909 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5910 case $ac_top_builddir_sub in
5911 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5912 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5913 esac ;;
5914 esac
5915 ac_abs_top_builddir=$ac_pwd
5916 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5917 # for backward compatibility:
5918 ac_top_builddir=$ac_top_build_prefix
51975919
51985920 case $srcdir in
5199 .) # No --srcdir option. We are building in place.
5921 .) # We are building in place.
52005922 ac_srcdir=.
5201 if test -z "$ac_top_builddir"; then
5202 ac_top_srcdir=.
5203 else
5204 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5205 fi ;;
5206 [\\/]* | ?:[\\/]* ) # Absolute path.
5923 ac_top_srcdir=$ac_top_builddir_sub
5924 ac_abs_top_srcdir=$ac_pwd ;;
5925 [\\/]* | ?:[\\/]* ) # Absolute name.
52075926 ac_srcdir=$srcdir$ac_dir_suffix;
5208 ac_top_srcdir=$srcdir ;;
5209 *) # Relative path.
5210 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5211 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5927 ac_top_srcdir=$srcdir
5928 ac_abs_top_srcdir=$srcdir ;;
5929 *) # Relative name.
5930 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5931 ac_top_srcdir=$ac_top_build_prefix$srcdir
5932 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52125933 esac
5213
5214 # Do not use `cd foo && pwd` to compute absolute paths, because
5215 # the directories may not exist.
5216 case `pwd` in
5217 .) ac_abs_builddir="$ac_dir";;
5218 *)
5219 case "$ac_dir" in
5220 .) ac_abs_builddir=`pwd`;;
5221 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5222 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5223 esac;;
5224 esac
5225 case $ac_abs_builddir in
5226 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5227 *)
5228 case ${ac_top_builddir}. in
5229 .) ac_abs_top_builddir=$ac_abs_builddir;;
5230 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5231 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5232 esac;;
5233 esac
5234 case $ac_abs_builddir in
5235 .) ac_abs_srcdir=$ac_srcdir;;
5236 *)
5237 case $ac_srcdir in
5238 .) ac_abs_srcdir=$ac_abs_builddir;;
5239 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5240 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5241 esac;;
5242 esac
5243 case $ac_abs_builddir in
5244 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5245 *)
5246 case $ac_top_srcdir in
5247 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5248 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5249 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5250 esac;;
5251 esac
5252
5934 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5935
5936
5937 case $ac_mode in
5938 :F)
5939 #
5940 # CONFIG_FILE
5941 #
52535942
52545943 case $INSTALL in
52555944 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5256 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5945 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52575946 esac
5258
5259 # Let's still pretend it is `configure' which instantiates (i.e., don't
5260 # use $as_me), people would be surprised to read:
5261 # /* config.h. Generated by config.status. */
5262 if test x"$ac_file" = x-; then
5263 configure_input=
5264 else
5265 configure_input="$ac_file. "
5266 fi
5267 configure_input=$configure_input"Generated from `echo $ac_file_in |
5268 sed 's,.*/,,'` by configure."
5269
5270 # First look for the input files in the build tree, otherwise in the
5271 # src tree.
5272 ac_file_inputs=`IFS=:
5273 for f in $ac_file_in; do
5274 case $f in
5275 -) echo $tmp/stdin ;;
5276 [\\/$]*)
5277 # Absolute (can't be DOS-style, as IFS=:)
5278 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5279 echo "$as_me: error: cannot find input file: $f" >&2;}
5280 { (exit 1); exit 1; }; }
5281 echo "$f";;
5282 *) # Relative
5283 if test -f "$f"; then
5284 # Build tree
5285 echo "$f"
5286 elif test -f "$srcdir/$f"; then
5287 # Source tree
5288 echo "$srcdir/$f"
5289 else
5290 # /dev/null tree
5291 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5292 echo "$as_me: error: cannot find input file: $f" >&2;}
5293 { (exit 1); exit 1; }; }
5294 fi;;
5295 esac
5296 done` || { (exit 1); exit 1; }
5297
5298 if test x"$ac_file" != x-; then
5299 { echo "$as_me:$LINENO: creating $ac_file" >&5
5300 echo "$as_me: creating $ac_file" >&6;}
5301 rm -f "$ac_file"
5302 fi
5303 _ACEOF
5947 _ACEOF
5948
5949 cat >>$CONFIG_STATUS <<\_ACEOF
5950 # If the template does not know about datarootdir, expand it.
5951 # FIXME: This hack should be removed a few years after 2.60.
5952 ac_datarootdir_hack=; ac_datarootdir_seen=
5953
5954 case `sed -n '/datarootdir/ {
5955 p
5956 q
5957 }
5958 /@datadir@/p
5959 /@docdir@/p
5960 /@infodir@/p
5961 /@localedir@/p
5962 /@mandir@/p
5963 ' $ac_file_inputs` in
5964 *datarootdir*) ac_datarootdir_seen=yes;;
5965 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5966 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5967 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5968 _ACEOF
5969 cat >>$CONFIG_STATUS <<_ACEOF
5970 ac_datarootdir_hack='
5971 s&@datadir@&$datadir&g
5972 s&@docdir@&$docdir&g
5973 s&@infodir@&$infodir&g
5974 s&@localedir@&$localedir&g
5975 s&@mandir@&$mandir&g
5976 s&\\\${datarootdir}&$datarootdir&g' ;;
5977 esac
5978 _ACEOF
5979
5980 # Neutralize VPATH when `$srcdir' = `.'.
5981 # Shell code in configure.ac might set extrasub.
5982 # FIXME: do we really want to maintain this feature?
53045983 cat >>$CONFIG_STATUS <<_ACEOF
53055984 sed "$ac_vpsub
53065985 $extrasub
53085987 cat >>$CONFIG_STATUS <<\_ACEOF
53095988 :t
53105989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5311 s,@configure_input@,$configure_input,;t t
5312 s,@srcdir@,$ac_srcdir,;t t
5313 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5314 s,@top_srcdir@,$ac_top_srcdir,;t t
5315 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5316 s,@builddir@,$ac_builddir,;t t
5317 s,@abs_builddir@,$ac_abs_builddir,;t t
5318 s,@top_builddir@,$ac_top_builddir,;t t
5319 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5320 s,@INSTALL@,$ac_INSTALL,;t t
5321 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5322 rm -f $tmp/stdin
5323 if test x"$ac_file" != x-; then
5324 mv $tmp/out $ac_file
5325 else
5326 cat $tmp/out
5327 rm -f $tmp/out
5328 fi
5329
5330 done
5331 _ACEOF
5332 cat >>$CONFIG_STATUS <<\_ACEOF
5333
5334 #
5335 # CONFIG_HEADER section.
5336 #
5337
5338 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5339 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5340 #
5341 # ac_d sets the value in "#define NAME VALUE" lines.
5342 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5343 ac_dB='[ ].*$,\1#\2'
5990 s&@configure_input@&$configure_input&;t t
5991 s&@top_builddir@&$ac_top_builddir_sub&;t t
5992 s&@srcdir@&$ac_srcdir&;t t
5993 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5994 s&@top_srcdir@&$ac_top_srcdir&;t t
5995 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5996 s&@builddir@&$ac_builddir&;t t
5997 s&@abs_builddir@&$ac_abs_builddir&;t t
5998 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5999 s&@INSTALL@&$ac_INSTALL&;t t
6000 $ac_datarootdir_hack
6001 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6002
6003 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6004 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6005 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6006 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6007 which seems to be undefined. Please make sure it is defined." >&5
6008 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6009 which seems to be undefined. Please make sure it is defined." >&2;}
6010
6011 rm -f "$tmp/stdin"
6012 case $ac_file in
6013 -) cat "$tmp/out"; rm -f "$tmp/out";;
6014 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6015 esac
6016 ;;
6017 :H)
6018 #
6019 # CONFIG_HEADER
6020 #
6021 _ACEOF
6022
6023 # Transform confdefs.h into a sed script `conftest.defines', that
6024 # substitutes the proper values into config.h.in to produce config.h.
6025 rm -f conftest.defines conftest.tail
6026 # First, append a space to every undef/define line, to ease matching.
6027 echo 's/$/ /' >conftest.defines
6028 # Then, protect against being on the right side of a sed subst, or in
6029 # an unquoted here document, in config.status. If some macros were
6030 # called several times there might be several #defines for the same
6031 # symbol, which is useless. But do not sort them, since the last
6032 # AC_DEFINE must be honored.
6033 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6034 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6035 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6036 # PARAMS is the parameter list in the macro definition--in most cases, it's
6037 # just an empty string.
6038 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6039 ac_dB='\\)[ (].*,\\1define\\2'
53446040 ac_dC=' '
5345 ac_dD=',;t'
5346 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5347 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5348 ac_uB='$,\1#\2define\3'
5349 ac_uC=' '
5350 ac_uD=',;t'
5351
5352 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5354 case $ac_file in
5355 - | *:- | *:-:* ) # input from stdin
5356 cat >$tmp/stdin
5357 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5358 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5359 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5361 * ) ac_file_in=$ac_file.in ;;
5362 esac
5363
5364 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5365 echo "$as_me: creating $ac_file" >&6;}
5366
5367 # First look for the input files in the build tree, otherwise in the
5368 # src tree.
5369 ac_file_inputs=`IFS=:
5370 for f in $ac_file_in; do
5371 case $f in
5372 -) echo $tmp/stdin ;;
5373 [\\/$]*)
5374 # Absolute (can't be DOS-style, as IFS=:)
5375 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5376 echo "$as_me: error: cannot find input file: $f" >&2;}
5377 { (exit 1); exit 1; }; }
5378 # Do quote $f, to prevent DOS paths from being IFS'd.
5379 echo "$f";;
5380 *) # Relative
5381 if test -f "$f"; then
5382 # Build tree
5383 echo "$f"
5384 elif test -f "$srcdir/$f"; then
5385 # Source tree
5386 echo "$srcdir/$f"
5387 else
5388 # /dev/null tree
5389 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5390 echo "$as_me: error: cannot find input file: $f" >&2;}
5391 { (exit 1); exit 1; }; }
5392 fi;;
5393 esac
5394 done` || { (exit 1); exit 1; }
5395 # Remove the trailing spaces.
5396 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5397
5398 _ACEOF
5399
5400 # Transform confdefs.h into two sed scripts, `conftest.defines' and
5401 # `conftest.undefs', that substitutes the proper values into
5402 # config.h.in to produce config.h. The first handles `#define'
5403 # templates, and the second `#undef' templates.
5404 # And first: Protect against being on the right side of a sed subst in
5405 # config.status. Protect against being in an unquoted here document
5406 # in config.status.
5407 rm -f conftest.defines conftest.undefs
5408 # Using a here document instead of a string reduces the quoting nightmare.
5409 # Putting comments in sed scripts is not portable.
5410 #
5411 # `end' is used to avoid that the second main sed command (meant for
5412 # 0-ary CPP macros) applies to n-ary macro definitions.
5413 # See the Autoconf documentation for `clear'.
5414 cat >confdef2sed.sed <<\_ACEOF
5415 s/[\\&,]/\\&/g
5416 s,[\\$`],\\&,g
5417 t clear
5418 : clear
5419 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5420 t end
5421 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5422 : end
5423 _ACEOF
5424 # If some macros were called several times there might be several times
5425 # the same #defines, which is useless. Nevertheless, we may not want to
5426 # sort them, since we want the *last* AC-DEFINE to be honored.
5427 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5428 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5429 rm -f confdef2sed.sed
5430
5431 # This sed command replaces #undef with comments. This is necessary, for
6041 ac_dD=' ,'
6042
6043 uniq confdefs.h |
6044 sed -n '
6045 t rset
6046 :rset
6047 s/^[ ]*#[ ]*define[ ][ ]*//
6048 t ok
6049 d
6050 :ok
6051 s/[\\&,]/\\&/g
6052 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6053 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6054 ' >>conftest.defines
6055
6056 # Remove the space that was appended to ease matching.
6057 # Then replace #undef with comments. This is necessary, for
54326058 # example, in the case of _POSIX_SOURCE, which is predefined and required
54336059 # on some systems where configure will not decide to define it.
5434 cat >>conftest.undefs <<\_ACEOF
5435 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5436 _ACEOF
5437
5438 # Break up conftest.defines because some shells have a limit on the size
5439 # of here documents, and old seds have small limits too (100 cmds).
5440 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5441 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5442 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5443 echo ' :' >>$CONFIG_STATUS
5444 rm -f conftest.tail
5445 while grep . conftest.defines >/dev/null
6060 # (The regexp can be short, since the line contains either #define or #undef.)
6061 echo 's/ $//
6062 s,^[ #]*u.*,/* & */,' >>conftest.defines
6063
6064 # Break up conftest.defines:
6065 ac_max_sed_lines=50
6066
6067 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6068 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6069 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6070 # et cetera.
6071 ac_in='$ac_file_inputs'
6072 ac_out='"$tmp/out1"'
6073 ac_nxt='"$tmp/out2"'
6074
6075 while :
54466076 do
5447 # Write a limited-size here document to $tmp/defines.sed.
5448 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5449 # Speed up: don't consider the non `#define' lines.
5450 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5451 # Work around the forget-to-reset-the-flag bug.
5452 echo 't clr' >>$CONFIG_STATUS
5453 echo ': clr' >>$CONFIG_STATUS
5454 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6077 # Write a here document:
6078 cat >>$CONFIG_STATUS <<_ACEOF
6079 # First, check the format of the line:
6080 cat >"\$tmp/defines.sed" <<\\CEOF
6081 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6082 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6083 b
6084 :def
6085 _ACEOF
6086 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54556087 echo 'CEOF
5456 sed -f $tmp/defines.sed $tmp/in >$tmp/out
5457 rm -f $tmp/in
5458 mv $tmp/out $tmp/in
5459 ' >>$CONFIG_STATUS
5460 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6088 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6089 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6090 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6091 grep . conftest.tail >/dev/null || break
54616092 rm -f conftest.defines
54626093 mv conftest.tail conftest.defines
54636094 done
5464 rm -f conftest.defines
5465 echo ' fi # grep' >>$CONFIG_STATUS
5466 echo >>$CONFIG_STATUS
5467
5468 # Break up conftest.undefs because some shells have a limit on the size
5469 # of here documents, and old seds have small limits too (100 cmds).
5470 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5471 rm -f conftest.tail
5472 while grep . conftest.undefs >/dev/null
5473 do
5474 # Write a limited-size here document to $tmp/undefs.sed.
5475 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5476 # Speed up: don't consider the non `#undef'
5477 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5478 # Work around the forget-to-reset-the-flag bug.
5479 echo 't clr' >>$CONFIG_STATUS
5480 echo ': clr' >>$CONFIG_STATUS
5481 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5482 echo 'CEOF
5483 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5484 rm -f $tmp/in
5485 mv $tmp/out $tmp/in
5486 ' >>$CONFIG_STATUS
5487 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5488 rm -f conftest.undefs
5489 mv conftest.tail conftest.undefs
5490 done
5491 rm -f conftest.undefs
5492
6095 rm -f conftest.defines conftest.tail
6096
6097 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54936098 cat >>$CONFIG_STATUS <<\_ACEOF
5494 # Let's still pretend it is `configure' which instantiates (i.e., don't
5495 # use $as_me), people would be surprised to read:
5496 # /* config.h. Generated by config.status. */
5497 if test x"$ac_file" = x-; then
5498 echo "/* Generated by configure. */" >$tmp/config.h
5499 else
5500 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5501 fi
5502 cat $tmp/in >>$tmp/config.h
5503 rm -f $tmp/in
55046099 if test x"$ac_file" != x-; then
5505 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6100 echo "/* $configure_input */" >"$tmp/config.h"
6101 cat "$ac_result" >>"$tmp/config.h"
6102 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
55066103 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55076104 echo "$as_me: $ac_file is unchanged" >&6;}
55086105 else
5509 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5511 X"$ac_file" : 'X\(//\)[^/]' \| \
5512 X"$ac_file" : 'X\(//\)$' \| \
5513 X"$ac_file" : 'X\(/\)' \| \
5514 . : '\(.\)' 2>/dev/null ||
5515 echo X"$ac_file" |
5516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5517 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5518 /^X\(\/\/\)$/{ s//\1/; q; }
5519 /^X\(\/\).*/{ s//\1/; q; }
5520 s/.*/./; q'`
5521 { if $as_mkdir_p; then
5522 mkdir -p "$ac_dir"
5523 else
5524 as_dir="$ac_dir"
5525 as_dirs=
5526 while test ! -d "$as_dir"; do
5527 as_dirs="$as_dir $as_dirs"
5528 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5530 X"$as_dir" : 'X\(//\)[^/]' \| \
5531 X"$as_dir" : 'X\(//\)$' \| \
5532 X"$as_dir" : 'X\(/\)' \| \
5533 . : '\(.\)' 2>/dev/null ||
5534 echo X"$as_dir" |
5535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5537 /^X\(\/\/\)$/{ s//\1/; q; }
5538 /^X\(\/\).*/{ s//\1/; q; }
5539 s/.*/./; q'`
5540 done
5541 test ! -n "$as_dirs" || mkdir $as_dirs
5542 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5543 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5544 { (exit 1); exit 1; }; }; }
5545
55466106 rm -f $ac_file
5547 mv $tmp/config.h $ac_file
6107 mv "$tmp/config.h" $ac_file
55486108 fi
55496109 else
5550 cat $tmp/config.h
5551 rm -f $tmp/config.h
6110 echo "/* $configure_input */"
6111 cat "$ac_result"
55526112 fi
5553 done
5554 _ACEOF
5555
5556 cat >>$CONFIG_STATUS <<\_ACEOF
6113 rm -f "$tmp/out12"
6114 ;;
6115
6116
6117 esac
6118
6119 done # for ac_tag
6120
55576121
55586122 { (exit 0); exit 0; }
55596123 _ACEOF
55
66 VERSION_MAJOR=1
77 VERSION_MINOR=2
8 VERSION_POINT=4
8 VERSION_POINT=5
99 AC_SUBST(VERSION_MAJOR,$VERSION_MAJOR)
1010 AC_SUBST(VERSION_MINOR,$VERSION_MINOR)
1111 AC_SUBST(VERSION_POINT,$VERSION_POINT)
0 libgeotiff-dfsg (1.2.4-5) unstable; urgency=low
0 libgeotiff-dfsg (1.2.5-1) unstable; urgency=low
11
2 * NOT RELEASED.
3 * New upstream release
24 * Policy bumped to 3.8.0.
35 * Debhelper compatibility set to 7.
46 * Minor cleanups in debian/rules.
57
6 -- Francesco Paolo Lovergine <frankie@debian.org> Thu, 19 Feb 2009 19:09:43 +0100
8 -- Francesco Paolo Lovergine <frankie@debian.org> Wed, 25 Mar 2009 13:44:01 +0100
79
810 libgeotiff-dfsg (1.2.4-4) unstable; urgency=high
911
6565
6666 struct gtiff {
6767 tiff_t* gt_tif; /* TIFF file descriptor */
68 TIFFMethod gt_methods; /* TIFF i/o methods */
68 struct _TIFFMethod gt_methods; /* TIFF i/o methods */
6969 int gt_flags; /* file flags */
7070
7171 pinfo_t gt_version; /* GeoTIFF Version */
1212 * 7 July, 1995 Greg Martin Fix index
1313 *
1414 * $Log: geo_new.c,v $
15 * Revision 1.14 2008/05/09 18:37:46 fwarmerdam
16 * add support for simple tags api
17 *
18 * Revision 1.13 2007/10/03 04:08:03 fwarmerdam
19 * avoid memory leak in case of error
20 *
1521 * Revision 1.12 2006/06/26 20:03:37 fwarmerdam
1622 * If the ascii parameters list is too short for the declared size
1723 * of an ascii parameter, but it doesn't start off the end of the
3642 #include "geotiffio.h" /* public interface */
3743 #include "geo_tiffp.h" /* external TIFF interface */
3844 #include "geo_keyp.h" /* private interface */
45 #include "geo_simpletags.h"
3946
4047 /* private local routines */
4148 static int ReadKey(GTIF* gt, TempKeyData* tempData,
6875 for new TIFF files that will have GeoTIFF tags written to them.<p>
6976
7077 */
71
78
7279 GTIF* GTIFNew(void *tif)
80
81 {
82 TIFFMethod default_methods;
83 _GTIFSetDefaultTIFF( &default_methods );
84
85 return GTIFNewWithMethods( tif, &default_methods );
86 }
87
88 GTIF *GTIFNewSimpleTags( void *tif )
89
90 {
91 TIFFMethod default_methods;
92 GTIFSetSimpleTagsMethods( &default_methods );
93
94 return GTIFNewWithMethods( tif, &default_methods );
95 }
96
97 /************************************************************************/
98 /* GTIFNewWithMethods() */
99 /* */
100 /* Create a new geotiff, passing in the methods structure to */
101 /* support not libtiff implementations without replacing the */
102 /* default methods. */
103 /************************************************************************/
104
105 GTIF* GTIFNewWithMethods(void *tif, TIFFMethod* methods)
73106 {
74107 GTIF* gt=(GTIF*)0;
75108 int count,bufcount,index;
78111 KeyEntry *entptr;
79112 KeyHeader *header;
80113 TempKeyData tempData;
81
114
115 memset( &tempData, 0, sizeof(tempData) );
82116 gt = (GTIF*)_GTIFcalloc( sizeof(GTIF));
83117 if (!gt) goto failure;
84118
85119 /* install TIFF file and I/O methods */
86120 gt->gt_tif = (tiff_t *)tif;
87 _GTIFSetDefaultTIFF(&gt->gt_methods);
88
89 tempData.tk_asciiParams = 0;
90 tempData.tk_asciiParamsLength = 0;
91 tempData.tk_asciiParamsOffset = 0;
92
121 memcpy( &gt->gt_methods, methods, sizeof(TIFFMethod) );
122
93123 /* since this is an array, GTIF will allocate the memory */
94124 if ( tif == NULL
95125 || !(gt->gt_methods.get)(tif, GTIFF_GEOKEYDIRECTORY, &gt->gt_nshorts, &data ))
170200
171201 failure:
172202 /* Notify of error */
203 if( tempData.tk_asciiParams != NULL )
204 _GTIFFree( tempData.tk_asciiParams );
173205 GTIFFree (gt);
174206 return (GTIF *)0;
175207 }
00 /******************************************************************************
1 * $Id: geo_normalize.c,v 1.50 2007/07/28 13:55:21 fwarmerdam Exp $
1 * $Id: geo_normalize.c,v 1.53 2008/07/03 18:36:31 fwarmerdam Exp $
22 *
33 * Project: libgeotiff
44 * Purpose: Code to normalize PCS and other composite codes in a GeoTIFF file.
2727 ******************************************************************************
2828 *
2929 * $Log: geo_normalize.c,v $
30 * Revision 1.53 2008/07/03 18:36:31 fwarmerdam
31 * Fix potential buffer overflow in GTIFAngleStringToDD.
32 * http://trac.osgeo.org/gdal/ticket/2228
33 *
34 * Revision 1.52 2008/01/31 19:47:57 fwarmerdam
35 * Ignore GCS values less than 1 as a sanity measure
36 *
37 * Revision 1.51 2007/12/11 17:58:34 fwarmerdam
38 * Add EPSG 9822 (Albers Equal Area) support from EPSG
39 *
3040 * Revision 1.50 2007/07/28 13:55:21 fwarmerdam
3141 * Fix name for GCS_WGS_72 per gdal bug #1715.
3242 *
406416 {
407417 szSeconds[1] = pszDecimal[4];
408418 szSeconds[2] = '.';
409 strcpy( szSeconds+3, pszDecimal + 5 );
419 strncpy( szSeconds+3, pszDecimal + 5, sizeof(szSeconds) - 3 );
420 szSeconds[sizeof(szSeconds) - 1] = 0;
410421 }
411422 else
412423 {
11301141
11311142 case 9816: /* tunesia mining grid has no counterpart */
11321143 return( KvUserDefined );
1144
1145 case 9822:
1146 return( CT_AlbersEqualArea );
11331147 }
11341148
11351149 return( KvUserDefined );
12441258 panEPSGCodes[6] = EPSGFalseOriginNorthing;
12451259 return TRUE;
12461260
1261 case CT_AlbersEqualArea:
1262 panProjParmId[0] = ProjStdParallel1GeoKey;
1263 panProjParmId[1] = ProjStdParallel2GeoKey;
1264 panProjParmId[2] = ProjNatOriginLatGeoKey;
1265 panProjParmId[3] = ProjNatOriginLongGeoKey;
1266 panProjParmId[5] = ProjFalseEastingGeoKey;
1267 panProjParmId[6] = ProjFalseNorthingGeoKey;
1268
1269 panEPSGCodes[0] = EPSGStdParallel1Lat;
1270 panEPSGCodes[1] = EPSGStdParallel2Lat;
1271 panEPSGCodes[2] = EPSGFalseOriginLat;
1272 panEPSGCodes[3] = EPSGFalseOriginLong;
1273 panEPSGCodes[5] = EPSGFalseOriginEasting;
1274 panEPSGCodes[6] = EPSGFalseOriginNorthing;
1275 return TRUE;
1276
12471277 case CT_SwissObliqueCylindrical:
12481278 panProjParmId[0] = ProjCenterLatGeoKey;
12491279 panProjParmId[1] = ProjCenterLongGeoKey;
20742104 /* the PCS. */
20752105 /* -------------------------------------------------------------------- */
20762106 GTIFKeyGet(psGTIF, GeographicTypeGeoKey, &(psDefn->GCS), 0, 1 );
2107 if( psDefn->GCS < 1 || psDefn->GCS >= KvUserDefined )
2108 psDefn->GCS = KvUserDefined;
20772109
20782110 /* -------------------------------------------------------------------- */
20792111 /* Derive the datum, and prime meridian from the GCS. */
00 /******************************************************************************
1 * $Id: geo_normalize.h,v 1.12 2005/08/26 16:08:14 fwarmerdam Exp $
1 * $Id: geo_normalize.h,v 1.13 2008/05/21 04:12:57 fwarmerdam Exp $
22 *
33 * Project: libgeotiff
44 * Purpose: Include file related to geo_normalize.c containing Code to
2828 ******************************************************************************
2929 *
3030 * $Log: geo_normalize.h,v $
31 * Revision 1.13 2008/05/21 04:12:57 fwarmerdam
32 * added preliminary GTIFSetFromProj4() support
33 *
3134 * Revision 1.12 2005/08/26 16:08:14 fwarmerdam
3235 * Include void in empty argument list for prototype.
3336 *
223226 * These are only useful if using libgeotiff with libproj (PROJ.4+).
224227 */
225228 char CPL_DLL *GTIFGetProj4Defn( GTIFDefn * );
229
226230 int CPL_DLL GTIFProj4ToLatLong( GTIFDefn *, int, double *, double * );
227231 int CPL_DLL GTIFProj4FromLatLong( GTIFDefn *, int, double *, double * );
232
233 int CPL_DLL GTIFSetFromProj4( GTIF *gtif, const char *proj4 );
228234
229235 #if defined(HAVE_LIBPROJ) && defined(HAVE_PROJECTS_H)
230236 # define HAVE_GTIFPROJ4
99 * notice accompanies any products derived therefrom.
1010 *
1111 * $Log: geo_set.c,v $
12 * Revision 1.12 2008/02/29 17:23:29 fwarmerdam
13 * clarify docs on multiple arguments.
14 *
1215 * Revision 1.11 2004/04/27 21:32:33 warmerda
1316 * reformat for clarity
1417 *
8790
8891 The actual value is passed at the end of the argument list, and should be
8992 a short, a double, or a char * value. Note that short and double values
90 are passed as is, not as pointers.<p>
93 are passed by value rather than as pointers when count is 1, but as pointers
94 if count is larger than 1.<p>
9195
9296 Note that key values aren't actually flushed to the file until
9397 GTIFWriteKeys() is called. Till then
0 /**********************************************************************
1 *
2 * geo_simpletags.c TIFF Interface module that just keeps track of the
3 * tags in memory, without depending on libtiff.
4 *
5 **********************************************************************/
6
7 #include "geotiff.h" /* public GTIFF interface */
8 #include "geo_simpletags.h"
9
10 #include "geo_tiffp.h" /* Private TIFF interface */
11 #include "geo_keyp.h" /* Private GTIFF interface */
12
13 static int ST_TypeSize( int st_type );
14
15 static int _GTIFGetField (tiff_t *tif, pinfo_t tag, int *count, void *value );
16 static int _GTIFSetField (tiff_t *tif, pinfo_t tag, int count, void *value );
17 static tagtype_t _GTIFTagType (tiff_t *tif, pinfo_t tag);
18
19 /*
20 * Set up default TIFF handlers.
21 */
22 void GTIFSetSimpleTagsMethods(TIFFMethod *method)
23 {
24 if (!method) return;
25
26 method->get = _GTIFGetField;
27 method->set = _GTIFSetField;
28 method->type = _GTIFTagType;
29 }
30
31 /* returns the value of TIFF tag <tag>, or if
32 * the value is an array, returns an allocated buffer
33 * containing the values. Allocate a copy of the actual
34 * buffer, sized up for updating.
35 */
36 static int _GTIFGetField (tiff_t *tif, pinfo_t tag, int *count, void *val )
37 {
38 int item_size, data_type;
39 void *internal_value, *ret_value;
40
41 if( !ST_GetKey( (ST_TIFF*) tif, (int) tag, count, &data_type,
42 &internal_value ) )
43 return 0;
44
45 if( data_type != ST_TagType( tag ) )
46 return 0;
47
48 item_size = ST_TypeSize( data_type );
49
50 ret_value = (char *)_GTIFcalloc( *count * item_size );
51 if (!ret_value) return 0;
52
53 _TIFFmemcpy( ret_value, internal_value, item_size * *count );
54
55 *(void **)val = ret_value;
56 return 1;
57 }
58
59 /*
60 * Set a GeoTIFF TIFF field.
61 */
62 static int _GTIFSetField (tiff_t *tif, pinfo_t tag, int count, void *value )
63 {
64 int st_type = ST_TagType( tag );
65
66 return ST_SetKey( (ST_TIFF *) tif, (int) tag, count, st_type, value );
67 }
68
69 /*
70 * This routine is supposed to return the TagType of the <tag>
71 * TIFF tag. Unfortunately, "libtiff" does not provide this
72 * service by default, so we just have to "know" what type of tags
73 * we've got, and how many. We only define the ones Geotiff
74 * uses here, and others return UNKNOWN. The "tif" parameter
75 * is provided for those TIFF implementations that provide
76 * for tag-type queries.
77 */
78 static tagtype_t _GTIFTagType (tiff_t *tif, pinfo_t tag)
79 {
80 tagtype_t ttype;
81
82 (void) tif; /* dummy reference */
83
84 switch (tag)
85 {
86 case GTIFF_ASCIIPARAMS: ttype=TYPE_ASCII; break;
87 case GTIFF_PIXELSCALE:
88 case GTIFF_TRANSMATRIX:
89 case GTIFF_TIEPOINTS:
90 case GTIFF_DOUBLEPARAMS: ttype=TYPE_DOUBLE; break;
91 case GTIFF_GEOKEYDIRECTORY: ttype=TYPE_SHORT; break;
92 default: ttype = TYPE_UNKNOWN;
93 }
94
95 return ttype;
96 }
97
98 /************************************************************************/
99 /* ST_TagType() */
100 /************************************************************************/
101
102 int ST_TagType( int tag )
103 {
104 switch (tag)
105 {
106 case GTIFF_ASCIIPARAMS:
107 return STT_ASCII;
108
109 case GTIFF_PIXELSCALE:
110 case GTIFF_TRANSMATRIX:
111 case GTIFF_TIEPOINTS:
112 case GTIFF_DOUBLEPARAMS:
113 return STT_DOUBLE;
114
115 case GTIFF_GEOKEYDIRECTORY:
116 return STT_SHORT;
117 }
118
119 return -1;
120 }
121
122
123 /************************************************************************/
124 /* ST_TypeSize() */
125 /************************************************************************/
126
127 static int ST_TypeSize( int st_type )
128
129 {
130 if( st_type == STT_ASCII )
131 return 1;
132 else if( st_type == STT_SHORT )
133 return 2;
134 else if( st_type == STT_DOUBLE )
135 return 8;
136 else
137 return 8;
138 }
139
140 /************************************************************************/
141 /* ST_Create() */
142 /************************************************************************/
143
144 ST_TIFF *ST_Create()
145
146 {
147 return (ST_TIFF *) calloc(1,sizeof(ST_TIFF));
148 }
149
150 /************************************************************************/
151 /* ST_Destroy() */
152 /************************************************************************/
153
154 void ST_Destroy( ST_TIFF *st )
155
156 {
157 int i;
158
159 for( i = 0; i < st->key_count; i++ )
160 free( st->key_list[i].data );
161
162 if( st->key_list )
163 free( st->key_list );
164 free( st );
165 }
166
167 /************************************************************************/
168 /* ST_SetKey() */
169 /************************************************************************/
170
171 int ST_SetKey( ST_TIFF *st, int tag, int count, int st_type, void *data )
172
173 {
174 int i, item_size = ST_TypeSize( st_type );
175
176 /* -------------------------------------------------------------------- */
177 /* If we already have a value for this tag, replace it. */
178 /* -------------------------------------------------------------------- */
179 for( i = 0; i < st->key_count; i++ )
180 {
181 if( st->key_list[i].tag == tag )
182 {
183 free( st->key_list[i].data );
184 st->key_list[i].count = count;
185 st->key_list[i].type = st_type;
186 st->key_list[i].data = malloc(item_size*count);
187 memcpy( st->key_list[i].data, data, count * item_size );
188 return 1;
189 }
190 }
191
192 /* -------------------------------------------------------------------- */
193 /* Otherwise, add a new entry. */
194 /* -------------------------------------------------------------------- */
195 st->key_count++;
196 st->key_list = (ST_KEY *) realloc(st->key_list,
197 sizeof(ST_KEY) * st->key_count);
198 st->key_list[st->key_count-1].tag = tag;
199 st->key_list[st->key_count-1].count = count;
200 st->key_list[st->key_count-1].type = st_type;
201 st->key_list[st->key_count-1].data = malloc(item_size * count);
202 memcpy( st->key_list[st->key_count-1].data, data, item_size * count );
203
204 return 1;
205 }
206
207 /************************************************************************/
208 /* ST_GetKey() */
209 /************************************************************************/
210
211 int ST_GetKey( ST_TIFF *st, int tag, int *count,
212 int *st_type, void **data_ptr )
213
214 {
215 int i;
216
217 for( i = 0; i < st->key_count; i++ )
218 {
219 if( st->key_list[i].tag == tag )
220 {
221 if( count )
222 *count = st->key_list[i].count;
223 if( st_type )
224 *st_type = st->key_list[i].type;
225 if( data_ptr )
226 *data_ptr = st->key_list[i].data;
227 return 1;
228 }
229 }
230
231 return 0;
232 }
233
0 /**********************************************************************
1 *
2 * geo_simpletags.h
3 *
4 * Provides interface for a "simple tags io in memory" mechanism
5 * as an alternative to accessing a real tiff file using libtiff.
6 *
7 **********************************************************************/
8
9 #ifndef __geo_simpletags_h_
10 #define __geo_simpletags_h_
11
12 #include "geotiff.h"
13 #include "cpl_serv.h"
14
15 #if defined(__cplusplus)
16 extern "C" {
17 #endif
18
19 #define STT_SHORT 1
20 #define STT_DOUBLE 2
21 #define STT_ASCII 3
22
23 typedef struct {
24 int tag;
25 int count;
26 int type;
27 void *data;
28 } ST_KEY;
29
30 typedef struct {
31 int key_count;
32 ST_KEY *key_list;
33 } ST_TIFF;
34
35 typedef void *STIFF;
36
37 void CPL_DLL GTIFSetSimpleTagsMethods(TIFFMethod *method);
38
39 int CPL_DLL ST_SetKey( ST_TIFF *, int tag, int count,
40 int st_type, void *data );
41 int CPL_DLL ST_GetKey( ST_TIFF *, int tag, int *count,
42 int *st_type, void **data_ptr );
43
44 ST_TIFF CPL_DLL *ST_Create();
45 void CPL_DLL ST_Destroy( ST_TIFF * );
46
47 int CPL_DLL ST_TagType( int tag );
48
49 #if defined(__cplusplus)
50 }
51 #endif
52
53 #endif /* __geo_simpletags_h_ */
8787 GTGetFunction get;
8888 GTSetFunction set;
8989 GTTypeFunction type;
90 } TIFFMethod;
90 } TIFFMethod_t;
9191
9292 /**********************************************************************
9393 *
2626 */
2727 #define GvCurrentVersion 1
2828
29 #define LIBGEOTIFF_VERSION 1240
29 #define LIBGEOTIFF_VERSION 1250
3030
3131 #include "geo_config.h"
3232 #include "geokeys.h"
5353 #endif
5454
5555 typedef struct gtiff GTIF; /* struct gtiff is private */
56 typedef struct _TIFFMethod TIFFMethod;
5657 typedef unsigned short tifftag_t;
5758 typedef unsigned short geocode_t;
5859 typedef int (*GTIFPrintMethod)(char *string, void *aux);
8182
8283 /* TIFF-level interface */
8384 GTIF CPL_DLL *GTIFNew(void *tif);
85 GTIF CPL_DLL *GTIFNewSimpleTags(void *tif);
86 GTIF CPL_DLL *GTIFNewWithMethods(void *tif, TIFFMethod*);
8487 void CPL_DLL GTIFFree(GTIF *gtif);
8588 int CPL_DLL GTIFWriteKeys(GTIF *gtif);
8689 void CPL_DLL GTIFDirectoryInfo(GTIF *gtif, int *versions, int *keycount);
00 /******************************************************************************
1 * $Id: geotiff_proj4.c,v 1.23 2007/03/13 18:04:33 fwarmerdam Exp $
1 * $Id: geotiff_proj4.c,v 1.25 2008/05/21 04:25:01 fwarmerdam Exp $
22 *
33 * Project: libgeotiff
44 * Purpose: Code to convert a normalized GeoTIFF definition into a PROJ.4
2828 ******************************************************************************
2929 *
3030 * $Log: geotiff_proj4.c,v $
31 * Revision 1.25 2008/05/21 04:25:01 fwarmerdam
32 * avoid warnings.
33 *
34 * Revision 1.24 2008/05/21 04:12:57 fwarmerdam
35 * added preliminary GTIFSetFromProj4() support
36 *
3137 * Revision 1.23 2007/03/13 18:04:33 fwarmerdam
3238 * added new zealand map grid support per bug 1519
3339 *
105111 #include "geotiff.h"
106112 #include "geo_normalize.h"
107113 #include "geovalues.h"
114
115 /************************************************************************/
116 /* OSRProj4Tokenize() */
117 /* */
118 /* Custom tokenizing function for PROJ.4 strings. The main */
119 /* reason we can't just use CSLTokenizeString is to handle */
120 /* strings with a + sign in the exponents of parameter values. */
121 /************************************************************************/
122
123 static char **OSRProj4Tokenize( const char *pszFull )
124
125 {
126 char *pszStart = NULL;
127 char *pszFullWrk;
128 char **papszTokens = (char **) calloc(sizeof(char*),200);
129 int i;
130 int nTokens = 0;
131
132 if( pszFull == NULL )
133 return NULL;
134
135 pszFullWrk = strdup( pszFull );
136
137 for( i=0; pszFullWrk[i] != '\0'; i++ )
138 {
139 switch( pszFullWrk[i] )
140 {
141 case '+':
142 if( i == 0 || pszFullWrk[i-1] == '\0' )
143 {
144 if( pszStart != NULL )
145 {
146 if( strstr(pszStart,"=") != NULL )
147 {
148 papszTokens[nTokens++] = strdup(pszStart);
149 }
150 else
151 {
152 char szAsBoolean[100];
153 strcpy( szAsBoolean,pszStart);
154 strcat( szAsBoolean,"=yes" );
155 papszTokens[nTokens++] = strdup(szAsBoolean);
156 }
157 }
158 pszStart = pszFullWrk + i + 1;
159 }
160 break;
161
162 case ' ':
163 case '\t':
164 case '\n':
165 pszFullWrk[i] = '\0';
166 break;
167
168 default:
169 break;
170 }
171 }
172
173 if( pszStart != NULL && strlen(pszStart) > 0 )
174 {
175 papszTokens[nTokens++] = strdup( pszStart );
176 }
177
178 free( pszFullWrk );
179
180 return papszTokens;
181 }
182
183
184 /************************************************************************/
185 /* OSR_GSV() */
186 /************************************************************************/
187
188 static const char *OSR_GSV( char **papszNV, const char * pszField )
189
190 {
191 int field_len = strlen(pszField);
192 int i;
193
194 if( !papszNV )
195 return NULL;
196
197 for( i = 0; papszNV[i] != NULL; i++ )
198 {
199 if( EQUALN(papszNV[i],pszField,field_len) )
200 {
201 if( papszNV[i][field_len] == '=' )
202 return papszNV[i] + field_len + 1;
203
204 if( strlen(papszNV[i]) == field_len )
205 return "";
206 }
207 }
208
209 return NULL;
210 }
211
212 /************************************************************************/
213 /* OSR_GDV() */
214 /* */
215 /* Fetch a particular parameter out of the parameter list, or */
216 /* the indicated default if it isn't available. This is a */
217 /* helper function for importFromProj4(). */
218 /************************************************************************/
219
220 static double OSR_GDV( char **papszNV, const char * pszField,
221 double dfDefaultValue )
222
223 {
224 const char *pszValue = OSR_GSV( papszNV, pszField );
225
226 // special hack to use k_0 if available.
227 if( pszValue == NULL && EQUAL(pszField,"k") )
228 return OSR_GDV( papszNV, "k_0", dfDefaultValue );
229
230 if( pszValue == NULL )
231 return dfDefaultValue;
232 else
233 return atof(pszValue);
234 }
235
236 /************************************************************************/
237 /* OSRFreeStringList() */
238 /************************************************************************/
239
240 static void OSRFreeStringList( char ** list )
241
242 {
243 int i;
244
245 for( i = 0; list != NULL && list[i] != NULL; i++ )
246 free( list[i] );
247 free(list);
248 }
249
250
251 /************************************************************************/
252 /* GTIFSetFromProj4() */
253 /************************************************************************/
254
255 int GTIFSetFromProj4( GTIF *gtif, const char *proj4 )
256
257 {
258 char **papszNV = OSRProj4Tokenize( proj4 );
259 short nSpheroid = KvUserDefined;
260 double dfSemiMajor, dfSemiMinor=0.0, dfInvFlattening=0.0;
261 int nDatum = KvUserDefined;
262 int nGCS = KvUserDefined;
263 const char *value;
264
265 /* -------------------------------------------------------------------- */
266 /* Get the ellipsoid definition. */
267 /* -------------------------------------------------------------------- */
268 value = OSR_GSV( papszNV, "ellps" );
269
270 if( value == NULL )
271 {
272 /* nothing */;
273 }
274 else if( EQUAL(value,"WGS84") )
275 nSpheroid = Ellipse_WGS_84;
276 else if( EQUAL(value,"clrk66") )
277 nSpheroid = Ellipse_Clarke_1866;
278 else if( EQUAL(value,"clrk80") )
279 nSpheroid = Ellipse_Clarke_1880;
280 else if( EQUAL(value,"GRS80") )
281 nSpheroid = Ellipse_GRS_1980;
282
283 if( nSpheroid == KvUserDefined )
284 {
285 dfSemiMajor = OSR_GDV(papszNV,"a",0.0);
286 dfSemiMinor = OSR_GDV(papszNV,"b",0.0);
287 dfInvFlattening = OSR_GDV(papszNV,"rf",0.0);
288 if( dfSemiMinor != 0.0 && dfInvFlattening == 0.0 )
289 dfInvFlattening = -1.0 / (dfSemiMinor/dfSemiMajor - 1.0);
290 }
291
292 /* -------------------------------------------------------------------- */
293 /* Get the GCS/Datum code. */
294 /* -------------------------------------------------------------------- */
295 value = OSR_GSV( papszNV, "datum" );
296
297 if( value == NULL )
298 {
299 }
300 else if( EQUAL(value,"WGS84") )
301 {
302 nGCS = GCS_WGS_84;
303 nDatum = Datum_WGS84;
304 }
305 else if( EQUAL(value,"NAD83") )
306 {
307 nGCS = GCS_NAD83;
308 nDatum = Datum_North_American_Datum_1983;
309 }
310 else if( EQUAL(value,"NAD27") )
311 {
312 nGCS = GCS_NAD27;
313 nDatum = Datum_North_American_Datum_1927;
314 }
315
316 /* -------------------------------------------------------------------- */
317 /* Operate on the basis of the projection name. */
318 /* -------------------------------------------------------------------- */
319 value = OSR_GSV(papszNV,"proj");
320
321 if( value == NULL )
322 {
323 OSRFreeStringList( papszNV );
324 return FALSE;
325 }
326
327 else if( EQUAL(value,"longlat") || EQUAL(value,"latlong") )
328 {
329 }
330
331 else if( EQUAL(value,"tmerc") )
332 {
333 GTIFKeySet(gtif, GTModelTypeGeoKey, TYPE_SHORT, 1,
334 ModelTypeProjected);
335 GTIFKeySet(gtif, ProjectedCSTypeGeoKey, TYPE_SHORT, 1,
336 KvUserDefined );
337 GTIFKeySet(gtif, ProjectionGeoKey, TYPE_SHORT, 1,
338 KvUserDefined );
339
340 GTIFKeySet(gtif, ProjCoordTransGeoKey, TYPE_SHORT, 1,
341 CT_TransverseMercator );
342
343 GTIFKeySet(gtif, ProjNatOriginLatGeoKey, TYPE_DOUBLE, 1,
344 OSR_GDV( papszNV, "lat_0", 0.0 ) );
345
346 GTIFKeySet(gtif, ProjNatOriginLongGeoKey, TYPE_DOUBLE, 1,
347 OSR_GDV( papszNV, "lon_0", 0.0 ) );
348
349 GTIFKeySet(gtif, ProjScaleAtNatOriginGeoKey, TYPE_DOUBLE, 1,
350 OSR_GDV( papszNV, "k", 1.0 ) );
351
352 GTIFKeySet(gtif, ProjFalseEastingGeoKey, TYPE_DOUBLE, 1,
353 OSR_GDV( papszNV, "x_0", 0.0 ) );
354
355 GTIFKeySet(gtif, ProjFalseNorthingGeoKey, TYPE_DOUBLE, 1,
356 OSR_GDV( papszNV, "y_0", 0.0 ) );
357 }
358
359 else if( EQUAL(value,"utm") )
360 {
361 int nZone = (int) OSR_GDV(papszNV,"zone",0);
362 const char *south = OSR_GSV(papszNV,"south");
363
364 GTIFKeySet(gtif, GTModelTypeGeoKey, TYPE_SHORT, 1,
365 ModelTypeProjected);
366 GTIFKeySet(gtif, ProjectedCSTypeGeoKey, TYPE_SHORT, 1,
367 KvUserDefined );
368 GTIFKeySet(gtif, ProjectionGeoKey, TYPE_SHORT, 1,
369 KvUserDefined );
370
371 GTIFKeySet(gtif, ProjCoordTransGeoKey, TYPE_SHORT, 1,
372 CT_TransverseMercator );
373
374 GTIFKeySet(gtif, ProjNatOriginLatGeoKey, TYPE_DOUBLE, 1,
375 0.0 );
376
377 GTIFKeySet(gtif, ProjNatOriginLongGeoKey, TYPE_DOUBLE, 1,
378 nZone * 6 - 183.0 );
379
380 GTIFKeySet(gtif, ProjScaleAtNatOriginGeoKey, TYPE_DOUBLE, 1,
381 0.9996 );
382
383 GTIFKeySet(gtif, ProjFalseEastingGeoKey, TYPE_DOUBLE, 1,
384 500000.0 );
385
386 if( south != NULL )
387 GTIFKeySet(gtif, ProjFalseNorthingGeoKey, TYPE_DOUBLE, 1,
388 10000000.0 );
389 else
390 GTIFKeySet(gtif, ProjFalseNorthingGeoKey, TYPE_DOUBLE, 1,
391 0.0 );
392 }
393
394 else if( EQUAL(value,"lcc")
395 && OSR_GDV(papszNV, "lat_0", 0.0 )
396 == OSR_GDV(papszNV, "lat_1", 0.0 ) )
397 {
398 GTIFKeySet(gtif, GTModelTypeGeoKey, TYPE_SHORT, 1,
399 ModelTypeProjected);
400 GTIFKeySet(gtif, ProjectedCSTypeGeoKey, TYPE_SHORT, 1,
401 KvUserDefined );
402 GTIFKeySet(gtif, ProjectionGeoKey, TYPE_SHORT, 1,
403 KvUserDefined );
404
405 GTIFKeySet(gtif, ProjCoordTransGeoKey, TYPE_SHORT, 1,
406 CT_LambertConfConic_1SP );
407
408 GTIFKeySet(gtif, ProjNatOriginLatGeoKey, TYPE_DOUBLE, 1,
409 OSR_GDV( papszNV, "lat_0", 0.0 ) );
410
411 GTIFKeySet(gtif, ProjNatOriginLongGeoKey, TYPE_DOUBLE, 1,
412 OSR_GDV( papszNV, "lon_0", 0.0 ) );
413
414 GTIFKeySet(gtif, ProjScaleAtNatOriginGeoKey, TYPE_DOUBLE, 1,
415 OSR_GDV( papszNV, "k", 1.0 ) );
416
417 GTIFKeySet(gtif, ProjFalseEastingGeoKey, TYPE_DOUBLE, 1,
418 OSR_GDV( papszNV, "x_0", 0.0 ) );
419
420 GTIFKeySet(gtif, ProjFalseNorthingGeoKey, TYPE_DOUBLE, 1,
421 OSR_GDV( papszNV, "y_0", 0.0 ) );
422 }
423
424 else if( EQUAL(value,"lcc")
425 && OSR_GDV(papszNV, "lat_0", 0.0 )
426 == OSR_GDV(papszNV, "lat_1", 0.0 ) )
427 {
428 GTIFKeySet(gtif, GTModelTypeGeoKey, TYPE_SHORT, 1,
429 ModelTypeProjected);
430 GTIFKeySet(gtif, ProjectedCSTypeGeoKey, TYPE_SHORT, 1,
431 KvUserDefined );
432 GTIFKeySet(gtif, ProjectionGeoKey, TYPE_SHORT, 1,
433 KvUserDefined );
434
435 GTIFKeySet(gtif, ProjCoordTransGeoKey, TYPE_SHORT, 1,
436 CT_LambertConfConic_2SP );
437
438 GTIFKeySet(gtif, ProjFalseOriginLatGeoKey, TYPE_DOUBLE, 1,
439 OSR_GDV( papszNV, "lat_0", 0.0 ) );
440
441 GTIFKeySet(gtif, ProjFalseOriginLongGeoKey, TYPE_DOUBLE, 1,
442 OSR_GDV( papszNV, "lon_0", 0.0 ) );
443
444 GTIFKeySet(gtif, ProjStdParallel1GeoKey, TYPE_DOUBLE, 1,
445 OSR_GDV( papszNV, "lat_1", 0.0 ) );
446
447 GTIFKeySet(gtif, ProjStdParallel2GeoKey, TYPE_DOUBLE, 1,
448 OSR_GDV( papszNV, "lat_2", 0.0 ) );
449
450 GTIFKeySet(gtif, ProjFalseOriginEastingGeoKey, TYPE_DOUBLE, 1,
451 OSR_GDV( papszNV, "x_0", 0.0 ) );
452
453 GTIFKeySet(gtif, ProjFalseOriginNorthingGeoKey, TYPE_DOUBLE, 1,
454 OSR_GDV( papszNV, "y_0", 0.0 ) );
455 }
456
457 #ifdef notdef
458 else if( EQUAL(value,"bonne") )
459 {
460 SetBonne( OSR_GDV( papszNV, "lat_1", 0.0 ),
461 OSR_GDV( papszNV, "lon_0", 0.0 ),
462 OSR_GDV( papszNV, "x_0", 0.0 ),
463 OSR_GDV( papszNV, "y_0", 0.0 ) );
464 }
465
466 else if( EQUAL(value,"cass") )
467 {
468 SetCS( OSR_GDV( papszNV, "lat_0", 0.0 ),
469 OSR_GDV( papszNV, "lon_0", 0.0 ),
470 OSR_GDV( papszNV, "x_0", 0.0 ),
471 OSR_GDV( papszNV, "y_0", 0.0 ) );
472 }
473
474 else if( EQUAL(value,"nzmg") )
475 {
476 SetNZMG( OSR_GDV( papszNV, "lat_0", -41.0 ),
477 OSR_GDV( papszNV, "lon_0", 173.0 ),
478 OSR_GDV( papszNV, "x_0", 2510000.0 ),
479 OSR_GDV( papszNV, "y_0", 6023150.0 ) );
480 }
481
482 else if( EQUAL(value,"cea") )
483 {
484 SetCEA( OSR_GDV( papszNV, "lat_ts", 0.0 ),
485 OSR_GDV( papszNV, "lon_0", 0.0 ),
486 OSR_GDV( papszNV, "x_0", 0.0 ),
487 OSR_GDV( papszNV, "y_0", 0.0 ) );
488 }
489
490 else if( EQUAL(value,"merc") /* 2SP form */
491 && OSR_GDV(papszNV, "lat_ts", 1000.0) < 999.0 )
492 {
493 SetMercator2SP( OSR_GDV( papszNV, "lat_ts", 0.0 ),
494 0.0,
495 OSR_GDV( papszNV, "lon_0", 0.0 ),
496 OSR_GDV( papszNV, "x_0", 0.0 ),
497 OSR_GDV( papszNV, "y_0", 0.0 ) );
498 }
499
500 else if( EQUAL(value,"merc") ) /* 1SP form */
501 {
502 SetMercator( 0.0,
503 OSR_GDV( papszNV, "lon_0", 0.0 ),
504 OSR_GDV( papszNV, "k", 1.0 ),
505 OSR_GDV( papszNV, "x_0", 0.0 ),
506 OSR_GDV( papszNV, "y_0", 0.0 ) );
507 }
508
509 else if( EQUAL(value,"stere")
510 && ABS(OSR_GDV( papszNV, "lat_0", 0.0 ) - 90) < 0.001 )
511 {
512 SetPS( OSR_GDV( papszNV, "lat_ts", 90.0 ),
513 OSR_GDV( papszNV, "lon_0", 0.0 ),
514 OSR_GDV( papszNV, "k", 1.0 ),
515 OSR_GDV( papszNV, "x_0", 0.0 ),
516 OSR_GDV( papszNV, "y_0", 0.0 ) );
517 }
518
519 else if( EQUAL(value,"stere")
520 && ABS(OSR_GDV( papszNV, "lat_0", 0.0 ) + 90) < 0.001 )
521 {
522 SetPS( OSR_GDV( papszNV, "lat_ts", -90.0 ),
523 OSR_GDV( papszNV, "lon_0", 0.0 ),
524 OSR_GDV( papszNV, "k", 1.0 ),
525 OSR_GDV( papszNV, "x_0", 0.0 ),
526 OSR_GDV( papszNV, "y_0", 0.0 ) );
527 }
528
529 else if( EQUALN(value,"stere",5) /* mostly sterea */
530 && CSLFetchNameValue(papszNV,"k") != NULL )
531 {
532 SetOS( OSR_GDV( papszNV, "lat_0", 0.0 ),
533 OSR_GDV( papszNV, "lon_0", 0.0 ),
534 OSR_GDV( papszNV, "k", 1.0 ),
535 OSR_GDV( papszNV, "x_0", 0.0 ),
536 OSR_GDV( papszNV, "y_0", 0.0 ) );
537 }
538
539 else if( EQUAL(value,"stere") )
540 {
541 SetStereographic( OSR_GDV( papszNV, "lat_0", 0.0 ),
542 OSR_GDV( papszNV, "lon_0", 0.0 ),
543 1.0,
544 OSR_GDV( papszNV, "x_0", 0.0 ),
545 OSR_GDV( papszNV, "y_0", 0.0 ) );
546 }
547
548 else if( EQUAL(value,"eqc") )
549 {
550 if( OSR_GDV( papszNV, "lat_0", 0.0 ) != OSR_GDV( papszNV, "lat_ts", 0.0 ) )
551 SetEquirectangular2( OSR_GDV( papszNV, "lat_0", 0.0 ),
552 OSR_GDV( papszNV, "lon_0", 0.0 )+dfFromGreenwich,
553 OSR_GDV( papszNV, "lat_ts", 0.0 ),
554 OSR_GDV( papszNV, "x_0", 0.0 ),
555 OSR_GDV( papszNV, "y_0", 0.0 ) );
556 else
557 SetEquirectangular( OSR_GDV( papszNV, "lat_ts", 0.0 ),
558 OSR_GDV( papszNV, "lon_0", 0.0 )+dfFromGreenwich,
559 OSR_GDV( papszNV, "x_0", 0.0 ),
560 OSR_GDV( papszNV, "y_0", 0.0 ) );
561 }
562
563 else if( EQUAL(value,"glabsgm") )
564 {
565 SetGaussLabordeReunion( OSR_GDV( papszNV, "lat_0", -21.116666667 ),
566 OSR_GDV( papszNV, "lon_0", 55.53333333309)+dfFromGreenwich,
567 OSR_GDV( papszNV, "k_0", 1.0 ),
568 OSR_GDV( papszNV, "x_0", 160000.000 ),
569 OSR_GDV( papszNV, "y_0", 50000.000 ) );
570 }
571
572 else if( EQUAL(value,"gnom") )
573 {
574 SetGnomonic( OSR_GDV( papszNV, "lat_0", 0.0 ),
575 OSR_GDV( papszNV, "lon_0", 0.0 ),
576 OSR_GDV( papszNV, "x_0", 0.0 ),
577 OSR_GDV( papszNV, "y_0", 0.0 ) );
578 }
579
580 else if( EQUAL(value,"ortho") )
581 {
582 SetOrthographic( OSR_GDV( papszNV, "lat_0", 0.0 ),
583 OSR_GDV( papszNV, "lon_0", 0.0 ),
584 OSR_GDV( papszNV, "x_0", 0.0 ),
585 OSR_GDV( papszNV, "y_0", 0.0 ) );
586 }
587
588 else if( EQUAL(value,"laea") )
589 {
590 SetLAEA( OSR_GDV( papszNV, "lat_0", 0.0 ),
591 OSR_GDV( papszNV, "lon_0", 0.0 ),
592 OSR_GDV( papszNV, "x_0", 0.0 ),
593 OSR_GDV( papszNV, "y_0", 0.0 ) );
594 }
595
596 else if( EQUAL(value,"aeqd") )
597 {
598 SetAE( OSR_GDV( papszNV, "lat_0", 0.0 ),
599 OSR_GDV( papszNV, "lon_0", 0.0 ),
600 OSR_GDV( papszNV, "x_0", 0.0 ),
601 OSR_GDV( papszNV, "y_0", 0.0 ) );
602 }
603
604 else if( EQUAL(value,"eqdc") )
605 {
606 SetEC( OSR_GDV( papszNV, "lat_1", 0.0 ),
607 OSR_GDV( papszNV, "lat_2", 0.0 ),
608 OSR_GDV( papszNV, "lat_0", 0.0 ),
609 OSR_GDV( papszNV, "lon_0", 0.0 ),
610 OSR_GDV( papszNV, "x_0", 0.0 ),
611 OSR_GDV( papszNV, "y_0", 0.0 ) );
612 }
613
614 else if( EQUAL(value,"mill") )
615 {
616 SetMC( OSR_GDV( papszNV, "lat_0", 0.0 ),
617 OSR_GDV( papszNV, "lon_0", 0.0 ),
618 OSR_GDV( papszNV, "x_0", 0.0 ),
619 OSR_GDV( papszNV, "y_0", 0.0 ) );
620 }
621
622 else if( EQUAL(value,"moll") )
623 {
624 SetMollweide( OSR_GDV( papszNV, "lon_0", 0.0 ),
625 OSR_GDV( papszNV, "x_0", 0.0 ),
626 OSR_GDV( papszNV, "y_0", 0.0 ) );
627 }
628
629 else if( EQUAL(value,"eck4") )
630 {
631 SetEckertIV( OSR_GDV( papszNV, "lon_0", 0.0 ),
632 OSR_GDV( papszNV, "x_0", 0.0 ),
633 OSR_GDV( papszNV, "y_0", 0.0 ) );
634 }
635
636 else if( EQUAL(value,"eck6") )
637 {
638 SetEckertVI( OSR_GDV( papszNV, "lon_0", 0.0 ),
639 OSR_GDV( papszNV, "x_0", 0.0 ),
640 OSR_GDV( papszNV, "y_0", 0.0 ) );
641 }
642
643 else if( EQUAL(value,"poly") )
644 {
645 SetPolyconic( OSR_GDV( papszNV, "lat_0", 0.0 ),
646 OSR_GDV( papszNV, "lon_0", 0.0 ),
647 OSR_GDV( papszNV, "x_0", 0.0 ),
648 OSR_GDV( papszNV, "y_0", 0.0 ) );
649 }
650
651 else if( EQUAL(value,"aea") )
652 {
653 SetACEA( OSR_GDV( papszNV, "lat_1", 0.0 ),
654 OSR_GDV( papszNV, "lat_2", 0.0 ),
655 OSR_GDV( papszNV, "lat_0", 0.0 ),
656 OSR_GDV( papszNV, "lon_0", 0.0 ),
657 OSR_GDV( papszNV, "x_0", 0.0 ),
658 OSR_GDV( papszNV, "y_0", 0.0 ) );
659 }
660
661 else if( EQUAL(value,"robin") )
662 {
663 SetRobinson( OSR_GDV( papszNV, "lon_0", 0.0 ),
664 OSR_GDV( papszNV, "x_0", 0.0 ),
665 OSR_GDV( papszNV, "y_0", 0.0 ) );
666 }
667
668 else if( EQUAL(value,"vandg") )
669 {
670 SetVDG( OSR_GDV( papszNV, "lon_0", 0.0 ),
671 OSR_GDV( papszNV, "x_0", 0.0 ),
672 OSR_GDV( papszNV, "y_0", 0.0 ) );
673 }
674
675 else if( EQUAL(value,"sinu") )
676 {
677 SetSinusoidal( OSR_GDV( papszNV, "lon_0", 0.0 ),
678 OSR_GDV( papszNV, "x_0", 0.0 ),
679 OSR_GDV( papszNV, "y_0", 0.0 ) );
680 }
681
682 else if( EQUAL(value,"gall") )
683 {
684 SetGS( OSR_GDV( papszNV, "lon_0", 0.0 ),
685 OSR_GDV( papszNV, "x_0", 0.0 ),
686 OSR_GDV( papszNV, "y_0", 0.0 ) );
687 }
688
689 else if( EQUAL(value,"goode") )
690 {
691 SetGH( OSR_GDV( papszNV, "lon_0", 0.0 ),
692 OSR_GDV( papszNV, "x_0", 0.0 ),
693 OSR_GDV( papszNV, "y_0", 0.0 ) );
694 }
695
696 else if( EQUAL(value,"geos") )
697 {
698 SetGEOS( OSR_GDV( papszNV, "lon_0", 0.0 ),
699 OSR_GDV( papszNV, "h", 35785831.0 ),
700 OSR_GDV( papszNV, "x_0", 0.0 ),
701 OSR_GDV( papszNV, "y_0", 0.0 ) );
702 }
703
704 else if( EQUAL(value,"lcc") )
705 {
706 if( OSR_GDV(papszNV, "lat_0", 0.0 )
707 == OSR_GDV(papszNV, "lat_1", 0.0 ) )
708 {
709 /* 1SP form */
710 SetLCC1SP( OSR_GDV( papszNV, "lat_0", 0.0 ),
711 OSR_GDV( papszNV, "lon_0", 0.0 ),
712 OSR_GDV( papszNV, "k_0", 1.0 ),
713 OSR_GDV( papszNV, "x_0", 0.0 ),
714 OSR_GDV( papszNV, "y_0", 0.0 ) );
715 }
716 else
717 {
718 /* 2SP form */
719 SetLCC( OSR_GDV( papszNV, "lat_1", 0.0 ),
720 OSR_GDV( papszNV, "lat_2", 0.0 ),
721 OSR_GDV( papszNV, "lat_0", 0.0 ),
722 OSR_GDV( papszNV, "lon_0", 0.0 ),
723 OSR_GDV( papszNV, "x_0", 0.0 ),
724 OSR_GDV( papszNV, "y_0", 0.0 ) );
725 }
726 }
727
728 else if( EQUAL(value,"omerc") )
729 {
730 SetHOM( OSR_GDV( papszNV, "lat_0", 0.0 ),
731 OSR_GDV( papszNV, "lonc", 0.0 ),
732 OSR_GDV( papszNV, "alpha", 0.0 ),
733 0.0, /* ??? */
734 OSR_GDV( papszNV, "k", 1.0 ),
735 OSR_GDV( papszNV, "x_0", 0.0 ),
736 OSR_GDV( papszNV, "y_0", 0.0 ) );
737 }
738
739 else if( EQUAL(value,"somerc") )
740 {
741 SetHOM( OSR_GDV( papszNV, "lat_0", 0.0 ),
742 OSR_GDV( papszNV, "lon_0", 0.0 ),
743 90.0, 90.0,
744 OSR_GDV( papszNV, "k", 1.0 ),
745 OSR_GDV( papszNV, "x_0", 0.0 ),
746 OSR_GDV( papszNV, "y_0", 0.0 ) );
747 }
748
749 else if( EQUAL(value,"krovak") )
750 {
751 SetKrovak( OSR_GDV( papszNV, "lat_0", 0.0 ),
752 OSR_GDV( papszNV, "lon_0", 0.0 ),
753 OSR_GDV( papszNV, "alpha", 0.0 ),
754 0.0, // pseudo_standard_parallel_1
755 OSR_GDV( papszNV, "k", 1.0 ),
756 OSR_GDV( papszNV, "x_0", 0.0 ),
757 OSR_GDV( papszNV, "y_0", 0.0 ) );
758 }
759
760 else if( EQUAL(value, "iwm_p") )
761 {
762 SetIWMPolyconic( OSR_GDV( papszNV, "lat_1", 0.0 ),
763 OSR_GDV( papszNV, "lat_2", 0.0 ),
764 OSR_GDV( papszNV, "lon_0", 0.0 ),
765 OSR_GDV( papszNV, "x_0", 0.0 ),
766 OSR_GDV( papszNV, "y_0", 0.0 ) );
767 }
768
769 else if( EQUAL(value, "wag1") )
770 {
771 SetWagner( 1, 0.0,
772 OSR_GDV( papszNV, "x_0", 0.0 ),
773 OSR_GDV( papszNV, "y_0", 0.0 ) );
774 }
775
776 else if( EQUAL(value, "wag2") )
777 {
778 SetWagner( 2, 0.0,
779 OSR_GDV( papszNV, "x_0", 0.0 ),
780 OSR_GDV( papszNV, "y_0", 0.0 ) );
781 }
782
783 else if( EQUAL(value, "wag3") )
784 {
785 SetWagner( 3,
786 OSR_GDV( papszNV, "lat_ts", 0.0 ),
787 OSR_GDV( papszNV, "x_0", 0.0 ),
788 OSR_GDV( papszNV, "y_0", 0.0 ) );
789 }
790
791 else if( EQUAL(value, "wag1") )
792 {
793 SetWagner( 4, 0.0,
794 OSR_GDV( papszNV, "x_0", 0.0 ),
795 OSR_GDV( papszNV, "y_0", 0.0 ) );
796 }
797
798 else if( EQUAL(value, "wag1") )
799 {
800 SetWagner( 5, 0.0,
801 OSR_GDV( papszNV, "x_0", 0.0 ),
802 OSR_GDV( papszNV, "y_0", 0.0 ) );
803 }
804
805 else if( EQUAL(value, "wag1") )
806 {
807 SetWagner( 6, 0.0,
808 OSR_GDV( papszNV, "x_0", 0.0 ),
809 OSR_GDV( papszNV, "y_0", 0.0 ) );
810 }
811
812 else if( EQUAL(value, "wag1") )
813 {
814 SetWagner( 7, 0.0,
815 OSR_GDV( papszNV, "x_0", 0.0 ),
816 OSR_GDV( papszNV, "y_0", 0.0 ) );
817 }
818
819 else if( EQUAL(value,"tpeqd") )
820 {
821 SetTPED( OSR_GDV( papszNV, "lat_1", 0.0 ),
822 OSR_GDV( papszNV, "lon_1", 0.0 ),
823 OSR_GDV( papszNV, "lat_2", 0.0 ),
824 OSR_GDV( papszNV, "lon_2", 0.0 ),
825 OSR_GDV( papszNV, "x_0", 0.0 ),
826 OSR_GDV( papszNV, "y_0", 0.0 ) );
827 }
828 #endif
829 else
830 {
831 /* unsupported coordinate system */
832 OSRFreeStringList( papszNV );
833 return FALSE;
834 }
835
836 /* -------------------------------------------------------------------- */
837 /* Write the GCS if we have it, otherwise write the datum. */
838 /* -------------------------------------------------------------------- */
839 if( nGCS != KvUserDefined )
840 {
841 GTIFKeySet( gtif, GeographicTypeGeoKey, TYPE_SHORT,
842 1, nGCS );
843 }
844 else
845 {
846 GTIFKeySet( gtif, GeographicTypeGeoKey, TYPE_SHORT, 1,
847 KvUserDefined );
848 GTIFKeySet( gtif, GeogGeodeticDatumGeoKey, TYPE_SHORT,
849 1, nDatum );
850 }
851
852 /* -------------------------------------------------------------------- */
853 /* Write the ellipsoid if we don't know the GCS. */
854 /* -------------------------------------------------------------------- */
855 if( nGCS == KvUserDefined )
856 {
857 if( nSpheroid != KvUserDefined )
858 GTIFKeySet( gtif, GeogEllipsoidGeoKey, TYPE_SHORT, 1,
859 nSpheroid );
860 else
861 {
862 GTIFKeySet( gtif, GeogEllipsoidGeoKey, TYPE_SHORT, 1,
863 KvUserDefined );
864 GTIFKeySet( gtif, GeogSemiMajorAxisGeoKey, TYPE_DOUBLE, 1,
865 dfSemiMajor );
866 if( dfInvFlattening == 0.0 )
867 GTIFKeySet( gtif, GeogSemiMinorAxisGeoKey, TYPE_DOUBLE, 1,
868 dfSemiMajor );
869 else
870 GTIFKeySet( gtif, GeogInvFlatteningGeoKey, TYPE_DOUBLE, 1,
871 dfInvFlattening );
872 }
873
874 }
875
876 /* -------------------------------------------------------------------- */
877 /* Linear units translation */
878 /* -------------------------------------------------------------------- */
879 value = OSR_GSV( papszNV, "units" );
880
881 if( value == NULL )
882 {
883 value = OSR_GSV( papszNV, "to_meter" );
884 if( value )
885 {
886 GTIFKeySet( gtif, ProjLinearUnitsGeoKey, TYPE_SHORT, 1,
887 KvUserDefined );
888 GTIFKeySet( gtif, ProjLinearUnitSizeGeoKey, TYPE_DOUBLE, 1,
889 atof(value) );
890 }
891 }
892 else if( EQUAL(value,"meter") || EQUAL(value,"m") )
893 {
894 GTIFKeySet( gtif, ProjLinearUnitsGeoKey, TYPE_SHORT, 1,
895 Linear_Meter );
896 }
897 else if( EQUAL(value,"us-ft") )
898 {
899 GTIFKeySet( gtif, ProjLinearUnitsGeoKey, TYPE_SHORT, 1,
900 Linear_Foot_US_Survey );
901 }
902 else if( EQUAL(value,"ft") )
903 {
904 GTIFKeySet( gtif, ProjLinearUnitsGeoKey, TYPE_SHORT, 1,
905 Linear_Foot );
906 }
907
908
909 OSRFreeStringList( papszNV );
910
911 return TRUE;
912 }
108913
109914 /************************************************************************/
110915 /* GTIFGetProj4Defn() */
7191524 return TRUE;
7201525 }
7211526
722
7231527 #endif /* has projects.h and -lproj */
7241528
5050 geo_trans.obj \
5151 geo_normalize.obj \
5252 geotiff_proj4.obj \
53 geo_simpletags.obj \
5354 cpl_csv.obj \
5455 cpl_serv.obj
5556
138139 -mkdir $(LIBDIR)
139140 copy *.lib $(LIBDIR)
140141 copy *.h $(INCDIR)
142 copy libxtiff\*.h $(INCDIR)
141143 copy *.inc $(INCDIR)
142144