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