1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Octave-Forge mapping package 1.4.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
199  if (eval "$as_required") 2>/dev/null; then :
200  as_have_required=yes
201else
202  as_have_required=no
203fi
204  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206else
207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  test -z "$as_dir" && as_dir=.
213  as_found=:
214  case $as_dir in #(
215	 /*)
216	   for as_base in sh bash ksh sh5; do
217	     # Try only shells that exist, to save several forks.
218	     as_shell=$as_dir/$as_base
219	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221  CONFIG_SHELL=$as_shell as_have_required=yes
222		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223  break 2
224fi
225fi
226	   done;;
227       esac
228  as_found=false
229done
230$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232  CONFIG_SHELL=$SHELL as_have_required=yes
233fi; }
234IFS=$as_save_IFS
235
236
237      if test "x$CONFIG_SHELL" != x; then :
238  export CONFIG_SHELL
239             # We cannot yet assume a decent shell, so we have to provide a
240# neutralization value for shells without unset; and this also
241# works around shells that cannot unset nonexistent variables.
242# Preserve -v and -x to the replacement shell.
243BASH_ENV=/dev/null
244ENV=/dev/null
245(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246case $- in # ((((
247  *v*x* | *x*v* ) as_opts=-vx ;;
248  *v* ) as_opts=-v ;;
249  *x* ) as_opts=-x ;;
250  * ) as_opts= ;;
251esac
252exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253# Admittedly, this is quite paranoid, since all the known shells bail
254# out after a failed `exec'.
255$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
256exit 255
257fi
258
259    if test x$as_have_required = xno; then :
260  $as_echo "$0: This script requires a shell more modern than all"
261  $as_echo "$0: the shells that I found on your system."
262  if test x${ZSH_VERSION+set} = xset ; then
263    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
265  else
266    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
267$0: including any error possibly output before this
268$0: message. Then install a modern shell, or manually run
269$0: the script under such a shell if you do have one."
270  fi
271  exit 1
272fi
273fi
274fi
275SHELL=${CONFIG_SHELL-/bin/sh}
276export SHELL
277# Unset more variables known to interfere with behavior of common tools.
278CLICOLOR_FORCE= GREP_OPTIONS=
279unset CLICOLOR_FORCE GREP_OPTIONS
280
281## --------------------- ##
282## M4sh Shell Functions. ##
283## --------------------- ##
284# as_fn_unset VAR
285# ---------------
286# Portably unset VAR.
287as_fn_unset ()
288{
289  { eval $1=; unset $1;}
290}
291as_unset=as_fn_unset
292
293# as_fn_set_status STATUS
294# -----------------------
295# Set $? to STATUS, without forking.
296as_fn_set_status ()
297{
298  return $1
299} # as_fn_set_status
300
301# as_fn_exit STATUS
302# -----------------
303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
304as_fn_exit ()
305{
306  set +e
307  as_fn_set_status $1
308  exit $1
309} # as_fn_exit
310
311# as_fn_mkdir_p
312# -------------
313# Create "$as_dir" as a directory, including parents if necessary.
314as_fn_mkdir_p ()
315{
316
317  case $as_dir in #(
318  -*) as_dir=./$as_dir;;
319  esac
320  test -d "$as_dir" || eval $as_mkdir_p || {
321    as_dirs=
322    while :; do
323      case $as_dir in #(
324      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325      *) as_qdir=$as_dir;;
326      esac
327      as_dirs="'$as_qdir' $as_dirs"
328      as_dir=`$as_dirname -- "$as_dir" ||
329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
330	 X"$as_dir" : 'X\(//\)[^/]' \| \
331	 X"$as_dir" : 'X\(//\)$' \| \
332	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333$as_echo X"$as_dir" |
334    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335	    s//\1/
336	    q
337	  }
338	  /^X\(\/\/\)[^/].*/{
339	    s//\1/
340	    q
341	  }
342	  /^X\(\/\/\)$/{
343	    s//\1/
344	    q
345	  }
346	  /^X\(\/\).*/{
347	    s//\1/
348	    q
349	  }
350	  s/.*/./; q'`
351      test -d "$as_dir" && break
352    done
353    test -z "$as_dirs" || eval "mkdir $as_dirs"
354  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
355
356
357} # as_fn_mkdir_p
358
359# as_fn_executable_p FILE
360# -----------------------
361# Test if FILE is an executable regular file.
362as_fn_executable_p ()
363{
364  test -f "$1" && test -x "$1"
365} # as_fn_executable_p
366# as_fn_append VAR VALUE
367# ----------------------
368# Append the text in VALUE to the end of the definition contained in VAR. Take
369# advantage of any shell optimizations that allow amortized linear growth over
370# repeated appends, instead of the typical quadratic growth present in naive
371# implementations.
372if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
373  eval 'as_fn_append ()
374  {
375    eval $1+=\$2
376  }'
377else
378  as_fn_append ()
379  {
380    eval $1=\$$1\$2
381  }
382fi # as_fn_append
383
384# as_fn_arith ARG...
385# ------------------
386# Perform arithmetic evaluation on the ARGs, and store the result in the
387# global $as_val. Take advantage of shells that can avoid forks. The arguments
388# must be portable across $(()) and expr.
389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
390  eval 'as_fn_arith ()
391  {
392    as_val=$(( $* ))
393  }'
394else
395  as_fn_arith ()
396  {
397    as_val=`expr "$@" || test $? -eq 1`
398  }
399fi # as_fn_arith
400
401
402# as_fn_error STATUS ERROR [LINENO LOG_FD]
403# ----------------------------------------
404# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
405# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
406# script with STATUS, using 1 if that was 0.
407as_fn_error ()
408{
409  as_status=$1; test $as_status -eq 0 && as_status=1
410  if test "$4"; then
411    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
413  fi
414  $as_echo "$as_me: error: $2" >&2
415  as_fn_exit $as_status
416} # as_fn_error
417
418if expr a : '\(a\)' >/dev/null 2>&1 &&
419   test "X`expr 00001 : '.*\(...\)'`" = X001; then
420  as_expr=expr
421else
422  as_expr=false
423fi
424
425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
426  as_basename=basename
427else
428  as_basename=false
429fi
430
431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
432  as_dirname=dirname
433else
434  as_dirname=false
435fi
436
437as_me=`$as_basename -- "$0" ||
438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439	 X"$0" : 'X\(//\)$' \| \
440	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441$as_echo X/"$0" |
442    sed '/^.*\/\([^/][^/]*\)\/*$/{
443	    s//\1/
444	    q
445	  }
446	  /^X\/\(\/\/\)$/{
447	    s//\1/
448	    q
449	  }
450	  /^X\/\(\/\).*/{
451	    s//\1/
452	    q
453	  }
454	  s/.*/./; q'`
455
456# Avoid depending upon Character Ranges.
457as_cr_letters='abcdefghijklmnopqrstuvwxyz'
458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
459as_cr_Letters=$as_cr_letters$as_cr_LETTERS
460as_cr_digits='0123456789'
461as_cr_alnum=$as_cr_Letters$as_cr_digits
462
463
464  as_lineno_1=$LINENO as_lineno_1a=$LINENO
465  as_lineno_2=$LINENO as_lineno_2a=$LINENO
466  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
467  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
468  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
469  sed -n '
470    p
471    /[$]LINENO/=
472  ' <$as_myself |
473    sed '
474      s/[$]LINENO.*/&-/
475      t lineno
476      b
477      :lineno
478      N
479      :loop
480      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
481      t loop
482      s/-\n.*//
483    ' >$as_me.lineno &&
484  chmod +x "$as_me.lineno" ||
485    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
486
487  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488  # already done that, so ensure we don't try to do so again and fall
489  # in an infinite loop.  This has already happened in practice.
490  _as_can_reexec=no; export _as_can_reexec
491  # Don't try to exec as it changes $[0], causing all sort of problems
492  # (the dirname of $[0] is not the place where we might find the
493  # original and so on.  Autoconf is especially sensitive to this).
494  . "./$as_me.lineno"
495  # Exit status is that of the last command.
496  exit
497}
498
499ECHO_C= ECHO_N= ECHO_T=
500case `echo -n x` in #(((((
501-n*)
502  case `echo 'xy\c'` in
503  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
504  xy)  ECHO_C='\c';;
505  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
506       ECHO_T='	';;
507  esac;;
508*)
509  ECHO_N='-n';;
510esac
511
512rm -f conf$$ conf$$.exe conf$$.file
513if test -d conf$$.dir; then
514  rm -f conf$$.dir/conf$$.file
515else
516  rm -f conf$$.dir
517  mkdir conf$$.dir 2>/dev/null
518fi
519if (echo >conf$$.file) 2>/dev/null; then
520  if ln -s conf$$.file conf$$ 2>/dev/null; then
521    as_ln_s='ln -s'
522    # ... but there are two gotchas:
523    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525    # In both cases, we have to default to `cp -pR'.
526    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527      as_ln_s='cp -pR'
528  elif ln conf$$.file conf$$ 2>/dev/null; then
529    as_ln_s=ln
530  else
531    as_ln_s='cp -pR'
532  fi
533else
534  as_ln_s='cp -pR'
535fi
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
538
539if mkdir -p . 2>/dev/null; then
540  as_mkdir_p='mkdir -p "$as_dir"'
541else
542  test -d ./-p && rmdir ./-p
543  as_mkdir_p=false
544fi
545
546as_test_x='test -x'
547as_executable_p=as_fn_executable_p
548
549# Sed expression to map a string onto a valid CPP name.
550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551
552# Sed expression to map a string onto a valid variable name.
553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554
555
556test -n "$DJDIR" || exec 7<&0 </dev/null
557exec 6>&1
558
559# Name of the host.
560# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
561# so uname gets run too.
562ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563
564#
565# Initializations.
566#
567ac_default_prefix=/usr/local
568ac_clean_files=
569ac_config_libobj_dir=.
570LIBOBJS=
571cross_compiling=no
572subdirs=
573MFLAGS=
574MAKEFLAGS=
575
576# Identity of this package.
577PACKAGE_NAME='Octave-Forge mapping package'
578PACKAGE_TARNAME='octave-forge-mapping-package'
579PACKAGE_VERSION='1.4.1'
580PACKAGE_STRING='Octave-Forge mapping package 1.4.1'
581PACKAGE_BUGREPORT=''
582PACKAGE_URL=''
583
584ac_subst_vars='LTLIBOBJS
585LIBOBJS
586GDAL_CONFIG
587GDAL_LIBS
588GDAL_CFLAGS
589PKG_CONFIG_LIBDIR
590PKG_CONFIG_PATH
591PKG_CONFIG
592OBJEXT
593EXEEXT
594ac_ct_CXX
595CPPFLAGS
596LDFLAGS
597CXXFLAGS
598CXX
599OCTAVE
600MKOCTFILE
601target_alias
602host_alias
603build_alias
604LIBS
605ECHO_T
606ECHO_N
607ECHO_C
608DEFS
609mandir
610localedir
611libdir
612psdir
613pdfdir
614dvidir
615htmldir
616infodir
617docdir
618oldincludedir
619includedir
620runstatedir
621localstatedir
622sharedstatedir
623sysconfdir
624datadir
625datarootdir
626libexecdir
627sbindir
628bindir
629program_transform_name
630prefix
631exec_prefix
632PACKAGE_URL
633PACKAGE_BUGREPORT
634PACKAGE_STRING
635PACKAGE_VERSION
636PACKAGE_TARNAME
637PACKAGE_NAME
638PATH_SEPARATOR
639SHELL'
640ac_subst_files=''
641ac_user_opts='
642enable_option_checking
643'
644      ac_precious_vars='build_alias
645host_alias
646target_alias
647MKOCTFILE
648OCTAVE
649CXX
650CXXFLAGS
651LDFLAGS
652LIBS
653CPPFLAGS
654CCC
655PKG_CONFIG
656PKG_CONFIG_PATH
657PKG_CONFIG_LIBDIR
658GDAL_CFLAGS
659GDAL_LIBS
660GDAL_CONFIG'
661
662
663# Initialize some variables set by options.
664ac_init_help=
665ac_init_version=false
666ac_unrecognized_opts=
667ac_unrecognized_sep=
668# The variables have the same names as the options, with
669# dashes changed to underlines.
670cache_file=/dev/null
671exec_prefix=NONE
672no_create=
673no_recursion=
674prefix=NONE
675program_prefix=NONE
676program_suffix=NONE
677program_transform_name=s,x,x,
678silent=
679site=
680srcdir=
681verbose=
682x_includes=NONE
683x_libraries=NONE
684
685# Installation directory options.
686# These are left unexpanded so users can "make install exec_prefix=/foo"
687# and all the variables that are supposed to be based on exec_prefix
688# by default will actually change.
689# Use braces instead of parens because sh, perl, etc. also accept them.
690# (The list follows the same order as the GNU Coding Standards.)
691bindir='${exec_prefix}/bin'
692sbindir='${exec_prefix}/sbin'
693libexecdir='${exec_prefix}/libexec'
694datarootdir='${prefix}/share'
695datadir='${datarootdir}'
696sysconfdir='${prefix}/etc'
697sharedstatedir='${prefix}/com'
698localstatedir='${prefix}/var'
699runstatedir='${localstatedir}/run'
700includedir='${prefix}/include'
701oldincludedir='/usr/include'
702docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
703infodir='${datarootdir}/info'
704htmldir='${docdir}'
705dvidir='${docdir}'
706pdfdir='${docdir}'
707psdir='${docdir}'
708libdir='${exec_prefix}/lib'
709localedir='${datarootdir}/locale'
710mandir='${datarootdir}/man'
711
712ac_prev=
713ac_dashdash=
714for ac_option
715do
716  # If the previous option needs an argument, assign it.
717  if test -n "$ac_prev"; then
718    eval $ac_prev=\$ac_option
719    ac_prev=
720    continue
721  fi
722
723  case $ac_option in
724  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
725  *=)   ac_optarg= ;;
726  *)    ac_optarg=yes ;;
727  esac
728
729  # Accept the important Cygnus configure options, so we can diagnose typos.
730
731  case $ac_dashdash$ac_option in
732  --)
733    ac_dashdash=yes ;;
734
735  -bindir | --bindir | --bindi | --bind | --bin | --bi)
736    ac_prev=bindir ;;
737  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
738    bindir=$ac_optarg ;;
739
740  -build | --build | --buil | --bui | --bu)
741    ac_prev=build_alias ;;
742  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
743    build_alias=$ac_optarg ;;
744
745  -cache-file | --cache-file | --cache-fil | --cache-fi \
746  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
747    ac_prev=cache_file ;;
748  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
749  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
750    cache_file=$ac_optarg ;;
751
752  --config-cache | -C)
753    cache_file=config.cache ;;
754
755  -datadir | --datadir | --datadi | --datad)
756    ac_prev=datadir ;;
757  -datadir=* | --datadir=* | --datadi=* | --datad=*)
758    datadir=$ac_optarg ;;
759
760  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
761  | --dataroo | --dataro | --datar)
762    ac_prev=datarootdir ;;
763  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
764  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
765    datarootdir=$ac_optarg ;;
766
767  -disable-* | --disable-*)
768    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
769    # Reject names that are not valid shell variable names.
770    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
771      as_fn_error $? "invalid feature name: $ac_useropt"
772    ac_useropt_orig=$ac_useropt
773    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
774    case $ac_user_opts in
775      *"
776"enable_$ac_useropt"
777"*) ;;
778      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
779	 ac_unrecognized_sep=', ';;
780    esac
781    eval enable_$ac_useropt=no ;;
782
783  -docdir | --docdir | --docdi | --doc | --do)
784    ac_prev=docdir ;;
785  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
786    docdir=$ac_optarg ;;
787
788  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
789    ac_prev=dvidir ;;
790  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
791    dvidir=$ac_optarg ;;
792
793  -enable-* | --enable-*)
794    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795    # Reject names that are not valid shell variable names.
796    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
797      as_fn_error $? "invalid feature name: $ac_useropt"
798    ac_useropt_orig=$ac_useropt
799    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
800    case $ac_user_opts in
801      *"
802"enable_$ac_useropt"
803"*) ;;
804      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
805	 ac_unrecognized_sep=', ';;
806    esac
807    eval enable_$ac_useropt=\$ac_optarg ;;
808
809  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
810  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
811  | --exec | --exe | --ex)
812    ac_prev=exec_prefix ;;
813  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
814  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
815  | --exec=* | --exe=* | --ex=*)
816    exec_prefix=$ac_optarg ;;
817
818  -gas | --gas | --ga | --g)
819    # Obsolete; use --with-gas.
820    with_gas=yes ;;
821
822  -help | --help | --hel | --he | -h)
823    ac_init_help=long ;;
824  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
825    ac_init_help=recursive ;;
826  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
827    ac_init_help=short ;;
828
829  -host | --host | --hos | --ho)
830    ac_prev=host_alias ;;
831  -host=* | --host=* | --hos=* | --ho=*)
832    host_alias=$ac_optarg ;;
833
834  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
835    ac_prev=htmldir ;;
836  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
837  | --ht=*)
838    htmldir=$ac_optarg ;;
839
840  -includedir | --includedir | --includedi | --included | --include \
841  | --includ | --inclu | --incl | --inc)
842    ac_prev=includedir ;;
843  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
844  | --includ=* | --inclu=* | --incl=* | --inc=*)
845    includedir=$ac_optarg ;;
846
847  -infodir | --infodir | --infodi | --infod | --info | --inf)
848    ac_prev=infodir ;;
849  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
850    infodir=$ac_optarg ;;
851
852  -libdir | --libdir | --libdi | --libd)
853    ac_prev=libdir ;;
854  -libdir=* | --libdir=* | --libdi=* | --libd=*)
855    libdir=$ac_optarg ;;
856
857  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
858  | --libexe | --libex | --libe)
859    ac_prev=libexecdir ;;
860  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
861  | --libexe=* | --libex=* | --libe=*)
862    libexecdir=$ac_optarg ;;
863
864  -localedir | --localedir | --localedi | --localed | --locale)
865    ac_prev=localedir ;;
866  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
867    localedir=$ac_optarg ;;
868
869  -localstatedir | --localstatedir | --localstatedi | --localstated \
870  | --localstate | --localstat | --localsta | --localst | --locals)
871    ac_prev=localstatedir ;;
872  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
873  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
874    localstatedir=$ac_optarg ;;
875
876  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
877    ac_prev=mandir ;;
878  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
879    mandir=$ac_optarg ;;
880
881  -nfp | --nfp | --nf)
882    # Obsolete; use --without-fp.
883    with_fp=no ;;
884
885  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
886  | --no-cr | --no-c | -n)
887    no_create=yes ;;
888
889  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
890  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
891    no_recursion=yes ;;
892
893  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
894  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
895  | --oldin | --oldi | --old | --ol | --o)
896    ac_prev=oldincludedir ;;
897  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
898  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
899  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
900    oldincludedir=$ac_optarg ;;
901
902  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
903    ac_prev=prefix ;;
904  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
905    prefix=$ac_optarg ;;
906
907  -program-prefix | --program-prefix | --program-prefi | --program-pref \
908  | --program-pre | --program-pr | --program-p)
909    ac_prev=program_prefix ;;
910  -program-prefix=* | --program-prefix=* | --program-prefi=* \
911  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
912    program_prefix=$ac_optarg ;;
913
914  -program-suffix | --program-suffix | --program-suffi | --program-suff \
915  | --program-suf | --program-su | --program-s)
916    ac_prev=program_suffix ;;
917  -program-suffix=* | --program-suffix=* | --program-suffi=* \
918  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
919    program_suffix=$ac_optarg ;;
920
921  -program-transform-name | --program-transform-name \
922  | --program-transform-nam | --program-transform-na \
923  | --program-transform-n | --program-transform- \
924  | --program-transform | --program-transfor \
925  | --program-transfo | --program-transf \
926  | --program-trans | --program-tran \
927  | --progr-tra | --program-tr | --program-t)
928    ac_prev=program_transform_name ;;
929  -program-transform-name=* | --program-transform-name=* \
930  | --program-transform-nam=* | --program-transform-na=* \
931  | --program-transform-n=* | --program-transform-=* \
932  | --program-transform=* | --program-transfor=* \
933  | --program-transfo=* | --program-transf=* \
934  | --program-trans=* | --program-tran=* \
935  | --progr-tra=* | --program-tr=* | --program-t=*)
936    program_transform_name=$ac_optarg ;;
937
938  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
939    ac_prev=pdfdir ;;
940  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
941    pdfdir=$ac_optarg ;;
942
943  -psdir | --psdir | --psdi | --psd | --ps)
944    ac_prev=psdir ;;
945  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
946    psdir=$ac_optarg ;;
947
948  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
949  | -silent | --silent | --silen | --sile | --sil)
950    silent=yes ;;
951
952  -runstatedir | --runstatedir | --runstatedi | --runstated \
953  | --runstate | --runstat | --runsta | --runst | --runs \
954  | --run | --ru | --r)
955    ac_prev=runstatedir ;;
956  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
957  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
958  | --run=* | --ru=* | --r=*)
959    runstatedir=$ac_optarg ;;
960
961  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
962    ac_prev=sbindir ;;
963  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
964  | --sbi=* | --sb=*)
965    sbindir=$ac_optarg ;;
966
967  -sharedstatedir | --sharedstatedir | --sharedstatedi \
968  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
969  | --sharedst | --shareds | --shared | --share | --shar \
970  | --sha | --sh)
971    ac_prev=sharedstatedir ;;
972  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
973  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
974  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
975  | --sha=* | --sh=*)
976    sharedstatedir=$ac_optarg ;;
977
978  -site | --site | --sit)
979    ac_prev=site ;;
980  -site=* | --site=* | --sit=*)
981    site=$ac_optarg ;;
982
983  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
984    ac_prev=srcdir ;;
985  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
986    srcdir=$ac_optarg ;;
987
988  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
989  | --syscon | --sysco | --sysc | --sys | --sy)
990    ac_prev=sysconfdir ;;
991  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
992  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
993    sysconfdir=$ac_optarg ;;
994
995  -target | --target | --targe | --targ | --tar | --ta | --t)
996    ac_prev=target_alias ;;
997  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
998    target_alias=$ac_optarg ;;
999
1000  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1001    verbose=yes ;;
1002
1003  -version | --version | --versio | --versi | --vers | -V)
1004    ac_init_version=: ;;
1005
1006  -with-* | --with-*)
1007    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1008    # Reject names that are not valid shell variable names.
1009    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010      as_fn_error $? "invalid package name: $ac_useropt"
1011    ac_useropt_orig=$ac_useropt
1012    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013    case $ac_user_opts in
1014      *"
1015"with_$ac_useropt"
1016"*) ;;
1017      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1018	 ac_unrecognized_sep=', ';;
1019    esac
1020    eval with_$ac_useropt=\$ac_optarg ;;
1021
1022  -without-* | --without-*)
1023    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1024    # Reject names that are not valid shell variable names.
1025    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026      as_fn_error $? "invalid package name: $ac_useropt"
1027    ac_useropt_orig=$ac_useropt
1028    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029    case $ac_user_opts in
1030      *"
1031"with_$ac_useropt"
1032"*) ;;
1033      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1034	 ac_unrecognized_sep=', ';;
1035    esac
1036    eval with_$ac_useropt=no ;;
1037
1038  --x)
1039    # Obsolete; use --with-x.
1040    with_x=yes ;;
1041
1042  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1043  | --x-incl | --x-inc | --x-in | --x-i)
1044    ac_prev=x_includes ;;
1045  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1046  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1047    x_includes=$ac_optarg ;;
1048
1049  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1050  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1051    ac_prev=x_libraries ;;
1052  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1053  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1054    x_libraries=$ac_optarg ;;
1055
1056  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1057Try \`$0 --help' for more information"
1058    ;;
1059
1060  *=*)
1061    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1062    # Reject names that are not valid shell variable names.
1063    case $ac_envvar in #(
1064      '' | [0-9]* | *[!_$as_cr_alnum]* )
1065      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1066    esac
1067    eval $ac_envvar=\$ac_optarg
1068    export $ac_envvar ;;
1069
1070  *)
1071    # FIXME: should be removed in autoconf 3.0.
1072    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1073    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1075    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1076    ;;
1077
1078  esac
1079done
1080
1081if test -n "$ac_prev"; then
1082  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1083  as_fn_error $? "missing argument to $ac_option"
1084fi
1085
1086if test -n "$ac_unrecognized_opts"; then
1087  case $enable_option_checking in
1088    no) ;;
1089    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1090    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1091  esac
1092fi
1093
1094# Check all directory arguments for consistency.
1095for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1096		datadir sysconfdir sharedstatedir localstatedir includedir \
1097		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1098		libdir localedir mandir runstatedir
1099do
1100  eval ac_val=\$$ac_var
1101  # Remove trailing slashes.
1102  case $ac_val in
1103    */ )
1104      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1105      eval $ac_var=\$ac_val;;
1106  esac
1107  # Be sure to have absolute directory names.
1108  case $ac_val in
1109    [\\/$]* | ?:[\\/]* )  continue;;
1110    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1111  esac
1112  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1113done
1114
1115# There might be people who depend on the old broken behavior: `$host'
1116# used to hold the argument of --host etc.
1117# FIXME: To remove some day.
1118build=$build_alias
1119host=$host_alias
1120target=$target_alias
1121
1122# FIXME: To remove some day.
1123if test "x$host_alias" != x; then
1124  if test "x$build_alias" = x; then
1125    cross_compiling=maybe
1126  elif test "x$build_alias" != "x$host_alias"; then
1127    cross_compiling=yes
1128  fi
1129fi
1130
1131ac_tool_prefix=
1132test -n "$host_alias" && ac_tool_prefix=$host_alias-
1133
1134test "$silent" = yes && exec 6>/dev/null
1135
1136
1137ac_pwd=`pwd` && test -n "$ac_pwd" &&
1138ac_ls_di=`ls -di .` &&
1139ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1140  as_fn_error $? "working directory cannot be determined"
1141test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1142  as_fn_error $? "pwd does not report name of working directory"
1143
1144
1145# Find the source files, if location was not specified.
1146if test -z "$srcdir"; then
1147  ac_srcdir_defaulted=yes
1148  # Try the directory containing this script, then the parent directory.
1149  ac_confdir=`$as_dirname -- "$as_myself" ||
1150$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151	 X"$as_myself" : 'X\(//\)[^/]' \| \
1152	 X"$as_myself" : 'X\(//\)$' \| \
1153	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1154$as_echo X"$as_myself" |
1155    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156	    s//\1/
1157	    q
1158	  }
1159	  /^X\(\/\/\)[^/].*/{
1160	    s//\1/
1161	    q
1162	  }
1163	  /^X\(\/\/\)$/{
1164	    s//\1/
1165	    q
1166	  }
1167	  /^X\(\/\).*/{
1168	    s//\1/
1169	    q
1170	  }
1171	  s/.*/./; q'`
1172  srcdir=$ac_confdir
1173  if test ! -r "$srcdir/$ac_unique_file"; then
1174    srcdir=..
1175  fi
1176else
1177  ac_srcdir_defaulted=no
1178fi
1179if test ! -r "$srcdir/$ac_unique_file"; then
1180  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1181  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1182fi
1183ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1184ac_abs_confdir=`(
1185	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1186	pwd)`
1187# When building in place, set srcdir=.
1188if test "$ac_abs_confdir" = "$ac_pwd"; then
1189  srcdir=.
1190fi
1191# Remove unnecessary trailing slashes from srcdir.
1192# Double slashes in file names in object file debugging info
1193# mess up M-x gdb in Emacs.
1194case $srcdir in
1195*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1196esac
1197for ac_var in $ac_precious_vars; do
1198  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1199  eval ac_env_${ac_var}_value=\$${ac_var}
1200  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1201  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1202done
1203
1204#
1205# Report the --help message.
1206#
1207if test "$ac_init_help" = "long"; then
1208  # Omit some internal or obsolete options to make the list less imposing.
1209  # This message is too long to be a string in the A/UX 3.1 sh.
1210  cat <<_ACEOF
1211\`configure' configures Octave-Forge mapping package 1.4.1 to adapt to many kinds of systems.
1212
1213Usage: $0 [OPTION]... [VAR=VALUE]...
1214
1215To assign environment variables (e.g., CC, CFLAGS...), specify them as
1216VAR=VALUE.  See below for descriptions of some of the useful variables.
1217
1218Defaults for the options are specified in brackets.
1219
1220Configuration:
1221  -h, --help              display this help and exit
1222      --help=short        display options specific to this package
1223      --help=recursive    display the short help of all the included packages
1224  -V, --version           display version information and exit
1225  -q, --quiet, --silent   do not print \`checking ...' messages
1226      --cache-file=FILE   cache test results in FILE [disabled]
1227  -C, --config-cache      alias for \`--cache-file=config.cache'
1228  -n, --no-create         do not create output files
1229      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1230
1231Installation directories:
1232  --prefix=PREFIX         install architecture-independent files in PREFIX
1233                          [$ac_default_prefix]
1234  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1235                          [PREFIX]
1236
1237By default, \`make install' will install all the files in
1238\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1239an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1240for instance \`--prefix=\$HOME'.
1241
1242For better control, use the options below.
1243
1244Fine tuning of the installation directories:
1245  --bindir=DIR            user executables [EPREFIX/bin]
1246  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1247  --libexecdir=DIR        program executables [EPREFIX/libexec]
1248  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1249  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1250  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1251  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1252  --libdir=DIR            object code libraries [EPREFIX/lib]
1253  --includedir=DIR        C header files [PREFIX/include]
1254  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1255  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1256  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1257  --infodir=DIR           info documentation [DATAROOTDIR/info]
1258  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1259  --mandir=DIR            man documentation [DATAROOTDIR/man]
1260  --docdir=DIR            documentation root
1261                          [DATAROOTDIR/doc/octave-forge-mapping-package]
1262  --htmldir=DIR           html documentation [DOCDIR]
1263  --dvidir=DIR            dvi documentation [DOCDIR]
1264  --pdfdir=DIR            pdf documentation [DOCDIR]
1265  --psdir=DIR             ps documentation [DOCDIR]
1266_ACEOF
1267
1268  cat <<\_ACEOF
1269_ACEOF
1270fi
1271
1272if test -n "$ac_init_help"; then
1273  case $ac_init_help in
1274     short | recursive ) echo "Configuration of Octave-Forge mapping package 1.4.1:";;
1275   esac
1276  cat <<\_ACEOF
1277
1278Some influential environment variables:
1279  MKOCTFILE   Compiler for Octave dynamic-load modules (default=mkoctfile
1280              -Wall)
1281  OCTAVE      Octave executable for the installation (default=octave)
1282  CXX         C++ compiler command
1283  CXXFLAGS    C++ compiler flags
1284  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1285              nonstandard directory <lib dir>
1286  LIBS        libraries to pass to the linker, e.g. -l<library>
1287  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1288              you have headers in a nonstandard directory <include dir>
1289  PKG_CONFIG  path to pkg-config utility
1290  PKG_CONFIG_PATH
1291              directories to add to pkg-config's search path
1292  PKG_CONFIG_LIBDIR
1293              path overriding pkg-config's built-in search path
1294  GDAL_CFLAGS C compiler flags for GDAL, overriding pkg-config
1295  GDAL_LIBS   linker flags for GDAL, overriding pkg-config
1296  GDAL_CONFIG path to gdal-config utility
1297
1298Use these variables to override the choices made by `configure' or to help
1299it to find libraries and programs with nonstandard names/locations.
1300
1301Report bugs to the package provider.
1302_ACEOF
1303ac_status=$?
1304fi
1305
1306if test "$ac_init_help" = "recursive"; then
1307  # If there are subdirs, report their specific --help.
1308  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1309    test -d "$ac_dir" ||
1310      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1311      continue
1312    ac_builddir=.
1313
1314case "$ac_dir" in
1315.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1316*)
1317  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1318  # A ".." for each directory in $ac_dir_suffix.
1319  ac_top_builddir_sub=`$as_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 ;;
1324esac
1325ac_abs_top_builddir=$ac_pwd
1326ac_abs_builddir=$ac_pwd$ac_dir_suffix
1327# for backward compatibility:
1328ac_top_builddir=$ac_top_build_prefix
1329
1330case $srcdir in
1331  .)  # We are building in place.
1332    ac_srcdir=.
1333    ac_top_srcdir=$ac_top_builddir_sub
1334    ac_abs_top_srcdir=$ac_pwd ;;
1335  [\\/]* | ?:[\\/]* )  # Absolute name.
1336    ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
1343esac
1344ac_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
1354    else
1355      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1356    fi || ac_status=$?
1357    cd "$ac_pwd" || { ac_status=$?; break; }
1358  done
1359fi
1360
1361test -n "$ac_init_help" && exit $ac_status
1362if $ac_init_version; then
1363  cat <<\_ACEOF
1364Octave-Forge mapping package configure 1.4.1
1365generated by GNU Autoconf 2.69
1366
1367Copyright (C) 2012 Free Software Foundation, Inc.
1368This configure script is free software; the Free Software Foundation
1369gives unlimited permission to copy, distribute and modify it.
1370_ACEOF
1371  exit
1372fi
1373
1374## ------------------------ ##
1375## Autoconf initialization. ##
1376## ------------------------ ##
1377
1378# ac_fn_cxx_try_compile LINENO
1379# ----------------------------
1380# Try to compile conftest.$ac_ext, and return whether this succeeded.
1381ac_fn_cxx_try_compile ()
1382{
1383  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1384  rm -f conftest.$ac_objext
1385  if { { ac_try="$ac_compile"
1386case "(($ac_try" in
1387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1388  *) ac_try_echo=$ac_try;;
1389esac
1390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1391$as_echo "$ac_try_echo"; } >&5
1392  (eval "$ac_compile") 2>conftest.err
1393  ac_status=$?
1394  if test -s conftest.err; then
1395    grep -v '^ *+' conftest.err >conftest.er1
1396    cat conftest.er1 >&5
1397    mv -f conftest.er1 conftest.err
1398  fi
1399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1400  test $ac_status = 0; } && {
1401	 test -z "$ac_cxx_werror_flag" ||
1402	 test ! -s conftest.err
1403       } && test -s conftest.$ac_objext; then :
1404  ac_retval=0
1405else
1406  $as_echo "$as_me: failed program was:" >&5
1407sed 's/^/| /' conftest.$ac_ext >&5
1408
1409	ac_retval=1
1410fi
1411  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1412  as_fn_set_status $ac_retval
1413
1414} # ac_fn_cxx_try_compile
1415
1416# ac_fn_cxx_try_link LINENO
1417# -------------------------
1418# Try to link conftest.$ac_ext, and return whether this succeeded.
1419ac_fn_cxx_try_link ()
1420{
1421  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1422  rm -f conftest.$ac_objext conftest$ac_exeext
1423  if { { ac_try="$ac_link"
1424case "(($ac_try" in
1425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1426  *) ac_try_echo=$ac_try;;
1427esac
1428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1429$as_echo "$ac_try_echo"; } >&5
1430  (eval "$ac_link") 2>conftest.err
1431  ac_status=$?
1432  if test -s conftest.err; then
1433    grep -v '^ *+' conftest.err >conftest.er1
1434    cat conftest.er1 >&5
1435    mv -f conftest.er1 conftest.err
1436  fi
1437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1438  test $ac_status = 0; } && {
1439	 test -z "$ac_cxx_werror_flag" ||
1440	 test ! -s conftest.err
1441       } && test -s conftest$ac_exeext && {
1442	 test "$cross_compiling" = yes ||
1443	 test -x conftest$ac_exeext
1444       }; then :
1445  ac_retval=0
1446else
1447  $as_echo "$as_me: failed program was:" >&5
1448sed 's/^/| /' conftest.$ac_ext >&5
1449
1450	ac_retval=1
1451fi
1452  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1453  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1454  # interfere with the next link command; also delete a directory that is
1455  # left behind by Apple's compiler.  We do this before executing the actions.
1456  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1457  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1458  as_fn_set_status $ac_retval
1459
1460} # ac_fn_cxx_try_link
1461cat >config.log <<_ACEOF
1462This file contains any messages produced by compilers while
1463running configure, to aid debugging if configure makes a mistake.
1464
1465It was created by Octave-Forge mapping package $as_me 1.4.1, which was
1466generated by GNU Autoconf 2.69.  Invocation command line was
1467
1468  $ $0 $@
1469
1470_ACEOF
1471exec 5>>config.log
1472{
1473cat <<_ASUNAME
1474## --------- ##
1475## Platform. ##
1476## --------- ##
1477
1478hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1479uname -m = `(uname -m) 2>/dev/null || echo unknown`
1480uname -r = `(uname -r) 2>/dev/null || echo unknown`
1481uname -s = `(uname -s) 2>/dev/null || echo unknown`
1482uname -v = `(uname -v) 2>/dev/null || echo unknown`
1483
1484/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1485/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1486
1487/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1488/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1489/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1490/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1491/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1492/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1493/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1494
1495_ASUNAME
1496
1497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498for as_dir in $PATH
1499do
1500  IFS=$as_save_IFS
1501  test -z "$as_dir" && as_dir=.
1502    $as_echo "PATH: $as_dir"
1503  done
1504IFS=$as_save_IFS
1505
1506} >&5
1507
1508cat >&5 <<_ACEOF
1509
1510
1511## ----------- ##
1512## Core tests. ##
1513## ----------- ##
1514
1515_ACEOF
1516
1517
1518# Keep a trace of the command line.
1519# Strip out --no-create and --no-recursion so they do not pile up.
1520# Strip out --silent because we don't want to record it for future runs.
1521# Also quote any args containing shell meta-characters.
1522# Make two passes to allow for proper duplicate-argument suppression.
1523ac_configure_args=
1524ac_configure_args0=
1525ac_configure_args1=
1526ac_must_keep_next=false
1527for ac_pass in 1 2
1528do
1529  for ac_arg
1530  do
1531    case $ac_arg in
1532    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1533    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1534    | -silent | --silent | --silen | --sile | --sil)
1535      continue ;;
1536    *\'*)
1537      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1538    esac
1539    case $ac_pass in
1540    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1541    2)
1542      as_fn_append ac_configure_args1 " '$ac_arg'"
1543      if test $ac_must_keep_next = true; then
1544	ac_must_keep_next=false # Got value, back to normal.
1545      else
1546	case $ac_arg in
1547	  *=* | --config-cache | -C | -disable-* | --disable-* \
1548	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1549	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1550	  | -with-* | --with-* | -without-* | --without-* | --x)
1551	    case "$ac_configure_args0 " in
1552	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1553	    esac
1554	    ;;
1555	  -* ) ac_must_keep_next=true ;;
1556	esac
1557      fi
1558      as_fn_append ac_configure_args " '$ac_arg'"
1559      ;;
1560    esac
1561  done
1562done
1563{ ac_configure_args0=; unset ac_configure_args0;}
1564{ ac_configure_args1=; unset ac_configure_args1;}
1565
1566# When interrupted or exit'd, cleanup temporary files, and complete
1567# config.log.  We remove comments because anyway the quotes in there
1568# would cause problems or look ugly.
1569# WARNING: Use '\'' to represent an apostrophe within the trap.
1570# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1571trap 'exit_status=$?
1572  # Save into config.log some information that might help in debugging.
1573  {
1574    echo
1575
1576    $as_echo "## ---------------- ##
1577## Cache variables. ##
1578## ---------------- ##"
1579    echo
1580    # The following way of writing the cache mishandles newlines in values,
1581(
1582  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1583    eval ac_val=\$$ac_var
1584    case $ac_val in #(
1585    *${as_nl}*)
1586      case $ac_var in #(
1587      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1588$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1589      esac
1590      case $ac_var in #(
1591      _ | IFS | as_nl) ;; #(
1592      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1593      *) { eval $ac_var=; unset $ac_var;} ;;
1594      esac ;;
1595    esac
1596  done
1597  (set) 2>&1 |
1598    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1599    *${as_nl}ac_space=\ *)
1600      sed -n \
1601	"s/'\''/'\''\\\\'\'''\''/g;
1602	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1603      ;; #(
1604    *)
1605      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1606      ;;
1607    esac |
1608    sort
1609)
1610    echo
1611
1612    $as_echo "## ----------------- ##
1613## Output variables. ##
1614## ----------------- ##"
1615    echo
1616    for ac_var in $ac_subst_vars
1617    do
1618      eval ac_val=\$$ac_var
1619      case $ac_val in
1620      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1621      esac
1622      $as_echo "$ac_var='\''$ac_val'\''"
1623    done | sort
1624    echo
1625
1626    if test -n "$ac_subst_files"; then
1627      $as_echo "## ------------------- ##
1628## File substitutions. ##
1629## ------------------- ##"
1630      echo
1631      for ac_var in $ac_subst_files
1632      do
1633	eval ac_val=\$$ac_var
1634	case $ac_val in
1635	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1636	esac
1637	$as_echo "$ac_var='\''$ac_val'\''"
1638      done | sort
1639      echo
1640    fi
1641
1642    if test -s confdefs.h; then
1643      $as_echo "## ----------- ##
1644## confdefs.h. ##
1645## ----------- ##"
1646      echo
1647      cat confdefs.h
1648      echo
1649    fi
1650    test "$ac_signal" != 0 &&
1651      $as_echo "$as_me: caught signal $ac_signal"
1652    $as_echo "$as_me: exit $exit_status"
1653  } >&5
1654  rm -f core *.core core.conftest.* &&
1655    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1656    exit $exit_status
1657' 0
1658for ac_signal in 1 2 13 15; do
1659  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1660done
1661ac_signal=0
1662
1663# confdefs.h avoids OS command line length limits that DEFS can exceed.
1664rm -f -r conftest* confdefs.h
1665
1666$as_echo "/* confdefs.h */" > confdefs.h
1667
1668# Predefined preprocessor variables.
1669
1670cat >>confdefs.h <<_ACEOF
1671#define PACKAGE_NAME "$PACKAGE_NAME"
1672_ACEOF
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1676_ACEOF
1677
1678cat >>confdefs.h <<_ACEOF
1679#define PACKAGE_VERSION "$PACKAGE_VERSION"
1680_ACEOF
1681
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_STRING "$PACKAGE_STRING"
1684_ACEOF
1685
1686cat >>confdefs.h <<_ACEOF
1687#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1688_ACEOF
1689
1690cat >>confdefs.h <<_ACEOF
1691#define PACKAGE_URL "$PACKAGE_URL"
1692_ACEOF
1693
1694
1695# Let the site file select an alternate cache file if it wants to.
1696# Prefer an explicitly selected file to automatically selected ones.
1697ac_site_file1=NONE
1698ac_site_file2=NONE
1699if test -n "$CONFIG_SITE"; then
1700  # We do not want a PATH search for config.site.
1701  case $CONFIG_SITE in #((
1702    -*)  ac_site_file1=./$CONFIG_SITE;;
1703    */*) ac_site_file1=$CONFIG_SITE;;
1704    *)   ac_site_file1=./$CONFIG_SITE;;
1705  esac
1706elif test "x$prefix" != xNONE; then
1707  ac_site_file1=$prefix/share/config.site
1708  ac_site_file2=$prefix/etc/config.site
1709else
1710  ac_site_file1=$ac_default_prefix/share/config.site
1711  ac_site_file2=$ac_default_prefix/etc/config.site
1712fi
1713for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1714do
1715  test "x$ac_site_file" = xNONE && continue
1716  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1717    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1718$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1719    sed 's/^/| /' "$ac_site_file" >&5
1720    . "$ac_site_file" \
1721      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1723as_fn_error $? "failed to load site script $ac_site_file
1724See \`config.log' for more details" "$LINENO" 5; }
1725  fi
1726done
1727
1728if test -r "$cache_file"; then
1729  # Some versions of bash will fail to source /dev/null (special files
1730  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1731  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1732    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1733$as_echo "$as_me: loading cache $cache_file" >&6;}
1734    case $cache_file in
1735      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1736      *)                      . "./$cache_file";;
1737    esac
1738  fi
1739else
1740  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1741$as_echo "$as_me: creating cache $cache_file" >&6;}
1742  >$cache_file
1743fi
1744
1745# Check that the precious variables saved in the cache have kept the same
1746# value.
1747ac_cache_corrupted=false
1748for ac_var in $ac_precious_vars; do
1749  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1750  eval ac_new_set=\$ac_env_${ac_var}_set
1751  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1752  eval ac_new_val=\$ac_env_${ac_var}_value
1753  case $ac_old_set,$ac_new_set in
1754    set,)
1755      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1756$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1757      ac_cache_corrupted=: ;;
1758    ,set)
1759      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1760$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1761      ac_cache_corrupted=: ;;
1762    ,);;
1763    *)
1764      if test "x$ac_old_val" != "x$ac_new_val"; then
1765	# differences in whitespace do not lead to failure.
1766	ac_old_val_w=`echo x $ac_old_val`
1767	ac_new_val_w=`echo x $ac_new_val`
1768	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1769	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1770$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1771	  ac_cache_corrupted=:
1772	else
1773	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1774$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1775	  eval $ac_var=\$ac_old_val
1776	fi
1777	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1778$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1779	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1780$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1781      fi;;
1782  esac
1783  # Pass precious variables to config.status.
1784  if test "$ac_new_set" = set; then
1785    case $ac_new_val in
1786    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1787    *) ac_arg=$ac_var=$ac_new_val ;;
1788    esac
1789    case " $ac_configure_args " in
1790      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1791      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1792    esac
1793  fi
1794done
1795if $ac_cache_corrupted; then
1796  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1798  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1799$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1800  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1801fi
1802## -------------------- ##
1803## Main body of script. ##
1804## -------------------- ##
1805
1806ac_ext=c
1807ac_cpp='$CPP $CPPFLAGS'
1808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811
1812
1813ac_config_headers="$ac_config_headers config.h"
1814
1815
1816
1817if test -z "$MKOCTFILE"; then
1818  MKOCTFILE='mkoctfile -Wall'
1819fi
1820
1821if test -z "$OCTAVE"; then
1822  OCTAVE=octave
1823fi
1824
1825HAS_RAD2DEG=`$OCTAVE -qf --eval "printf ('%i', exist ('rad2deg'))"`
1826HAS_DEG2RAD=`$OCTAVE -qf --eval "printf ('%i', exist ('deg2rad'))"`
1827
1828if test "$HAS_RAD2DEG" == 0; then
1829  ac_config_files="$ac_config_files rad2deg.m"
1830
1831fi
1832if test "$HAS_DEG2RAD" == 0; then
1833  ac_config_files="$ac_config_files deg2rad.m"
1834
1835fi
1836
1837ac_ext=cpp
1838ac_cpp='$CXXCPP $CPPFLAGS'
1839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1842if test -z "$CXX"; then
1843  if test -n "$CCC"; then
1844    CXX=$CCC
1845  else
1846    if test -n "$ac_tool_prefix"; then
1847  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1848  do
1849    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1850set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1852$as_echo_n "checking for $ac_word... " >&6; }
1853if ${ac_cv_prog_CXX+:} false; then :
1854  $as_echo_n "(cached) " >&6
1855else
1856  if test -n "$CXX"; then
1857  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1858else
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862  IFS=$as_save_IFS
1863  test -z "$as_dir" && as_dir=.
1864    for ac_exec_ext in '' $ac_executable_extensions; do
1865  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1868    break 2
1869  fi
1870done
1871  done
1872IFS=$as_save_IFS
1873
1874fi
1875fi
1876CXX=$ac_cv_prog_CXX
1877if test -n "$CXX"; then
1878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
1879$as_echo "$CXX" >&6; }
1880else
1881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1882$as_echo "no" >&6; }
1883fi
1884
1885
1886    test -n "$CXX" && break
1887  done
1888fi
1889if test -z "$CXX"; then
1890  ac_ct_CXX=$CXX
1891  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
1892do
1893  # Extract the first word of "$ac_prog", so it can be a program name with args.
1894set dummy $ac_prog; ac_word=$2
1895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1896$as_echo_n "checking for $ac_word... " >&6; }
1897if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1898  $as_echo_n "(cached) " >&6
1899else
1900  if test -n "$ac_ct_CXX"; then
1901  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1902else
1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904for as_dir in $PATH
1905do
1906  IFS=$as_save_IFS
1907  test -z "$as_dir" && as_dir=.
1908    for ac_exec_ext in '' $ac_executable_extensions; do
1909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910    ac_cv_prog_ac_ct_CXX="$ac_prog"
1911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1912    break 2
1913  fi
1914done
1915  done
1916IFS=$as_save_IFS
1917
1918fi
1919fi
1920ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1921if test -n "$ac_ct_CXX"; then
1922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
1923$as_echo "$ac_ct_CXX" >&6; }
1924else
1925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1926$as_echo "no" >&6; }
1927fi
1928
1929
1930  test -n "$ac_ct_CXX" && break
1931done
1932
1933  if test "x$ac_ct_CXX" = x; then
1934    CXX="g++"
1935  else
1936    case $cross_compiling:$ac_tool_warned in
1937yes:)
1938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1940ac_tool_warned=yes ;;
1941esac
1942    CXX=$ac_ct_CXX
1943  fi
1944fi
1945
1946  fi
1947fi
1948# Provide some information about the compiler.
1949$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
1950set X $ac_compile
1951ac_compiler=$2
1952for ac_option in --version -v -V -qversion; do
1953  { { ac_try="$ac_compiler $ac_option >&5"
1954case "(($ac_try" in
1955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956  *) ac_try_echo=$ac_try;;
1957esac
1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959$as_echo "$ac_try_echo"; } >&5
1960  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1961  ac_status=$?
1962  if test -s conftest.err; then
1963    sed '10a\
1964... rest of stderr output deleted ...
1965         10q' conftest.err >conftest.er1
1966    cat conftest.er1 >&5
1967  fi
1968  rm -f conftest.er1 conftest.err
1969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970  test $ac_status = 0; }
1971done
1972
1973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h.  */
1975
1976int
1977main ()
1978{
1979
1980  ;
1981  return 0;
1982}
1983_ACEOF
1984ac_clean_files_save=$ac_clean_files
1985ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1986# Try to create an executable without -o first, disregard a.out.
1987# It will help us diagnose broken compilers, and finding out an intuition
1988# of exeext.
1989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
1990$as_echo_n "checking whether the C++ compiler works... " >&6; }
1991ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1992
1993# The possible output files:
1994ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1995
1996ac_rmfiles=
1997for ac_file in $ac_files
1998do
1999  case $ac_file in
2000    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2001    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2002  esac
2003done
2004rm -f $ac_rmfiles
2005
2006if { { ac_try="$ac_link_default"
2007case "(($ac_try" in
2008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009  *) ac_try_echo=$ac_try;;
2010esac
2011eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012$as_echo "$ac_try_echo"; } >&5
2013  (eval "$ac_link_default") 2>&5
2014  ac_status=$?
2015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016  test $ac_status = 0; }; then :
2017  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2018# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2019# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2020# so that the user can short-circuit this test for compilers unknown to
2021# Autoconf.
2022for ac_file in $ac_files ''
2023do
2024  test -f "$ac_file" || continue
2025  case $ac_file in
2026    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2027	;;
2028    [ab].out )
2029	# We found the default executable, but exeext='' is most
2030	# certainly right.
2031	break;;
2032    *.* )
2033	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2034	then :; else
2035	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2036	fi
2037	# We set ac_cv_exeext here because the later test for it is not
2038	# safe: cross compilers may not add the suffix if given an `-o'
2039	# argument, so we may need to know it at that point already.
2040	# Even if this section looks crufty: it has the advantage of
2041	# actually working.
2042	break;;
2043    * )
2044	break;;
2045  esac
2046done
2047test "$ac_cv_exeext" = no && ac_cv_exeext=
2048
2049else
2050  ac_file=''
2051fi
2052if test -z "$ac_file"; then :
2053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2054$as_echo "no" >&6; }
2055$as_echo "$as_me: failed program was:" >&5
2056sed 's/^/| /' conftest.$ac_ext >&5
2057
2058{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2060as_fn_error 77 "C++ compiler cannot create executables
2061See \`config.log' for more details" "$LINENO" 5; }
2062else
2063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2064$as_echo "yes" >&6; }
2065fi
2066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2067$as_echo_n "checking for C++ compiler default output file name... " >&6; }
2068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2069$as_echo "$ac_file" >&6; }
2070ac_exeext=$ac_cv_exeext
2071
2072rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2073ac_clean_files=$ac_clean_files_save
2074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2075$as_echo_n "checking for suffix of executables... " >&6; }
2076if { { ac_try="$ac_link"
2077case "(($ac_try" in
2078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079  *) ac_try_echo=$ac_try;;
2080esac
2081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082$as_echo "$ac_try_echo"; } >&5
2083  (eval "$ac_link") 2>&5
2084  ac_status=$?
2085  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086  test $ac_status = 0; }; then :
2087  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2088# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2089# work properly (i.e., refer to `conftest.exe'), while it won't with
2090# `rm'.
2091for ac_file in conftest.exe conftest conftest.*; do
2092  test -f "$ac_file" || continue
2093  case $ac_file in
2094    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2095    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096	  break;;
2097    * ) break;;
2098  esac
2099done
2100else
2101  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2103as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2104See \`config.log' for more details" "$LINENO" 5; }
2105fi
2106rm -f conftest conftest$ac_cv_exeext
2107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2108$as_echo "$ac_cv_exeext" >&6; }
2109
2110rm -f conftest.$ac_ext
2111EXEEXT=$ac_cv_exeext
2112ac_exeext=$EXEEXT
2113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h.  */
2115#include <stdio.h>
2116int
2117main ()
2118{
2119FILE *f = fopen ("conftest.out", "w");
2120 return ferror (f) || fclose (f) != 0;
2121
2122  ;
2123  return 0;
2124}
2125_ACEOF
2126ac_clean_files="$ac_clean_files conftest.out"
2127# Check that the compiler produces executables we can run.  If not, either
2128# the compiler is broken, or we cross compile.
2129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2130$as_echo_n "checking whether we are cross compiling... " >&6; }
2131if test "$cross_compiling" != yes; then
2132  { { ac_try="$ac_link"
2133case "(($ac_try" in
2134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135  *) ac_try_echo=$ac_try;;
2136esac
2137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138$as_echo "$ac_try_echo"; } >&5
2139  (eval "$ac_link") 2>&5
2140  ac_status=$?
2141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142  test $ac_status = 0; }
2143  if { ac_try='./conftest$ac_cv_exeext'
2144  { { case "(($ac_try" in
2145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146  *) ac_try_echo=$ac_try;;
2147esac
2148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2149$as_echo "$ac_try_echo"; } >&5
2150  (eval "$ac_try") 2>&5
2151  ac_status=$?
2152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153  test $ac_status = 0; }; }; then
2154    cross_compiling=no
2155  else
2156    if test "$cross_compiling" = maybe; then
2157	cross_compiling=yes
2158    else
2159	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161as_fn_error $? "cannot run C++ compiled programs.
2162If you meant to cross compile, use \`--host'.
2163See \`config.log' for more details" "$LINENO" 5; }
2164    fi
2165  fi
2166fi
2167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2168$as_echo "$cross_compiling" >&6; }
2169
2170rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2171ac_clean_files=$ac_clean_files_save
2172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2173$as_echo_n "checking for suffix of object files... " >&6; }
2174if ${ac_cv_objext+:} false; then :
2175  $as_echo_n "(cached) " >&6
2176else
2177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h.  */
2179
2180int
2181main ()
2182{
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188rm -f conftest.o conftest.obj
2189if { { ac_try="$ac_compile"
2190case "(($ac_try" in
2191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192  *) ac_try_echo=$ac_try;;
2193esac
2194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195$as_echo "$ac_try_echo"; } >&5
2196  (eval "$ac_compile") 2>&5
2197  ac_status=$?
2198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199  test $ac_status = 0; }; then :
2200  for ac_file in conftest.o conftest.obj conftest.*; do
2201  test -f "$ac_file" || continue;
2202  case $ac_file in
2203    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2204    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2205       break;;
2206  esac
2207done
2208else
2209  $as_echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214as_fn_error $? "cannot compute suffix of object files: cannot compile
2215See \`config.log' for more details" "$LINENO" 5; }
2216fi
2217rm -f conftest.$ac_cv_objext conftest.$ac_ext
2218fi
2219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2220$as_echo "$ac_cv_objext" >&6; }
2221OBJEXT=$ac_cv_objext
2222ac_objext=$OBJEXT
2223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2224$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2225if ${ac_cv_cxx_compiler_gnu+:} false; then :
2226  $as_echo_n "(cached) " >&6
2227else
2228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229/* end confdefs.h.  */
2230
2231int
2232main ()
2233{
2234#ifndef __GNUC__
2235       choke me
2236#endif
2237
2238  ;
2239  return 0;
2240}
2241_ACEOF
2242if ac_fn_cxx_try_compile "$LINENO"; then :
2243  ac_compiler_gnu=yes
2244else
2245  ac_compiler_gnu=no
2246fi
2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2249
2250fi
2251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2252$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2253if test $ac_compiler_gnu = yes; then
2254  GXX=yes
2255else
2256  GXX=
2257fi
2258ac_test_CXXFLAGS=${CXXFLAGS+set}
2259ac_save_CXXFLAGS=$CXXFLAGS
2260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2261$as_echo_n "checking whether $CXX accepts -g... " >&6; }
2262if ${ac_cv_prog_cxx_g+:} false; then :
2263  $as_echo_n "(cached) " >&6
2264else
2265  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2266   ac_cxx_werror_flag=yes
2267   ac_cv_prog_cxx_g=no
2268   CXXFLAGS="-g"
2269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270/* end confdefs.h.  */
2271
2272int
2273main ()
2274{
2275
2276  ;
2277  return 0;
2278}
2279_ACEOF
2280if ac_fn_cxx_try_compile "$LINENO"; then :
2281  ac_cv_prog_cxx_g=yes
2282else
2283  CXXFLAGS=""
2284      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285/* end confdefs.h.  */
2286
2287int
2288main ()
2289{
2290
2291  ;
2292  return 0;
2293}
2294_ACEOF
2295if ac_fn_cxx_try_compile "$LINENO"; then :
2296
2297else
2298  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2299	 CXXFLAGS="-g"
2300	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h.  */
2302
2303int
2304main ()
2305{
2306
2307  ;
2308  return 0;
2309}
2310_ACEOF
2311if ac_fn_cxx_try_compile "$LINENO"; then :
2312  ac_cv_prog_cxx_g=yes
2313fi
2314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315fi
2316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317fi
2318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2320fi
2321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2322$as_echo "$ac_cv_prog_cxx_g" >&6; }
2323if test "$ac_test_CXXFLAGS" = set; then
2324  CXXFLAGS=$ac_save_CXXFLAGS
2325elif test $ac_cv_prog_cxx_g = yes; then
2326  if test "$GXX" = yes; then
2327    CXXFLAGS="-g -O2"
2328  else
2329    CXXFLAGS="-g"
2330  fi
2331else
2332  if test "$GXX" = yes; then
2333    CXXFLAGS="-O2"
2334  else
2335    CXXFLAGS=
2336  fi
2337fi
2338ac_ext=c
2339ac_cpp='$CPP $CPPFLAGS'
2340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343
2344ac_ext=cpp
2345ac_cpp='$CXXCPP $CPPFLAGS'
2346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2349
2350
2351
2352## Older versions of gdal did not support pkg-config.  Instead, they
2353## wrote their own application, gdal-config, to do the same thing.
2354## So we first try pkg-config and if that fails, check for gdal-config.
2355
2356
2357
2358
2359
2360
2361
2362
2363if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2364	if test -n "$ac_tool_prefix"; then
2365  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2366set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2368$as_echo_n "checking for $ac_word... " >&6; }
2369if ${ac_cv_path_PKG_CONFIG+:} false; then :
2370  $as_echo_n "(cached) " >&6
2371else
2372  case $PKG_CONFIG in
2373  [\\/]* | ?:[\\/]*)
2374  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2375  ;;
2376  *)
2377  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378for as_dir in $PATH
2379do
2380  IFS=$as_save_IFS
2381  test -z "$as_dir" && as_dir=.
2382    for ac_exec_ext in '' $ac_executable_extensions; do
2383  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2384    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2386    break 2
2387  fi
2388done
2389  done
2390IFS=$as_save_IFS
2391
2392  ;;
2393esac
2394fi
2395PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2396if test -n "$PKG_CONFIG"; then
2397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
2398$as_echo "$PKG_CONFIG" >&6; }
2399else
2400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2401$as_echo "no" >&6; }
2402fi
2403
2404
2405fi
2406if test -z "$ac_cv_path_PKG_CONFIG"; then
2407  ac_pt_PKG_CONFIG=$PKG_CONFIG
2408  # Extract the first word of "pkg-config", so it can be a program name with args.
2409set dummy pkg-config; ac_word=$2
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2411$as_echo_n "checking for $ac_word... " >&6; }
2412if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
2413  $as_echo_n "(cached) " >&6
2414else
2415  case $ac_pt_PKG_CONFIG in
2416  [\\/]* | ?:[\\/]*)
2417  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2418  ;;
2419  *)
2420  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423  IFS=$as_save_IFS
2424  test -z "$as_dir" && as_dir=.
2425    for ac_exec_ext in '' $ac_executable_extensions; do
2426  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2427    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2429    break 2
2430  fi
2431done
2432  done
2433IFS=$as_save_IFS
2434
2435  ;;
2436esac
2437fi
2438ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2439if test -n "$ac_pt_PKG_CONFIG"; then
2440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
2441$as_echo "$ac_pt_PKG_CONFIG" >&6; }
2442else
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444$as_echo "no" >&6; }
2445fi
2446
2447  if test "x$ac_pt_PKG_CONFIG" = x; then
2448    PKG_CONFIG=""
2449  else
2450    case $cross_compiling:$ac_tool_warned in
2451yes:)
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2454ac_tool_warned=yes ;;
2455esac
2456    PKG_CONFIG=$ac_pt_PKG_CONFIG
2457  fi
2458else
2459  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2460fi
2461
2462fi
2463if test -n "$PKG_CONFIG"; then
2464	_pkg_min_version=0.9.0
2465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
2466$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
2467	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
2468		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2469$as_echo "yes" >&6; }
2470	else
2471		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472$as_echo "no" >&6; }
2473		PKG_CONFIG=""
2474	fi
2475fi
2476
2477pkg_failed=no
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDAL" >&5
2479$as_echo_n "checking for GDAL... " >&6; }
2480
2481if test -n "$GDAL_CFLAGS"; then
2482    pkg_cv_GDAL_CFLAGS="$GDAL_CFLAGS"
2483 elif test -n "$PKG_CONFIG"; then
2484    if test -n "$PKG_CONFIG" && \
2485    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdal\""; } >&5
2486  ($PKG_CONFIG --exists --print-errors "gdal") 2>&5
2487  ac_status=$?
2488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2489  test $ac_status = 0; }; then
2490  pkg_cv_GDAL_CFLAGS=`$PKG_CONFIG --cflags "gdal" 2>/dev/null`
2491		      test "x$?" != "x0" && pkg_failed=yes
2492else
2493  pkg_failed=yes
2494fi
2495 else
2496    pkg_failed=untried
2497fi
2498if test -n "$GDAL_LIBS"; then
2499    pkg_cv_GDAL_LIBS="$GDAL_LIBS"
2500 elif test -n "$PKG_CONFIG"; then
2501    if test -n "$PKG_CONFIG" && \
2502    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gdal\""; } >&5
2503  ($PKG_CONFIG --exists --print-errors "gdal") 2>&5
2504  ac_status=$?
2505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506  test $ac_status = 0; }; then
2507  pkg_cv_GDAL_LIBS=`$PKG_CONFIG --libs "gdal" 2>/dev/null`
2508		      test "x$?" != "x0" && pkg_failed=yes
2509else
2510  pkg_failed=yes
2511fi
2512 else
2513    pkg_failed=untried
2514fi
2515
2516
2517
2518if test $pkg_failed = yes; then
2519   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520$as_echo "no" >&6; }
2521
2522if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2523        _pkg_short_errors_supported=yes
2524else
2525        _pkg_short_errors_supported=no
2526fi
2527        if test $_pkg_short_errors_supported = yes; then
2528	        GDAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gdal" 2>&1`
2529        else
2530	        GDAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gdal" 2>&1`
2531        fi
2532	# Put the nasty error message in config.log where it belongs
2533	echo "$GDAL_PKG_ERRORS" >&5
2534
2535	have_gdal=no
2536elif test $pkg_failed = untried; then
2537     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538$as_echo "no" >&6; }
2539	have_gdal=no
2540else
2541	GDAL_CFLAGS=$pkg_cv_GDAL_CFLAGS
2542	GDAL_LIBS=$pkg_cv_GDAL_LIBS
2543        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2544$as_echo "yes" >&6; }
2545	have_gdal=yes
2546fi
2547if test $have_gdal = no; then
2548
2549  # Extract the first word of "gdal-config", so it can be a program name with args.
2550set dummy gdal-config; ac_word=$2
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552$as_echo_n "checking for $ac_word... " >&6; }
2553if ${ac_cv_prog_GDAL_CONFIG+:} false; then :
2554  $as_echo_n "(cached) " >&6
2555else
2556  if test -n "$GDAL_CONFIG"; then
2557  ac_cv_prog_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test.
2558else
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562  IFS=$as_save_IFS
2563  test -z "$as_dir" && as_dir=.
2564    for ac_exec_ext in '' $ac_executable_extensions; do
2565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566    ac_cv_prog_GDAL_CONFIG="gdal-config"
2567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568    break 2
2569  fi
2570done
2571  done
2572IFS=$as_save_IFS
2573
2574fi
2575fi
2576GDAL_CONFIG=$ac_cv_prog_GDAL_CONFIG
2577if test -n "$GDAL_CONFIG"; then
2578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDAL_CONFIG" >&5
2579$as_echo "$GDAL_CONFIG" >&6; }
2580else
2581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582$as_echo "no" >&6; }
2583fi
2584
2585
2586  if test -n "$GDAL_CONFIG"; then
2587    have_gdal=yes
2588    GDAL_LIBS=`gdal-config --libs`
2589    GDAL_CFLAGS=`gdal-config --cflags`
2590
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDALAllRegister in -lgdal" >&5
2592$as_echo_n "checking for GDALAllRegister in -lgdal... " >&6; }
2593if ${ac_cv_lib_gdal_GDALAllRegister+:} false; then :
2594  $as_echo_n "(cached) " >&6
2595else
2596  ac_check_lib_save_LIBS=$LIBS
2597LIBS="-lgdal  $LIBS"
2598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599/* end confdefs.h.  */
2600
2601/* Override any GCC internal prototype to avoid an error.
2602   Use char because int might match the return type of a GCC
2603   builtin and then its argument prototype would still apply.  */
2604#ifdef __cplusplus
2605extern "C"
2606#endif
2607char GDALAllRegister ();
2608int
2609main ()
2610{
2611return GDALAllRegister ();
2612  ;
2613  return 0;
2614}
2615_ACEOF
2616if ac_fn_cxx_try_link "$LINENO"; then :
2617  ac_cv_lib_gdal_GDALAllRegister=yes
2618else
2619  ac_cv_lib_gdal_GDALAllRegister=no
2620fi
2621rm -f core conftest.err conftest.$ac_objext \
2622    conftest$ac_exeext conftest.$ac_ext
2623LIBS=$ac_check_lib_save_LIBS
2624fi
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdal_GDALAllRegister" >&5
2626$as_echo "$ac_cv_lib_gdal_GDALAllRegister" >&6; }
2627if test "x$ac_cv_lib_gdal_GDALAllRegister" = xyes; then :
2628  cat >>confdefs.h <<_ACEOF
2629#define HAVE_LIBGDAL 1
2630_ACEOF
2631
2632  LIBS="-lgdal $LIBS"
2633
2634fi
2635
2636  fi
2637
2638
2639fi
2640
2641if test $have_gdal = yes; then
2642
2643$as_echo "#define HAVE_GDAL 1" >>confdefs.h
2644
2645else
2646  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDAL library not found.  Reading of raster files will be disabled." >&5
2647$as_echo "$as_me: WARNING: GDAL library not found.  Reading of raster files will be disabled." >&2;}
2648fi
2649
2650
2651ac_config_files="$ac_config_files Makefile"
2652
2653cat >confcache <<\_ACEOF
2654# This file is a shell script that caches the results of configure
2655# tests run on this system so they can be shared between configure
2656# scripts and configure runs, see configure's option --config-cache.
2657# It is not useful on other systems.  If it contains results you don't
2658# want to keep, you may remove or edit it.
2659#
2660# config.status only pays attention to the cache file if you give it
2661# the --recheck option to rerun configure.
2662#
2663# `ac_cv_env_foo' variables (set or unset) will be overridden when
2664# loading this file, other *unset* `ac_cv_foo' will be assigned the
2665# following values.
2666
2667_ACEOF
2668
2669# The following way of writing the cache mishandles newlines in values,
2670# but we know of no workaround that is simple, portable, and efficient.
2671# So, we kill variables containing newlines.
2672# Ultrix sh set writes to stderr and can't be redirected directly,
2673# and sets the high bit in the cache file unless we assign to the vars.
2674(
2675  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2676    eval ac_val=\$$ac_var
2677    case $ac_val in #(
2678    *${as_nl}*)
2679      case $ac_var in #(
2680      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2681$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2682      esac
2683      case $ac_var in #(
2684      _ | IFS | as_nl) ;; #(
2685      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2686      *) { eval $ac_var=; unset $ac_var;} ;;
2687      esac ;;
2688    esac
2689  done
2690
2691  (set) 2>&1 |
2692    case $as_nl`(ac_space=' '; set) 2>&1` in #(
2693    *${as_nl}ac_space=\ *)
2694      # `set' does not quote correctly, so add quotes: double-quote
2695      # substitution turns \\\\ into \\, and sed turns \\ into \.
2696      sed -n \
2697	"s/'/'\\\\''/g;
2698	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2699      ;; #(
2700    *)
2701      # `set' quotes correctly as required by POSIX, so do not add quotes.
2702      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2703      ;;
2704    esac |
2705    sort
2706) |
2707  sed '
2708     /^ac_cv_env_/b end
2709     t clear
2710     :clear
2711     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2712     t end
2713     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2714     :end' >>confcache
2715if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2716  if test -w "$cache_file"; then
2717    if test "x$cache_file" != "x/dev/null"; then
2718      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2719$as_echo "$as_me: updating cache $cache_file" >&6;}
2720      if test ! -f "$cache_file" || test -h "$cache_file"; then
2721	cat confcache >"$cache_file"
2722      else
2723        case $cache_file in #(
2724        */* | ?:*)
2725	  mv -f confcache "$cache_file"$$ &&
2726	  mv -f "$cache_file"$$ "$cache_file" ;; #(
2727        *)
2728	  mv -f confcache "$cache_file" ;;
2729	esac
2730      fi
2731    fi
2732  else
2733    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2734$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2735  fi
2736fi
2737rm -f confcache
2738
2739test "x$prefix" = xNONE && prefix=$ac_default_prefix
2740# Let make expand exec_prefix.
2741test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2742
2743DEFS=-DHAVE_CONFIG_H
2744
2745ac_libobjs=
2746ac_ltlibobjs=
2747U=
2748for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2749  # 1. Remove the extension, and $U if already installed.
2750  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2751  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2752  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
2753  #    will be set to the directory where LIBOBJS objects are built.
2754  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2755  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2756done
2757LIBOBJS=$ac_libobjs
2758
2759LTLIBOBJS=$ac_ltlibobjs
2760
2761
2762
2763: "${CONFIG_STATUS=./config.status}"
2764ac_write_fail=0
2765ac_clean_files_save=$ac_clean_files
2766ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2768$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2769as_write_fail=0
2770cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2771#! $SHELL
2772# Generated by $as_me.
2773# Run this file to recreate the current configuration.
2774# Compiler output produced by configure, useful for debugging
2775# configure, is in config.log if it exists.
2776
2777debug=false
2778ac_cs_recheck=false
2779ac_cs_silent=false
2780
2781SHELL=\${CONFIG_SHELL-$SHELL}
2782export SHELL
2783_ASEOF
2784cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2785## -------------------- ##
2786## M4sh Initialization. ##
2787## -------------------- ##
2788
2789# Be more Bourne compatible
2790DUALCASE=1; export DUALCASE # for MKS sh
2791if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2792  emulate sh
2793  NULLCMD=:
2794  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2795  # is contrary to our usage.  Disable this feature.
2796  alias -g '${1+"$@"}'='"$@"'
2797  setopt NO_GLOB_SUBST
2798else
2799  case `(set -o) 2>/dev/null` in #(
2800  *posix*) :
2801    set -o posix ;; #(
2802  *) :
2803     ;;
2804esac
2805fi
2806
2807
2808as_nl='
2809'
2810export as_nl
2811# Printing a long string crashes Solaris 7 /usr/bin/printf.
2812as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2813as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2814as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2815# Prefer a ksh shell builtin over an external printf program on Solaris,
2816# but without wasting forks for bash or zsh.
2817if test -z "$BASH_VERSION$ZSH_VERSION" \
2818    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2819  as_echo='print -r --'
2820  as_echo_n='print -rn --'
2821elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2822  as_echo='printf %s\n'
2823  as_echo_n='printf %s'
2824else
2825  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2826    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2827    as_echo_n='/usr/ucb/echo -n'
2828  else
2829    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2830    as_echo_n_body='eval
2831      arg=$1;
2832      case $arg in #(
2833      *"$as_nl"*)
2834	expr "X$arg" : "X\\(.*\\)$as_nl";
2835	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2836      esac;
2837      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2838    '
2839    export as_echo_n_body
2840    as_echo_n='sh -c $as_echo_n_body as_echo'
2841  fi
2842  export as_echo_body
2843  as_echo='sh -c $as_echo_body as_echo'
2844fi
2845
2846# The user is always right.
2847if test "${PATH_SEPARATOR+set}" != set; then
2848  PATH_SEPARATOR=:
2849  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2850    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2851      PATH_SEPARATOR=';'
2852  }
2853fi
2854
2855
2856# IFS
2857# We need space, tab and new line, in precisely that order.  Quoting is
2858# there to prevent editors from complaining about space-tab.
2859# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2860# splitting by setting IFS to empty value.)
2861IFS=" ""	$as_nl"
2862
2863# Find who we are.  Look in the path if we contain no directory separator.
2864as_myself=
2865case $0 in #((
2866  *[\\/]* ) as_myself=$0 ;;
2867  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH
2869do
2870  IFS=$as_save_IFS
2871  test -z "$as_dir" && as_dir=.
2872    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2873  done
2874IFS=$as_save_IFS
2875
2876     ;;
2877esac
2878# We did not find ourselves, most probably we were run as `sh COMMAND'
2879# in which case we are not to be found in the path.
2880if test "x$as_myself" = x; then
2881  as_myself=$0
2882fi
2883if test ! -f "$as_myself"; then
2884  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2885  exit 1
2886fi
2887
2888# Unset variables that we do not need and which cause bugs (e.g. in
2889# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
2890# suppresses any "Segmentation fault" message there.  '((' could
2891# trigger a bug in pdksh 5.2.14.
2892for as_var in BASH_ENV ENV MAIL MAILPATH
2893do eval test x\${$as_var+set} = xset \
2894  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2895done
2896PS1='$ '
2897PS2='> '
2898PS4='+ '
2899
2900# NLS nuisances.
2901LC_ALL=C
2902export LC_ALL
2903LANGUAGE=C
2904export LANGUAGE
2905
2906# CDPATH.
2907(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2908
2909
2910# as_fn_error STATUS ERROR [LINENO LOG_FD]
2911# ----------------------------------------
2912# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2913# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2914# script with STATUS, using 1 if that was 0.
2915as_fn_error ()
2916{
2917  as_status=$1; test $as_status -eq 0 && as_status=1
2918  if test "$4"; then
2919    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2920    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2921  fi
2922  $as_echo "$as_me: error: $2" >&2
2923  as_fn_exit $as_status
2924} # as_fn_error
2925
2926
2927# as_fn_set_status STATUS
2928# -----------------------
2929# Set $? to STATUS, without forking.
2930as_fn_set_status ()
2931{
2932  return $1
2933} # as_fn_set_status
2934
2935# as_fn_exit STATUS
2936# -----------------
2937# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2938as_fn_exit ()
2939{
2940  set +e
2941  as_fn_set_status $1
2942  exit $1
2943} # as_fn_exit
2944
2945# as_fn_unset VAR
2946# ---------------
2947# Portably unset VAR.
2948as_fn_unset ()
2949{
2950  { eval $1=; unset $1;}
2951}
2952as_unset=as_fn_unset
2953# as_fn_append VAR VALUE
2954# ----------------------
2955# Append the text in VALUE to the end of the definition contained in VAR. Take
2956# advantage of any shell optimizations that allow amortized linear growth over
2957# repeated appends, instead of the typical quadratic growth present in naive
2958# implementations.
2959if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2960  eval 'as_fn_append ()
2961  {
2962    eval $1+=\$2
2963  }'
2964else
2965  as_fn_append ()
2966  {
2967    eval $1=\$$1\$2
2968  }
2969fi # as_fn_append
2970
2971# as_fn_arith ARG...
2972# ------------------
2973# Perform arithmetic evaluation on the ARGs, and store the result in the
2974# global $as_val. Take advantage of shells that can avoid forks. The arguments
2975# must be portable across $(()) and expr.
2976if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2977  eval 'as_fn_arith ()
2978  {
2979    as_val=$(( $* ))
2980  }'
2981else
2982  as_fn_arith ()
2983  {
2984    as_val=`expr "$@" || test $? -eq 1`
2985  }
2986fi # as_fn_arith
2987
2988
2989if expr a : '\(a\)' >/dev/null 2>&1 &&
2990   test "X`expr 00001 : '.*\(...\)'`" = X001; then
2991  as_expr=expr
2992else
2993  as_expr=false
2994fi
2995
2996if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2997  as_basename=basename
2998else
2999  as_basename=false
3000fi
3001
3002if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3003  as_dirname=dirname
3004else
3005  as_dirname=false
3006fi
3007
3008as_me=`$as_basename -- "$0" ||
3009$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3010	 X"$0" : 'X\(//\)$' \| \
3011	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3012$as_echo X/"$0" |
3013    sed '/^.*\/\([^/][^/]*\)\/*$/{
3014	    s//\1/
3015	    q
3016	  }
3017	  /^X\/\(\/\/\)$/{
3018	    s//\1/
3019	    q
3020	  }
3021	  /^X\/\(\/\).*/{
3022	    s//\1/
3023	    q
3024	  }
3025	  s/.*/./; q'`
3026
3027# Avoid depending upon Character Ranges.
3028as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3029as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3030as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3031as_cr_digits='0123456789'
3032as_cr_alnum=$as_cr_Letters$as_cr_digits
3033
3034ECHO_C= ECHO_N= ECHO_T=
3035case `echo -n x` in #(((((
3036-n*)
3037  case `echo 'xy\c'` in
3038  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
3039  xy)  ECHO_C='\c';;
3040  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3041       ECHO_T='	';;
3042  esac;;
3043*)
3044  ECHO_N='-n';;
3045esac
3046
3047rm -f conf$$ conf$$.exe conf$$.file
3048if test -d conf$$.dir; then
3049  rm -f conf$$.dir/conf$$.file
3050else
3051  rm -f conf$$.dir
3052  mkdir conf$$.dir 2>/dev/null
3053fi
3054if (echo >conf$$.file) 2>/dev/null; then
3055  if ln -s conf$$.file conf$$ 2>/dev/null; then
3056    as_ln_s='ln -s'
3057    # ... but there are two gotchas:
3058    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3059    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3060    # In both cases, we have to default to `cp -pR'.
3061    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3062      as_ln_s='cp -pR'
3063  elif ln conf$$.file conf$$ 2>/dev/null; then
3064    as_ln_s=ln
3065  else
3066    as_ln_s='cp -pR'
3067  fi
3068else
3069  as_ln_s='cp -pR'
3070fi
3071rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3072rmdir conf$$.dir 2>/dev/null
3073
3074
3075# as_fn_mkdir_p
3076# -------------
3077# Create "$as_dir" as a directory, including parents if necessary.
3078as_fn_mkdir_p ()
3079{
3080
3081  case $as_dir in #(
3082  -*) as_dir=./$as_dir;;
3083  esac
3084  test -d "$as_dir" || eval $as_mkdir_p || {
3085    as_dirs=
3086    while :; do
3087      case $as_dir in #(
3088      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3089      *) as_qdir=$as_dir;;
3090      esac
3091      as_dirs="'$as_qdir' $as_dirs"
3092      as_dir=`$as_dirname -- "$as_dir" ||
3093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3094	 X"$as_dir" : 'X\(//\)[^/]' \| \
3095	 X"$as_dir" : 'X\(//\)$' \| \
3096	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3097$as_echo X"$as_dir" |
3098    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3099	    s//\1/
3100	    q
3101	  }
3102	  /^X\(\/\/\)[^/].*/{
3103	    s//\1/
3104	    q
3105	  }
3106	  /^X\(\/\/\)$/{
3107	    s//\1/
3108	    q
3109	  }
3110	  /^X\(\/\).*/{
3111	    s//\1/
3112	    q
3113	  }
3114	  s/.*/./; q'`
3115      test -d "$as_dir" && break
3116    done
3117    test -z "$as_dirs" || eval "mkdir $as_dirs"
3118  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3119
3120
3121} # as_fn_mkdir_p
3122if mkdir -p . 2>/dev/null; then
3123  as_mkdir_p='mkdir -p "$as_dir"'
3124else
3125  test -d ./-p && rmdir ./-p
3126  as_mkdir_p=false
3127fi
3128
3129
3130# as_fn_executable_p FILE
3131# -----------------------
3132# Test if FILE is an executable regular file.
3133as_fn_executable_p ()
3134{
3135  test -f "$1" && test -x "$1"
3136} # as_fn_executable_p
3137as_test_x='test -x'
3138as_executable_p=as_fn_executable_p
3139
3140# Sed expression to map a string onto a valid CPP name.
3141as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3142
3143# Sed expression to map a string onto a valid variable name.
3144as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3145
3146
3147exec 6>&1
3148## ----------------------------------- ##
3149## Main body of $CONFIG_STATUS script. ##
3150## ----------------------------------- ##
3151_ASEOF
3152test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3153
3154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3155# Save the log message, to keep $0 and so on meaningful, and to
3156# report actual input values of CONFIG_FILES etc. instead of their
3157# values after options handling.
3158ac_log="
3159This file was extended by Octave-Forge mapping package $as_me 1.4.1, which was
3160generated by GNU Autoconf 2.69.  Invocation command line was
3161
3162  CONFIG_FILES    = $CONFIG_FILES
3163  CONFIG_HEADERS  = $CONFIG_HEADERS
3164  CONFIG_LINKS    = $CONFIG_LINKS
3165  CONFIG_COMMANDS = $CONFIG_COMMANDS
3166  $ $0 $@
3167
3168on `(hostname || uname -n) 2>/dev/null | sed 1q`
3169"
3170
3171_ACEOF
3172
3173case $ac_config_files in *"
3174"*) set x $ac_config_files; shift; ac_config_files=$*;;
3175esac
3176
3177case $ac_config_headers in *"
3178"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3179esac
3180
3181
3182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3183# Files that config.status was made for.
3184config_files="`echo $ac_config_files`"
3185config_headers="`echo $ac_config_headers`"
3186
3187_ACEOF
3188
3189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3190ac_cs_usage="\
3191\`$as_me' instantiates files and other configuration actions
3192from templates according to the current configuration.  Unless the files
3193and actions are specified as TAGs, all are instantiated by default.
3194
3195Usage: $0 [OPTION]... [TAG]...
3196
3197  -h, --help       print this help, then exit
3198  -V, --version    print version number and configuration settings, then exit
3199      --config     print configuration, then exit
3200  -q, --quiet, --silent
3201                   do not print progress messages
3202  -d, --debug      don't remove temporary files
3203      --recheck    update $as_me by reconfiguring in the same conditions
3204      --file=FILE[:TEMPLATE]
3205                   instantiate the configuration file FILE
3206      --header=FILE[:TEMPLATE]
3207                   instantiate the configuration header FILE
3208
3209Configuration files:
3210$config_files
3211
3212Configuration headers:
3213$config_headers
3214
3215Report bugs to the package provider."
3216
3217_ACEOF
3218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3219ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3220ac_cs_version="\\
3221Octave-Forge mapping package config.status 1.4.1
3222configured by $0, generated by GNU Autoconf 2.69,
3223  with options \\"\$ac_cs_config\\"
3224
3225Copyright (C) 2012 Free Software Foundation, Inc.
3226This config.status script is free software; the Free Software Foundation
3227gives unlimited permission to copy, distribute and modify it."
3228
3229ac_pwd='$ac_pwd'
3230srcdir='$srcdir'
3231test -n "\$AWK" || AWK=awk
3232_ACEOF
3233
3234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3235# The default lists apply if the user does not specify any file.
3236ac_need_defaults=:
3237while test $# != 0
3238do
3239  case $1 in
3240  --*=?*)
3241    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3242    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3243    ac_shift=:
3244    ;;
3245  --*=)
3246    ac_option=`expr "X$1" : 'X\([^=]*\)='`
3247    ac_optarg=
3248    ac_shift=:
3249    ;;
3250  *)
3251    ac_option=$1
3252    ac_optarg=$2
3253    ac_shift=shift
3254    ;;
3255  esac
3256
3257  case $ac_option in
3258  # Handling of the options.
3259  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3260    ac_cs_recheck=: ;;
3261  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3262    $as_echo "$ac_cs_version"; exit ;;
3263  --config | --confi | --conf | --con | --co | --c )
3264    $as_echo "$ac_cs_config"; exit ;;
3265  --debug | --debu | --deb | --de | --d | -d )
3266    debug=: ;;
3267  --file | --fil | --fi | --f )
3268    $ac_shift
3269    case $ac_optarg in
3270    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3271    '') as_fn_error $? "missing file argument" ;;
3272    esac
3273    as_fn_append CONFIG_FILES " '$ac_optarg'"
3274    ac_need_defaults=false;;
3275  --header | --heade | --head | --hea )
3276    $ac_shift
3277    case $ac_optarg in
3278    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3279    esac
3280    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
3281    ac_need_defaults=false;;
3282  --he | --h)
3283    # Conflict between --help and --header
3284    as_fn_error $? "ambiguous option: \`$1'
3285Try \`$0 --help' for more information.";;
3286  --help | --hel | -h )
3287    $as_echo "$ac_cs_usage"; exit ;;
3288  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3289  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3290    ac_cs_silent=: ;;
3291
3292  # This is an error.
3293  -*) as_fn_error $? "unrecognized option: \`$1'
3294Try \`$0 --help' for more information." ;;
3295
3296  *) as_fn_append ac_config_targets " $1"
3297     ac_need_defaults=false ;;
3298
3299  esac
3300  shift
3301done
3302
3303ac_configure_extra_args=
3304
3305if $ac_cs_silent; then
3306  exec 6>/dev/null
3307  ac_configure_extra_args="$ac_configure_extra_args --silent"
3308fi
3309
3310_ACEOF
3311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3312if \$ac_cs_recheck; then
3313  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3314  shift
3315  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3316  CONFIG_SHELL='$SHELL'
3317  export CONFIG_SHELL
3318  exec "\$@"
3319fi
3320
3321_ACEOF
3322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3323exec 5>>config.log
3324{
3325  echo
3326  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3327## Running $as_me. ##
3328_ASBOX
3329  $as_echo "$ac_log"
3330} >&5
3331
3332_ACEOF
3333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3334_ACEOF
3335
3336cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3337
3338# Handling of arguments.
3339for ac_config_target in $ac_config_targets
3340do
3341  case $ac_config_target in
3342    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3343    "rad2deg.m") CONFIG_FILES="$CONFIG_FILES rad2deg.m" ;;
3344    "deg2rad.m") CONFIG_FILES="$CONFIG_FILES deg2rad.m" ;;
3345    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3346
3347  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3348  esac
3349done
3350
3351
3352# If the user did not use the arguments to specify the items to instantiate,
3353# then the envvar interface is used.  Set only those that are not.
3354# We use the long form for the default assignment because of an extremely
3355# bizarre bug on SunOS 4.1.3.
3356if $ac_need_defaults; then
3357  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3358  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3359fi
3360
3361# Have a temporary directory for convenience.  Make it in the build tree
3362# simply because there is no reason against having it here, and in addition,
3363# creating and moving files from /tmp can sometimes cause problems.
3364# Hook for its removal unless debugging.
3365# Note that there is a small window in which the directory will not be cleaned:
3366# after its creation but before its name has been assigned to `$tmp'.
3367$debug ||
3368{
3369  tmp= ac_tmp=
3370  trap 'exit_status=$?
3371  : "${ac_tmp:=$tmp}"
3372  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3373' 0
3374  trap 'as_fn_exit 1' 1 2 13 15
3375}
3376# Create a (secure) tmp directory for tmp files.
3377
3378{
3379  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3380  test -d "$tmp"
3381}  ||
3382{
3383  tmp=./conf$$-$RANDOM
3384  (umask 077 && mkdir "$tmp")
3385} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3386ac_tmp=$tmp
3387
3388# Set up the scripts for CONFIG_FILES section.
3389# No need to generate them if there are no CONFIG_FILES.
3390# This happens for instance with `./config.status config.h'.
3391if test -n "$CONFIG_FILES"; then
3392
3393
3394ac_cr=`echo X | tr X '\015'`
3395# On cygwin, bash can eat \r inside `` if the user requested igncr.
3396# But we know of no other shell where ac_cr would be empty at this
3397# point, so we can use a bashism as a fallback.
3398if test "x$ac_cr" = x; then
3399  eval ac_cr=\$\'\\r\'
3400fi
3401ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3402if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3403  ac_cs_awk_cr='\\r'
3404else
3405  ac_cs_awk_cr=$ac_cr
3406fi
3407
3408echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3409_ACEOF
3410
3411
3412{
3413  echo "cat >conf$$subs.awk <<_ACEOF" &&
3414  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3415  echo "_ACEOF"
3416} >conf$$subs.sh ||
3417  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3418ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3419ac_delim='%!_!# '
3420for ac_last_try in false false false false false :; do
3421  . ./conf$$subs.sh ||
3422    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3423
3424  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3425  if test $ac_delim_n = $ac_delim_num; then
3426    break
3427  elif $ac_last_try; then
3428    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3429  else
3430    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3431  fi
3432done
3433rm -f conf$$subs.sh
3434
3435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3436cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3437_ACEOF
3438sed -n '
3439h
3440s/^/S["/; s/!.*/"]=/
3441p
3442g
3443s/^[^!]*!//
3444:repl
3445t repl
3446s/'"$ac_delim"'$//
3447t delim
3448:nl
3449h
3450s/\(.\{148\}\)..*/\1/
3451t more1
3452s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3453p
3454n
3455b repl
3456:more1
3457s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3458p
3459g
3460s/.\{148\}//
3461t nl
3462:delim
3463h
3464s/\(.\{148\}\)..*/\1/
3465t more2
3466s/["\\]/\\&/g; s/^/"/; s/$/"/
3467p
3468b
3469:more2
3470s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3471p
3472g
3473s/.\{148\}//
3474t delim
3475' <conf$$subs.awk | sed '
3476/^[^""]/{
3477  N
3478  s/\n//
3479}
3480' >>$CONFIG_STATUS || ac_write_fail=1
3481rm -f conf$$subs.awk
3482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3483_ACAWK
3484cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3485  for (key in S) S_is_set[key] = 1
3486  FS = ""
3487
3488}
3489{
3490  line = $ 0
3491  nfields = split(line, field, "@")
3492  substed = 0
3493  len = length(field[1])
3494  for (i = 2; i < nfields; i++) {
3495    key = field[i]
3496    keylen = length(key)
3497    if (S_is_set[key]) {
3498      value = S[key]
3499      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3500      len += length(value) + length(field[++i])
3501      substed = 1
3502    } else
3503      len += 1 + keylen
3504  }
3505
3506  print line
3507}
3508
3509_ACAWK
3510_ACEOF
3511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3512if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3513  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3514else
3515  cat
3516fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3517  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3518_ACEOF
3519
3520# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3521# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3522# trailing colons and then remove the whole line if VPATH becomes empty
3523# (actually we leave an empty line to preserve line numbers).
3524if test "x$srcdir" = x.; then
3525  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
3526h
3527s///
3528s/^/:/
3529s/[	 ]*$/:/
3530s/:\$(srcdir):/:/g
3531s/:\${srcdir}:/:/g
3532s/:@srcdir@:/:/g
3533s/^:*//
3534s/:*$//
3535x
3536s/\(=[	 ]*\).*/\1/
3537G
3538s/\n//
3539s/^[^=]*=[	 ]*$//
3540}'
3541fi
3542
3543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3544fi # test -n "$CONFIG_FILES"
3545
3546# Set up the scripts for CONFIG_HEADERS section.
3547# No need to generate them if there are no CONFIG_HEADERS.
3548# This happens for instance with `./config.status Makefile'.
3549if test -n "$CONFIG_HEADERS"; then
3550cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
3551BEGIN {
3552_ACEOF
3553
3554# Transform confdefs.h into an awk script `defines.awk', embedded as
3555# here-document in config.status, that substitutes the proper values into
3556# config.h.in to produce config.h.
3557
3558# Create a delimiter string that does not exist in confdefs.h, to ease
3559# handling of long lines.
3560ac_delim='%!_!# '
3561for ac_last_try in false false :; do
3562  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
3563  if test -z "$ac_tt"; then
3564    break
3565  elif $ac_last_try; then
3566    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
3567  else
3568    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3569  fi
3570done
3571
3572# For the awk script, D is an array of macro values keyed by name,
3573# likewise P contains macro parameters if any.  Preserve backslash
3574# newline sequences.
3575
3576ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
3577sed -n '
3578s/.\{148\}/&'"$ac_delim"'/g
3579t rset
3580:rset
3581s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
3582t def
3583d
3584:def
3585s/\\$//
3586t bsnl
3587s/["\\]/\\&/g
3588s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
3589D["\1"]=" \3"/p
3590s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
3591d
3592:bsnl
3593s/["\\]/\\&/g
3594s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
3595D["\1"]=" \3\\\\\\n"\\/p
3596t cont
3597s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
3598t cont
3599d
3600:cont
3601n
3602s/.\{148\}/&'"$ac_delim"'/g
3603t clear
3604:clear
3605s/\\$//
3606t bsnlc
3607s/["\\]/\\&/g; s/^/"/; s/$/"/p
3608d
3609:bsnlc
3610s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
3611b cont
3612' <confdefs.h | sed '
3613s/'"$ac_delim"'/"\\\
3614"/g' >>$CONFIG_STATUS || ac_write_fail=1
3615
3616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3617  for (key in D) D_is_set[key] = 1
3618  FS = ""
3619}
3620/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
3621  line = \$ 0
3622  split(line, arg, " ")
3623  if (arg[1] == "#") {
3624    defundef = arg[2]
3625    mac1 = arg[3]
3626  } else {
3627    defundef = substr(arg[1], 2)
3628    mac1 = arg[2]
3629  }
3630  split(mac1, mac2, "(") #)
3631  macro = mac2[1]
3632  prefix = substr(line, 1, index(line, defundef) - 1)
3633  if (D_is_set[macro]) {
3634    # Preserve the white space surrounding the "#".
3635    print prefix "define", macro P[macro] D[macro]
3636    next
3637  } else {
3638    # Replace #undef with comments.  This is necessary, for example,
3639    # in the case of _POSIX_SOURCE, which is predefined and required
3640    # on some systems where configure will not decide to define it.
3641    if (defundef == "undef") {
3642      print "/*", prefix defundef, macro, "*/"
3643      next
3644    }
3645  }
3646}
3647{ print }
3648_ACAWK
3649_ACEOF
3650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3651  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
3652fi # test -n "$CONFIG_HEADERS"
3653
3654
3655eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
3656shift
3657for ac_tag
3658do
3659  case $ac_tag in
3660  :[FHLC]) ac_mode=$ac_tag; continue;;
3661  esac
3662  case $ac_mode$ac_tag in
3663  :[FHL]*:*);;
3664  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3665  :[FH]-) ac_tag=-:-;;
3666  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3667  esac
3668  ac_save_IFS=$IFS
3669  IFS=:
3670  set x $ac_tag
3671  IFS=$ac_save_IFS
3672  shift
3673  ac_file=$1
3674  shift
3675
3676  case $ac_mode in
3677  :L) ac_source=$1;;
3678  :[FH])
3679    ac_file_inputs=
3680    for ac_f
3681    do
3682      case $ac_f in
3683      -) ac_f="$ac_tmp/stdin";;
3684      *) # Look for the file first in the build tree, then in the source tree
3685	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
3686	 # because $ac_f cannot contain `:'.
3687	 test -f "$ac_f" ||
3688	   case $ac_f in
3689	   [\\/$]*) false;;
3690	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3691	   esac ||
3692	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3693      esac
3694      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3695      as_fn_append ac_file_inputs " '$ac_f'"
3696    done
3697
3698    # Let's still pretend it is `configure' which instantiates (i.e., don't
3699    # use $as_me), people would be surprised to read:
3700    #    /* config.h.  Generated by config.status.  */
3701    configure_input='Generated from '`
3702	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3703	`' by configure.'
3704    if test x"$ac_file" != x-; then
3705      configure_input="$ac_file.  $configure_input"
3706      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3707$as_echo "$as_me: creating $ac_file" >&6;}
3708    fi
3709    # Neutralize special characters interpreted by sed in replacement strings.
3710    case $configure_input in #(
3711    *\&* | *\|* | *\\* )
3712       ac_sed_conf_input=`$as_echo "$configure_input" |
3713       sed 's/[\\\\&|]/\\\\&/g'`;; #(
3714    *) ac_sed_conf_input=$configure_input;;
3715    esac
3716
3717    case $ac_tag in
3718    *:-:* | *:-) cat >"$ac_tmp/stdin" \
3719      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3720    esac
3721    ;;
3722  esac
3723
3724  ac_dir=`$as_dirname -- "$ac_file" ||
3725$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3726	 X"$ac_file" : 'X\(//\)[^/]' \| \
3727	 X"$ac_file" : 'X\(//\)$' \| \
3728	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3729$as_echo X"$ac_file" |
3730    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3731	    s//\1/
3732	    q
3733	  }
3734	  /^X\(\/\/\)[^/].*/{
3735	    s//\1/
3736	    q
3737	  }
3738	  /^X\(\/\/\)$/{
3739	    s//\1/
3740	    q
3741	  }
3742	  /^X\(\/\).*/{
3743	    s//\1/
3744	    q
3745	  }
3746	  s/.*/./; q'`
3747  as_dir="$ac_dir"; as_fn_mkdir_p
3748  ac_builddir=.
3749
3750case "$ac_dir" in
3751.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3752*)
3753  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3754  # A ".." for each directory in $ac_dir_suffix.
3755  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3756  case $ac_top_builddir_sub in
3757  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3758  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3759  esac ;;
3760esac
3761ac_abs_top_builddir=$ac_pwd
3762ac_abs_builddir=$ac_pwd$ac_dir_suffix
3763# for backward compatibility:
3764ac_top_builddir=$ac_top_build_prefix
3765
3766case $srcdir in
3767  .)  # We are building in place.
3768    ac_srcdir=.
3769    ac_top_srcdir=$ac_top_builddir_sub
3770    ac_abs_top_srcdir=$ac_pwd ;;
3771  [\\/]* | ?:[\\/]* )  # Absolute name.
3772    ac_srcdir=$srcdir$ac_dir_suffix;
3773    ac_top_srcdir=$srcdir
3774    ac_abs_top_srcdir=$srcdir ;;
3775  *) # Relative name.
3776    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3777    ac_top_srcdir=$ac_top_build_prefix$srcdir
3778    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3779esac
3780ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3781
3782
3783  case $ac_mode in
3784  :F)
3785  #
3786  # CONFIG_FILE
3787  #
3788
3789_ACEOF
3790
3791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3792# If the template does not know about datarootdir, expand it.
3793# FIXME: This hack should be removed a few years after 2.60.
3794ac_datarootdir_hack=; ac_datarootdir_seen=
3795ac_sed_dataroot='
3796/datarootdir/ {
3797  p
3798  q
3799}
3800/@datadir@/p
3801/@docdir@/p
3802/@infodir@/p
3803/@localedir@/p
3804/@mandir@/p'
3805case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3806*datarootdir*) ac_datarootdir_seen=yes;;
3807*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3808  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3809$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3810_ACEOF
3811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3812  ac_datarootdir_hack='
3813  s&@datadir@&$datadir&g
3814  s&@docdir@&$docdir&g
3815  s&@infodir@&$infodir&g
3816  s&@localedir@&$localedir&g
3817  s&@mandir@&$mandir&g
3818  s&\\\${datarootdir}&$datarootdir&g' ;;
3819esac
3820_ACEOF
3821
3822# Neutralize VPATH when `$srcdir' = `.'.
3823# Shell code in configure.ac might set extrasub.
3824# FIXME: do we really want to maintain this feature?
3825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3826ac_sed_extra="$ac_vpsub
3827$extrasub
3828_ACEOF
3829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3830:t
3831/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3832s|@configure_input@|$ac_sed_conf_input|;t t
3833s&@top_builddir@&$ac_top_builddir_sub&;t t
3834s&@top_build_prefix@&$ac_top_build_prefix&;t t
3835s&@srcdir@&$ac_srcdir&;t t
3836s&@abs_srcdir@&$ac_abs_srcdir&;t t
3837s&@top_srcdir@&$ac_top_srcdir&;t t
3838s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3839s&@builddir@&$ac_builddir&;t t
3840s&@abs_builddir@&$ac_abs_builddir&;t t
3841s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3842$ac_datarootdir_hack
3843"
3844eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3845  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3846
3847test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3848  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3849  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
3850      "$ac_tmp/out"`; test -z "$ac_out"; } &&
3851  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3852which seems to be undefined.  Please make sure it is defined" >&5
3853$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3854which seems to be undefined.  Please make sure it is defined" >&2;}
3855
3856  rm -f "$ac_tmp/stdin"
3857  case $ac_file in
3858  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3859  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3860  esac \
3861  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3862 ;;
3863  :H)
3864  #
3865  # CONFIG_HEADER
3866  #
3867  if test x"$ac_file" != x-; then
3868    {
3869      $as_echo "/* $configure_input  */" \
3870      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
3871    } >"$ac_tmp/config.h" \
3872      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3873    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
3874      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
3875$as_echo "$as_me: $ac_file is unchanged" >&6;}
3876    else
3877      rm -f "$ac_file"
3878      mv "$ac_tmp/config.h" "$ac_file" \
3879	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
3880    fi
3881  else
3882    $as_echo "/* $configure_input  */" \
3883      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
3884      || as_fn_error $? "could not create -" "$LINENO" 5
3885  fi
3886 ;;
3887
3888
3889  esac
3890
3891done # for ac_tag
3892
3893
3894as_fn_exit 0
3895_ACEOF
3896ac_clean_files=$ac_clean_files_save
3897
3898test $ac_write_fail = 0 ||
3899  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3900
3901
3902# configure is writing to config.log, and then calls config.status.
3903# config.status does its own redirection, appending to config.log.
3904# Unfortunately, on DOS this fails, as config.log is still kept open
3905# by configure, so config.status won't be able to write to it; its
3906# output is simply discarded.  So we exec the FD to /dev/null,
3907# effectively closing config.log, so it can be properly (re)opened and
3908# appended to by config.status.  When coming back to configure, we
3909# need to make the FD available again.
3910if test "$no_create" != yes; then
3911  ac_cs_success=:
3912  ac_config_status_args=
3913  test "$silent" = yes &&
3914    ac_config_status_args="$ac_config_status_args --quiet"
3915  exec 5>/dev/null
3916  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3917  exec 5>>config.log
3918  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3919  # would make configure fail if this is the last instruction.
3920  $ac_cs_success || as_fn_exit 1
3921fi
3922if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3923  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3924$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3925fi
3926
3927